Part 1 什么是Traceroute
traceroute,现代Linux系统称为tracepath,Windows系统称为tracert,是一种电脑网络工具。它可显示数据包在IP网络经过的路由器的IP地址。
通过以上维基百科定义,这是一种追ip的工具。在CSE 461: Introduction to Computer Communication Networks课程的中,traceroute是一种 probes successsive hops to find network path 的工具。直接上图:
Part 2 什么是hop
那么hop指的是是什么呢?hop英文翻译为跳跃;跃点。在上图中,hop指的就是数据包从Local host到remote host中间经过的中间媒介,也就是所谓的路由。
Part 3 如何使用traceroute
直接贴图:
第一列代表的是hop number;
第二列至第四列表示的是round trip time,这是指,数据包从local host 到各个hop往返的一个时间。为何有三列是因为,为了确保一致性,local host 会发送三个数据包进行一个验证。
第五列展示的是数据包从local host 到 remote host所经过的router的ip地址或者是name;
reference:CSE 461: Introduction to Computer Communication Networks;