Modify

Opened 22 months ago

Last modified 22 months ago

#22240 new defect

traceroute -I uses UDP instead of ICMP packets

Reported by: aheckmann@… Owned by: developers
Priority: normal Milestone:
Component: base system Version: Chaos Calmer 15.05
Keywords: traceroute icmp Cc:

Description

The traceroute -I does not use ICMP packages (as noted in the docs). Instead it uses the default UDP packages. Since on many boxes UDP packets are silently discarded, a traceroute is not possible. The possibility to use ICMP in such cases would be great.

UDP based traceroute on openwrt

root@OPENWRT-AP1:~# traceroute -w 1 heise.de
traceroute to heise.de (193.99.144.80), 30 hops max, 38 byte packets

1 192.168.249.254 (192.168.249.254) 0.746 ms 0.703 ms 0.749 ms
2 217.0.117.227 (217.0.117.227) 24.394 ms 25.342 ms 24.796 ms
3 * * *
4 217.239.52.122 (217.239.52.122) 27.657 ms 27.618 ms 27.708 ms
5 * * *
6 82.98.102.17 (82.98.102.17) 27.632 ms 27.791 ms 27.608 ms
7 * * *
8 * * *
9 * * *

10 * * C

-I also uses UDP based traceroute on openwrt

root@OPENWRT-AP1:~# traceroute -w 1 -I heise.de
traceroute to heise.de (193.99.144.80), 30 hops max, 38 byte packets

1 192.168.249.254 (192.168.249.254) 0.534 ms 0.419 ms 0.376 ms
2 217.0.117.227 (217.0.117.227) 24.742 ms 24.640 ms 24.426 ms
3 * * *
4 217.239.52.122 (217.239.52.122) 27.361 ms 27.581 ms 27.302 ms
5 * * *
6 82.98.102.17 (82.98.102.17) 27.601 ms 27.839 ms 27.626 ms
7 * * *
8 * * *
9 * * C

ICMP based traceroute on Windows

C:\Windows\system32>tracert -d heise.de

Routenverfolgung zu heise.de [193.99.144.80]
über maximal 30 Hops:

1 <1 ms <1 ms <1 ms 192.168.249.254
2 24 ms 24 ms 24 ms 217.0.117.227
3 26 ms 26 ms 27 ms 217.237.155.74
4 27 ms 27 ms 27 ms 217.239.52.122
5 28 ms 28 ms 28 ms 217.243.218.222
6 28 ms 28 ms 27 ms 82.98.102.17
7 27 ms 27 ms 27 ms 212.19.61.13
8 28 ms 27 ms 28 ms 193.99.144.80

BusyBox traceroute options

BusyBox v1.23.2 (2015-07-25 15:09:46 CEST) multi-call binary.

Usage: traceroute [-FIldnrv] [-f 1ST_TTL] [-m MAXTTL] [-p PORT] [-q PROBES]

[-s SRC_IP] [-t TOS] [-w WAIT_SEC] [-g GATEWAY] [-i IFACE]
[-z PAUSE_MSEC] HOST [BYTES]

Trace the route to HOST

-F Set the don't fragment bit
-I Use ICMP ECHO instead of UDP datagrams
-l Display the TTL value of the returned packet
-d Set SO_DEBUG options to socket
-n Print numeric addresses
-r Bypass routing tables, send directly to HOST
-v Verbose
-m Max time-to-live (max number of hops)
-p Base UDP port number used in probes

(default 33434)

-q Number of probes per TTL (default 3)
-s IP address to use as the source address
-t Type-of-service in probe packets (default 0)
-w Time in seconds to wait for a response (default 3)
-g Loose source route gateway (8 max)

Attachments (0)

Change History (2)

comment:1 Changed 22 months ago by aheckmann@…

Maybe it has something to do with the compile flag BUSYBOX_CONFIG_FEATURE_TRACEROUTE_USE_ICMP=y

/ticket/9212.html

comment:2 Changed 22 months ago by anonymous

any reason why this is set=y ?
if not
+1 change

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.