ICMPv6邻居请求NS(Neighbor Solicitation)消息
IPv6节点通过邻居请求NS(Neighbor Solicitation)消息可以得到邻居的链路层地址,检查邻居是否可达,也可以进行重复地址检测。
一、ICMPv6邻居请求消息报文格式
+0-------7-------15---------------31
| Type | Code | Checksum |
+----------------------------------
| Reserved |
+----------------------------------
| Target Address |
+----------------------------------
| Options... |
+---------------------------------+
二、ICMPv6邻居请求消息报文格式解释
字段 | 长度 | 含义 |
---|---|---|
Type | 1字节 | 消息类型,此处值为135。 |
Code | 1字节 | 该ICMPv6差错报文的始发者必须将该字段置为0,且接收端忽略该字段。 |
Checksum | 2字节 | 用来在ICMPv6报文中检验数据和部分IPv6首部的完整性。 |
Reserved | 4字节 | 此字段不使用。它必须由发送者初始化为0,接收者必须忽略它。 |
Target Address | 16字节 | 请求的目标的IP地址。它必须不是多播地址。 |
Options | 可变 | 选项:
|
三、ICMPv6邻居请求消息报文示例
Frame 1: 86 bytes on wire (688 bits), 86 bytes captured (688 bits)
Arrival Time: Sep 25, 2012 11:24:31.033068000
Epoch Time: 1348543471.033068000 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: 86 bytes (688 bits)
Capture Length: 86 bytes (688 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ipv6:icmpv6]
[Coloring Rule Name: ICMP]
[Coloring Rule String: icmp || icmpv6]
Ethernet II, Src: 00:46:4b:d8:28:c7 (00:46:4b:d8:28:c7), Dst: RealtekS_88:5a:81 (00:e0:4c:88:5a:81)
Destination: RealtekS_88:5a:81 (00:e0:4c:88:5a:81)
Address: RealtekS_88:5a:81 (00:e0:4c:88:5a:81)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: 00:46:4b:d8:28:c7 (00:46:4b:d8:28:c7)
Address: 00:46:4b:d8:28:c7 (00:46:4b:d8:28:c7)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IPv6 (0x86dd)
Internet Protocol Version 6, Src: fe80::246:4bff:fed8:28c7 (fe80::246:4bff:fed8:28c7), Dst: 2008::230 (2008::230)
0110 .... = Version: 6
[0110 .... = This field makes the filter "ip.version == 6" possible: 6]
.... 1100 0000 .... .... .... .... .... = Traffic class: 0x000000c0
.... 1100 00.. .... .... .... .... .... = Differentiated Services Field: Class Selector 6 (0x00000030)
.... .... ..0. .... .... .... .... .... = ECN-Capable Transport (ECT): Not set
.... .... ...0 .... .... .... .... .... = ECN-CE: Not set
.... .... .... 0000 0000 0000 0000 0000 = Flowlabel: 0x00000000
Payload length: 32
Next header: ICMPv6 (0x3a)
Hop limit: 255
Source: fe80::246:4bff:fed8:28c7 (fe80::246:4bff:fed8:28c7)
[Source SA MAC: 00:46:4b:d8:28:c7 (00:46:4b:d8:28:c7)]
Destination: 2008::230 (2008::230)
Internet Control Message Protocol v6
Type: Neighbor Solicitation (135)
Code: 0
Checksum: 0x49e8 [correct]
Reserved: 00000000
Target Address: 2008::230 (2008::230)
ICMPv6 Option (Source link-layer address : 00:46:4b:d8:28:c7)
Type: Source link-layer address (1)
Length: 1 (8 bytes)
Link-layer address: 00:46:4b:d8:28:c7 (00:46:4b:d8:28:c7)
发表评论