MPLS Ping/Tracert (MPLS Echo)报文
MPLS LSP Ping/Tracert通过发送MPLS Echo消息实现。
一、MPLS LSP Echo报文格式
+0--------------7--------------15--------------23-------------31
| Version Number | Must Be Zero |
+--------------------------------------------------------------|
| Message Type | Reply mode | Return Code | Return subcode|
+--------------------------------------------------------------|
| Sender's Handle |
+--------------------------------------------------------------|
| Sequence Number |
+--------------------------------------------------------------|
| Timestamp(Sent seconds) |
+--------------------------------------------------------------|
| Timestamp(Sent microseconds) |
+--------------------------------------------------------------|
| Timestamp(Received seconds) |
+--------------------------------------------------------------|
| Timestamp(Received microseconds) |
+--------------------------------------------------------------|
| TLVs(...) |
+--------------------------------------------------------------|
二、MPLS LSP Echo报文格式释义
字段 | 长度 | 含义 |
---|---|---|
Version Number | 2字节 | 标识MPLS Echo的版本号,目前为1。 |
Must Be Zero | 2字节 | 必须填全0,接收时忽略。. |
Message Type | 1字节 | 标识该MPLS Echo消息的类型:
|
Reply mode | 1字节 | 指示Reply Router采用什么方式回应这个消息:
|
Return Code | 1字节 | 发送端设置为0,接收端可以设置为如下值之一(摘自RFC 4379):
|
Return subcode | 1字节 | 该字段包含了标签栈的处理结束的指针。如果其值为0,标识报文没有携带标签,不需要处理标签。否则,报文携带了标签。 |
Sender's Handle | 4字节 | 发送者句柄,是用来标识一个MPLS Echo的,其值是在应用程序发送一个MPLS Echo Request时随机生成的。单次的LSP Ping操作可以产生多个Echo Request,但是这些Echo Request所包含的Sender’s Handle的值是相同,即单次LSP Ping操作仅能产生一个Sender’s Handle的Echo Request。 |
Sequence Number | 4字节 | 序列号,用来标识MPLS Echo的,它是一个进程的概念,进程内有效,可以用来检测丢失的Reply的个数,从而可以对网络进行延时和抖动统计。单次LSP Ping操作可以产生多个Sequence Number,其值一般从零开始逐一递增。 |
Timestamp | 4字节 | 时间戳,采用NTP协议的时间格式,包含两部分:收到的时间戳和发送时间戳;可以用来计算报文从一个节点到另一个节点所需要花费的时间。 |
TLVs | 可变 | TLV (Type, Length, Value),类型值及对应的含义如下(摘自RFC 4379):
Length: Value字段的长度,以字节为计数单位。 Value: 取决于Type的取值,如果TLV不足4字节的整数倍,需要填充。 |
三、MPLS LSP ping request报文示例
Frame 1: 158 bytes on wire (1264 bits), 158 bytes captured (1264 bits)
Arrival Time: Jan 1, 1970 08:00:00.091867000
Epoch Time: 0.091867000 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: 158 bytes (1264 bits)
Capture Length: 158 bytes (1264 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:mpls:pwethheuristic:pwethcw:ip:udp:mpls-echo]
[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.ttl != 1)]
Ethernet II (VLAN tagged), Src: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88), Dst: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Destination: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Address: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Address: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
VLAN tag: VLAN=412, Priority=Voice, < 10ms latency and jitter
Identifier: 802.1Q Virtual LAN (0x8100)
110. .... .... .... = Priority: Voice, < 10ms latency and jitter (6)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = VLAN: 412
Type: MPLS label switched packet (0x8847)
MultiProtocol Label Switching Header, Label: 1129, Exp: 0, S: 1, TTL: 255
MPLS Label: 1129
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 1
MPLS TTL: 255
Internet Protocol Version 4, Src: 10.8.12.1 (10.8.12.1), Dst: 127.0.0.1 (127.0.0.1)
Version: 4
Header length: 24 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 132
Identification: 0x2189 (8585)
Flags: 0x02 (Don't Fragment)
0... .... = Reserved bit: Not set
.1.. .... = Don't fragment: Set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 1
[Expert Info (Note/Sequence): "Time To Live" only 1]
[Message: "Time To Live" only 1]
[Severity level: Note]
[Group: Sequence]
Protocol: UDP (17)
Header checksum: 0x30d2 [correct]
[Good: True]
[Bad: False]
Source: 10.8.12.1 (10.8.12.1)
Destination: 127.0.0.1 (127.0.0.1)
Options: (4 bytes)
Router Alert: Every router examines packet
User Datagram Protocol, Src Port: 31000 (31000), Dst Port: lsp-ping (3503)
Source port: 31000 (31000)
Destination port: lsp-ping (3503)
Length: 108
Checksum: 0xac1c [validation disabled]
[Good Checksum: False]
[Bad Checksum: False]
Multiprotocol Label Switching Echo
Version: 1
Global Flags: 0x0000
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Request (1)
Reply Mode: Reply via an IPv4/IPv6 UDP packet (2)
Return Code: No return code (0)
Return Subcode: 0
Sender's Handle: 0x00000000
Sequence Number: 1
Timestamp Sent: Jan 23, 2013 15:54:46.000215000 UTC
Timestamp Received: Jan 1, 1970 00:00:00.000000000 UTC
Target FEC Stack
Type: Target FEC Stack (1)
Length: 12
FEC Element 1: LDP IPv4 prefix
Type: LDP IPv4 prefix (1)
Length: 5
IPv4 Prefix: 10.0.0.43 (10.0.0.43)
Prefix Length: 32
Padding
Pad
Type: Pad (3)
Length: 48
Pad Action: Copy Pad TLV to reply (2)
Padding: 4142434445464748494a4b4c4d4e4f505152535455565758...
四、MPLS LSP ping reply报文示例
Frame 1: 150 bytes on wire (1200 bits), 150 bytes captured (1200 bits)
Arrival Time: Jan 1, 1970 08:00:00.092129000
Epoch Time: 0.092129000 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: 150 bytes (1200 bits)
Capture Length: 150 bytes (1200 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ip:udp:mpls-echo]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II (VLAN tagged), Src: HuaweiTe_74:e4:08 (54:89:98:74:e4:08), Dst: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Destination: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Address: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Address: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
VLAN tag: VLAN=412, Priority=Voice, < 10ms latency and jitter
Identifier: 802.1Q Virtual LAN (0x8100)
110. .... .... .... = Priority: Voice, < 10ms latency and jitter (6)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = VLAN: 412
Type: IP (0x0800)
Trailer: 6b1b746e
Internet Protocol Version 4, Src: 10.0.0.43 (10.0.0.43), Dst: 10.8.12.1 (10.8.12.1)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 128
Identification: 0x0000 (0)
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: UDP (17)
Header checksum: 0xfe38 [correct]
[Good: True]
[Bad: False]
Source: 10.0.0.43 (10.0.0.43)
Destination: 10.8.12.1 (10.8.12.1)
User Datagram Protocol, Src Port: lsp-ping (3503), Dst Port: 31000 (31000)
Source port: lsp-ping (3503)
Destination port: 31000 (31000)
Length: 108
Checksum: 0x0000 (none)
[Good Checksum: False]
[Bad Checksum: False]
Multiprotocol Label Switching Echo
Version: 1
Global Flags: 0x0000
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Reply (2)
Reply Mode: Reply via an IPv4/IPv6 UDP packet (2)
Return Code: Replying router is an egress for the FEC at stack depth RSC (3)
Return Subcode: 1
Sender's Handle: 0x00000000
Sequence Number: 1
Timestamp Sent: Jan 23, 2013 15:54:46.000215000 UTC
Timestamp Received: Jan 24, 2013 15:53:19.000099000 UTC
Target FEC Stack
Type: Target FEC Stack (1)
Length: 12
FEC Element 1: LDP IPv4 prefix
Type: LDP IPv4 prefix (1)
Length: 5
IPv4 Prefix: 10.0.0.43 (10.0.0.43)
Prefix Length: 32
Padding
Pad
Type: Pad (3)
Length: 48
Pad Action: Copy Pad TLV to reply (2)
Padding: 4142434445464748494a4b4c4d4e4f505152535455565758...
五、 MPLS TE ping request报文示例
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Request (1)
Reply Mode: Reply via an IPv4/IPv6 UDP packet (2)
Return Code: No return code (0)
Return Subcode: 0
Sender's Handle: 0x00000005
Sequence Number: 2
Timestamp Sent: Jan 23, 2013 20:42:58.000133000 UTC
Timestamp Received: Jan 1, 1970 00:00:00.000000000 UTC
Target FEC Stack
Type: Target FEC Stack (1)
Length: 24
FEC Element 1: RSVP IPv4 Session Query
Type: RSVP IPv4 Session Query (3)
Length: 20
IPv4 Tunnel endpoint address: 10.0.0.43 (10.0.0.43)
Must Be Zero: 0
Tunnel ID: 1
Extended Tunnel ID: 0xAB000029 (10.0.0.41)
IPv4 Tunnel sender address: 10.0.0.41 (10.0.0.41)
Must Be Zero: 0
LSP ID: 3
Pad
Type: Pad (3)
Length: 36
Pad Action: Copy Pad TLV to reply (2)
Padding: 4142434445464748494a4b4c4d4e4f505152535455565758...
六、MPLS TE ping reply报文示例
Frame 1: 150 bytes on wire (1200 bits), 150 bytes captured (1200 bits)
Arrival Time: Jan 1, 1970 08:00:00.073343000
Epoch Time: 0.073343000 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: 150 bytes (1200 bits)
Capture Length: 150 bytes (1200 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ip:udp:mpls-echo]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II (VLAN tagged), Src: HuaweiTe_74:e4:08 (54:89:98:74:e4:08), Dst: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Destination: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Address: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Address: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
VLAN tag: VLAN=412, Priority=Voice, < 10ms latency and jitter
Identifier: 802.1Q Virtual LAN (0x8100)
110. .... .... .... = Priority: Voice, < 10ms latency and jitter (6)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = VLAN: 412
Type: IP (0x0800)
Trailer: 7b74b2e9
Internet Protocol Version 4, Src: 10.0.0.43 (10.0.0.43), Dst: 10.8.12.1 (10.8.12.1)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 128
Identification: 0x0000 (0)
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: UDP (17)
Header checksum: 0xfe38 [correct]
[Good: True]
[Bad: False]
Source: 10.0.0.43 (10.0.0.43)
Destination: 10.8.12.1 (10.8.12.1)
User Datagram Protocol, Src Port: lsp-ping (3503), Dst Port: 31005 (31005)
Source port: lsp-ping (3503)
Destination port: 31005 (31005)
Length: 108
Checksum: 0x0000 (none)
[Good Checksum: False]
[Bad Checksum: False]
Multiprotocol Label Switching Echo
Version: 1
Global Flags: 0x0000
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Reply (2)
Reply Mode: Reply via an IPv4/IPv6 UDP packet (2)
Return Code: Replying router is an egress for the FEC at stack depth RSC (3)
Return Subcode: 1
Sender's Handle: 0x00000005
Sequence Number: 2
Timestamp Sent: Jan 23, 2013 20:42:58.000133000 UTC
Timestamp Received: Jan 24, 2013 20:41:31.000039000 UTC
Target FEC Stack
Type: Target FEC Stack (1)
Length: 24
FEC Element 1: RSVP IPv4 Session Query
Type: RSVP IPv4 Session Query (3)
Length: 20
IPv4 Tunnel endpoint address: 10.0.0.43 (10.0.0.43)
Must Be Zero: 0
Tunnel ID: 1
Extended Tunnel ID: 0xAB000029 (10.0.0.41)
IPv4 Tunnel sender address: 10.0.0.41 (10.0.0.41)
Must Be Zero: 0
LSP ID: 3
Pad
Type: Pad (3)
Length: 36
Pad Action: Copy Pad TLV to reply (2)
Padding: 4142434445464748494a4b4c4d4e4f505152535455565758...
七、VCCV ping request报文示例
Frame 1: 166 bytes on wire (1328 bits), 166 bytes captured (1328 bits)
Arrival Time: Jan 1, 1970 08:00:00.009894000
Epoch Time: 0.009894000 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: 166 bytes (1328 bits)
Capture Length: 166 bytes (1328 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:mpls:pwethheuristic:pwethcw:ip:udp:mpls-echo]
[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.ttl != 1)]
Ethernet II (VLAN tagged), Src: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88), Dst: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Destination: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Address: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Address: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
VLAN tag: VLAN=412, Priority=Voice, < 10ms latency and jitter
Identifier: 802.1Q Virtual LAN (0x8100)
110. .... .... .... = Priority: Voice, < 10ms latency and jitter (6)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = VLAN: 412
Type: MPLS label switched packet (0x8847)
MultiProtocol Label Switching Header, Label: 1127, Exp: 0, S: 0, TTL: 255
MPLS Label: 1127
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 0
MPLS TTL: 255
MultiProtocol Label Switching Header, Label: 1097, Exp: 0, S: 1, TTL: 255
MPLS Label: 1097
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 1
MPLS TTL: 255
PW Associated Channel Header
Version: 0
Channel Type: IPv4 packet (0x0021)
Internet Protocol Version 4, Src: 10.0.0.41 (10.0.0.41), Dst: 127.0.0.1 (127.0.0.1)
Version: 4
Header length: 24 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 132
Identification: 0x000a (10)
Flags: 0x02 (Don't Fragment)
0... .... = Reserved bit: Not set
.1.. .... = Don't fragment: Set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 1
[Expert Info (Note/Sequence): "Time To Live" only 1]
[Message: "Time To Live" only 1]
[Severity level: Note]
[Group: Sequence]
Protocol: UDP (17)
Header checksum: 0xba30 [correct]
[Good: True]
[Bad: False]
Source: 10.0.0.41 (10.0.0.41)
Destination: 127.0.0.1 (127.0.0.1)
Options: (4 bytes)
Router Alert: Every router examines packet
User Datagram Protocol, Src Port: 31010 (31010), Dst Port: lsp-ping (3503)
Source port: 31010 (31010)
Destination port: lsp-ping (3503)
Length: 108
Checksum: 0x0000 (none)
[Good Checksum: False]
[Bad Checksum: False]
Multiprotocol Label Switching Echo
Version: 1
Global Flags: 0x0000
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Request (1)
Reply Mode: Reply via an IPv4/IPv6 UDP packet (2)
Return Code: No return code (0)
Return Subcode: 0
Sender's Handle: 0x0000000a
Sequence Number: 1
Timestamp Sent: Jan 24, 2013 19:04:41.000044000 UTC
Timestamp Received: Jan 1, 1970 00:00:00.000000000 UTC
Target FEC Stack
Type: Target FEC Stack (1)
Length: 20
FEC Element 1: FEC 128 Pseudowire (new)
Type: FEC 128 Pseudowire (new) (10)
Length: 14
Sender's PE Address: 10.0.0.41 (10.0.0.41)
Remote PE Address: 10.0.0.43 (10.0.0.43)
VC ID: 2001
Encapsulation: Ethernet VLAN (4)
MBZ: 0x0000
Padding
Pad
Type: Pad (3)
Length: 40
Pad Action: Copy Pad TLV to reply (2)
Padding: 000000000000000000000000000000000000000000000000...
八、VCCV ping reply报文示例
Frame 1: 150 bytes on wire (1200 bits), 150 bytes captured (1200 bits)
Arrival Time: Jan 1, 1970 08:00:00.010526000
Epoch Time: 0.010526000 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: 150 bytes (1200 bits)
Capture Length: 150 bytes (1200 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ip:udp:mpls-echo]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II (VLAN tagged), Src: HuaweiTe_74:e4:08 (54:89:98:74:e4:08), Dst: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Destination: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Address: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Address: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
VLAN tag: VLAN=412, Priority=Best Effort (default)
Identifier: 802.1Q Virtual LAN (0x8100)
000. .... .... .... = Priority: Best Effort (default) (0)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = VLAN: 412
Type: IP (0x0800)
Trailer: c5b44c08
Internet Protocol Version 4, Src: 10.0.0.43 (10.0.0.43), Dst: 10.0.0.41 (10.0.0.41)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 128
Identification: 0x0000 (0)
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: UDP (17)
Header checksum: 0x6618 [correct]
[Good: True]
[Bad: False]
Source: 10.0.0.43 (10.0.0.43)
Destination: 10.0.0.41 (10.0.0.41)
User Datagram Protocol, Src Port: lsp-ping (3503), Dst Port: 31010 (31010)
Source port: lsp-ping (3503)
Destination port: 31010 (31010)
Length: 108
Checksum: 0x0000 (none)
[Good Checksum: False]
[Bad Checksum: False]
Multiprotocol Label Switching Echo
Version: 1
Global Flags: 0x0000
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Reply (2)
Reply Mode: Reply via an IPv4/IPv6 UDP packet (2)
Return Code: Replying router is an egress for the FEC at stack depth RSC (3)
Return Subcode: 1
Sender's Handle: 0x0000000a
Sequence Number: 1
Timestamp Sent: Jan 24, 2013 19:04:41.000044000 UTC
Timestamp Received: Jan 25, 2013 19:03:14.000052000 UTC
Target FEC Stack
Type: Target FEC Stack (1)
Length: 20
FEC Element 1: FEC 128 Pseudowire (new)
Type: FEC 128 Pseudowire (new) (10)
Length: 14
Sender's PE Address: 10.0.0.41 (10.0.0.41)
Remote PE Address: 10.0.0.43 (10.0.0.43)
VC ID: 2001
Encapsulation: Ethernet VLAN (4)
MBZ: 0x0000
Padding
Pad
Type: Pad (3)
Length: 40
Pad Action: Copy Pad TLV to reply (2)
Padding: 000000000000000000000000000000000000000000000000...
九、VPLS MAC Ping Request报文示例
Frame 1: 222 bytes on wire (1776 bits), 222 bytes captured (1776 bits)
Arrival Time: Jan 1, 1970 08:00:00.000405000
Epoch Time: 0.000405000 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: 222 bytes (1776 bits)
Capture Length: 222 bytes (1776 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:mpls:pwethheuristic:pwethnocw:eth:ip:udp:mpls-echo]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II (VLAN tagged), Src: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88), Dst: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Destination: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Address: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Address: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
VLAN tag: VLAN=412, Priority=Voice, < 10ms latency and jitter
Identifier: 802.1Q Virtual LAN (0x8100)
110. .... .... .... = Priority: Voice, < 10ms latency and jitter (6)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = VLAN: 412
Type: MPLS label switched packet (0x8847)
MultiProtocol Label Switching Header, Label: 1127, Exp: 0, S: 0, TTL: 255
MPLS Label: 1127
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 0
MPLS TTL: 255
MultiProtocol Label Switching Header, Label: 1 (Router Alert), Exp: 0, S: 0, TTL: 255
MPLS Label: 1 (Router Alert)
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 0
MPLS TTL: 255
MultiProtocol Label Switching Header, Label: 1099, Exp: 0, S: 1, TTL: 255
MPLS Label: 1099
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 1
MPLS TTL: 255
Ethernet II, Src: HuaweiTe_25:fd:80 (08:19:a6:25:fd:80), Dst: 00:00:00_00:00:01 (00:00:00:00:00:01)
Destination: 00:00:00_00:00:01 (00:00:00:00:00:01)
Address: 00:00:00_00:00:01 (00:00:00:00:00:01)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_25:fd:80 (08:19:a6:25:fd:80)
Address: HuaweiTe_25:fd:80 (08:19:a6:25:fd:80)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IP (0x0800)
Trailer: 0ebe28af
Internet Protocol Version 4, Src: 10.0.0.41 (10.0.0.41), Dst: 127.0.0.1 (127.0.0.1)
Version: 4
Header length: 24 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 174
Identification: 0x0000 (0)
Flags: 0x02 (Don't Fragment)
0... .... = Reserved bit: Not set
.1.. .... = Don't fragment: Set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 255
Protocol: UDP (17)
Header checksum: 0xbc0f [correct]
[Good: True]
[Bad: False]
Source: 10.0.0.41 (10.0.0.41)
Destination: 127.0.0.1 (127.0.0.1)
Options: (4 bytes)
Router Alert: Every router examines packet
User Datagram Protocol, Src Port: 31020 (31020), Dst Port: lsp-ping (3503)
Source port: 31020 (31020)
Destination port: lsp-ping (3503)
Length: 150
Checksum: 0x0000 (none)
[Good Checksum: False]
[Bad Checksum: False]
Multiprotocol Label Switching Echo
Version: 1
Global Flags: 0x0000
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Request (1)
Reply Mode: Unknown (5)
Return Code: No return code (0)
Return Subcode: 0
Sender's Handle: 0x00000014
Sequence Number: 1
Timestamp Sent: Jan 24, 2013 19:35:25.000033000 UTC
Timestamp Received: Not representable
Target FEC Stack
Type: Target FEC Stack (1)
Length: 20
FEC Element 1: FEC 128 Pseudowire (new)
Type: FEC 128 Pseudowire (new) (10)
Length: 14
Sender's PE Address: 10.0.0.41 (10.0.0.41)
Remote PE Address: 10.0.0.43 (10.0.0.43)
VC ID: 1
Encapsulation: Ethernet VLAN (4)
MBZ: 0x0000
Padding
Vendor Private
Type: Vendor Private (64512)
Length: 56
Vendor Id: HUAWEI Technology Co.,Ltd (2011)
Value: 00010030000400000000000100000819a625fd8000000000...
Pad
Type: Pad (3)
Length: 22
Pad Action: Copy Pad TLV to reply (2)
Padding: 4142434445464748494a4b4c4d4e4f505152535455
十、VPLS MAC Ping Reply报文示例
Frame 1: 286 bytes on wire (2288 bits), 286 bytes captured (2288 bits)
Arrival Time: Jan 1, 1970 08:00:00.000728000
Epoch Time: 0.000728000 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: 286 bytes (2288 bits)
Capture Length: 286 bytes (2288 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:mpls:pwethheuristic:pwethnocw:eth:ip:udp:mpls-echo]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II (VLAN tagged), Src: HuaweiTe_74:e4:08 (54:89:98:74:e4:08), Dst: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Destination: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Address: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Address: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
VLAN tag: VLAN=412, Priority=Best Effort (default)
Identifier: 802.1Q Virtual LAN (0x8100)
000. .... .... .... = Priority: Best Effort (default) (0)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = VLAN: 412
Type: MPLS label switched packet (0x8847)
MultiProtocol Label Switching Header, Label: 1 (Router Alert), Exp: 0, S: 0, TTL: 254
MPLS Label: 1 (Router Alert)
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 0
MPLS TTL: 254
MultiProtocol Label Switching Header, Label: 1092, Exp: 0, S: 1, TTL: 255
MPLS Label: 1092
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 1
MPLS TTL: 255
Ethernet II, Src: HuaweiTe_25:fd:80 (08:19:a6:25:fd:80), Dst: 00:00:00_00:00:01 (00:00:00:00:00:01)
Destination: 00:00:00_00:00:01 (00:00:00:00:00:01)
Address: 00:00:00_00:00:01 (00:00:00:00:00:01)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_25:fd:80 (08:19:a6:25:fd:80)
Address: HuaweiTe_25:fd:80 (08:19:a6:25:fd:80)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IP (0x0800)
Trailer: 73123a21
Internet Protocol Version 4, Src: 10.8.23.3 (10.8.23.3), Dst: 127.0.0.1 (127.0.0.1)
Version: 4
Header length: 24 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 242
Identification: 0x0000 (0)
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: UDP (17)
Header checksum: 0x88ea [correct]
[Good: True]
[Bad: False]
Source: 10.8.23.3 (10.8.23.3)
Destination: 127.0.0.1 (127.0.0.1)
Options: (4 bytes)
Router Alert: Every router examines packet
User Datagram Protocol, Src Port: lsp-ping (3503), Dst Port: 31020 (31020)
Source port: lsp-ping (3503)
Destination port: 31020 (31020)
Length: 218
Checksum: 0x0000 (none)
[Good Checksum: False]
[Bad Checksum: False]
Multiprotocol Label Switching Echo
Version: 1
Global Flags: 0x0000
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Reply (2)
Reply Mode: Unknown (5)
Return Code: Replying router is an egress for the FEC at stack depth RSC (3)
Return Subcode: 1
Sender's Handle: 0x00000014
Sequence Number: 1
Timestamp Sent: Jan 24, 2013 19:35:25.000033000 UTC
Timestamp Received: Jan 25, 2013 19:33:58.000043000 UTC
Target FEC Stack
Type: Target FEC Stack (1)
Length: 20
FEC Element 1: FEC 128 Pseudowire (new)
Type: FEC 128 Pseudowire (new) (10)
Length: 14
Sender's PE Address: 10.0.0.43 (10.0.0.43)
Remote PE Address: 10.0.0.41 (10.0.0.41)
VC ID: 1
Encapsulation: Ethernet VLAN (4)
MBZ: 0x0000
Padding
Vendor Private
Type: Vendor Private (64512)
Length: 124
Vendor Id: HUAWEI Technology Co.,Ltd (2011)
Value: 0001007400040819a625fd80000000000000000100000000...
Pad
Type: Pad (3)
Length: 22
Pad Action: Copy Pad TLV to reply (2)
Padding: 4142434445464748494a4b4c4d4e4f505152535455
十一、VPLS PW Ping Request报文示例
Frame 1: 185 bytes on wire (1480 bits), 185 bytes captured (1480 bits)
Arrival Time: Jan 1, 1970 08:00:00.076590000
Epoch Time: 0.076590000 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: 185 bytes (1480 bits)
Capture Length: 185 bytes (1480 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:mpls:pwethheuristic:pwethnocw:eth:ip:udp:mpls-echo]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II (VLAN tagged), Src: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88), Dst: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Destination: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Address: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Address: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
VLAN tag: VLAN=412, Priority=Voice, < 10ms latency and jitter
Identifier: 802.1Q Virtual LAN (0x8100)
110. .... .... .... = Priority: Voice, < 10ms latency and jitter (6)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = VLAN: 412
Type: MPLS label switched packet (0x8847)
MultiProtocol Label Switching Header, Label: 1127, Exp: 0, S: 0, TTL: 255
MPLS Label: 1127
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 0
MPLS TTL: 255
MultiProtocol Label Switching Header, Label: 1 (Router Alert), Exp: 0, S: 0, TTL: 255
MPLS Label: 1 (Router Alert)
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 0
MPLS TTL: 255
MultiProtocol Label Switching Header, Label: 1099, Exp: 0, S: 1, TTL: 255
MPLS Label: 1099
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 1
MPLS TTL: 255
Ethernet II, Src: HuaweiTe_25:fd:80 (08:19:a6:25:fd:80), Dst: IPv4mcast_01:01:01 (01:00:5e:01:01:01)
Destination: IPv4mcast_01:01:01 (01:00:5e:01:01:01)
Address: IPv4mcast_01:01:01 (01:00:5e:01:01:01)
.... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_25:fd:80 (08:19:a6:25:fd:80)
Address: HuaweiTe_25:fd:80 (08:19:a6:25:fd:80)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Type: IP (0x0800)
Trailer: e4b89db9
Internet Protocol Version 4, Src: 10.0.0.41 (10.0.0.41), Dst: 10.1.1.1 (10.1.1.1)
Version: 4
Header length: 24 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 137
Identification: 0x0019 (25)
Flags: 0x02 (Don't Fragment)
0... .... = Reserved bit: Not set
.1.. .... = Don't fragment: Set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 255
Protocol: UDP (17)
Header checksum: 0x591a [correct]
[Good: True]
[Bad: False]
Source: 10.0.0.41 (10.0.0.41)
Destination: 10.1.1.1 (10.1.1.1)
Options: (4 bytes)
Router Alert: Every router examines packet
User Datagram Protocol, Src Port: 31022 (31022), Dst Port: lsp-ping (3503)
Source port: 31022 (31022)
Destination port: lsp-ping (3503)
Length: 113
Checksum: 0x0000 (none)
[Good Checksum: False]
[Bad Checksum: False]
Multiprotocol Label Switching Echo
Version: 1
Global Flags: 0x0000
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Request (1)
Reply Mode: Reply via an IPv4/IPv6 UDP packet (2)
Return Code: No return code (0)
Return Subcode: 0
Sender's Handle: 0x00000016
Sequence Number: 4
Timestamp Sent: Jan 24, 2013 19:39:37.000213000 UTC
Timestamp Received: Jan 1, 1970 00:00:00.000000000 UTC
Target FEC Stack
Type: Target FEC Stack (1)
Length: 20
FEC Element 1: FEC 128 Pseudowire (new)
Type: FEC 128 Pseudowire (new) (10)
Length: 14
Sender's PE Address: 10.0.0.41 (10.0.0.41)
Remote PE Address: 10.0.0.43 (10.0.0.43)
VC ID: 1
Encapsulation: Ethernet VLAN (4)
MBZ: 0x0000
Padding
Vendor Private
Type: Vendor Private (64512)
Length: 28
Vendor Id: HUAWEI Technology Co.,Ltd (2011)
Value: 00050014e1010101ab0000290819a625fd80000000000000
Pad
Type: Pad (3)
Length: 13
Pad Action: Copy Pad TLV to reply (2)
Padding: 4142434445464748494a4b4c
十二、VPLS PW Ping Reply报文示例
Frame 1: 150 bytes on wire (1200 bits), 150 bytes captured (1200 bits)
Arrival Time: Jan 1, 1970 08:00:00.010661000
Epoch Time: 0.010661000 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: 150 bytes (1200 bits)
Capture Length: 150 bytes (1200 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ip:udp:mpls-echo]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II (VLAN tagged), Src: HuaweiTe_74:e4:08 (54:89:98:74:e4:08), Dst: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Destination: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Address: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Address: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
VLAN tag: VLAN=412, Priority=Best Effort (default)
Identifier: 802.1Q Virtual LAN (0x8100)
000. .... .... .... = Priority: Best Effort (default) (0)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = VLAN: 412
Type: IP (0x0800)
Trailer: 6062970d
Internet Protocol Version 4, Src: 10.0.0.43 (10.0.0.43), Dst: 10.0.0.41 (10.0.0.41)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 128
Identification: 0x0000 (0)
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: UDP (17)
Header checksum: 0x6618 [correct]
[Good: True]
[Bad: False]
Source: 10.0.0.43 (10.0.0.43)
Destination: 10.0.0.41 (10.0.0.41)
User Datagram Protocol, Src Port: lsp-ping (3503), Dst Port: 31018 (31018)
Source port: lsp-ping (3503)
Destination port: 31018 (31018)
Length: 108
Checksum: 0x0000 (none)
[Good Checksum: False]
[Bad Checksum: False]
Multiprotocol Label Switching Echo
Version: 1
Global Flags: 0x0000
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Reply (2)
Reply Mode: Reply via an IPv4/IPv6 UDP packet (2)
Return Code: Replying router is an egress for the FEC at stack depth RSC (3)
Return Subcode: 1
Sender's Handle: 0x00000012
Sequence Number: 2
Timestamp Sent: Jan 24, 2013 19:24:00.000048000 UTC
Timestamp Received: Jan 25, 2013 19:22:33.000061000 UTC
Target FEC Stack
Type: Target FEC Stack (1)
Length: 20
FEC Element 1: FEC 128 Pseudowire (new)
Type: FEC 128 Pseudowire (new) (10)
Length: 14
Sender's PE Address: 10.0.0.41 (10.0.0.41)
Remote PE Address: 10.0.0.43 (10.0.0.43)
VC ID: 1
Encapsulation: Ethernet VLAN (4)
MBZ: 0x0000
Padding
Pad
Type: Pad (3)
Length: 40
Pad Action: Copy Pad TLV to reply (2)
Padding: 4142434445464748494a4b4c4d4e4f505152535455565758...
十三、 VPN Cfg Ping Request报文示例
Frame 1: 147 bytes on wire (1176 bits), 147 bytes captured (1176 bits)
Arrival Time: Jan 1, 1970 08:00:00.008551000
Epoch Time: 0.008551000 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: 147 bytes (1176 bits)
Capture Length: 147 bytes (1176 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:mpls:pwethheuristic:pwethcw:ip:udp:mpls-echo]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II (VLAN tagged), Src: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88), Dst: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Destination: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Address: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Address: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
VLAN tag: VLAN=412, Priority=Voice, < 10ms latency and jitter
Identifier: 802.1Q Virtual LAN (0x8100)
110. .... .... .... = Priority: Voice, < 10ms latency and jitter (6)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = VLAN: 412
Type: MPLS label switched packet (0x8847)
MultiProtocol Label Switching Header, Label: 1127, Exp: 0, S: 1, TTL: 255
MPLS Label: 1127
MPLS Experimental Bits: 0
MPLS Bottom Of Label Stack: 1
MPLS TTL: 255
Internet Protocol Version 4, Src: 10.0.0.41 (10.0.0.41), Dst: 10.0.0.43 (10.0.0.43)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 121
Identification: 0xad0b (44299)
Flags: 0x02 (Don't Fragment)
0... .... = Reserved bit: Not set
.1.. .... = Don't fragment: Set
..0. .... = More fragments: Not set
Fragment offset: 0
Time to live: 255
Protocol: UDP (17)
Header checksum: 0x7813 [correct]
[Good: True]
[Bad: False]
Source: 10.0.0.41 (10.0.0.41)
Destination: 10.0.0.43 (10.0.0.43)
User Datagram Protocol, Src Port: 31002 (31002), Dst Port: lsp-ping (3503)
Source port: 31002 (31002)
Destination port: lsp-ping (3503)
Length: 101
Checksum: 0x1931 [validation disabled]
[Good Checksum: False]
[Bad Checksum: False]
Multiprotocol Label Switching Echo
Version: 1
Global Flags: 0x0000
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Request (1)
Reply Mode: Reply via an IPv4/IPv6 UDP packet (2)
Return Code: No return code (0)
Return Subcode: 0
Sender's Handle: 0x00000002
Sequence Number: 1
Timestamp Sent: Jan 1, 1970 00:00:00.000000000 UTC
Timestamp Received: Jan 1, 1970 00:00:00.000000000 UTC
Target FEC Stack
Type: Target FEC Stack (1)
Length: 20
FEC Element 1: FEC 128 Pseudowire (new)
Type: FEC 128 Pseudowire (new) (10)
Length: 14
Sender's PE Address: 10.0.0.41 (10.0.0.41)
Remote PE Address: 10.0.0.43 (10.0.0.43)
VC ID: 0
Encapsulation: Ethernet VLAN (4)
MBZ: 0x0000
Padding
Vendor Private
Type: Vendor Private (64512)
Length: 28
Vendor Id: HUAWEI Technology Co.,Ltd (2011)
Value: 00070014000000010000000100000004ab00002900000002
Pad
Type: Pad (3)
Length: 1
Pad Action: Copy Pad TLV to reply (2)
十四、VPN Cfg Ping Reply报文示例
Frame 1: 275 bytes on wire (2200 bits), 275 bytes captured (2200 bits)
Arrival Time: Jan 1, 1970 08:00:00.008836000
Epoch Time: 0.008836000 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: 275 bytes (2200 bits)
Capture Length: 275 bytes (2200 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ip:udp:mpls-echo]
[Coloring Rule Name: UDP]
[Coloring Rule String: udp]
Ethernet II (VLAN tagged), Src: HuaweiTe_74:e4:08 (54:89:98:74:e4:08), Dst: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Destination: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
Address: HuaweiTe_25:fd:88 (08:19:a6:25:fd:88)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
Source: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
Address: HuaweiTe_74:e4:08 (54:89:98:74:e4:08)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
VLAN tag: VLAN=412, Priority=Best Effort (default)
Identifier: 802.1Q Virtual LAN (0x8100)
000. .... .... .... = Priority: Best Effort (default) (0)
...0 .... .... .... = CFI: Canonical (0)
.... 0001 1001 1100 = VLAN: 412
Type: IP (0x0800)
Trailer: 9872cb10
Internet Protocol Version 4, Src: 10.0.0.43 (10.0.0.43), Dst: 10.0.0.41 (10.0.0.41)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00: Not-ECT (Not ECN-Capable Transport))
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..00 = Explicit Congestion Notification: Not-ECT (Not ECN-Capable Transport) (0x00)
Total Length: 253
Identification: 0x0000 (0)
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: UDP (17)
Header checksum: 0x659b [correct]
[Good: True]
[Bad: False]
Source: 10.0.0.43 (10.0.0.43)
Destination: 10.0.0.41 (10.0.0.41)
User Datagram Protocol, Src Port: lsp-ping (3503), Dst Port: 31002 (31002)
Source port: lsp-ping (3503)
Destination port: 31002 (31002)
Length: 233
Checksum: 0x0000 (none)
[Good Checksum: False]
[Bad Checksum: False]
Multiprotocol Label Switching Echo
Version: 1
Global Flags: 0x0000
0000 0000 0000 000. = Reserved: 0x0000
.... .... .... ...0 = Validate FEC Stack: False
Message Type: MPLS Echo Reply (2)
Reply Mode: Reply via an IPv4/IPv6 UDP packet (2)
Return Code: Replying router is an egress for the FEC at stack depth RSC (3)
Return Subcode: 1
Sender's Handle: 0x00000002
Sequence Number: 1
Timestamp Sent: Jan 1, 1970 00:00:00.000000000 UTC
Timestamp Received: Jan 1, 1970 00:00:00.000000000 UTC
Target FEC Stack
Type: Target FEC Stack (1)
Length: 20
FEC Element 1: FEC 128 Pseudowire (new)
Type: FEC 128 Pseudowire (new) (10)
Length: 14
Sender's PE Address: 10.0.0.43 (10.0.0.43)
Remote PE Address: 10.0.0.41 (10.0.0.41)
VC ID: 1
Encapsulation: Ethernet VLAN (4)
MBZ: 0x0000
Padding
Vendor Private
Type: Vendor Private (64512)
Length: 160
Vendor Id: HUAWEI Technology Co.,Ltd (2011)
Value: 000800983100000000000000000000000000000000000000...
Pad
Type: Pad (3)
Length: 1
Pad Action: Copy Pad TLV to reply (2)
十五、MPLS Ping/Tracert (MPLS Echo) 协议栈结构
MPLS Echo消息封装在IPv4/IPv6的UDP报文中,可能还带有MPLS标签。
MPLS Echo使用的UDP端口号为3503(这是IANA为MPLS Echo请求所定义的值),只有使能MPLS的路由器才能够识别该端口号。
十六、MPLS Ping/Tracert (MPLS Echo)报文封装
+---------------------------------------+
| MPLS Echo PDU |
+---------------------------------------+
| UDP header |
+---------------------------------------+
| IPv4/IPv6 header |
+---------------------------------------+
| One or more MPLS headers (Optional) |
+---------------------------------------+
| Link layer header |
+---------------------------------------+
| Physical layer header |
+---------------------------------------+
MPLS Echo消息分为两种:Echo请求消息和Echo回应消息。
MPLS Echo请求消息中,源IP地址为发送端的IP地址,目的IP是个127/8网段的IPv4地址或者是0:0:0:0:0:FFFF:127/104网段的IPv6地址;IP TTL设置为1。
UDP源端口号为发送端自行选择的端口号,目的端口号设置为3503。IP头必须携带Router Alert选项并置位。
MPLS Echo请求消息携带了待测试的FEC所对应的标签栈。
在MPLS Ping中,最外层标签的TTL值设置为255;MPLS Tracert中,最外层标签的TTL值分别设置为1、2、3……。
MPLS LSP Traceroute和传统的Traceroute类似,通过连续发送一个TTL步进为1的Echo Request报文,让LSP沿途的每一个LSR都收到TTL超时的Echo Request报文,同时回送一个携带下游信息(可选)以及相应返回码的Echo Reply给发送者。
这样发送者就会得到该LSP沿途每一个节点的信息。
发表评论