ICMPv6 Echo消息
用于检测IPv6网络连通性的Ping/Tracert,是通过发送ICMPv6 Echo (回显请求/应答)消息实现的。
一、 ICMPv6 Echo消息报文格式
+0-------7-------15---------------31
| Type | Code | Checksum |
+----------------------------------
| Identifier | Sequence Number|
+----------------------------------
| Data |
+---------------------------------+
二、ICMPv6 Echo消息报文格式解释
字段 | 长度 | 含义 |
---|---|---|
Type | 1字节 | 消息类型:
|
Code | 1字节 | 消息代码,此处值为0。 |
Checksum | 2字节 | 用来在ICMPv6报文中检验数据和部分IPv6首部的完整性。 |
Identifier | 4字节 | 请求与应答报文能够彼此匹配的一个标识,可能是全0。 |
Sequence Number | 4字节 | 请求与应答报文能够彼此匹配的一个标识,可能是全0。 |
Data | 变长 | 0或任意数据的8位组。 |
三、 ICMPv6 Echo(Ping)请求消息报文示例
Frame 1: 122 bytes on wire (976 bits), 122 bytes captured (976 bits)
Arrival Time: Jan 1, 1970 08:00:00.072927000
Epoch Time: 0.072927000 seconds
[Time delta from previous captured frame: 0.000000000 seconds]
[Time delta from previous displayed frame: 0.000000000 seconds]
[Time since reference or first frame: 0.000000000 seconds]
Frame Number: 1
Frame Length: 122 bytes (976 bits)
Capture Length: 122 bytes (976 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ipv6:icmpv6:data]
[Coloring Rule Name: ICMP]
[Coloring Rule String: icmp || icmpv6]
Ethernet II, Src: HuaweiTe_57:28:ca (00:18:82:57:28:ca), Dst: Spv_2b:cb:8e (38:c8:5c:2b:cb:8e)
Destination: Spv_2b:cb:8e (38:c8:5c:2b:cb:8e)
Address: Spv_2b:cb:8e (38:c8:5c:2b:cb:8e)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_57:28:ca (00:18:82:57:28:ca)
Address: HuaweiTe_57:28:ca (00:18:82:57:28:ca)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IPv6 (0x86dd)
Trailer: a15b641f
Internet Protocol Version 6, Src: 2001::1 (2001::1), Dst: 2001::2 (2001::2)
0110 .... = Version: 6
[0110 .... = This field makes the filter "ip.version == 6" possible: 6]
.... 0000 0000 .... .... .... .... .... = Traffic class: 0x00000000
.... 0000 00.. .... .... .... .... .... = Differentiated Services Field: Default (0x00000000)
.... .... ..0. .... .... .... .... .... = ECN-Capable Transport (ECT): Not set
.... .... ...0 .... .... .... .... .... = ECN-CE: Not set
.... .... .... 0000 0000 0000 0000 0000 = Flowlabel: 0x00000000
Payload length: 64
Next header: ICMPv6 (0x3a)
Hop limit: 64
Source: 2001::1 (2001::1)
[Source Teredo Server IPv4: 0.0.0.0 (0.0.0.0)]
[Source Teredo Port: 65535]
[Source Teredo Client IPv4: 255.255.255.254 (255.255.255.254)]
Destination: 2001::2 (2001::2)
[Destination Teredo Server IPv4: 0.0.0.0 (0.0.0.0)]
[Destination Teredo Port: 65535]
[Destination Teredo Client IPv4: 255.255.255.253 (255.255.255.253)]
Internet Control Message Protocol v6
Type: Echo (ping) request (128)
Code: 0
Checksum: 0xb01b [correct]
Identifier: 0xabce
Sequence: 1
Data (56 bytes)
Data: 23f432fa000102030405060708090a0b0c0d0e0f10111213...
[Length: 56]
四、 ICMPv6 Echo应答消息报文示例
Frame 1: 122 bytes on wire (976 bits), 122 bytes captured (976 bits)
Arrival Time: Jan 1, 1970 08:00:00.072982000
Epoch Time: 0.072982000 seconds
[Time delta from previous captured frame: 0.000000000 seconds]
[Time delta from previous displayed frame: 0.000000000 seconds]
[Time since reference or first frame: 0.000000000 seconds]
Frame Number: 1
Frame Length: 122 bytes (976 bits)
Capture Length: 122 bytes (976 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ipv6:icmpv6:data]
[Coloring Rule Name: ICMP]
[Coloring Rule String: icmp || icmpv6]
Ethernet II, Src: Spv_2b:cb:8e (38:c8:5c:2b:cb:8e), Dst: HuaweiTe_57:28:ca (00:18:82:57:28:ca)
Destination: HuaweiTe_57:28:ca (00:18:82:57:28:ca)
Address: HuaweiTe_57:28:ca (00:18:82:57:28:ca)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: Spv_2b:cb:8e (38:c8:5c:2b:cb:8e)
Address: Spv_2b:cb:8e (38:c8:5c:2b:cb:8e)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IPv6 (0x86dd)
Trailer: ac00687c
Internet Protocol Version 6, Src: 2001::2 (2001::2), Dst: 2001::1 (2001::1)
0110 .... = Version: 6
[0110 .... = This field makes the filter "ip.version == 6" possible: 6]
.... 0000 0000 .... .... .... .... .... = Traffic class: 0x00000000
.... 0000 00.. .... .... .... .... .... = Differentiated Services Field: Default (0x00000000)
.... .... ..0. .... .... .... .... .... = ECN-Capable Transport (ECT): Not set
.... .... ...0 .... .... .... .... .... = ECN-CE: Not set
.... .... .... 0000 0000 0000 0000 0000 = Flowlabel: 0x00000000
Payload length: 64
Next header: ICMPv6 (0x3a)
Hop limit: 64
Source: 2001::2 (2001::2)
[Source Teredo Server IPv4: 0.0.0.0 (0.0.0.0)]
[Source Teredo Port: 65535]
[Source Teredo Client IPv4: 255.255.255.253 (255.255.255.253)]
Destination: 2001::1 (2001::1)
[Destination Teredo Server IPv4: 0.0.0.0 (0.0.0.0)]
[Destination Teredo Port: 65535]
[Destination Teredo Client IPv4: 255.255.255.254 (255.255.255.254)]
Internet Control Message Protocol v6
Type: Echo (ping) reply (129)
Code: 0
Checksum: 0xaf1b [correct]
Identifier: 0xabce
Sequence: 1
Data (56 bytes)
Data: 23f432fa000102030405060708090a0b0c0d0e0f10111213...
[Length: 56]
五、ICMPv6 Echo协议栈结构
ICMPv6消息封装在IPv6报文中,IPv6首部携带了一个或多个IPv6扩展头,扩展头中的Next Header字段值为58(0x3a)。
发表评论