The problem
The question sounds simple: how many milliseconds is it from Oslo to Stockholm, Copenhagen and Frankfurt, and does it matter to users? The usual tool is mtr, which combines traceroute and ping. I set out to measure exactly that in a clean sandbox. What I got instead was a lesson in checking a measurement before trusting it, and I think that lesson is the useful part of this article.
First, the environment, exactly as the sandbox reports it. It is a clean Linux environment running Ubuntu 24.04, with the host name vm, and nothing in the output of these two commands says Oslo, Norway or any other location. I never found out where this machine physically is, so whatever I measure next, I am not measuring from a known place in the Nordics.
uname -a
Linux vm 6.18.44-fc-v880 #1 SMP PREEMPT_DYNAMIC @0 x86_64 x86_64 x86_64 GNU/Linux
cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.5 LTS"
So I cannot measure Oslo to Stockholm from here, and I will not pretend to. Every number below was measured from this sandbox, and the article says what each one does and does not mean. The first symptom came right away: plain ping does not work at all.
ping -c 2 -W 2 1.1.1.1 2>&1 | tail -5
From 21.4.24.21 icmp_seq=2 Destination Port Unreachable
--- 1.1.1.1 ping statistics ---
2 packets transmitted, 0 received, +2 errors, 100% packet loss, time 1022ms
I installed mtr with apt-get install -y -qq mtr-tiny traceroute iputils-ping dnsutils, and mtr --version printed mtr 0.95. Because ICMP is refused, I switched mtr to TCP mode against port 443 of the University of Oslo web server. The result looked fine and was impossible.
mtr -n -r -c 5 -T -P 443 www.uio.no 2>&1
HOST: vm Loss% Snt Last Avg Best Wrst StDev
1.|-- 192.0.2.1 0.0% 5 0.4 0.4 0.3 0.6 0.1
2.|-- 129.240.118.130 0.0% 5 0.3 0.4 0.3 0.5 0.1
Two hops, 0.4 ms to a server that is supposed to be in Oslo, with no loss and a standard deviation of 0.1 ms. Anyone reading this report cold would conclude the network is superb. It is not a network measurement.
Why it happens
There are two separate causes, and the second one is the one that produced the false number. The first is conceptual: latency belongs to a path between two specific points. A run from my machine to Oslo says nothing about the path from Oslo to Stockholm. Any article quoting Oslo-to-Stockholm milliseconds has to come from a vantage point inside or next to Oslo, with the tool run there.
The second cause is the sandbox network. A reply in 0.4 ms from a web server in Oslo, and from others in Stockholm and Frankfurt, cannot come from those servers, and the arithmetic in the step-by-step section shows why without needing to know where the sandbox is. To test the idea, I pointed the same mtr command at 203.0.113.5. That address is in 203.0.113.0/24, which RFC 5737 reserves for documentation, so no real server should answer there.
mtr -n -r -c 5 -T -P 443 203.0.113.5 2>&1
2.|-- 203.0.113.5 0.0% 5 0.4 0.4 0.3 0.4 0.1
The documentation address "answered" just as fast as Oslo. A separate curl request confirms that the TCP connection really completed in well under a millisecond, and only then failed on the certificate check. Nothing on the public internet should complete a handshake at that address that quickly.
curl -sS -m 8 -o /dev/null -w "connect=%{time_connect}s remote=%{remote_ip}\n" https://203.0.113.5/ 2>&1
curl: (60) SSL: no alternative certificate subject name matches target host name '203.0.113.5'
connect=0.000411s remote=203.0.113.5
My conclusion is that outgoing TCP connections in this sandbox are answered by something local, such as a transparent proxy, before they reach the real destination. I did not inspect that component, so that is an inference from the evidence, not a confirmed fact. It also explains why hop 1 is 192.0.2.1, another RFC 5737 documentation address, and why the apparent destination is always hop 2.
The same 1 ms for every city
I repeated a curl timing against the public web servers of universities in Oslo, Stockholm and Frankfurt. The command was the same each time, with only the host name changed. Here is the loop for Oslo with its three runs, followed by the loops for the other two hosts, reduced to the connect time.
for i in 1 2 3; do curl -sS -m 10 -o /dev/null -w "www.uio.no %{remote_ip} connect=%{time_connect}s tls=%{time_appconnect}s total=%{time_total}s\n" https://www.uio.no/ 2>&1; done
www.uio.no 129.240.118.130 connect=0.001250s tls=0.022805s total=0.929718s
www.uio.no 129.240.118.130 connect=0.001436s tls=0.024136s total=0.774698s
www.uio.no 129.240.118.130 connect=0.001390s tls=0.029583s total=0.644755s
for i in 1 2 3; do curl -sS -m 10 -o /dev/null -w "www.kth.se %{remote_ip} connect=%{time_connect}s\n" https://www.kth.se/ 2>&1; donewww.kth.se 130.237.28.40 connect=0.003200s
www.kth.se 130.237.28.40 connect=0.001291s
www.kth.se 130.237.28.40 connect=0.001381sfor i in 1 2 3; do curl -sS -m 10 -o /dev/null -w "www.uni-frankfurt.de %{remote_ip} connect=%{time_connect}s\n" https://www.uni-frankfurt.de/ 2>&1; donewww.uni-frankfurt.de 141.2.37.198 connect=0.002745s
www.uni-frankfurt.de 141.2.37.198 connect=0.001560s
www.uni-frankfurt.de 141.2.37.198 connect=0.001308s
Oslo, Stockholm and Frankfurt are indistinguishable: every TCP connect completed in roughly 1 to 3 ms. A sequence of connections to three countries cannot all be that close to one machine, and the step-by-step section turns that into a number. I also tried a Copenhagen university server, but I did not keep a clean set of runs for it, so I make no Copenhagen claim from this test.
Source of truth
Since the network in this sandbox cannot serve as the reference, the reference has to be physics plus the tool documentation. Three sources carry the argument, and each of them confirms one specific thing that the later steps rely on, which is listed here.
- The mtr(8) manual page confirms that mtr combines traceroute and ping, that
--tcpwith-Pselects TCP probes to a chosen port, and that-csets the number of probe cycles of one second each. - An optical fibre latency explainer from M2 Optics gives the rule of thumb of about 4.9 microseconds per kilometre in single-mode fibre, using a refractive index of 1.47. That is one-way, so a round trip doubles it.
- RFC 5737 reserves 192.0.2.0/24 and 203.0.113.0/24 for documentation. An address from those ranges answering a TCP handshake is therefore a red flag in itself.
Together they give a testable rule. A round trip cannot be faster than twice the great-circle distance divided by the speed of light in glass. Real cables are longer than the great circle and routers add delay, so real RTTs sit above this floor. Any result below it is not a path measurement.
Possible solutions
There are several ways to get an honest answer to the original question about Nordic latency, and they differ mostly in what they need from you: a host in the right place, an account somewhere, or only a pencil and a little arithmetic.
Run mtr from a host in Oslo
This is the real measurement. Start mtr on a machine in Oslo, aim it at hosts in Stockholm, Copenhagen and Frankfurt, and let it run for a few hundred cycles. It gives per-hop data and shows the actual route. It needs a vantage point I do not have in this sandbox.
Use a measurement platform or looking glass
Public platforms such as RIPE Atlas run probes in many networks and let you schedule pings and traceroutes from them. This avoids owning a host in Oslo, but it needs an account and credits, and the probe sits in someone else's network, which may route differently from your users.
Time the application with curl
curl can print connect, TLS and total time for a URL. This measures what a user experiences including server work, but it mixes network and application time and, as the connect timings above show, it is only as honest as the path it runs over.
Compute the physical floor and validate against it
Distances between city centres and the speed of light in fibre give a lower bound for each pair. It cannot tell you the real latency, but it tells you immediately whether a reported number is plausible, and it works anywhere, including a restricted container.
Why this fix
I chose the floor calculation, together with a record of what mtr really printed here. Measuring Oslo to the three cities was not possible, and a narrower honest article is better than a confident wrong one. The floor is the only method in the list that I could carry out completely in this sandbox and that produces a result a reader can reproduce with a short script.
It also makes the other three methods safer. Once you know that Oslo to Stockholm cannot be faster than about 4 ms in fibre, you can reject a 0.4 ms mtr line immediately, whoever produced it, and you can judge whether a real result from a host in Oslo is reasonable or points to a detour. I treat it as a validation step, not a replacement for measuring.
Doing it in the sandbox
The script below uses the haversine great-circle formula on city-centre coordinates and a refractive index of 1.468, which gives about 4.9 microseconds per kilometre one way. The coordinates are my own approximate figures for the city centres, not measured values. It prints the floor for each Nordic pair from Oslo, and it also turns the 0.4 ms from mtr into a maximum distance. I printed the file so that you can see exactly what ran.
cat /tmp/bound2.pyfrom math import radians, sin, cos, asin, sqrt
C_KM_S = 299792.458
N = 1.468
FIBRE = C_KM_S / N
CITIES = {
"Oslo": (59.9139, 10.7522),
"Stockholm": (59.3293, 18.0686),
"Copenhagen": (55.6761, 12.5683),
"Frankfurt": (50.1109, 8.6821),
}
def km(a, b):
la1, lo1 = map(radians, CITIES[a])
la2, lo2 = map(radians, CITIES[b])
h = sin((la2 - la1) / 2) ** 2 + cos(la1) * cos(la2) * sin((lo2 - lo1) / 2) ** 2
return 2 * 6371 * asin(sqrt(h))
for dst in ("Stockholm", "Copenhagen", "Frankfurt"):
d = km("Oslo", dst)
print(f"Oslo -> {dst}: {d:.0f} km, floor RTT {2 * d / FIBRE * 1000:.1f} ms")
rtt_ms = 0.4
print(f"A {rtt_ms} ms RTT allows at most {rtt_ms / 1000 / 2 * FIBRE:.0f} km of fibre one way")python3 /tmp/bound2.pyOslo -> Stockholm: 416 km, floor RTT 4.1 ms
Oslo -> Copenhagen: 483 km, floor RTT 4.7 ms
Oslo -> Frankfurt: 1098 km, floor RTT 10.8 ms
A 0.4 ms RTT allows at most 41 km of fibre one wayReading the result
The first three lines are the physical minimums for the Nordic pairs: about 4.1 ms to Stockholm, 4.7 ms to Copenhagen and 10.8 ms to Frankfurt. These are computed, not measured, and real routes are longer. The last line is the check on the sandbox. A 0.4 ms round trip leaves room for at most 41 km of fibre in each direction, yet Oslo and Stockholm are 416 km apart, so no single machine can be that close to both. The 0.4 ms lines measured the sandbox network, not the cities.
What the floor means for users
A fresh HTTPS request over TCP needs a TCP handshake, then a TLS handshake that takes one round trip in TLS 1.3, then the request itself. That is roughly three round trips before the first byte of the answer is back. I multiplied the floors by three.
for p in "Stockholm 4.1" "Copenhagen 4.7" "Frankfurt 10.8"; do set -- $p; awk -v n=$1 -v r=$2 'BEGIN{printf "%s: 3 x %.1f ms = %.1f ms\n", n, r, 3*r}'; done
Stockholm: 3 x 4.1 ms = 12.3 ms
Copenhagen: 3 x 4.7 ms = 14.1 ms
Frankfurt: 3 x 10.8 ms = 32.4 ms
This is arithmetic on a theoretical minimum, not a measurement. Its meaning is still clear: for a user in Oslo, a server in Stockholm or Copenhagen costs a small number of milliseconds per round trip at best, Frankfurt about two to three times as much, and an application that makes ten sequential round trips pays that ten times. Real values on real fibre will be higher, so measure them from Oslo with the commands above.
Running the real measurement
On a host that really is in Oslo, the working command is the one I ran above with the target replaced, for example mtr -n -r -c 100 -T -P 443 <target-host>. I did not run that form, because I have no such host. When you do, read the last line first: its Best and Avg columns are the RTT, and they must sit above the floor in the table.
Limits and alternatives
What worked: the sanity check. It exposed that mtr and curl connect timings reported latency of a few milliseconds at most to hosts in three different countries, and it gave a quantitative reason, a 41 km radius, to reject them.
What did not work: the original goal. I have no measurement of Oslo to Stockholm, Copenhagen or Frankfurt, and none of the numbers in this article should be quoted as such. The floors are lower bounds from great-circle distance, which ignore real cable routes, equipment delay, queueing and the exact location of servers inside each city. The coordinates and the refractive index are my assumptions, with the index backed by the M2 Optics rule of thumb.
When to choose another method: if you need real numbers, run mtr from a real host in Oslo, or schedule measurements on RIPE Atlas, and compare the output with the floors above. If you care about what users feel, use curl timing against your own application from where your users are. Use the floor only as a plausibility test. If a result is below it, the problem is the measurement, not the network.