Hi, for the past couple weeks, communicating with my apps has been very slow. I’ve noticed that even though I am based nearest PHX, requests are sent to LHR. Here’s the results of a curl to debug:
My IPv4 traffic is also taking the long route. I don’t know how long it’s been happening, but I definitely started noticing some latency-sensitive applications slowing down in recent weeks.
Sorry for the inconvenience, and thanks for providing the curl and debug mtr information. We can work with our network provider to fix the routes for ISPs that are being routed incorrectly, so these reports are helpful.
Hi,
I’m evaluating fly.io right now to move an application there, but I’m perplex on the latency I observe. I did deploy a test app on the CDG region and keep being routed to the IAD edge despite being located in Paris. Can’t get below 160ms latency (despite the app responding in <5ms). I’ve got quite a good fibre connection and usually don’t get above 20ms on more or less any west european DC, what’s happening here?
I have quite similar situation: on my home’s ISP it always iad though when I switch to mobile it selects waw/fra correctly.
Sometimes I have cdg. any EU-based routing is acceptable, but in most cases it’s iad.
traceroute to debug.fly.dev (77.83.140.164), 64 hops max, 40 byte packets
1 lan (192.168.1.1) 5.392 ms 3.587 ms 3.695 ms
2 kra-bng1.neo.tpnet.pl (83.1.4.239) 8.007 ms 8.269 ms 17.372 ms
3 kra-r12.tpnet.pl (80.50.122.5) 9.929 ms
kra-r21.tpnet.pl (80.50.18.5) 7.249 ms
kra-r12.tpnet.pl (80.50.122.5) 9.699 ms
4 * 193.251.141.75 (193.251.141.75) 31.057 ms
kra-r22.tpnet.pl (195.116.35.226) 8.937 ms
5 193.251.128.13 (193.251.128.13) 508.263 ms
193.251.141.75 (193.251.141.75) 23.046 ms
193.251.128.13 (193.251.128.13) 108.475 ms
6 193.251.128.13 (193.251.128.13) 112.594 ms
193.251.248.206 (193.251.248.206) 111.085 ms 115.076 ms
7 be-3107-cs01.beaumeade.va.ibone.comcast.net (96.110.32.185) 112.059 ms
193.251.248.206 (193.251.248.206) 107.312 ms
be-3407-cs04.beaumeade.va.ibone.comcast.net (96.110.32.197) 109.353 ms
8 be-3111-pe11.ashburn.va.ibone.comcast.net (96.110.32.122) 107.798 ms
be-3107-cs01.beaumeade.va.ibone.comcast.net (96.110.32.185) 109.402 ms
be-3207-cs02.beaumeade.va.ibone.comcast.net (96.110.32.189) 108.910 ms
9 be-3411-pe11.ashburn.va.ibone.comcast.net (96.110.32.134) 106.898 ms
50.248.117.70 (50.248.117.70) 108.190 ms
be-3211-pe11.ashburn.va.ibone.comcast.net (96.110.32.126) 109.582 ms
10 50.248.117.70 (50.248.117.70) 107.440 ms * *
I have made some adjustments (read: Traffic Engineering ), and it looks like from our monitoring that traffic originating from Orange should now be routed correctly to European regions. Can you confirm whether this has resolved your bad routes?
yep, so far - so good. thanks! Now I see CGD. latency is much better, 2-3x on WSS connections, and 5-6x on http requests.
On a positive side, I did a lot of optimisations in the app b/c initially I thought it’s something wrong in my code
As I understood it’s a question more to ISP and some clients could still have this issue?
I’m just curios, why was Paris selected, but not Fra or Waw that seems to be closer to me. I’m Poland based at the moment.
I’m getting consistent ~10ms latency to my app, so I think the magic worked quite well!
Looks like it improved latency on mobile network too (on a different operator, still routed to cdg but ~30ms quicker)
Long story short, in the BGP-land, routes are not decided based on geographical distance, but based on a set of complicated criteria, mainly the AS-Path (AS = Autonomous Systems, think ISPs), i.e. “how many ISPs do I need to pass through to deliver this packet?”. ISPs can also prefer or avoid upstreams based on business relations (are they a direct customer of us? do they pay us more?)
In this case, Orange probably has much better “peering” in Paris – they can effectively reach us in a single hop there. This is probably why it was selected by Orange. I am not sure if they peer as much in FRA or WAW. This could also be a business decision (preferring to route traffic back to Paris inside their own backbone network might be cheaper for them than to FRA).