Professional Documents
Culture Documents
MPLS
MPLS =Multi-Protocol and Label Switching Multi-Protocol = transport any payloads Label Switching = switches packets instead of routes packets Referred as Layer 2.5 Original purpose is to provide faster protocols to forward packets but now is for trafficengineering
MPLS Terminology
iLER: Ingress Label Edge Router eLER: Egress Label Edge Router LSR: Label Switch Router PE: Provider Edge Router P: Provide (Core) Router CE: Customer Edge Router
MPLS Label
20 bits in value Possible range from 0 1,048,575 Used for switching and routing packets
EXP bit
Length = 3 bits Use for Class of Service (CoS) Referred as Traffic Class (TC) Field
S bit
Indicate the bottom of stack label Value = 1 if the label is at the bottom Value = 0 if else
TTL bit
Consist of 8 bits value up to 255 Act as Time To Live similar with IP TTL Value = 0, discard packet
MPLS Label 1
Router Alert: use for OAM purpose, identify that underlying data must be sent to control plane for processing
MPLS Label 2
IPv6 Explicit Null
MPLS Label 3
Implicit Null: advertise to Penultimate Hop router to strip the MPLS label before sending to Egress
Link LDP
Create between all adjacent LDP routers Form and distribute transport label Create full mesh transport tunnel Relies on IGP for operation and convergence
LDP Overview
Hello message to 224.0.0.2 and UDP port 646 Hello timer is negotiated when establishing the peer 3x Hello timer = dead neighbor After adjacency established, TCP connection 646 is used for establishing LDP session with the transport address
LDP Session
Frame mode = 1 LDP session per router Cell mode = 1 LDP session per interface Since only 1 LDP session per router, System IP address is used for transport address* (troubleshooting for LDP adjacency establishment)
LDP verification
show router ldp binding show router ldp binding active show router fib show router tunnel-table oam lsp-ping prefix x.x.x.x oam lsp-trace prefix x.x.x.x
Targeted LDP
Link LDP is for transport tunnel to reach eLER Targeted LDP is for service tunnel used by eLER for de-multiplexing service
LDP Authentication
To avoid TCP spoofing (since targeted LDP use TCP connection to establish session), authentication between peer must be enabled
RSVP-TE Characteristic
Downstream On Demand mode of distribution
LSP are only signaled when explicitly requested
Ordered Control
Label distribution process follows a hierarchical order
Path and Reservation messages used to signal LSP Session states maintained on all routers along the path of an LSP
RSVP Messages
PATH Message RESV Message PATH TEAR Message RESV TEAR Message PATH ERROR Message RESV ERROR Message
LSP Path
RSVP-TE LSP path can be more than 1 (primary and secondary) but only 1 can carry the data Each LSP need to be defined the LSP Path (either loosely or strict hop) If no hop is defined, RSVP will consult to IGP to determine the best path toward eLER
Verifying LSP
show mpls lsp (originating) show rsvp session originate show rsvp session transit show rsvp session terminate oam lsp-ping lsp-name oam lsp-trace lsp-name
TRAFFIC ENGINEERING
Need for TE
Optimize resource usage for redundant links Administratively define paths based on various constraint (bandwidth, link, etc) Avoid potential congestion points and packet drops in the network Solution: RSVP-TE
RSVP-TE constraints
Bandwidth Reservation Information Administrative Groups (link colors) Hop Limit TE Metric Explicit Route (strict and loose hops) Shared Risk Link Group (SRLG)
Bandwidth Reservation
Feature in MPLS TE to add bandwidth constraint in the signaled LSP Bandwidth reservations are done in control plane only Actual traffic that pass the LSP is not controlled and need QoS enforcement to guarantee the traffic
Hop Limit
TE Metric
IGP TE Extensions
To able distribute information regarding the link color or TE metric or SRLG, IGP-TE extensions are needed IGP-TE extension use either OSPF-TE or ISIS-TE On ALU, TE Extensions must be explicitly configured by: configure router ospf traffic-engineering or configure router isis traffic-engineering
ISIS-TE Extensions
Defined in RFC 3784 Enabled by configuration configure router isis traffic-engineering TE extended TLV is carried within the same link state PDU along with standard IGP TLV Command: show router isis database [level 1/2] detail for showing TE information
ERO Example
TE Metric Configuration
If CSPF enabled:
Calculates the intermediate hops to reach loose hop Checks if strict hop is valid
Verification
Verification
TE Metric Config
TE Metric Example
Example:
Example of T-LDP
LDP-over-RSVP Resiliency
Fast Reroute
A sub 50ms failover after link failure detected Automatic lsp protection establishment FRR can be 2 methods:
One-to-One backup Facility backup
PLR and MP
Assignment
Refresh LSP Reduction capability (function and config) - LDP Type of TLV defined in OSPF LSA RSVP Type of TLV defined in ISIS TLV RSVP IGP TE Update Trigger RSVP Make-Before-Break LSP RSVP Least Fill Bandwidth Reservation RSVP LSP Soft Preemption (Setup and Hold Priorities) RSVP
Assignment
Diffserv-TE Reservation RSVP IGP Shortcuts MPLS