H3C SR8800 10G Mpls Configuration Manual

Category
Networking
Type
Mpls Configuration Manual
H3C SR8800 10G Core Routers
MPLS Configuration Guide
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: SR8800-CMW520-R3347
Document version: 6W103-20120224
Copyright © 2011-2012, Hangzhou H3C Technologies Co., Ltd. and its licensors
All rights reserved
No part of this manual may be reproduced or transmitted in any form or by any means without prior
written consent of Hangzhou H3C Technologies Co., Ltd.
Trademarks
H3C, , Aolynk, , H
3
Care, , TOP G, , IRF, NetPilot, Neocean, NeoVTL,
SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V
2
G, V
n
G, PSPT,
XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co.,
Ltd.
All other trademarks that may be mentioned in this manual are the property of their respective owners
Notice
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute the warranty of any kind, express or implied.
Preface
The H3C SR8800 documentation set includes 13 configuration guides, which describe the software
features for the H3C SR8800 10G Core Routers and guide you through the software configuration
procedures. These configuration guides also provide configuration examples to help you apply software
features to different network scenarios.
The MPLS Configuration Guide describes fundamentals and configuration of MPLS basics, MPLS TE, VPLS,
MPLS L2VPN, and MPLS L3VPN.
This preface includes:
Audience
Conventions
About the H3C SR8800 documentation set
Obtaining documentation
Technical support
Documentation feedback
Audience
This documentation is intended for:
Network planners
Field technical support and servicing engineers
Network administrators working with the SR8800 series
Conventions
This section describes the conventions used in this documentation set.
Command conventions
Convention Descri
p
tion
Boldface Bold text represents commands and keywords that you enter literally as shown.
Italic Italic text represents arguments that you replace with actual values.
[ ] Square brackets enclose syntax choices (keywords or arguments) that are optional.
{ x | y | ... }
Braces enclose a set of required syntax choices separated by vertical bars, from which
you select one.
[ x | y | ... ]
Square brackets enclose a set of optional syntax choices separated by vertical bars, from
which you select one or none.
{ x | y | ... } *
Asterisk marked braces enclose a set of required syntax choices separated by vertical
bars, from which you select at least one.
[ x | y | ... ] *
Asterisk marked square brackets enclose optional syntax choices separated by vertical
bars, from which you select one choice, multiple choices, or none.
Convention Descri
p
tion
&<1-n>
The argument or keyword and argument combination before the ampersand (&) sign can
be entered 1 to n times.
# A line that starts with a pound (#) sign is comments.
GUI conventions
Convention Descri
p
tion
Boldface
Window names, button names, field names, and menu items are in Boldface. For
example, the New User window appears; click OK.
> Multi-level menus are separated by angle brackets. For example, File > Create > Folder.
Symbols
Convention Descri
p
tion
WARNING
An alert that calls attention to important information that if not understood or followed can
result in personal injury.
CAUTION
An alert that calls attention to important information that if not understood or followed can
result in data loss, data corruption, or damage to hardware or software.
IMPORTANT
An alert that calls attention to essential information.
NOTE
An alert that contains additional or supplementary information.
TIP
An alert that provides helpful information.
Network topology icons
Represents a generic network device, such as a router, switch, or firewall.
Represents a routing-capable device, such as a router or Layer 3 switch.
Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports
Layer 2 forwarding and other Layer 2 features.
Port numbering in examples
The port numbers in this document are for illustration only and might be unavailable on your router.
About the H3C SR8800 documentation set
The H3C SR8800 documentation set includes:
Cate
g
or
y
Documents
Pur
p
oses
Product description and
specifications
Marketing brochures
Describe product specifications and benefits.
Technology white papers
Provide an in-depth description of software features
and technologies.
Card datasheets Describe card specifications, features, and standards.
Cate
g
or
y
Documents
Pur
p
oses
Hardware specifications
and installation
Compliance and safety
manual
Provides regulatory information and the safety
instructions that must be followed during installation.
Installation guide
Provides a complete guide to hardware installation
and hardware specifications.
H3C N68 Cabinet
Installation and Remodel
Introduction
Guides you through installing and remodeling H3C
N68 cabinets.
H3C Pluggable SFP
[SFP+][XFP] Transceiver
Modules Installation
Guide
Guides you through installing SFP/SFP+/XFP
transceiver modules.
H3C High-End Network
Products Hot-Swappable
Module Manual
Describes the hot-swappable modules available for
the H3C high-end network products, their external
views, and specifications.
Software configuration
Configuration guides
Describe software features and configuration
procedures.
Command references Provide a quick reference to all available commands.
Operations and
maintenance
Release notes
Provide information about the product release,
including the version history, hardware and software
compatibility matrix, version upgrade information,
technical support information, and software
upgrading.
Obtaining documentation
You can access the most up-to-date H3C product documentation on the World Wide Web
at http://www.h3c.com
.
Click the links on the top navigation bar to obtain different categories of product documentation:
[Technical Support & Documents > Technical Documents]
– Provides hardware installation, software
upgrading, and software feature configuration and maintenance documentation.
[Products & Solutions]
Provides information about products and technologies, as well as solutions.
[Technical Support & Documents > Software Download]
– Provides the documentation released with the
software version.
Technical support
http://www.h3c.com
Documentation feedback
You can e-mail your comments about product documentation to [email protected].
We appreciate your comments.
i
Contents
Configuring basic MPLS ·············································································································································· 1
MPLS overview ·································································································································································· 1
Basic concepts ·························································································································································· 1
Structure of the MPLS network ································································································································· 3
LSP establishment and label distribution ················································································································ 3
MPLS forwarding ······················································································································································ 6
LDP ············································································································································································· 8
Protocols ···································································································································································· 9
MPLS configuration task list ··········································································································································· 10
Enabling the MPLS function ··········································································································································· 11
Configuration prerequisites ·································································································································· 11
Configuration procedure ······································································································································ 11
Configuring a static LSP ················································································································································ 11
Configuration prerequisites ·································································································································· 11
Configuration procedure ······································································································································ 12
Establishing dynamic LSPs through LDP ······················································································································· 12
Configuring MPLS LDP capability ························································································································ 12
Configuring Local LDP session parameters ········································································································· 13
Configuring remote LDP session parameters ······································································································ 14
Configuring PHP ···················································································································································· 15
Configuring the policy for triggering LSP establishment ··················································································· 16
Configuring the label distribution control mode ································································································ 16
Configuring LDP loop detection ··························································································································· 17
Configuring LDP MD5 authentication ·················································································································· 18
Configuring LDP label filtering ····························································································································· 18
Maintaining LDP sessions ·············································································································································· 20
Configuring BFD for MPLS LDP ···························································································································· 20
Resetting LDP sessions ··········································································································································· 20
Managing and optimizing MPLS forwarding ············································································································· 21
Configuring MPLS MTU ········································································································································ 21
Configuring TTL processing mode at ingress ······································································································ 21
Sending back ICMP TTL exceeded messages for MPLS TTL expired packets ················································· 23
Configuring LDP GR ·············································································································································· 24
Configuring MPLS statistics ··········································································································································· 26
Setting the interval for reading statistics ············································································································· 26
Inspecting LSPs ······························································································································································· 26
MPLS LSP ping ······················································································································································· 26
MPLS LSP tracert ···················································································································································· 27
Configuring BFD for LSPs ······································································································································ 27
Configuring periodic LSP tracert ·························································································································· 28
Enabling MPLS trap························································································································································ 29
Displaying and maintaining MPLS ······························································································································· 29
Displaying MPLS operation ·································································································································· 29
Displaying MPLS LDP operation ··························································································································· 30
Clearing MPLS statistics ········································································································································ 31
MPLS configuration examples ······································································································································· 32
Configuring static LSPs ·········································································································································· 32
Configuring LDP to establish LSPs dynamically ·································································································· 34
Configuring BFD for LSP validity check ··············································································································· 38
ii
MPLS TE configuration ··············································································································································· 41
MPLS TE overview ·························································································································································· 41
Traffic engineering and MPLS TE ························································································································· 41
Basic concepts of MPLS TE ··································································································································· 42
MPLS TE implementation ······································································································································· 42
CR-LSP ····································································································································································· 43
CR-LDP ···································································································································································· 44
RSVP-TE ··································································································································································· 44
Traffic forwarding ·················································································································································· 48
CR-LSP backup ······················································································································································· 50
FRR ·········································································································································································· 50
PS for an MPLS TE tunnel ······································································································································ 51
DiffServ-aware TE ·················································································································································· 52
MPLS LDP over MPLS TE ······································································································································· 54
Protocols and standards ······································································································································· 55
MPLS TE configuration task list ····································································································································· 55
Configuring MPLS TE basic capabilities ······················································································································ 56
Configuration prerequisites ·································································································································· 56
Configuration procedure ······································································································································ 56
Configuring DiffServ-aware TE ····································································································································· 57
Creating MPLS TE tunnel over static CR-LSP ················································································································ 58
Configuration prerequisites ·································································································································· 58
Configuration procedure ······································································································································ 58
Configuring MPLS TE tunnel with dynamic signaling protocol ·················································································· 59
Configuration prerequisites ·································································································································· 60
Configuration procedure ······································································································································ 60
Configuring RSVP-TE advanced features ····················································································································· 65
Configuration prerequisites ·································································································································· 65
Configuration procedure ······································································································································ 65
Tuning CR-LSP setup ······················································································································································· 69
Configuration prerequisites ·································································································································· 69
Configuration procedure ······································································································································ 69
Tuning MPLS TE tunnel setup ········································································································································· 71
Configuration prerequisites ·································································································································· 72
Configuration procedures ····································································································································· 72
Configuring traffic forwarding ······································································································································ 73
Configuration prerequisites ·································································································································· 73
Configuration procedures ····································································································································· 73
Configuring traffic forwarding tuning parameters ······································································································ 75
Configuration prerequisites ·································································································································· 76
Configuration procedure ······································································································································ 76
Configuring CR-LSP backup ·········································································································································· 77
Configuration prerequisites ·································································································································· 78
Configuration procedure ······································································································································ 78
Configuring FRR ····························································································································································· 78
Configuration prerequisites ·································································································································· 79
Configuration procedure ······································································································································ 79
Inspecting an MPLS TE tunnel ······································································································································· 81
Configuring MPLS LSP ping ·································································································································· 81
Configuring MPLS LSP tracert ······························································································································· 81
Configuring BFD for an MPLS TE tunnel ·············································································································· 82
Configuring periodic LSP tracert for an MPLS TE tunnel ··················································································· 83
Configuring protection switching ································································································································· 84
Configuration prerequisites ·································································································································· 84
iii
Configuration procedure ······································································································································ 84
Displaying and maintaining MPLS TE ·························································································································· 84
MPLS TE configuration examples ·································································································································· 87
MPLS TE using static CR-LSP configuration example·························································································· 87
MPLS TE tunnel using RSVP-TE configuration example ······················································································ 91
Configuration example of inter-AS MPLS TE tunnel using RSVP-TE ·································································· 98
RSVP-TE GR configuration example ··················································································································· 105
MPLS RSVP-TE and BFD cooperation configuration example ········································································· 107
MPLS TE using CR-LDP configuration example ································································································· 109
CR-LSP backup configuration example ············································································································· 117
FRR configuration example ································································································································· 120
IETF DS-TE configuration example ····················································································································· 129
MPLS LDP over MPLS TE configuration example ······························································································ 136
MPLS TE in MPLS L3VPN configuration example ····························································································· 143
Troubleshooting MPLS TE ············································································································································ 151
No TE LSA generated ········································································································································· 151
Swicthback fails to occur when the main tunnel resumes ··············································································· 151
Configuring VPLS ···················································································································································· 153
VPLS overview ······························································································································································ 153
Operation of VPLS ··············································································································································· 153
VPLS packet encapsulation ································································································································· 156
H-VPLS implementation ······································································································································· 157
Hub-spoke VPLS implementation ························································································································ 159
Multi-hop PW ······················································································································································· 160
VPLS configuration task list ·········································································································································· 161
Configuring LDP VPLS ·················································································································································· 162
Configuration prerequisites ································································································································ 162
Enabling L2VPN and MPLS L2VPN ··················································································································· 162
Configuring an LDP VPLS instance····················································································································· 162
Configuring BGP VPLS ················································································································································· 164
Configuration prerequisites ································································································································ 164
Configuring the BGP extension ·························································································································· 164
Enabling L2VPN and MPLS L2VPN ··················································································································· 164
Configuring a BGP VPLS instance ····················································································································· 165
Resetting VPLS BGP connections ························································································································ 165
Binding a VPLS instance ·············································································································································· 165
Configuring MAC address learning··························································································································· 167
Configuring VPLS attributes ········································································································································· 168
Displaying and maintaining VPLS ······························································································································ 168
VPLS configuration examples ······································································································································ 169
Configuring VPLS instances ································································································································ 169
Configuring H-VPLS with LSP access ················································································································· 172
Configuring hub-spoke VPLS ······························································································································ 175
Configuring PW redundancy for H-VPLS access ······························································································ 179
Implementing multi-AS VPN through multi-hop PW ························································································· 183
Troubleshooting VPLS ··················································································································································· 187
Configuring MPLS L2VPN ······································································································································· 189
MPLS L2VPN overview ················································································································································ 189
Basic concepts of MPLS L2VPN ························································································································· 190
Implementation of MPLS L2VPN ························································································································· 190
MPLS L2VPN configuration task list ···························································································································· 192
Configuring MPLS L2VPN ··········································································································································· 193
Configuring CCC MPLS L2VPN ·································································································································· 193
iv
Configuration prerequisites ································································································································ 193
Configuration procedure ···································································································································· 193
Configuring SVC MPLS L2VPN ··································································································································· 195
Configuration prerequisites ································································································································ 195
Configuration procedure ···································································································································· 195
Configuring Martini MPLS L2VPN ······························································································································ 196
Creating a Martini MPLS L2VPN connection on a Layer 3 Ethernet interface/sub-interface ······················ 196
Creating a Martini MPLS L2VPN for a service instance ·················································································· 197
Configuring Kompella MPLS L2VPN ·························································································································· 199
Configuration prerequisites ································································································································ 200
Configuration procedure ···································································································································· 200
Enabling the MPLS L2VPN mix function····················································································································· 202
Displaying and maintaining MPLS L2VPN ················································································································ 203
Displaying the operation of MPLS L2VPN ········································································································ 203
Resetting BGP L2VPN connections ···················································································································· 204
MPLS L2VPN configuration examples ························································································································ 204
Example for configuring a local CCC connection ··························································································· 204
Example for configuring a remote CCC connection ······················································································· 206
Example for configuring SVC MPLS L2VPN ····································································································· 209
Example for configuring Martini MPLS L2VPN ································································································ 213
Example for configuring Kompella MPLS L2VPN ····························································································· 217
Example for configuring a Kompella local connection ··················································································· 219
Troubleshooting MPLS L2VPN ····································································································································· 221
Configuring MPLS L3VPN ······································································································································· 222
MPLS L3VPN overview ················································································································································ 222
MPLS L3VPN concepts ········································································································································ 223
MPLS L3VPN packet forwarding ························································································································ 225
MPLS L3VPN networking schemes ····················································································································· 226
MPLS L3VPN routing information advertisement ······························································································ 229
Inter-AS VPN ························································································································································ 230
Carrier’s carrier ··················································································································································· 233
Nested VPN ························································································································································· 235
Multi-role host ······················································································································································· 237
HoVPN ·································································································································································· 237
OSPF VPN extension ··········································································································································· 239
BGP AS number substitution ······························································································································· 242
Multi-VPN-instance CE ········································································································································ 243
MPLS L3VPN configuration task list ···························································································································· 244
Configuring basic MPLS L3VPN ································································································································· 245
Configuration prerequisites ································································································································ 245
Configuring VPN instances ································································································································ 245
Configuring routing between PE and CE ·········································································································· 248
Configuring routing between PEs ······················································································································ 254
Configuring routing features for BGP VPNv4 subaddress family ·································································· 254
Configuring inter-AS VPN ··········································································································································· 257
Configuration prerequisites ································································································································ 257
Configuring inter-AS option A ···························································································································· 258
Configuring inter-AS option B ···························································································································· 258
Configuring inter-AS option C···························································································································· 259
Configuring nested VPN ·············································································································································· 261
Configuration prerequisites ································································································································ 261
Configuring nested VPN ····································································································································· 261
Configuring multi-role host ·········································································································································· 262
Configuration prerequisites ································································································································ 262
v
Configuring and applying policy routing ········································································································· 262
Configuring a static route ··································································································································· 263
Configuring HoVPN ····················································································································································· 263
Configuration prerequisites ································································································································ 263
Configuring HoVPN ············································································································································ 263
Configuring an OSPF sham link ································································································································· 264
Configuration prerequisites ································································································································ 264
Configuring a loopback interface ····················································································································· 264
Redistributing the loopback interface route and OSPF routes into BGP ························································ 265
Creating a sham link ··········································································································································· 265
Configuring routing on an MCE ································································································································· 266
Configuration prerequisites ································································································································ 266
Configuring routing between MCE and VPN site ···························································································· 266
Configuring routing between MCE and PE ······································································································ 271
Specifying the VPN label processing mode ·············································································································· 275
Configuring BGP AS number substitution ·················································································································· 276
Configuration prerequisites ································································································································ 276
Configuration procedure ···································································································································· 276
Displaying and maintaining MPLS L3VPN ················································································································ 276
Resetting BGP connections ································································································································· 276
Displaying and maintaining MPLS L3VPN ········································································································ 277
MPLS L3VPN configuration examples ························································································································ 280
Configuring MPLS L3VPNs using EBGP between PE and CE ········································································· 280
Configuring MPLS L3VPNs using IBGP between PE and CE ·········································································· 287
Configuring an MPLS L3VPN that uses a GRE tunnel ······················································································ 295
Configuring inter-AS option A ···························································································································· 300
Configuring inter-AS option B ···························································································································· 305
Configuring inter-AS option C···························································································································· 310
Configuring carrier’s carrier ······························································································································ 316
Configuring nested VPN ····································································································································· 324
Configuring HoVPN ············································································································································ 333
Configuring OSPF sham links ···························································································································· 340
Configuring BGP AS number substitution ········································································································· 345
Configuring IPv6 MPLS L3VPN ······························································································································ 349
IPv6 MPLS L3VPN overview ········································································································································ 349
IPv6 MPLS L3VPN packet forwarding ··············································································································· 350
IPv6 MPLS L3VPN routing information advertisement ····················································································· 350
IPv6 MPLS L3VPN networking schemes and functions ···················································································· 351
IPv6 MPLS L3VPN configuration task list ··················································································································· 351
Configuring basic IPv6 MPLS L3VPN ························································································································· 351
Basic IPv6 MPLS L3VPN configuration task list ································································································ 351
Configuration prerequisites ································································································································ 352
Configuring VPN instances ································································································································ 352
Configuring route related attributes for a VPN instance ················································································· 353
Configuring routing between PE and CE ·········································································································· 355
Configuring routing between PEs ······················································································································ 358
Configuring routing features for the BGP-VPNv6 subaddress family ····························································· 359
Configuring inter-AS IPv6 VPN ··································································································································· 360
Configuration prerequisites ································································································································ 360
Configuring inter-AS IPv6 VPN option A ·········································································································· 361
Configuring inter-AS IPv6 VPN option C ·········································································································· 361
Configuring routing on an MCE ································································································································· 362
Configuration prerequisites ································································································································ 362
Configuring routing between MCE and VPN site ···························································································· 362
vi
Configuring routing between MCE and PE ······································································································ 366
Displaying and maintaining IPv6 MPLS L3VPN ········································································································ 369
Resetting BGP connections ································································································································· 369
Displaying information about IPv6 MPLS L3VPN ····························································································· 369
IPv6 MPLS L3VPN configuration examples ··············································································································· 371
Configuring IPv6 MPLS L3VPNs ························································································································· 371
Configuring inter-AS IPv6 VPN option A ·········································································································· 378
Configuring inter-AS IPv6 VPN option C ·········································································································· 383
Configuring carrier’s carrier ······························································································································ 390
Index ········································································································································································ 398
1
Configuring basic MPLS
NOTE:
For information about VPN, see the chapters “Configuring MPLS L2VPN” and “Configuring MPLS
L3VPN.
For information about MPLS TE, see the chapter “Configuring MPLS TE.
MPLS overview
Multiprotocol Label Switching (MPLS) is a new IP backbone technology. It introduces connection-oriented
label switching into connectionless IP networks, and seamlessly integrates the flexibility of IP routing and
the simplicity of Layer 2 switching.
MPLS is widely used on large-scale networks for it features the following advantages:
On an MPLS network, devices forward packets according to short- and fixed-length labels, instead
of doing Layer 3 header analysis and complicated routing table lookup independently. This is a
highly effective and fast data transmission method on backbone networks.
Residing between the link layer and the network layer, MPLS can work on various link layer
protocols (for example, PPP, ATM, frame relay, and Ethernet), provide connection-oriented services
for various network layer protocols (for example, IPv4, IPv6, and IPX), and work with mainstream
network technologies.
As MPLS is connection-oriented and supports label stack, it is used in various services, such as VPN,
traffic engineering, and QoS.
Basic concepts
FEC
As a forwarding technology based on classification, MPLS groups packets with the same characteristics
(such as packets with the same destination or service class) into a class, called a “forwarding
equivalence class (FEC)”. Packets of the same FEC are handled in the same way on an MPLS network.
The device supports classifying FECs according to the network layer destination addresses of packets.
Label
A label is a short, fixed length identifier for identifying a single FEC. A label is locally significant and
must be locally unique.
Figure 1 Format of a label
2
As shown in Figure 1, a label is encapsulated between the Layer 2 header and Layer 3 header of a
packet. A label is four bytes in length and consists of the following fields:
Label—20 bits in length. Label value for identifying a FEC.
Exp—Three bits in length. Reserved field, usually used for CoS.
S—One bit in length. MPLS supports multiple levels of labels. This field is used to indicate whether
a label is at the bottom of the label stack. 1 indicates that the label is at the bottom of the label
stack.
TTL—Eight bits in length. Like the homonymous IP header field, it is used to prevent loops.
LSR
A label switching router (LSR) is a fundamental component on an MPLS network. LSRs support label
distribution and label swapping.
LER
A label edge router (LER) is an LSR that resides at the edge of an MPLS network and is connected to
another network.
LSP
A label switched path (LSP) is the path along which packets of a FEC travel through an MPLS network.
An LSP is a unidirectional path from the ingress of an MPLS network to the egress. On an LSP, in the
packet transfer direction, two neighboring LSRs are called the “upstream LSR” and “downstream LSR”
respectively. In Figure 2,
LSR B is the downstream LSR of LSR A; LSR A is the upstream LSR of LSR B.
Figure 2 Diagram for an LSP
LFIB
On an MPLS network, labeled packets are forwarded according to the Label Forwarding Information
Base (LFIB), which is like the FIB for IP packet forwarding on an IP network.
Control plane and forwarding plane
An MPLS node consists of two planes, control plane and forwarding plane.
Control plane—Assigns labels, selects routes, establishes the LFIB, establishes and removes LSPs
Forwarding plane—Forwards packets according to the LFIB
3
Structure of the MPLS network
Figure 3 Diagram for the MPLS network structure
As shown in Figure 3, the element of an MPLS network is LSR. LSRs in the same routing or administrative
domain form an MPLS domain.
An MPLS domain consists of the following types of LSRs:
Ingress LSRs for receiving and labeling packets coming into the MPLS domain.
Transit LSRs for forwarding packets along LSPs to their egress LERs according to the labels.
Egress LSRs for removing labels from packets and IP forwarding the packets to their destination
networks.
In other words, transit LSRs perform MPLS forwarding based on labels of packets, and the ingress and
egress LSRs deal with the switchover between MPLS and IP forwarding.
LSP establishment and label distribution
LSP establishment
Establishing LSPs is to bind FECs with labels on each LSR involved and notify its adjacent LSRs of the
bindings, so as to establish the LFIB on each LSR. LSPs can be established through manual configuration,
or be established dynamically through label distribution protocols.
1. Establishing a static LSP through manual configuration
To establish a static LSP, you need to assign a label to the FEC on each LSR along the packet
forwarding path. Establishment of static LSPs consumes fewer resources than dynamic LSP
establishment. However, static LSPs cannot adapt to network topology changes. Therefore, static
LSPs are suitable for small-scale networks with simple, stable topologies.
2. Establishing an LSP through a label distribution protocol
Label distribution protocols are MPLS signaling protocols. They can classify FECs, distribute labels,
and establish and maintain LSPs. Label distribution protocols include protocols designed
specifically for label distribution, such as the Label Distribution Protocol (LDP), and protocols
extended to support label distribution, such as BGP and RSVP-TE.
This document discusses LDP only. For more information about LDP, see “LDP.”
4
NOTE:
In this document, the term
label distribution protocols
represents all protocols for label distribution, and the
term
LDP
refers to the Label Distribution Protocol defined in RFC 5036.
As shown in Figure 4, a dynamic LSP is established in the following procedure:
A downstream LSR classifies FECs according to destination addresses, assigns a label to a FEC, and
distributes the FEC-label binding to its upstream LSR, which then establishes an LFIB entry for the FEC
according to the binding information. After all LSRs along the packet forwarding path establish a LFIB
entry for the FEC, an LSP is established for packets of this FEC.
Figure 4 Process of dynamic LSP establishment
Label distribution and management
An LSR informs its upstream LSRs of labels assigned to FECs through label advertisement. According to
the label distribution condition and order, the label advertisement mode can be downstream unsolicited
(DU) and downstream on demand (DoD), and the label distribution control mode can be independent or
ordered.
MPLS has two label retention modes—liberal and conservative—to manage the received label bindings
that are not useful at the moment.
1. Label advertisement modes
5
Figure 5 Label advertisement modes
Figure 5 shows the two label advertisement modes, DU and DoD.
In DU mode, an LSR assigns a label to a FEC and then distributes the FEC-label binding to its
upstream LSR unsolicitedly.
In DoD mode, an LSR assigns a label to a FEC and distributes the FEC-label binding to its upstream
LSR only when it receives a label request from the upstream LSR.
NOTE:
The device supports only the DU mode.
An upstream LSR and its downstream LSR for an FEC must use the same label advertisement mode;
otherwise, no LSP can be established normally.
2. Label distribution control modes
Two label distribution control modes are available: independent and ordered.
In independent mode, an LSR can distribute label bindings upstream at anytime. This means
that an LSR may have distributed a label binding to its upstream LSR before it receives a
binding from its downstream LSR. As shown in Figure 6,
in independent label distribution
control mode, if the label advertisement mode is DU, an LSR will assign labels to its upstream
even if it has not obtained labels from its downstream; if the label advertisement mode is DoD,
the LSR distributes a label to its upstream as long as it receives a label request from the
upstream.
6
Figure 6 Independent label distribution control mode
In ordered mode, an LSR distributes its label binding for a FEC upstream only when it receives
a label binding for the FEC from its downstream or it is the egress of the FEC. In Figure 5, la
bel
distribution control is in ordered mode. In this case, if the label advertisement mode is DU, an
LSR will distribute a label upstream only when it receives a label binding for the FEC from its
downstream; if the label advertisement mode is DoD, after an LSR (Transit in this example)
receives a label request from its upstream (Ingress), the LSR (Transit) sends a label request to its
downstream (Egress). Then, after the LSR (Transit) receives the label binding from its
downstream (Egress), it distributes a label binding to the upstream (Ingress).
3. Label retention modes
Two label retention modes are available: liberal and conservative.
In liberal mode, an LSR keeps any received label binding regardless of whether the binding is
from its next hop for the FEC or not. This allows for quicker adaptation to route changes but will
waste label resources as LSRs need to keep extra labels.
In conservative mode, an LSR keeps only label bindings that are from its next hops for the FECs.
This allows LSRs to maintain fewer labels but makes LSRs slower in adapting to route changes.
NOTE:
The router supports only the liberal mode.
MPLS forwarding
LFIB
An LFIB comprises the following parts:
Next Hop Label Forwarding Entry (NHLFE)—Describes the label operation to be performed. It is
used when forwarding MPLS packets.
FEC to NHLFE (FTN) mapFTN maps each FEC to a set of NHLFEs at the ingress LSR. The FTN map
is used for forwarding unlabeled packets that need MPLS forwarding. When an LSR receives an
unlabeled packet, it looks for the corresponding FIB entry. If the Token value of the FIB entry is not
Invalid, the packet needs to be forwarded through MPLS. The LSR will then look for the
Egress
Transit
DU mode
DoD mode
Ingress
2) Distribute a label to the
upstream unsolicitedly
1) Distribute a label to the
upstream unsolicitedly
1) Request the downstream to
assign a label
3) Request the downstream to
assign a label
2) Assign and distribute a
label to the upstream upon
receiving the request
4) Assign and distribute a
label to the upstream upon
receiving the request
7
corresponding NHLFE entry according to Token value to determine the label operation to be
performed.
Incoming Label Map (ILM)ILM maps each incoming label to a set of NHLFEs. It is used when
forwarding labeled packets. When an LSR receives a labeled packet, it looks for the corresponding
ILM entry. If the Token value of the ILM entry is not null, the LSR will look for the corresponding
NHLFE entry to determine the label operation to be performed.
NOTE:
FTN and ILM are associated with NHLFE through Token.
MPLS data forwarding
Figure 7 MPLS forwarding process diagram
As shown in Figure 7, in an MPLS domain, a packet is forwarded in the following procedure:
1. The ingress (Router B) receives a packet carrying no label. Router B determines the FEC of the
packet according to the destination address, and searches the FIB table for the Token value. As the
Token value is not Invalid, Router B looks for the corresponding NHLFE entry of the Token value.
According to the NHLFE entry, Router B pushes label 40 to the packet, and then forwards the
labeled packet to the next hop LSR (Router C) through the outgoing interface (GE3/0/2).
2. Upon receiving the labeled packet, Router C looks for the ILM entry according to the label (40) to
get the Token value. As the Token value is not null, Router C looks for the corresponding NHLFE
entry of the Token value. According to the NHLFE entry, Router C swaps the original label with
label 50, and then forwards the labeled packet to the next hop LSR (Router D) through the outgoing
interface (GE3/0/2).
3. Upon receiving the labeled packet, Router D (the egress) looks for the ILM entry according to the
label (50) to get the Token value. As the Token is null, Router D removes the label from the packet.
If the ILM entry records the outgoing interface, Router D forwards the packet through the outgoing
interface; if no outgoing interface is recorded, router D forwards the packet according to the IP
header of the packet.
I
P
:40
.1.1.2
IP:40.
1.1.2
8
PHP
In an MPLS network, when an egress node receives a labeled packet, it looks up the LFIB, pops the label
of the packet, and then performs the next level label forwarding or performs IP forwarding. An egress
node needs to do forwarding table lookup twice to forward a packet: looks up the LFIB twice, or looks
up the LFIB once and the FIB once.
In this case, the penultimate hop popping (PHP) feature can pop the label at the penultimate node,
relieving the egress of the label operation burden and improving the packet processing capability of the
MPLS network.
PHP is configurable on the egress node. The label assigned by a PHP-capable egress node to the
penultimate hop can be one of the following:
A label value of 0 represents an IPv4 explicit null label. An egress assigns an IPv4 explicit null label
to a FEC and advertises the FEC-label binding to the upstream LSR. When forwarding an MPLS
packet, the upstream LSR substitutes the label at the stack top with the explicit null label and then
sends the packet to the egress. When the egress receives the packet, which carries a label of 0, it
does not look up for the LFIB entry but pops the label stack directly and performs IPv4 forwarding.
A label value of 3 represents an implicit null label and never appears in the label stack. When an
LSR finds that it is assigned an implicit null label, it directly performs a pop operation, rather than
substitutes the implicit null label for the original label at the stack top. Then, it forwards the packet
to the egress. The egress thus can directly perform the next level forwarding upon receiving the
packet.
LDP
The LDP protocol is used to establish LSPs dynamically. Using LDP, LSRs can map network layer routing
information to data link layer switching paths.
Basic concepts of LDP
LDP session
LDP sessions are established between LSRs based on TCP connections and used to exchange messages
for label binding, label releasing, and error notification.
LDP peer
Two LSRs with an LDP session established between them and using LDP to exchange FEC-label bindings
are LDP peers.
LDP message type
LDP messages fall into the following types:
Discovery messages—Declare and maintain the presence of LSRs on a network.
Session messages—Establish, maintain, and terminate sessions between LDP peers.
Advertisement messages—Create, alter, or remove FEC-label bindings.
Notification messages—Provide advisory information and to notify errors.
For reliable transport of LDP messages, TCP is used for LDP session messages, advertisement messages,
and notification messages. UDP is used only for discovery messages.
LDP operation
LDP goes through four phases in operation:
1. Discovery
9
Every LSR that wants to establish LDP sessions sends Hello messages periodically to notify
neighboring LSRs of its presence. In this way, LSRs can automatically discover their LDP peers. LDP
provides the following discovery mechanisms:
Basic discovery mechanism—Discovers local LDP peers, or, LSRs directly connected at the link
layer. In this mechanism, an LSR periodically sends LDP link hello messages to multicast
address 224.0.0.2, or, all routers on the subnet, so that all LSRs directly connected at the link
layer can discover this LSR.
Extended discovery mechanism—Discovers remote LDP peers, or, LSRs not directly connected
at the link layer. In this mechanism, an LSR periodically sends LDP targeted Hello messages to
a given IP address so that the LSR with the IP address can discover the LDP peer.
2. Session establishment and maintenance
After an LSR finds an LDP peer, the LSRs go through the following steps to establish a session:
a. Establish a TCP connection between them.
b. Initialize negotiation of session parameters such as the LDP version, label advertisement mode,
and Keepalive interval.
After a session is established between them, the two LDP peers send Hello messages and
Keepalive messages to maintain the session.
3. LSP establishment and maintenance
LDP sends label requests and label binding messages, so as to advertise label bindings between
LDP peers and thereby establish LSPs.
For the LSP establishment process, see “LSP establishment and label distribution.”
4. Session termination
An LSR terminates its LDP session with an LDP peer in the following cases:
All Hello adjacencies are deleted between the two peers
LDP peers periodically send Hello messages to indicate that they intend to keep the Hello
adjacency. If an LSR does not receive any Hello message from a peer before the Hello timer
expires, it deletes the Hello adjacency with this peer. An LDP session has one or more Hello
adjacencies. When the last Hello adjacency for the session is deleted, the LSR will send a
Notification message to terminate the LDP session.
Loss of session connectivity
An LSR determines the integrity of an LDP session according to the LDP PDU (which carries one
or more LDP messages) transmitted on the session. Before the Keepalive timer times out, if two
LDP peers have no information to exchange, they can send Keepalive messages to each other
to maintain the LDP session. If an LSR does not receive any LDP PDU from its peer during a
Keepalive interval, it closes the TCP connection and terminates the LDP session.
Receiving a shutdown message from the peer
An LSR can also send a Shutdown message to its LDP peer to terminate the LDP session.
Therefore, when receiving the Shutdown message from an LDP peer, an LSR will terminate the
session with the LDP peer.
Protocols
MPLS related protocols include:
RFC 3031, Multiprotocol Label Switching Architecture
RFC 3032, MPLS Label Stack Encoding
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410

H3C SR8800 10G Mpls Configuration Manual

Category
Networking
Type
Mpls Configuration Manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI