w4 08 MPLS Config
w4 08 MPLS Config
w4 08 MPLS Config
- Frame-mode MPLS over RFC 2684 (obsoletes RFC 1483) routed PVC
- Configuring cell-mode MPLS with and without virtual circuit merge (VC-
merge)
- Configuring MPLS over ATM using BPX ATM switch and 7200 as label
switch controller (LSC)
In frame mode, MPLS uses a 32-bit label that is inserted between the Layer 2 and
Layer 3 headers. Layer 2 encapsulations like HDLC, PPP, Frame Relay, and Ethernet
are frame-based except for ATM, which can operate either in frame mode or cell
mode.
Figure 2-1 shows a frame-based MPLS provider network providing MPLS services to
sites belonging to Customer A. The frame-based provider's network consists of routers
R1, R2, R3, and R4. R1 and R4 function as Edge Label Switch Routers (LSRs) while
R2 and R3 serve as LSRs.
BRBRAITT Nov-2006 2
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
BRBRAITT Nov-2006 3
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
The steps to configure frame-mode MPLS are based on the configuration flowchart
outlined in Figure 2-2. Ensure that IP addresses are configured prior to following
these steps:
no ip route-cache cef
R2(config)#interface s0/0
BRBRAITT Nov-2006 4
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Step 3. Assign LDP router ID—LDP uses the highest IP address on a loopback
interface as the LDP router ID. If there is no loopback address defined, the
highest IP address on the router becomes the LDP router ID. To force an
interface to be an LDP router ID, mpls ldp router-id interface-type
number command can be used. The loopback interface address is
recommended because it always remains up. Configure the loopback 0
interface on the R2 router to be the LDP router ID as shown in Example 2-
3. Repeat the configuration on R1, R3, and R4, assigning the local
loopback interface as LDP router-id.
R2(config-if)#mpls ip
R2(config-if)#mpls ip
The steps to verify the frame-mode MPLS operation are as follows. All verification
steps were performed on Router R2. Outputs of the commands have been truncated
for brevity, and only pertinent lines are depicted:
Step 1. Example 2-5 verifies whether CEF is globally enabled or disabled on the router by issuing the sh
cef command. As shown in Example 2-5, CEF is disabled on R2. Example 2-5 shows if CEF is e
on the router interfaces.
R2#show ip cef
_________________________________________________________________
BRBRAITT Nov-2006 5
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Serial0/0 is up (if_number 5)
(Output truncated)
(Output Truncated)
_________________________________________________________________
Serial0/1 is up (if_number 6)
(Output Truncated)
Step 2. Verify MPLS forwarding is enabled on the interfaces by issuing the show mpls interfaces com
Example 2-6 shows that MPLS is enabled on the serial interfaces. The IP column depicts Yes if I
switching is enabled on the interface. The Tunnel column is Yes if LSP tunnel labeling (discusse
in Chapter 9, "MPLS Traffic Engineering") is enabled on the interface, and the Operational col
Yes if packets are labeled on the interface.
Step 3. Verify the status of the Label Distribution Protocol (LDP) discovery process by issuing show mp
discovery. This command displays neighbor discovery information for LDP and shows the inte
over which the LDP discovery process is running. Example 2-7 shows that R2 has discovered tw
neighbors, 10.10.10.101 (R1) and 10.10.10.103 (R3). The xmit/recv field indicates that the inter
transmitting and receiving LDP discovery Hello packets.
BRBRAITT Nov-2006 6
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
10.10.10.102:0
Discovery Sources:
Interfaces:
Step 4. Issue show mpls ldp neighbor to verify the status of the LDP neighbor sessions. Example 2-8
that the LDP session between R2 and R1 (10.10.10.101), as well as between R2 and R3 (10.10.10
is operational. Downstream indicates that the downstream method of label distribution is being us
this LDP session in which the LSR advertises all of its locally assigned (incoming) labels to it
peer (subject to any configured access list restrictions).
Up time: 2w2d
10.10.10.101 10.10.10.1
Up time: 1d10h
BRBRAITT Nov-2006 7
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Figure 2-3 shows the control and data plane forwarding operation in frame-mode
MPLS.
Figure 2-3 shows the control plane operation for prefix 10.10.10.101/32 from R1 to
R4. The following steps are performed in the label propagation process for prefix
10.10.10.101/32:
Step 1. Example 2-9 shows that R1 sends an implicit null or the POP label to R2. A
value of 3 represents the implicit-null label. R1 propagates the implicit-null
label to its penultimate Router R2, which performs the POP function in the
data forwarding from R4 to 10.10.10.101/32. If R1 propagates an explicit-
null label, the upstream LSR R2 does not POP the label but assigns a label
value of 0 and sends a labeled packet to R2.
<output truncated>
BRBRAITT Nov-2006 8
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
19 19 10.10.10.104/32 0
Se1/0 point2point
Step 3. Example 2-11 shows that on R3, prefix 10.10.10.101/32 has been assigned
a local label of 17 and an outgoing label of 16. The outgoing label is
received from the Router R2. The local label of 17 has been propagated
during label distribution to Router R4. Label 17 is used by R4 in the data
forwarding path for data destined to prefix 10.10.10.101/32 located on R1
from R4.
BRBRAITT Nov-2006 9
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
17 16 10.10.10.101/32 0
Se0/0 point2point
The following steps are performed in the data forwarding path from R4 to prefix
10.10.10.101/32:
1. As shown in Figure 2-3, R4 imposes label 17 on the data packet originating from
R4 destined to 10.10.10.101/32.
2. R3 does an LFIB lookup and swaps label 17 for 16 and forwards that data packet
to R2.
3. R2 receives the data packet from R3, does a penultimate hop pop function,
removes label 16, and forwards the data packet to R1.
The pertinent configurations for the devices in the frame-mode MPLS domain are
shown in Examples 2-12 through Example 2-15.
hostname R1
ip cef
BRBRAITT Nov-2006 10
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
interface Loopback0
interface Serial1/0
description Connection to R2
mpls ip
hostname R2
ip cef
interface Loopback0
interface Serial0/0
description Connection to R1
mpls ip
BRBRAITT Nov-2006 11
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
interface Serial0/1
description Connection to R3
mpls ip
hostname R3
ip cef
interface Loopback0
interface Serial0/0
description connection to R4
mpls ip
interface Serial0/1
BRBRAITT Nov-2006 12
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
description connection to R2
mpls ip
hostname R4
ip cef
interface Loopback0
interface Serial1/0
Description connection to R3
mpls ip
BRBRAITT Nov-2006 13
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Frame-mode MPLS can be implemented over RFC 2684 (previously RFC 1483)
routed PVCs. When using PVCs, RFC 2684 specifies the following methods of
encapsulation to carry traffic over ATM AAL5:
Figure 2-4 shows the network topology for RFC 2684 routed.
Figure 2-4. Topology: Frame-Mode MPLS Over RFC 2684 Routed PVCs
Figure 2-5 illustrates the flowchart to configure frame-mode MPLS on the provider
network devices shown in Figure 2-4. The configuration flowchart assumes that IP
addresses are pre-configured where needed.
BRBRAITT Nov-2006 14
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Figure 2-6 shows the flowchart for configuring the ATM PVC route on the LS1010
ATM switch.
Configuration Steps for Frame-Mode MPLS Over RFC 2684 Routed PVC
The steps to configure RFC 2684 bridged encapsulation over MPLS on R1 and R2 are
as follows. Ensure that IP addresses are preconfigured on R1 and R2, as illustrated in
Figure 2-4:
Step 1. Follow the steps shown in the "Basic Frame-Mode MPLS Configuration Steps" section. These ste
the same for frame-mode MPLS over RFC 2684 routed PVC. Follow those steps to configure
mode MPLS on R1 and R2:
BRBRAITT Nov-2006 15
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Step 2. Enable IPv4 MPLS or label forwarding on the interface—Configure the ATM PVCs 2/200 o
of the appropriate subinterfaces on R1 and R2. The encapsulation used on the PVC is ATM aal
Example 2-16 highlights the steps to configure ATM PVC.
R1(config-if-atm-vc)# mpls ip
_________________________________________________________________
R2(config-subif)#pvc 2/200
R2(config-if-atm-vc)#encapsulation aal5snap
R2(config-if-atm-vc)# mpls ip
Configure the core ATM switches A1 and A2 to perform VC mapping from one
interface to another. The PVC is a permanent logical connection that you must
configure manually, from source to destination, through the ATM network. After it is
configured, the ATM network maintains the connection at all times. The configuration
of an ingress PVC/interface mapped to an egress PVC/interface needs to be performed
only on one of the ingress or egress interfaces. Therefore, on ATM switch A1, the
configuration is performed on interface ATM1/0/1 mapping PVC 2/200 to interface
ATM1/0/0 PVC 2/200. The same process is repeated on ATM switch A2, shown in
Example 2-17.
A1(config-if)#interface ATM1/0/1
_________________________________________________________
____________
BRBRAITT Nov-2006 16
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
A2(config-if)#interface ATM1/0/1
Verification Steps for Frame-Mode MPLS Over RFC 2684 Routed PVC
The steps to verify frame-mode MPLS over RFC 2684 (previously RFC 1483) routed
PVC are as follows:
Step 1. Verify the operation of MPLS over RFC 2684 by performing a view of the MPLS forw
information base (LFIB), as shown in Example 2-18.
R1#
_________________________________________________________________
R1#ping 10.10.10.104
!!!!!
BRBRAITT Nov-2006 17
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
R4#
R2#ping 10.10.10.101
!!!!!
R4#
The final device configuration for R1, A1, A2, and R2 is shown in Example 2-20
through Example 2-23.
hostname R1
ip cef
interface Loopback0
interface Ethernet0
interface ATM2/0
no ip address
BRBRAITT Nov-2006 18
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
description connection to A1
mpls ip
pvc 2/200
encapsulation aal5snap
hostname A1
interface ATM1/0/0
description connection to R1
interface ATM1/0/1
description connection to A2
hostname A2
interface ATM1/0/0
description connection to R2
BRBRAITT Nov-2006 19
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
interface ATM1/0/1
description connection to A1
hostname R2
ip cef
interface Loopback0
interface Ethernet0
interface ATM2/0
description connection to A2
mpls ip
pvc 2/200
encapsulation aal5snap
BRBRAITT Nov-2006 20
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
log-adjacency-changes
This section introduces you to cell-mode MPLS over ATM configuration. In MPLS
over ATM networks, routers are connected to ATM-based provider networks
consisting of ATM switches that forward data based on virtual circuits (VCs)
provisioned on the ATM switches. Cell-mode MPLS uses the virtual path
identifier/virtual channel identifier (VPI/VCI) fields in the ATM header as the label
value.
ATM VCs exist locally (on a link between two adjacent ATM switches or two CPEs)
and have two identifiers: VPI and VCI. These two identifiers are often referred to as a
VPI/VCI pair. VPI and VCI numbers are part of ATM cell headers, and they are,
therefore, carried in each ATM cell. Because there are two identifiers, you can have
two different types of ATM connections: virtual path and virtual channel. This
hierarchy allows aggregation of the number of virtual channels into a single pipe
(virtual path) between sites that need a large number of VCs.
The ATM switch is responsible for switching ATM cells on both the VC and VP.
When the ATM switch is configured to switch cells on a VC, it has to look at both VPI
and VCI fields of the cell in order to make a switching decision. Switching is done
based on a table containing (port, VPI, VCI) tuplets for the input and output side of
the VC. On Cisco IOS ATM switches, you can see this table with the show atm vc
command. You can also configure the ATM switch to switch cells based only on the
port and VPI number; this is called VP switching. For VP switching, the ATM switch
uses a table consisting of (port, VPI) pairs for input and output. You can see this table
on Cisco IOS ATM switches with the show atm vp command. When VP switching,
the ATM switch uses only the VPI field of each ATM cell to make a switching
decision, which reduces processing time. The same holds true for cell header rewrites.
In VC switching, both VPI and VCI fields of the cell header are rewritten and possibly
changed. However, in VP switching, only VPI fields can be changed, and the VCI
field remains the same end-to-end.
Figure 2-7 shows a basic cell-mode MPLS network in which R1 and R2 perform the
ATM Edge LSR function while LS1010 ATM switches A1 and A2 serve as the ATM
LSR.
BRBRAITT Nov-2006 21
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Figure 2-8 shows the configuration flowchart to set up basic cell-mode configuration
on the Edge LSR R1 and R2.
BRBRAITT Nov-2006 22
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Figure 2-9 shows the configuration flowchart for LSR A1 and A2.
Figure 2-9. Basic Cell-Mode MPLS Configuration Flowchart for ATM LSR
The configurations for basic cell-mode MPLS are based on the configuration
flowcharts outlined in Figure 2-8 and Figure 2-9. The functions of the Edge ATM
LSRs are performed by routers R1 and R2, and the ATM switches A1 and A2 function
as ATM LSRs in the cell-mode MPLS domain.
This section outlines the steps in the configuration of the Edge ATM LSR R1 for ATM
or cell-mode MPLS. Ensure that loopback and interface IP addresses are
preconfigured before following the steps:
Step 1. Enable CEF—As shown in Example 2-24, enable CEF globally. Repeat the same steps on R2.
R1(config)#ip cef
Step 2. Configure the IGP routing protocol—As shown in Example 2-25, configure OSPF as the IGP r
BRBRAITT Nov-2006 23
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Step 3. Configure MPLS forwarding on the interface—Create an MPLS subinterface on the ATM link
connected ATM switch. Enable MPLS forwarding on the ATM subinterface. Example
demonstrates this step.
R1(config-subif)#description Connection to A1
R1(config-subif)#mpls ip
_________________________________________________________________
R2(config-subif)#description Connection to A2
R2(config-subif)#mpls ip
This section demonstrates the steps to configure ATM switches A1 and A2. It is
assumed that CEF is enabled on the switches and IP addresses are configured on the
appropriate interfaces.
BRBRAITT Nov-2006 24
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
A1(config)#interface atm1/0/0
A1(config-if)#mpls ip
A1(config-if)#mpls ip
Note that no configuration has been made on the MPLS ATM subinterfaces on the
Edge ATM LSRs or LSRs with regards to the control-vc using the mpls atm control-
vc command. This implies that all the control plane information is propagated and
exchanged using the default control VC VPI/VCI values of 0/32. However, the user
can change the control-vc associated on an interface in a cell-mode MPLS network.
Changes made to the VPI/VCI values associated to the control-vc on an LSR interface
must also be made on the connected LSR's interface to enable proper exchange of
control plane information.
The following steps outline the verification process for cell-mode MPLS operation.
All verifications outlined were performed on Edge ATM LSR R1 and ATM LSR A1:
Step 1. Verify CEF is enabled on the router interfaces on Edge LSR R1, as shown in Example 2-29.
<truncated>
Step 2. As shown in Example 2-30, verify that MPLS forwarding is enabled on the appropriate interfaces
and A1.
BRBRAITT Nov-2006 25
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
_________________________________________________________________
Step 3. Verify the status of the LDP discovery process by issuing show mpls ldp discovery. This com
displays neighbor discovery information for LDP and shows the interfaces over which the
discovery process is running. Example 2-31 shows neighbor discovery information and inte
where LDP is running on R1 and A1. The xmit/recv field indicates that the interface is transmitti
receiving LDP discovery Hello packets.
10.10.10.101:0
Interfaces:
ATM2/0.1: xmit/recv
_________________________________________________________________
10.10.20.101:0
Interfaces:
BRBRAITT Nov-2006 26
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
ATM1/0/0: xmit/recv
ATM1/0/1: xmit/recv
Step 4. Issue show mpls ldp neighbor to verify the status of LDP neighbor sessions. Example 2-32 show
the LDP session between R1 and A1 is operational. Downstream on demand on R1 indicat
downstream on demand method of label distribution is used for the LDP session between R1 and
which the LSR (R1) advertises its locally assigned (incoming) labels to its LDP peer, A1, only wh
requests them.
Up time: 05:04:40
ATM2/0.1
_________________________________________________________________
Up time: 2w3d
ATM1/0/1
BRBRAITT Nov-2006 27
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Up time: 05:03:28
ATM1/0/0
Step 6. Issue ping to 10.10.10.104 from R1 to ensure reachability, as displayed in Example 2-34.
R1#ping 10.10.10.104
!!!!!
Figure 2-10 shows the control and data plane forwarding operation in cell-mode
MPLS.
BRBRAITT Nov-2006 28
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
The control plane operation shows the label propagation for prefix 10.10.10.101/32
from R1 to R4. The following steps are performed in the label propagation process for
prefix 10.10.10.101/32:
Step 1. Edge ATM LSR R4 requests a label for the 10.10.10.101/32 prefix using the LDP label mapping r
from its downstream neighbor, ATM LSR A2. A2 requests a label for the 10.10.10.101/32 prefix
the LDP label mapping request from its downstream neighbor, ATM LSR A1. A1 in turn requ
label for the 10.10.10.101/32 prefix using the LDP label mapping request from its down
neighbor, Edge ATM LSR R1. Edge ATM LSR R1 allocates a label to 10.10.10.101/32,
corresponds to its inbound VPI/VCI value 1/34, modifies the entry in the LFIB correspond
10.10.10.101/32, and sends it to A1 using an LDP reply. Example 2-35 shows the output of show
atm-ldp bindings.
BRBRAITT Nov-2006 29
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
_________________________________________________________________
Destination: 10.10.10.104/32
Destination: 10.10.20.4/30
Destination: 10.10.20.8/30
Destination: 10.10.20.101/32
Destination: 10.10.20.102/32
Destination: 10.10.10.101/32
Step 2. A1 uses the VPI/VCI 1/34 received from R1 as its outbound VPI/VCI value, allocates a free VC
mapped to the local inbound VPI/VCI 1/45, and modifies the LFIB entry for 10.10.10.101/32. A
sends VPI/VCI value 1/45 to A2 via an LDP reply. Example 2-36 shows the output of show mpl
ldp bindings. ATM LSR A1 prefix 10.10.10.104/32 has been assigned a local tag of 1/35 a
outgoing tag of 1/43. The outgoing tag is received from the downstream ATM LSR A2. During
distribution, the local tag of 1/35 has been propagated upstream to Router R1, which functions
outgoing tag for the specific prefix 10.10.10.104/32 on R1.
Destination: 10.10.20.101/32
Destination: 10.10.20.0/30
BRBRAITT Nov-2006 30
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Destination: 10.10.10.104/32
Destination: 10.10.20.4/30
Destination: 10.10.20.8/30
Destination: 10.10.20.102/32
Destination: 10.10.10.101/32
Step 3. A2 uses the VPI/VCI 1/45 received from A1 as its outbound VPI/VCI value, allocates a free VC
mapped to the local inbound VPI/VCI 1/44, and modifies the LFIB entry for 10.10.10.101/32. A
sends VPI/VCI value 1/44 to R2 via an LDP reply. Example 2-37 shows the output of show mpl
ldp bindings. As shown in Example 2-37, ATM LSR A2 prefix 10.10.10.104/32 has been assi
local tag of 1/43 and an outgoing tag of 1/35. The outgoing tag is received from the downstream
R4. The local tag of 1/43 is propagated upstream to ATM LSR A1 and functions as the next-hop
outgoing tag for prefix 10.10.10.104/32 on ATM LSR A1.
Destination: 10.10.20.4/30
Destination: 10.10.20.101/32
Destination: 10.10.20.102/32
Destination: 10.10.20.0/30
BRBRAITT Nov-2006 31
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Destination: 10.10.10.104/32
Destination: 10.10.20.8/30
Destination: 10.10.10.101/32
Step 4. Edge ATM LSR R2 uses VPI/VCI value 1/44 received from A2 as its outbound VPI/VCI valu
modifies the entry in the LFIB. Example 2-38 shows the output of show mpls atm-ldp bindin
shown in Example 2-38 on Edge ATM LSR R2, the mpls atm-ldp bindings show the local tag o
assigned to prefix 10.10.10.104/32. This local tag is propagated upstream to ATM LSR A
functions as the next-hop tag or outgoing tag for prefix 10.10.10.104/32 on A2.
_________________________________________________________________
Destination: 10.10.20.0/30
Destination: 10.10.20.4/30
Destination: 10.10.20.101/32
BRBRAITT Nov-2006 32
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Destination: 10.10.20.102/32
Destination: 10.10.10.101/32
Destination: 10.10.10.104/32
The following steps are performed in the data forwarding path from R4 to prefix
10.10.10.101/32:
Step 1. R4 imposes label 1/44 on the AAL5 cell originating from R4 and destined
to 10.10.10.101/32.
Step 2. A2 does an LFIB lookup and swaps label 1/44 with 1/45 and forwards that
AAL5 cell to A1.
Step 3. A1 receives the data packet from A2, does an LFIB lookup, swaps label
1/45 with 1/34, and forwards that AAL5 cell to R1. Penultimate hop
popping is not supported on ATM devices because the label is part of the
ATM cell payload and cannot be removed by ATM switching hardware.
Therefore, A1, which is an ATM device, does not perform any penultimate
hop popping function.
Example 2-39 through Example 2-42 outline the pertinent configurations for all the
devices in the cell-mode MPLS domain.
hostname R1
ip cef
BRBRAITT Nov-2006 33
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
interface Loopback0
interface ATM2/0
description Connection to A1
mpls ip
log-adjacency-changes
hostname A1
interface ATM1/0/0
description Connection to R1
mpls ip
interface ATM1/0/1
description Connection to A2
mpls ip
BRBRAITT Nov-2006 34
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
hostname A2
interface ATM1/0/0
description connection to R2
mpls ip
interface ATM1/0/1
description connection to A1
mpls ip
hostname R2
ip cef
interface Loopback0
BRBRAITT Nov-2006 35
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
interface ATM2/0
description connection to A2
mpls ip
log-adjacency-changes
The VC-merge feature in cell-mode MPLS allows an ATM LSR to aggregate multiple
incoming flows with the same destination address into a single outgoing flow.
Therefore, when two Edge LSRs are sending packets to the same destination, the
ingress label mapping to the two Edge LSRs are mapped to a single outgoing label.
The number of VCs required for label switching is greatly reduced as the ATM switch
maintains just one outgoing VC label for each destination prefix. VC-merge reduces
the label space that needs to be maintained by sharing labels for flows toward the
same FEC or prefix.
Figure 2-11 shows a cell-mode MPLS network. This is the same as the network
shown in Figure 2-10 except the new Router R3 is added, which is connected to A1.
Edge LSRs R1 and R3 share the same label space for the same destination prefixes on
Edge ATM LSR R2.
BRBRAITT Nov-2006 36
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
The configuration flowchart for Edge ATM LSR for cell-mode MPLS with VC-merge
remains the same as what was shown for basic cell-mode MPLS (refer to Figure 2-8).
The only difference in the basic cell-mode MPLS configuration block and cell-mode
MPLS with VC-merge for ATM LSR is the inclusion of the command shown in
Example 2-43.
Depending upon the hardware, the ATM VC-merge capability is enabled by default;
otherwise, this feature is disabled. Please check Cisco Documentation at cisco.com.
The configuration steps for cell-mode MPLS with VC-merge on Edge ATM LSR are
the same as what was shown earlier in section "Configuration Steps for Edge ATM
LSR."
The configuration steps for cell-mode MPLS with VC-merge on ATM LSR are the
same as those shown in the section "Configuration Steps for ATM LSR," except that
A1 is enabled with the VC-merge command mpls ldp atm vc-merge.
BRBRAITT Nov-2006 37
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
The configurations for R1, R2, and A2 remain the same as what was shown in the
section "Final Device Configurations for Basic Cell-Mode MPLS." The
configurations for R3 and A1 are shown in Example 2-44 and Example 2-45. Note
that the configuration for A1 does not depict the mpls ldp atm vc-merge command,
which implies that the ATM LSR A1 supports VC-merge functionality by default.
hostname R3
ip cef
interface Loopback0
interface ATM2/0
description connection to A1
mpls ip
hostname A1
interface Loopback0
BRBRAITT Nov-2006 38
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
interface ATM1/0/0
description Connection to R1
mpls ip
interface ATM1/0/1
description Connection to A2
mpls ip
interface ATM1/0/2
description connection to R5
mpls ip
The following steps outline the verification procedure for cell-mode MPLS over ATM
implementation with VC-merge on the ATM LSRs:
Step 1. Verify if ATM VC-merge is enabled on the ATM LSR by issuing the show
mpls atm-ldp capability command on the ATM LSR. The output of this
command is shown in Example 2-46.
BRBRAITT Nov-2006 39
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Destination: 10.10.10.104/32
In MPLS over ATM without VC-merge, each path (with the same ingress router and
same Forwarding Equivalent Class [FEC]) consumes one label VC on each interface
along the path. This results in unnecessary exhaustion of the already scarce label
space.
The network topology remains the same as what was shown in the section
"Configuring Cell-Mode MPLS with VC-Merge." All configurations remain the same
BRBRAITT Nov-2006 40
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
except, as shown in Figure 2-11, where VC-merge is disabled on A1. Example 2-48
highlights the configuration to disable VC-merge.
As shown in Example 2-49, when VC-merge is disabled on ATM LSR A1, flows to
the same destination are assigned different outgoing VC labels. show mpls atm-ldp
bindings on A1 shows two different outgoing labels, 1/33 and 1/36, are assigned to
the data flows from R3 and R1, respectively, to destination prefix 10.10.10.104/32.
Because VC-merge is not used, one VC is allocated per route as determined by the
prefix in the routing table.
Destination: 10.10.10.104/32
BRBRAITT Nov-2006 41
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
The basic configuration flowchart for MPLS over VP tunnel is the same as what was
shown in the section "Basic Cell-Mode MPLS Configuration and Verification" (refer
to Figure 2-8).
The configuration flowchart for creating an ATM PVP is shown in Figure 2-13.
Ensure necessary IP addresses are configured prior to following these steps. The steps
to configure MPLS over VP tunnels are as follows:
Step 1. A VP connection is like a bundle of VCs, transporting all cells with a common VPI, rather
specific VPI and VCI. A PVP is a permanent VP (like PVC). Example 2-50 shows how to config
internal cross-connect (within the switch router) PVP on switch A1 between interface 1/0/0, V
and interface 1/0/1, VPI = 2, and switch A2 between interface 1/0/0, VPI = 2 and interface 1/0/1,
BRBRAITT Nov-2006 42
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
2.
A1(config)#interface ATM1/0/1
A1(config-if)# no ip address
_________________________________________________________________
A2(config)#interface ATM1/0/1
A2(config-if)# no ip address
Step 2. Configure the VP tunnel using mpls atm vp-tunnel vpi vc-range {start-of-vci-range-end-of-vci-r
under the MPLS ATM subinterface. Enable MPLS on the created subinterface, as shown in Exam
51.
R1(config-subif)#mpls ip
_________________________________________________________________
R2(config-subif)#mpls ip
BRBRAITT Nov-2006 43
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Step 3. Configure IGP for IP connectivity across the VP tunnel on R1 and R2, as shown in Example 2-52.
Step 1. Verify operation of PVP on the ATM switches, as shown in Example 2-53.
A1#show atm vp
_________________________________________________________________
A2#show atm vp
Step 2. Verify OSPF routes on R1 by issuing show ip route ospf. Example 2-54 shows the networks re
on R1 from R2.
BRBRAITT Nov-2006 44
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Step 3. Verify connectivity across the VP tunnel using the ping command, as shown in Example 2-55.
!!!!!
The final device configuration for R1, A1, A2, and R2 is shown in Example 2-56
through Example 2-59.
hostname R1
ip cef
interface Loopback0
interface Ethernet0
interface ATM2/0
BRBRAITT Nov-2006 45
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
description Connection to A1
mpls ip
hostname A1
interface ATM1/0/0
description Connection to R1
interface ATM1/0/1
description Connection to A2
hostname A2
interface ATM1/0/0
description connection to R2
BRBRAITT Nov-2006 46
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
interface ATM1/0/1
description connection to A1
hostname R2
ip cef
interface Loopback0
interface Ethernet0
interface ATM2/0
description connection to A2
mpls ip
BRBRAITT Nov-2006 47
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Cell-mode MPLS can also be implemented by separating the control and data plane
functions of an ATM LSR. The control plane function is performed by a device called
the LSC or label switch controller, and the data plane function can be performed by an
ATM switch such as the BPX8600 Series ATM switches. In the BPX with LSC
design, the LSC is connected to the BPX ATM switch by trunks that can carry PVCs,
SVCs, or MPLS Label VCs (LVCs). The control software is physically located in the
LSC that is connected to the ATM switch by a physical connection also called the
virtual switch interface (VSI) control link. The VSI control link could be an STM-1
link connected to a single port of a broadband switching module (BXM) linecard on
the BPX8600. This is shown in Figure 2-14.
In Figure 2-14, the functions control plane is implemented using a BPX+LSC. The
figure outlines a connection from each of the Edge ATM LSRs to the LSC connected
to the BPX switch using LVCs. These signaling LVCs are maintained per LSR that the
BPX+LSC is connected to. In addition, VSI control links are maintained per card on
the BPX.
From a data plane perspective, data label VCs bypass the LSC and are switched using
the BPX ports. Therefore, in the data plane, the traffic via the ATM label switch router
traverses only the BPX ATM switch and not the LSC.
BRBRAITT Nov-2006 48
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
The signaling label VCs are on VPI/VCI values of 0/32 by default and will be cross-
connected to a different VCI on the switch control link between the BPX and LSC.
One key thing to note is that the LSC functions as the VSI master and the BPX
functions as the VSI slave.
Figure 2-15 shows the physical connections for this section in which two Edge ATM
LSRs are connected to a BPX 8600 switch. The LSC (7200 router) is also connected
on the same switch. The numbers 2.1, 2.2, and 2.3 in Figure 2-15 pertain to slot.port
on the BPX 8600 switch. The only IP addresses shown in this figure are those of the
loopbacks on the LSR and ELSRs. Figure 2-16 shows the Edge ATM LSRs connected
to the LSC in the control plane using the VSI control VCs as well as the signaling
LVCs that originate from an mpls subinterface on the Edge ATM LSR and terminate
on an XtagATM interface on the LSC. The XtagATM interface controls the trunks on
the BPX that are connected to other LSRs.
BRBRAITT Nov-2006 49
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Step 1. Verify the cards on the BPX by issuing dspcds command. As shown in
Example 2-60, the BXM-155 card connects and configures the trunks on
the BPX as well as the appropriate resources on the ports.
FrontCard BackCard
FrontCard BackCard
BRBRAITT Nov-2006 50
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Empty
Next Command:
Step 2. Enable the trunks on the ports 2.1, 2.2, and 2.3. This is as shown in
Example 2-60. Example 2-61 shows only the command to be used in the
"next command" section to enable the three trunks connecting to the two
Edge ATM LSRs as well as the LSC.
When the trunks are configured, view the trunk configuration using the
dsptrks command, as shown in Example 2-62.
BRBRAITT Nov-2006 51
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Next Command:
Port/Trunk : 2.1
(Statisti
cal Reserve: 1000)
Partition 1
Repeat this command to configure resources for trunks 2.2 and 2.3.
BRBRAITT Nov-2006 52
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
However, all trunks need to be part of the same partition (1). When
completed, a dsprsrc issued for the appropriate trunk and partition IDs, as
shown in Example 2-64, shows the resources allocated to the trunk.
Port/Trunk : 2.2
Maximum PVC LCNS: 256 Maximum PVC Bandwidth:247207
(Statisti
cal Reserve: 1000)
Partition 1
Step 4. MPLS labeled packets use the queues 10–14 on each port (one queue per
class). To enable MPLS packet forwarding, configure the queues using the
cnfqbin command. Example 2-65 shows the command to configure the
qbin 10 on BPX trunk 2.2 as well as the output of the configuration.
BRBRAITT Nov-2006 53
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Step 5. Finally, add an LSC shelf as a VSI master using the addshelf command. In
Example 2-66, the first "1" after "VSI" is the VSI controller ID, which must
be set the same on both the BPX 8650 and the LSC. The default controller
ID on the LSC is "1." The second "1" after "VSI" is the partition ID that
indicates this is a controller for partition 1. The "v" stands for a VSI
controller.
VPI VCIRange
To verify, perform a dsptrks, and the trunk 2.2 appears with VSI on the
other end column to show that a VSI master systems or device is connected
on trunk 2.2, as shown in Example 2-67.
BRBRAITT Nov-2006 54
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Configuration of the LSC involves enabling the 7200/7500 series as a LSC for the
BPX shelf and configuration of XTagATM interfaces to control the trunks on the BPX
shelf:
Step 1. Configure the ATM interface connected to the BPX trunk 2.2 to be the VSI
control link between the BPX and the 7200/7500. See Example 2-68.
LSC(config)#interface ATM1/0
LSC(config-if)# no ip address
Step 2. Configure the XTagATM interfaces as control links for the trunks 2.1 and
2.3 on the BPX using the extended port command on the LSC, as
displayed in Example 2-69. Note that the numbering of the XTagATM
interfaces maps to the actual trunk ports that they control on the BPX shelf.
Therefore, XTagATM interface 21 controls BPX trunk 2.1, and XTagATM
interface 23 controls BPX trunk 2.3.
LSC(config)#interface ATM1/0
LSC(config-if)# no ip address
LSC(config-if)#interface XTagATM21
LSC(config-if)# mpls ip
LSC(config-if)#interface XTagATM23
LSC(config-if)# mpls ip
Step 3. Configure OSPF as the IGP on the LSC, and include all interfaces for
BRBRAITT Nov-2006 55
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
LSC(config-router)# log-adjacency-changes
Step 4. Verify the operation of the VSI control interfaces using the show
controllers vsi status command on the LSC. See Example 2-71.
The configuration of the Edge ATM LSRs contains the same configuration as that of
Edge ATM LSRs when implementing basic cell-mode MPLS, involving configuration
of an MPLS subinterface under the ATM physical interface and other ATM-TDP
parameters. OSPF is the IGP routing protocol. See Example 2-72.
ELSR1(config)#interface ATM3/0
ELSR1(config-if)# no ip address
ELSR1(config-subif)# mpls ip
BRBRAITT Nov-2006 56
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
_________________________________________________________
____________
ELSR2(config)#interface ATM1/0
ELSR2(config-if)# no ip address
ELSR2(config-subif)# mpls ip
The key command to be added in Example 2-72 is mpls atm vpi, which defines the
VPI range to be used for the LVCs. This needs to match the configuration of the BPX,
as shown in Example 2-64.
Step 1. Verify TDP neighbor discovery and neighbor status on ELSR1, ELSR2, and LSC. Note that, bec
is only capable of ATM-TDP, the peering process appears as a TDP neighbor relationship and no
neighbor relationship. See Example 2-73.
Up time: 11:39:02
_________________________________________________________________
BRBRAITT Nov-2006 57
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
10.10.10.101:0
Discovery Sources:
Interfaces:
_________________________________________________________________
Up time: 11:39:47
_________________________________________________________________
10.10.10.102:0
Discovery Sources:
Interfaces:
_________________________________________________________________
BRBRAITT Nov-2006 58
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Up time: 11:42:08
XTagATM21
Up time: 11:42:06
XTagATM23
_________________________________________________________________
10.10.10.100:0
Interfaces:
XTagATM21: xmit/recv
XTagATM23: xmit/recv
Step 2. Verify MPLS label exchange on the Edge LSRs, as shown in Example 2-74.
Destination: 10.10.10.4/30
BRBRAITT Nov-2006 59
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Destination: 10.10.10.100/32
Destination: 10.10.10.102/32
Destination: 10.10.10.101/32
_________________________________________________________________
Destination: 10.10.10.0/30
Destination: 10.10.10.100/32
Destination: 10.10.10.101/32
Destination: 10.10.10.102/32
BRBRAITT Nov-2006 60
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
_________________________________________________________________
_________________________________________________________________
Step 4. Confirm connectivity using ping between ELSRs, as shown in Example 2-76.
LSR1#ping 10.10.10.102
!!!!!
Command Reference
Command Description
Router(config)#ip cef Enables CEF operation. Use the distributed
[distributed] keyword for distributed switching platforms in
which line cards maintain an identical copy of the
BRBRAITT Nov-2006 61
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Command Description
FIB and adjacency tables. The line cards perform
the forwarding function between port adapters,
relieving the route processor of involvement in
the switching operation.
Router(config-if)#ip route-cache Enables CEF on the interface.
cef
Router(config-if)#mpls ip Enables MPLS forwarding on the interface.
Router(config)#router ospf OSPF IGP configuration.
process-id
Router(config-router)#network ip-
address wild-card mask area area-
id
Router(config-router)#no auto-
summary
Router(config)#router isis ISIS IGP configuration.
process-id
Router(config-router)#net
network-entity-title
Router(config)#interface type
number
BRBRAITT Nov-2006 62
“DATA NETWORK” FOR JTOs PH-II : MPLS_Configuration
Command Description
Router(config-if)#mpls mtu bytes Defining the MPLS MTU per interface.
Router(config)#interface atm Configuring a tag-switching subinterface on an
number.sub-interface-number mpls Edge ATM LSR for cell-mode MPLS label
forwarding.
Router(config-subif)# mpls atm Configuring the control-vc parameters for
control-vc vpi-value vci-value protocol information exchange (control plane).
Default value for control-vc is VPI/VCI of 0/32.
Router(config-subif)# mpls atm Configuring MPLS ATM VPI range (default: 1-1).
vpi start-vpi-value [-vci-value]
Router(config)#mpls atm ldp vc- Enabling VC-merge on ATM LSR.
merge
Router(config)#tag-switching atm Sets maximum hops for bindings from ATM cell-
maxhops value mode domain.
Router(config)#mpls atm vp- Identifies the subinterface as a VP tunnel with
tunnel vpi-value [vci-value-range] specified VPI values.
BRBRAITT Nov-2006 63