01 MPLS Fundamentals
01 MPLS Fundamentals
R3 R6
R1 R2 1 1 R5
1
1
1 2 1
R4 R7
R3 R6
R1 R2 1 3 R5 1
1
1 2 1
R4 R7
FR
IP
1
1 2 1
R4 R7
ATM- R2
et
ern
LSP Relay LSP
Frame Core
Eth
R5
Infrastructure ATM
Site 2
R1 R4
Site 1
ATM
R6
y
ela
R3 Fr
eR
am
eR
am
ela
Fr
y
t
rne
e
Site 4
Eth
Site 3 Site 5
32-Bit
• Packet is restored at the end ofshim
theHeader
a pop operation
MPLS LSP with
• Normally the label stack is popped at the penultimate router
32 bits
R1 R2 R5
R4 R7
LSP
• Unidirectional path through network
• Generally within a single MPLS domain
LSP R3 R6
A
LSP
10
00
R1 R2 51
0
R5
05
5
00
10
R4 R7
R5
05
5
00
10
R4 R7
label push
Layer 2 1000050 CO S TTL Data FCS
S
© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 16
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 R3 R6
A
10
00
R1 R2 51
0
R5
05
5
00
10
R4 R7
label swap
Layer 2 1000515 CO S TTL Data FCS
S
© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 17
MPLS Router Functions: Penultimate
Penultimate router
• Second-to-last router
• Normally pops the label stack
• Unlabeled packets sent to egress
LSP R3 R6
A Penultimate
10
00
R1 R2 51
0
R5
05
5
00
10
R4 R7
label pop
Layer 2 Data FCS
© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 18
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 R3 R6
A
10
00
R1 R2 51
0
R5
05
5
00
10
R4 R7
[edit interfaces]
user@R2# show
ge-1/0/0 {
unit 0 {
family inet {
address 172.20.100.21/30;
}
family mpls;
}
}
[edit protocols]
user@R2# show
mpls {
interface ge-1/0/0.0;
}
[edit protocols]
user@R2# show
mpls {
interface all;
interface fxp0.0 {
disable;
}
}
© 2010 Juniper Networks, Inc. All rights reserved. www.juniper.net | 21
Configuring the Ingress Router for Static LSPs
Configure a Static LSP on the ingress router
• Define a static-label-switched-path name
• Use the ingress configuration to identify the router as the
ingress LSR
• You must also configure the to and next-hop statements
• Configure the push statement with the outgoing label number
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. www.juniper.net | 22
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>;
}
}
}
}
30
R1 .0 R4
/
Site 1
.0
/ 30 0 182.19.200.0/30
0/3
20
0 .
2.
AS65510 2.4
17
17
84.25.1/24 R6
172.18.100.0/30
R3
30
R1 .0 R4
/
Site 1
.0
/ 30 0 182.19.200.0/30
0/3
20
0 .
2.
AS65510 2.4
17
17
84.25.1/24 R6
172.18.100.0/30
R3
30
R1 .0 R4
/
Site 1
.0
/ 30 0 182.19.200.0/30
0/3
20
0 .
2.
AS65510 2.4
17
17
84.25.1/24 R6
172.18.100.0/30
R3
30
R1 .0 R4
/
Site 1
.0
/ 30 0 182.19.200.0/30
0/3
20
0 .
2.
AS65510 2.4
17
17
84.25.1/24 R6
172.18.100.0/30
R3
30
R1 .0 R4
/
Site 1
.0
/ 30 0 182.19.200.0/30
0/3
20
0 .
2.
AS65510 2.4
17
17
84.25.1/24 R6
172.18.100.0/30
R3
IP MPLS
Routing Table Routing Table
(inet.0) (inet.3)
IP Forwarding Table
inet.0 inet.3
to: 64.25.1.0/24
IP Forwarding Table
64.25.1/24 my-lsp Push label 1000050
…
Receive
1000050 *[MPLS/6] 01:13:16, metric 1
> to 172.20.100.14 via ge-1/0/6.0, Swap 1000515
Label Operation