ICMPv6路由器请求RS(Router Solicitation)消息
主机启动后,通过ICMPv6路由器请求RS(Router Solicitation)消息报文向路由设备发出请求,路由设备则会以RA报文响应。
一、ICMPv6路由器请求消息报文格式
+0-------7-------15---------------31
| Type | Code | Checksum |
+----------------------------------
| Reserved |
+----------------------------------
| Options... |
+---------------------------------+
二、ICMPv6路由器请求消息报文格式解释
字段 | 长度 | 含义 |
---|---|---|
Type | 1字节 | 消息类型,此处值为133。 |
Code | 1字节 | 该ICMPv6差错报文的始发者必须将该字段置为0,且接收端忽略该字段。 |
Checksum | 2字节 | 用来在ICMPv6报文中检验数据和部分IPv6首部的完整性。 |
Reserved | 4字节 | 此字段不使用。它必须由发送者初始化为0,接收者必须忽略它。 |
Options | 可变 | 选项
|
三、ICMPv6路由器请求消息报文示例
Frame 1: 70 bytes on wire (560 bits), 70 bytes captured (560 bits)
Arrival Time: Sep 25, 2012 11:25:59.423091000
Epoch Time: 1348543559.423091000 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: 70 bytes (560 bits)
Capture Length: 70 bytes (560 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: HuaweiTe_01:00:0a (00:18:82:01:00:0a), Dst: IPv6mcast_00:00:00:02 (33:33:00:00:00:02)
Destination: IPv6mcast_00:00:00:02 (33:33:00:00:00:02)
Address: IPv6mcast_00:00:00:02 (33:33:00:00:00:02)
.... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
.... ..1. .... .... .... .... = LG bit: Locally administered address (this is NOT the factory default)
Source: HuaweiTe_01:00:0a (00:18:82:01:00:0a)
Address: HuaweiTe_01:00:0a (00:18:82:01:00:0a)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IPv6 (0x86dd)
Internet Protocol Version 6, Src: fe80::218:82ff:fe01:a (fe80::218:82ff:fe01:a), Dst: ff02::2 (ff02::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: 16
Next header: ICMPv6 (0x3a)
Hop limit: 255
Source: fe80::218:82ff:fe01:a (fe80::218:82ff:fe01:a)
[Source SA MAC: HuaweiTe_01:00:0a (00:18:82:01:00:0a)]
Destination: ff02::2 (ff02::2)
Internet Control Message Protocol v6
Type: Router Solicitation (133)
Code: 0
Checksum: 0x76e7 [correct]
Reserved: 00000000
ICMPv6 Option (Source link-layer address : 00:18:82:01:00:0a)
Type: Source link-layer address (1)
Length: 1 (8 bytes)
Link-layer address: HuaweiTe_01:00:0a (00:18:82:01:00:0a)
发表评论