Professional Documents
Culture Documents
JMV 10.a-R C2 MPLSFundamentals
JMV 10.a-R C2 MPLSFundamentals
JMV 10.a-R C2 MPLSFundamentals
© 2010 Juniper Networks, Inc. All rights reserved. | www.juniper.net | Worldwide Education Services
Chapter Objectives
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-2
Agenda: MPLS Fundamentals
MPLS Foundation
Terminology
MPLS Configuration
MPLS Packet Forwarding
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-3
IGP Metric-Based Forwarding
IGP Forwarding
•Traffic is routed based on the IGP’s best path selection
•Traffic that is destined for networks attached to R6 and R7
uses the same path
R3 R6
R1 R2 1 1 R5
1
1
1 2 1
R4 R7
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-4
Downsides of IGP Metric-Based Forwarding
R1 R2 1 3 R5 1
1
1 2 1
R4 R7
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-5
Additional Drawbacks of IGP Metrics
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-6
Internet Growth Required Changes
ATM switched networks also known as an Overlay
Network
Benefits of using ATM
•ATM switches offered performance and predictable behavior
•Virtual circuits (VCs) could be reengineered without physical
network changes.
•Traffic statistics on a per-VC basis
Downsides of ATM
•Maintain separate infrastructure
•ATM cell overhead
•Scalability issues ATM
IP
•Not well integrated
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-7
Additional Options for Connecting Sites
FR
IP
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-9
Benefits of MPLS (1 of 2)
R1 R2 1 3 R5 1
1
1 2 1
R4 R7
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-10
Benefits of MPLS (2 of 2)
ATM-LSP R2
Frame Relay LSP Core R5
Infrastructure ATM
Site 2
R1 R4
Site 1
ATM
R6
R3
Site 4
Site 3 Site 5
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-11
MPLS Header information
32-Bit
MPLS shim Header
•Packet is restored at the end of the LSP with a pop
operation
•Normally the label stack is popped at the penultimate
router
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-12
MPLS Shim Header Structure
32 bits
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-14
MPLS Labels
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-15
Reserved Labels
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-16
Label Information Base
MPLS Foundation
Terminology
MPLS Configuration
MPLS Packet Forwarding
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-19
Label-Switching Routers
The LSR performs:
•MPLS packet forwarding
•LSP setup
All M Series Routers, T Series Routers, and MX Series
Ethernet Services Routers support LSR capabilities
•Simply called routers in this course
LSP A LSR R3 R6
R1 R2 R5
R4 R7
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-20
Label-Switched Path
LSP
•Unidirectional path through network
•Generally within a single MPLS domain
LSP A R3 R6
LSP
R1 R2 R5
R4 R7
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-21
MPLS Router Functions: Ingress
Ingress router
•Packets enter LSP at ingress
•Also called a head-end router
•Upstream from other routers
•Performs label push operation
LSP A R3 R6
Ingress
R1 R2 R5
R4 R7
label push
Layer 2 1000050 COS S TTL Data FCS
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-22
MPLS Router Functions: Transit
Transit router
•There can be zero or more transit routers
•Perform label swap operations
•Forward traffic to next hop in LSP
Transit
LSP A R3 R6
R1 R2 R5
R4 R7
label swap
Layer 2 1000515 COS S TTL Data FCS
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-23
MPLS Router Functions: Penultimate
Penultimate router
•Second-to-last router
•Normally pops the label stack
•Unlabeled packets sent to egress
LSP A R3 R6
Penultimate
R1 R2 R5
R4 R7
label pop
Layer 2 Data FCS
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-24
MPLS Router Functions: Egress
Egress router
•Packets exit LSP at egress
•Also called tail-end router
•Downstream from other routers
•Forwards packets based on IP address Egress
LSP A R3 R6
R1 R2 R5
R4 R7
MPLS Foundation
Terminology
MPLS Configuration
MPLS Packet Forwarding
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-26
Interface Configuration
Interface Configuration
•Default behavior of an interface is to accept only IP packets.
• Protocol family inet
•Configure interface to accept MPLS packets
• Protocol family mpls
[edit interfaces]
user@R2# show
ge-1/0/0 {
unit 0 {
family inet {
address 172.20.100.21/30;
}
family mpls;
}
}
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-27
Protocol Configuration
protocols {
mpls {
static-label-switched-path <lsp-name> {
ingress {
next-hop <address or interface of next-hop router>;
to <address of egress router>;
push <label>;
}
}
}
}
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-29
Configuring the Transit Router for Static
LSPs
Configuring a static LSP on the Transit router
•Use the transit configuration to identify the router as a
transit LSR
• On the penultimate router you will configure the pop action.
• There’s no need to configure the egress router since we only
support penultimate hop popping.
protocols {
mpls {
static-label-switched-path <lsp-name> {
transit <incoming-label> {
next-hop <address or interface of next-hop router>;
swap <outgoing label>;
}
}
}
}
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-30
Additional information on Static LSPs
The static-label-switched-path name
should be unique
Static label values (1,000,000 through 1,048,575)
•You can also send a label of 0 to tell the next router to pop
the label.
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-31
Mapping BGP Next Hops to LSPs
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-32
Route Resolution Example
Core
R2 AS65512
Loopbacks
192.168.1.x R5 Site 2
AS65511
64.25.1/24
R1 R4
Site 1 182.19.200.0/30
AS65510
84.25.1/24 R6
172.18.100.0/30
R3
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-33
Unusable BGP Next Hop
Core
R2 AS65512
Loopbacks
192.168.1.x R5 Site 2
AS65511
64.25.1/24
R1 R4
Site 1 182.19.200.0/30
AS65510
84.25.1/24 R6
172.18.100.0/30
R3
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-35
Suggested Resolution
Core
R2 AS65512
Loopbacks
192.168.1.x R5 Site 2
AS65511
64.25.1/24
R1 R4
Site 1 182.19.200.0/30
AS65510
84.25.1/24 R6
172.18.100.0/30
R3
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-36
Verifying the Route is Usable
Route now has valid next hop
user@R1> show route 64.25.1/24 extensive
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-37
Configure the Static LSP (1 of 2)
Core
R2 AS65512
my-lsp Loopbacks
192.168.1.x R5 Site 2
AS65511
64.25.1/24
R1 R4
Site 1 182.19.200.0/30
AS65510
84.25.1/24 R6
172.18.100.0/30
R3
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-38
Configure the Static LSP (2 of 2)
[edit protocols mpls]
user@R2# show
static-label-switched-path my-lsp {
transit 1000050 {
next-hop 172.30.0.2;
swap 1000515;
}
}
…
[edit protocols mpls]
user@R4# show
static-label-switched-path my-lsp {
transit 1000515 {
next-hop 172.40.0.2;
pop;
}
}
…
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-40
BGP Installs LSP as Next Hop
Core
R2 AS65512
my-lsp Loopbacks
192.168.1.x R5 Site 2
AS65511
64.25.1/24
R1 R4
Site 1 182.19.200.0/30
AS65510
84.25.1/24 R6
172.18.100.0/30
R3
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-41
Ingress Router Behavior
Ingress router
•RSVP/LDP/Static:
• Signal LSPs to egress router
• Install IP prefix to egress router into the inet.3 routing table
– Specifies LSP’s egress interface and label assigned by the
downstream router
IP MPLS
Routing Table Routing Table
(inet.0) (inet.3)
IP Forwarding Table
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-42
Ingress Resolves BGP Next Hop
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-44
Ingress Installs LSP for Forwarding
BGP favors routes in inet.3
•MPLS preference is better than IS-IS and OSPF
•For preference ties, BGP selects inet.3
LSP to egress router copied to inet.0 as a
forwarding next hop
•Specified LSP’s egress interface and label to push
OSPF IS-IS BGP RSVP LDP Static
inet.0 inet.3
to: 64.25.1.0/24
IP Forwarding Table
64.25.1/24 my-lsp Push label 1000050
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-45
Route Resolution Summary
LSPs installed in ingress router’s inet.3 table
•Points to the IP addresses specified as egress
• Normally identifies the egress router’s loopback address
• Address appears as if it were directly connected
•When LSP is up, next hop is usable and attractive to BGP
•When LSP is down, LSP next hop is unusable
• Can still use normal IP routing to reach next hop
Only BGP is aware of LSPs
•Other protocols can use this information with additional
configuration
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-46
Routing Table Summary
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-47
Agenda: MPLS Fundamentals
MPLS Foundation
Terminology
MPLS Configuration
MPLS Packet Forwarding
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-48
MPLS Forwarding (1 of 2)
Ingress router
•Performs forwarding lookup based on destination IP address
• Resolves in inet.3 or inet.0 routing table
•After the next hop is determined to be the LSP ,the MPLS
header is added and the packet is forwarded with the
corresponding label
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-49
MPLS Forwarding (2 of 2)
Transit router
•Performs forwarding lookup based on incoming label
• Resolves in mpls.0 routing table
•Label handling depends on LSR type
• Transit swaps out the incoming label with the outgoing label and
forwards the packet to the next router
• If the transit router is also the penultimate router, it usually pops
the label and forwards it to the egress router in its native form
Egress router
•Performs forwarding lookup based on destination IP address
• Resolves in the inet.0 or inet.3 routing table
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-50
MPLS Label Mapping
The mpls.0 table contains the mapping information
of incoming labels to outgoing labels and next-hop
information used to forward MPLS packets, also
known as the LIB
user@R2> show route table mpls.0
…
Receive
1000050 *[MPLS/6] 01:13:16, metric 1
> to 172.20.100.14 via ge-1/0/6.0, Swap 1000515
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-51
Penultimate Hop Popping
Label Operation
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-52
Implicit and Explicit NULL Labels
Implicit NULL
•Default operation in the Junos OS
•Egress router signals the penultimate to perform the label
pop
Explicit NULL
•Configured on the egress router
•Signals the penultimate router to forward the packet with a
MPLS header
•Egress router pops the label before forwarding it in its native
IP form
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-53
Summary
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-54
Review Questions
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-55
Lab 1: MPLS Fundamentals
© 2010 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 2-56
Worldwide Education Services