本帖最后由 P0wer 于 2012-9-10 13:25 编辑
gmx168 发表于 2012-9-10 09:19
我是试图从工具开发者那里找找解释,但未果,看来得查标准化文档了。
Wikipedia上Traceroute词条有这么一段话:
On Unix-like operating systems, the traceroute utility by default uses User Datagram Protocol (UDP) datagrams with destination port numbers from 33434 to 33534.The traceroute utility usually has an option to specify use of ICMP echo request (type 8) instead, as used by the Windows tracert utility. If a network has a firewall and operates both MS Windows and Unix-like systems, both protocols must be enabled inbound through the firewall.
所以说Tracert不会返回Wan端口的IP。
补充看楼下25楼,Wiki里面只是说Unix,没说Windows用的是UDP报。
猜测一下,Tracert是路由返回数据报,而ping是记录数据报,很可能是这个区别造成的。Ping -r是显示路由的IP地址。ping数据报经过一个路由,路由器把自己ip放到该数据报中。而目的主机则会把这个ip列表复制到回应icmp数据包中发回。。。 |