Bad route and slow sites

When you live in Nordic countries, why are you routed to france,uk,switcherlands that gives you high latency and slow canisters on those nodes ?

I tried blocking the ip of those countries and try only to hook up to the Sweden one, but I have never seen a connection to the Swedish node from eithe Sweden, Denmark or Norway how come?

You connect to a boundary node (the purple ones on the map at https://dashboard.internetcomputer.org/) not directly to a replica node. Hence, UK, Switzerland or France, when connecting from Sweden.

The boundary node then randomly picks a replica node on the respective subnet (could be one in Australia) to route your request to, not the nearest one. This is because on a decentralized network we cannot rely on the fact that the nearest node will be honest and can be relied upon. So not only does your request go through e.g. Switzerland, it may end up literally anywhere. It’s the price you have to pay for a decentralized network.

(I suppose some optimizations would be possible, but you will never be guaranteed to be routed to the nearest replica. Some randomness will always be required.)

2 Likes

Thank you for taking the time to write this up.