ping R ICMP協議研究

2021-09-19 18:13:30 字數 2757 閱讀 7464

icmp p i n g程式為我們提供了檢視 i p記錄路由( r r)選項的機會

ping 使用icmp協議,並只執行在ip網路層.

下面是tcpdump抓取的選項,rr選項是ping路由資訊,ip是出口位址.

[16:43 t ~]$ sudo tcpdump -ev icmp

[sudo] password for t:

tcpdump: listening on enp19s0, link-type en10mb (ethernet), capture size 262144 bytes

16:45:09.110818 18:03:73:67:c5:75 (oui unknown) > 00:00:5e:00:01:0c (oui unknown), ethertype ipv4 (0x0800), length 138: (tos 0x0, ttl 64, id 54241, offset 0, flags [df], proto icmp (1), length 124, options (nop,rr localhost.localdomain, 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0))

localhost.localdomain > home.inside.sky-mobi.com: icmp echo request, id 7140, seq 1, length 64

16:45:09.112104 68:ef:bd:08:3f:bf (oui unknown) > 18:03:73:67:c5:75 (oui unknown), ethertype ipv4 (0x0800), length 138: (tos 0x0, ttl 127, id 577, offset 0, flags [df], proto icmp (1), length 124, options (nop,rr localhost.localdomain, 172.16.2.2, home.inside.sky-mobi.com, 172.16.12.3, 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0))

home.inside.sky-mobi.com > localhost.localdomain: icmp echo reply, id 7140, seq 1, length 64

16:45:10.112267 18:03:73:67:c5:75 (oui unknown) > 00:00:5e:00:01:0c (oui unknown), ethertype ipv4 (0x0800), length 138: (tos 0x0, ttl 64, id 55000, offset 0, flags [df], proto icmp (1), length 124, options (nop,rr localhost.localdomain, 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0))

localhost.localdomain > home.inside.sky-mobi.com: icmp echo request, id 7140, seq 2, length 64

16:45:10.114050 68:ef:bd:08:3f:bf (oui unknown) > 18:03:73:67:c5:75 (oui unknown), ethertype ipv4 (0x0800), length 138: (tos 0x0, ttl 127, id 622, offset 0, flags [df], proto icmp (1), length 124, options (nop,rr localhost.localdomain, 172.16.2.2, home.inside.sky-mobi.com, 172.16.12.3, 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0))

home.inside.sky-mobi.com > localhost.localdomain: icmp echo reply, id 7140, seq 2, length 64

16:45:11.113256 18:03:73:67:c5:75 (oui unknown) > 00:00:5e:00:01:0c (oui unknown), ethertype ipv4 (0x0800), length 138: (tos 0x0, ttl 64, id 55378, offset 0, flags [df], proto icmp (1), length 124, options (nop,rr localhost.localdomain, 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0 0.0.0.0))

SWD協議研究

1.寫這個文章主要是介紹整理一下關於swd協議,感覺網上對它的介紹不多。再就是自己進行乙個學習記錄的總結。豐富一下網路的資料。正文 首先,swd協議是arm核心偵錯程式的一種通訊協議。st的微控制器stm32103系列的除錯埠可以是jtag或者是swd的埠。今天主要說一下用乙個微控制器的io口模擬s...

Android SyncML協議研究

syncml程式框架是建立在同步描述協議 syncml representation protocol 和同步協議 syncml synchronization protocol 兩個協議的基礎上的.同步描述協議定義了同步訊息 in xml 的格式描述和在同步框架內工作的細節.同步協議定義了同步客服...

MQTT協議學習研究

mqtt的學習研究 一 mqtt的學習研究 二 moquette mqtt 的使用之mqtt broker的啟動 mqtt的學習研究 三 moquette mqtt 的使用之mqtt服務發布主題.mqtt的學習研究 四 moquette mqtt 的使用之mqtt blocking api客戶.mq...