Ping(判断主机是否可达)是通过发送接收ICMP报文来实现的。
Traceroute(记录整个路由过程)是通过发送UDP报文+TTL生存时间,接收ICMP报文实现的。

1、Ping程序介绍
Ping和Traceroute程序介绍

2、Ping程序报文格式
Ping和Traceroute程序介绍

3、Ping程序记录路由功能
虽然window不能直接使用-R命令来查看,我们也可以分析下这个过程
Ping和Traceroute程序介绍

Traceroute是通过发送UDP报文+TTL生存时间,接收ICMP报文实现的。
1、Traceroute程序简介
Ping和Traceroute程序介绍

2、Traceroute程序运行的原理
Ping和Traceroute程序介绍

3、Traceroute程序运行的过程
Ping和Traceroute程序介绍

4、用ping来实现traceroute的功能
Traceroute其实也可以通过ping加上了ttl设置来完成
在window上-i参数貌似不能实现,因为例如ping www.baidu.com , ttl设置为2,并不能收到第二个路由的ip地址,所以行不通,但是window有tracert命令可以使用。
在android上-t参数就可以。
Ping和Traceroute程序介绍

QA
Ping和Traceroute程序介绍

相关文章:

  • 2022-12-23
  • 2021-06-29
  • 2021-05-23
  • 2022-12-23
  • 2021-06-13
  • 2021-09-24
  • 2021-07-18
猜你喜欢
  • 2021-12-20
  • 2022-02-04
  • 2021-11-19
  • 2021-07-18
  • 2021-12-13
  • 2022-02-02
  • 2021-09-05
相关资源
相似解决方案