6 ms·
How to properly interpret a traceroute or mtr
- charcircuit 5y agoEven though it lets you see network issues there sadly isn't always a way to fix them. One time I reported an issue and I was told that the issue was with my ISP despite having many people test and and using both residential and from within a data center. I was also told that my 60ms of ping between San Jose and Los Angeles was due to overhead of running it from a virtual machine. Despite having the ticket open for months it went nowhere and I eventually just found a different company to host my servers who didn't have routing issues.
- steelegbr 5y agoSpot on. It gets messier when a failure in a T1 carrier between your CDN and a customer is causing issues. Neither of you (nor possibly even the CDN) has the power to fix it. Well, other than bypass the CDN and hope the traffic passes through different peers. On the up side, MTR is indeed a useful tool for finding the issue.
- andoma 5y agoSomehow this reminded me of this video [0]. I can’t really tell if it’s a joke or just complete cluelessness. But it’s kinda fun regardless. Edit: The article posted by OP is obviously high quality stuff, diving into MPLS, etc. [0] https://youtu.be/SXmv8quf_xM https://youtu.be/SXmv8quf_xM
- stuckkeys 5y agoSeems legit. I can now see who is all browsing my gf onlyfans page.
- ajb 5y agoThere actually an Ethernet level protocol which performs a similar function: https://en.m.wikipedia.org/wiki/IEEE_802.1ag https://en.m.wikipedia.org/wiki/IEEE_802.1ag (delay is measured using a sibling standard https://en.m.wikipedia.org/wiki/Y.1731 https://en.m.wikipedia.org/wiki/Y.1731) Unfortunately it's normally filtered out by telcos so you are unlikely to be able to use it to probe your telcos Ethernet. That's what they use to probe hops between actual routers though.
- tallytarik 5y ago> Unless packet loss or increased RTT is seen on every hop between a given hop and the end of the trace, it is not a problem. I once spent a month trying to argue this point to my ISP when they asked for mtr tests to diagnose a packet loss issue. My home router hop showed 90% ‘loss’ so they repeatedly refused to investigate on that basis. The problem turned out to be widespread across their wholesaler’s network, but of course, according to the ISP, I was the only complaint they had heard of. Over the course of two years the wholesaler was bought out and their network upgraded, which immediately solved the recurring packet loss. Surprise, surprise.
- addingnumbers 5y agoI had a similar problem with my ISP gateway giving spurious readings on a traceroute, to prevent other techs from getting distracted by it I started using `mtr --first-ttl=3 ...` to ignore the first two hops.
- gfv 5y agoThere's a pretty big difference between ICMP and UDP/TCP pings: UDP and TCP can and most likely will be load-balanced across multiple different links, as the 4-tuples change with every new packet. ICMP almost never is, so you only see a single route where there may be tens. If the network you're trying to debug is a) IPv4-only and b) not too wide, you may also find some utility in ping -R, which turns on the oft-forgotten but rarely firewalled IPv4 Record Route option, and that way you may get visibility into at least one of the return routes as well. Unfortunately, the IPv4 header can only record up to 9 hops, so it's less useful over the internet.
- Wintereise 5y agoRAS' (of nLayer/GTT/PacketFabric fame) presentation[0] about this same topic at NANOG47 is a lot more detailed. [0]: https://archive.nanog.org/meetings/nanog47/presentations/Sunday/RAS_Traceroute_N47_Sun.pdf https://archive.nanog.org/meetings/nanog47/presentations/Sun...
- advisedwang 5y agoThere's a slightly updated version at https://archive.nanog.org/sites/default/files/tuesday_steenbergen_troublshootingtraceroute_62.49.pdf https://archive.nanog.org/sites/default/files/tuesday_steenb...
- falsenapkin 5y agoMaybe a bit of a tangent but does anyone have a good recommendation for monitoring a networks upness? My home internet suffers quite a bit at random times, sometimes it's very local (noise between repeaters on my telephone line) and sometimes it's 2 or 3 hops away. I've taken to running mtr during problem times so I can have a beat on the flakiness as that informs me how much it will affect work/gaming/browsing, but it's not so great of a tool to run constantly and look back at historical data. I'd really rather have something that can log, doesn't even have to graph it. The problems I encounter go anywhere from blips of one way packet loss (I've been able to ping my IP from a server but not ping the same server from my apartment), latency randomly jumping 500ms, or full downtime. mtr is better than ping for this as I like to see whether the issue is happening on my line or further out, that usually informs how much noise I should make or how much time I have to kill.
- prettyStandard 5y agoI've used this. It's not everything I want but it's something I can show to the cable internet techs. https://loggger.com https://loggger.com
- maicro 5y agoSibling comment looks interesting, but two other options I've used are A) https://testmy.net/auto https://testmy.net/auto which lets you set up scheduled speed tests, and B) some manual hacky scripts running via cron on a Raspberry Pi. The latter is useful because you can run whatever combination of tests you want - there are CLI programs that run on a Pi for bandwidth/speed testing (I think speedtest.net has one specifically, but there are others, including at least one other that targets speedtest.net), mtr/traceroute/ping/etc. etc. can all be scripted, and if you get a bit clever with your pipes and sed scripts, you can end up with a file that can be directly loaded into a spreadsheet program for plotting (or you could go all-out and have the script generate a plot.ly plot directly). I've also plotted ambient temperature here, to maybe find any correlations. What might be the most useful for you is to find a metric on your router/modem that provides some value - years ago I was able to find a signal quality metric on my DSL modem that I could record programmatically (simple API call with a the simplest HTTP password encryption option...), which eventually lead to discovering that there were line filters/attenuators that had been installed but not removed for the different seasons.
- undert0wn 5y agolove this. I used to manage a Operations team at a datacenter and this is good reading for the front line support guys. This provides a good overview and points the direction for more reading to troubleshoot and diagnose a potential problem. well done.