- •Acknowledgments
- •Introduction
- •Assessment Test
- •Answers to Assessment Test
- •Service Provider Networks
- •Scalability
- •Traffic Engineering
- •Quality of Service
- •MPLS Label Stack
- •Shim Header
- •MPLS Architecture
- •Control
- •Forwarding
- •MPLS Label Switching
- •MPLS Network Components
- •Device Output
- •Label-Switched Paths
- •MPLS Applications
- •MPLS and ATM
- •Overlay
- •Quality of Service
- •Traffic Engineering
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •Routing Review
- •Frame-Mode MPLS Working Example
- •Network Routing Protocol Examples
- •MPLS Step by Step
- •Label Distribution
- •Assigning Labels
- •Troubleshooting and Verification
- •Device Configuration
- •IGP Verification
- •CEF Verification
- •MPLS Verification
- •Label Distribution and Bindings
- •Binding Verification
- •Troubleshooting the Network
- •Hiding Service Provider Devices
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •Frame-Mode MPLS and ATM
- •Frame-Mode MPLS and ATM Configuration
- •Cell-Mode MPLS
- •Label Binding with ATM
- •Cell-Mode Label Switching
- •VC Merge
- •Loop Prevention
- •Cell-Mode MPLS Configuration
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •VPNs 101
- •Point-to-Point Connections
- •Virtual Private Networks
- •Categories of VPNs
- •VPN Routing
- •Peer-to-Peer VPNs
- •Optimal Routing
- •Peer-to-Peer Security
- •Peer-to-Peer VPN Routing
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •Service Provider Configuration
- •MPLS VPNs
- •Virtual Router
- •Virtual Routing and Forwarding Tables
- •MPLS Operational Overview
- •MP-BGP Configuration
- •An MPLS VPN Example
- •Route Distinguisher
- •MP-IBGP Configuration Example
- •Initial Network Configuration
- •MP-IBGP Configuration
- •Verification
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •A Review of VPNs
- •Configuring a Simple MPLS VPN
- •Configuring VRF Interfaces
- •Running RIP in an MPLS VPN
- •Configuring RIPv2 with Address-Family ipv4
- •Configuring Redistribution
- •Route Targets
- •Configuring Route Targets
- •A Review of Simple VPN Configuration
- •Configuring MPLS in the Service Provider Network
- •Simple VPN Configuration
- •Configuring the PE-CE Routing Protocol
- •Lab: Configuring an MPLS VPN
- •Configuring POP Routers
- •VPN Configuration
- •Raleigh Running-Config
- •Atlanta Running-Config
- •Peer 1 Running-Config
- •Peer 2 Running-Config
- •Verification with Ping
- •Routing Table Isolation
- •Verifying VRF Routes
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •MP-BGP and OSPF
- •A Review of OSPF
- •OSPF Router Types
- •Link State Advertisements
- •OSPF for MPLS VPNs
- •OSPF Super-Backbone
- •Preventing Routing Loops
- •Path Selection
- •MPLS VPN OSPF Lab
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •Static Routing
- •Device Configuration
- •VPN Configuration
- •Raleigh Running-Config
- •Atlanta Running-Config
- •Peer Router Configuration
- •Verification with Ping
- •Verifying Static VRF Routes
- •E-BGP and MPLS VPNs
- •Device Configuration
- •E-BGP Operation
- •AS-Override
- •VPN Configuration
- •Raleigh Running-Config
- •Atlanta Running-Config
- •Peer Router Configuration
- •Peer 1 Running-Config
- •Peer 2 Running-Config
- •Verification with Ping
- •Advanced MPLS VPN Topologies
- •Simple VPNs
- •Central Services MPLS VPN Topology
- •Overlay MPLS VPN Topology
- •Summary
- •Exam Essentials
- •Key Terms
- •Review Questions
- •Answers to Review Questions
- •Challenge Lab 1
- •MPLS
- •MP-IBGP
- •Answer to Lab 1.1
- •Answer to Lab 1.2
- •Answer to Lab 1.3
- •Challenge Lab 2
- •Tag Switching
- •MP-IBGP
- •Answer to Lab 2.1
- •Answer to Lab 2.2
- •Answer to Lab 2.3
- •Challenge Lab 3
- •VRF Configuration
- •RIPv2
- •Redistribution
- •Answer to Lab 3.1
- •Answer to Lab 3.2
- •Answer to Lab 3.3
- •Challenge Lab 4
- •VRF Configuration
- •OSPF
- •Redistribution
- •Answer to Lab 4.1
- •Answer to Lab 4.2
- •Answer to Lab 4.3
- •Challenge Lab 5
- •VRF Configuration
- •Static Routes and Redistribution
- •Answer to Lab 5.1
- •Answer to Lab 5.2
- •Challenge Lab 6
- •VRF Configuration
- •E-BGP Configuration
- •Answer to Lab 6.1
- •Answer to Lab 6.2
- •Service Provider Network Configuration with OSPF
- •Router Configuration
- •Routing Tables
- •Tags
- •Service Provider Network Configuration with IS-IS
- •Router Configuration
- •Routing Tables
- •Tag Switching Forwarding Tables
- •Glossary
MPLS Label Switching 11
MPLS Label Switching
Until you see MPLS label switching in operation, it may still be all smoke and mirrors. This section runs through a quick and dirty example that shows how MPLS label switching works.
MPLS Network Components
Figure 1.8 illustrates a simple service provider network that we’ll use for the example in this section.
F I G U R E 1 . 8 A simple service provider network
|
Serial |
0/0 |
0/0 |
0/1 |
0/0 |
0/1 |
0/0 |
|
Serial 0/1 |
Serial |
|
Serial Serial |
|
Serial Serial |
|
Serial 0/1 |
|
|
|
|
|
|
|
|
||
PE1 |
|
P1 |
|
P2 |
|
PE2 |
||
Serial 0 |
|
|
|
|
|
|
Serial 0 |
|
CE1 |
|
|
|
|
|
|
CE2 |
The routers in the network are labeled CE1, PE1, P1, P2, PE2, and CE2. These names are acronyms for:
CE A customer edge (CE) device. This is a router that connects to the customer network and to a service provider.
PE A provider edge (PE) device. This is a service provider piece of equipment that connects to a customer and into the provider (P) network.
P A provider (P) device. This is a service provider piece of equipment that exists entirely in the provider (P) network and only connects to other service provider devices (not to customers).
In addition, the PE and P routers are label switch routers. There are two types of label switch routers:
LSR A label switch router (LSR) is a Cisco IOS router/switch that is capable of forwarding packets based on labels. The CE, or customer, devices are not LSRs and can handle regular unlabeled IP packets.
Copyright ©2002 SYBEX, Inc., Alameda, CA |
www.sybex.com |
12 Chapter 1 An Introduction to MPLS
Edge-LSR An edge label switch router (edge-LSR) is a more specific term for the PE routers. An edge-LSR is an edge device that is also an LSR. For an MPLS network, this is the device that takes unlabeled IP traffic and imposes, or in MPLS terms, pushes an MPLS label and switches the traffic to the next LSR. The edge-LSR also takes labeled traffic and deposes, or in MPLS terms, pops the label and forwards it to the next hop. A PE device is an edge-LSR in MPLS-based networks.
The network addresses for the provider devices are listed in Table 1.1. The IP addresses of the clients and client connections will be shown in a later example.
T A B L E 1 . 1 Service Provider IP Addressing
Device |
Serial 0/0 |
Serial 0/1 |
Loopback 0 |
|
|
|
|
PE1 |
192.168.1.10 |
|
192.168.1.1 |
P1 |
192.168.1.9 |
192.168.1.14 |
192.168.1.2 |
P2 |
192.168.1.13 |
192.168.1.18 |
192.168.1.3 |
PE2 |
192.168.1.17 |
|
192.168.1.4 |
|
|
|
|
RIPv2 and MPLS have been enabled on each of the P and PE devices in Figure 1.8.
Device Output
As you may recall from the MPLS architecture section, I asked you to repeat to yourself, “Labels are bound to routes in the routing table.” The only exceptions to this rule are BGP routes. So, you can expand the mantra to, “Labels get bound to subnets in the routing table, with the exception of BGP routes.”
In the following output, each network device in the simple network illustrated in Figure 1.8 has both a routing table and labels bound to network routes. As you look at the following device outputs, take a careful
Copyright ©2002 SYBEX, Inc., Alameda, CA |
www.sybex.com |
MPLS Label Switching 13
look at the IP prefixes in the routing table and then look to find the corresponding label.
The following output shows the RIPv2 routes on PE1:
PE1#show ip route rip
... Output Omitted
R 192.168.1.16/30 [120/2] via 192.168.1.21, 00:00:20, Serial0/0 R 192.168.1.4/32 [120/3] via 192.168.1.21, 00:00:20, Serial0/0 R 192.168.1.2/32 [120/1] via 192.168.1.21, 00:00:20, Serial0/0 R 192.168.1.3/32 [120/2] via 192.168.1.21, 00:00:20, Serial0/0 R 192.168.1.12/30 [120/1] via 192.168.1.21, 00:00:20, Serial0/0
The following output shows the label mappings on PE1:
PE1#show mpls forwarding-table |
|
|
|
||
Local |
Outgoing |
Prefix |
Bytes tag |
Outgoing |
Next Hop |
tag |
tag or VC |
or Tunnel Id |
switched |
interface |
|
27 |
27 |
192.168.1.16/30 |
0 |
Se0/0 |
point2point |
28 |
28 |
192.168.1.4/32 |
0 |
Se0/0 |
point2point |
29 |
Pop tag |
192.168.1.2/32 |
0 |
Se0/0 |
point2point |
30 |
29 |
192.168.1.3/32 |
0 |
Se0/0 |
point2point |
32 |
Pop tag |
192.168.1.12/30 |
0 |
Se0/0 |
point2point |
The following output shows the RIPv2 routes on P1:
P1#show ip route rip
... Output Omitted
R 192.168.1.16/30 [120/1] via 192.168.1.17, 00:00:27, Serial0/1 R 192.18.1.1/32 [120/1] via 192.168.1.22, 00:00:25, Serial0/0 R 192.168.1.4/32 [120/2] via 192.168.1.17, 00:00:27, Serial0/1 R 192.168.1.3/32 [120/1] via 192.168.1.17, 00:00:27, Serial0/1
The following output shows the label mappings on P1:
P1#show mpls forwarding-table |
|
|
|
||
Local |
Outgoing |
Prefix |
Bytes tag |
Outgoing |
Next Hop |
tag |
tag or VC |
or Tunnel Id |
switched |
interface |
|
27 |
Pop tag |
192.168.1.16/30 |
0 |
Se0/1 |
point2point |
28 |
27 |
192.168.1.4/32 |
0 |
Se0/1 |
point2point |
29 |
Pop tag |
192.168.1.3/32 |
0 |
Se0/1 |
point2point |
31 |
Pop tag |
192.168.1.1/32 |
0 |
Se0/0 |
point2point |
Copyright ©2002 SYBEX, Inc., Alameda, CA |
www.sybex.com |
14 Chapter 1 An Introduction to MPLS
The following output shows the RIPv2 routes on P2:
P2#show ip route rip
... Output Omitted
R 192.168.1.1/32 [120/2] via 192.168.1.18, 00:00:27, Serial0/0 R 192.168.1.4/32 [120/1] via 192.168.1.13, 00:00:00, Serial0/1 R 192.168.1.2/32 [120/1] via 192.168.1.18, 00:00:27, Serial0/0 R 192.168.1.8/30 [120/1] via 192.168.1.18, 00:00:27, Serial0/0
The following output shows the label mappings on P2:
P2#show mpls forwarding-table |
|
|
|
||
Local |
Outgoing |
Prefix |
Bytes tag Outgoing |
Next Hop |
|
tag |
tag or VC |
or Tunnel Id |
switched |
interface |
|
27 |
Pop tag |
192.168.1.4/32 |
26224 |
Se0/1 |
point2point |
28 |
Pop tag |
192.168.1.2/32 |
29568 |
Se0/0 |
point2point |
30 |
Pop tag |
192.168.1.8/30 |
0 |
Se0/0 |
point2point |
31 |
31 |
192.168.1.1/32 |
0 |
Se0/0 |
point2point |
The following output shows the RIPv2 routes on PE2:
PE2#show ip route rip
... Output Omitted
R 192.168.1.1/32 [120/3] via 192.168.1.14, 00:00:22, Serial0/0 R 192.168.1.2/32 [120/2] via 192.168.1.14, 00:00:22, Serial0/0 R 192.168.1.3/32 [120/1] via 192.168.1.14, 00:00:22, Serial0/0 R 192.168.1.12/30 [120/1] via 192.168.1.14, 00:00:22, Serial0/0 R 192.168.1.8/30 [120/2] via 192.168.1.14, 00:00:22, Serial0/0
The following output shows the label mappings on PE2:
PE2#show mpls forwarding-table |
|
|
|
||
Local |
Outgoing |
Prefix |
Bytes tag |
Outgoing |
Next Hop |
tag |
tag or VC |
or Tunnel Id |
switched |
interface |
|
26 |
31 |
192.168.1.1/32 |
0 |
Se0/0 |
point2point |
27 |
28 |
192.168.1.2/32 |
0 |
Se0/0 |
point2point |
28 |
Pop tag |
192.168.1.3/32 |
0 |
Se0/0 |
point2point |
30 |
Pop tag |
192.168.1.12/30 |
0 |
Se0/0 |
point2point |
31 |
30 |
192.168.1.8/30 |
0 |
Se0/0 |
point2point |
Copyright ©2002 SYBEX, Inc., Alameda, CA |
www.sybex.com |