Project

General

Profile

Feature #8504

traceroute should warn when name services are slow

Added by Robert Mustacchi almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
2017-07-18
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

As we've seen in cases like 6211 and 8503, when name services are not working, understanding what's going on in the system can be very confusing. In the case of traceroute, it may appear to the end user that they can't actually reach the end point, when it's actually the opposite – that they reached it just fine. In this case, what we'd like to do is warn once so the user has a hope of understanding what's going on. If this isn't functioning because something else is going on, then we wouldn't end up having any warnings.

History

#1

Updated by Robert Mustacchi almost 3 years ago

To test this we blocked name services from working and ran traceroute:

[root@haswell ~]# traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 40 byte packets
 1 traceroute: warning: responses received, but name service lookups are taking a while. Use traceroute -n to disable name service lookups.
 172.20.0.1 (172.20.0.1)  0.214 ms  0.260 ms  0.178 ms
 2  10.34.1.254 (10.34.1.254)  0.537 ms  0.628 ms  0.401 ms
 3  208.184.5.169 (208.184.5.169)  0.838 ms  0.911 ms  0.748 ms
 4  64.125.26.21 (64.125.26.21)  2.811 ms  2.735 ms  1.956 ms
 5  64.125.31.15 (64.125.31.15)  2.024 ms  2.306 ms  2.127 ms
 6  64.125.13.111 (64.125.13.111)  2.015 ms  2.180 ms  2.039 ms
 7  108.170.242.81 (108.170.242.81)  2.658 ms 108.170.242.241 (108.170.242.241)  2.686 ms  2.753 ms
 8  216.239.49.83 (216.239.49.83)  2.827 ms 216.239.58.195 (216.239.58.195)  3.199 ms 216.239.56.121 (216.239.56.121)  3.097 ms
 9 ^C

I also ran traceroute without DNS services blocked and everything operated fine. While blocked I also used the -n flag and verified that traceroute worked as expected.

#2

Updated by Electric Monk almost 3 years ago

  • Status changed from New to Closed

git commit afee3dc66d7b1fb4aaedced0814360f4334bc2c0

commit  afee3dc66d7b1fb4aaedced0814360f4334bc2c0
Author: Robert Mustacchi <rm@joyent.com>
Date:   2017-08-08T19:21:49.000Z

    8503 snoop seems to delay packets doing DNS resolution
    8504 traceroute should warn when name services are slow
    8505 netstat should warn when name services are slow
    8506 ping name service warnings should only happen once
    Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
    Reviewed by: Dan McDonald <danmcd@joyent.com>
    Reviewed by: Yuri Pankov <yuripv@gmx.com>
    Approved by: Gordon Ross <gwr@nexenta.com>

Also available in: Atom PDF