RSVP报文格式
RSVP(Resource Reservation Protocol),资源预留协议,工作在传输层,但不参与应用数据的传送,是一种网络上的控制协议,类似于ICMP。各类消息都包含一个通用头部,随后是多个可变长度、类型的消息对象。
一、RSVP报文消息格式
0 1 2 3
+------+------+-------------+---------------------------+
| Vers | Flags| Msg Type | RSVP Checksum |
+------+------+-------------+---------------------------+
| Send_TTL | Reserved | RSVP Length |
+-------------+-------------+---------------------------+
| |
~ Objects ~
| |
+-------------------------------------------------------+
二、RSVP报文消息格式解释
字段 | 长度 | 描述 |
---|---|---|
Vers | 4比特 | RSVP版本号,当前版本为1。 |
Flags | 4比特 | 标识位,一般值为0。RFC2961扩展其用来标识是否支持摘要刷新(Srefresh)。如果支持Srefresh,则Flags置为0x01。 |
Message Type | 8比特 | 表示消息的类别,下面列出一些类别:
|
RSVP Checksum | 16比特 | 表示RSVP的校验和,值为消息的补码的反码。如果值为0,表示消息传输过程中不进行检验和检查。 |
Send TTL | 8比特 | IPv4的TTL的值,随报文一起发送。当节点接收到RSVP消息时,通过比较Send_TTL和IP首部的TTL值可以计算出该报文在非RSVP域中经过的跳数。 |
Reserved | 8比特 | 保留。 |
RSVP Length | 16比特 | 报文总长度,包括公共头及后面的TLV objects,以字节为单位。 |
Objects | 变长 |
消息对象。每个RSVP消息都包含多个对象。不同类型的消息,包含的对象不同。消息对象格式如下: 0 1 2 3 +---------------------------+-------------+-------------+ | Length (bytes) | Class-Num | C-Type | +---------------------------+-------------+-------------+ | | // (Object contents) // | | +---------------------------+---------------------------+
|
三、RSVP报文对象类型编码
Class Num | Class Name | 描述 |
---|---|---|
0 | NULL | 它的长度至少为4,但是可以是任意4的倍数。NULL对象可以出现在对象序列中的任意位置,它的内容会被接收者忽略掉。 |
1 | SESSION | RSVP会话相关信息,包括:Destination Address、Tunnel ID、Extend Tunnel ID。
|
2 | - | unassigned |
3 | RSVP_HOP | 发送Path消息的上一跳的出接口地址和接口句柄。
|
4 | INTEGRITY | 携带了验证源节点的加密数据,它用于验证这个RSVP消息的内容。 |
5 | TIME_VALUES | 包含了消息创建者使用的刷新周期,在每个Path消息和Resv消息中必须存在。
Class = 5,C-Type = 1:TIME_VALUES Object |
6 | ERROR_SPEC |
指定了在PathErr、ResvErr消息中的Error,或者在ResvConf消息中的确认。
错误码的值及对应的含义如下:
|
7 | SCOPE | 携带了一个朝向信息转发方向的发送者主机的显式列表。可能出现在Resv、ResvErr或者ResvTear消息中。
|
8 | STYLE | 定义了预留风格和在FLOWSPEC或者FILTER_SPEC对象中没有提及的指定风格的信息。在每个Resv消息中必须存在。
Class = 8, C-Type = 1: STYLE object |
9 | FLOWSPEC | 指明了数据流的QoS特征,存在于Resv消息中。
|
10 | FILTER_SPEC | 发送节点的IP地址和LSP ID,存在于Resv消息中。
|
11 | SENDER_TEMPLATE | 指定了发送节点的IP地址和LSP ID,存在于Path消息中。(将会成为Resv消息中的FILTERSPEC对象的内容。)
|
12 | SENDER_TSPEC | 指明了数据流的流量特征。存在于Path消息中。(将会成为Resv消息中的FLOWSPEC对象的内容。)
Class = 12, C-Type = 2: Intserv SENDER_TSPEC object |
13 | ADSPEC | 用于收集路径上的实际QoS相关参数,例如,路径带宽估计、最小路径时延、Path MTU。存在于Path消息中。
Class = 13, C-Type = 2: Intserv ADSPEC object |
14 | POLICY_DATA | 携带了允许一个本地策略模块来决定一个相关的预留是否是可管理的许可的信息。可能出现在Path、Resv、PathErr或者ResvErr消息中。
Class = 14, C-Type = 1: Type 1 POLICY_DATA object |
15 | RESV_CONFIRM | 预留确认请求,携带了请求预留确认的节点的IP地址。
|
16 | RSVP_LABEL | 表示分配的标签。
Class = 16, C-Type = 1: Type 1 Label |
19 | LABEL_REQUEST | 标识LABEL_REQUEST对象,只在Path消息中携带。
|
20 | EXPLICIT_ROUTE |
ERO(Explicit Route Object)描述LSP经过的路径信息,可以为严格显式路径也可以是松散显式路径。Path消息沿ERO指定的路径转发,不受IGP最短路径约束。 ERO包含了包含了C-Type=1的子对象:
|
21 | ROUTE_RECORD |
RRO(Record Route Object)记录了Path消息实际途经的LSR的列表。RRO可用于收集实际的路径信息,发现路由环路,还可以被复制到下一条Path消息中以实现路由锁定。 RRO包含了C-Type=1的子对象:
|
22 | HELLO |
C_Type = 1: HELLO REQUEST对象 C_Type = 2 : HELLO ACK对象 |
207 | SESSION_ATTRIBUTE | 指定了建立优先级、保持优先级、预留风格、亲和属性等属性。
|
四、RSVP Hello消息报文示例
Frame 1: 68 bytes on wire (544 bits), 68 bytes captured (544 bits)
Encapsulation type: Ethernet (1)
Arrival Time: Jan 1, 1970 08:00:00.063823000
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 0.063823000 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: 68 bytes (544 bits)
Capture Length: 68 bytes (544 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:vlan:ethertype:ip:rsvp]
[Coloring Rule Name: TTL low or unexpected]
[Coloring Rule String: ( ! ip.dst == 224.0.0.0/4 && ip.ttl < 5 && !pim) || (ip.dst == 224.0.0.0/24 && ip.dst != 224.0.0.251 && ip.ttl != 1 && !(vrrp || carp))]
Ethernet II, Src: 08:19:a6:25:fd:88 (08:19:a6:25:fd:88), Dst: 54:89:98:74:e4:08 (54:89:98:74:e4:08)
Destination: 54:89:98:74:e4:08 (54:89:98:74:e4:08)
Address: 54:89:98:74:e4:08 (54:89:98:74:e4:08)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Source: 08:19:a6:25:fd:88 (08:19:a6:25:fd:88)
Address: 08:19:a6:25:fd:88 (08:19:a6:25:fd:88)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Type: 802.1Q Virtual LAN (0x8100)
802.1Q Virtual LAN, PRI: 6, CFI: 0, ID: 412
110. .... .... .... = Priority: Voice, < 10ms latency and jitter (6)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = ID: 412
Type: IP (0x0800)
Padding: 0000
Trailer: 00000000a2de825d
Internet Protocol Version 4, Src: 10.8.12.1 (10.8.12.1), Dst: 10.8.12.2 (10.8.12.2)
Version: 4
Header Length: 20 bytes
Differentiated Services Field: 0xc0 (DSCP 0x30: Class Selector 6; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
1100 00.. = Differentiated Services Codepoint: Class Selector 6 (0x30)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 40
Identification: 0x3010 (12304)
Flags: 0x00
0... .... = Reserved bit: Not set
.0.. .... = Don't fragment: Not set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 1
[Expert Info (Note/Sequence): "Time To Live" only 1]
["Time To Live" only 1]
[Severity level: Note]
[Group: Sequence]
Protocol: Reservation Protocol (46)
Header checksum: 0x62c6 [validation disabled]
[Good: False]
[Bad: False]
Source: 10.8.12.1 (10.8.12.1)
Destination: 10.8.12.2 (10.8.12.2)
[Source GeoIP: Unknown]
[Destination GeoIP: Unknown]
Resource ReserVation Protocol (RSVP): HELLO Message.
RSVP Header. HELLO Message.
0001 .... = RSVP Version: 1
.... 0000 = Flags: 0x00
Message Type: HELLO Message. (20)
Message Checksum: 0x0e2b [correct]
Sending TTL: 1
Message length: 20
HELLO Request/Ack: REQUEST. Src Instance: 0xb3ca8882. Dest Instance: 0x7c36121c.
Length: 12
Object class: HELLO object (22)
C-Type: 1 - HELLO REQUEST object
Source Instance: 0xb3ca8882
Destination Instance: 0x7c36121c
五、RSVP Path消息报文示例
Frame 1: 254 bytes on wire (2032 bits), 254 bytes captured (2032 bits)
Encapsulation type: Ethernet (1)
Arrival Time: Jan 1, 1970 08:00:00.013051000
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 0.013051000 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: 254 bytes (2032 bits)
Capture Length: 254 bytes (2032 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:ip:rsvp]
Ethernet II, Src: 00:98:01:40:00:02 (00:98:01:40:00:02), Dst: 00:18:82:57:28:ca (00:18:82:57:28:ca)
Destination: 00:18:82:57:28:ca (00:18:82:57:28:ca)
Address: 00:18:82:57:28:ca (00:18:82:57:28:ca)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Source: 00:98:01:40:00:02 (00:98:01:40:00:02)
Address: 00:98:01:40:00:02 (00:98:01:40:00:02)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Type: IP (0x0800)
Trailer: 44a11d53
Internet Protocol Version 4, Src: 10.46.0.123 (10.46.0.123), Dst: 10.5.5.5 (10.5.5.5)
Version: 4
Header Length: 24 bytes
Differentiated Services Field: 0xc0 (DSCP 0x30: Class Selector 6; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
1100 00.. = Differentiated Services Codepoint: Class Selector 6 (0x30)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 236
Identification: 0x2092 (8338)
Flags: 0x00
0... .... = Reserved bit: Not set
.0.. .... = Don't fragment: Not set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 254
Protocol: Reservation Protocol (46)
Header checksum: 0xf0da [validation disabled]
[Good: False]
[Bad: False]
Source: 10.46.0.123 (10.46.0.123)
Destination: 10.5.5.5 (10.5.5.5)
[Source GeoIP: Unknown]
[Destination GeoIP: Unknown]
Options: (4 bytes), Router Alert
Router Alert (4 bytes): Router shall examine packet (0)
Type: 148
1... .... = Copy on fragmentation: Yes
.00. .... = Class: Control (0)
...1 0100 = Number: Router Alert (20)
Length: 4
Router Alert: Router shall examine packet (0)
Resource ReserVation Protocol (RSVP): PATH Message. SESSION: IPv4-LSP, Destination 10.5.5.5, Tunnel ID 1001, Ext ID a2e007b. SENDER TEMPLATE: IPv4-LSP, Tunnel Source: 10.46.0.123, LSP ID: 2.
0001 .... = RSVP Version: 1
.... 0000 = Flags: 0x00
Message Type: PATH Message. (1)
Message Checksum: 0xb37e [correct]
Sending TTL: 254
Message length: 212
SESSION: IPv4-LSP, Destination 10.5.5.5, Tunnel ID 1001, Ext ID a2e007b.
Length: 16
Object class: SESSION object (1)
C-type: 7 - IPv4 LSP
Destination address: 10.5.5.5 (5.5.5.5)
Tunnel ID: 1001
Extended Tunnel ID: 170786939 (10.46.0.123)
TIME VALUES: 30000 ms
Length: 8
Object class: TIME VALUES object (5)
C-type: 1
Refresh interval: 30000 ms (30 seconds)
SENDER TSPEC: IntServ, Token Bucket, 0 bytes/sec.
Length: 36
Object class: SENDER TSPEC object (12)
C-type: 2 - Integrated Services
0000 .... = Message format version: 0
Data length: 7 words, not including header
Service header: Traffic specification (1)
Length of service 1 data: 6 words, not including header
Token Bucket TSpec: Rate=0 Burst=1000 Peak=0 m=0 M=1500
Parameter 127 - Token bucket
Parameter 127 flags: 0x00
Parameter 127 data length: 5 words, not including header
Token bucket rate: 0
Token bucket size: 1000
Peak data rate: 0
Minimum policed unit [m]: 0
Maximum packet size [M]: 1500
SESSION ATTRIBUTE: SetupPrio 7, HoldPrio 7, Local Protection, Label Recording, SE Style, Node Protection, [Tunnel0/0/0]
Length: 32
Object class: SESSION ATTRIBUTE object (207)
C-type: 1 - IPv4 LSP (Resource Affinities)
Exclude-Any: 0x00000000
Include-Any: 0x00000000
Include-All: 0x00000000
Setup priority: 7
Hold priority: 7
Flags: 0x17
.... ...1 = Local protection: Desired
.... ..1. = Label recording: Desired
.... .1.. = SE style: Desired
.... 0... = Bandwidth protection: Not Desired
...1 .... = Node protection: Desired
Name length: 11
Name: Tunnel0/0/0
ADSPEC
Length: 48
Object class: ADSPEC object (13)
C-type: 2
0000 .... = Message format version: 0
Data length: 10 words, not including header
Default General Parameters
Service header: Default General Parameters (1)
Break bit not set
Data length: 8 words, not including header
IS Hop Count - 1 (type 4, length 1)
Path b/w estimate - 1250000 (type 6, length 1)
Minimum path latency - 0 (type 8, length 1)
Composed MTU - 1500 (type 10, length 1)
Controlled Load
Service header: Controlled Load (5)
Break bit not set
Data length: 0 words, not including header
LABEL REQUEST: Basic: L3PID: IP (0x0800)
Length: 8
Object class: LABEL REQUEST object (19)
C-type: 1
L3PID: IP (0x0800)
HOP: IPv4, 111.0.0.1
Length: 12
Object class: HOP object (3)
C-type: 1 - IPv4
Neighbor address: 10.0.0.1 (10.0.0.1)
Logical interface: 50
SENDER TEMPLATE: IPv4-LSP, Tunnel Source: 10.46.0.123, LSP ID: 2.
Length: 12
Object class: SENDER TEMPLATE object (11)
C-type: 7 - IPv4 LSP
Sender IPv4 address: 10.46.0.123 (10.46.0.123)
Sender LSP ID: 2
EXPLICIT ROUTE: IPv4 10.0.0.2
Length: 12
Object class: EXPLICIT ROUTE object (20)
C-type: 1
IPv4 Subobject - 10.0.0.2, Strict
Strict Hop
Type: 1 (IPv4)
Length: 8
IPv4 hop: 10.0.0.2 (10.0.0.2)
Prefix length: 32
RECORD ROUTE: IPv4 10.0.0.1, IPv4 10.46.0.123
Length: 20
Object class: RECORD ROUTE object (21)
C-type: 1
IPv4 Subobject - 10.0.0.1
Type: 1 (IPv4)
Length: 8
IPv4 hop: 10.0.0.1 (10.0.0.1)
Prefix length: 32
Flags: 0x00
.... ...0 = Local Protection: Not available
.... ..0. = Local Protection: Not used
.... .0.. = Bandwidth Protection: Not available
.... 0... = Node Protection: Not available
...0 .... = Address Specifies a Node-id Address: No
IPv4 Subobject - 10.46.0.123
Type: 1 (IPv4)
Length: 8
IPv4 hop: 10.46.0.123 (10.46.0.123)
Prefix length: 32
Flags: 0x20
.... ...0 = Local Protection: Not available
.... ..0. = Local Protection: Not used
.... .0.. = Bandwidth Protection: Not available
.... 0... = Node Protection: Not available
...0 .... = Address Specifies a Node-id Address: No
六、RSVP Path Tear消息报文示例
Frame 1: 126 bytes on wire (1008 bits), 126 bytes captured (1008 bits)
Encapsulation type: Ethernet (1)
Arrival Time: Jan 1, 1970 08:00:00.013008000
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 0.013008000 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: 126 bytes (1008 bits)
Capture Length: 126 bytes (1008 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:ip:rsvp]
Ethernet II, Src: 00:98:01:40:00:02 (00:98:01:40:00:02), Dst: 00:18:82:57:28:ca (00:18:82:57:28:ca)
Destination: 00:18:82:57:28:ca (00:18:82:57:28:ca)
Address: 00:18:82:57:28:ca (00:18:82:57:28:ca)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Source: 00:98:01:40:00:02 (00:98:01:40:00:02)
Address: 00:98:01:40:00:02 (00:98:01:40:00:02)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Type: IP (0x0800)
Trailer: 8973408c
Internet Protocol Version 4, Src: 10.46.0.123 (10.46.0.123), Dst: 10.5.5.5 (10.5.5.5)
Version: 4
Header Length: 24 bytes
Differentiated Services Field: 0xc0 (DSCP 0x30: Class Selector 6; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
1100 00.. = Differentiated Services Codepoint: Class Selector 6 (0x30)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 108
Identification: 0x2090 (8336)
Flags: 0x00
0... .... = Reserved bit: Not set
.0.. .... = Don't fragment: Not set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 254
Protocol: Reservation Protocol (46)
Header checksum: 0xf15c [validation disabled]
[Good: False]
[Bad: False]
Source: 10.46.0.123 (10.46.0.123)
Destination: 10.5.5.5 (10.5.5.5)
[Source GeoIP: Unknown]
[Destination GeoIP: Unknown]
Options: (4 bytes), Router Alert
Router Alert (4 bytes): Router shall examine packet (0)
Type: 148
1... .... = Copy on fragmentation: Yes
.00. .... = Class: Control (0)
...1 0100 = Number: Router Alert (20)
Length: 4
Router Alert: Router shall examine packet (0)
Resource ReserVation Protocol (RSVP): PATH TEAR Message. SESSION: IPv4-LSP, Destination 10.5.5.5, Tunnel ID 1001, Ext ID a2e007b. SENDER TEMPLATE: IPv4-LSP, Tunnel Source: 10.46.0.123, LSP ID: 1.
RSVP Header. PATH TEAR Message.
0001 .... = RSVP Version: 1
.... 0000 = Flags: 0x00
Message Type: PATH TEAR Message. (1)
Message Checksum: 0x7966 [correct]
Sending TTL: 254
Message length: 84
SESSION: IPv4-LSP, Destination 10.5.5.5, Tunnel ID 1001, Ext ID a2e007b.
Length: 16
Object class: SESSION object (1)
C-type: 7 - IPv4 LSP
Destination address: 10.5.5.5 (10.5.5.5)
Tunnel ID: 1001
Extended Tunnel ID: 170786939 (10.46.0.123)
HOP: IPv4, 111.0.0.1
Length: 12
Object class: HOP object (3)
C-type: 1 - IPv4
Neighbor address: 10.0.0.1 (10.0.0.1)
Logical interface: 50
SENDER TEMPLATE: IPv4-LSP, Tunnel Source: 10.46.0.123, LSP ID: 1.
Length: 12
Object class: SENDER TEMPLATE object (11)
C-type: 7 - IPv4 LSP
Sender IPv4 address: 10.46.0.123 (10.46.0.123)
Sender LSP ID: 1
SENDER TSPEC: IntServ, Token Bucket, 0 bytes/sec.
Length: 36
Object class: SENDER TSPEC object (12)
C-type: 2 - Integrated Services
0000 .... = Message format version: 0
Data length: 7 words, not including header
Service header: Traffic specification (1)
Length of service 1 data: 6 words, not including header
Token Bucket TSpec: Rate=0 Burst=1000 Peak=0 m=0 M=1500
Parameter 127 - Token bucket
Parameter 127 flags: 0x00
Parameter 127 data length: 5 words, not including header
Token bucket rate: 0
Token bucket size: 1000
Peak data rate: 0
Minimum policed unit [m]: 0
Maximum packet size [M]: 1500
七、RSVP Resv消息报文示例
Frame 1: 182 bytes on wire (1456 bits), 182 bytes captured (1456 bits)
Encapsulation type: Ethernet (1)
Arrival Time: Jan 1, 1970 08:00:00.092600000
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 0.092600000 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: 182 bytes (1456 bits)
Capture Length: 182 bytes (1456 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:ip:rsvp]
Ethernet II, Src: 00:98:01:40:00:02 (00:98:01:40:00:02), Dst: 00:18:82:57:28:ca (00:18:82:57:28:ca)
Destination: 00:18:82:57:28:ca (00:18:82:57:28:ca)
Address: 00:18:82:57:28:ca (00:18:82:57:28:ca)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Source: 00:98:01:40:00:02 (00:98:01:40:00:02)
Address: 00:98:01:40:00:02 (00:98:01:40:00:02)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Type: IP (0x0800)
Trailer: acbffb83
Internet Protocol Version 4, Src: 10.0.0.1 (10.0.0.1), Dst: 10.0.0.2 (10.0.0.2)
Version: 4
Header Length: 20 bytes
Differentiated Services Field: 0xc0 (DSCP 0x30: Class Selector 6; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
1100 00.. = Differentiated Services Codepoint: Class Selector 6 (0x30)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 164
Identification: 0x2086 (8326)
Flags: 0x00
0... .... = Reserved bit: Not set
.0.. .... = Don't fragment: Not set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 255
Protocol: Reservation Protocol (46)
Header checksum: 0xbbe2 [validation disabled]
[Good: False]
[Bad: False]
Source: 10.0.0.1 (10.0.0.1)
Destination: 10.0.0.2 (10.0.0.2)
[Source GeoIP: Unknown]
[Destination GeoIP: Unknown]
Resource ReserVation Protocol (RSVP): RESV Message. SESSION: IPv4-LSP, Destination 10.46.0.123, Tunnel ID 1001, Ext ID 5050505. FILTERSPEC: IPv4-LSP, Tunnel Source: 10.5.5.5, LSP ID: 2.
RSVP Header. RESV Message.
0001 .... = RSVP Version: 1
.... 0000 = Flags: 0x00
Message Type: RESV Message. (1)
Message Checksum: 0x0cc3 [correct]
Sending TTL: 255
Message length: 144
SESSION: IPv4-LSP, Destination 10.46.0.123, Tunnel ID 1001, Ext ID 5050505.
Length: 16
Object class: SESSION object (1)
C-type: 7 - IPv4 LSP
Destination address: 10.46.0.123 (10.46.0.123)
Tunnel ID: 1001
Extended Tunnel ID: 84215045 (10.5.5.5)
HOP: IPv4, 111.0.0.1
Length: 12
Object class: HOP object (3)
C-type: 1 - IPv4
Neighbor address: 111.0.0.1 (10.0.0.1)
Logical interface: 130
TIME VALUES: 30000 ms
Length: 8
Object class: TIME VALUES object (5)
C-type: 1
Refresh interval: 30000 ms (30 seconds)
STYLE: Shared-Explicit (18)
Length: 8
Object class: STYLE object (8)
C-type: 1
Flags: 0x00
Style: Shared-Explicit (0x000012)
FLOWSPEC: Controlled Load: Token Bucket, 0 bytes/sec.
Length: 36
Object class: FLOWSPEC object (9)
C-type: 2
0000 .... = Message format version: 0
Data length: 7 words, not including header
Service header: Controlled Load (5)
Length of service 5 data: 6 words, not including header
Token Bucket: Rate=0 Burst=1000 Peak=0 m=0 M=1500
Parameter 127 - Token bucket
Parameter 127 flags: 0x00
Parameter 127 data length: 5 words, not including header
Token bucket rate: 0
Token bucket size: 1000
Peak data rate: 0
Minimum policed unit [m]: 0
Maximum packet size [M]: 1500
FILTERSPEC: IPv4-LSP, Tunnel Source: 5.5.5.5, LSP ID: 2.
Length: 12
Object class: FILTER SPEC object (10)
C-type: 7 - IPv4 LSP
Sender IPv4 address: 5.5.5.5 (5.5.5.5)
Sender LSP ID: 2
LABEL: 3
Length: 8
Object class: LABEL object (16)
C-type: 1 (Packet Label)
Label: 3
RECORD ROUTE: IPv4 10.0.0.1, Label 3, IPv4 10.46.0.123,
Length: 36
Object class: RECORD ROUTE object (21)
C-type: 1
IPv4 Subobject - 10.0.0.1
Type: 1 (IPv4)
Length: 8
IPv4 hop: 10.0.0.1 (10.0.0.1)
Prefix length: 32
Flags: 0x40
.... ...0 = Local Protection: Not available
.... ..0. = Local Protection: Not used
.... .0.. = Bandwidth Protection: Not available
.... 0... = Node Protection: Not available
...0 .... = Address Specifies a Node-id Address: No
Label Subobject - 3, The label will be understood if received on any interface
Type: 3 (Label)
Length: 8
Flags: 0x01
.... ...1 = Global label: True
C-type: 1
Label: 3
IPv4 Subobject - 10.46.0.123
Type: 1 (IPv4)
Length: 8
IPv4 hop: 10.46.0.123 (10.46.0.123)
Prefix length: 32
Flags: 0x20
.... ...0 = Local Protection: Not available
.... ..0. = Local Protection: Not used
.... .0.. = Bandwidth Protection: Not available
.... 0... = Node Protection: Not available
...0 .... = Address Specifies a Node-id Address: No
Label Subobject - 3, The label will be understood if received on any interface
Type: 3 (Label)
Length: 8
Flags: 0x01
.... ...1 = Global label: True
C-type: 1
Label: 3
八、RSVP Resv-Tear消息报文示例
Frame 1: 134 bytes on wire (1072 bits), 134 bytes captured (1072 bits)
Encapsulation type: Ethernet (1)
Arrival Time: Jan 1, 1970 08:00:00.002229000
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 0.002229000 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: 134 bytes (1072 bits)
Capture Length: 134 bytes (1072 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:vlan:ethertype:ip:rsvp]
Ethernet II, Src: 54:89:98:74:e4:08 (54:89:98:74:e4:08), Dst: 08:19:a6:25:fd:88 (08:19:a6:25:fd:88)
Destination: 08:19:a6:25:fd:88 (08:19:a6:25:fd:88)
Address: 08:19:a6:25:fd:88 (08:19:a6:25:fd:88)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Source: 54:89:98:74:e4:08 (54:89:98:74:e4:08)
Address: 54:89:98:74:e4:08 (54:89:98:74:e4:08)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Type: 802.1Q Virtual LAN (0x8100)
802.1Q Virtual LAN, PRI: 6, CFI: 0, ID: 412
110. .... .... .... = Priority: Voice, < 10ms latency and jitter (6)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = ID: 412
Type: IP (0x0800)
Trailer: 3a22d48d
Internet Protocol Version 4, Src: 10.8.12.2 (10.8.12.2), Dst: 10.8.12.1 (10.8.12.1)
Version: 4
Header Length: 20 bytes
Differentiated Services Field: 0xc0 (DSCP 0x30: Class Selector 6; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
1100 00.. = Differentiated Services Codepoint: Class Selector 6 (0x30)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 112
Identification: 0xf59a (62874)
Flags: 0x00
0... .... = Reserved bit: Not set
.0.. .... = Don't fragment: Not set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 255
Protocol: Reservation Protocol (46)
Header checksum: 0x9ef2 [validation disabled]
[Good: False]
[Bad: False]
Source: 10.8.12.2 (10.8.12.2)
Destination: 10.8.12.1 (10.8.12.1)
[Source GeoIP: Unknown]
[Destination GeoIP: Unknown]
Resource ReserVation Protocol (RSVP): RESV TEAR Message. SESSION: IPv4-LSP, Destination 10.0.0.43, Tunnel ID 1, Ext ID ab000029. FILTERSPEC: IPv4-LSP, Tunnel Source: 10.0.0.41, LSP ID: 3.
RSVP Header. RESV TEAR Message.
0001 .... = RSVP Version: 1
.... 0000 = Flags: 0x00
Message Type: RESV TEAR Message. (1)
Message Checksum: 0xee0a [correct]
Sending TTL: 255
Message length: 92
SESSION: IPv4-LSP, Destination 10.0.0.43, Tunnel ID 1, Ext ID ab000029.
Length: 16
Object class: SESSION object (1)
C-type: 7 - IPv4 LSP
Destination address: 10.0.0.43 (10.0.0.43)
Tunnel ID: 1
Extended Tunnel ID: 2868903977 (10.0.0.41)
HOP: IPv4, 10.8.12.2
Length: 12
Object class: HOP object (3)
C-type: 1 - IPv4
Neighbor address: 10.8.12.2 (10.8.12.2)
Logical interface: 36
STYLE: Shared-Explicit (18)
Length: 8
Object class: STYLE object (8)
C-type: 1
Flags: 0x00
Style: Shared-Explicit (0x000012)
FLOWSPEC: Controlled Load: Token Bucket, 0 bytes/sec.
Length: 36
Object class: FLOWSPEC object (9)
C-type: 2
0000 .... = Message format version: 0
Data length: 7 words, not including header
Service header: Controlled Load (5)
Length of service 5 data: 6 words, not including header
Token Bucket: Rate=0 Burst=1000 Peak=0 m=0 M=1500
Parameter 127 - Token bucket
Parameter 127 flags: 0x00
Parameter 127 data length: 5 words, not including header
Token bucket rate: 0
Token bucket size: 1000
Peak data rate: 0
Minimum policed unit [m]: 0
Maximum packet size [M]: 1500
FILTERSPEC: IPv4-LSP, Tunnel Source: 10.0.0.41, LSP ID: 3.
Length: 12
Object class: FILTER SPEC object (10)
C-type: 7 - IPv4 LSP
Sender IPv4 address: 10.0.0.41 (10.0.0.41)
Sender LSP ID: 3
发表评论