TRACERT

(tracert)


该诊断实用程序将包含不同生存时间 (TTL) 值的 Internet 控制消息协议 (ICMP) 回显数据包发送到目标,以决定到达目标采用的路由。

要在转发数据包上的 TTL 之前至少递减 1,必需路径上的每个路由器,所以 TTL 是有效的跃点计数

数据包上的TTL 到达 0 时,路由器应该将“ICMP 已超时的消息发送回源系统

Tracert 先发送 TTL 1 的回显数据包,并在随后的每次发送过程将 TTL 递增 1,直到目标响应或 TTL 达到最大值,从而确定路由。

路由通过检查中级路由器发送回的“ICMP 已超时的消息来确定路由。不过,有些路由器悄悄地下传包含过期 TTL 值的数据包,而 tracert 看不到。

 

tracert [-d] [-h maximum_hops] [-j computer-list] [-w timeout] target_name

 

参数

 

/d 指定不将地址解析为计算机名。

 

-h maximum_hops 指定搜索目标的最大跃点数。

 

-j computer-list 指定沿 computer-list 的稀疏源路由。

 

-w timeout 每次应答等待 timeout 指定的微秒数。

 

target_name 目标计算机的名称

 


 

Usage: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] target_name

 

Options:

    -d                 Do not resolve addresses to hostnames.

    -h maximum_hops    Maximum number of hops to search for target.

    -j host-list       Loose source route along host-list.

-w timeout         Wait timeout milliseconds for each reply.