Live data from Hacker News

ICMP, Ping, and Traceroute – What I wish I was taught (2020)

xkln.net

31–40 of 40 posts

Re: ICMP, Ping, and Traceroute – What I wish I was taught (2020)

#31
post #30

Earlier quoted context omitted.

I wouldn't call the details he goes into with traceroute "just basics", its common even for network engineers to come to the wrong conclusion based on traceroute output, or not realising that they need more information to truly know what is going on (traceroute from both sides).

I would second this. I handle a lot of meetings and screenings for technical positions and quite a few Senior Network Administrators don't know or remember the basics for a lot of networking items and are completely lost when it comes to items like this. It is very much so a prevalent problem that many IT persons don't realize it's not only possible, but common to block ICMP entirely. For me, this has rendered ping u…

ICMP blocking is a very common thing. Thus tcping was born.

If you want to do any of these types of operations from Rust, you can use https://docs.rs/netdiag/latest/netdiag/. It's very good.

Re: ICMP, Ping, and Traceroute – What I wish I was taught (2020)

#32
ping and traceroute used to be very useful tools. Then for a period of time -- maybe still ongoing -- sysadmins and some network security folks decided that by blocking ALL ICMP at their network edge, they were increasing security. (Wrong!) As a result, you get hanging traceroutes with one or two hops left and you can't use ping to verify a host is online. Worse, blocking all ICMP breaks things like MTU discovery along the path. Recently I have seen admins coming to their senses and unblocking ICMP, but it's still an old rule-of-thumb held by many.

Re: ICMP, Ping, and Traceroute – What I wish I was taught (2020)

#33
post #8

Tip for tracerouters ... use mtr instead brew install mtr Try tapping 'd' twice to enable a stripchart ? for help My traceroute [v0.95] xxxxxxxx.local (172.16.0.2) -> news.ycombinator.com (50.1122022-07-27T23:37 Keys: Help Display mode Restart statistics Order of fields quit Packets Pings Host Loss% Snt Last Avg Best Wrst StDev 1. 172.16.0.1 0.0% 14 15.4 17.6 14.1 20.5 2.2 2. (waiting for reply) 3. 162.158.164.5 14.3…

    sudo apt install mtr-tiny

Re: ICMP, Ping, and Traceroute – What I wish I was taught (2020)

#34
post #8

Tip for tracerouters ... use mtr instead brew install mtr Try tapping 'd' twice to enable a stripchart ? for help My traceroute [v0.95] xxxxxxxx.local (172.16.0.2) -> news.ycombinator.com (50.1122022-07-27T23:37 Keys: Help Display mode Restart statistics Order of fields quit Packets Pings Host Loss% Snt Last Avg Best Wrst StDev 1. 172.16.0.1 0.0% 14 15.4 17.6 14.1 20.5 2.2 2. (waiting for reply) 3. 162.158.164.5 14.3…

why?

Re: ICMP, Ping, and Traceroute – What I wish I was taught (2020)

#35
Once cool trick that most people don't know is that you can also ping IP addresses in octal, hex, and integer!

https://ma.ttias.be/silly-little-ip-tricks/

  >ping 0x08080808
  
  Pinging 8.8.8.8 with 32 bytes of data:
  Reply from 8.8.8.8: bytes=32 time=4ms TTL=58
  Reply from 8.8.8.8: bytes=32 time=4ms TTL=58
  Reply from 8.8.8.8: bytes=32 time=4ms TTL=58
  Reply from 8.8.8.8: bytes=32 time=4ms TTL=58

Re: ICMP, Ping, and Traceroute – What I wish I was taught (2020)

#36
post #15

Earlier quoted context omitted.

There’s also WinMTR for Windows: https://github.com/White-Tiger/WinMTR

Last updated 9 years ago.

Windows has great backwards compatibility, so it still works like a charm.

Re: ICMP, Ping, and Traceroute – What I wish I was taught (2020)

#37
post #32

ping and traceroute used to be very useful tools. Then for a period of time -- maybe still ongoing -- sysadmins and some network security folks decided that by blocking ALL ICMP at their network edge, they were increasing security. (Wrong!) As a result, you get hanging traceroutes with one or two hops left and you can't use ping to verify a host is online. Worse, blocking all ICMP breaks things like MTU discovery alo…

I still keep it blocked for his reason: https://socfortress.medium.com/data-exfiltration-using-icmp-...

Re: ICMP, Ping, and Traceroute – What I wish I was taught (2020)

#38
post #8

Tip for tracerouters ... use mtr instead brew install mtr Try tapping 'd' twice to enable a stripchart ? for help My traceroute [v0.95] xxxxxxxx.local (172.16.0.2) -> news.ycombinator.com (50.1122022-07-27T23:37 Keys: Help Display mode Restart statistics Order of fields quit Packets Pings Host Loss% Snt Last Avg Best Wrst StDev 1. 172.16.0.1 0.0% 14 15.4 17.6 14.1 20.5 2.2 2. (waiting for reply) 3. 162.158.164.5 14.3…

No post body was provided.

Re: ICMP, Ping, and Traceroute – What I wish I was taught (2020)

#39
post #34
post #8

Tip for tracerouters ... use mtr instead brew install mtr Try tapping 'd' twice to enable a stripchart ? for help My traceroute [v0.95] xxxxxxxx.local (172.16.0.2) -> news.ycombinator.com (50.1122022-07-27T23:37 Keys: Help Display mode Restart statistics Order of fields quit Packets Pings Host Loss% Snt Last Avg Best Wrst StDev 1. 172.16.0.1 0.0% 14 15.4 17.6 14.1 20.5 2.2 2. (waiting for reply) 3. 162.158.164.5 14.3…

why?

Sorry, I should have said!

  • See the whole path fast - don't wait on one unresponsive hop to see "deeper" hosts
  • Run ongoing traces to get path quality (per-hop packet drop & latency min/max/avg)
  • Optional jitter statistics
  • Color "strip chart" view (press 'd' twice)
  • Drawback: need sudo, unlike trace route

Re: ICMP, Ping, and Traceroute – What I wish I was taught (2020)

#40
post #15
post #8

Tip for tracerouters ... use mtr instead brew install mtr Try tapping 'd' twice to enable a stripchart ? for help My traceroute [v0.95] xxxxxxxx.local (172.16.0.2) -> news.ycombinator.com (50.1122022-07-27T23:37 Keys: Help Display mode Restart statistics Order of fields quit Packets Pings Host Loss% Snt Last Avg Best Wrst StDev 1. 172.16.0.1 0.0% 14 15.4 17.6 14.1 20.5 2.2 2. (waiting for reply) 3. 162.158.164.5 14.3…

There’s also WinMTR for Windows: https://github.com/White-Tiger/WinMTR

Sadly WinMTR does not work properly anymore and is long abandoned.

The best alternative is a commercial product called PingPlotterPro. You can use it for free during a trial period.

Networking people generally don't use Windows much for troubleshooting. Windows networking behavior causes all kinds of problems and nobody wants to deal with that shit.

Post reply on HN