Professional Documents
Culture Documents
Sam K Aldrin
sam.aldrin@huawei.com
(ME)
A B
traceroute to B
Request
Response
ping -c 1 -t 3 -n www.yahoo.com
PING any-fp3-real.wa1.b.yahoo.com (98.139.127.62) 56(84) bytes of data.
From 10.34.159.13 icmp_seq=0 Time to live exceeded
--- any-fp3-real.wa1.b.yahoo.com ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms,
pipe
June 2
3-6, 2012 NANOG55 13
Traceroute
• Design to trace the path taken from a node A to a
node B.
• Probe packets are generated with monotonically
increasing TTL value
– Forcing ICMP TTL expiry message from each
intermediate node.
– In Linux Echo request packet is UDP (default
destination port is UDP:33434)
– In some other platforms it can be ICMP Echo
request.
traceroute -n -I 10.35.78.17
traceroute to 10.35.78.17 (10.35.78.17), 30 hops max, 46 byte
packets
1 10.35.75.3 0.271 ms 0.219 ms 0.213 ms TTL=1
2 10.35.78.17 0.442 ms 0.265 ms 0.351 ms TTL=2
1. ICMP_TME_EXCEED 2
1. Echo Req, TTL=1
4 B
A 1
2. Echo Req, TTL=2
2. ICMP_TME_EXCEED 3
3. Echo Req,TTL=3
4. ICMP_TME_EXCEED
3. ICMP_TME_EXCEED
Ping From A to B
B
A
Ping From A to B
4 B
A 1
Ping From A to B
4 B
A 1
Challenges:
• Ingress Node (A) may not even know how many ECMP from intermediate node (1)
• Monitoring probes SHOULD take the same path as the normal data
• Different vendors utilize different hash algorithms in selection ECMP paths
MPLS TP
Operations MPLS- TP
Reliability and
•NMS Driven Resiliency
provisioning
•Static Network •Linear, Ring and
setup OAM Requirements Mesh protection
•Associated and co- schemes
routed •In band OAM •Fast switchover to
bidirectional paths •Loss and delay standby paths
measurements for •50msec switchover
SLA support
•Fault notification
and Alarm
indication
X
LSP
PE1 P1 P2 P3 PE2
L0:10.10.10.10 L0:20.20.20.20
• ICMP ping emulates the data but can only verify IP layer
• It cannot verify if MPLS path is broken but IP is working
• It cannot verify ECMP
• It cannot validate control plane to data plane
• It cannot verify various MPLS control plane protocols
• It cannot verify for unlabelled interface, black-holes, control
plane to data plane mismatch, etc.
June 3-6, 2012 NANOG55 33
VRF aware ping
LSP
X
PE1 P1 P2 P3 PE2
L0:10.10.10.10 L0:20.20.20.20
Downstream Router ID
MTU Addr Type DS Index •Downstream interface address is IP
Downstream Interface Address address of outgoing interface for the LSP
Hash Key Depth Limit MultiPath Length
•Downstream label is the outgoing label
for the LSP
IP Address or Next Label
•Protocol associated with the label
•DDMAP is enhanced version of the
More IP addresses or next labels
DSMAP TLV (Deprecated)
Downstream Label Protocol
….
Downstream Label Protocol
DSMAP TLV 0 7 15 23 31
MTU Addr Type DS Flags
Downstream Address (4 or 16 octets)
Downstream Interface Address (4 or 16 octets)
R Code Return SC SubTLV Length
IP Address or Next Label
List of SubTLV’s
1. Multipath
2. Label Stack
3. FEC Stack change
DDMAP TLV
June 3-6, 2012 NANOG55 45
Downstream Mapping TLV -
Example 2 3
1
E0/0:10.131.151.1
E0/0:10.131.161.1 E0/0:10.131.171.1
50 E0/1:10.131.151.2 60 E0/1:10.131.161.2 3 E0/1:10.131.171.2
PE1 P1 P2 PE2
PE1 Downstream for P1 Downstream for P2 Downstream for
PE2 PE2 PE2
MTU: MRU of E0/0 MTU: MRU of E0/0 MTU: MRU of E0/0
Address type: 1 Address type: 1 Address type: 1
DS Intf Addr: DS Intf Addr: DS Intf Addr:
10.131.151.1 10.131.161.1 10.131.171.1
DS Label : 50 DS Label : 60 DS Label : 3
PE1 PE2
PE
1
P1 70 P2 PE1 Echo Reply
PE2
E0/0:10.131.151.1
E0/0:10.131.161.1 E0/0:10.131.171.1
50 E0/1:10.131.151.2 60 E0/1:10.131.161.2 3 E0/1:10.131.171.2
PE1 P1 P2 PE2
• LSP Ping with TTL is used to validate every hop of the LSP
• Downstream TLV is used to validate and request downstream info
• If the responding router is Egress of the FEC, a return code of 3 is
returned.
•JuneNo DSMAP TLV is sent in the NANOG55
3-6, 2012
response by Egress router for the FEC
50
Agenda
• Introduction
• Terms and Terminology
• An Introduction to Tools
• Introduction to MPLS
• MPLS TP 101
• Troubleshooting MPLS
• MPLS OAM
• LSP Ping
• ECMP troubleshooting
• BFD for MPLS
• Tools Galore
June 3-6, 2012 NANOG55 51
LSP ping in ECMP topology
P2 P3
E0/0 E1/0
E0/0
E1/0
E2/0
E0/0 E1/0
E0/0
E0/0 E1/0
E1/0 E0/0
E2/0 E2/0
E1/0 E2/0
PE1 P1 P4 P5 PE2
PE1 1
TTL = 1
DA: 127.0.0.0
MapSize/hash:
32/8
Bitmap:0xFFFF
E0/0 E1/0
E0/0
E0/0 E1/0
E1/0 E0/0
E2/0 E2/0
E1/0 E2/0
PE1 P1 P4 P5 PE2
PE1 P1
1 MultiPath1 2
TTL = 1
DA: 127.0.0.0 [E0/0]
MapSize/hash: •Bitmap: 0x00FF
32/8 Multipath2[E2/0]
Bitmap:0xFFFF •Bitmap: 0xFF00
E0/0 E1/0
E0/0
E0/0 E1/0
E1/0 E0/0
E2/0 E2/0
E1/0 E2/0
PE1 P1 P4 P5 PE2
PE1 3
TTL = 2
DA: 127.0.0.24
Mapsize/Hash:
32/8
Bitmap:0x00FF
E0/0 E1/0
E0/0
E0/0 E1/0
E1/0 E0/0
E2/0 E2/0
E1/0 E2/0
PE1 P1 P4 P5 PE2
PE1 3
TTL = 2 P2
DA: 127.0.0.24 MultiPath1 [E0/0]
Mapsize/Hash: •Bitmap: 0x00FF
32/8
Bitmap:0x00FF 4
E0/0 E1/0
E0/0
E0/0 E1/0
E1/0 E0/0
E2/0 E2/0
E1/0 E2/0
PE1 P1 P4 P5 PE2
PE1 5
TTL = 3
DA: 127.0.0.24
Mapsize/hash:
32/8
Bitmap:0x00FF
E0/0 E1/0
E0/0
E0/0 E1/0
E1/0 E0/0
E2/0 E2/0
E1/0 E2/0
PE1 P1 P4 P5 PE2
PE1 P3
5
TTL = 3 MultiPath1
DA: 127.0.0.24 [E0/0]
Mapsize/hash: •Bitmap: 0x00FF
32/8
Bitmap:0x00FF 6
E0/0 E1/0
E0/0
E0/0 E1/0
E1/0 E0/0
E2/0 E2/0
E1/0 E2/0
PE1 P1 P4 P5 PE2
PE1 7
TTL = 4
DA: 127.0.0.24
Mapsize/Hash:
32/8
Bitmap:0x00FF
E0/0 E1/0
E0/0
E0/0 E1/0
E1/0 E0/0
E2/0 E2/0
E1/0 E2/0
PE1 P1 P4 P5 PE2
PE1 7
TTL = 4 PE2
DA: 127.0.0.24 Egress of the FEC
Mapsize/Hash:
32/8
8
Bitmap:0x00FF
E0/0 E1/0
E0/0
E0/0 E1/0
E1/0 E0/0
E2/0 E2/0
E1/0 E2/0
PE1 P1 P4 P5 PE2
PE1 1 P1 2
TTL = 1 MultiPath1 [E0/0] P2
DA: 127.0.0.0 •Bitmap: 0x00FF P3
MultiPath1 [E0/0] PE2
MapSize/hash: 32/8 Multipath2[E2/0] MultiPath1 [E0/0]
•Bitmap: 0x00FF 4 Egress of the FEC
Bitmap:0xFFFF •Bitmap: 0xFF00 •Bitmap: 0x00FF 6
8
PE1 3 P4
TTL = 2 PE1 9 MultiPath1 [E0/0]
DA: 127.0.0.24 •Bitmap: 0xF000 P3 12
TTL = 2 PE2
Mapsize/Hash: 32/8 MultiPath2 [Eth2/0] MultiPath1 [E0/0] 14
DA: 127.0.0.0 10 Egress of the FEC
Bitmap:0x00FF •Bitmap: -0x0F00 •Bitmap: 0xF000
Mapsize/Hash: 32/8
Bitmap:0xFF00
PE1 5 16
11 P5 18
TTL = 3 PE1 PE2
MultiPath1 [E0/0]
DA: 127.0.0.24 TTL = 3 PE1 15 Egress of the FEC
•Bitmap: 0x0F00
Mapsize/hash: 32/8 DA: 127.0.0.0 TTL = 3
Bitmap:0x00FF Mapsize/Hash: 32/8 DA: 127.0.0.4
Bitmap:0xF000 Mapsize/Hash: 32/8
PE1 7 Bitmap:0x0F00
TTL = 4 PE1 13
DA: 127.0.0.24 TTL = 4
Mapsize/Hash: 32/8 DA: 127.0.0.0 PE1 17
Bitmap:0x00FF Mapsize/Hash: 32/8 TTL = 4
Bitmap:0xF000 DA: 127.0.0.4
Mapsize/Hash: 32/8
Bitmap:0x0F00
Solution RFC5085
Negotiated Rate
LSP Ping
LSP Ping
BFD
BFD LSP Ping
BFD
IPPM -Delay
- Packet loss
MPLS-TP CC CV Traceroute -Alarm -Delay
OAM Reporting - Packet loss
- Client
failure Ind
- Remote
Defect
Ref: draft-ietf-opsawg-oam-overview-05