Sie sind auf Seite 1von 410

ZXCTN 9000-E

Carrier-Class Multi-Service Packet-Based Platform


Configuration Guide (MPLS)

Version: 3.00.10

ZTE CORPORATION
No. 55, Hi-tech Road South, ShenZhen, P.R.China
Postcode: 518057
Tel: +86-755-26771900
Fax: +86-755-26770801
URL: http://support.zte.com.cn
E-mail: support@zte.com.cn
LEGAL INFORMATION
Copyright 2014 ZTE CORPORATION.
The contents of this document are protected by copyright laws and international treaties. Any reproduction or
distribution of this document or any portion of this document, in any form by any means, without the prior written
consent of ZTE CORPORATION is prohibited. Additionally, the contents of this document are protected by
contractual confidentiality obligations.
All company, brand and product names are trade or service marks, or registered trade or service marks, of ZTE
CORPORATION or of their respective owners.
This document is provided as is, and all express, implied, or statutory warranties, representations or conditions
are disclaimed, including without limitation any implied warranty of merchantability, fitness for a particular purpose,
title or non-infringement. ZTE CORPORATION and its licensors shall not be liable for damages resulting from the
use of or reliance on the information contained herein.
ZTE CORPORATION or its licensors may have current or pending intellectual property rights or applications
covering the subject matter of this document. Except as expressly provided in any written license between ZTE
CORPORATION and its licensee, the user of this document shall not acquire any license to the subject matter
herein.
ZTE CORPORATION reserves the right to upgrade or make technical change to this product without further notice.
Users may visit the ZTE technical support website http://support.zte.com.cn to inquire for related information.
The ultimate right to interpret this product resides in ZTE CORPORATION.

Revision History

Revision No. Revision Date Revision Reason

R1.0 2014-11-10 First edition.

Serial Number: SJ-20140721105958-012

Publishing Date: 2014-11-10 (R1.0)

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Contents
About This Manual ......................................................................................... I
Chapter 1 MPLS Configuration ................................................................. 1-1
1.1 MPLS Overview ................................................................................................. 1-1
1.2 MPLS Term........................................................................................................ 1-5
1.3 LSP Establishment ............................................................................................. 1-8
1.4 Label Distribution and Management................................................................... 1-12
1.5 MPLS Configuration ......................................................................................... 1-20
1.6 MPLS Configuration Instance............................................................................ 1-30
1.6.1 Establishing a Basic LDP Neighbour Session .......................................... 1-30
1.6.2 Establishing an LDP Target Session ........................................................ 1-33
1.6.3 Configuring a Label Distribution Policy..................................................... 1-36
1.6.4 Configuring an LDP Multi-Instance ......................................................... 1-39
1.6.5 Establishing an LDP FRR ....................................................................... 1-42
1.6.6 LDP Graceful Restart Configuration Instance ........................................... 1-49
1.6.7 LSP Load-Sharing Configuration Example ............................................... 1-56
1.6.8 LDP BFD Configuration Example ............................................................ 1-60
1.6.9 Peer BFD Configuration Example ............................................................ 1-64
1.6.10 GTSM Configuration Example ............................................................... 1-67
1.6.11 LDP IGP Synchronization Configuration Example (OSPF) ....................... 1-71
1.6.12 LDP IGP Synchronization Configuration Example (IS-IS) ........................ 1-75
1.6.13 Instance with LDP IGP Synchronization Integrated with FRR................... 1-79
1.6.14 Packet Filtration Configuration Example................................................. 1-85
1.6.15 Label-Distribution Configuration Example............................................... 1-88
1.6.16 Label-Retention Configuration Example ................................................. 1-90
1.6.17 Label-Advertise Configuration Example ................................................. 1-93
1.6.18 Label-Request Configuration Example ................................................... 1-96
1.6.19 LSP-Control Configuration Example ...................................................... 1-99
1.6.20 Longest-Match Configuration Example..................................................1-103

Chapter 2 MPLS TE Configuration............................................................ 2-1


2.1 RSVP Configuration ........................................................................................... 2-1
2.1.1 RSVP Overview ....................................................................................... 2-1
2.1.2 Configuring RSVP .................................................................................... 2-5
2.1.3 RSVP Configuration Instance.................................................................... 2-8

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


2.2 TE Summary Refresh Introduction..................................................................... 2-24
2.2.1 TE Summary Refresh Introduction........................................................... 2-24
2.2.2 Configuring TE Summary Refresh ........................................................... 2-25
2.2.3 TE Summary Refresh Configuration Example .......................................... 2-26
2.3 TE Message Acknowledgement and Retransmission .......................................... 2-29
2.3.1 Introduction to TE Message Acknowledgement and Retransmission.......... 2-29
2.3.2 Configuring TE Message Acknowledgement and Retransmission .............. 2-30
2.3.3 TE Message Acknowledgement and Retransmission Configuration
Example ............................................................................................... 2-31
2.4 TE Authentication Configuration ........................................................................ 2-34
2.4.1 TE Authentication Overview .................................................................... 2-34
2.4.2 Configuring TE Authentication ................................................................. 2-35
2.4.3 TE Authentication Configuration Instance................................................. 2-37
2.5 Confiugration of MPLS TE Crossing Several AS Domains................................... 2-40
2.5.1 MPLS TE Crossing Several AS Domains Overview .................................. 2-40
2.5.2 Configuring the MPLS TE Crossing Several AS Domains.......................... 2-42
2.5.3 MPLS TE Crossing Several AS Domains Configuration Instance............... 2-43
2.6 TE-FRR Configuration ...................................................................................... 2-58
2.6.1 TE-FRR Overview .................................................................................. 2-58
2.6.2 Configuring TE-FRR ............................................................................... 2-61
2.6.3 TE-FRR Configuration Instance............................................................... 2-63
2.7 FRR Promotion Introduction.............................................................................2-103
2.7.1 FRR Promotion Introduction...................................................................2-103
2.7.2 Configuring FRR Promotion ...................................................................2-104
2.7.3 FRR Promotion Configuration Examples .................................................2-105
2.8 FRR-Hello Configuration.................................................................................. 2-114
2.8.1 FRR Hello Introduction .......................................................................... 2-114
2.8.2 Configuring FRR Hello........................................................................... 2-114
2.8.3 FRR Hello Configuration Example .......................................................... 2-116
2.9 MPLS TE End-to-End Protection Path Configuration..........................................2-121
2.9.1 MPLS TE End-to-End Path Protection Overview......................................2-121
2.9.2 Path Configuration for MPLS TE End-to-End Protection...........................2-121
2.9.3 Establishing an MPLS TE End-to-End Path Protection.............................2-122
2.10 Loose Node Re-optimization ..........................................................................2-128
2.10.1 Loose Node Re-optimization Introduction ..............................................2-128
2.10.2 Configuring Loose Node Re-optimization ..............................................2-128
2.10.3 Loose Node Re-optimization Configuration Instance ..............................2-129
2.11 Automatic Bandwidth Regulation on an MPLS TE ...........................................2-135

II

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


2.11.1 Introduction to Automatic Bandwidth Regulation Function of the MPLS
TE.......................................................................................................2-135
2.11.2 Configuring Automatic MPLS TE Bandwidth Regulation .........................2-135
2.11.3 Instances of Automatic Bandwidth Regulation Configuration for the
MPLS TE.............................................................................................2-137
2.12 TE GR Configuration .....................................................................................2-140
2.12.1 GR Introduction ...................................................................................2-140
2.12.2 Configuring GR ...................................................................................2-143
2.12.3 GR Configuration Example...................................................................2-144
2.13 TE Tunnel FA Configuration ...........................................................................2-148
2.13.1 TE Tunnel FA Introduction....................................................................2-148
2.13.2 Configuring TE Tunnel FA ....................................................................2-148
2.13.3 TE Tunnel FA Configuration Example ...................................................2-149
2.14 TE Tunnel AR Configuration...........................................................................2-152
2.14.1 TE Tunnel AR Introduction ...................................................................2-152
2.14.2 Configuring TE Tunnel AR ...................................................................2-153
2.14.3 TE Tunnel AR Configuration Example...................................................2-154
2.15 TE Metric Configuration .................................................................................2-157
2.15.1 TE Metric Introduction..........................................................................2-157
2.15.2 Configuring TE Metric .........................................................................2-157
2.15.3 TE Metric Configuration Example .........................................................2-158
2.16 TE SRLG Configuration .................................................................................2-162
2.16.1 TE SRLG Introduction..........................................................................2-162
2.16.2 Configuring TE SRLG ..........................................................................2-163
2.16.3 TE SRLG Configuration Example .........................................................2-163
2.17 TE Tunnel Reoptimization Configuration .........................................................2-168
2.17.1 Introduction to TE Tunnel Reoptimization ..............................................2-168
2.17.2 Configuring TE Tunnel Re-optimization .................................................2-168
2.17.3 TE Tunnel Reoptimization Configuration Example .................................2-170
2.18 TE HOTSTANDBY Configuration....................................................................2-173
2.18.1 Tunnel Establishment With Only TE HOTSTANDBY ..............................2-173
2.18.2 Configuring the TE HOTSTANDBY Function .........................................2-174
2.18.3 TE HOTSTANDBY Function Configuration Instance...............................2-174
2.19 WTR Configuration for a TE Tunnel ................................................................2-179
2.19.1 Introduction to TE Tunnel WTR ............................................................2-179
2.19.2 Configuring the WTR Function of a TE Tunnel.......................................2-179
2.19.3 TE Tunnel WTR Configuration Instance ................................................2-180
2.20 TE Tunnels Supporting Soft Preemption .........................................................2-185

III

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


2.20.1 TE Tunnels Supporting Soft-Preemption ..............................................2-185
2.20.2 Configuring a TE Tunnel Supporting Priorities and Soft Preemption ........2-187
2.20.3 Instance of TE Tunnels Supporting Soft Preemption ..............................2-188
2.21 Equal Load Sharing on the TE-ECMP .............................................................2-198
2.21.1 Equal Load Sharing on the TE-ECMP ...................................................2-198
2.21.2 Configuring Equal Load Sharing on the TE-ECMP .................................2-198
2.21.3 Instance of Equal Load Sharing Configuration on the TE-ECMP .............2-199
2.22 TE Affinity .....................................................................................................2-202
2.22.1 TE Affinity Introduction.........................................................................2-202
2.22.2 Configuring the TE Affinity....................................................................2-202
2.22.3 TE Affinity Configuration Instance .........................................................2-203
2.23 Binding Interfaces Supporting TE Bandwidth Reservation ................................2-214
2.23.1 Binding Interfaces Supporting TE Bandwidth Reservation ......................2-214
2.23.2 Configuring Binding Interfaces Supporting TE Bandwidth
Reservation .........................................................................................2-214
2.23.3 Configuration Instance for Binding Interfaces Supporting TE Bandwidth
Reservation .........................................................................................2-215
2.24 RSVP-TEs Supporting Resource Reservation .................................................2-220
2.24.1 Resource Reservation in FF Mode on the RSVP-TE ..............................2-220
2.24.2 Configuring RSVP-TE Supporting Resource Reservation .......................2-220
2.24.3 Instance for Resource Reservation in FF Mode on the RSVP-TE............2-221

Chapter 3 MPLS OAM Configuration ........................................................ 3-1


3.1 MPLS OAM Overview......................................................................................... 3-1
3.2 Configuring MPLS OAM...................................................................................... 3-1
3.3 MPLS OAM Configuration Example ..................................................................... 3-4

Chapter 4 Static Tunnel Configuration ..................................................... 4-1


4.1 Static Tunnel Overview ....................................................................................... 4-1
4.1.1 Associated Bidirectional Tunnels for a Static TE Tunnel ............................. 4-1
4.1.2 Static TE Tunnels Supporting DS-TE ......................................................... 4-2
4.1.3 Reserved Bandwidth Sharing on Static TE Tunnels .................................... 4-3
4.2 Configuring a Static Tunnel ................................................................................. 4-4
4.2.1 Configuring Bidirectional BFD for a Static Tunnel........................................ 4-5
4.2.2 Configuring the FA Function on a Static Tunnel .......................................... 4-6
4.2.3 Configuring the AR Function for a Static Tunnel ......................................... 4-7
4.2.4 Configuring an Associated Bidirectional Tunnel for a Static TE Tunnel ......... 4-7
4.2.5 Configuring a Static TE Tunnel Supporting DS-TE ...................................... 4-8
4.2.6 Configuring Reserved Bandwidth Sharing on Static TE Tunnels .................4-11

IV

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 5 Tunnel Protection Group Configuration ................................. 5-1
5.1 Tunnel Protection Group Overview ...................................................................... 5-1
5.2 Configuring a Tunnel Protection Group ................................................................ 5-6
5.3 Tunnel Protection Group Configuration Example .................................................. 5-9

Chapter 6 APS Configuration .................................................................... 6-1


6.1 APS Overview.................................................................................................... 6-1
6.2 Configuring APS ................................................................................................ 6-5
6.2.1 Configuring APS for a Tunnel Protection Group.......................................... 6-6
6.2.2 Configuring APS for a PW Protection Group .............................................. 6-8
6.3 APS Configuration Example................................................................................ 6-9
6.3.1 APS Configuration Example (Tunnel Protection Group) .............................. 6-9
6.3.2 APS Configuration Example (PW Protection Group) ................................. 6-15

Figures............................................................................................................. I
Glossary .........................................................................................................V

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


This page intentionally left blank.

VI

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


About This Manual
Purpose
This manual describes the principles, configuration commands and configuration
examples that are related to MPLS services of the ZXCTN 9000-E system.

Intended Audience
This manual is intended for:
l Network planning engineers
l Commissioning engineers
l Maintaining engineers

What Is in This Manual


This manual contains the following chapters.

Chapter Summary

1, MPLS Configuration Describes the MPLS principle, configuration commands and


configuration examples.

2, MPLS TE Configuration Describes the MPLS TE-related principle, configuration commands


and configuration examples.

3, MPLS OAM Configuration Describes the MPLS OAM principles, configuration commands and
configuration examples.

4, Static Tunnel Configuration Describes the Static Tunnel principle, configuration commands and
configuration examples.

5, Tunnel Protection Group Describes the principles for tunnel protection group, configuration
Configuration commands and configuration examples.

6, APS Configuration Describes the APS principles, configuration commands and


configuration examples.

Conventions
This manual uses the following conventions:

Typeface Meaning

Italics Variables in commands. It may also refer to other related manuals


and documents.

Bold Menus, menu options, function names, input fields, option button
names, check boxes, drop-down lists, dialog box names, window
names, parameters, and commands.

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Typeface Meaning

Constant width Text that you type, program codes, filenames, directory names, and
function names.

[] Optional parameters.

{} Mandatory parameters.

| Separates individual parameter in series of parameters.

Danger: indicates an imminently hazardous situation. Failure to


comply can result in death or serious injury, equipment damage,
or site breakdown.

Warning: indicates a potentially hazardous situation. Failure


to comply can result in serious injury, equipment damage, or
interruption of major services.

Caution: indicates a potentially hazardous situation. Failure to


comply can result in moderate injury, equipment damage, or
interruption of minor services.

Note: provides additional information about a certain topic.

II

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1
MPLS Configuration
Table of Contents
MPLS Overview .........................................................................................................1-1
MPLS Term ................................................................................................................1-5
LSP Establishment .....................................................................................................1-8
Label Distribution and Management .........................................................................1-12
MPLS Configuration .................................................................................................1-20
MPLS Configuration Instance ...................................................................................1-30

1.1 MPLS Overview


MPLS Introduction
With the rapid development of network scale of the Internet and user number, people pay
more and more attention to the problem that how to extend service further on the network
and how to improve the quality of services. As the Internet Protocol (IP) protocol is a
connectionless protocol and there is no quality of service in the Internet, it is difficult to
provide enough throughputs and time delay that meet the requirements. For IP protocol,
it just uses best-effort mechanism to satisfy the users. Without other measures to improve
the current network conditions, it is impossible to develop new services in large scale.

Among existing network technologies, in terms of Quality of Service (QoS), as a rapid


packet switching technology that is developed after IP, Asynchronous Transfer Mode (ATM)
has a lot of advantages. Therefore, ATM was considered as a technology that could be
used everywhere, and people would establish a pure ATM network that people could reach
through the core network. However, practice proves that the thought is wrong. The pure
ATM network is too complicated and expensive for people to establish. Corresponding
services do not catch the ATM network development, which leads to hard development
of ATM now. In addition, although ATM switches are widely used as backbone nodes in
networks, services that take ATM cells to desktop develop very slowly.

IP and ATM technologies meet difficulties in their own fields, and they need each other
to have further development. There is inevitability to combine the two technologies.
Therefore, Multi-Protocol Label Switching (MPLS) technology comes into being. It
integrates the advantages of switching technology in network core and IP routing
technology in network edge.

MPLS protocol uses label switching, so routers only need to judge the labels before
they forward packets. MPLS supports any protocol at the network layer (such as IPv6,

1-1

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Internetwork Packet Exchange protocol (IPX), IP and so on) and data link layer (such as
ATM, Frame Relay (FR), Point to Point Protocol (PPP) and so on).

IP Forwarding Characteristic
Routing devices collect network segment information in the network through different
routing protocols to establish routing tables. When a packet reaches a router, the router
decides the interface to forward the packet and the next hop device according to the
routing information in the routing table. Once the packet is forwarded, it is not controlled
by the router. Whether the packet can be forwarded to the destination correctly depends
on whether there is correct routing information on all routers along the path.

The procedure of traditional IP forwarding is shown in Figure 1-1.

Figure 1-1 IP Forwarding

Traditional IP forwarding has the following characteristics:


l Routers search routing tables according to the longest matching principle, so they
cannot realize high speed forwarding. The longest matching means to use the route
with the longest subnet mask that matches the destination in the routing table.
l IP network is connectionless, so QoS cannot be ensured.

ATM Forwarding Characteristic


ATM switches forward data through Virtual Path Identifier (VPI)/Virtual Channel Identifier
(VCI). VPI/VCI is valid on local devices. The switches do not judge routing information
when forwarding ATM cells.
When an ATM switch receives a message, it looks up VPI/VCI table and then forwards the
message by switching, as shown in Figure 1-2.

1-2

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Figure 1-2 ATM Forwarding

The handling of messages on ATM switches is easier than that on routers. ATM forwarding
has the following characteristics:
l ATM chooses the path on the base of data link layer. VPI/VCI is valid on local
switch, so the fast looking-up can be implemented through hardware. While IP
communication need to comply with the longest matching principle.
l ATM network is connection-oriented. It can implement QoS according to different
VPIs/VCIs. IP communication distinguishes QoS data flow through quintuple groups
(including source IP, destination IP, protocol number, source port number and
destination port number).
l ATM supports traffic control mechanism.
l ATM supports different kinds of services, such as real-time service.

As the implementation of ATM is complicated and expensive and the development of


services do not catch the step, ATM is developed slowly.

MPLS Forwarding Characteristic


MPLS belongs to the third generation of network architecture. It is a new switching
standard of IP high-speed backbone network. It is brought forward by the Internet
Engineering Task Force (IETF).

MPLS uses simplified ATM switching technology to implement switching at Layer 2 and
Layer 3. It provides a label for each IP packet, and encapsulates the label together with
the packet to form a new MPLS packet. The label decides the transmission path and
priority of the IP packet.
Before forwarding the IP packet, an MPLS router reads the top label in the packet instead
of the IP address in each IP packet. Therefore, the speed to forward packets is much
faster, and MPLS is called a layer 2.5 protocol, as shown in Figure 1-3.

1-3

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 1-3 Position of MPLS

MPLS can use different Layer 2 protocols. Till now, MPLS task force has implemented
standardization of identifiers used in FR, ATM, PPP link and IEEE802.3 Local Area
Networks (LANs). An advantage to run MPLS in FR and ATM is that it carries free
connectivity in IP network to these connection-orientated technologies.
The working mechanism of MPLS network is that it implements routing through IP outside
the MPLS network and implements Layer 2 switching through looking up labels within the
MPLS network.
MPLS has the following characteristics:
l MPLS provides connection-orientated services for IP network.
l By integrated technologies of data link layer (ATM and FR) and network layer, MPLS
solves the problems about Internet extension and QoS, and provides Internet services
of high quality.
l MPLS uses accurate matching instead of the longest matching method to choose
paths through the short and fixed labels, which provides high speed IP forwarding.
l When providing IP services, MPLS also provides high reliability and QoS assurance.
l MPLS establishes Constraint-based Routing Label Switched Path (CR-LSP) through
explicit routing function and signaling protocols with QoS parameters. Therefore,
traffic engineering can be implemented effectively.
l MPLS supports Virtual Private Network (VPN) through label nesting technology.

MPLS Brief Principles


MPLS uses a traditional IP forwarding mode outside the MPLS domain and uses label
switching mode in the MPLS domain without looking up the IP information, as shown in
Figure 1-4.

Figure 1-4 MPLS Working Principle

1-4

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Within the MPLS domain, all routers run MPLS label distribution protocol, such as Label
Distribution Protocol (LDP) and resource ReSerVation Protocol (RSVP). Through these
protocol, devices in the MPLS domain will be distributed with corresponding labels.
The procedure of forwarding an IP packet in the MPLS domain is described below.
1. The ingress Label Edge Router (LER) receives the IP packet, and distributes a label
to this packet for identification.
2. When the backbone Label Switched Router (LSR) receives the identified packet, it
searches its label forwarding table and replaces the label in the packet with an new
outbound label.
3. When the egress LER receives the packet, it removes the label and implements
traditional IP forwarding on the third layer.

1.2 MPLS Term


MPLS Label
MPLS label is a fixed-length and locally valid identifier. The label usually exists between
the Layer 2 encapsulation header and Layer 3 packet. A label maps to a Forwarding
Equivalence Class (FEC) through binding.
As shown in Figure 1-5, an MPLS label is a fixed-length integer. The length is 32 bits. A
label is used to identify a specific FEC.

Figure 1-5 MPLS Label Structure

The MPLS label is encapsulated after the data link layer header and before network layer
header. It contains the following fields:
l Label field

This field is 20-bit long, containing the actual value of a label.


l EXP field

This field is 3-bit long. It is a CoS. At present, it is mpls exp, used as MPLS QoS.
l S field

1-5

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

When the value of this field is 1, it means that this label is stack bottom label. When
the value of this field is 0, it means that this label is not the stack bottom label.
l TTL Field
This field is 8-bit long, used for coding time to live.
MPLS supports different protocols at data link layer. MPLS label is encapsulated after data
link layer information and before Layer 3 data. Different protocols define different protocol
numbers for MPLS.
In Ethernet networks, MPLS packets are identified by value 0x8847 (for unicast) and value
0x8848 (for multicast). In PPP, a new Network Control Protocol (NCP), that is, MPLSCP,
is identified by value 0x8281.
The S field of a label is shown in Figure 1-6. In an MPLS domain, a message can be
nested with multiple labels. Two or more MPLS labels form a label stack.

Figure 1-6 MPLS Label Stack

When a message is encapsulated with multiple labels, LSRs handle the message
according to First In First Out principle. That is, LSRs just forward the message according
to the top label rather than the inner labels.
As MPLS providing label nesting technology, MPLS can be applied in different services.
MPLS VPN and traffic engineering are realized based on the nesting of multiple layer
labels.

FEC
FEC is a group of data performed by equivalence method during forwarding. It is created
by address, tunnel or Class of Service (CoS). The same labels are distributed to an FEC
on a device.
In fact, MPLS is a classification forwarding technology. It classifies the packets with the
same handling method (such as the same destination, same forwarding path, the same
service class and so on) into a class, that is, the FEC.

Packets belonging to the same FEC are handled completely the same in the MPLS
network. During the binding of LDP labels, different FECs correspond to different labels.
In the MPLS network, the nodes identify the FEC to which the packets belong according
to the labels.

1-6

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

When two groups of packets with the same source address but different destination
addresses enter an MPLS domain, MPLS judges the packets according to FEC. When
finding that the packets belong to two FECs, MPLS treats the groups in different ways
(including paths resource reservations). The ingress node adds different labels for the
two groups of packets and then transmit the packets to the MPLS domain. The nodes in
the MPLS domain forward the packets according to labels. When the packets leave the
MPLS domain, the egress node pops out the labels. The two groups of packets will be
forwarded according to the requirements of networks that they go to.
In traditional routing forwarding, packets are in the same FEC (such as Layer 3 searching)
on each router. In MPLS, FEC is defined for packets at the ingress of the network.

LSR, LER, LSP and LDP


Terms in MPLS network are described below.

l Label Switched Router (LSR)


LSR is the core router in MPLS network. It provides the function of label switching
and label distribution.
l Label Edge Router (LER)
LER is the router at the MPLS edge. It distributes corresponding labels for the traffic
to MPLS domain. It provides functions of traffic classification, label mapping and label
removing.

l Label Switched Path (LSP)


Data flow of an FEC traffic are distributed with different labels on different nodes. Data
forwarding is implemented according to these labels. The path that data flow passes
through is the LSP. LSP is connection-oriented, and the path is established before
data transmission.
l Label Distribution Protocol (LDP)
Routers in MPLS domain run LDP to distribute labels for packets.
As shown in Figure 1-7, MPLS domain is the range in which nodes run MPLS. MPLS
domain contains LSR and LER.

1-7

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 1-7 MPLS Special Terms

MPLS consists of LER and LSR.


l LER is responsible for FEC classification, traffic engineering and LSP establishment
initiation, IP packet forwarding, Diff-Serv and so on.
l LSR eis responsible for LSP establishment and label switching.

1.3 LSP Establishment


LSP Introduction
Label Switched Path (LSP) is a forwarding path established according to MPLS. It is
composed of LSRs and links between the source LSR and the destination LSR. An LSP
is similar with a virtual circuit of ATM. The establishment of LSP is also the process of
label distribution to each node along the path.
There are three drive modes to establish an LSP: flow-driven, topology-driven and
application-driven.
l Flow-driven
Packet flow triggers the label distribution.
In this mode, the cost for label distribution is in direct proportion to the traffic. Time
delay exists for label distribution. To distribute specific labels to specific network
resources to support specific programs, flow-driven mode should be used.

l Topology-driven
In this mode, label distribution is implemented according to normal routing protocols.

When an LSR handles route update of Open Shortest Path First (OSPF) or Border
Gateway Protocol (BGP), the LSR modifies the entries in label forwarding table,
meanwhile the LSR distributes labels for these entries. As long as there is a route,
label distribution is finished in advance. Therefore, there is no time delay when LSR
forwards packets.

1-8

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

l Application-driven
In this mode, LSR distributes labels on the base of normally requested control service
traffic. The corresponding protocol is RSVP. When an LSR handles RSVP, the LSR
modifies the entries in the label forwarding table, meanwhile the LSR distributes labels
for these entries. This mode requires application programs to bring forward label
requests and flow rules in advance to obtain labels. It also distributes labels for existed
routes, so there is no time delay. However, it is difficult to implement RSVP in the
whole network, so this mode is seldom used.
Compared with flow-driven, topology-driven has the following advantages:
l Label value assignment and distribution correspond to control message, so network
cost is little.
l Label is assigned and distributed before traffic arrives, so there is no time delay.
Therefore, topology-driven is usually used in networks to distribute labels.
The protocol used between LSRs to distribute labels is the signaling protocol. An LSP
is established through the interactions of signaling protocol. Common signaling protocols
are described below.

l Label Distribution Protocol (LDP) (the most common signaling protocol)


l Constraint based Routing Label Distribution Protocol (CR-LDP)
l RSVP with Traffic Engineering extensions (RSVP-TE) (usually used in traffic
engineering)
l Multiprotocol BGP (MP-BGP) (usually used in BGP/MPLS VPN to distribute inner layer
labels)

LSP Establishment
The establishment of an LSP in MPLS network contains three steps:

1. Each node runs a dynamic routing protocol such as BGP, OSPF or Intermediate
System-to-Intermediate System (IS-IS) to generate a routing table.
2. According to the routing table, each node establishes a Label Information Base (LIB)
under the control of LDP.
3. An LSP is established after "out" labels and "in" labels on ingress LSR, intermediate
LSRs and egress LSR are mapped to each other.

The detailed procedure is described below.

1. Routing table generation


As shown in Figure 1-8, each router runs a dynamic routing protocol such as OSPF to
generate a routing table. RA, RB and RC learn the route 47.1.0.0/16 to the network
edge.

1-9

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 1-8 Routing Table Generation

2. LIB generation
As shown in Figure 1-9, the routers run LDP to distribute labels.

Figure 1-9 LIB Generation

As an egress LSR to 47.1.0.0/16, RC distributes a label "40" and sends it to upstream


neighbor RB. This information is recorded in LIB. When RC receives a message with
label "40", it knows that this message is to 47.1.0.0/16.
When RB receives the binding information of 47.1.0.0/16 and label "40" from RC,
it keeps the label information and the receiving interface in LIB. Meanwhile, RB
distributes a label for 47.1.0.0/16 and sends this information to neighbors except the
neighbor connecting to the receiving interface. Suppose that RB sends a label "50"
to RA. Therefore, there is such a piece of information in LIB of RB, as shown below.
IntfIn LabelIn Dest IntfOut LabelOut
1 50 47.1.0.0 2 40

This information means when RB receives a message with label "50" from interface
1, it changes the label to "40" and sends the message from interface 2. RB does not
look up routing information in its routing table.

When RA receives binding information, RA acts in the same way as RB does.

1-10

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

LIB is always synchronous with IP routing tables. Once a new non-BGP route is
generated in the routing table, LSR distributes a label for this route. LSR does not
distribute labels for BGP routes by default.
3. LSP generation
After the interaction of labels finishes, a LSP is established. When LSRs forward
messages, they forward them according to labels instead of looking up routing tables,
as shown in Figure 1-10.

Figure 1-10 LSP Generation

When RA receives a message with destination address 47.1.1.1, it looks up its routing
table first, and then it looks up label forwarding table. When it finds that the FEC
47.1.0.0/16 corresponds to the label "50", RA adds the label to the header of the
message and sends it from interface 2.
When RB receives the message with label "50" from interface 1, it looks up the label
forwarding table, and then RB changes the label to "40" and sends the message from
interface 2.
When RC receives the message with label "40" from interface 1, it looks up the label
forwarding table. RC finds that the destination of the message is a network segment
connecting to itself directly. Therefore, RC pops out the label and sends the IP
message.

Penultimate Hop Popping


In an MPLS domain, when the egress LER receives packets from its neighbor, it
implements searching twice.
The egress LER looks up label forwarding table first and removes the label, then it looks
up routing table and forwards the IP message. This decreases the performance of the
LER and increases forwarding complexity. Penultimate hop popping mechanism solves
this problem.
It is only necessary to use penultimate hop popping mechanism for direct routes and
aggregated routes. For direct routes, LER has to look up routing table to get next
hop information before it forwards messages to destinations connecting to it directly.

1-11

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

For aggregated routes, LER has to look up routing table for accurate routes. In other
situations, Layer 2 information of messages has been recorded in LFIB, so there is no
need to look up routing table. The messages are switched directly.
As shown in Figure 1-11, RC is an egress LER to 47.1.0.0/16, so RC distributes a particular
label "3" (means implicit-null) for messages to 47.1.0.0/16. When RB receives the label
"3" distributed by RC, RB knows that it is the penultimate hop popping LSR.

Figure 1-11 Penultimate Hop Popping

During forwarding procedure, when RB receives a message with a label "50" from RA,
it looks up the label forwarding table. RB finds that the "out" label is "3", so it pops out
the label in the message and sends the message to RC. When RC receives the message
without a label, it looks up routing table directly and forwards the message.

1.4 Label Distribution and Management


MPLS has different modes of label distribution and management.
Label distribution modes are as follows:

l DoD
l DU
There are two label control modes.
l Ordered label control mode
l Independent label control mode
There are two label retention modes.

l Liberal mode
l Conservative mode
By default, ZXCTN 9000-E use DU label distribution mode, independent label control mode
and liberal label retention mode.

1-12

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Label Distribution Mode


There are two label distribution modes: DoD and DU. The upstream LSR and downstream
LSR having neighbor relationship should agree on the label distribution mode in order to
distribute the labels.
For a specific FEC, an LSR distributes labels after receiving label requests. This is the
DoD label distribution.
Figure 1-12 shows that RC is the egress LER to 171.68.10.0/24. RC cannot send label
binding information to upstream neighbor RB forwardly. RC has to wait for the request
messages from the upstream.

Figure 1-12 Downstream on Demand (DoD)

For a specific FEC, an LSR does not need to get request messages for labels from
upstream neighbors before distributing labels. This is the DU label distribution.
Figure 1-13 illustrates that RC does not need to wait for label request message from
upstream before sending binding information of the FEC and label to the downstream
LSR. In the same way, RB does not need to wait for label request message from RA
before sending binding information of the FEC and label to RC.

Figure 1-13 Downstream Unsolicited

Label Control Mode


There are two label control modes in an MPLS network: the ordered mode and
independent mode.
l Ordered mode

1-13

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Only when an LSR receives specific label mapping messages of a particular FEC, or
when the LSR is the egress of the FEC, labels are distributed to the LSR and then
the LSR sends label mapping messages to upstream LSR. Ordered mode is a strict
mode which can be used in explicit route and multicast.
l Independent mode
Each LSR can bind labels to messages independently and send label mapping
messages to the upstream neighbor when the LSR receives an FEC, no matter
whether the LSR receives label mapping messages from the downstream neighbor.
This process is similar to the route packet forwarding of traditional routers. Each
router forwards packets independently based on its routing table. The packets are
transmitted correctly through routing protocol.

Label Retention Mode


There are two label retention modes: liberal and conservative.
For a specific FEC, LSR1 receives label binding messages from LSR2, LSR3 and LSR4.
When LSR2 and LSR3 are not the next hop LSR1, if LSR1 saves these binding messages,
LSR1 uses liberal label retention mode. If LSR1 discards these binding messages, LSR1
uses conservative label retention mode.
In liberal label retention mode, an LSR can adapt itself to route changes quickly, but this
takes up more memory. In conservative label retention mode, an LSR can reduce the
memory, but it has weak ability to adapt itself to route changes.
Therefore, when an LSR is required to adapt itself to route changes quickly, use liberal
label retention mode. When an LSR is required to save few labels, use conservative label
retention mode.

Label Forwarding Table


A label forwarding table (that is, the label forwarding information base) is a database where
binding information of FECs and labels is stored. A LSR maintains the label forwarding
table through label distribution protocol dynamically.
A label forwarding table contains the following items:
l InLabel: in label, distributed by local router for upstream LSR
l OutLabel: out label, distributed by downstream LSR for local router
l Dest: destination network segment or host
l Pfxlen: prefix length
l Interface: egress interface
l NextHop: next hop

When an LSR receives a message, it looks up the label forwarding table. It searches for
the OutLabel based on the InLabel of the message, and then the LSR replaces the old
label with the Outlabel and sends the message from the exiting interface.

1-14

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Label Distribution Protocol


There are the following types of protocols that can implement label distribution function.
l LDP, most widely used label distribution protocol
l CR-LDP
l RSVP-TE, usually used in traffic engineering
l MP-BGP, usually used in BGP/MPLS VPN for inner layer label distribution
LDP is a protocol that generates labels dynamically. It is based on UDP and TCP. The
protocol messages are routed hop by hop based on routing tables. LDP advertises FEC
(network prefix) and marks mapping relationship between LSRs, generates LSP at last.

LDP Session Establishment and Maintenance


LSR establishes and maintains an LIB based on label and binding information between
FECs. Two LSRs that use LDP to switch FEC/label binding information are called LDP
Peers. The main function of LDP is to make LSR implement binding of FEC and labels
and advertise the binding to LSR neighbor. Therefore, the LSRs can agree on the label
bindings.
The ZXCTN 9000-E supports LDP regulations defined in RFC, including neighbor
discovery, label request, label mapping, label withdraw, label release and error
management.
l Neighbor discovery: LSR sends Hello messages to neighbors periodically to discover
LDP peers automatically.
l Session establishment and maintenance: LSRs establish TCP connections and finish
session initialization (negotiation of different parameters).
l LSP establishment and maintenance: LSRs distribute labels for FECs and establish
LSPs.
l Session withdraw: When session hold-time expires, the session is interrupted.
Before switching labels, LDP peers need to establish an LDP session. Figure 1-14 shows
the LDP session establishment procedure.

1-15

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 1-14 LDP Session Establishment

1. R1 and R2 send multicast Hello messages to protocol interfaces before establishing


the session. The messages are encapsulated by UDP and port number is 646.
Meanwhile, protocol interfaces on R1 and R2 detect Hello messages in real time to
discover neighbors.
2. After R1 and R2 receive Hello messages, they judge whether a session has been
established with the peer. If a session has not been established, they prepare to
establish a session. The establishment procedure of a session is to establish a TCP
connection through port number 646. Before establishing the TCP connection, R1 and
R2 elect a master based on transmission addresses. The router with bigger IP address
will acts as the master. The master initiates the TCP connection. Here suppose that
transmission address of R2 is larger. Therefore, R2 sends TCP connection request.
3. R2 sends an initialization message to establish the session. The message contains
parameters to be negotiated.
4. When R1 receives the message from R2, it checks the parameters. If parameters
pass the check, R1 will send an initialization message and a keepalive message to
R2. Parameters to be negotiated are included in the initialization message.
5. R2 checks the message from R1. If parameters pass the check, R2 will send a
keepalive message to R1.
6. The session is established after R1 and R2 receive keepalive messages. During the
procedure, if any error messages are received, the session will be closed and the TCP
connection is disconnected.

LDP Multi-Instance
Market competition arouses the appearance of Level 2 carriers. Level 2 carriers rely on
the services provided by Level 1 carriers, and then they provide the services to users. To

1-16

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

manage and control the service, Level 1 carriers need to differentiate the paths that are
provided for a specific Level 2 carrier. This is the application of Carrier Of Carrier (COC).
ZXCTN 9000-E provides LDP multi-instance function to support the applications of COC. In
LDP multi-instance, several LDP instances can be configured on an LSR. Each instance
belongs to a VPN domain and it is bound to VRF. Each instance creates FECs for the
addresses and routes in the VPN domain on its own, and it binds and distributes labels
for the FECs. The instances are independent of each other. The resources used by all
the instances are limited by LDP performance parameters, that is, the resources used
by all the instances should not be beyond the resources provided by LDP performance
parameters.

LDP IGP Synchronization


Some services may be deployed to pass the LDP-enabled network, and these services rely
on end-to-end LSPs. For example, in the L2VPN or L3VPN service scenario, an MPLS
path is required between PE routers to carry VPN traffic. This means that, between PE
routers, all of the links that the shortest IP path passes through should have operational
LDP sessions, and the label binding information of these sessions have been exchanged
between PE routers. If one of these links is not covered by LDP sessions, a black hole is
generated, and services related to MPLS forwarding are interrupted.
Figure 1-15 shows the network topology for LDP IGP synchronization. It provides the
following functions:
l All devices and links on the backbone network have the LDP function enabled, and
each link has the same cost. There are two LDP LSPs from PE1 to PE2 (active LSP:
PE1P3PE2, standby LSP: PE1P1P2PE2).
l If the P3PE2 link is broken, VPN traffic is switched over from the active LSP to the
standby LSP.
l If the P3PE2 link comes up again, the route is soon converged to the active path
(PE1P3PE2), and the VPN traffic is immediately switched back to the active
LSP. It may take a long time to establish LDP sessions and distribute label binding
information between P3 and PE2, which causes VPN traffic to be interrupted for a
long time.

Figure 1-15 Network Topology for IGP Synchronization

1-17

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

The ZXCTN 9000-E provides LDP IGP synchronization to achieve synchronization


convergence between LDP LSPs and IGP routes. Supported IGP protocols include OSPF
and IS-IS.
When a link that has LDP enabled comes up, if the associated LDP sessions are not fully
operational, the link cost advertised by IGP has the highest value, which prevents routes
converging to the link. The OSPF-advertised cost is 0xFFFF, and the IS-IS-advertised cost
is 0xFFFFFE.
To make LDP sessions fully operational, ensure that the following requirements are met:
l LDP hello neighbors have been established.
l The LDP sessions associated with the link have been established.
l The LDP label binding information has been exchanged between LDP neighbors.
When a GR occurs, sessions are kept in the statuses before the GR occurs until the GR
timeout is reached.

GTSM
The GTSM-based TTL hack can effectively reduce the loss caused by attacks (such as
the DoS attack). The following illustrate the working principles of GTSM.
The GTSM mechanism prevents attacks by detecting the TTL field in IP packets. After
attackers keeps on sending packets to a network device by simulating actual LDP packets,
the forwarding plane of the device detects whether the received packets are LDP packets,
and the device takes one of the following actions based on the detection result:
l For non-LDP packets, the device forwards or discards them based on the default
processing policy.
l For LDP packets:
If the device has the GTSM function enabled, the GTSM policy-based matching
is performed first. If a match is found, the device then determines whether the
TTL of the received packets is within the permitted range. If not, the packets are
considered to be attack packets and are discarded. If a match is not found, the
packets are discarded or forwarded based on the default policy.
If the device has the GTSM function disabled, the packets are directly sent to the
control plane.

Implementation of Longest Matching Routes in LSP


In an MPLS Seamless network, MPLS applications are required to be extended from the
carrier's core backbone network to the subscriber side, and the AN is directly connected
to the subscriber side. This results in a great amount of AN nodes on a network, and
the advertisement of loopback addresses of AN nodes within their associated IGP-running
areas only. If the IGP operates across areas, the aggregated route mode should be used
to advertise routes to reduce the loads caused by running the IGP on the core-domain
or other access devices. This requires that the LDP can learn labels, and the longest
matching rule rather than the traditional exact matching rule is used to match routes.

1-18

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Figure 1-16 shows that PE2 and PE3 (edge routers) advertise their loopback addresses
(10.1.1.1/32 and 10.1.1.2/32) to ABR2 (border router), and ABR2 only advertises the
aggregated route (10.1.1.0/24) to another domain. In this scenario, both ABR1 and
PE1 learn the aggregated route (10.1.1.0/24) only. The broken line refers to the route
advertisement flow. This results in that PE1 cannot obtain the exact routing information of
PE2 and PE3, and cross-domain LSPs (from PE1 to PE2 or PE3 in the remote domain)
cannot be established.

Figure 1-16 Implementation of Longest Matching Routes in LSP

This problem can be resolved by using the longest matching mode to establish LSPs. The
flow is as follows: When an LSR receives the label mapping information of an FEC from
a downstream LSR, if the longest match corresponding to the FEC is found from local
routes and the next-hop of the route is the LSR that sends the label mapping information,
the upstream LSR is then used to forward the FEC, assign a label to the FEC, and advertise
the label mapping information.
Figure 1-16 shows the flow of matching a route and establishing an LSP:
1. PE2 assigns a label (3) to an FEC (10.1.1.1/32), and advertises the label mapping
information to ABR2.
2. Upon receipt of the label mapping information, ABR2 assigns a label (16) to the FEC
(10.1.1.1/32), and advertises the label mapping information to the upstream.
3. Upon receipt of the label mapping information, ABR1 searches for the longest match
(10.1.1.0/24) in its local routing module, and finds that ABR2 is the next-hop of the
10.1.1.0/24 route. ABR1 is then used to forward the FEC (10.1.1.1/32), assign a label
(17) to an FEC (10.1.1.0/24), and advertises the label mapping information related to
the FEC (10.1.1.1/32) to the upstream.
4. The solid lines in Figure 1-16 illustrate the label distribution procedure. All the nodes
that the LSP passes through advertise the label mapping information of the 10.1.1.1/32
FEC to the upstream and the corresponding forwarding entries are generated. A
cross-domain LSP (PE1ABR1ABR2PE2) is established.

1-19

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

The above flow is also applicable to the establishment of another cross-domain LSP
(PE1ABR1ABR2PE3).

Packet Filtration
The ZXCTN 9000-E supports the filtration of LDP UDP/TCP packets that do not meet the
ACL policy requirements for security concerns.

1.5 MPLS Configuration


This procedure describes how to enable MPLS to distribute labels between network nodes
and then establish an LSP.

Steps
1. Enable MPLS LDP.

Step Command Function

1 ZXCTN(config)#mpls ldp instance <instance-id>[vrf Enables MPLS LDP. The


<vrf-name>] instance-id parameter is in a
range of 1 to 65535.

2 ZXCTN(config-ldp-instance-id)#interface Adds interfaces in LDP


<interface-name> configuration mode.
Note that, after this command
is executed, label switching is
implemented on the specified
interface.

Execute the mpls ldp instance command to enable the LDP function and enter the
LDP configuration mode. Add interfaces in LDP configuration mode. This means that
label switching should be implemented on these interfaces. Then the LDP sends Hello
messages on the interfaces periodically. When the device obtains the "out" label for
the specific destination network segment on an interface, the device adds the label to
the packets to the destination and forwards the packets on this interface.
A configuration example is shown below:
ZXCTN(config)#interface loopback1
ZXCTN(config-if-loopback1)#ip address 210.210.210.1 255.255.255.255
ZXCTN(config-if-loopback1)#exit
ZXCTN(config)#interface gei-0/1/0/1
ZXCTN(config-if-gei-0/1/0/1)#no shutdown
ZXCTN(config-if-gei-0/1/0/1)#ip address 190.190.190.2 255.255.255.0
ZXCTN(config-if-gei-0/1/0/1)#exit
ZXCTN(config)#interface gei-0/1/0/2
ZXCTN(config-if-gei-0/1/0/2)#no shutdown
ZXCTN(config-if-gei-0/1/0/2)#ip address 190.190.191.2 255.255.255.0

1-20

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

ZXCTN(config-if-gei-0/1/0/2)#exit
ZXCTN(config)#mpls ldp instance 1
ZXCTN(config-ldp-1)#router-id loopback1
ZXCTN(config-ldp-1)#interface gei-0/1/0/2
ZXCTN(config-ldp-1-if-gei-0/1/0/2)#discovery transport-address interface
ZXCTN(config-ldp-1-if-gei-0/1/0/2)#exit
ZXCTN(config-ldp-1)#interface gei-0/1/0/1
ZXCTN(config-ldp-1-if-gei-0/1/0/1)#discovery transport-address interface
ZXCTN(config-ldp-1-if-gei-0/1/0/1)#exit

2. Configure the LDP router-ID.

Command Function

ZXCTN(config-ldp-instance-id)#mpls ldp Configures the LDP router-ID. This


router-id <interface-name> command can be used to configure the
address on a specific interface as the LDP
router-ID in the VPN domain.
Considering the stability of an LDP
connection, it is recommended to use
the loopback interface address as the
router-ID of an LDP instance.

3. Configure label generation and distribution.

Through the configuration, users can control label generation, label range and label
distribution.

Step Command Function

1 ZXCTN(config)#mpls ldp instance <instance-id>[vrf Enables LDP to establish


<vrf-name>] an LSP along common
hop-by-hop routes and enters
LDP configuration mode.

2 ZXCTN(config-ldp-instance-id)#access-fec { Controls generation of labels


ip-prefix { for < prefix-access-list>| host-route-only}| bgp} for the specified network
segment and creates an FEC.

3 ZXCTN(config-ldp-instance-id)#label-advertise Controls the labels generated


{disable | old-style | for < prefix-access-list>[to < locally ("in" labels) to be
prefix-access-list>]} distributed through LDP.
This command can control
the labels for the specified
destination network segments
to be advertised to the
specified neighbors. By
default, all labels are
distributed to all neighbors.

1-21

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

host-route-only means to create FECs for host addresses only.


bgp means to create FECs for route network segments obtained through BGP.
A configuration example is shown below.
ZXCTN(config)#ipv4-access-list 2
ZXCTN(config-ipv4-acl)#rule 10 deny 200.200.201.0 0.0.0.255
ZXCTN(config-ipv4-acl)#rule 20 permit any
ZXCTN(config-ipv4-acl)#exit
ZXCTN(config)#mpls ldp instance 1
ZXCTN(config-ldp-1)#access-fec for 2
ZXCTN(config-ldp-1)#exit

Based on the configuration in the example, LDP does not distribute labels for routes
on the 200.200.201.0/24 network segment.
4. Configure an LDP neighbor.

Step Command Function

1 ZXCTN(config)#mpls ldp instance <instance-id>[vrf Enables an LDP instance


<vrf-name>] to establish an LSP along
common hop-by-hop routes
and enters LDP configuration
mode.

2 ZXCTN(config-ldp-instance-id)#target-session Configures the session


{<ip-address>| ipv6 < X:X::X:X >}[dod] address of non-directly
connected remote target to
establish a session.

3 ZXCTN(config-ldp-instance-id)#discovery hello { Configures the interval for


holdtime <holdtime>| interval <interval>} sending Hello messages
and the holdtime of an LDP
neighbor.

4 ZXCTN(config-ldp-instance-id)#discovery Configures the interval for


targeted-hello {holdtime <holdtime>| interval <interval>} sending Hello messages
and the time-out of LDP
neighbor discovery between
non-directly connected LSRs
in an LDP instance.

holdtime <holdtime>: This is the hold-time (in seconds) when an LDP instance finds
that a neighbor cannot receive following Hello messages, range: 165535, default: 1.
For targeted-hello packets, the default is 45.
interval <interval>: This configures an LDP instance to send Hello messages
periodically. The interval range is 165535 and the unit is second. The default value
is 5 seconds. The default value of targeted-hello is 15 seconds.
A configuration example is shown below.

1-22

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

ZXCTN(config)#mpls ldp instance 1


ZXCTN(config-ldp-1)#discovery hello holdtime 20
ZXCTN(config-ldp-1)#show mpls ldp parameters instance 1
Protocol version: 1
Session holdtime: 180 sec; keep alive interval: 60 sec
Discovery hello: holdtime: 20 sec; interval: 5 sec
Discovery targeted hello: holdtime: 45 sec; interval: 15 sec
LDP for targeted sessions
Downstream on Demand max hop count: 255
LDP used lsp control mode: Independent
LDP configred lsp control mode: Independent
LDP used label retention mode: Liberal
LDP configred label retention mode: Liberal
LDP loop detection: off
LDP IGP sync delay: 5 sec

5. Configure other LDP functions.

Step Command Function

1 ZXCTN(config)#mpls ldp instance <instance-id>[vrf Enables LDP to establish


<vrf-name>] an LSP along common
hop-by-hop routes and enters
LDP configuration mode.

2 ZXCTN(config-ldp-instance-id)#egress { for Controls LDP to distribute


<prefix-access-list>| nexthop <nexthop-access-list>} popping labels for the
specified non-directly
connected destination
network segment, that is,
the egress control policy.

3 ZXCTN(config-ldp-instance-id)#explicit-null [for Makes the LDP instance


<prefix-acl>][to <peer-acl>] advertise explicit-null label
when it should advertise
implicit-null label. By default,
implicit-null label is used.

4 ZXCTN(config-ldp-instance-id)#holdtime <seconds> Configures the hold-time


when LDP session cannot
receive following LDP
messages. It is in a range
of 15 to 65535, in unit of
second. The default value is
180 seconds.

5 ZXCTN(config-ldp-instance-id)#neighbor <ip-address Configures the MD5 password


> password {sealed <sealed-password>|<password>} for TCP establishment
between LDP peers.

1-23

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Step Command Function

6 ZXCTN(config-ldp-instance-id)#label-request for Configures the prefix and


<prefix-access-list> downstream neighbor for
request messages sent by
LDP.

7 ZXCTN(config-ldp-instance-id)#gtsm Enables the checking of


target-neighbor < ip-address > hop-count <hop-num> the TTL value of LDP
packets from the peer end
ZXCTN(config-ldp-instance-id-if-ifname)#gtsm
(for directly-connected or
non-directly-connected
sessions)

8 ZXCTN(config-ldp-instance-id)#filter packet for Configures a packet filtration


<acl-name> policy.

9 ZXCTN(config-ldp-instance-id)#igp sync delay Configures a delay time


<para> for MPLS LDP and IGP
synchronization.

10 ZXCTN(config-ldp-instance-id)#label-retention Sets the retention mode of


conservative all LDP labels associated
with the LDP instance to
conservative.

11 ZXCTN(config-ldp-instance-id)#longest-match {ipv4 Enables the use of the longest


for <acl-name>|ipv6 for <acl-name>} matching rule to establish and
remove LSPs.

12 ZXCTN(config-ldp-instance-id)#lsp-control ordered Sets the control mode of all


LSPs associated with the LDP
instance to ordered.

13 ZXCTN(config-ldp-instance-id-if-ifname)#label- Enables the DoD mode on the


distribution dod LDP interface.

<prefix-acl>: It is to use explicit-null label to advertise the prefix that is advertised by


implicit-null label. It is optional.

<peer-acl>: It is to designate the neighbors to which explicit-null label is advertised. It


is optional.
<ip-address>: address of the peer LSR.

<hop-num>: TTL value, range: 1254.


<acl-name>: ACL name, range: 131 characters.

<para>: delay time, range: 165535.

<acl-name>: ACL name, range: 131 characters.


6. Configure LDP BFD.

1-24

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Step Command Function

1 ZXCTN(config)#mpls ldp instance <instance-id>[vrf Enables LDP to establish


<vrf-name>] an LSP along common
hop-by-hop routes and enters
LDP configuration mode.

2 ZXCTN(config-ldp-instance-id)#bfd <FEC-addres Configures parameters of


s><mask-length> interval <interval> min_rx <min_rx> LDP LSP BFD and triggers
multiplier <multiplier> the establishment of LSP BFD
session.

3 ZXCTN(config-ldp-instance-id)#peer bfd Configures parameters


remote-routerid < ip-address > related to LDPPeerBFD.
After an LDP session is up,
establishment of a PeerBFD
session with a specified
neighbor is immediately
triggered.

4 ZXCTN(config-ldp-instance-id)#peer bfd If only the delay field is


remote-routerid <ip-address>[delay [<time>]] configured, a BFD session
establishment is delayed 60
seconds after a LDP session
is up.
If a specific duration is set
to the delay field, the BFD
session establishment is
delayed for the configured
duration after the LDP session
is up.

<interval>: minimum interval (in milliseconds) for sending messages, range: 3990.
<min_rx>: minimum interval (in milliseconds) for receiving messages, range: 3990.
<multiplier>: multiple of detection time-out, range: 350.

<ip-address>: router-id of the LDP neighbor.


delay: Delay duration after an LDP session is up.

<time>: delay duration after an LDP session gets up, range: 0-720, unit: seconds.
7. Configure LDP GR.

Step Command Function

1 ZXCTN(config)#mpls ldp instance <1-65535>[vrf Creates an LDP instance


<vrf-name>] and enters LDP configuration
mode.

1-25

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Step Command Function

2 ZXCTN(config-ldp-instance-id)#graceful-restart Configures LDP GR.


[timer {max-recovery <interval>| neighbor-liveness
<interval>}]

max-recovery <interval>: maximum time (in seconds) that the LSR waits for label
recovery at the peer end, which needs to be negotiated, range: 15600, default: 120
neighbor-liveness <interval>: maximum time (in seconds) that the LSR waits for LDP
session recovery, which needs to be negotiated, range: 5300, default: 120

8. Configure LSP Ping/LSP trace detection.


To ensure that the routers in the network can report the errors related to the MPLS LSP
data plane or provide some exceptional information, the LSP Ping/LSP Trace function
is put forwarded.
LSP Ping/LSP Trace is a simple and efficient method used to detect the fault of the
MPLS LSP data plane. It can detect and isolate some faults, such as route black-hole
and route loss, that are not found by some control planes in a short time.

For the details about LSP Ping/LSP Trace, refer to the Network Layer Detection
section in ZXCTN 9000-E Configuration Guide (System Management).
9. Enable LDP IGP synchronization (OSPF-based):

Step Command Function

1 ZXCTN(config)#router ospf <1-65535>[vrf <vrf-name>] Creates an OSPF instance,


and enters the OSPF
configuration mode.

2 ZXCTN(config-ospf-instance-id)#mpls ldp sync Configures LDP IGP


synchronization. Different
ZXCTN(config-ospf-instance-id)#area
configuration commands
<0-4294967295> mpls ldp sync
determine whether IGP
ZXCTN(config-ospf-instance-id-if-interface-
synchronization is valid for an
name)#mpls ldp sync
entire OSPF instance, an area
of the OSFP instance, or an
OSPF interface.

area<04294967295>: OSPF area ID.

10. Enable LDP IGP synchronization (IS-IS-based):

Step Command Function

1 ZXCTN(config)#router isis <1-65535>[vrf <vrf-name>] Creates an IS-IS instance, and


enters the IS-IS configuration
mode.

1-26

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Step Command Function

2 ZXCTN(config-isis-instance-id)#mpls ldp sync Configures LDP IGP


synchronization. Different
ZXCTN(config-isis-instance-id-if-interface-
configuration commands
name)#mpls ldp sync
determine whether IGP
synchronization is valid for an
entire ISIS instance or an ISIS
interface.

11. Configure a delay timer for LDP IGP synchronization.

Step Command Function

1 ZXCTN(config)#mpls ldp instance <1-65535>[vrf Creates an LDP instance and


<vrf-name>] enters the LDP configuration
mode.

2 ZXCTN(config-ldp-instance-id)#igp sync delay Configure a delay timer for


<1-65535> LDP IGP synchronization.

igp sync delay <165535>: delay time (in seconds) for LDP IGP synchronization,
default: 5.
12. Configure the automatic configuration function of the LDP interface.

Step Command Function

1 ZXCTN(config)#mpls ldp instance <1-65535>[vrf Creates an LDP instance and


<vrf-name>] enters the LDP configuration
mode.

2 ZXCTN(config-ldp-instance-id)#auto-config interface Enables or disables the


global { enable | disable } automatic configuration
function on all LDP IPv4
interfaces of an LDP instance.
This is a global configuration
command. After disabling
the automatic configuration
function of the LDP interfaces,
no LDP interface can be
automatically created, and
the LDP Hello messages
can be received and sent
and LDP sessions can be
created on all interfaces
are determined by the LDP
interface configuration,

1-27

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Step Command Function

without being affected by the


IGP status of the interfaces.

3 ZXCTN(config-ldp-instance-id)#auto-config interface Enables or disables the


<interface-name>{enable | disable} automatic configuration
function on specific LDP IPv4
interfaces of an LDP instance.
If the automatic configuration
function is globally disabled
on an LDP instance, this
configuration has the highest
priority no matter whether
the automatic configuration
function is enabled or disabled
on the interface. If the
automatic configuration
function is not globally
disabled, that is, is enabled
on an LDP instance, check
whether the automatic
configuration function is
disabled on singe interface. If
the function is disabled on any
single interface, this interface
cannot be automatically
created.

enable: Enables the global automatic IPv4 configuration function or the automatic
configuration function on a specific LDP IPv4 interface of an LDP instance.
disable: disables the global automatic IPv4 configuration function or the automatic
configuration function on a specific LDP IPv4 interface of an LDP instance.
<interface-name>: interface name

13. Verify that the configurations are correct.

Command Function

ZXCTN#show mpls ldp interface [<interface-name>] instance Displays the information about
<instance id> the interfaces on which LDP is
enabled in the VPN domain of
an LDP instance.

1-28

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Command Function

ZXCTN#show mpls ldp backoff instance <instance-id> Displays the configuration of


session backoff parameters and
the sessions in backoff state in
an LDP instance.

ZXCTN#show mpls ldp bindings [{( X:X::X:X <0-128> ) | (<ip- Displays label binding
address>{<net-mask>|<length>}[longer-prefixes])}][local-label information of an LDP instance.
<label>[<label>]][remote-label <label>[<label>]][neighbor
<ip-address>][detail] instance <instance-id>

ZXCTN#show mpls ldp bindings summary instance <instance-id> Displays the brief label binding
information of an LDP instance.

ZXCTN#show mpls ldp discovery [ detail ] instance Displays the discovery


<instance-id> information of an LDP instance.

ZXCTN#show mpls ldp neighbor [<neighbor>|<interface-name Displays the session information


>][detail] instance <instance-id> of an LDP instance.

ZXCTN#show mpls ldp parameters instance <instance-id> Displays the current parameter
information of an LDP instance.

ZXCTN#show debug ldp instance <instance-id> Displays the debugging


information of an LDP instance.

ZXCTN#show mpls ldp graceful-restart instance <1-65535> Displays the current LDP GR
configuration of the router.

ZXCTN#show mpls ldp neighbor [[<neighbor-ipaddress>][detai Displays GR neighbor


l]|[graceful-restart]] instance <instance-id> information.

ZXCTN#show mpls ldp igp sync [interface <interface-name>] Displays the status of LDP IGP
instance <instance-id> synchronization.

14. Maintain MPLS.

Command Function

ZXCTN#debug ldp advertisements instance <instance-id> Monitors the addresses and


labels advertised to LDP
neighbors. Run the no command
to cancel the monitoring.

ZXCTN#debug ldp all [instance < instance-id>] Enables all debugging functions
related to LDP.

ZXCTN#debug ldp bindings instance <instanc-id> Monitors the addresses and


labels advertised by LDP
neighbors.

1-29

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Command Function

ZXCTN#debug ldp messages {received | sent} instance Monitors the messages sending
<instance-id> to LDP neighbors or received
from LDP neighbors.

ZXCTN#debug ldp session {io | state-machine} instance Monitors LSP sessions.


<instance-id>

ZXCTN#debug ldp transport {connections | events} instance Monitors information discovered


<instance-id> by LDP.

ZXCTN#debug ldp graceful-restart instance <1-65535> Monitors LDP GR debugging


information.

End of Steps

1.6 MPLS Configuration Instance


1.6.1 Establishing a Basic LDP Neighbour Session
Configuration Descriptions
As shown in Figure 1-17, an LDP neighbor is established between the R1 router and the
R2 router to forward the MPLS label.

Figure 1-17 Establishing a Basic LDP Neighbour Session

Configuration Flow
The thought to establish a basic LDP neighbor session between the R1 router and the R2
router is described below:
1. Enable the MPLS hop-by-hop forwarding between the R1 router and the R2 router.
2. Configure the LDP label distribution between the R1 router and the R2 router
3. Set the IP address of the loopback interface as the router-ID of the LSR

Configuration Commands
The configuration of the R1 router is as follows:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255

1-30

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit
R1(config)#router isis
R1(config-isis-0)#area 00.0001
R1(config-isis-0)#system-id 0001.0002.0034
R1(config-isis-0)#interface gei-0/2/0/7
R1(config-isis-0-if-gei-0/2/0/7)#ip router isis
R1(config-isis-0-if-gei-0/2/0/7)#exit
R1(config-isis-0)#interface loopback1
R1(config-isis-0-if-loopback1)#ip router isis
R1(config-isis-0-if-loopback1)#exit
R1(config-isis-0)#exit
R1(config)#mpls ldp instance 1
/*Configure the Router-ID and the interface for the LDP*/
R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#exit

The configuration of the R2 router is as follows:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#no shutdown
R2(config-if-gei-0/3/0/7)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit

R2(config)#router isis
R2(config-isis-0)#area 00.0002
R2(config-isis-0)#system-id 0002.0002.0035
R2(config-isis-0)#interface gei-0/3/0/7
R2(config-isis-0-if-gei-0/3/0/7)#ip router isis
R2(config-isis-0-if-gei-0/3/0/7)#exit
R2(config-isis-0)#interface loopback1
R2(config-isis-0-if-loopbck1)#ip router isis
R2(config-isis-0-if-loopbck1)#exit
R2(config-isis-0)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/3/0/7

1-31

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R2(config-ldp-1-if-gei-0/3/0/7)#exit
R2(config-ldp-1)#exit

Note:
l In the above configuration, the purpose of running the IS-IS protocol is to advertise
the Router-IDs (that is, the route of the loopback interface addresses) of each LSR.
l Using the loopback interface addresses as the router-IDs of LDP instances can ensure
the stability of LDP ID on routers, because the state of loopback interface addresses
will not change (unless users shut down the interfaces manually).

Configuration Verification
Show the neighbor information on the R2 router:
R2(config)#show mpls ldp neighbor detail instance 1
Peer LDP Ident: 1.1.1.34:0; Local LDP Ident: 1.1.1.35:0
TCP connection: 1.1.1.34.646 - 1.1.1.35.26408
State: Oper; Msgs sent/rcvd: 31/31; Downstream
Up Time: 00:24:57
LDP discovery sources:
gei-0/3/0/7; Src IP addr: 100.100.100.1
holdtime: 15000 ms, hello interval: 5000 ms
Addresses bound to peer LDP Ident:
1.1.1.34 100.100.100.1
Session holdtime: 180000 ms; KA interval: 60000 ms
LDP Peer BFD not register.
LDP dynamic capability enable:
LDP send capability:
LDP dynamic capability
LDP Typed Wildcard FEC Cap
LDP Unrecognized Noti Cap
LDP received capability:
LDP dynamic capability negotiate success
LDP Typed Wildcard FEC Cap negotiate success
LDP Unrecognized Noti Cap negotiate success

If the session is in Oper status, it means that the parameters are negotiated correctly and
the neighbor relationship between R2 and 1.1.1.34 (R1) has been established.

1-32

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

1.6.2 Establishing an LDP Target Session


Configuration Descriptions
As shown in Figure 1-18, the R1 router, the R2 router and the R3 router support MPLS.
Direc-connected LDP sessions are established between the R1 router and the R2 router,
and between the R1 router and the R3 router. The target LDP session is established
between the R2 router and the R3 router.

Figure 1-18 Establishing an LDP Target Session

Configuration Flow
The thought to configure an LDP target session between the R2 router and the R3 router
is described below:
1. Establish the LDP neighbor relationships between the R1 router and the R2 router,
and between the R1 router and the R3 router.
2. Establish the LDP target neighbor relationship between the R2 router and the R3
router.
3. Set the IP address of the loopback interface as the router-ID of the LSR

Configuration Commands
The configuration of the R1 router is as follows:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit
R1(config)#interface gei-0/2/0/8
R1(config-if-gei-0/2/0/8)#no shutdown
R1(config-if-gei-0/2/0/8)#ip address 200.200.200.1 255.255.255.0
R1(config-if-gei-0/2/0/8)#exit

R1(config)#router isis
R1(config-isis-0)#area 00.0001
R1(config-isis-0)#system-id 0001.0002.0034

1-33

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R1(config-isis-0)#interface gei-0/2/0/7
R1(config-isis-0-if-gei-0/2/0/7)#ip router isis
R1(config-isis-0-if-gei-0/2/0/7)#exit
R1(config-isis-0)#interface gei-0/2/0/8
R1(config-isis-0-if-gei-0/2/0/8)#ip router isis
R1(config-isis-0-if-gei-0/2/0/8)#exit
R1(config-isis-0)#interface loopback1
R1(config-isis-0-if-loopback1)#ip router isis
R1(config-isis-0-if-loopback1)#exit
R1(config-isis-0)#exit

R1(config)#mpls ldp instance 1


R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#interface gei-0/2/0/8
R1(config-ldp-1-if-gei-0/2/0/8)#exit
R1(config-ldp-1)#exit
/*Configure the Router ID and the interface for the LDP*/

The configuration of the R2 router is as follows:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#no shutdown
R2(config-if-gei-0/3/0/7)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit

R2(config)#router isis
R2(config-isis-0)#area 00.0002
R2(config-isis-0)#system-id 0002.0002.0035
R2(config-isis-0)#interface gei-0/3/0/7
R2(config-isis-0-if-gei-0/3/0/7)#ip router isis
R2(config-isis-0-if-gei-0/3/0/7)#exit
R2(config-isis-0)#interface loopback1
R2(config-isis-0-if-loopback1)#ip router isis
R2(config-isis-0-if-loopback1)#exit
R2(config-isis-0)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/3/0/7
R2(config-ldp-1-if-gei-0/3/0/7)#exit
R2(config-ldp-1)#target-session 1.1.1.39

1-34

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R2(config-ldp-1)#exit

The configuration of the R3 router is as follows:


R3(config)#interface loopback1
R3(config-if-loopback1)#ip address 1.1.1.39 255.255.255.255
R3(config-if-loopback1)#exit
R3(config)#interface gei-0/3/0/7
R3(config-if-gei-0/3/0/7)#no shutdown
R3(config-if-gei-0/3/0/7)#ip address 200.200.200.2 255.255.255.0
R3(config-if-gei-0/3/0/7)#exit

R3(config)#router isis
R3(config-isis-0)#area 00.0003
R3(config-isis-0)#system-id 0003.0003.0039
R3(config-isis-0)#interface gei-0/3/0/7
R3(config-isis-0-if-gei-0/3/0/7)#ip router isis
R3(config-isis-0-if-gei-0/3/0/7)#exit
R3(config-isis-0)#interface loopback1
R3(config-isis-0-if-loopback1)#ip router isis
R3(config-isis-0-if-loopback1)#exit
R3(config-isis-0)#exit

R3(config)#mpls ldp instance 1


R3(config-ldp-1)#router-id loopback1
R3(config-ldp-1)#interface gei-0/3/0/7
R3(config-ldp-1-if-gei-0/3/0/7)#exit
R3(config-ldp-1)#target-session 1.1.1.35
R3(config-ldp-1)#exit

Configuration Verification
Use the show mpls ldp neighbor command to show the neighbor information on the R3
router.
R3(config)#show mpls ldp neighbor instance 1
Peer LDP Ident: 1.1.1.34:0; Local LDP Ident: 1.1.1.39:0
TCP connection: 1.1.1.34.26406 - 1.1.1.2.646
State: Oper; Msgs sent/rcvd: 10/10; Downstream
Up Time: 00:01:38
LDP discovery sources:
gei-0/3/0/7; Src IP addr: 200.200.200.1
Addresses bound to peer LDP Ident:
1.1.1.34 100.100.100.1 200.200.200.1
Peer LDP Ident: 1.1.1.35:0; Local LDP Ident: 1.1.1.39:0
TCP connection: 1.1.1.35.26412 - 1.1.1.2.646
State: Oper; Msgs sent/rcvd: 9/9; Downstream

1-35

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Up Time: 00:00:39
LDP discovery sources:
Targeted Hello (1.1.1.6); Src IP addr: 1.1.1.6
Addresses bound to peer LDP Ident:
1.1.1.35 100.100.100.2

If the session is in Oper status, it means that the parameters are negotiated correctly and
the neighbor relationship between R3 and 1.1.1.35 (R2) has been established.

1.6.3 Configuring a Label Distribution Policy


Configuration Descriptions
As shown in Figure 1-19, a label distribution policy is configured on the R1 router. The R1
router will not distribute labels for FECs in network segments 5.0.0.0/8 and 110.1.0.0/16.

Figure 1-19 Configuring a Label Distribution Policy

Configuration Flow
The thought to configure a label distribution policy on the R1 router is described below.
1. Enable the MPLS hop-by-hop forwarding between the R1 router and the R2 router
2. Configure the LDP label distribution between R1 and R2
3. Set the IP address on loopback interface as the router-ID of an LDP instance on LSR
4. Configure the label distribution policy on the R1 router. No label is distributed to FECs
in network segments 5.0.0.0/8 and 110.1.0.0/16

Configuration Steps
The configuration of the R1 router is as follows:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit

R1(config)#router isis
R1(config-isis-0)#area 00.0001

1-36

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R1(config-isis-0)#system-id 0001.0002.0034
R1(config-isis-0)#interface gei-0/2/0/7
R1(config-isis-0-if-gei-0/2/0/7)#ip router isis
R1(config-isis-0-if-gei-0/2/0/7)#exit
R1(config-isis-0)#interface loopback1
R1(config-isis-0-if-loopback1)#ip router isis
R1(config-isis-0-if-loopback1)#exit
R1(config-isis-0)#exit

R1(config)#mpls ldp instance 1


R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#access-fec ip-prefix for zte
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#exit
/*Configure the label distribution policy. Do not allocate labels for FEC
in the 5.0.0.0/8 and the 110.1.0.0/16 network segment*/
R1(config)#ipv4-access-list zte
R1(config-ipv4-acl)#rule 10 deny 5.0.0.0 0.255.255.255
R1(config-ipv4-acl)#rule 20 deny 110.1.0.0 0.0.255.255
R1(config-ipv4-acl)#rule 30 permit any
R1(config-ipv4-acl)#exit

The configuration of the R2 router is as follows:

R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#no shutdown
R2(config-if-gei-0/3/0/7)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit

R2(config)#router isis
R2(config-isis-0)#area 00.0002
R2(config-isis-0)#system-id 0002.0002.0035
R2(config-isis-0)#interface gei-0/3/0/7
R2(config-isis-0-if-gei-0/3/0/7)#ip router isis
R2(config-isis-0-if-gei-0/3/0/7)#exit
R2(config-isis-0)#interface loopback1
R2(config-isis-0-if-loopback1)#ip router isis
R2(config-isis-0-if-loopback1)#exit
R2(config-isis-0)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1

1-37

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R2(config-ldp-1)#interface gei-0/3/0/7
R2(config-ldp-1-if-gei-0/3/0/7)#exit
R2(config-ldp-1)#exit

Configuration Verification
Show the result on the R1 router after the policy is applied.
R1(config)#show mpls ldp bindings instance 1
1.1.1.0/32
local binding: label: 4126
remote binding: lsr: 1.1.1.35:0, label: imp-null(inuse)
remote binding: lsr: 1.1.1.39:0, label: 51
1.1.1.18/32
local binding: label: 4128
remote binding: lsr: 1.1.1.35:0, label: 10175
remote binding: lsr: 1.1.1.39:0, label: UnTag
1.1.1.31/32 (no route)
remote binding: lsr: 1.1.1.39:0, label: 54
1.1.1.34/32
local binding: label: imp-null
remote binding: lsr: 1.1.1.35:0, label: 10164
remote binding: lsr: 1.1.1.39:0, label: 49
1.1.1.35/32
local binding: label: 4101
remote binding: lsr: 1.1.1.35:0, label: imp-null(inuse)
remote binding: lsr: 1.1.1.39:0, label: 36
1.1.1.39/32
local binding: label: 4119
remote binding: lsr: 1.1.1.35:0, label: 10167
remote binding: lsr: 1.1.1.39:0, label: imp-null
60.0.2.0/24
local binding: label: 4108
remote binding: lsr: 1.1.1.35:0, label: 4143(inuse)
remote binding: lsr: 1.1.1.39:0, label: imp-null
60.0.3.0/24
local binding: label: 4109
remote binding: lsr: 1.1.1.35:0, label: 6149(inuse)
remote binding: lsr: 1.1.1.39:0, label: 60

The result shows that R1 does not distribute FECs for the 5.0.0.0/8 and 110.1.0.0/16
network segments.

1-38

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

1.6.4 Configuring an LDP Multi-Instance


Configuration Descriptions
The LDP session network is shown in Figure 1-20. The R1 router, the R2 router and the
R3 router support the MPLS. Establish a public network session between the R1 router
and the R2 router., and establish a private network session between the R1 router and the
R3 router.

Figure 1-20 LDP Multi-Instance Topology

Configuration Flow
The thought to configure an LDP multi-instance between the R2 router and the R3 router
is described below:
1. Establish an LDP public network neighbor between the R1 router and the R2 router.
2. Establish an LDP private network neighbor between the R1 router and the R3 router.

Configuration Commands
The configuration of the R1 router is as follows:
/*The following configuration is for the LDP public network*/
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.2.1.1 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 64.2.2.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit
R1(config)#router isis
R1(config-isis-0)#area 00.0001
R1(config-isis-0)#system-id 0001.0002.0034
R1(config-isis-0)#interface gei-0/2/0/7
R1(config-isis-0-if-gei-0/2/0/7)#ip router isis
R1(config-isis-0-if-gei-0/2/0/7)#exit
R1(config-isis-0)#interface loopback1
R1(config-isis-0-if-loopback1)#ip router isis
R1(config-isis-0-if-loopback1)#exit
R1(config-isis-0)#exit
R1(config)#mpls ldp instance 1

1-39

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#exit
/*The following configuration is for the LDP private network*/
R1(config)#ip vrf a
R1(config-vrf-a)#rd 1:1
R1(config-vrf-a)#address-family ipv4
R1(config-vrf-a-af-ipv4)#exit
R1(config-vrf-a)#exit
R1(config)#interface loopback2
R1(config-if-loopback2)#ip vrf forwarding a
R1(config-if-loopback2)#ip address 2.13.2.2 255.255.255.255
R1(config-if-loopback2)#exit
R1(config)#interface gei-0/2/0/2
R1(config-if-gei-0/2/0/2)#no shutdown
R1(config-if-gei-0/2/0/2)#ip vrf forwarding a
R1(config-if-gei-0/2/0/2)#ip address 64.2.1.1 255.255.255.0
R1(config-if-gei-0/2/0/2)#exit
R1(config)#router isis 1 vrf a
R1(config-isis-1)#area 00.0001
R1(config-isis-1)#system-id 1111.0002.0034
R1(config-isis-1)#interface gei-0/2/0/2
R1(config-isis-1-if-gei-0/2/0/2)#ip router isis
R1(config-isis-1-if-gei-0/2/0/2)#exit
R1(config-isis-1)#interface loopback2
R1(config-isis-1-if-loopback2)#ip router isis
R1(config-isis-1-if-loopback2)#exit
R1(config-isis-1)#exit
R1(config)#mpls ldp instance 2 vrf a
R1(config-ldp-2)#router-id loopback2
R1(config-ldp-2)#interface gei-0/2/0/2
R1(config-ldp-2-if-gei-0/2/0/2)#exit
R1(config-ldp-2)#exit

The configuration of the R2 router is as follows:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.2.1.2 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/2/0/9
R2(config-if-gei-0/2/0/9)#no shutdown
R2(config-if-gei-0/2/0/9)#ip address 64.2.2.5 255.255.255.0
R2(config-if-gei-0/2/0/9)#exit
R2(config)#router isis
R2(config-isis-0)#area 00.0002

1-40

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R2(config-isis-0)#system-id 0002.0002.0035
R2(config-isis-0)#interface gei-0/2/0/9
R2(config-isis-0-if-gei-0/2/0/9)#ip router isis
R2(config-isis-0-if-gei-0/2/0/9)#exit
R2(config-isis-0)#interface loopback1
R2(config-isis-0-if-loopbck1)#ip router isis
R2(config-isis-0-if-loopbck1)#exit
R2(config-isis-0)#exit
R2(config)#mpls ldp instance 1
R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/2/0/9
R2(config-ldp-1-if-gei-0/2/0/9)#exit
R2(config-ldp-1)#exit

The configuration of the R3 router is as follows:


R3(config)#interface loopback1
R3(config-if-loopback1)#ip address 2.10.2.2 255.255.255.255
R3(config-if-loopback1)#exit
R3(config)#interface gei-0/2/0/6
R3(config-if-gei-0/2/0/6)#no shutdown
R3(config-if-gei-0/2/0/6)#ip address 64.2.1.10 255.255.255.0
R3(config-if-gei-0/2/0/6)#exit
R3(config)#router isis
R3(config-isis-0)#area 00.0003
R3(config-isis-0)#system-id 0003.0003.0039
R3(config-isis-0)#interface gei-0/2/0/6
R3(config-isis-0-if-gei-0/2/0/6)#ip router isis
R3(config-isis-0-if-gei-0/2/0/6)#exit
R3(config-isis-0)#interface loopback1
R3(config-isis-0-if-loopbck1)#ip router isis
R3(config-isis-0-if-loopbck1)#exit
R3(config-isis-0)#exit
R3(config)#mpls ldp instance 1
R3(config-ldp-1)#router-id loopback1
R3(config-ldp-1)#interface gei-0/2/0/6
R3(config-ldp-1-if-gei-0/2/0/6)#exit
R3(config-ldp-1)#exit

Configuration Verification
Show the neighbor establishment result of the public network and the private network on
the R1 router:

R1(config)#show mpls ldp neighbor instance 1


Peer LDP Ident: 1.2.1.2:0; Local LDP Ident 1.2.1.1:0
TCP connection: 1.2.1.2.1054 - 1.2.1.1.646

1-41

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

state: Oper; Msgs sent/rcvd: 47/48; Downstream


Up Time: 00:00:30
LDP discovery sources:
gei-0/2/0/7; Src IP addr: 64.2.2.5
Addresses bound to peer LDP Ident:
1.2.1.2 64.2.2.5

If the session is in Oper status, it means that the parameters are negotiated correctly and
the public network neighbor relationship has been established with the R2 router.
R1(config)#show mpls ldp neighbor instance 1
Peer LDP Ident: 1.2.1.2:0; Local LDP Ident 1.2.1.1:0
TCP connection: 1.2.1.2.1054 - 1.2.1.1.646
state: Oper; Msgs sent/rcvd: 47/48; Downstream
Up Time: 00:00:30
LDP discovery sources:
gei-0/2/0/7; Src IP addr: 64.2.2.5
Addresses bound to peer LDP Ident:
1.2.1.2 64.2.2.5

If the session is in Oper status, it means that the parameters are negotiated correctly and
the private network neighbor relationship has been established with the R3. router

1.6.5 Establishing an LDP FRR


Configuration Descriptions
As shown in Figure 1-21, based on the L3VPN environment and the LDP FRR networking
mode for the public network, establish an MP-BGP neighbor between PEs and an MPLS
LDP neighbor between the public networks.

Figure 1-21 Establishing an LDP FRR

1-42

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Configuration Flow
1. Configure an IGP route between the PE1 router and the PE2 router for communication.
2. Configure the MP-BGP neighbor.
3. Configure the LDP neighbor.
4. Enable the FRR on the PE1 router.

Configuration Commands
Access the CE1 router through the OSPF protocol, the CE2 router through the IS-IS
protocol and the middle IPG router through the IS-IS protocol. The configuration is as
follows:
The configuration of the CE1 router is as follows:
CE1(config)#interface gei-0/2/1/1
CE1(config-if-gei-0/2/1/1)#no shutdown
CE1(config-if-gei-0/2/1/1)#ip address 40.0.0.2 255.255.255.0
CE1(config-if-gei-0/2/1/1)#exit
CE1(config)#interface loopback1
CE1(config-if-loopback1)#ip address 12.1.2.1 255.255.255.255
CE1(config-if-loopback1)#exit

CE1(config)#router ospf 1
CE1(config-ospf-1)#router-id 12.1.2.1
CE1(config-ospf-1)#network 40.0.0.0 0.0.0.255 area 16
CE1(config-ospf-1)#network 12.1.2.1 0.0.0.0 area 16
CE1(config-ospf-1)#exit

The configuration of the CE2 router is as follows:


CE2(config)#interface gei-0/2/1/1
CE2(config-if-gei-0/2/1/1)#no shutdown
CE2(config-if-gei-0/2/1/1)#ip address 60.0.0.2 255.255.255.0
CE2(config-if-gei-0/2/1/1)#exit
CE2(config)#interface loopback1
CE2(config-if-loopback1)#ip address 12.1.2.5 255.255.255.255
CE2(config-if-loopback1)#exit

CE2(config)#router isis
CE2(config-isis-0)#area 10
CE2(config-isis-0)#system-id 0000.0000.0001
CE2(config-isis-0)#interface loopback1
CE2(config-isis-0-if-loopback1)#ip router isis
CE2(config-isis-0-if-loopback1)#exit
CE2(config-isis-0)#interface gei-0/2/1/1
CE2(config-isis-0-if-gei-0/2/1/1)#ip router isis
CE2(config-isis-0-if-gei-0/2/1/1)#exit
CE2(config-isis-0)#exit

1-43

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

The configuration of the PE1 router is as follows:


PE1(config)#ip vrf zte1
PE1(config-vrf-zte1)#rd 100:1
PE1(config-vrf-zte1)#route-target import 100:1
PE1(config-vrf-zte1)#route-target export 100:1
PE1(config-vrf-zte1)#address-family ipv4
PE1(config-vrf-zte1-af-ipv4)#exit
PE1(config-vrf-zte1)#exit

PE1(config)#interface loopback1
PE1(config-if-loopback1)#ip address 1.1.1.2 255.255.255.255
PE1(config-if-loopback1)#exit
PE1(config)#interface gei-0/2/1/1
PE1(config-if-gei-0/2/1/1)#no shutdown
PE1(config-if-gei-0/2/1/1)#ip vrf forwarding zte1
PE1(config-if-gei-0/2/1/1)#ip address 40.0.0.1 255.255.255.0
PE1(config-if-gei-0/2/1/1)#exit
PE1(config)#interface gei-0/2/1/2
PE1(config-if-gei-0/2/1/2)#no shutdown
PE1(config-if-gei-0/2/1/2)#ip address 10.0.0.2 255.255.255.0
PE1(config-if-gei-0/2/1/2)#exit
PE1(config)#interface gei-0/2/1/3
PE1(config-if-gei-0/2/1/3)#no shutdown
PE1(config-if-gei-0/2/1/3)#ip address 11.0.0.2 255.255.255.0
PE1(config-if-gei-0/2/1/3)#exit

PE1(config)#mpls ldp instance 1


PE1(config-ldp-1)#router-id loopback1
PE1(config-ldp-1)#interface gei-0/2/1/2
PE1(config-ldp-1-if-gei-0/2/1/2)#exit
PE1(config-ldp-1)#interface gei-0/2/1/3
PE1(config-ldp-1-if-gei-0/2/1/3)#exit
PE1(config-ldp-1)#exit

PE1(config)#router bgp 100


PE1(config-bgp)#neighbor 1.1.1.3 remote-as 100
PE1(config-bgp)#neighbor 1.1.1.3 update-source loopback1
PE1(config-bgp)#address-family vpnv4
PE1(config-bgp-af-vpnv4)#neighbor 1.1.1.3 activate
PE1(config-bgp-af-vpnv4)#exit
PE1(config-bgp)#address-family ipv4 vrf zte1
PE1(config-bgp-af-ipv4-vrf)#redistribute ospf-int 1
PE1(config-bgp-af-ipv4-vrf)#exit
PE1(config-bgp)#exit

1-44

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

PE1(config)#router ospf 1 vrf zte1


PE1(config-ospf-1)#network 40.0.0.0 0.0.0.255 area 16
PE1(config-ospf-1)#exit

PE1(config)#router isis
PE1(config-isis-0)#area 10
PE1(config-isis-0)#system-id 0000.70d0.c200
PE1(config-isis-0)#interface gei-0/2/1/2
PE1(config-isis-0-if-gei-0/2/1/2)#ip router isis
PE1(config-isis-0-if-gei-0/2/1/2)#exit
PE1(config-isis-0)#interface gei-0/2/1/3
PE1(config-isis-0-if-gei-0/2/1/3)#ip router isis
PE1(config-isis-0-if-gei-0/2/1/3)#metric 20
PE1(config-isis-0-if-gei-0/2/1/3)#exit
PE1(config-isis-0)#fast-reroute enable
PE1(config-isis-0)#interface loopback1
PE1(config-isis-0-if-loopback1)#ip router isis
PE1(config-isis-0-if-loopback1)#exit
PE1(config-isis-0)#exit

The configuration of the PE2 router is as follows:


PE2(config)#ip vrf zte1
PE2(config-vrf-zte1)#rd 100:1
PE2(config-vrf-zte1)#route-target import 100:1
PE2(config-vrf-zte1)#route-target export 100:1
PE2(config-vrf-zte1)#address-family ipv4
PE2(config-vrf-zte1-af-ipv4)#exit
PE2(config-vrf-zte1)#exit

PE2(config)#interface loopback1
PE2(config-if-loopback1)#ip address 1.1.1.3 255.255.255.255
PE2(config-if-loopback1)#exit
PE2(config)#interface gei-0/2/1/1
PE2(config-if-gei-0/2/1/1)#no shutdown
PE2(config-if-gei-0/2/1/1)#ip vrf forwarding zte1
PE2(config-if-gei-0/2/1/1)#ip address 60.0.0.1 255.255.255.0
PE2(config-if-gei-0/2/1/1)#exit
PE2(config)#interface gei-0/2/1/2
PE2(config-if-gei-0/2/1/2)#no shutdown
PE2(config-if-gei-0/2/1/2)#ip address 15.0.0.2 255.255.255.0
PE2(config-if-gei-0/2/1/2)#exit
PE2(config)#interface gei-0/2/1/3
PE2(config-if-gei-0/2/1/3)#no shutdown
PE2(config-if-gei-0/2/1/3)#ip address 14.0.0.2 255.255.255.0

1-45

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

PE2(config-if-gei-0/2/1/3)#exit

PE2(config)#mpls ldp instance 1


PE2(config-ldp-1)#router-id loopback1
PE2(config-ldp-1)#interface gei-0/2/1/2
PE2(config-ldp-1-if-gei-0/2/1/2)#exit
PE2(config-ldp-1)#interface gei-0/2/1/3
PE2(config-ldp-1-if-gei-0/2/1/3)#exit
PE2(config-ldp-1)#exit

PE2(config)#router bgp 100


PE2(config-bgp)#neighbor 1.1.1.2 remote-as 100
PE2(config-bgp)#neighbor 1.1.1.2 update-source loopback1
PE2(config-bgp)#address-family ipv4 vrf zte1
PE2(config-bgp-af-ipv4-vrf)#redistribute isis-1-2
PE2(config-bgp-af-ipv4-vrf)#exit
PE2(config-bgp)#address-family vpnv4
PE2(config-bgp-af-vpnv4)#neighbor 1.1.1.2 activate
PE2(config-bgp-af-vpnv4)#exit
PE2(config-bgp)#exit

PE2(config)#router isis 1 vrf zte1


PE2(config-isis-1)#area 10
PE2(config-isis-1)#system-id 0000.0000.0002
PE2(config-isis-1)#interface gei-0/2/1/1
PE2(config-isis-1-if-gei-0/2/1/1)#ip router isis
PE2(config-isis-1-if-gei-0/2/1/1)#exit
PE2(config-isis-1)#exit

PE2(config)#router isis
PE2(config-isis-0)#area 10
PE2(config-isis-0)#system-id 0000.dd00.0002
PE2(config-isis-0)#interface gei-0/2/1/2
PE2(config-isis-0-if-gei-0/2/1/2)#ip router isis
PE2(config-isis-0-if-gei-0/2/1/2)#exit
PE2(config-isis-0)#interface gei-0/2/1/3
PE2(config-isis-0-if-gei-0/2/1/3)#ip router isis
PE2(config-isis-0-if-gei-0/2/1/3)#exit
PE2(config-isis-0)#interface loopback1
PE2(config-isis-0-if-loopback1)#ip router isis
PE2(config-isis-0-if-loopback1)#exit
PE2(config-isis-0)#exit

The configuration of the P1 router is as follows:


P1(config)#interface loopback1

1-46

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

P1(config-if-loopback1)#ip address 1.1.1.4 255.255.255.255


P1(config-if-loopback1)#exit
P1(config)#interface gei-0/2/1/1
P1(config-if-gei-0/2/1/1)#no shutdown
P1(config-if-gei-0/2/1/1)#ip address 10.0.0.1 255.255.255.0
P1(config-if-gei-0/2/1/1)#exit
P1(config)#interface gei-0/2/1/2
P1(config-if-gei-0/2/1/2)#no shutdown
P1(config-if-gei-0/2/1/2)#ip address 14.0.0.1 255.255.255.0
P1(config-if-gei-0/2/1/2)#exit

P1(config)#router isis
P1(config-isis-0)#area 10
P1(config-isis-0)#system-id 0000.dd00.1000
P1(config-isis-0)#interface gei-0/2/1/1
P1(config-isis-0-if-gei-0/2/1/1)#ip router isis
P1(config-isis-0-if-gei-0/2/1/1)#exit
P1(config-isis-0)#interface gei-0/2/1/2
P1(config-isis-0-if-gei-0/2/1/2)#ip router isis
P1(config-isis-0-if-gei-0/2/1/2)#exit
P1(config-isis-0)#interface loopback1
P1(config-isis-0-if-loopback1)#ip router isis
P1(config-isis-0-if-loopback1)#exit
P1(config-isis-0)#exit

P1(config)#mpls ldp instance 1


P1(config-ldp-1)#router-id loopback1
P1(config-ldp-1)#interface gei-0/2/1/1
P1(config-ldp-1-if-gei-0/2/1/1)#exit
P1(config-ldp-1)#interface gei-0/2/1/2
P1(config-ldp-1-if-gei-0/2/1/2)#exit
P1(config-ldp-1)#exit

The configuration of the P2 router is as follows:


P2(config)#interface loopback1
P2(config-if-loopback1)#ip address 1.1.1.5 255.255.255.255
P2(config-if-loopback1)#exit
P2(config)#interface gei-0/2/1/1
P2(config-if-gei-0/2/1/1)#no shutdown
P2(config-if-gei-0/2/1/1)#ip address 11.0.0.1 255.255.255.0
P2(config-if-gei-0/2/1/1)#exit
P2(config)#interface gei-0/2/1/2
P2(config-if-gei-0/2/1/2)#no shutdown
P2(config-if-gei-0/2/1/2)#ip address 15.0.0.1 255.255.255.0
P2(config-if-gei-0/2/1/2)#exit

1-47

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P2(config)#router isis
P2(config-isis-0)#area 10
P2(config-isis-0)#system-id 0000.dd00.3000
P2(config-isis-0)#interface gei-0/2/1/1
P2(config-isis-0-if-gei-0/2/1/1)#ip router isis
P2(config-isis-0-if-gei-0/2/1/1)#exit
P2(config-isis-0)#interface gei-0/2/1/2
P2(config-isis-0-if-gei-0/2/1/2)#ip router isis
P2(config-isis-0-if-gei-0/2/1/2)#exit
P2(config-isis-0)#interface loopback1
P2(config-isis-0-if-loopback1)#ip router isis
P2(config-isis-0-if-loopback1)#exit

P2(config)#mpls ldp instance 1


P2(config-ldp-1)#router-id loopback1
P2(config-ldp-1)#interface gei-0/2/1/1
P2(config-ldp-1-if-gei-0/2/1/1)#exit
P2(config-ldp-1)#interface gei-0/2/1/2
P2(config-ldp-1-if-gei-0/2/1/2)#exit
P2(config-ldp-1)#exit

Configuration Verification
Show the configuration result to see whether the FRR configuration takes effect through
the show ip forwarding backup route command.
The FRR information on the PE1 through the IS-IS protocol is as follows:
PE1#show isis fast-reroute-topology
IS-IS ipfrr paths to Level-1 routers
System id Interface Ipfrr interface Ipfrr type metric
0000.dd00.0002 gei-0/2/1/2 gei-0/2/1/3 node 30
IS-IS ipfrr paths to Level-2 routers
System id Interface Ipfrr interface Ipfrr type metric
0000.dd00.0002 gei-0/2/1/2 gei-0/2/1/3 node 30

PE1#show ip forwarding backup route


IPv4 Backup Routing Table:
status codes: *valid, >best, M:Master, S:Slave
Dest Gw Interface Owner Pri Metric M/S Status
1.1.1.3/32 10.0.0.2 gei-0/2/1/2 ISIS_LEVEL1 115 40 M I
1.1.1.3/32 11.0.0.2 gei-0/2/1/3 ISIS_LEVEL1 115 40 S U

Check the configuration result of the LDP FRR.

PE1(config)#show mpls ldp bindings 1.1.1.3 32 detail instance 1


1.1.1.3/32

1-48

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

local binding: label: 16399


advertised to:
1.1.1.4:0 1.1.1.5:0
remote binding: lsr: 1.1.1.4:0, label: 16394(inuse)
remote binding: lsr: 1.1.1.5:0, label: 16399(inuse_slv_ip)
PE1(config)#show mpls forwarding-table 1.1.1.3
Local Outgoing Prefix or Outgoing Next Hop M/S
label label Tunnel Id interface
16399 16394 1.1.1.3/32 gei-0/2/1/2 10.0.0.1 M
16399 16399 1.1.1.3/32 gei-0/2/1/3 11.0.0.1 S

Check the IBGP connection between the PE1 router and the PE2 router.

PE1#show ip bgp summary


Neighbor Ver As MsgRcvd MsgSend Up/Down(s) State
1.1.1.3 4 100 195 201 01:37:23 2

1.6.6 LDP Graceful Restart Configuration Instance


Configuration Description
As shown in Figure 1-22, three nodes R1, R2, and R3 in the network are main control
devices. These three nodes provide GR mechanism, and the communication among them
are implemented through OSPF . You need to establish a session among R1, R2, and R3.
When the main board of R2 is faulty, you need to synchronize the neighbor node thorough
the LP GR mechanism.

Figure 1-22 Network Architecture of LDP Graceful Restart Configuration Instance

Configuration Flow
1. Configure the IP address for each node, and the Loopback address for the LSR ID,
and notify the network segment and the LSR ID main route connected to each interface
and through the OSPF protocol.
2. Configure the OSPF GR function on reach node.
3. Configure MPLS LDP for each interface of the node, and then establish the LDP
neighbor.
4. Enable the LDP GR capability for each node.

1-49

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Configuration Commands
Run the following commands on R1:
R1(config)#interface gei-0/1/0/6
R1(config-if-gei-0/1/0/6)#no shutdown
R1(config-if-gei-0/1/0/6)#ip address 106.15.15.1 255.255.255.0
R1(config-if-gei-0/1/0/6)#exit
R1(config)#interface loopback10
R1(config-if-loopback10)#ip address 10.10.10.1 255.255.255.255
R1(config-if-loopback10)#exit

R1(config)#router ospf 2
R1(config-ospf-2)#router-id 10.10.10.1
R1(config-ospf-2)#network 106.15.15.0 0.0.0.255 area 0.0.0.0
R1(config-ospf-2)#network 10.10.10.1 0.0.0.0 area 0.0.0.0
R1(config-ospf-2)#nsf
R1(config-ospf-2)#exit

R1(config)#mpls ldp instance 1


R1(config-ldp-1)#interface gei-0/1/0/6
R1(config-ldp-1-if-gei-0/1/0/6)#exit
R1(config-ldp-1)#router-id loopback10
R1(config-ldp-1)#graceful-restart
R1(config-ldp-1)#end

Run the following commands on R2:


R2(config)#interface gei-0/1/0/3
R2(config-if-gei-0/1/0/3)#no shutdown
R2(config-if-gei-0/1/0/3)#ip address 103.3.3.2 255.255.255.0
R2(config-if-gei-0/1/0/3)#exit
R2(config)#interface gei-0/1/0/6
R2(config-if-gei-0/1/0/6)#no shutdown
R2(config-if-gei-0/1/0/6)#ip address 106.15.15.5 255.255.255.0
R2(config-if-gei-0/1/0/6)#exit
R2(config)#interface loopback10
R2(config-if-loopback10)#ip address 10.10.10.5 255.255.255.255
R2(config-if-loopback10)#exit

R2(config)#router ospf 2
R2(config-ospf-2)#router-id 10.10.10.5
R2(config-ospf-2)#network 103.3.3.0 0.0.0.255 area 0.0.0.0
R2(config-ospf-2)#network 106.15.15.0 0.0.0.255 area 0.0.0.0
R2(config-ospf-2)#network 10.10.10.5 0.0.0.0 area 0.0.0.0
R2(config-ospf-2)#nsf
R2(config-ospf-2)#exit

1-50

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#interface gei-0/1/0/3
R2(config-ldp-1-if-gei-0/1/0/3)#exit
R2(config-ldp-1)#interface gei-0/1/0/6
R2(config-ldp-1-if-gei-0/1/0/6)#exit
R2(config-ldp-1)#router-id loopback10
R2(config-ldp-1)#graceful-restart
R2(config-ldp-1)#end

Run the following commands on R3:


R3(config)#interface gei-0/1/0/3
R3(config-if-gei-0/1/0/3)#no shutdown
R3(config-if-gei-0/1/0/3)#ip address 103.3.3.2 255.255.255.0
R3(config-if-gei-0/1/0/3)#exit
R3(config)#interface loopback10
R3(config-if-loopback10)#ip address 10.10.10.2 255.255.255.255
R3(config-if-loopback10)#exit

R3(config)#router ospf 2
R3(config-ospf-2)#router-id 10.10.10.2
R3(config-ospf-2)#network 103.3.3.0 0.0.0.255 area 0.0.0.0
R3(config-ospf-2)#network 10.10.10.2 0.0.0.0 area 0.0.0.0
R3(config-ospf-2)#nsf
R3(config-ospf-2)#exit

R3(config)#mpls ldp instance 1


R3(config-ldp-1)#interface gei-0/1/0/3
R3(config-ldp-1-if-gei-0/1/0/3)#exit
R3(config-ldp-1)#router-id loopback10
R3(config-ldp-1)#graceful-restart
R3(config-ldp-1)#exit

Configuration Verification
Before the active/standby changeover on R2 or the LDP restart, check the transferring
table and binding information on R1, R2, and R3.

Run the following commands to check the information on R1:


R1#show mpls forwarding-table 10.10.10.2
Local Outgoing Prefix or Outgoing Next Hop M/S
label label Tunnel Id interface
16395 16388 10.10.10.2/32 gei-0/1/0/6 106.15.15.5 M

R1#show mpls ldp bindings 10.10.10.2 32 instance 1


10.10.10.2/32

1-51

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

local binding: label: 16395


remote binding: lsr: 10.10.10.5:0, label: 16388(inuse)

R1#show mpls ldp graceful-restart instance 1


LDP Graceful Restart is enabled
Neighbor Liveness Timer: 120 seconds
Max Recovery Timer: 120 seconds
Graceful Restart enabled Sessions:
Peer LDP Ident: 10.10.10.5:0,State:Oper

R1#show mpls ldp neighbor graceful-restart instance 1


Peer LDP Ident: 10.10.10.5:0; Local LDP Ident: 10.10.10.1:0
TCP connection: 10.10.10.5.6739 - 10.10.10.1.646
State: Oper; Msgs sent/rcvd: 23/127; Downstream
Up Time: 00:02:21
LDP discovery sources:
gei-0/1/0/6; Src IP addr: 106.15.15.5
Addresses bound to peer LDP Ident:
5.5.5.64 8.8.8.5 9.9.9.5 10.10.10.5
13.13.13.5 14.14.14.5 15.15.15.5 16.16.16.5
17.5.5.5 18.18.18.5 19.19.19.5 20.20.20.5
21.21.21.5 23.23.23.5 24.24.24.5 25.25.25.5
26.26.26.5 27.27.27.5 28.28.28.5 29.29.29.5
31.31.31.1 32.32.32.5 33.33.33.5 34.34.34.5
35.35.35.5 36.36.36.5 37.37.37.5 38.38.38.5
39.39.39.5 40.40.40.5 41.41.41.5 42.42.42.5
43.43.43.5 44.44.44.5 45.45.45.5 46.46.46.5
47.47.47.5 48.48.48.5 49.49.49.5 50.50.50.5
103.3.3.5 106.15.15.5
Graceful Restart enabled; Peer reconnect time (msecs): 120000

Run the following commands to check the information on R2:


R2#show mpls ldp graceful-restart instance 1
LDP Graceful Restart is enabled
Neighbor Liveness Timer: 120 seconds
Max Recovery Timer: 120 seconds
Graceful Restart enabled Sessions:
Peer LDP Ident: 10.10.10.2:0,State:Oper
Peer LDP Ident: 10.10.10.1:0,State:Oper

R2#show mpls ldp neighbor graceful-restart instance 1


Peer LDP Ident: 10.10.10.1:0; Local LDP Ident: 10.10.10.5:0
TCP connection: 10.10.10.1.646 - 10.10.10.5.6739
State: Oper; Msgs sent/rcvd: 127/22; Downstream
Up Time: 00:02:15

1-52

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

LDP discovery sources:


gei-0/1/0/6; Src IP addr: 106.15.15.1
Addresses bound to peer LDP Ident:
1.1.1.64 10.10.10.1 106.15.15.1
Graceful Restart enabled; Peer reconnect time (msecs): 120000
Peer LDP Ident: 10.10.10.2:0; Local LDP Ident: 10.10.10.5:0
TCP connection: 10.10.10.2.646 - 10.10.10.5.6738
State: Oper; Msgs sent/rcvd: 127/87; Downstream
Up Time: 00:02:15
LDP discovery sources:
gei-0/1/0/3; Src IP addr: 103.3.3.2
Addresses bound to peer LDP Ident:
2.2.2.64 10.10.10.2 90.4.2.2 101.1.1.2
103.3.3.2
Graceful Restart enabled; Peer reconnect time (msecs): 120000

Run the following commands to check the information on R3:


R3#show mpls ldp graceful-restart instance 1
LDP Graceful Restart is enabled
Neighbor Liveness Timer: 120 seconds
Max Recovery Timer: 120 seconds
Graceful Restart enabled Sessions:
Peer LDP Ident: 10.10.10.5:0,State:Oper

R3#show mpls ldp neighbor graceful-restart instance 1


Peer LDP Ident: 10.10.10.5:0; Local LDP Ident: 10.10.10.2:0
TCP connection: 10.10.10.5.6738 - 10.10.10.2.646
State: Oper; Msgs sent/rcvd: 88/127; Downstream
Up Time: 00:03:11
LDP discovery sources:
gei-0/1/0/3; Src IP addr: 103.3.3.5
Addresses bound to peer LDP Ident:
5.5.5.64 8.8.8.5 9.9.9.5 10.10.10.5
13.13.13.5 14.14.14.5 15.15.15.5 16.16.16.5
17.5.5.5 18.18.18.5 19.19.19.5 20.20.20.5
21.21.21.5 23.23.23.5 24.24.24.5 25.25.25.5
26.26.26.5 27.27.27.5 28.28.28.5 29.29.29.5
31.31.31.1 32.32.32.5 33.33.33.5 34.34.34.5
35.35.35.5 36.36.36.5 37.37.37.5 38.38.38.5
39.39.39.5 40.40.40.5 41.41.41.5 42.42.42.5
43.43.43.5 44.44.44.5 45.45.45.5 46.46.46.5
47.47.47.5 48.48.48.5 49.49.49.5 50.50.50.5
103.3.3.5 106.15.15.5
Graceful Restart enabled; Peer reconnect time (msecs): 120000

1-53

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

When R2 acting as the Restarter party performs the active/standby changeover or restarts
the LDP protocol, and R1 acting as the Helper party perceives the operations of R2, R1
will restart the GR Reconnet timer. Before the GR Reconnect timer times out,the items of
the forwarding table related to the Restarter party will be saved.
If the LDP session between the Restarter party and the Helper party is established again
before the GR Reconnect timer of the Helper party times out, the Helper party will delete
the GR Reconnect timer, and restart the GR Recovery timer.
R1 MC-0/20/0 2012-4-28 01:15:36 mpls_ldp_1:GR:
down nbr 10.10.10.5:0:: wait for reconnecting
R1 MC-0/20/0 2012-4-28 01:15:36 mpls_ldp_1:GR: GR session 10.10.10.5:0: lost
R1 MC-0/20/0 2012-4-28 01:15:36 mpls_ldp_1:GR: down neighbor 10.10.10.5:0::
reconnect timer started [120 secs]
R1 MC-0/20/0 2012-4-28 01:15:36 mpls_ldp_1:GR: GR session 10.10.10.5:0::
bindings retained
R1 MC-0/20/0 2012-4-28 01:15:56 mpls_ldp_1:GR: Received FT Sess TLV from
10.10.10.5:0 (rconn 120, rcov 120)
R1 MC-0/20/0 2012-4-28 01:15:56 mpls_ldp_1:GR: Added FT Sess TLV
(Rconn 120000, Rcov 120000) to INIT msg to 10.10.10.5:0
R1 MC-0/20/0 2012-4-28 01:15:59 mpls_ldp_1:GR: GR session 10.10.10.5:0::
established
R1 MC-0/20/0 2012-4-28 01:15:59 mpls_ldp_1:GR: ptcl_adj: 10.10.10.5:0::
reconnect timer stopped
R1 MC-0/20/0 2012-4-28 01:15:59 mpls_ldp_1:GR: GR session 10.10.10.5:0::
state change (Reconnect-Wait -> Recovering)
R1 MC-0/20/0 2012-4-28 01:15:59 mpls_ldp_1:GR: ptcl_adj: 10.10.10.5:0::
recovery timer started,120 secs
R1 MC-0/20/0 2012-4-28 01:15:59 mpls_ldp_1:GR: 10.10.10.1/-1::
refreshing stale binding from 10.10.10.5:0
R1 MC-0/20/0 2012-4-28 01:15:59 mpls_ldp_1:GR: 10.10.10.2/-1::
refreshing stale binding from 10.10.10.5:0
R1 MC-0/20/0 2012-4-28 01:15:59 mpls_ldp_1:GR: 10.10.10.5/-1::
refreshing stale binding from 10.10.10.5:0

Run the following commands to check the Graceful Restart instance on R1:
R1#show mpls ldp neighbor graceful-restart instance 1
Peer LDP Ident: 10.10.10.5:0; Local LDP Ident: 10.10.10.1:0
TCP connection: 10.10.10.5.6751 - 10.10.10.1.646
State: Oper; Msgs sent/rcvd: 22/126; Downstream
Up Time: 00:01:58
LDP discovery sources:
gei-0/1/0/6; Src IP addr: 106.15.15.5
Addresses bound to peer LDP Ident:
5.5.5.64 8.8.8.5 9.9.9.5 10.10.10.5
13.13.13.5 14.14.14.5 15.15.15.5 16.16.16.5

1-54

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

17.5.5.5 18.18.18.5 19.19.19.5 20.20.20.5


21.21.21.5 23.23.23.5 24.24.24.5 25.25.25.5
26.26.26.5 27.27.27.5 28.28.28.5 29.29.29.5
31.31.31.1 32.32.32.5 33.33.33.5 34.34.34.5
35.35.35.5 36.36.36.5 37.37.37.5 38.38.38.5
39.39.39.5 40.40.40.5 41.41.41.5 42.42.42.5
43.43.43.5 44.44.44.5 45.45.45.5 46.46.46.5
47.47.47.5 48.48.48.5 49.49.49.5 50.50.50.5
103.3.3.5 106.15.15.5
Status: recovering (2 seconds left)

Run the following commands to check the LDP label on R1:

R1#show mpls forwarding-table 10.10.10.2


Local Outgoing Prefix or Outgoing Next Hop M/S
label label Tunnel Id interface
16395 16388 10.10.10.2/32 gei-0/1/0/6 106.15.15.5 M

The above output indicates that the LDP label of Graceful Restart is not changed.
Run the following commands to check the information of the LDP label on R1:
R1#show mpls ldp bindings detail instance 1
10.10.10.2/32
local binding: label: 16395
advertised to:
10.10.10.5:0(deleting)
remote binding: lsr: 10.10.10.5:0, label: 16388(inuse)(stale)
10.10.10.5/32
local binding: label: 16388
advertised to:
10.10.10.5:0(deleting)
remote binding: lsr: 10.10.10.5:0, label: exp-null(inuse)(stale)

The above output information indicates that the Helper party marks the forwarding table
related to GR Restarter with stale.
Before the GR Recovery timer of the Helper party times out, the Helper party associates
the Restarter party to restore the items of the forwarding table, and the Restarter party
also associates the Helper party to restore the items of the forwarding table.
R1#show mpls ldp neighbor graceful-restart instance 1
Peer LDP Ident: 10.10.10.5:0; Local LDP Ident: 10.10.10.1:0
TCP connection: 10.10.10.5.6751 - 10.10.10.1.646
State: Oper; Msgs sent/rcvd: 23/126; Downstream
Up Time: 00:01:59
LDP discovery sources:
gei-0/1/0/6; Src IP addr: 106.15.15.5
Addresses bound to peer LDP Ident:
5.5.5.64 8.8.8.5 9.9.9.5 10.10.10.5

1-55

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

13.13.13.5 14.14.14.5 15.15.15.5 16.16.16.5


17.5.5.5 18.18.18.5 19.19.19.5 20.20.20.5
21.21.21.5 23.23.23.5 24.24.24.5 25.25.25.5
26.26.26.5 27.27.27.5 28.28.28.5 29.29.29.5
31.31.31.1 32.32.32.5 33.33.33.5 34.34.34.5
35.35.35.5 36.36.36.5 37.37.37.5 38.38.38.5
39.39.39.5 40.40.40.5 41.41.41.5 42.42.42.5
43.43.43.5 44.44.44.5 45.45.45.5 46.46.46.5
47.47.47.5 48.48.48.5 49.49.49.5 50.50.50.5
103.3.3.5 106.15.15.5
Graceful Restart enabled; Peer reconnect time (msecs): 120000

R1#show mpls ldp bindings 10.10.10.2 32 instance 1


10.10.10.2/32
local binding: label: 16395
remote binding: lsr: 10.10.10.5:0, label: 16388(inuse)

1.6.7 LSP Load-Sharing Configuration Example


Scenario Description
Figure 1-23 shows that OSPF is enabled between R1 and R2, and the load-sharing function
is enabled for OSPF routes.

Figure 1-23 LSP Load-Sharing Configuration Example

Configuration Flow
1. Enable the load-sharing function for the OSPF routes between R1 and R2.
2. Enable LDP on the interfaces between R1 and R2.

Configuration Commands
Run the following commands on R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
R1(config-if-loopback1)#exit

R1(config)#interface gei-0/1/1/5
R1(config-if-gei-0/1/1/5)#no shutdown

1-56

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R1(config-if-gei-0/1/1/5)#ip address 104.110.111.1 255.255.255.0


R1(config-if-gei-0/1/1/5)#exit

R1(config)#interface gei-0/3/0/1
R1(config-if-gei-0/3/0/1)#no shutdown
R1(config-if-gei-0/3/0/1)#ip address 104.115.116.1 255.255.255.0
R1(config-if-gei-0/3/0/1)#exit

R1(config)#router ospf 1
R1(config-ospf-1)#router-id 1.1.1.1
R1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0.0.0.0
R1(config-ospf-1)#network 104.110.111.0 0.0.0.255 area 0.0.0.0
R1(config-ospf-1)#network 104.115.116.0 0.0.0.255 area 0.0.0.0
R1(config-ospf-1)#maximum-paths 2
R1(config-ospf-1)#exit

R1(config)#mpls ldp instance 1


R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/1/1/5
R1(config-ldp-1-if-gei-0/1/1/5)#exit
R1(config-ldp-1)#interface gei-0/3/0/1
R1(config-ldp-1-if-gei-0/3/0/1)#exit
R1(config-ldp-1)#end

Run the following commands on R2:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.2 255.255.255.255
R2(config-if-loopback1)#exit

R2(config)#interface gei-0/1/1/5
R2(config-if-gei-0/1/1/5)#no shutdown
R2(config-if-gei-0/1/1/5)#ip address 104.110.111.2 255.255.255.0
R2(config-if-gei-0/1/1/5)#exit

R2(config)#interface gei-0/3/0/1
R2(config-if-gei-0/3/0/1)#no shutdown
R2(config-if-gei-0/3/0/1)#ip address 104.115.116.2 255.255.255.0
R2(config-if-gei-0/3/0/1)#exit

R2(config)#router ospf 1
R2(config-ospf-1)#router-id 1.1.1.2
R2(config-ospf-1)#network 1.1.1.2 0.0.0.0 area 0.0.0.0
R2(config-ospf-1)#network 104.110.111.0 0.0.0.255 area 0.0.0.0
R2(config-ospf-1)#network 104.115.116.0 0.0.0.255 area 0.0.0.0
R2(config-ospf-1)#maximum-paths 2

1-57

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R2(config-ospf-1)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/1/1/5
R2(config-ldp-1-if-gei-0/1/1/5)#exit
R2(config-ldp-1)#interface gei-0/3/0/1
R2(config-ldp-1-if-gei-0/3/0/1)#exit
R2(config-ldp-1)#end

Configuration Verification
Run the show running-config ospfv2 command to check the OSPF configuration and
LDP configuration. The execution results are displayed as follows:
R1(config)#show running-config ospfv2
!<ospfv2>
router ospf 1
maximum-paths 2
network 1.1.1.1 0.0.0.0 area 0.0.0.0
network 104.110.111.0 0.0.0.255 area 0.0.0.0
network 104.115.116.0 0.0.0.255 area 0.0.0.0
router-id 1.1.1.1
$
!</ospfv2>

R1(config)#show running-config ldp


!<LDP>
mpls ldp instance 1
interface gei-0/1/1/5
$
interface gei-0/3/0/1
$
router-id loopback1
$
!</LDP>

Run the following commands on R1 to check the statuses of the OSPF neighbor and LDP
neighbor. The execution results are displayed as follows:

R1(config)#show ip ospf neighbor


OSPF Router with ID (1.1.1.1) (Process ID 1)
Neighbor ID Pri State DeadTime Address Interface
1.1.1.2 1 FULL/DR 00:00:36 104.110.111.2 gei-0/1/1/5

R1(config)#show mpls ldp nei instance 1


Peer LDP Ident: 1.1.1.2:0; Local LDP Ident: 1.1.1.1:0

1-58

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

TCP connection: 1.1.1.2.26100 - 1.1.1.1.646


State: Oper; Msgs sent/rcvd: 91/97; Downstream
Up Time: 01:04:43
LDP discovery sources:
gei-0/3/0/1; Src IP addr: 104.115.116.2
gei-0/1/1/5; Src IP addr: 104.110.111.2
Addresses bound to peer LDP Ident:
1.1.1.2 104.115.116.2 104.110.111.2

Run the following command on R1 to check the load-sharing condition of IGP routes. The
execution results are displayed as follows:
R1(config)#show ip forwarding route 1.1.1.2
IPv4 Routing Table:
Headers: Dest: Destination, Gw: Gateway, Pri: Priority;
Codes : BROADC: Broadcast, USER-I: User-ipaddr, USER-S: User-special,
MULTIC: Multicast, USER-N: User-network, DHCP-D: DHCP-DFT,
ASBR-V: ASBR-VPN, STAT-V: Static-VRF, DHCP-S: DHCP-static,
GW-FWD: PS-BUSI, NAT64: Stateless-NAT64, LDP-A: LDP-area,
GW-UE: PS-USER, P-VRF: Per-VRF-label, TE: RSVP-TE;
status codes: *valid, >best
Dest Gw Interface Owner Pri Metric
*> 1.1.1.2/32 104.110.111.2 gei-0/1/1/5 ospf 110 1
*> 1.1.1.2/32 104.115.116.2 gei-0/3/0/1 ospf 110 1

Run the following commands on R1 to check entries in the LSP load-sharing table. The
execution results are displayed as follows:
R1(config)#show mpls forwarding-table
Local Outgoing Prefix or Outgoing Next Hop M/S
label label Tunnel Id interface
16384 Poptag 1.1.1.2/32 gei-0/1/1/5 104.110.111.2 M
16384 Poptag 1.1.1.2/32 gei-0/3/0/1 104.115.116.2 M

R1(config)#show mpls ldp binding instance 1


1.1.1.1/32
local binding: label: imp-null
remote binding: lsr: 1.1.1.2:0, label: 16386
1.1.1.2/32
local binding: label: 16384
remote binding: lsr: 1.1.1.2:0, label: imp-null(inuse:2)
12.1.1.0/24
local binding: label: imp-null
remote binding: lsr: 1.1.1.2:0, label: imp-null
17.1.1.0/24
local binding: label: imp-null
104.110.111.0/24

1-59

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

local binding: label: imp-null


remote binding: lsr: 1.1.1.2:0, label: imp-null
104.115.116.0/24
local binding: label: imp-null
remote binding: lsr: 1.1.1.2:0, label: imp-null

1.6.8 LDP BFD Configuration Example


Scenario Description
Figure 1-24 shows that a sample network topology. It is required to establish a neighbor
relationship between R1 and R2, and enable LDP BFD on the two routers.

Figure 1-24 LDP BFD Configuration Example

Configuration Flow
1. Configure an IGP route, and ensure that the loopback interfaces on R1 and R2 can
ping each other over the route.
2. Enable MPLS on the directly-connected interfaces of R1 and R2.
3. Configure the IP addresses of loopback interfaces to be LSR router-IDs.
4. Enable the LDP BFD function on R1 and R2.

Configuration Commands
Run the following commands on R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit

R1(config)#router isis 1
R1(config-isis-1)#area 00.0001
R1(config-isis-1)#system-id 0001.0002.0034
R1(config-isis-1)#interface gei-0/2/0/7
R1(config-isis-1-if-gei-0/2/0/7)#ip router isis
R1(config-isis-1-if-gei-0/2/0/7)#exit

1-60

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R1(config-isis-1)#interface loopback1
R1(config-isis-1-if-loopback1)#ip router isis
R1(config-isis-1-if-loopback1)#exit
R1(config-isis-1)#exit

R1(config)#mpls ldp instance 1 /*Configures the LDP router-id and an LDP interface*/
R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#bfd 1.1.1.35 32 interval 100 min-rx 20 multiplier 5
R1(config-ldp-1)#exit

Run the following commands on R2:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#no shutdown
R2(config-if-gei-0/3/0/7)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit

R2(config)#router isis 1
R2(config-isis-1)#area 00.0002
R2(config-isis-1)#system-id 0002.0002.0035
R2(config-isis-1)#interface gei-0/3/0/7
R2(config-isis-1-if-gei-0/3/0/7)#ip router isis
R2(config-isis-1-if-gei-0/3/0/7)#exit
R2(config-isis-1)#interface loopback1
R2(config-isis-1-if-loopbck1)#ip router isis
R2(config-isis-1-if-loopbck1)#exit
R2(config-isis-1)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/3/0/7
R2(config-ldp-1-if-gei-0/3/0/7)#exit
R2(config-ldp-1)#bfd 1.1.1.34 32 interval 100 min-rx 20 multiplier 5
R2(config-ldp-1)#exit

1-61

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Note:
In the above configuration, the goal of running the IS-IS protocol is to advertise the router-id
of each LSR (that is, the route to the loopback interface).
Because loopback interfaces are stable (unless you close interfaces manually), using
loopback interface addresses as the router-ids of LDP instances is helpful for the stability
of LDP operation.

Configuration Verification
Run the show mpls ldp neighbor detail instance 1 command on R2 to check whether
an LDP neighbor has been established. The execution results are displayed as follows:
R2(config)#show mpls ldp neighbor detail instance 1
Peer LDP Ident: 1.1.1.34:0; Local LDP Ident 1.1.1.35:0
TCP connection: 1.1.1.34.646 - 1.1.1.35.1069
state: Oper; Msgs sent/rcvd: 47/48; Downstream
Up Time: 00:00:30
LDP discovery sources:
gei-0/3/0/7; Src IP addr: 100.100.100.1
holdtime: 15000 ms, hello interval: 5000 ms
Addresses bound to peer LDP Ident:
1.1.1.34 100.100.100.1
Session holdtime: 180000 ms; KA interval: 60000 ms
LDP Peer BFD not register.
LDP dynamic capability enable:
LDP send capability:
LDP dynamic capability
LDP Typed Wildcard FEC Cap
LDP Unrecognized Noti Cap
LDP received capability:
LDP dynamic capability negotiate success
LDP Typed Wildcard FEC Cap negotiate success
LDP Unrecognized Noti Cap negotiate success

In the sample output, "state: Oper" indicates that the session status is Oper, which means
that the parameter negotiation is correct, and a neighbor relationship with R1 (1.1.1.34)
has been established.
Run the show bfd neighbor ldp brief command on R1 to check whether an LDP BFD
neighbor has been established. The execution results are displayed as follows:

R1(config)#show bfd neighbor ldp brief


PeerAddr PrefixLen LD RD Hold State
1.1.1.35 32 2050 2050 60 UP

1-62

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

100.100.100.2 0 2049 2049 500 UP

R1(config)#show bfd neighbor ldp detail


----------------------------------------------------------------------------
PeerAddr :1.1.1.35
Prefixlen:32
Local Discr:2050 Remote Discr:2050 State:UP

Holdown(ms):60 Vpnid:0 VRF Name:--


BFD Type:LDP[Active]
Instance Name:
----------------------------------------------------------------------------
Version:1 Dest UDP Port:3784 Final Bit:1
Local Diag:0 Demand Mode:0 Poll Bit:0
MinTxInt:100 MinRxInt:20 Multiplier:5
Received MinTxInt:10 Received MinRxInt:10 Received Multiplier:3
Length:24 Min Echo Interval:0

Rx Count:6393 Rx Interval (ms) min/max/avg:2 /18 /10


Tx Count:1457 Tx Interval (ms) min/max/avg:79 /79 /79
Registered Protocols:LDP LSP
Uptime:0 day(s),0 hour(s),2 minute(s)
Control Plane Rcv Phy Interface Name:gei-0/2/0/7
============================================================================
----------------------------------------------------------------------------
PeerAddr :100.100.100.2
Prefixlen:0
Local Discr:2049 Remote Discr:2049 State:UP

Holdown(ms):500 Vpnid:0 VRF Name:--


BFD Type:LDP[Passive]
Instance Name:
----------------------------------------------------------------------------
Version:1 Dest UDP Port:3784 Final Bit:1
Local Diag:0 Demand Mode:0 Poll Bit:0
MinTxInt:10 MinRxInt:10 Multiplier:3
Received MinTxInt:100 Received MinRxInt:20 Received Multiplier:5
Length:24 Min Echo Interval:0

Rx Count:1983 Rx Interval (ms) min/max/avg:0 /78 /39


Tx Count:8586 Tx Interval (ms) min/max/avg:18 /18 /18
Registered Protocols:---
Uptime:0 day(s),0 hour(s),2 minute(s)
Control Plane Rcv Phy Interface Name:gei-0/2/0/7

1-63

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

============================================================================

1.6.9 Peer BFD Configuration Example


Scenario Description
Figure 1-25 shows that an LDP neighbor relationship is established between R1 and R2.
It is required to enable the peer BFD function on the two routers.

Figure 1-25 PEER BFD Configuration Example

Configuration Flow
1. Configure an IGP route, and ensure that the loopback interfaces on R1 and R2 can
ping each other.
2. Enable MPLS on the directly-connected interfaces of R1 and R2.
3. Configure the IP addresses of loopback interfaces to be LSR router-IDs.
4. Enable the PEER BFD function.

Configuration Commands
Run the following commands on R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit

R1(config)#router isis 1
R1(config-isis-1)#area 00.0001
R1(config-isis-1)#system-id 0001.0002.0034
R1(config-isis-1)#interface gei-0/2/0/7
R1(config-isis-1-if-gei-0/2/0/7)#ip router isis
R1(config-isis-1-if-gei-0/2/0/7)#exit
R1(config-isis-1)#interface loopback1
R1(config-isis-1-if-loopback1)#ip router isis
R1(config-isis-1-if-loopback1)#exit
R1(config-isis-1)#exit

1-64

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R1(config)#mpls ldp instance 1


/*Configure the LDP router-id and an LDP interface*/
R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#peer bfd remote-routerid 1.1.1.35
R1(config-ldp-1)#exit

R1(config)#bfd
R1(config-bfd)#session 1 peer-bfd ipv4 1.1.1.34 1.1.1.35
R1(config-bfd)#exit

Run the following commands on R2:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#no shutdown
R2(config-if-gei-0/3/0/7)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit

R2(config)#router isis 1
R2(config-isis-1)#area 00.0002
R2(config-isis-1)#system-id 0002.0002.0035
R2(config-isis-1)#interface gei-0/3/0/7
R2(config-isis-1-if-gei-0/3/0/7)#ip router isis
R2(config-isis-1-if-gei-0/3/0/7)#exit
R2(config-isis-1)#interface loopback1
R2(config-isis-1-if-loopbck1)#ip router isis
R2(config-isis-1-if-loopbck1)#exit
R2(config-isis-1)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/3/0/7
R2(config-ldp-1-if-gei-0/3/0/7)#exit
R2(config-ldp-1)#peer bfd remote-routerid 1.1.1.34
R2(config-ldp-1)#exit

R2(config)#bfd
R2(config-bfd)#session 1 peer-bfd ipv4 1.1.1.35 1.1.1.34
R2(config-bfd)#exit

1-65

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Note:
In the above configuration, the goal of running the IS-IS protocol is to advertise the router-id
of each LSR (that is, the route to the loopback interface).
Because loopback interfaces are stable (unless you close interfaces manually), using
loopback interface addresses as the router-ids of LDP instances is helpful for the stability
of LDP operation.

Configuration Verification
Run the show mpls ldp neighbor detail instance 1 command on R2 to check whether
an LDP neighbor has been established. The execution results are displayed as follows:
R2(config)#show mpls ldp neighbor detail instance 1
Peer LDP Ident: 1.1.1.34:0; Local LDP Ident 1.1.1.35:0
TCP connection: 1.1.1.34.646 - 1.1.1.35.1069
state: Oper; Msgs sent/rcvd: 47/48; Downstream
Up Time: 00:00:30
LDP discovery sources:
gei-0/3/0/7; Src IP addr: 100.100.100.1
holdtime: 15000 ms, hello interval: 5000 ms
Addresses bound to peer LDP Ident:
1.1.1.34 100.100.100.1
Session holdtime: 180000 ms; KA interval: 60000 ms
LDP Peer BFD state up.
LDP dynamic capability enable:
LDP send capability:
LDP dynamic capability
LDP Typed Wildcard FEC Cap
LDP Unrecognized Noti Cap
LDP received capability:
LDP dynamic capability negotiate success
LDP Typed Wildcard FEC Cap negotiate success
LDP Unrecognized Noti Cap negotiate success

In the sample output, "state: Oper" indicates that the session status is Oper, which means
that the parameter negotiation is correct, and a neighbor relationship with R1 (1.1.1.34)
has been established.
Run the show bfd neighbors ip brief command on R1 to check whether a PEER BFD
neighbor has been established. The execution results are displayed as follows:

R1(config-ldp-1)#show bfd neighbors ip brief


LocalAddr PeerAddr LD RD Hold State Interface
1.1.1.34 1.1.1.35 2087 2085 150 UP --

1-66

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R1(config-ldp-1)#show bfd neighbors ip detail


----------------------------------------------------------------------------
LocalAddr:1.1.1.34
PeerAddr :1.1.1.35
Local Discr:2087 Remote Discr:2085 State:UP

Holdown(ms):150 Interface:---
Vpnid:0 VRF Name:---
BFD Type:MultiHop
Instance Name:1
----------------------------------------------------------------------------
Version:1 Dest UDP Port:4784 Final Bit:1
Local Diag:0 Demand Mode:0 Poll Bit:0
MinTxInt:50 MinRxInt:50 Multiplier:3
Received MinTxInt:50 Received MinRxInt:50 Received Multiplier:3
Length:24 Min Echo Interval:0
Min BFD Length:24 Max BFD Length:24

Rx Count:8746 Rx Interval (ms) min/max/avg:0 /49 /24


Tx Count:9124 Tx Interval (ms) min/max/avg:46 /46 /46
Registered Protocols:LDPINSTANCE
Uptime:0 day(s),0 hour(s),7 minute(s)
Control Plane Rcv Phy Interface Name:gei-0/2/0/7
============================================================================

1.6.10 GTSM Configuration Example


Scenario Description
Figure 1-26 shows a sample network topology for the GTSM configuration.
l In the GTSM-based non-directly-connected session configuration, it is required to set
the hop count of the session to 1 on R2. This can prevent a target session being
established between R2 and R3.
l In the GTSM-based directly-connected session configuration, it is required to
respectively configure a GTSM-based directly-connected session on R1 and R2 to
negotiate the session between the two ends.

1-67

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 1-26 GTSM Configuration Example

Configuration Flow
1. Establish a directly-connected session between R1 and R2.
2. Establish a directly-connected session between R1 and R3.
3. Establish a target session between R2 and R3.
4. On R2, set the hop count for the GTSM-based non-directly-connected session to 1.
5. On R2, configure a GTSM-based directly-connected session with R1.
6. On R1, configure a GTSM-based directly-connected session with R2.

Configuration Commands
Run the following commands on R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit
R1(config)#interface gei-0/2/0/8
R1(config-if-gei-0/2/0/8)#no shutdown
R1(config-if-gei-0/2/0/8)#ip address 200.200.200.1 255.255.255.0
R1(config-if-gei-0/2/0/8)#exit
R1(config)#router isis
R1(config-isis-0)#area 00.0001
R1(config-isis-0)#system-id 0001.0002.0034
R1(config-isis-0)#interface gei-0/2/0/7
R1(config-isis-0-if-gei-0/2/0/7)#ip router isis
R1(config-isis-0-if-gei-0/2/0/7)#exit
R1(config-isis-0)#interface gei-0/2/0/8
R1(config-isis-0-if-gei-0/2/0/8)#ip router isis
R1(config-isis-0-if-gei-0/2/0/8)#exit
R1(config-isis-0)#interface loopback1
R1(config-isis-0-if-loopback1)#ip router isis
R1(config-isis-0-if-loopback1)#exit
R1(config-isis-0)#exit

1-68

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R1(config)#mpls ldp instance 1


R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7

/*Run the following command to configure a GTSM-based directly-connected session: */


R1(config-ldp-1-if-gei-0/2/0/7)#gtsm
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#interface gei-0/2/0/8
R1(config-ldp-1-if-gei-0/2/0/8)#exit
R1(config-ldp-1)#exit

Run the following commands on R2:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#no shutdown
R2(config-if-gei-0/3/0/7)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit

R2(config)#router isis
R2(config-isis-0)#area 00.0002
R2(config-isis-0)#system-id 0002.0002.0035
R2(config-isis-0)#interface gei-0/3/0/7
R2(config-isis-0-if-gei-0/3/0/7)#ip router isis
R2(config-isis-0-if-gei-0/3/0/7)#exit
R2(config-isis-0)#interface loopback1
R2(config-isis-0-if-loopback1)#ip router isis
R2(config-isis-0-if-loopback1)#exit
R2(config-isis-0)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp)#interface gei-0/3/0/7

/*Run the following command to configure a GTSM-based directly-connected session: */


R2(config-ldp-1-if-gei-0/3/0/7)#gtsm
R2(config-ldp-1-if-gei-0/3/0/7)#exit
R2(config-ldp-1)#target-session 1.1.1.39

/*After the target session between R2 and R3 goes up,*/


/*set the GTSM hop count to 1, and configure the neighbor*/
/*address to the router-id of R3*/
R2(config-ldp-1)#gtsm target-neighbor 1.1.1.39 hop-count 1
R2(config-ldp-1)#exit

1-69

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Run the following commands on R3:


R3(config)#interface loopback1
R3(config-if-loopback1)#ip address 1.1.1.39 255.255.255.255
R3(config-if-loopback1)#exit
R3(config)#interface gei-0/3/0/7
R3(config-if-gei-0/3/0/7)#no shutdown
R3(config-if-gei-0/3/0/7)#ip address 200.200.200.2 255.255.255.0
R3(config-if-gei-0/3/0/7)#exit

R3(config)#router isis
R3(config-isis-0)#area 00.0003
R3(config-isis-0)#system-id 0003.0003.0039
R3(config-isis-0)#interface gei-0/3/0/7
R3(config-isis-0-if-gei-0/3/0/7)#ip router isis
R3(config-isis-0-if-gei-0/3/0/7)#exit
R3(config-isis-0)#interface loopback1
R3(config-isis-0-if-loopback1)#ip router isis
R3(config-isis-0-if-loopback1)#exit
R3(config-isis-0)#exit

R3(config)#mpls ldp instance 1


R3(config-ldp-1)#router-id loopback1
R3(config-ldp-1)#interface gei-0/3/0/7
R3(config-ldp-1-if-gei-0/3/0/7)#exit
R3(config-ldp-1)#target-session 1.1.1.35
R3(config-ldp-1)#exit

Configuration Verification
Run the show mpls ldp neighbor command on R2 to check whether a neighbor has been
established (performed after the GTSM configuration and before the session times out):

R2(config)#show mpls ldp neighbor instance 1


Peer LDP Ident: 1.1.1.39:0; Local LDP Ident 1.1.1.35:0
TCP connection: 1.1.1.39.1072 - 1.1.1.39.646
state: Oper; Msgs sent/rcvd: 50/46; Downstream
Up Time: 00:00:02
LDP discovery sources:
Targeted Hello (1.1.1.39); Src IP addr: 1.1.1.39
Addresses bound to peer LDP Ident:
1.1.1.39 100.100.100.2 200.200.200.2
LDP neighbor may be up to 1 hops away

Because the hop count for the GTSM-based non-directly-connected session is set to 1,
and the hop count between R2 and R3 is 2, R2 cannot received the packets from R3,

1-70

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

which causes the session to go down. After the GTSM configuration is deleted, the session
comes up again.
Run the show mpls ldp neighbor command on R1 to check whether a neighbor has been
established.
R1(config)#show mpls ldp neighbor instance 1
Peer LDP Ident: 1.1.1.35:0; Local LDP Ident 1.1.1.34:0
TCP connection: 1.1.1.35.646 - 1.1.1.34.1072
state: Oper; Msgs sent/rcvd: 46/50; Downstream
Up Time: 00:00:02
LDP discovery sources:
gei-0/2/0/7; Src IP addr: 100.100.100.2
Addresses bound to peer LDP Ident:
1.1.1.35 100.100.100.2
LDP neighbor may be up to 1 hops away

It can be seen that the negotiation for the GTSM-based directly-connected session
between R1 and R2 is successful.

1.6.11 LDP IGP Synchronization Configuration Example (OSPF)


Scenario Description
Figure 1-27 shows a sample network topology. It is required to enable LDP IGP
synchronization on the two OSPF interfaces of R1.

Figure 1-27 LDP IGP Synchronization Configuration Example (OSPF)

Configuration Flow
1. Establish a directly-connected session between R1 and R2.
2. Configure an OSPF instance on R1, and enable LDP IGP synchronization for the
OSPF instance.
3. On R1, set the timeout of the delay timer for LDP IGP synchronization to 10 seconds.

Configuration Commands
Run the following commands on R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 111.111.111.111 255.255.255.255
R1(config-if-loopback1)#exit

1-71

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R1(config)#interface gei-0/1/0/3
R1(config-if-gei-0/1/0/3)#ip address 20.20.20.100 255.255.255.0
R1(config-if-gei-0/1/0/3)#no shutdown
R1(config-if-gei-0/1/0/3)#exit
R1(config)#interface gei-0/1/0/4
R1(config-if-gei-0/1/0/4)#ip address 40.40.40.100 255.255.255.0
R1(config-if-gei-0/1/0/4)#no shutdown
R1(config-if-gei-0/1/0/4)#exit

R1(config)#router ospf 1
R1(config-ospf-1)#mpls ldp sync
R1(config-ospf-1)#network 0.0.0.0 255.255.255.255 area 0.0.0.0
R1(config-ospf-1)#exit

R1(config)#mpls ldp instance 1


R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/1/0/3
R1(config-ldp-1)#interface gei-0/1/0/4
R1(config-ldp-1)#igp sync delay 10

Run the following commands on R2:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 121.121.121.121 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/1/0/3
R2(config-if-gei-0/1/0/3)#ip address 20.20.20.200 255.255.255.0
R2(config-if-gei-0/1/0/3)#no shutdown
R2(config-if-gei-0/1/0/3)#exit
R2(config)#interface gei-0/1/0/4
R2(config-if-gei-0/1/0/4)#ip address 40.40.40.200 255.255.255.0
R2(config-if-gei-0/1/0/4)#no shutdown
R2(config-if-gei-0/1/0/4)#exit

R2(config)#router ospf 1
R2(config-ospf-1)#network 0.0.0.0 255.255.255.255 area 0.0.0.0
R2(config-ospf-1)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/1/0/3
R2(config-ldp-1)#interface gei-0/1/0/4

1-72

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Configuration Verification
Run the show mpls ldp neighbor command to check whether a neighbor has been
established. The execution results are displayed as follows:
Peer LDP Ident: 121.121.121.121:0; Local LDP Ident: 111.111.111.111:0
TCP connection: 121.121.121.121.26459 - 111.111.111.111.646
State: Oper; Msgs sent/rcvd: 47/64; Downstream
Up Time: 00:29:46
LDP discovery sources:
gei-0/1/0/3; Src IP addr: 20.20.20.200
gei-0/1/0/4; Src IP addr: 40.40.40.200
Addresses bound to peer LDP Ident:
20.20.20.200 40.40.40.200 121.121.121.121

It can be seen that the session is maintained by sending hello messages from the two
interfaces.
Run the show mpls ldp igp sync ins 1 command on R1 to check the information and status
of LDP IGP synchronization.
gei-0/1/0/3:
LDP configured; LDP-IGP Synchronization enabled.
Sync status: Ready
Peers:
121.121.121.121:0 (Fully Operational)

gei-0/1/0/4:
LDP configured; LDP-IGP Synchronization enabled.
Sync status: Ready
Peers:
121.121.121.121:0 (Fully Operational)

Run the show ip ospf interface command on R1 to check the information and status of LDP
IGP synchronization for OSPF interfaces.
OSPF Router with ID (20.20.20.100) (Process ID 1)

gei-0/1/0/4 is up
Track State is unknown
Internet Address 40.40.40.100 255.255.255.0 enable
Up for 01:00:28
In the area 0.0.0.0 DR
Cost 1, Priority 1, Network Type broadcast
Transmit Delay(sec) 1, Authentication Type null
TTL security disabled
LDP sync enabled
LDP sync state achieved
Sending max metric

1-73

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Timer intervals(sec) : Hello 10, Dead 40, Retransmit 5


Designated Router (ID) 20.20.20.100, Interface address 40.40.40.100
Backup Designated router (ID) 22.22.22.22, Interface address 40.40.40.200
Number of Neighbors 1, Number of Adjacent neighbors 1
22.22.22.22 BDR

Run the shutdown command on the gei-0/1/0/4 interface of R2, and check the status of
OSPF IGP synchronization and metric of the OSPF route.
Run the show mpls ldp igp sync ins 1 command on R1 to check the information and status
of LDP IGP synchronization. It can be seen that the status of LDP IGP synchronization for
the gei-0/1/0/4 interface changes to Not ready.
gei-0/1/0/3:
LDP configured; LDP-IGP Synchronization enabled.
Sync status: Ready
Peers:
121.121.121.121:0 (Fully Operational)

gei-0/1/0/4:
LDP configured; LDP-IGP Synchronization enabled.
Sync status: Not ready
Peers:

Run the show ip ospf interface command on R1 to check the information and status of LDP
IGP synchronization for the OSPF interfaces. It can be seen that the status of LDP IGP
synchronization for the gei-0/1/0/4 interface is not achieved.
OSPF Router with ID (20.20.20.100) (Process ID 1)

gei-0/1/0/4 is up
Track State is unknown
Internet Address 40.40.40.100 255.255.255.0 enable
Up for 01:37:22
In the area 0.0.0.0 DR
Cost 1, Priority 1, Network Type broadcast
Transmit Delay(sec) 1, Authentication Type null
TTL security disabled
LDP sync enabled
LDP sync state unachieved
Sending max metric
Timer intervals(sec) : Hello 10, Dead 40, Retransmit 5
Designated Router (ID) 20.20.20.100, Interface address 40.40.40.100
Backup Designated router (ID) 22.22.22.22, Interface address 40.40.40.200
Number of Neighbors 1, Number of Adjacent neighbors 1
22.22.22.22 BDR

1-74

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

1.6.12 LDP IGP Synchronization Configuration Example (IS-IS)


Scenario Description
Figure 1-28 shows a sample network topology. It is required to enable LDP IGP
synchronization on the two IS-IS interfaces of R1.

Figure 1-28 LDP IGP Synchronization Configuration Example (IS-IS)

Configuration Flow
1. Establish a directly-connected session between R1 and R2.
2. Configure an IS-IS instance on R1, and enable LDP IGP synchronization for the IS-IS
instance.
3. On R1, set the timeout of the delay timer for LDP IGP synchronization to 10 seconds.

Configuration Commands
Run the following commands on R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 111.111.111.111 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/1/0/3
R1(config-if-gei-0/1/0/3)# ip address 20.20.20.100 255.255.255.0
R1(config-if-gei-0/1/0/3)# no shutdown
R1(config-if-gei-0/1/0/3)#exit
R1(config)#interface gei-0/1/0/4
R1(config-if-gei-0/1/0/4)# ip address 40.40.40.100 255.255.255.0
R1(config-if-gei-0/1/0/4)# no shutdown
R1(config-if-gei-0/1/0/4)#exit

R1(config)#router isis
R1(config-isis-0)#area 00.0001
R1(config-isis-0)#system-id 0001.0002.0034
R1(config-isis-0)#mpls ldp sync
R1(config-isis-0)#interface gei-0/1/0/3
R1(config-isis-0-if-gei-0/1/0/3)#ip router isis
R1(config-isis-0-if-gei-0/1/0/3)#exit
R1(config-isis-0)#interface gei-0/1/0/4
R1(config-isis-0-if-gei-0/1/0/4)#ip router isis

1-75

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R1(config-isis-0-if-gei-0/1/0/4)#exit
R1(config-isis-0)#interface loopback1
R1(config-isis-0-if-loopback1)#ip router isis
R1(config-isis-0-if-loopback1)#exit
R1(config-isis-0)#exit

R1(config)#mpls ldp instance 1


R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/1/0/3
R1(config-ldp-1)#interface gei-0/1/0/4
R1(config-ldp-1)#igp sync delay 10

Run the following commands on R2:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 121.121.121.121 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/1/0/3
R2(config-if-gei-0/1/0/3)# ip address 20.20.20.200 255.255.255.0
R2(config-if-gei-0/1/0/3)# no shutdown
R2(config-if-gei-0/1/0/3)#exit
R2(config)#interface gei-0/1/0/4
R2(config-if-gei-0/1/0/4)# ip address 40.40.40.200 255.255.255.0
R2(config-if-gei-0/1/0/4)# no shutdown
R2(config-if-gei-0/1/0/4)#exit

R2(config)#router isis
R2(config-isis-0)#area 00.0002
R2(config-isis-0)#system-id 0002.0002.0035
R2(config-isis-0)#mpls ldp sync
R2(config-isis-0)#interface gei-0/1/0/3
R2(config-isis-0-if-gei-0/1/0/3)#ip router isis
R2(config-isis-0-if-gei-0/1/0/3)#exit
R2(config-isis-0)#interface gei-0/1/0/4
R2(config-isis-0-if-gei-0/1/0/4)#ip router isis
R2(config-isis-0-if-gei-0/1/0/4)#exit
R2(config-isis-0)#interface loopback1
R2(config-isis-0-if-loopbck1)#ip router isis
R2(config-isis-0-if-loopbck1)#exit
R2(config-isis-0)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/1/0/3
R2(config-ldp-1)#interface gei-0/1/0/4

1-76

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Configuration Verification
Run the show mpls ldp neighbor command to check whether a neighbor has been
established. The execution results are displayed as follows:
Peer LDP Ident: 121.121.121.121:0; Local LDP Ident: 111.111.111.111:0
TCP connection: 121.121.121.121.26469 - 111.111.111.111.646
State: Oper; Msgs sent/rcvd: 22/21; Downstream
Up Time: 00:14:03
LDP discovery sources:
gei-0/1/0/3; Src IP addr: 20.20.20.200
gei-0/1/0/4; Src IP addr: 40.40.40.200
Addresses bound to peer LDP Ident:
20.20.20.200 40.40.40.200 121.121.121.121

It can be seen that the session is maintained by sending hello messages from the two
interfaces.
Run the show mpls ldp igp sync ins 1 command on R1 to check the information and status
of LDP IGP synchronization.
gei-0/1/0/3:
LDP configured; LDP-IGP Synchronization enabled.
Sync status: Ready
Peers:
121.121.121.121:0 (Fully Operational)

gei-0/1/0/4:
LDP configured; LDP-IGP Synchronization enabled.
Sync status: Ready
Peers:
121.121.121.121:0 (Fully Operational)

Run the show isis circuits detail command to check the information and status of LDP IGP
synchronization for the IS-IS interfaces of R1. It can be seen that the status has changed
to "Achieved".
ZXCTN(config-isis-0)#show isis circuits detail
Process ID: 0
Interface:gei-0/1/0/3
Status:Up
Track Status:Unknown
Encapsulation:SAP
Circuit Type:Level-1-2
MPLS LDP Sync(L1/L2): Enable/Enable, Sync Status(L1/L2): Achieved/Achieved
Level-1 Metric:10 Priority:64 LAN ID:no found
Number of active adjacencies:0
Next hello in seconds:3
Level-2 Metric:10 Priority:64 LAN ID:ZXCTN.02

1-77

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Number of active adjacencies:1


Next hello in seconds:3

Interface:gei-0/1/0/4
Status:Up
Track Status:Unknown
Encapsulation:SAP
Circuit Type:Level-1-2
MPLS LDP Sync(L1/L2): Enable/Enable, Sync Status(L1/L2): Achieved/Achieved
Level-1 Metric:10 Priority:64 LAN ID:no found
Number of active adjacencies:0
Next hello in seconds:8
Level-2 Metric:10 Priority:64 LAN ID:ZXCTN.03
Number of active adjacencies:1
Next hello in seconds:8

Interface:loopback11
Status:Up
Track Status:Unknown
Encapsulation:SAP
Circuit Type:Level-1-2
MPLS LDP Sync(L1/L2): Enable/Enable, Sync Status(L1/L2): Unknown/Unknown
Level-1 Metric:10 Level-2 Metric:10 Circuit ID:ZXCTN.00
Active Adj state:No adjacency
Next hello in seconds:0

Run the shutdown command on the gei-0/1/0/4 interface of R2, and check the status of
IS-IS IGP synchronization and the metric of the IS-IS route.
Run the show mpls ldp igp sync ins 1 command on R1 to check the information and status
of LDP IGP synchronization. It can be seen that the status of LDP IGP synchronization for
the gei-0/1/0/4 interface changes to "Not ready".
gei-0/1/0/3:
LDP configured; LDP-IGP Synchronization enabled.
Sync status: Ready
Peers:
121.121.121.121:0 (Fully Operational)

gei-0/1/0/4:
LDP configured; LDP-IGP Synchronization enabled.
Sync status: Not ready
Peers:

Run the show isis circuits detail command on R1 to check the information and status of
LDP IGP synchronization for the IS-IS interfaces of R1. It can be seen that the status of
LDP IGP synchronization for the gei-0/1/0/4 interface is "unachieved".

1-78

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Process ID: 0
Interface:gei-0/1/0/3
Status:Up
Track Status:Unknown
Encapsulation:SAP
Circuit Type:Level-1-2
MPLS LDP Sync(L1/L2): Enable/Enable, Sync Status(L1/L2): Achieved/Achieved
Level-1 Metric:10 Priority:64 LAN ID:no found
Number of active adjacencies:0
Next hello in seconds:7
Level-2 Metric:10 Priority:64 LAN ID:ZXCTN.02
Number of active adjacencies:1
Next hello in seconds:7

Interface:gei-0/1/0/4
Status:Up
Track Status:Unknown
Encapsulation:SAP
Circuit Type:Level-1-2
MPLS LDP Sync(L1/L2): Enable/Enable, Sync Status(L1/L2): UnAchieved/UnAchieved
Level-1 Metric:63 Priority:64 LAN ID:no found
Number of active adjacencies:0
Next hello in seconds:2
Level-2 Metric:63 Priority:64 LAN ID:no found
Number of active adjacencies:0
Next hello in seconds:2

Interface:loopback11
Status:Up
Track Status:Unknown
Encapsulation:SAP
Circuit Type:Level-1-2
MPLS LDP Sync(L1/L2): Enable/Enable, Sync Status(L1/L2): Unknown/Unknown
Level-1 Metric:10 Level-2 Metric:10 Circuit ID:ZXCTN.00
Active Adj state:No adjacency
Next hello in seconds:0

1.6.13 Instance with LDP IGP Synchronization Integrated with FRR


Scenario Description
Figure 1-29 shows a sample network topology. Configure LDP IGP synchronization
and the FRR on R1 and LDP IGP synchronization on R2. You can check the LDP IGP
synchronization and FRR operation result on R1 through a series of operations.

1-79

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 1-29 Network Diagram for LDP IGP Synchronization Integrated with FRR

Configuration Flow
1. Configure the IS-IS routing protocol on R1 and enable the FRR and LDP IGP
synchronization function.
2. Configure the MPLS LDP protocol on R1.
3. Configure the IS-IS routing protocol on R2 and enable the LDP IGP synchronization
function.
4. Configure the MPLS LDP protocol on R2.

Configuration Commands
Run the following commands on R1:
R1(config)#interface xgei-0/2/0/3
R1(config-if-xgei-0/2/0/3)#ip address 103.2.0.73 255.255.255.0
R1(config-if-xgei-0/2/0/3)#exit
R1(config)#interface xgei-0/2/0/4
R1(config-if-xgei-0/2/0/4)#ip address 104.2.0.73 255.255.255.0
R1(config-if-xgei-0/2/0/4)#exit
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 3.73.3.73 255.255.255.255
R1(config-if-loopback1)#exit

R1(config)#router isis
R1(config-isis-0)#interface xgei-0/2/0/3
R1(config-isis-0-if-xgei-0/2/0/3)#ip router isis
R1(config-isis-0-if-xgei-0/2/0/3)#metric 30
R1(config-isis-0-if-xgei-0/2/0/3)#exit
R1(config-isis-0)#interface xgei-0/2/0/4
R1(config-isis-0-if-xgei-0/2/0/4)#ip router isis
R1(config-isis-0-if-xgei-0/2/0/4)#metric 20
R1(config-isis-0-if-xgei-0/2/0/4)#exit
R1(config-isis-0)#fast-reroute enable
R1(config-isis-0)#mpls ldp sync
R1(config-isis-0)#exit

R1(config)#mpls ldp instance 1


R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface xgei-0/2/0/3

1-80

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R1(config-ldp-1-if-xgei-0/2/0/3)#exit
R1(config-ldp-1)#interface xgei-0/2/0/4
R1(config-ldp-1-if-xgei-0/2/0/4)#exit
R1(config-ldp-1)#exit

Run the following commands on R2:


R2(config)#interface xgei-0/3/0/3
R2(config-if-xgei-0/3/0/3)#ip address 103.2.0.72 255.255.255.0
R2(config-if-xgei-0/3/0/3)#exit
R2(config)#interface xgei-0/2/0/17
R2(config-if-xgei-0/2/0/17)# ip address 104.2.0.72 255.255.255.0
R2(config-if-xgei-0/2/0/17)#exit
R2(config-if-loopback1)#ip address 3.72.3.72 255.255.255.255
R2(config-if-loopback1)#exit

R2(config)#router isis
R2(config-isis-0)#interface xgei-0/3/0/3
R2(config-isis-0-if-xgei-0/3/0/3)#ip router isis
R2(config-isis-0-if-xgei-0/3/0/3)#exit
R2(config-isis-0)#interface xgei-0/2/0/17
R2(config-isis-0-if-xgei-0/2/0/17)#ip router isis
R2(config-isis-0-if-xgei-0/2/0/17)#exit
R2(config-isis-0)#mpls ldp sync
R2(config-isis-0)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface xgei-0/3/0/3
R2(config-ldp-1-if-xgei-0/3/0/3)#exit
R2(config-ldp-1)#interface xgei-0/2/0/17
R2(config-ldp-1-if-xgei-0/2/0/17)#exit
R2(config-ldp-1)#exit

Configuration Verification
1. Run the show ip forwarding backup route command to check the LDP FRR table items
on R1. The execution result is displayed as follows:
R1#show ip forwarding backup route
IPv4 Routing Table:
Headers: Dest: Destination, Gw: Gateway, Pri: Priority, M/S: Master/Slave,
Sta: Status;
Codes : BROADC: Broadcast, USER-I: User-ipaddr, USER-S: User-special,
MULTIC: Multicast, USER-N: User-network, DHCP-D: DHCP-DFT,
ASBR-V: ASBR-VPN, STAT-V: Static-VRF, DHCP-S: DHCP-static,
GW-FWD: PS-BUSI, NAT64: Stateless-NAT64, LDP-A: LDP-area,
GW-UE: PS-USER, P-VRF: Per-VRF-label, TE: RSVP-TE;

1-81

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Status codes: *valid, >best, M: Master, S: Slave, I: Inuse, U: Unuse;


Dest Gw Interface Owner Pri Metric M/S Sta
*> 3.72.3.72/32 104.2.0.72 xgei-0/2/0/4 ISIS-L1 115 30 M I

* 3.72.3.72/32 103.2.0.72 xgei-0/2/0/3 ISIS-L1 115 40 S U

*> 110.1.3.0/24 104.2.0.72 xgei-0/2/0/4 ISIS-L2 115 20 M I

* 110.1.3.0/24 103.2.0.72 xgei-0/2/0/3 ISIS-L2 115 30 S U

*> 149.0.72.0/24 104.2.0.72 xgei-0/2/0/4 ISIS-L2 115 20 M I

* 149.0.72.0/24 103.2.0.72 xgei-0/2/0/3 ISIS-L2 115 30 S U


2. After the active link interface xgei-0/2/0/4 is shutdown on R1, run the show ip forwardi
ng backup route command to check the LDP FRR table items. The execution result is
displayed as follows:
R1#show ip forwarding backup route
IPv4 Routing Table:
Headers: Dest: Destination, Gw: Gateway, Pri: Priority, M/S: Master/Slave,
Sta: Status;
Codes : BROADC: Broadcast, USER-I: User-ipaddr, USER-S: User-special,
MULTIC: Multicast, USER-N: User-network, DHCP-D: DHCP-DFT,
ASBR-V: ASBR-VPN, STAT-V: Static-VRF, DHCP-S: DHCP-static,
GW-FWD: PS-BUSI, NAT64: Stateless-NAT64, LDP-A: LDP-area,
GW-UE: PS-USER, P-VRF: Per-VRF-label, TE: RSVP-TE;
Status codes: *valid, >best, M: Master, S: Slave, I: Inuse, U: Unuse;
Dest Gw Interface Owner Pri Metric M/S Sta

This item is null.


3. After the no shutdown command is performed on the active link interface xgei-0/2/0/4
on R1, the active link is restored but the LDP concentration is not completed, set the
IGP metric to the maximum number. The execution result is displayed as follows:
R1#show isis circuits detail
Process ID: 0
Interface:xgei-0/2/0/3
Status:Up
Track Status:Unknown
Encapsulation:SAP
ISIS MTU:1583
Circuit Type:Level-1-2
MPLS LDP Sync(L1/L2): Enable/Enable, Sync Status(L1/L2): Achieved/Achieved
Level-1 Metric:30 Priority:64 LAN ID:3.73.02
Number of active adjacencies:1
Level-2 Metric:30 Priority:64 LAN ID:3.73.02
Number of active adjacencies:1

1-82

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Interface:xgei-0/2/0/4
Status:Up
Track Status:Unknown
Encapsulation:SAP
ISIS MTU:1583
Circuit Type:Level-1-2
MPLS LDP Sync(L1/L2): Enable/Enable, Sync Status(L1/L2): UnAchieved/UnAchieved
Level-1 Metric:16777214 Priority:64 LAN ID:3.73.04
Number of active adjacencies:1
Level-2 Metric:16777214 Priority:64 LAN ID:3.73.04
Number of active adjacencies:1

4. Run the show isis topology command to check the route topology on R1. The execution
result is displayed as follows:
R1(config)#show isis topology
Process ID: 0
IS-IS paths to Level-1 routers
System id Metric Next-Hop Interface SNPA
R2 30 R2 xgei-0/2/0/3 00D0.0372.1000
R1 --
R3 60 R2 xgei-0/2/0/3 00D0.0372.1000
IS-IS paths to Level-2 routers
System id Metric Next-Hop Interface SNPA
R2 30 R2 xgei-0/2/0/3 00D0.0372.1000
R1 --
R3 60 R2 xgei-0/2/0/3 00D0.0372.1000

5. After the LDP concentration is completed, the IGP metric on R1 becomes a normal
value, when concentration of LDP and IGP is completed. The execution result is
displayed as follows:
R1#show isis circuits detail
Process ID: 0
Interface:xgei-0/2/0/3
Status:Up
Track Status:Unknown
Encapsulation:SAP
ISIS MTU:1583
Circuit Type:Level-1-2
MPLS LDP Sync(L1/L2): Enable/Enable, Sync Status(L1/L2): Achieved/Achieved
Level-1 Metric:30 Priority:64 LAN ID:3.73.02
Number of active adjacencies:1
Level-2 Metric:30 Priority:64 LAN ID:3.73.02
Number of active adjacencies:1

1-83

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Interface:xgei-0/2/0/4
Status:Up
Track Status:Unknown
Encapsulation:SAP
ISIS MTU:1583
Circuit Type:Level-1-2
MPLS LDP Sync(L1/L2): Enable/Enable, Sync Status(L1/L2): Achieved/Achieved
Level-1 Metric:20 Priority:64 LAN ID:3.73.04
Number of active adjacencies:1
Level-2 Metric:20 Priority:64 LAN ID:3.73.04
Number of active adjacencies:1

6. Run the show isis topology command on R1 to check the route topology. The execution
result is displayed as follows:
R1#show isis topology
Process ID: 0
IS-IS paths to Level-1 routers
System id Metric Next-Hop Interface SNPA
R2 20 R2 xgei-0/2/0/4 00D0.0372.1000
R1 --
R3 50 R2 xgei-0/2/0/4 00D0.0372.1000
IS-IS paths to Level-2 routers
System id Metric Next-Hop Interface SNPA
R2 20 R2 xgei-0/2/0/4 00D0.0372.1000
R1 --
R3 50 R2 xgei-0/2/0/4 00D0.0372.1000

7. Run the show ip forwarding backup route command to check the route forwarding table
on R1. The execution result is displayed as follows:
R1(config)#show ip forwarding backup route
IPv4 Routing Table:
Headers: Dest: Destination, Gw: Gateway, Pri: Priority, M/S: Master/Slave,
Sta: Status;
Codes : BROADC: Broadcast, USER-I: User-ipaddr, USER-S: User-special,
MULTIC: Multicast, USER-N: User-network, DHCP-D: DHCP-DFT,
ASBR-V: ASBR-VPN, STAT-V: Static-VRF, DHCP-S: DHCP-static,
GW-FWD: PS-BUSI, NAT64: Stateless-NAT64, LDP-A: LDP-area,
GW-UE: PS-USER, P-VRF: Per-VRF-label, TE: RSVP-TE;
Status codes: *valid, >best, M: Master, S: Slave, I: Inuse, U: Unuse;
Dest Gw Interface Owner Pri Metric M/S Sta
*> 3.72.3.72/32 104.2.0.72 xgei-0/2/0/4 ISIS-L1 115 30 M I

* 3.72.3.72/32 103.2.0.72 xgei-0/2/0/3 ISIS-L1 115 40 S U

*> 110.1.3.0/24 104.2.0.72 xgei-0/2/0/4 ISIS-L2 115 20 M I

1-84

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

* 110.1.3.0/24 103.2.0.72 xgei-0/2/0/3 ISIS-L2 115 30 S U

*> 149.0.72.0/24 104.2.0.72 xgei-0/2/0/4 ISIS-L2 115 20 M I

* 149.0.72.0/24 103.2.0.72 xgei-0/2/0/3 ISIS-L2 115 30 S U

1.6.14 Packet Filtration Configuration Example


Scenario Description
Figure 1-30 shows a sample network topology. It is required to establish an LDP neighbor
between R1 and R2 and enable packet filtration on R1.

Figure 1-30 Packet Filtration Configuration Example

Configuration Flow
1. Configure an IGP route, and ensure that the loopback interfaces on R1 and R2 can
ping each other.
2. Enable MPLS on the directly-connected interfaces of R1 and R2.
3. Set the IP addresses of loopback interfaces to LSR router-IDs.
4. Configure an ACL on R1.
5. Enable packet filtration on R1.

Configuration Commands
Run the following commands on R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit

R1(config)#router isis 1
R1(config-isis-1)#area 00.0001
R1(config-isis-1)#system-id 0001.0002.0034

1-85

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R1(config-isis-1)#interface gei-0/2/0/7
R1(config-isis-1-if-gei-0/2/0/7)#ip router isis
R1(config-isis-1-if-gei-0/2/0/7)#exit
R1(config-isis-1)#interface loopback1
R1(config-isis-1-if-loopback1)#ip router isis
R1(config-isis-1-if-loopback1)#exit
R1(config-isis-1)#exit

R1(config)#mpls ldp instance 1


/*Run the following commands to configure the LDP router-id and an LDP interface*/
R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#exit

R1(config)#ipv4-access-list 1
R1(config-ipv4-acl)#rule 1 deny tcp 1.1.1.35 0.0.0.0 any
R1(config-ipv4-acl)#rule 2 deny udp 100.100.100.2 0.0.0.0 any
R1(config-ipv4-acl)#rule 3 permit any

R1(config)#mpls ldp instance 1


R1(config-ldp-1)#filter packet for 1

Run the following commands on R2:

R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#no shutdown
R2(config-if-gei-0/3/0/7)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit

R2(config)#router isis
R2(config-isis-1)#area 00.0002
R2(config-isis-1)#system-id 0002.0002.0035
R2(config-isis-1)#interface gei-0/3/0/7
R2(config-isis-1-if-gei-0/3/0/7)#ip router isis
R2(config-isis-1-if-gei-0/3/0/7)#exit
R2(config-isis-1)#interface loopback1
R2(config-isis-1-if-loopbck1)#ip router isis
R2(config-isis-1-if-loopbck1)#exit
R2(config-isis-1)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1

1-86

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R2(config-ldp-1)#interface gei-0/3/0/7
R2(config-ldp-1-if-gei-0/3/0/7)#exit
R2(config-ldp-1)#exit

Note:
l In the above configuration, the goal of running the IS-IS protocol is to advertise the
router-id of each LSR (that is, the route to the loopback interface).
l Through the ACL rule, packet filtration can take effect for UDP or TCP packets only.

Configuration Verification
Run the show mpls ldp neighbor detail instance 1 command on R2 to check whether
an LDP neighbor has been established. The execution results are displayed as follows:
R2(config)#show mpls ldp neighbor detail instance 1
Peer LDP Ident: 1.1.1.34:0; Local LDP Ident 1.1.1.35:0
TCP connection: 1.1.1.34.646 - 1.1.1.35.1069
State: Sent; Msgs sent/rcvd: 1/0; Downstream
Up Time: 00:00:30
LDP discovery sources:
gei-0/3/0/7; Src IP addr: 100.100.100.1
holdtime: 15000 ms, hello interval: 5000 ms
Addresses bound to peer LDP Ident:
Session holdtime: 180000 ms; KA interval: 60000 ms
LDP Peer BFD not register.
LDP dynamic capability disable:
LDP send capability:
LDP dynamic capability
LDP Typed Wildcard FEC Cap
LDP Unrecognized Noti Cap
LDP received capability:

In the sample output information, state: Sent indicates that the session status is Sent.
This means that, although the local end initiates a TCP connection and the connection has
been established, the session still cannot enter the Oper status because packet filtration
is enabled on the peer end (R1).

Run the show mpls ldp neighbor detail instance 1 command on R1 to check whether
an LDP neighbor has been established.
R1(config)#show mpls ldp neighbor detail instance 1

It can be seen that no output information is returned. This means that the local end discards
the received UDP and TCP packets that meet filtration conditions.

1-87

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

1.6.15 Label-Distribution Configuration Example


Scenario Description
Figure 1-31 shows a sample network topology. It is required to establish an LDP neighbor
relationship between R1 and R2, and enable the label-distribution DoD function on the
directly-connected interfaces of R1 and R2.

Figure 1-31 Label-Distribution Configuration Example

Configuration Flow
1. Configure an IGP route, and ensure that the loopback interfaces of R1 and R2 can
ping each other.
2. Enable MPLS on the directly-connected interfaces of R1 and R2.
3. Enable label-distribution DoD on the directly-connected interfaces of R1 and R2.
4. Reset the MPLS LDP instances operating on R1 and R2.

Configuration Commands
Run the following commands on R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit

R1(config)#router isis 1
R1(config-isis-1)#area 00.0001
R1(config-isis-1)#system-id 0001.0002.0034
R1(config-isis-1)#interface gei-0/2/0/7
R1(config-isis-1-if-gei-0/2/0/7)#ip router isis
R1(config-isis-1-if-gei-0/2/0/7)#exit
R1(config-isis-1)#interface loopback1
R1(config-isis-1-if-loopback1)#ip router isis
R1(config-isis-1-if-loopback1)#exit
R1(config-isis-1)#exit

1-88

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R1(config)#mpls ldp instance 1


/*Run the following commands to configure the LDP router-id and an LDP interface*/
R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#label-distribution dod
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#exit
R1(config)#reset mpls ldp instance 1

Run the following commands on R2:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#no shutdown
R2(config-if-gei-0/3/0/7)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit

R2(config)#router isis
R2(config-isis-1)#area 00.0002
R2(config-isis-1)#system-id 0002.0002.0035
R2(config-isis-1)#interface gei-0/3/0/7
R2(config-isis-1-if-gei-0/3/0/7)#ip router isis
R2(config-isis-1-if-gei-0/3/0/7)#exit
R2(config-isis-1)#interface loopback1
R2(config-isis-1-if-loopbck1)#ip router isis
R2(config-isis-1-if-loopbck1)#exit
R2(config-isis-1)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/3/0/7
R2(config-ldp-1-if-gei-0/3/0/7)#label-distribution dod
R2(config-ldp-1-if-gei-0/3/0/7)#exit
R2(config-ldp-1)#exit
R2(config)#reset mpls ldp instance 1

Configuration Verification
Run the show mpls ldp neighbor detail instance 1 command on R2 to check whether
an LDP neighbor has been established. The execution results are displayed as follows:
R2(config)#show mpls ldp neighbor detail instance 1
Peer LDP Ident: 1.1.1.34:0; Local LDP Ident 1.1.1.35:0
TCP connection: 1.1.1.34.646 - 1.1.1.35.1069
state: Oper; Msgs sent/rcvd: 47/48; Downstream on Demand

1-89

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Up Time: 00:00:30
LDP discovery sources:
gei-0/3/0/7; Src IP addr: 100.100.100.1
holdtime: 15000 ms, hello interval: 5000 ms
Addresses bound to peer LDP Ident:
1.1.1.34 100.100.100.1
Session holdtime: 180000 ms; KA interval: 60000 ms
LDP Peer BFD not register.
LDP dynamic capability enable:
LDP send capability:
LDP dynamic capability
LDP Typed Wildcard FEC Cap
LDP Unrecognized Noti Cap
LDP received capability:
LDP dynamic capability negotiate success
LDP Typed Wildcard FEC Cap negotiate success
LDP Unrecognized Noti Cap negotiate success

In the sample output, state: Oper indicates that the session status is Oper, which means
that the parameter negotiation is correct, and a neighbor relationship with R1 (1.1.1.34)
has been established.

1.6.16 Label-Retention Configuration Example


Scenario Description
Figure 1-32 shows a sample network topology. It is required to establish an LDP neighbor
relationship between R1 and R2, and enable the label-retention conservation function in
the LDP configuration mode of R2.

Figure 1-32 Label-Retention Configuration Example

Configuration Flow
1. Configure an IGP route, and ensure that the loopback interfaces of R1 and R2 can
ping each other.
2. Enable MPLS on the directly-connected interfaces of R1 and R2.
3. Enable the label-retention conservative function on the MPLS instances operating on
R1 and R2.
4. Reset the MPLS instances.

1-90

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Configuration Commands
Run the following commands on R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit

R1(config)#router isis 1
R1(config-isis-1)#area 00.0001
R1(config-isis-1)#system-id 0001.0002.0034
R1(config-isis-1)#interface gei-0/2/0/7
R1(config-isis-1-if-gei-0/2/0/7)#ip router isis
R1(config-isis-1-if-gei-0/2/0/7)#exit
R1(config-isis-1)#interface loopback1
R1(config-isis-1-if-loopback1)#ip router isis
R1(config-isis-1-if-loopback1)#exit
R1(config-isis-1)#exit

R1(config)#mpls ldp instance 1


/*Run the following commands to configure the LDP router-id and an LDP interface*/
R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#label-retention conservative
R1(config-ldp-1)#exit
R1(config)#reset mpls ldp instance 1

Run the following commands on R2:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#no shutdown
R2(config-if-gei-0/3/0/7)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit

R2(config)#router isis
R2(config-isis-1)#area 00.0002
R2(config-isis-1)#system-id 0002.0002.0035
R2(config-isis-1)#interface gei-0/3/0/7
R2(config-isis-1-if-gei-0/3/0/7)#ip router isis

1-91

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R2(config-isis-1-if-gei-0/3/0/7)#exit
R2(config-isis-1)#interface loopback1
R2(config-isis-1-if-loopbck1)#ip router isis
R2(config-isis-1-if-loopbck1)#exit
R2(config-isis-1)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/3/0/7
R2(config-ldp-1-if-gei-0/3/0/7)#exit
R1(config-ldp-1)#label-retention conservative
R2(config-ldp-1)#exit
R2(config)#reset mpls ldp instance 1
R2#debug ldp session io instance 1
R2#terminal monitor

Configuration Verification
Run the show mpls ldp bindings detail instance 1 command on R2 to check the label
status. The execution results are displayed as follows:

R2(config)#show mpls ldp bindings detail instance 1


1.1.1.34/32
local binding: label: 16384
remote binding: lsr: 1.1.1.34:0, label: imp-null(inuse)
1.1.1.35/32
local binding: label: imp-null
advertised to:
1.1.1.34:0

In the sample output, the next-hop of the route corresponding to FEC 1.1.1.34 is R1, and
therefore the label advertised by R1 should be stored. However, the IP address 1.1.1.35
is the last hop, and therefore the label advertised by R1 is not stored.
Run the debug command on R2, and the out label information corresponding to the FEC
is displayed:
mpls_ldp_1: Rcvd mapping msg from 1.1.1.34:0
baseMsg: uBit = 0; msgType = 0x400; msgLength = 24; msgId = 0x5
fecTlv:
uBit = 0; fBit = 0; type = 0x100; length = 8
with 1 FEC elements:
1: type = 2, addFam = 0x1, preLen = 32, address = 0x1010123
genLblTlv:
uBit = 0; fBit = 0; type = 0x200; length = 4
label = 16385
Sent release msg to 1.1.1.34:0 with socket-id(0x00002ae7cf01ad10)
baseMsg: uBit = 0; msgType = 0x403; msgLength = 24; msgId = 0x6

1-92

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

fecTlv:
uBit = 0; fBit = 0; type = 0x100; length = 8
with 1 FEC elements:
1: type = 2, addFam = 0x1, preLen = 32, address = 0x1010123
genLblTlv:
uBit = 0; fBit = 0; type = 0x200; length = 4
label = 16385

It can be seen that R2 has received the label mapping information related to FEC 1.1.1.35
from R1. Because the label-retention mode configured on R2 is "conservative", R2 returns
a label release message.

1.6.17 Label-Advertise Configuration Example


Scenario Description
Figure 1-33 shows a sample network topology. It is required to establish an LDP neighbor
relationship between R1 and R2, and enable the label-advertise function in the LDP
configuration mode of R2.

Figure 1-33 Label-Advertise Configuration Example

Configuration Flow
1. Configure an IGP route, and ensure that the loopback interfaces of R1 and R2 can
ping each other.
2. Enable MPLS on the directly-connected interfaces of R1 and R2.
3. Configure an ACL rule on R2 to deny all packets.
4. Configure an ACL rule on R2 to permit all packets.
5. Configure label-advertise for non for the MPLS LDP instance operating on R2.
6. Configure label-advertise for all to non for the MPLS LDP instance operating on R2.

1-93

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Note:
l Steps 5 and 6 are optional. In Step 5, the filtration of packets and whether a label
is advertised to the neighbor are based on the FEC prefix. In Step 6, the filtration of
packets and whether a label is advertised to the neighbor are based on the FEC prefix
and neighbor.
l If one of the filtration conditions in the prefixed ACL is matched, only the later
configuration takes effect. For example, if label-advertise for all and label-advertise
for all to non commands are sequentially executed, only the label-advertise for all
to non command takes effect.
l If none of the filtration conditions in the prefix ACL is matched, multiple label
advertisement combination policies can be configured in the system. For example,
the configurations in Steps 5 and 6 can be used as a combination policy and take
effect on R2.
l The two commands should be used with the label-advertise disable command.

Configuration Commands
Run the following commands on R1:

R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit

R1(config)#router isis 1
R1(config-isis-1)#area 00.0001
R1(config-isis-1)#system-id 0001.0002.0034
R1(config-isis-1)#interface gei-0/2/0/7
R1(config-isis-1-if-gei-0/2/0/7)#ip router isis
R1(config-isis-1-if-gei-0/2/0/7)#exit
R1(config-isis-1)#interface loopback1
R1(config-isis-1-if-loopback1)#ip router isis
R1(config-isis-1-if-loopback1)#exit
R1(config-isis-1)#exit

R1(config)#mpls ldp instance 1


/*Run the following commands to configure the LDP router-id and an LDP interface*/
R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#exit

1-94

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Run the following commands on R2:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#no shutdown
R2(config-if-gei-0/3/0/7)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit

R2(config)#router isis
R2(config-isis-1)#area 00.0002
R2(config-isis-1)#system-id 0002.0002.0035
R2(config-isis-1)#interface gei-0/3/0/7
R2(config-isis-1-if-gei-0/3/0/7)#ip router isis
R2(config-isis-1-if-gei-0/3/0/7)#exit
R2(config-isis-1)#interface loopback1
R2(config-isis-1-if-loopbck1)#ip router isis
R2(config-isis-1-if-loopbck1)#exit
R2(config-isis-1)#exit

R2(config)#ipv4-access-list non
R2(config-ipv4-acl)#rule 1 deny any
R2(config-ipv4-acl)#exit
R2(config)#ipv4-access-list all
R2(config-ipv4-acl)#rule 1 permit any
R2(config-ipv4-acl)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/3/0/7
R2(config-ldp-1-if-gei-0/3/0/7)#exit

/*Run the following commands to enable label-advertise for non*/


R2(config-ldp-1)#label-advertise for non
R2(config-ldp-1)#label-advertise disable
R2(config-ldp-1)#exit

/*Run the following commands to enable label-advertise for all to non*/


R2(config-ldp-1)#label-advertise for all to non
R2(config-ldp-1)#label-advertise disable
R2(config-ldp-1)#exit

1-95

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Configuration Verification
Run the show mpls ldp bindings detail instance 1 command on R2 to check the label
status. The execution results are displayed as follows:
R2(config)#show mpls ldp bindings detail instance 1
1.1.1.34/32
local binding: label: 16384
remote binding: lsr: 1.1.1.34:0, label: imp-null(inuse)
1.1.1.35/32
local binding: label: imp-null
100.100.100.0/24
local binding: label: imp-null

It can be seen that, on R2, the advertised to: item is not found, meaning that all FECs
have no label advertisement information.
It can be seen that, on R1, all FECs do not receive the remote binding information from
R2, meaning that R2 does not send any label.
R2(config)#show mpls ldp neighbor detail instance 1
1.1.1.34/32
local binding: label: imp-null
advertised to:
1.1.1.35:0
1.1.1.35/32
local binding: label: 16384
remote binding: lsr: 1.1.1.35:0, label: UnTag
100.100.100.0/24
local binding: label: imp-null

1.6.18 Label-Request Configuration Example


Scenario Description
Figure 1-34 shows a sample network topology. It is required to establish an LDP neighbor
relationship between R1 and R2, and enable the label-request function in the LDP
configuration mode of R2.

Figure 1-34 Label-Request Configuration Example

1-96

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

Configuration Flow
1. Configure an IGP route, and ensure that the loopback interfaces of R1 and R2 can
ping each other.
2. Enable MPLS on the directly-connected interfaces of R1 and R2.
3. Set the negotiation mode of the session between the directly-connected interfaces of
R1 and R2 to "DoD".
4. Configure an ACL rule on R2 to deny all packets.
5. Configure label-advertise for non for the MPLS LDP instance operating on R2.

Note:
When the session operates in DoD mode, if the label-request command is executed, all of
the valid next-hops of FECs send label request messages by default. One of the filtration
conditions in the ACL needs to be matched only when the label-request command is
executed. If no match is found, label request messages are not sent.

Configuration Commands
Run the following commands on R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit

R1(config)#router isis 1
R1(config-isis-1)#area 00.0001
R1(config-isis-1)#system-id 0001.0002.0034
R1(config-isis-1)#interface gei-0/2/0/7
R1(config-isis-1-if-gei-0/2/0/7)#ip router isis
R1(config-isis-1-if-gei-0/2/0/7)#exit
R1(config-isis-1)#interface loopback1
R1(config-isis-1-if-loopback1)#ip router isis
R1(config-isis-1-if-loopback1)#exit
R1(config-isis-1)#exit

R1(config)#mpls ldp instance 1


/*Run the following commands to configure the LDP router-id and an LDP interface*/
R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#label-distribution dod

1-97

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#exit
R1(config)#reset mpls ldp instance 1

Run the following commands on R2:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#no shutdown
R2(config-if-gei-0/3/0/7)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit

R2(config)#router isis
R2(config-isis-1)#area 00.0002
R2(config-isis-1)#system-id 0002.0002.0035
R2(config-isis-1)#interface gei-0/3/0/7
R2(config-isis-1-if-gei-0/3/0/7)#ip router isis
R2(config-isis-1-if-gei-0/3/0/7)#exit
R2(config-isis-1)#interface loopback1
R2(config-isis-1-if-loopbck1)#ip router isis
R2(config-isis-1-if-loopbck1)#exit
R2(config-isis-1)#exit

R2(config)#ipv4-access-list non
R2(config-ipv4-acl)#rule 1 deny any
R2(config-ipv4-acl)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/3/0/7
R2(config-ldp-1-if-gei-0/3/0/7)#label-distribution dod
R2(config-ldp-1-if-gei-0/3/0/7)#exit
R2(config-ldp-1)#label-request for non
R2(config-ldp-1)#exit
R2(config)#reset mpls ldp instance 1

Configuration Verification
Run the show mpls ldp bindings detail instance 1 command on R2 to check the label
status. The execution results are displayed as follows:
R2(config)#show mpls ldp bindings detail instance 1
1.1.1.34/32
local binding: label: 16384
1.1.1.35/32

1-98

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

local binding: label: imp-null


advertised to:
1.1.1.34:0
100.100.100.0/24
local binding: label: imp-null

It can be seen that, on R2, the valid next-hop of the IP address 1.1.1.34 is R1. Normally
in DoD mode, after R2 sends a label request message to R1, the remote binding item
is generated. But the action defined in the ACL rule for the label request messages that
meet the filtration conditions is "Deny", a label cannot be bound to FEC 1.1.1.34.
1.1.1.34/32
local binding: label: 16384
remote binding: lsr: 1.1.1.34:0, label: imp-null(inuse)

1.6.19 LSP-Control Configuration Example


Scenario Description
Figure 1-35 shows a sample network topology. It is required to establish LDP neighbor
relationships between R1, R2, and R3, and enable the lsp-control ordered function in the
LDP instance configuration mode of R1.

Figure 1-35 LSP-Control Configuration Example

Configuration Flow
1. Configure an IGP route, and ensure that the loopback interfaces of R1 and R2 can
ping each other.
2. Enable MPLS on the directly-connected interfaces of R1, R2, and R3.
3. Enable the lsp-control ordered function on R1.
4. Run the label-advertise disable command for the MPLS LDP instance operating on
R3.
5. Run the no label-advertise disable command for the MPLS LDP instance operating on
R3.

1-99

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Note:
The ordered mode of label advertisement cannot be easily observed. The goal of Step 4 is
to disable the downstream to assign a label temporarily. This can compare the difference
between the labels assigned to FEC 1.1.1.36 by R1 and R2 after the downstream
advertises a label in Step 5.

Configuration Commands
Run the following commands on R1:
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit
R1(config)#interface gei-0/2/0/2
R1(config-if-gei-0/2/0/2)#no shutdown
R1(config-if-gei-0/2/0/2)#ip address 200.200.200.1 255.255.255.0
R1(config-if-gei-0/2/0/2)#exit

R1(config)#router isis 1
R1(config-isis-1)#area 00.0001
R1(config-isis-1)#system-id 0001.0002.0034
R1(config-isis-1)#interface gei-0/2/0/7
R1(config-isis-1-if-gei-0/2/0/7)#ip router isis
R1(config-isis-1-if-gei-0/2/0/7)#exit
R1(config-isis-1)#interface gei-0/2/0/2
R1(config-isis-1-if-gei-0/2/0/2)#ip router isis
R1(config-isis-1-if-gei-0/2/0/2)#exit
R1(config-isis-1)#interface loopback1
R1(config-isis-1-if-loopback1)#ip router isis
R1(config-isis-1-if-loopback1)#exit
R1(config-isis-1)#exit

R1(config)#mpls ldp instance 1


/*Run the following commands to configure the LDP router-id and an LDP interface*/
R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#interface gei-0/2/0/2
R1(config-ldp-1-if-gei-0/2/0/2)#exit
R1(config-ldp-1)#lsp-control ordered

1-100

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R1(config-ldp-1)#exit
R1(config)#reset mpls ldp instance 1

Run the following commands on R2:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/2/0/9
R2(config-if-gei-0/2/0/9)#no shutdown
R2(config-if-gei-0/2/0/9)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/2/0/9)#exit

R2(config)#router isis
R2(config-isis-1)#area 00.0002
R2(config-isis-1)#system-id 0002.0002.0035
R2(config-isis-1)#interface gei-0/2/0/9
R2(config-isis-1-if-gei-0/2/0/9)#ip router isis
R2(config-isis-1-if-gei-0/2/0/9)#exit
R2(config-isis-1)#interface loopback1
R2(config-isis-1-if-loopbck1)#ip router isis
R2(config-isis-1-if-loopbck1)#exit
R2(config-isis-1)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/2/0/9
R2(config-ldp-1-if-gei-0/2/0/9)#exit
R2(config-ldp-1)#exit

Run the following commands on R3:


R3(config)#interface loopback1
R3(config-if-loopback1)#ip address 1.1.1.36 255.255.255.255
R3(config-if-loopback1)#exit
R3(config)#interface gei-0/2/0/6
R3(config-if-gei-0/2/0/6)#ip address 200.200.100.3 255.255.255.0
R3(config-if-gei-0/2/0/6)#exit

R3(config)#router isis
R3(config-isis-1)#area 00.0003
R3(config-isis-1)#system-id 0003.0003.0036
R3(config-isis-1)#interface gei-0/2/0/6
R3(config-isis-1-if-gei-0/2/0/6)#ip router isis
R3(config-isis-1-if-gei-0/2/0/6)#exit
R3(config-isis-1)#interface loopback1
R3(config-isis-1-if-loopbck1)#ip router isis

1-101

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R3(config-isis-1-if-loopbck1)#exit
R3(config-isis-1)#exit

R3(config)#mpls ldp instance 1


R3(config-ldp-1)#router-id loopback1
R3(config-ldp-1)#interface gei-0/2/0/6
R3(config-ldp-1-if-gei-0/2/0/6)#exit

/*Run the following command to disable label advertisement*/


R3(config-ldp-1)# label-advertise disable

/*Run the following command to disable label advertisementt*/


R3(config-ldp-1)# label-advertise disable

Configuration Verification
l Check the execution result of Step 4 on R3.
Run the show mpls ldp bindings 1.1.1.36 32 detail instance 1 command on R1 to
check the label status. The execution results are displayed as follows:
R1(config)#show mpls ldp bindings 1.1.1.36 32 detail instance 1
1.1.1.36/32
local binding: label: 16384
remote binding: lsr: 1.1.1.36:0, label: UnTag

On R1, it can be seen that the remote binding item is set to UnTag in the label
information advertised by the valid next-hop of FEC 1.1.1.36. This means that the
neighbor (1.1.1.36) does not advertise any label. Because the LSP generation mode
of R1 is "Ordered", the advertised to: item cannot be seen in the label advertisement
information.
Run the show mpls ldp bindings 1.1.1.36 32 detail instance 1 command on R2 to
check the label status. The execution results are displayed as follows:
R2(config)#show mpls ldp bindings 1.1.1.36 32 detail instance 1
1.1.1.36/32
local binding: label: 16384
remote binding: lsr: 1.1.1.34:0, label: UnTag

The same output information can be seen on R2, except that R1 does not advertise
a label bound to FEC 1.1.1.36.

l On R3, the execution results of Step 5 are as follows:


Run the show mpls ldp bindings 1.1.1.36 32 detail instance 1 command on R1 to
check the label status. The execution results are displayed as follows:

R1(config)#show mpls ldp bindings 1.1.1.36 32 detail instance 1


1.1.1.36/32
local binding: label: 16384

1-102

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

advertised to:
1.1.1.35:0 1.1.1.36:0
remote binding: lsr: 1.1.1.36:0, label: imp-null(inuse)

On R1, it can be seen that the valid hop (R3) of FEC 1.1.1.36 sends a valid label, and
R1 advertises labels to R2 and R3.
Run the show mpls ldp bindings 1.1.1.36 32 detail instance 1 command on R2 to
check the label status. The execution results are displayed as follows:
R2(config)#show mpls ldp bindings 1.1.1.36 32 detail instance 1
1.1.1.36/32
local binding: label: 16384
advertised to:
1.1.1.34:0
remote binding: lsr: 1.1.1.34:0, label: 16384 (inuse)

Upon receipt of a label from the downstream, R2 advertises a label to the upstream.

1.6.20 Longest-Match Configuration Example


Scenario Description
Figure 1-36 shows a sample network topology. It is required to establish LDP neighbor
relationships between R1, R2, and R3, and enable the longest-match function in the LDP
instance configuration mode of R1.

Figure 1-36 Longest-Match Configuration Example

Configuration Flow
1. Configure an IGP route, and ensure that the loopback interfaces of R1 and R2 can
ping each other.
2. Enable MPLS on the directly-connected interfaces of R1, R2, and R3.
3. Establish a DoD-mode session between R1 and R2, and establish a DU-mode session
between R1 and R3.
4. Configure an ACL on R1 to permit the routes on the 1.2.0.0/16 network segment.
5. Configure the longest-match mode on R1.
6. On R1, set the next-hop of the static aggregated route (1.2.0.0/16) to R3.
7. On R2, set the next-hop of the static route (1.2.3.4/32) to R1.
8. On R3, set the next-hop of the static route (1.2.3.4/32) to R3.

1-103

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

9. Configure the static LDP on R1, and assign a static in label (100) to the static route
(1.2.3.4/32).

Note:
Steps 7, 8 or 9 can be used to create the longest matching LSP on R1 based on FEC
1.2.3.4/32. The matching result is the same as that based on FEC (1.2.0.0/16).

Configuration Commands
Run the following commands on R1:

R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.34 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/2/0/7
R1(config-if-gei-0/2/0/7)#no shutdown
R1(config-if-gei-0/2/0/7)#ip address 100.100.100.1 255.255.255.0
R1(config-if-gei-0/2/0/7)#exit
R1(config)#interface gei-0/2/0/2
R1(config-if-gei-0/2/0/2)#ip address 200.200.200.1 255.255.255.0
R1(config-if-gei-0/2/0/2)#exit
R1(config)#ip route 1.2.0.0 255.255.0.0 200.200.200.3

R1(config)#router isis 1
R1(config-isis-1)#area 00.0001
R1(config-isis-1)#system-id 0001.0002.0034
R1(config-isis-1)#interface gei-0/2/0/7
R1(config-isis-1-if-gei-0/2/0/7)#ip router isis
R1(config-isis-1-if-gei-0/2/0/7)#exit
R1(config-isis-1)#interface gei-0/2/0/2
R1(config-isis-1-if-gei-0/2/0/2)#ip router isis
R1(config-isis-1-if-gei-0/2/0/2)#exit
R1(config-isis-1)#interface loopback1
R1(config-isis-1-if-loopback1)#ip router isis
R1(config-isis-1-if-loopback1)#exit
R1(config-isis-1)#exit

R1(config)#ipv4-access-list acl12
R1(config-ipv4-acl)#rule 1 permit 1.2.0.0 0.0.255.255
R1(config-ipv4-acl)#exit

R1(config)#mpls ldp instance 1


/*Run the following commands to configure the LDP router-id and an LDP interface*/

1-104

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

R1(config-ldp-1)#router-id loopback1
R1(config-ldp-1)#interface gei-0/2/0/7
R1(config-ldp-1-if-gei-0/2/0/7)#label-distribution dod
R1(config-ldp-1-if-gei-0/2/0/7)#exit
R1(config-ldp-1)#interface gei-0/2/0/2
R1(config-ldp-1-if-gei-0/2/0/2)#exit
R1(config-ldp-1)#longest-match ipv4 for acl12
R1(config-ldp-1)#exit
R2(config)#reset mpls ldp instance 1

Run the following commands on R2:

R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 1.1.1.35 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/2/0/9
R2(config-if-gei-0/2/0/9)#no shutdown
R2(config-if-gei-0/2/0/9)#ip address 100.100.100.2 255.255.255.0
R2(config-if-gei-0/2/0/9)#exit

R2(config)#router isis
R2(config-isis-1)#area 00.0002
R2(config-isis-1)#system-id 0002.0002.0035
R2(config-isis-1)#interface gei-0/2/0/9
R2(config-isis-1-if-gei-0/2/0/9)#ip router isis
R2(config-isis-1-if-gei-0/2/0/9)#exit
R2(config-isis-1)#interface loopback1
R2(config-isis-1-if-loopbck1)#ip router isis
R2(config-isis-1-if-loopbck1)#exit
R2(config-isis-1)#exit

R2(config)#mpls ldp instance 1


R2(config-ldp-1)#router-id loopback1
R2(config-ldp-1)#interface gei-0/2/0/9
R1(config-ldp-1-if-gei-0/2/0/9)#label-distribution dod
R2(config-ldp-1-if-gei-0/2/0/9)#exit
R2(config-ldp-1)#exit
R2(config)#reset mpls ldp instance 1

Run the following commands on R3:


R3(config)#interface loopback1
R3(config-if-loopback1)#ip address 1.1.1.36 255.255.255.255
R3(config-if-loopback1)#exit
R3(config)#interface gei-0/2/0/6
R3(config-if-gei-0/2/0/6)#no shutdown

1-105

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R3(config-if-gei-0/2/0/6)#ip address 200.200.100.3 255.255.255.0


R3(config-if-gei-0/2/0/6)#exit

R3(config)#router isis
R3(config-isis-1)#area 00.0003
R3(config-isis-1)#system-id 0003.0003.0036
R3(config-isis-1)#interface gei-0/2/0/6
R3(config-isis-1-if-gei-0/2/0/6)#ip router isis
R3(config-isis-1-if-gei-0/2/0/6)#exit
R3(config-isis-1)#interface loopback1
R3(config-isis-1-if-loopbck1)#ip router isis
R3(config-isis-1-if-loopbck1)#exit
R3(config-isis-1)#exit

R3(config)#mpls ldp instance 1


R3(config-ldp-1)#router-id loopback1
R3(config-ldp-1)#interface gei-0/2/0/6
R3(config-ldp-1-if-gei-0/2/0/6)#exit

/*Run the following command to set the next-hop of the static route 1.2.3.4/32 to R2*/
R2(config)#ip route 1.2.3.4 255.255.0.0 100.100.100.1

/*Run the following command to set the next-hop of the static route 1.2.3.4/32 to R3*/
R3(config)#ip route 1.2.3.4 255.255.255.255 loopback1

/*Run the following command to configure the static LDP, and assign the static in
label (100) to the static route 1.2.3.4/32*/
R1(config)#mpls static-lsp sta
R1(config-static-lsp-sta)#bind ipv4 1.2.3.4 255.255.255.255
R1(config-if-loopback2)#insegment inlabel 100

Configuration Verification
l Check the execution results of Step 7 on R2 or Step 9 on R1.
Run the show mpls ldp bindings 12.3.4 32 detail instance 1 command on R1 to
check the label status. The execution results are displayed as follows:
R1(config)#show mpls ldp bindings 12.3.4 32 detail instance 1
1.2.3.4/32
local binding: label: 16386
remote binding: lsr: 1.1.1.36:0, label: 16385

It can be seen that R1 has received an out label from R3.


Run the show ip forwarding route 1.2.3.4 command on R1 to check the routing
information:
R1(config)#show ip forwarding route 1.2.3.4

1-106

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 1 MPLS Configuration

--------------------------------------------------------------------------

IPv4 Routing Table:


Headers: Dest: Destination, Gw: Gateway, Pri: Priority;
Codes : BROADC: Broadcast, USER-I: User-ipaddr, USER-S: User-special,
MULTIC: Multicast, USER-N: User-network, DHCP-D: DHCP-DFT,
ASBR-V: ASBR-VPN, STAT-V: Static-VRF, DHCP-S: DHCP-static,
GW-FWD: PS-BUSI, NAT64: Stateless-NAT64, LDP-A: LDP-area,
GW-UE: PS-USER, P-VRF: Per-VRF-label, TE: RSVP-TE;
Status codes: *valid, >best;
Dest Gw Interface Owner Pri Metric
*> 1.2.3.4/32 100.100.100.2 gei-0/2/0/2 LDP-A 254 65534
*> 1.2.0.0/16 100.100.100.2 gei-0/2/0/2 STAT 1 0

It can be seen that the 1.2.3.4/32 route is generated by the LDP based on the
1.2.0.0/16 route. The next-hop information of the egress interface of the 1.2.3.4/32
route is the same as that of the 1.2.0.0/16 route.

Run the show mpls forwarding-table 1.2.3.4 command on R1 to check the


forwarding table information:

R1(config)#show mpls forwarding-table 1.2.3.4


--------------------------------------------------------------------------
Local Outgoing Prefix or OutgoingNext Hop M/S
label label Lspnameinterface
16386 16385 1.2.3.4/32loopback11.1.1.35 M
l Check the execution result of Step 8 on R3.
Run the show mpls ldp bindings 12.3.4 32 detail instance 1 command on R1 to
check the label status. The execution results are displayed as follows:
R1(config)#show mpls ldp bindings 12.3.4 32 detail instance 1
1.2.3.4/32
local binding: label: 16386
remote binding: lsr: 1.1.1.36:0, label: 16385 (inuse)

Run the show ip forwarding route 1.2.3.4 command on R1 to check the routing
information:

R1(config)#show ip forwarding route 1.2.3.4


--------------------------------------------------------------------------
IPv4 Routing Table:
Headers: Dest: Destination, Gw: Gateway, Pri: Priority;
Codes : BROADC: Broadcast, USER-I: User-ipaddr, USER-S: User-special,
MULTIC: Multicast, USER-N: User-network, DHCP-D: DHCP-DFT,
ASBR-V: ASBR-VPN, STAT-V: Static-VRF, DHCP-S: DHCP-static,
GW-FWD: PS-BUSI, NAT64: Stateless-NAT64, LDP-A: LDP-area,
GW-UE: PS-USER, P-VRF: Per-VRF-label, TE: RSVP-TE;
Status codes: *valid, >best;

1-107

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Dest Gw Interface Owner Pri Metric


*> 1.2.3.4/32 100.100.100.2 gei-0/2/0/2 LDP-A 254 65534
*> 1.2.0.0/16 100.100.100.2 gei-0/2/0/2 STAT 1 0

The output information is the same as the execution results of Step 7 or 9.


Run the show mpls forwarding-table 1.2.3.4 command on R1 to check the
forwarding table information:
R1(config)#show mpls forwarding-table 1.2.3.4
--------------------------------------------------------------------------
Local Outgoing Prefix or Outgoing Next Hop M/S
label label Lspnameinterface
16386 16385 1.2.3.4/32loopback1 1.1.1.35 M

It can be seen that there is a valid out label in the forwarding table.

1-108

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2
MPLS TE Configuration
Table of Contents
RSVP Configuration ...................................................................................................2-1
TE Summary Refresh Introduction............................................................................2-24
TE Message Acknowledgement and Retransmission ...............................................2-29
TE Authentication Configuration ...............................................................................2-34
Confiugration of MPLS TE Crossing Several AS Domains........................................2-40
TE-FRR Configuration ..............................................................................................2-58
FRR Promotion Introduction ...................................................................................2-103
FRR-Hello Configuration ........................................................................................ 2-114
MPLS TE End-to-End Protection Path Configuration ..............................................2-121
Loose Node Re-optimization ..................................................................................2-128
Automatic Bandwidth Regulation on an MPLS TE .................................................2-135
TE GR Configuration ..............................................................................................2-140
TE Tunnel FA Configuration ...................................................................................2-148
TE Tunnel AR Configuration ...................................................................................2-152
TE Metric Configuration..........................................................................................2-157
TE SRLG Configuration..........................................................................................2-162
TE Tunnel Reoptimization Configuration.................................................................2-168
TE HOTSTANDBY Configuration............................................................................2-173
WTR Configuration for a TE Tunnel........................................................................2-179
TE Tunnels Supporting Soft Preemption.................................................................2-185
Equal Load Sharing on the TE-ECMP ....................................................................2-198
TE Affinity...............................................................................................................2-202
Binding Interfaces Supporting TE Bandwidth Reservation ......................................2-214
RSVP-TEs Supporting Resource Reservation ........................................................2-220

2.1 RSVP Configuration


2.1.1 RSVP Overview
RSVP Introduction
RSVP is a resource reservation protocol designed for comprehensive network services.

In brief, RSVP has the following features:

1. The reservation on each router is "soft", which means that the reservation is updated
by the receiver periodically. It is necessary to update the reservation by advertising

2-1

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

the reservation repeatedly and periodically on the network. When the reservation is
removed from the network by RSVP explicitly, or when the reservation event expires,
the device will send a request.
This is different from the "hard-state" protocols. Generally, the hard-state protocols
only need to advertise requests once, and it is supposed that they hold the requests
until the requests are removed explicitly.
2. RSVP is a network (control) protocol instead of a transport protocol. It does not carry
data, but it works together with TCP data flows or UDP data flows.
3. RSVP is not a routing protocol. Any routing policy is made by Interior Gateway Protocol
(IGP), IGP Traffic Engineering (TE) extension and Constrained Shortest Path First
(CSPF). The only work of RSVP is to advertise the RSVP signaling and maintain the
reserved resources on the network.
4. RSVP is receiver-oriented. The receiver sends the request for resource reservation
and maintains the resource reservation information.
RSVP is on the base of IP. Users can apply for buffers and bandwidth that meet the quality
requirements of specific services from the network. The intermediate nodes establish and
maintain the resource reservation path on the data transmission network through RSVP,
thus to provide the corresponding quality of service.

RSVP Control Path


On the control path, there are two basic messages used to establish the resource
reservation path, PATH message and RESV message.
1. Before sending data, the sender sends a PATH message first to establish a
transmission path with the receiver. The PATH message contains a unique LSP
quintuple group and other control information. The source application programme
sends the characteristics of the user service and expected QoS to the RSVP process
through the application programme interface. The RSVP process forms a PATH
message according to the requirement and then sends the message to the next hop.
2. After the RSVP process on an intermediate route along the path receives the PATH
message, it establishes the PATH soft state, saves the parameters of the service and
the address of the previous hop. The RSVP process also collects the information
of available resources on the node and makes an preparation for the resource
reservation. At last, the RSVP process forms a new PATH message and sends it to
the next hop.
3. When the RSVP process of the receiver receives the PATH message, it sends the
message to the destination application programme through the RSVP application
programme interface. The application programme forms an RESV message according
to the service characteristics received and the parameters of the available resources.
The RESV message contains the QoS parameters and service characteristics that
meet the parameters. After this, the RSVP process returns the message according to
the saved previous hop address.
4. The RESV message is transmitted to the sender along the same path. When it passes
through each router, it makes a confirmation about the QoS parameters designated

2-2

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

by the PATH message. When the RSVP process of an intermediate node receives
the RESV message, it establishes the RESV soft state, sets the parameters of the
packet classifier and packet forwarder, and then forwards the message according to
the saved previous hop address.
5. When the sender receives the RESV message from the receiver, the LSP tunnel is
established. The sender and the receiver use this path to transmit data flow. The
routers along the path reserve resources for the data flow and forward the data flow
according to the negotiated QoS.
6. Till Step 5, the resource reservation path has been established. To adapt to the
changes of routes and QoS, RSVP sends update messages periodically, including
PATH message and RESV message.

The RSVP message handling module is responsible for handling messages, establishing,
maintaining and deleting the resource reservation state, as well as forwarding messages
according to the routes obtained from the route handling module. The RESV message
handling module establishes and modifies the Path State Block (PSB) and Reservation
State Block (RSB) for data flows according to the PATH message, RESV message, PATH
update message and RESV update message it receives. The two states contain the
service parameters and resource reservation parameters of each data flow. In multicasting
situations, the RSVP message handling module combines the RESV messages that are
sent by different senders to the same receiver, and modifies the local PSB. As service
characteristics and reservation requirements are multidimensional, the RSVP message
handling module does not simply combine a reserved resource by using the larger value of
a parameter. Instead, it uses each parameter in the messages to calculate out a resource
reservation state that meets the requirement in each message according to a specific
algorithm, that is, the Least Upper Bound (LUB). RSVP is a complex signaling system,
including establishment, update and deletion of the resource reservation path. RSVP also
handles different types of error information. If the state of a data flow changes, RSVP
uses the application programme interface between the RSVP message handling module
and the service control module to trigger the service control module to adjust the reserved
resources at the link layer.
To maintain the path state information, RSVP has two timers, flush timer and period-update
timer. The interval of the period-update timer is several times smaller than that of the flush
timer. In this way, an occasional loss of the PATH message will not cause the deletion of
path state information. However, it is better to use the minimum bandwidth to configure
the RSVP packets to prevent data loss due to congestion.

LSP Tunnel Establishment


After the input LSR at the head of the tunnel completes the CSPF calculation for a specific
tunnel, the establishment of an LSP is started.
As shown in Figure 2-1, the input LSR sends an RSVP PATH message to the output LSR.
The output LSR responds the input LSR for the RESV PATH message by sending an RSVP
RESV message.

2-3

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 2-1 LSP Tunnel Establishment 1

When the input LSR receives the RSVP RESV message, the LSP is established. The
input LSR can use the LSP tunnel to forward services to the output LSR.
When the output LSR receives the PATH message that contains LABEL_REQUEST
Object, it sends an RESV that contains LABEL Object as a response.

LABEL Object contains the label binding information that is used for communication
between the output LSR and the upstream neighbors. The RESV message is sent in
the upstream direction of the input LSR. The direction is opposite to that of the PATH
message.
The LSRs receiving the RSVP RESV message that contains the LABEL Object use the
received labels for the services related to the specific LSP. When the RESV message
reaches the input LSR, the LSP establishment is completed.

Figure 2-2 LSP Tunnel Establishment 2

As shown in Figure 2-2,


1. MPLS and RSVP are enabled globally and on the interfaces of LSR1, LSR2, LSR3
and LSR4.
2. Through some mechanisms, LSR1 knows that the whole LSP needs to comply with
the explicit route (LSR1 -> LSR2 -> LSR3 -> LSR4).

2-4

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

3. The L bit of each abstract node in the Explicit Route Object (ERO) is cleared, that is,
the strict mode of specific bit in the explicit route. An ERO is a simple abstract node
(just comprises a node defined by a 32-bit IPv4 packet).

2.1.2 Configuring RSVP


This procedure describes how to establish an LSP tunnel by using the RSVP-TE mode.

Steps
1. Create a tunnel interface.

Command Function

ZXCTN(config)#interface te_tunnel <tunnel-number> Enters a tunnel interface.

2. Enable MPLS TE.

Step Command Function

1 ZXCTN(config)#mpls traffic-eng Enables MPLS TE and enters


the TE configuration mode.

2 ZXCTN(config-mpls-te)#interface <interface-name> Enables TE on the interface.

3 ZXCTN(config-mpls-te-if)#bandwidth Configures a bandwidth for


[{static|dynamic}]<bandwidth value> the TE interface.

bandwidth [{static|dynamic}]<bandwidth value>: maximum bandwidth (static


reservation type or dynamic reservation type) that the TE interface supports, range
14294967295, unit: kbps.
3. Configure an explicit path for the tunnel.

Step Command Function

1 ZXCTN(config-mpls-te)#explicit-path {identifier Configures the explicit-path


<identifier>|name <name>} name or identifier of the
tunnel.

2 ZXCTN (config-mpls-te-expl-path-id- Configures a next hop of the


identifier)#index <1-64> next-address {strict | explicit path.
loose}<A.B.C.D>

3 ZXCTN (config-mpls-te-expl-path-id- Configures an excluded path.


identifier)#index <1-64> exclude-address {interface|
router-id}<A.B.C.D>

2-5

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

strict: strict path.


loose: loose path.
4. Configure the destination address of the tunnel.

Step Command Function

1 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters the tunnel configuration


<tunnel-number> mode.

2 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Configures the destination


number)#tunnel destination ipv4 <A.B.C.D> address of the tunnel.

5. Configure a TE tunnel name.

Step Command Function

1 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters the tunnel configuration


<tunnel-number> mode.

2 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Configures the TE tunnel


number)#tunnel mpls traffic-eng name <name> name.
This tunnel name is carried
to all nodes along the
tunnel through the RSVP-TE
signaling protocol.
Check different tunnel
names by using the display
command. Tunnels with the
same tunnelID can be more
easily distinguished at the
intermediate node.

<name>: TE tunnel name with 1-63 characters.


6. Configure the path of the tunnel.

Command Function

ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Configures the path of the tunnel


number)#tunnel mpls traffic-eng path-option <number> (dynamic).
dynamic

ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Configures the path of the tunnel


number)#tunnel mpls traffic-eng path-option <number> (explicit path).
explicit-path {identifier <identifier>|name <name>}

dynamic: uses the dynamic path calculation mode.


7. Configure other RSVP functions.

2-6

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Step Commands Functions

1 ZXCTN(config-mpls-te-if-interface-name)#bfd Enables BFD on the real


interface in MPLS-TE
interface configuration mode.

2 ZXCTN(config-mpls-te-tunnel-te_tunnel-number)#t Enables tunnel LSP BFD in


unnel mpls traffic-eng bfd interval <interval> min-rx < MPLS-TE tunnel interface
min-rx > multiplier <multiplier> configuration mode.

3 ZXCTN(config-mpls-te-tunnel-te_tunnel-number)#t Sets the maximum number of


unnel mpls traffic-eng hop limit <hop-num> hops on a tunnel. By default,
this number is not limited.

<interval>: minimum time interval (in milliseconds) for sending BFD control packets,
range: 3990.
<min-rx>: minimum time interval (in milliseconds) for receiving BFD control packets,
range: 3990.
<multiplier>: multiple of the timeout for detecting BFD control packets, range: 350.
hop-num>: range of the maximum hops on a tunnel, which is 132.

8. Display the configuration results.

Commands Functions

ZXCTN#show mpls traffic-eng tunnels te_tunnel <Tunnel Displays the information about a
ID> specified local tunnel.

ZXCTN#show mpls traffic-eng tunnels remote-tunnel Displays the information about a remote
[tunnel-id <tunnel-id> lsp-id <lsp-id> ingress-id tunnel.
<ingress-id> egress-id <egress-id>]

ZXCTN#show mpls traffic-eng tunnels brief Checks the brief information about a TE
tunnel, specifically, checks whether the
TE tunnel name is valid.

ZXCTN#show mpls traffic-eng interface brief Displays the brief information about the
interface on which the TE function is
enabled.

ZXCTN#show mpls traffic-eng interface detail Displays the detailed information about
the interface on which the TE function
is enabled.

End of Steps

2-7

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

2.1.3 RSVP Configuration Instance


2.1.3.1 Establishing a Basic OSPF TE RSVP Tunnel

Configuration Descriptions
As shown in Figure 2-3, there is a common RSVP tunnel from the P1 router to the P2
router. The tunnel is established through the OSPF TE protocol in dynamic routing mode.

Figure 2-3 Establishing a Basic OSPF TE RSVP Tunnel

Configuration Flow
1. Establish the OSPF neighbor relationship between the P1 router and the P2 router
through the direct-connected interfaces. Enable OSPF TE. Establish the RSVP tunnel
on the interfaces in the same OSPF area.
2. Enable TE on the direct connected interfaces of the P1 router and the P2 router.
Configure the destination and the path of tunnel1 on the P1 router.
3. Configure a static route to the destination on the P1 router. The next hop is Tunnel1.
In this case, the traffic is transmitted through the tunnel.
The dynamic routing mode is used in this instance.

Configuration Commands
The configuration of P1 is as follows:
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit

2-8

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#tunnel te_tunnel1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1 dynamic
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#exit

P1(config)#ip route 172.20.1.2 255.255.255.255 te_tunnel1

The configuration of P2 is as follows:


P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#exit
P2(config-mpls-te)#exit

2-9

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

The configuration of R2 is as follows:


R2(config)#interface gei-0/1/0/2
R2(config-if-gei-0/1/0/2)#ip address 172.20.1.2 255.255.255.0
R2(config-if-gei-0/1/0/2)#exit

Note:
The loopback addresses are used as the Router-IDs in MPLS-TE. It is to prevent the
establishment of the tunnel from being affected by the Router-IDs due to down interfaces.
The loopback interfaces are always in UP state (unless the state is changed manually).

Configuration Verification
Check the tunnel information on the P1 router. The tunnel is in up state. The information
of the tunnel is shown below.
P1(config)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 2.1.1.1 - gei-0/1/0/2 up/up

P1(config)#show mpls traffic-eng tunnels te_tunnel 1

Name: tunnel_1 (Tunnel1) Destination: 2.1.1.1


Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type dynamic (Basis for Setup)
Actual Bandwidth: 0 kbps
Hot-standby protection:
No path options protected
Config Parameters:
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Hop Prior: disabled Upper Limit: -
Record-Route: disabled
Facility Fast-reroute: disabled
Detour Fast-reroute: disabled
Bandwidth Protection: disabled
Hot-standby-lsp Fast-reroute: disabled
BFD: disabled
Policy class: default

2-10

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Track Name:
Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: disabled
Tunnel-Status: enabled
Bandwidth: 0 kbps (Global) Priority: 7 7 Affinity: 0x0/0x0
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
AutoRoute: disabled
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0

OutLabel: gei-0/1/0/2, 3
RSVP Signalling Info :
Src 1.1.1.1, Dst 2.1.1.1, Tun_Id 1, Tun_Instance 74
RSVP Path Info:
Explicit Route: 192.168.1.1 192.168.1.2 2.1.1.1
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits
RSVP Resv Info:
Record Route: NULL
Fspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits

History:
Tunnel:
Time since created: 0 days, 6 hours, 10 minutes
Prior LSP: path option 1
Current LSP: Uptime:0 days, 0 hours, 0 minutes
Last lsp error information:
None log record.

2.1.3.2 Establishing a Strict IS-IS TE RSVP Tunnel

Configuration Descriptions
As shown in Figure 2-4, there is a common RSVP tunnel from the P1 router to the P2
router. The tunnel is established through the IS-IS TE protocol in strict routing mode.

2-11

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 2-4 Establishing a Strict IS-IS TE RSVP Tunnel

Configuration Flow
1. Establish the IS-IS neighbor relationship between the P1 router and the P2 router
through the direct-connected interfaces and enable IS-IS TE.
2. Enable TE on the direct-connected interfaces of the P1 router and the P2 router.
Configure the destination and the path of tunnel1 on the P1 router.
3. Configure a static route to the destination on the P1 router. The next hop is Tunnel1.
In this case, the traffic is transmitted through the tunnel.
The strict routing mode is used in this example.

Configuration Commands
The configuration of P1 is as follows:
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit

P1(config)#router isis 1
P1(config-isis-1)#area 00
P1(config-isis-1)#system-id AAAA.BBBB.1111
P1(config-isis-1)#interface gei-0/1/0/2
P1(config-isis-1-if-gei-0/1/0/2)#ip router isis
P1(config-isis-1-if-gei-0/1/0/2)#exit
P1(config-isis-1)#interface loopback1
P1(config-isis-1-if-loopback1)#ip router isis
P1(config-isis-1-if-loopback1)#exit

2-12

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P1(config-isis-1)#metric-style wide
P1(config-isis-1)#mpls traffic-eng level-1
P1(config-isis-1)#mpls traffic-eng level-2
P1(config-isis-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#tunnel te_tunnel1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1
explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#exit

P1(config)#ip route 172.20.1.2 255.255.255.255 te_tunnel1

The configuration of P2 is as follows:

P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router isis 1
P2(config-isis-1)#area 00
P2(config-isis-1)#system-id AAAA.BBBB.2222
P2(config-isis-1)#interface gei-0/1/0/2
P2(config-isis-1-if-gei-0/1/0/2)#ip router isis
P2(config-isis-1-if-gei-0/1/0/2)#exit
P2(config-isis-1)#interface loopback2
P2(config-isis-1-if-loopback2)#ip router isis
P2(config-isis-1-if-loopback2)#exit
P2(config-isis-1)#metric-style wide
P2(config-isis-1)#mpls traffic-eng level-1
P2(config-isis-1)#mpls traffic-eng level-2
P2(config-isis-1)#exit

2-13

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#exit
P2(config-mpls-te)#exit

The configuration of R2 is as follows:


R2(config)#interface gei-0/1/0/2
R2(config-if-gei-0/1/0/2)#no shutdown
R2(config-if-gei-0/1/0/2)#ip address 172.20.1.2 255.255.255.0
R2(config-if-gei-0/1/0/2)#exit

Configuration Verification
Check the tunnel information on the P1 router. The tunnel is in up state. The information
of the tunnel is shown below.
P1(config)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 2.1.1.1 - gei-0/1/0/2 up/up

P1(config-mpls-te)#show mpls traffic-eng tunnels te_tunnel 1

Name: tunnel_1 (Tunnel1) Destination: 2.1.1.1


Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit identifier: 1 (Basis for Setup)
Actual Bandwidth: N/A
Hot-standby protection:
no path options protected
Config Parameters:
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Hop Prior: disabled Upper Limit: -
Record-Route: enabled
Facility Fast-reroute: disabled
Detour Fast-reroute: disabled
Bandwidth Protection: disabled
Hot-standby-lsp Fast-reroute: disabled

2-14

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

BFD: disabled
Policy class: default
Track Name:
Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: disabled
Tunnel-Status: enabled
Bandwidth: 0 kbps (Global) Priority: 7 7 Affinity: 0x0/0x0
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
AutoRoute: disabled
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0

InLabel: -
OutLabel: gei-0/1/0/2, 3
RSVP Signalling Info :
Src 1.1.1.1, Dst 2.1.1.1, Tun_Id 1, Tun_Instance 78
RSVP Path Info:
Explicit Route: 192.168.1.1 192.168.1.2 2.1.1.1
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits
RSVP Resv Info:
Record Route: NULL
Fspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits

History:
Tunnel:
Time since created: 0 days, 6 hours, 19 minutes
Prior LSP: path option 1
Current LSP: Uptime:0 days, 0 hours, 0 minutes
Last lsp error information:
None log record.

2-15

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Note:
The loopback addresses are used as the Router-IDs in MPLS TE. It is to prevent the
establishment of the tunnel from being affected by the Router-IDs due to interface down.
The loopback interfaces are always in UP state (unless the state is changed manually).

2.1.3.3 Configuring BFD on RSVP Interface

Configuration Description
As shown in Figure 2-5, it is required to establish an IS-IS TE tunnel between R1 and R2
and enable BFD for the RSVP-TE interfaces on R1 and R2.

Figure 2-5 Configuring BFD on RSVP Interface

Configuration Flow
1. Establish an IS-IS TE tunnel between R1 and R2.
2. Enable BFD on the RSVP-TE interfaces on R1 and R2.

Configuration Command
Run the following commands on R1:
R1(config)#interface xgei-0/5/0/3
R1(config-if-xgei-0/5/0/3)#ip address 172.20.130.213 255.255.255.252
R1(config-if-xgei-0/5/0/3)#exit
R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 172.20.96.1 255.255.255.255
R1(config-if-loopback1)#exit

R1(config)#router isis
R1(config-isis-0)#area 49.0172
R1(config-isis-0)#system-id 0020.0096.0001
R1(config-isis-0)#metric-style wide
R1(config-isis-0)#mpls traffic-eng level-2
R1(config-isis-0)#interface xgei-0/5/0/3
R1(config-isis-0-if-xgei-0/5/0/3)#ip router isis
R1(config-isis-0-if-xgei-0/5/0/3)#end

2-16

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

R1(config)#interface te_tunnel1
R1(config-if-te_tunnel1)#ip unnumbered loopback1
R1(config-if-te_tunnel1)#exit
R1(config)#mpls traffic-eng
R1(config-mpls-te)#interface loopback1
R1(config-mpls-te-if-loopback1)#exit
R1(config-mpls-te)#router-id 172.20.96.1
R1(config-mpls-te)#tunnel te_tunnel 1
R1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 172.20.108.1
R1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 dynamic
R1(config-mpls-te-tunnel-te_tunnel1)#exit
R1(config-mpls-te)#interface xgei-0/5/0/3
R1(config-mpls-te-if-xgei-0/5/0/3)#bfd

Run the following commands on R2:


R2(config)#interface xgei-0/0/0/3
R2(config-if-xgei-0/0/0/3)#ip address 172.20.130.214 255.255.255.252
R2(config-if-xgei-0/0/0/3)#exit
R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 172.20.108.1 255.255.255.255
R2(config-if-loopback1)#exit

R2(config)#router isis
R2(config-isis-0)#area 49.0172
R2(config-isis-0)#system-id 0020.0096.0002
R2(config-isis-0)#metric-style wide
R2(config-isis-0)#mpls traffic-eng level-2
R2(config-isis-0)#interface xgei-0/0/0/3
R2(config-isis-0-if-xgei-0/0/0/3)#ip router isis
R2(config-isis-0-if-xgei-0/0/0/3)#end

R2(config)#mpls traffic-eng
R2(config-mpls-te)#interface loopback1
R2(config-mpls-te-if-loopback1)#exit
R2(config-mpls-te)#router-id 172.20.108.1
R2(config-mpls-te)#interface xgei-0/0/0/3
R2(config-mpls-te-if-xgei-0/0/0/3)#bfd

Configuration Verification
After the configuration, a session of RSVP interface on R1 should be established
successfully. Run the following commands to check the configuration result.

2-17

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Run the show bfd neighbors [ip brief|ip detail] command to check whether the BFD
configuration of the RSVP interface takes effect.
Check the BFD configuration result of RSVP interface on R1:
R1(config)#show bfd neighbors ip brief
LocalAddr PeerAddr LD RD Hold State Interface
172.20.130.213 172.20.130.214 8 1 150 UP xgei-0/5/0/3

R1(config)#show bfd neighbors ip detail


-------------------------------------------------------------
LocalAddr:172.20.130.213
PeerAddr :172.20.130.214
Local Discr:2050 Remote Discr:2049 State:UP

Holdown(ms):150 Interface: xgei-0/5/0/3


Vpnid:0 VRF Name:---
BFD Type:SingleHop
Instance Name:
----------------------------------------------------------------------------
Version:1 Dest UDP Port:3784 Final Bit:1
Local Diag:0 Demand Mode:0 Poll Bit:1
MinTxInt:50 MinRxInt:50 Multiplier:3
Received MinTxInt:50 Received MinRxInt:50 Received Multiplier:3
Length:24 Min Echo Interval:0
Min BFD Length:24 Max BFD Length:24

Rx Count:0 Rx Interval (ms) min/max/avg:0 /0 /0


Tx Count:66 Tx Interval (ms) min/max/avg:0 /0 /0
Registered Protocols:RSVP
Uptime:0 day(s),0 hour(s),0 minute(s)
Control Plane Rcv Phy Interface Name: xgei-0/5/0/3
============================================================================

2.1.3.4 Configuring RSVP LSP BFD

Configuration Description
As shown in Figure 2-6, RSVP LSP BFD is to use BFD to detect the LSP of an RSVP tunnel.
When it is combined with the hot standby function and when an invalid LSP becomes an
active LSP, the tunnel traffic should be changed over to the standby LSP.

2-18

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Figure 2-6 RSVP LSP BFD Configuration Instance

Configuration Flow
1. Enable OSPF-TE among R1, R2 and R3.
2. Configure a hot standby tunnel on R1 (R1-R3-R2) and configure BFD on the tunnel.

Configuration Commands
Run the following commands on R1:
R1(config)#interface gei-0/5/0/4
R1(config-if-gei-0/5/0/4)#ip address 54.1.1.1 255.255.255.0
R1(config-if-gei-0/5/0/4)#exit
R1(config)#interface gei-0/5/0/7
R1(config-if-gei-0/5/0/7)#ip address 57.1.1.1 255.255.255.0
R1(config-if-gei-0/5/0/7)#exit
R1(config)#interface loopback10
R1(config-if-loopback10)#ip address 10.10.10.1 255.255.255.255
R1(config-if-loopback10)#exit

R1(config)#router ospf 100


R1(config-ospf-100)#network 54.1.1.0 0.0.0.255 area 0
R1(config-ospf-100)#network 57.1.1.0 0.0.0.255 area 0
R1(config-ospf-100)#network 10.10.10.1 0.0.0.0 area 0
R1(config-ospf-100)#mpls traffic-eng area 0
R1(config-ospf-100)#exit

R1(config)#interface te_tunnel1
R1(config-if-te_tunnel1)#ip unnumbered loopback10
R1(config-if-te_tunnel1)#exit

2-19

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R1(config)#mpls traffic-eng
R1(config-mpls-te)#interface loopback10
R1(config-mpls-te-if-loopback10)#exit
R1(config-mpls-te)#router-id 10.10.10.1
R1(config-mpls-te)#interface gei-0/5/0/4
R1(config-mpls-te-if-gei-0/5/0/4)#exit
R1(config-mpls-te)#interface gei-0/5/0/7
R1(config-mpls-te-if-gei-0/5/0/7)#exit
R1(config-mpls-te)#tunnel te_tunnel1
R1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 10.10.10.2
R1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1
explicit-path identifier 1
R1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng record-route
R1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng hot-standby
protect 1 dynamic
R1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng bfd interval 30
min-rx 30 multiplier 5
R1(config-mpls-te-tunnel-te_tunnel1)#exit

R1(config-mpls-te)#explicit-path identifier 1
R1(config-mpls-te-expl-path-id-1)#next-address strict 54.1.1.3
R1(config-mpls-te-expl-path-id-1)#next-address strict 115.1.1.2

Run the following commands on R2:

R2(config)#interface gei-0/3/0/7
R2(config-if-gei-0/3/0/7)#ip address 57.1.1.2 255.255.255.0
R2(config-if-gei-0/3/0/7)#exit
R2(config)#interface gei-0/3/0/5
R2(config-if-gei-0/3/0/5)#ip address 115.1.1.2 255.255.255.0
R2(config-if-gei-0/3/0/5)#exit
R2(config)#interface loopback10
R2(config-if-loopback10)#ip address 10.10.10.2 255.255.255.255
R2(config-if-loopback10)#exit

R2(config)#router ospf 100


R2(config-ospf-100)#network 115.1.1.0 0.0.0.255 area 0
R2(config-ospf-100)#network 57.1.1.0 0.0.0.255 area 0
R2(config-ospf-100)#network 10.10.10.2 0.0.0.0 area 0
R2(config-ospf-100)#mpls traffic-eng area 0
R2(config-ospf-100)#exit

R2(config)#mpls traffic-eng
R2(config-mpls-te)#interface loopback10
R2(config-mpls-te-if-loopback10)#exit
R2(config-mpls-te)#router-id 10.10.10.2

2-20

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

R2(config-mpls-te)#interface gei-0/3/0/7
R2(config-mpls-te-if-gei-0/3/0/7)#exit
R2(config-mpls-te)#interface gei-0/3/0/5
R2(config-mpls-te-if-gei-0/3/0/5)#exit

Run the following commands on R3:


R3(config)#interface gei-0/1/1/4
R3(config-if-gei-0/1/1/4)#ip address 54.1.1.3 255.255.255.0
R3(config-if-gei-0/1/1/4)#exit
R3(config)#interface gei-0/1/1/5
R3(config-if-gei-0/1/1/5)#ip address 115.1.1.3 255.255.255.0
R3(config-if-gei-0/1/1/5)#exit
R3(config)#interface loopback10
R3(config-if-loopback10)#ip address 10.10.10.3 255.255.255.255
R3(config-if-loopback10)#exit

R3(config)#router ospf 100


R3(config-ospf-100)#network 115.1.1.0 0.0.0.255 area 0
R3(config-ospf-100)#network 54.1.1.0 0.0.0.255 area 0
R3(config-ospf-100)#network 10.10.10.3 0.0.0.0 area 0
R3(config-ospf-100)#mpls traffic-eng area 0
R3(config-ospf-100)#exit

R3(config)#mpls traffic-eng
R3(config-mpls-te)#interface loopback10
R3(config-mpls-te-if-loopback10)#exit
R3(config-mpls-te)#router-id 10.10.10.3
R3(config-mpls-te)#interface gei-0/1/1/4
R3(config-mpls-te-if-gei-0/1/1/4)#exit
R3(config-mpls-te)#interface gei-0/1/1/5
R3(config-mpls-te-if-gei-0/1/1/5)#exit

Configuration Verification
After the configuration, the tunnel1 on R1 is Up and a hot standby tunnel is generated. the
hot standby relation is ready. The RSVP LSP BFD session on R1 should be established
successfully. If the link between R3 and R2 is invalid. The traffic is changed over to the
hot standby tunnel.
Run the show bfd neighbors [rsvp-brief|rsvp-detail] command to check whether the RSVP
interface BFD configuration takes effect.
Check the tunnel on R1.
R1(config)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running

2-21

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 10.10.10.2 - gei-0/5/0/4 up/up
tunnel_1(hot) 10.10.10.2 - gei-0/5/0/7 up/up

R1#sho mpls traffic-eng fast-reroute


Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 9 Tun hd gei-0/1/0/6:14745 Tu1:3 ready
6

LSP midpoint frr information:


LSP identifier In-label Out intf/label FRR intf/label Status

R1#sho mpls traffic-eng tunnels hot-standby


Name: tunnel_1 (Tunnel1) Destination: 10.10.10.2
Status:
Admin: up Oper: up Path: valid Signalling: connected
Fast Reroute Protection: None
Hot-standby Protection: Ready

InLabel: -
OutLabel: gei-0/5/0/7, 3
RSVP Signalling Info :
Src 10.10.10.1, Dst 10.10.10.2, Tun_Id 1, Tun_Instance 10
RSVP Path Info:
Explicit Route: 57.1.1.1 57.1.1.2 10.10.10.2
Exclude Route: 10.10.10.3 115.1.1.2
Record Route: NULL
Tspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits
RSVP Resv Info:
Record Route: 10.10.10.2 57.1.1.2
Fspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits

Check the RSVP interface BFD configuration on R1.

R1#show bfd neighbors rsvp lsp brief


TunnelId LspId LD RD Hold State
te_tunnel1 16 33053 2662 150 UP

R1#show bfd neighbors rsvp lsp detail


----------------------------------------------------------------------------
TunnelId:te_tunnel1
LspId:16
LspRole:master
Local Discr:33053 Remote Discr:2662 State:UP

2-22

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Holddown(ms):150 BFD Type:RSVP LSP[Active]


Instance Name:
----------------------------------------------------------------------------
Version:1 Dest UDP Port:3784 Final Bit:1
Local Diag: 0 Demand Mode:0 Poll Bit:0
MinTxInt: 50 MinRxInt:50 Multiplier:3
Received MinTxInt: 10 Received MinRxInt:10 Received Multiplier:3

Length:24 Min Echo Interval:0

Rx Count:0 Rx Interval (ms) min/max/avg:0 /0 /0


Tx Count:0 Tx Interval (ms) min/max/avg:0 /0 /0
Registered Protocols:RSVP LSP
Uptime:0 day(s),0 hour(s),0 minute(s)
Control Plane Rcv Phy Interface Name: gei-0/5/0/4
============================================================================

/*When the R3-R2 link is invalid, the tunnel hot standby relation is active.*/
R1#sho mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 9 Tun hd gei-0/5/0/4:14745 Tu1:3 active
6

LSP midpoint frr information:


LSP identifier In-label Out intf/label FRR intf/label Status

R1#sho mpls traffic-eng tunnels hot-standby

Name: tunnel_1 (Tunnel1) Destination: 10.10.10.2


Status:
Admin: up Oper: up Path: valid Signalling: connected
Fast Reroute Protection: None
Hot-standby Protection: Backup lsp in use

R1(config)#show bfd neighbors rsvp lsp brief

2-23

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

2.2 TE Summary Refresh Introduction


2.2.1 TE Summary Refresh Introduction
Overview
RSVP is a typical soft status protocol, and the related LSP status information is maintained
by periodically sending refresh messages. If an RSVP node does not receive any refresh
message during the specified period, the corresponding LSP is removed.
Such feature of RSVP determines that, when there are thousands of tunnels, too much
pressure is put on system loads to maintain the refresh messages for these tunnels, and
a large amount of bandwidth is used to maintain these tunnels. Limited system resources
can be effectively utilized by reducing the traffic loads caused by refresh messages.
In the TE message acknowledgement and retransmission mechanism, a MESSAGE_ID
object is carried in a triggering message. When a neighbor receives the message, it sends
an ACK message to the message sender. This mechanism is applied only in triggering
messages, and no handlings are performed for PATH and RESV refresh messages.
The principle of summary refresh is to use a summary refresh message (carrying a
MESSAGE-ID object indicating a PATH or RESV message) to replace the standard PATH
and RESV message. The MESSAGE-ID object is the object applied in the TE message
acknowledgement and retransmission mechanism.

Implementation
To implement RSVP summary refresh, RFC extends the MESSAGE-ID object,
MESSAGE_ID_ACK object, MESSAGE_ID_LIST object, MESSAGE_ID_NACK object,
ACK message, and Srefresh message. For a description of the MESSAGE_ID object,
MESSAGE_ID_ACK object, and ACK message, refer to the "Introduction to TE Message
Acknowledgement and Retransmission" section.
l MESSAGE_ID_LIST object: identifies a received message.
The MESSAGE_ID object plays the same role as a PATH or RESV message.
l MESSAGE_ID_NACK object: After a MESSAGE_ID object is received, if the
corresponding status block is not found, a MESSAGE_ID_NACK object is generated.
This object is sent in an ACK message or carried in other messages through the TE
message acknowledgement and retransmission mechanism.
l Srefresh message: carries one or more MESSAGE_ID_LIST objects to refresh
multiple PATH or RESV messages that have been advertised.

The Srefresh message itself needs not to be acknowledged, and it must carry a
MESSAGE_ID object.

2-24

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Features
After a neighbor receives a summary refresh message, it determines the corresponding
PATH or RSB status block based on the MESSAGE_ID object. If the corresponding status
block is found, the neighbor considers that a PATH refresh message is received from
the upstream, or the RESV refresh message is received from the downstream, and then
updates the TTD time of the PSB or RSB.
If the neighbor does not find the corresponding PATH or RSB status block through the
MESSAGE_ID object, it sends a MESSAGE_ID_NACK object to the source end. After
the source end receives the MESSAGE_ID_NACK object, it constructs a standard PATH
or RESV refresh message based on the PATH or RSB status block corresponding to the
MESSAGE_ID object, and sends the message to the neighbor.
The advantage of summary refresh is that a message sender needs not to construct a
standard PATH or RESV message, and a neighboring node needs not to create a PKT
and compare objects in a message. This can reduce the traffic loads caused by refresh
messages, enhancing the utilization of limited system resources.

2.2.2 Configuring TE Summary Refresh


This procedure describes how to configure TE summary refresh.

Context
Before the TE summary refresh configuration, TE message acknowledgement and
retransmission should be enabled in the TE configuration mode of local and peer nodes.

Steps
1. To enable MPLS TE, run the following commands:

Command Function

ZXCTN(config)#mpls traffic-eng Enables MPLS TE, and enters


the TE configuration mode.

2. To configure summary refresh, perform the following steps:

Step Command Function

1 ZXCTN(config-mpls-te)#signalling retransmit Enables TE message


acknowledgement and
retransmission.

2 ZXCTN(config-mpls-te)#signalling refresh reduction Enables summary refresh.

3. To display the configuration result, run the following command:

2-25

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Command Function

ZXCTN#show ip rsvp refresh reduction Displays summary refresh


information.

End of Steps

2.2.3 TE Summary Refresh Configuration Example


Scenario Description
Figure 2-7 shows a sample network topology. It is required to establish a common RSVP
tunnel from P1 to P2 by using the OSPF TE-based strict routing mode, and configure
summary refresh in the TE configuration mode of P1 and P2.

Figure 2-7 TE Summary Refresh Configuration Example

Configuration Flow
1. Establish an OSPF neighbor relationship between the directly-connected interfaces of
P1 and P2, and enable OSPF TE.
2. Enable TE on the directly-connected interfaces of P1 and P2.
3. Configure the tunnel destination and strict routing mode on P1.
4. Enable summary refresh in the TE configuration mode of P1 and P2.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1

2-26

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P1(config-if-te_tunnel1)#ip unnumbered loopback1


P1(config-if-te_tunnel1)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#exit

Run the following commands on P2:

P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit

2-27

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#exit

Run the following commands to enable TE summary refresh:


P1(config-mpls-te)#signalling retransmit
P1(config-mpls-te)#signalling refresh reduction
P2(config-mpls-te)#signalling retransmit
P2(config-mpls-te)#signalling refresh reduction

Configuration Verification
Run the show mpls traffic-eng tunnels brief command on P1 to check whether the tunnel
has been established. The execution result is displayed as follows:
P1(config)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 2.1.1.1 - gei-0/1/0/2 up/up

It can be seen that the tunnel is in up status.


Run the show ip rsvp refresh reduction command on P1 to display the information of TE
summary refresh:
P1(config)#show ip rsvp refresh reduction
Retransmit:enabled
Initial retransmit delay:1000ms
Retransmit limit:3
Refresh Reduction:enabled
next_hop type tunnel_id lsp_id ingressegress
192.168.1.2 Path 1 2 1.1.1.12.1.1.1

Run the show ip rsvp refresh reduction command on P2 to display the information of TE
summary refresh:

P2(config-mpls-te)#show ip rsvp refresh reduction


Retransmit:enabled
Initial retransmit delay:1000ms
Retransmit limit:3
Refresh Reduction:enabled
next_hop type tunnel_id lsp_id ingressegress
192.168.1.1 Resv 1 2 1.1.1.12.1.1.1

2-28

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

2.3 TE Message Acknowledgement and Retransmission


2.3.1 Introduction to TE Message Acknowledgement and
Retransmission
Overview
RSVP messages are IP-based, but the forwarding of IP messages is unreliable: messages
may be lost or failed. Moreover, in some abnormal cases (for example, messages are
lost), message senders are not informed of failures. Before the summary refresh function
is enabled, an RSVP message is periodically sent to refresh an LSP. In the worst cases,
if an LSP is removed due to no receipt of an RSVP message during the specified period,
only the services related to the LSP are affected, and the consequence is not very serious.

Even though the use of the summary refresh mode can reduce the amount of refresh
messages, a negative effect also arises: The function and significance of refresh
messages are greatly enhanced. The loss of a refresh message may cause multiple
LSPs not to receive the corresponding refresh information, even causing the removal of
LSPs and service interruptions.
To relieve and eliminate the negative effect, message acknowledgement and
retransmission is used to guarantee the summary refresh function. In this way, messages
that need to be acknowledged are retransmitted when no acknowledgements are
received, which ensures the reliability of message transmission.

Implementation
To implement RSVP message acknowledgement and retransmission, RFC adds a
MESSAGE-ID object, a MESSAGE_ID_ACK object, and an ACK message.
l MESSAGE_ID object: uniquely identifies a message, and indicates whether the
message should be acknowledged by the peer end.
l MESSAGE_ID_ACK object: acknowledges the corresponding MESSAGE_ID object.
If the flag in the MESSAGE_ID object of the message sender is not 1, this object
cannot be acknowledged.

l ACK message: acknowledges multiple messages by carrying multiple


MESSAGE_ID_ACK objects.
An ACK message does not need to be acknowledged, and therefore it cannot carry
any MESSAGE_ID object.

Features
l Explicit acknowledgement and implicit acknowledgement

In general, receiving a MESSAGE_ID_ACK object is referred to as explicit


acknowledgement.

2-29

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

In some cases, a received RSVP message does not carry a MESSAGE_ID_ACK


object, but the MESSAGE_ID object carried in the RSVP message functions as the
MESSAGE_ID_ACK object. This acknowledgement mode is referred to as implicit
acknowledgment.
l Immediate acknowledgement and batch delayed acknowledgement
If a received message needs to be acknowledged, the message receiver has two
options:
Immediate acknowledgement: replies an ACK message for the received
message (such as the NOTIFY message) immediately.
This acknowledgement mode has a real-time feature but lower efficiency. An
ACK message can only acknowledge a received message.
Batch delayed acknowledgement: buffers the ACK objects for a received
message temporarily, and sends these ACK objects all at once.

2.3.2 Configuring TE Message Acknowledgement and


Retransmission
This procedure describes how to configure TE message acknowledgement and
retransmission.

Context
TE message acknowledgement and retransmission should be configured in the TE
configuration mode of local and peer nodes.

Steps
1. Enable the MPLS TE.

Command Function

ZXCTN(config)#mpls traffic-eng Enables MPLS TE, and enters


the TE configuration mode.

2. Configure TE message acknowledgement and retransmission.

Step Command Function

1 ZXCTN(config-mpls-te)#signalling retransmit Configures TE message


acknowledgement and
retransmission.

2-30

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Step Command Function

2 ZXCTN(config-mpls-te)#signalling retransmit interval Sets the message


< interval-value > retransmission interval
(in milliseconds) in TE
message acknowledgement
and retransmission, range:
5003000.

3 ZXCTN(config-mpls-te)#signalling retransmit limit < Sets the number of


limit-count > times that a message is
retransmitted in TE message
acknowledgement and
retransmission, range: 210.

3. Verify the configuration.

Command Function

ZXCTN#show ip rsvp refresh reduction Displays information of TE


message acknowledgement and
retransmission.

End of Steps

2.3.3 TE Message Acknowledgement and Retransmission


Configuration Example
Scenario Description
Figure 2-8 shows a sample network topology. It is required to establish a common RSVP
tunnel from P1 to P2 by using the OSPF TE-based strict routing mode, and configure TE
message acknowledgement and retransmission in the TE mode of P1 and P2.

Figure 2-8 TE Message Acknowledgement and Retransmission Configuration Example

2-31

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Configuration Flow
1. Establish an OSPF neighbor relationship between the directly-connected interfaces of
P1 and P2, and enable OSPF TE.
2. Enable TE on the directly-connected interfaces of P1 and P2.
3. Configure the tunnel destination and strict routing mode on P1.
4. Configure TE acknowledgement and retransmission in the TE configuration mode of
P1 and P2.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#exit

2-32

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Run the following commands on P2:


P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#exit

Configuration Verification
Run the show mpls traffic-eng tunnels brief command on P1 to check whether the tunnel
has been established. The execution result is displayed as follows:
P1(config)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 2.1.1.1 - gei-0/1/0/2 up/up

It can be seen that the tunnel is in up status.


Run the show ip rsvp refresh reduction command on P1 to check the information of
message acknowledgement and retransmission. The execution result is displayed as
follows:
P1(config)#show ip rsvp refresh reduction
/*TE message acknowledgement and retransmission is disabled*/
Retransmit:disabled
Initial retransmit delay:1000ms
Retransmit limit:3
Refresh Reduction:disabled

2-33

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Run the following commands on P1 to configure message acknowledgement and


retransmission:
P1(config-mpls-te)#signalling retransmit
P1(config-mpls-te)#signalling retransmit interval 2000
P1(config-mpls-te)#signalling retransmit limit 5

P2 has the same configuration as P1.


Run the show ip rsvp refresh reduction command on P1 to check the information of
message acknowledgement and retransmission. The execution result is displayed as
follows:
P1(config-mpls-te)#sho ip rsvp refresh reduction
/*TE message acknowledgement and retransmission is enabled*/
Retransmit:enabled
Initial retransmit delay:2000ms
Retransmit limit:5
Refresh Reduction:disabled

2.4 TE Authentication Configuration


2.4.1 TE Authentication Overview
Authentication Introduction
RSVP authentication mechanism (cryptographic authentication) is a method for encrypting
messages on the sender's end, and authenticating messages on the receiver's end
between two neighboring nodes in a RSVP networking solution. By using this mechanism,
RSVP messages can be prevented from being modified illegally or suffering from an
attack that causes repeated messages transmission.
This authentication function has the following features:
l Based on the existing flow of RSVP protocol, the RSVP message authentication
function is implemented through adding operations in RSVP transmission and
reception packages.
l Cryptographic authentication is more reliable than message checksum. Thus
message transmission through an interface that has an authentication mechanism
can be free from RSVP message checksum.

Authentication Implementation
To implement the RSVP authentication function, the field function of INTG objects,
challenge objects, challenge messages and challenge-response messages are extended.

l An INTG object carries the information to be checked for authentication between


neighboring nodes. For the nodes that have been configured with an authentication
mechanism, all messages except challenge messages that are sent from the node

2-34

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

must carry INTG objects. The received messages also carry INTG objects that are
required to be checked.
l A challenge object carries a key ID and a timestamp-based coolie file. This object is
only used between the interactions of challenge messages and challenge-response
messages.
l For challenge messages, when the receiver end receives a RSVP message in which
the challenge consultation bit is set to 1, check the consultation status. If the status
is not successful, challenge consultation will be initialized, and a challenge message
will be sent to the sender's end.
l A response message is the response to a challenge message. It contains an INTG
object and a challenge object. Among which, the challenge object is the one carried
in the original challenge message.

Authentication Features
The RSVP authentication method is to generate a data abstract based on packets and
passwords using a simplex algorithm. After the packets and the abstract are sent to a
neighbor, the neighbor also generates the abstract based on the packets and passwords
using the same algorithm, and then checks the two abstracts to confirm whether the
packets are intact. Meanwhile, to avoid vicious transmission of packets repeatedly, when
packets are sent, a sequence number field is added. the value for this field increases
continuously. If the sequence number is too old, the corresponding packets will also be
deleted.

The RSVP authentication requires a password. In this way, the unauthorized routers
cannot operate as a neighbor. Even with constructed packets, without the corresponding
password, a RSVP connection to the router cannot be created. The RSVP key verification
is performed between two RSVP neighbors. The key used by the two neighbors cannot
be different. Otherwise, the authentication will fail, and the RSVP packets received by the
interface will be deleted.
A RSVP key can be encrypted in two modes: MD5 and SHA-1. The default mode is MD5.
To promote the security and reliability of RSVP authentication, the enhanced functions
of RSVP authentication are provided, including slide-window technology and handshake
mechanism. Sliding windows are used to prevent unordered packets. The handshake
mechanism (authentication negotiation) is used to prevent nodes being attacked by
repeatedly-sent packets during reboot.

2.4.2 Configuring TE Authentication


This procedure describes how to configure TE authentication.

Context
You should configure two neighboring nodes to implement the authentication function.

2-35

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Steps
1. Enable MPLS TE.

Step Command Function

1 ZXCTN(config)#mpls traffic-eng Enables MPLS TE


globally, and enters the
TE configuration mode.

2 ZXCTN(config-mpls-te)#interface <interface-name> Enables MPLS TE on the


interface.

2. Enable the authentication function for an interface.

Step Command Function

1 ZXCTN(config-mpls-te-if-interface-name)#authe Enables the authentication


ntication function for an interface.

2 ZXCTN(config-mpls-te-if-interface-name)#authent As the receiver's end,


ication challenge perform Challenge/Response
handshake with a neighbor.

3 ZXCTN(config-mpls-te-if-interface-name)#authent As the sender's end,


ication challenge-imp perform Challenge/Response
handshake with a neighbor.

4 ZXCTN(config-mpls-te-if-interface- Sets authentication key.


name)#authentication key passphrase {encrypted <encrypted-password>:
<encrypted-password>|<password>} encrypted authentication
key.
<password>: unencrypted
authentication key.

5 ZXCTN(config-mpls-te-if-interface-name)#authen Specifies an authentication


tication type {md5 | sha1} type.

6 ZXCTN(config-mpls-te-if-interface-name)#authent Specifies the size of the


ication window-size <window-size> window for displaying
authentication messages,
range: 164.

3. To displays the configuration results, run the following command:

Command Function

ZXCTN#show ip rsvp authentication Displays the authentication relationship.

End of Steps

2-36

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

2.4.3 TE Authentication Configuration Instance


Configuration Instruction
As shown in Figure 2-9, the establishment of common RSVP tunnel from P1 to P2 uses
OSPF TE and a strict routing mode. Under the interface, SHA 1 authentication mode is
used.

Figure 2-9 TE Interface Authentication Configuration

Configuration Method
1. Establish OSPF neighbors between P1 and P2 straight-through interfaces, and enable
TE function in the OSPF protocol.
2. Enable TE for P1 and P2 straight-through interfaces. Under these interfaces, use the
authentication mode. Enable challenge and challenge-imp for P1 and P2 interfaces,
and use SHA1 authentication mode. The password is 12345678.
3. On P1, set the tunnel destination and the strict routing mode.
4. Set a static route that routes to the destination on P1. The next hop is Tunnel1. In this
way, messages are forwarded through Tunnel1.

Configuration Steps
The following describes the configuration on P1:
P1(config)#interfacegei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit

P1(config)#router ospf 1

2-37

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#authentication
P1(config-mpls-te-if-gei-0/1/0/2)#authentication type sha1
/*Set SHA1 as the authentication type for TE interface*/
P1(config-mpls-te-if-gei-0/1/0/2)#authentication key passphrase 12345678
/*Set authentication key*/
P1(config-mpls-te-if-gei-0/1/0/2)#authentication challenge
P1(config-mpls-te-if-gei-0/1/0/2)#authentication challenge-imp
P1(config-mpls-te-if-gei-0/1/0/2)#authentication window-size 10
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1
explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#exit
P1(config)#ip route 172.20.1.2 255.255.255.255 te_tunnel1

The following describes the configuration on P2:


P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0

2-38

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#authentication
P2(config-mpls-te-if-gei-0/1/0/2)#authentication challenge
P2(config-mpls-te-if-gei-0/1/0/2)#authentication challenge-imp
P2(config-mpls-te-if-gei-0/1/0/2)#authentication type sha1
/*Set SHA1 as the authentication type for TE interface*/
P2(config-mpls-te-if-gei-0/1/0/2)#authentication key passphrase 12345678
/*Set authentication key*/
P2(config-mpls-te-if-gei-0/1/0/2)#authentication window-size 10
P2(config-mpls-te-if-gei-0/1/0/2)#exit

The following describes the configuration on R2:


R2(config)#interface gei-0/1/0/2
R2(config-if-gei-0/1/0/2)#no shutdown
R2(config-if-gei-0/1/0/2)#ip address 172.20.1.2 255.255.255.0
R2(config-if-gei-0/1/0/2)#exit

Configuration Verification
On P1, check the tunnel status. The tunnel is in up status, and the authentication
information of Tunnel1 is available:

P1(config)#show mpls traffic-eng tunnels brief


Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 2.1.1.1 - gei-0/1/0/2 up/up

P1(config)#show mpls traffic-eng interface detail gei-0/1/0/2


gei-0/1/0/2:
State:
ENABLE
Traffic-eng metric: 0
Authentication: enabled
Key: <encrypted>
Type: sha-1
Challenge: enabled
Challenge-imp: Implemented

2-39

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Window size: 10
BFD: disabled
Backup path:
None
SRLGs: None
Intf Fast-Hello: DISABLE
Fast-Hello interval: 10000
Fast-Hello miss: 4
Convergence-Ratio: 100(%)

On P1, check the TE authentication information:


P1#show ip rsvp authentication
Neighbor: 192.168.1.2
Interface: gei-0/1/0/2
Direction: Send
Crypto Auth:Enable
Send Key ID (hex): 0x6896a0010000
Next valid seq: 1c9f 6bafc3
Challenge-imp: Configured
challenge-imp state: CHALL_IMP_WAIT
Direction: recv
Challenge: Configured
challenge state: CHALL_SUCC
Rcv Key ID (hex): 0x6896a0030000
Windowsize: 10

2.5 Confiugration of MPLS TE Crossing Several AS


Domains
2.5.1 MPLS TE Crossing Several AS Domains Overview
MPLS TE Crossing Several AS Domains Introduction
MPLS TE creates an LSP tunnel crossing the network to transmit the traffic. There are two
types of LSPs that crossing the network:
l Inter-Area TE LSP: The LSP of the MPLS TE tunnel crosses the node in the topology
database that is not in the ingress router. This node is in other OSPF area or the IS-IS
level.
l Inter-AS TE LSP: The LSP of the MPLS TE tunnel crosses the node who is not in the
AS of the ingress router.
Inter-Area TE LSP and Inter-AS TE LSP are advertised in the ERO through the sub-object
of the loose hop. The ingress router does not know the strict path of the other areas, so

2-40

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

the loose display mode must be used. The lower router handles the sub-object of these
loose hop and set it to the strict hop.
For the Inter-Area TE tunnel, establish a loose explicit path in the router on the ingress
interface of the tunnel. Specify that the LSP must pass the Area Border Router (ABR)
through the next-address loose command. The ingress router and the ABR in this explicit
path segment the LSP. For each segment, the path to the next ABR or the egress interface
of the tunnel is calculated separately.
For the Inter-AS tunnel, the AS does not know the topology of another AS, so the head-end
LSR can only calculate the LSP of the local Autonomous System Boundary Router (ASBR).
In this case, it is required to set the interface to passive-interface mode on the ASBR and
flood it to the Interior Gateway Protocol (IGP) in the ASBR. After that, the RSVP-TE could
send the signalling to the router where the passive interface is located according to the path
calculated by CSPF. The router sends the receivesignallingng to the ASBR of another AS.
The ASBR calculates the loose path to the strict path. In this case, the TE LSP crossing
several domains is established.

MPLS TE Crossing Several AS Domains Work Flow


The application of RSVP-TE crossing several domains is classified into two categories,
including INTER-AREA and INTER-AS. For the INTER-AREA application, you only need
to set the path (in loose mode) for the router connected with the ingress of the tunnel during
the configuration. At the same time, you needs to specify that the LSP must pass ABR
through the next-address loose command. The working principle of INTER-AS application
is as follows:
To realize INTER-AS application, it is required to calculate the TE LSP. If the AS where the
head-end LSR responsible for calculating the TE LSP is located uses the OSPF protocol,
and the AS is composed of multiple areas, you need to consider how to calculate the
LSP crossing several domains (Inter-AS). An AS does not know the topology structure
of another AS, so the head-end LSR can only calculates the LSP of ASBR. In this case,
the key point is that how to calculate the LSP of the ASBR at the end of the link crossing
different domains. If the LSP of the ASBR at the other end of the link is calculated, the
head-end LSR completes the LSP calculation task. In this case, add the strict explicit path
of the ASBR in another AS to the loose explicit path of the destination node and then send
it to the ASBR of another AS. The remanent loose explicit path is calculated as the strict
explicit path.

As shown in Figure 2-10, it is assumed that LSR1, LSR2 and LSR3 belong to AS100 and
the same area area0, and LSR4, LSR5 and LSR6 belong to AS200. LSR3 is the ASBR for
AS100, and LSR4 is the ASBR for AS200. Now it is required to establish a TE LSP from
LSR1 to LSR6 and calculate this LSP.

2-41

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 2-10 TE LSP Calculation Scheme

According to the current mechanism, the LSP from the LSR1 to the LSR3 could be
calculated. The LSR3 does not know how to get to the LSR4.
The method is as follows: configure a path to the ASBR (LSR4) of another AS on the ASBR
(LSR3) of the local AS. The LSR3 reports the inter-domain link and LSR4 at the other end
of the link to teh AS100. In this case, the head-end LSR1 could calculate the LSP from
LSR1 to LSR3 and from LSR3 to LSR4. Set the POSO/1 interface on the LSR3 to mpls
traffic-eng passive interface. In this case, the LSR3 forms an Opaque LSA (type 10) or a
TLV22 neighbor.
When RSVP-TE establishes the tunnel, the LSR3 can calculate the strict explicit path to
the ASBR (LSR4) of another AS after the signaling is sent to the ASBR (LSR3) and sends
the strict explicit path to the ASBR (LSR4) of another AS for processing. In this case,
the LSR4 calculates the remanent loose path to the strict path to complete the TE LSP
establishment in different domains.

2.5.2 Configuring the MPLS TE Crossing Several AS Domains


This procedure describes how to configure MPLS TE Crossing Several AS Domains.

Steps
1. Enable the TE function globally.

Command Function

ZXCTN(config)#mpls traffic-eng Enables the TE function globally.

2. Configure the TE interface passive-interface attribute.

Step Command Function

1 ZXCTN(config-mpls-te)#interface <interface-name> Enters the TE interface


configuration mode.

2 ZXCTN(config-mpls-te-if-interface-name)#p Configures the TE interface


assive-interface nbr-te-id <A.B.C.D>[{[nbr-if-addr passive-interface attribute.
<if-address>],[nbg-igp-id {isis <sysid>| ospf <sysid>}]}]

2-42

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

<A.B.C.D>: indicates the TE router-id of the peer neighbor router of this link.
<if-addr>: indicates the interface address of the remote ASBR (it is the TE RouterID
of the default neighbor if not configured).
3. To display the configuration results, run the following commands:

Commands Functions

ZXCTN#show mpls traffic-eng interface detail Displays the detailed configuration of


[<interface-name>] the TE interface.

ZXCTN#show ip ospf database opaque-area Displays whether the egress of the


ASBR generates Point-to-point LSA
(type 10).

ZXCTN#show isis database verbose Displays whether the neighbor


information crossing several domains
exists in the database.

End of Steps

2.5.3 MPLS TE Crossing Several AS Domains Configuration


Instance
2.5.3.1 Configuring an OSPF TE Crossing Several AS Domains

Configuration Descriptions
The network topology is shown in Figure 2-11. R1 and R3 locate in the AS100, and R2
locates in the AS 200. Configure the global OSPF instance and establish the OSPF
neighbor. Enable the TE function on the egress interface of the ASBR1, configure
passive-interface to form an Opaque LSA (point-to-point LAS with type 10) and floods to
its own area.

Figure 2-11 Configuration Instance of OSPF TE Crossing Several AS Domains

2-43

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Configuration Flow
1. Establish the OSPF neighbor between the R1 and the R3 in the same AS100 and
enable TE.
2. Enable the TE on two interface direct connected with the R1 and the R3.
3. Enable the TE on the egress interface of the ASBR1 and configure passive-interface.
4. Enable OSPF TE on ASBR2 and enable the TE on the gei-0/5/0/3 interface.
5. Configure a TE tunnel from R1 to R2 passing through ASBR1 in loose mode.
6. Configure a static route to the destination on the R1 router. The next hop is Tunnel1.
In this case, the traffic is transmitted through the tunnel.

Configuration Commands
The configuration of R1 is as follows:
Interface configuration:
R1(config)#interface gei-0/1/0/3
R1(config-if-gei-0/1/0/3)#no shutdown
R1(config-if-gei-0/1/0/3)#ip address 131.4.1.1 255.255.255.0
R1(config-if-gei-0/1/0/3)#exit
R1(config)#interface loopback61
R1(config-if-loopback61)#ip address 61.61.61.1 255.255.255.255
R1(config-if-loopback61)#exit

OSPF and OSPF TE configuration:


R1(config)#router ospf 777
R1(config-ospf-777)#router-id 61.61.61.1
R1(config-ospf-777)#network 61.61.61.1 0.0.0.0 area 0
R1(config-ospf-777)#network 131.4.1.0 0.0.0.255 area 0
R1(config-ospf-777)#mpls traffic-eng area 0
R1(config-ospf-777)#exit

MPLS-TE configuration:
R1(config)#mpls traffic-eng
R1(config-mpls-te)#interface loopback61
R1(config-mpls-te-if-loopback61)#exit
R1(config-mpls-te)#router-id 61.61.61.1
R1(config-mpls-te)#interface gei-0/1/0/3
R1(config-mpls-te-if-gei-0/1/0/3)#exit
R1(config-mpls-te)#exit

R1(config)#interface te_tunnel100
R1(config-if-te_tunnel100)#ip unnumbered loopback61
R1(config-if-te_tunnel100)#exit
R1(config)#mpls traffic-eng
R1(config-mpls-te)#tunnel te_tunnel 100
R1(config-mpls-te-tunnel-te_tunnel100)#tunnel destination ipv4 61.61.61.2

2-44

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

R1(config-mpls-te-tunnel-te_tunnel100)#tunnel mpls traffic-eng path-option 1


explicit-path identifier 100
R1(config-mpls-te-tunnel-te_tunnel100)#exit
R1(config-mpls-te)#explicit-path identifier 100
R1(config-mpls-te-expl-path-id-100)#next-address loose 61.61.61.3
R1(config-mpls-te-expl-path-id-100)#exit
R1(config-mpls-te)#exit
R1(config)#ip route 172.20.1.2 255.255.255.255 te_tunnel1

The configuration of R2 is as follows:


Interface configuration:
R2(config)#interface gei-0/5/0/3
R2(config-if-gei-0/5/0/3)#no shutdown
R2(config-if-gei-0/5/0/3)#ip address 131.4.2.1 255.255.255.0
R2(config-if-gei-0/5/0/3)#exit
R2(config)#interface loopback61
R2(config-if-loopback61)#ip address 61.61.61.2 255.255.255.255
R2(config-if-loopback61)#exit

OSPF TE configuration:

R2(config)#router ospf 777


R2(config-ospf-777)#router-id 61.61.61.2
R2(config-ospf-777)#mpls traffic-eng area 0

MPLS-TE configuration:
R2(config)#mpls traffic-eng
R2(config-mpls-te)#interface loopback61
R2(config-mpls-te-if-loopback61)#exit
R2(config-mpls-te)#router-id 61.61.61.2
R2(config-mpls-te)#interface gei-0/5/0/3
R2(config-mpls-te-if-gei-0/5/0/3)#end

The configuration of R3 is as follows:


Interface configuration:
R3(config)#interface gei-0/1/0/3
R3(config-if-gei-0/1/0/3)#no shutdown
R3(config-if-gei-0/1/0/3)#ip address 131.4.1.2 255.255.255.0
R3(config-if-gei-0/1/0/3)#exit
R3(config)#interface gei-0/1/0/4
R3(config-if-gei-0/1/0/4)#no shutdown
R3(config-if-gei-0/1/0/4)#ip address 131.4.2.2 255.255.255.0
R3(config-if-gei-0/1/0/4)#exit
R3(config)#interface loopback61
R3(config-if-loopback61)#ip address 61.61.61.3 255.255.255.255
R3(config-if-loopback61)#exit

2-45

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

OSPF and OSPF TE configuration:


R3(config)#router ospf 777
R3(config-ospf-777)#router-id 61.61.61.3
R3(config-ospf-777)#network 131.4.1.0 0.0.0.255 area 0.0.0.0
R3(config-ospf-777)#network 61.61.61.3 0.0.0.0 area 0
R3(config-ospf-777)#mpls traffic-eng area 0
R3(config-ospf-777)#exit

MPLS-TE configuration:
R3(config)#mpls traffic-eng
R3(config-mpls-te)#interface loopback61
R3(config-mpls-te-if-loopback61)#exit
R3(config-mpls-te)#router-id 61.61.61.3
R3(config-mpls-te)#interface gei-0/1/0/3
R3(config-mpls-te-if-gei-0/1/0/3)#exit
R3(config-mpls-te)#interface gei-0/1/0/4
R3(config-mpls-te-if-gei-0/1/0/4)#passive-interface nbr-te-id 61.61.61.2
nbr-if-addr 131.4.2.1 nbr-igp-id ospf 61.61.61.2

The configuration of R5 is as follows:

R5(config)#interface gei-0/2/1/1
R5(config-if-gei-0/2/1/1)#no shutdown
R5(config-if-gei-0/2/1/1)#ip address 172.20.1.2 255.255.255.0
R5(config-if-gei-0/2/1/1)#exit

Configuration Verification
Show the tunnel establishment information on the R1 router:
R1(config)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_100 61.61.61.2 - gei-0/1/0/3 up/up
R1(config)#show mpls traffic-eng tunnels te_tunnel 100
Name: tunnel_100 (Tunnel100) Destination: 61.61.61.2
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit identifier 100 (Basis for Setup)
Actual Bandwidth: N/A
Hot-standby protection:
no path options protected
Config Parameters:

2-46

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Hop Prior: disabled Upper Limit: -
Record-Route: disabled
Facility Fast-reroute: disabled
Detour Fast-reroute: disabled
Hot-standby-lsp Fast-reroute: disabled
BFD: disabled
Policy class: default
Track Name:
Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: disabled
Tunnel-Status: enabled
Bandwidth: 0 kbps (Global) Priority: 7 7 Affinity: 0x0/0x0
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
AutoRoute: disabled
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0

InLabel:-
OutLabel:gei-0/1/0/3,147456

RSVP Signalling Info :


Src 61.61.61.1, Dst 61.61.61.2, Tun_Id 100, Tun_Instance 105
RSVP Path Info:
Explicit Route: 131.4.1.1 131.4.1.2 61.61.61.2
Exclude Route: NULL
Record Route: NULL
Tspec:ave rate= 0 kbits, burst= 2000 bytes, peak rate = 0 kbits
RSVP Resv Info:
Record Route: NULL
Fspec:ave rate= 0 kbits, burst= 2000 bytes, peak rate = 0 kbits

Check the database information on the ASBR to see whether the egress interface of the
ASBR generates Point-to-point LSA (type 10):
R3(config)#show ip ospf database opaque-area area 0

2-47

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

OSPF Router with ID (61.61.61.33) (Process ID 777)


Type-10 Opaque Link Area Link States (Area 0.0.0.0)
LS age: 665
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 1.0.0.0
Opaque Type: 1
Opaque ID: 0
Advertising Router: 61.61.61.33
LS Seq Number: 0x80000001
Checksum: 0xabf2
Length: 28
Fragment number : 0

MPLS TE router ID : 61.61.61.3

Number of Links : 0

LS age: 735
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 1.0.0.0
Opaque Type: 1
Opaque ID: 0
Advertising Router: 61.61.61.2
LS Seq Number: 0x80000001
Checksum: 0x5c62
Length: 28
Fragment number : 0

MPLS TE router ID : 61.61.61.2

Number of Links : 0

LS age: 752
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 1.0.0.0
Opaque Type: 1
Opaque ID: 0
Advertising Router: 61.61.61.1
LS Seq Number: 0x80000001
Checksum: 0x5868
Length: 28
Fragment number : 0

2-48

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

MPLS TE router ID : 61.61.61.1

Number of Links : 0

LS age: 655
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 1.0.0.1
Opaque Type: 1
Opaque ID: 1
Advertising Router: 61.61.61.33
LS Seq Number: 0x80000001
Checksum: 0xd66f
Length: 124
Fragment number : 1

Link connected to Broadcast network


Link ID : 131.4.1.1
Interface Address : 131.4.1.2
Neighbor Interface Address : 0.0.0.0
Admin Metric : 1
Maximum bandwidth : 125000000
Maximum reservable bandwidth : 0
Number of Priority : 8
Priority 0 : 0 Priority 1 : 0
Priority 2 : 0 Priority 3 : 0
Priority 4 : 0 Priority 5 : 0
Priority 6 : 0 Priority 7 : 0
Affinity Bit : 0x0

Number of Links : 1

LS age: 664
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 1.0.0.2
Opaque Type: 1
Opaque ID: 2
Advertising Router: 61.61.61.2
LS Seq Number: 0x80000002
Checksum: 0x99c8
Length: 124
Fragment number : 2

2-49

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Link connected to Broadcast network


Link ID : 131.4.2.1
Interface Address : 131.4.2.1
Neighbor Interface Address : 0.0.0.0
Admin Metric : 1
Maximum bandwidth : 125000000
Maximum reservable bandwidth : 0
Number of Priority : 8
Priority 0 : 0 Priority 1 : 0
Priority 2 : 0 Priority 3 : 0
Priority 4 : 0 Priority 5 : 0
Priority 6 : 0 Priority 7 : 0
Affinity Bit : 0x0

Number of Links : 1

LS age: 659
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 1.0.0.2
Opaque Type: 1
Opaque ID: 2
Advertising Router: 61.61.61.1
LS Seq Number: 0x80000003
Checksum: 0x6bf8
Length: 124
Fragment number : 2

Link connected to Broadcast network


Link ID : 131.4.1.1
Interface Address : 131.4.1.1
Neighbor Interface Address : 0.0.0.0
Admin Metric : 1
Maximum bandwidth : 125000000
Maximum reservable bandwidth : 0
Number of Priority : 8
Priority 0 : 0 Priority 1 : 0
Priority 2 : 0 Priority 3 : 0
Priority 4 : 0 Priority 5 : 0
Priority 6 : 0 Priority 7 : 0
Affinity Bit : 0x0

2-50

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Number of Links : 1

LS age: 31
Options: (No TOS-capability, DC)
LS Type: Opaque Area Link
Link State ID: 1.0.0.4
Opaque Type: 1
Opaque ID: 4
Advertising Router: 61.61.61.33
LS Seq Number: 0x80000001
Checksum: 0x3524
Length: 124
Fragment number : 4

Link connected to Point-to-point network


Link ID : 61.61.61.2
Interface Address : 131.4.2.2
Neighbor Interface Address : 61.61.61.2
Admin Metric : 1
Maximum bandwidth : 125000000
Maximum reservable bandwidth : 0
Number of Priority : 8
Priority 0 : 0 Priority 1 : 0
Priority 2 : 0 Priority 3 : 0
Priority 4 : 0 Priority 5 : 0
Priority 6 : 0 Priority 7 : 0
Affinity Bit : 0x0

Number of Links : 1

Show the details about the TE interface on the ASBR.


R3(config)#show mpls traffic-eng interface detail gei-0/1/0/4
gei-0/1/0/4:
State:
ENABLE
Traffic-eng metric:0
Authentication: disabled
Key: <encrypted>
Type: md5
Challenge: disabled
Challenge-imp: Not implemented(simulated)
Window size: 32
BFD: disable
Passive Info:

2-51

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

nbr_te_id nbr_if_addr ospf_rid isis_id


61.61.61.2 131.4.2.1 61.61.61.2
Backup path:
None
SRLGs: None
Intf Fast-Hello : DISABLE
Fast-Hello interval : 10000
Fast-Hello miss : 4

2.5.3.2 Configuring an IS-IS TE Crossing Several AS Domains

Configuration Descriptions
The network topology is shown in Figure 2-12. R1 and R3 locates in AS100 and R2 locates
in AS200. R1 and R3 locate in the same area. Configure the global IS-IS instance and
establish the IS-IS neighbor. Enable the TE function on the egress interface of the ASBR1,
configure passive-interface to form a point-to-point database.

Figure 2-12 Configuration Instance of IS-IS TE Crossing Several AS Domains

Configuration Flow
1. Establish the IS-IS neighbor between the R1 and the R3 in the same AS100 and enable
IS-IS TE.
2. Enable the TE on two interface direct connected with the R1 and the R3.
3. Enable the TE on the egress interface of the ASBR1 and configure passive-interface.
4. Enable IS-IS TE on ASBR2 and enable the TE on the ingress gei-0/5/0/3 interface.
5. Configure a TE tunnel from R1 to R2 passing through ASBR1 in loose mode.

Configuration Commands
The configuration of R1 is as follows:
Interface configuration:
R1(config)#interface gei-0/1/0/3
R1(config-if-gei-0/1/0/3)#no shutdown
R1(config-if-gei-0/1/0/3)#ip address 131.4.1.1 255.255.255.0
R1(config-if-gei-0/1/0/3)#exit
R1(config)#interface loopback61
R1(config-if-loopback1)#ip address 61.61.61.1 255.255.255.255

2-52

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

R1(config-if-loopback1)#exit

IS-IS and IS-IS TE configuration:


R1(config)#router isis 1
R1(config-isis-1)#area 01
R1(config-isis-1)#system-id 1236.4562.7895
R1(config-isis-1)#metric-style wide
R1(config-isis-1)#mpls traffic-eng level-1
R1(config-isis-1)#interface gei-0/1/0/3
R1(config-isis-1-if-gei-0/1/0/3)#ip router isis
R1(config-isis-1)#interface loopback61
R1(config-isis-1-if-loopback61)#ip router isis
R1(config-isis-1-if-loopback61)#exit
R1(config-isis-1)#exit

MPLS-TE configuration:
R1(config)#mpls traffic-eng
R1(config-mpls-te)#interface gei-0/1/0/3
R1(config-mpls-te-if-gei-0/1/0/3)#exit
R1(config-mpls-te)#exit
R1(config)#interface te_tunnel100
R1(config-if-te_tunnel100)#ip unnumbered loopback1
R1(config-if-te_tunnel100)#exit

R1(config)#mpls traffic-eng
R1(config-mpls-te)#interface loopback61
R1(config-mpls-te-if-loopback61)#exit
R1(config-mpls-te)#router-id 61.61.61.1
R1(config-mpls-te)#tunnel te_tunnel 100
R1(config-mpls-te-tunnel-te_tunnel100)#tunnel destination ipv4 61.61.61.2
R1(config-mpls-te-tunnel-te_tunnel100)#tunnel mpls traffic-eng path-option 1
explicit-path identifier 100
R1(config-mpls-te-tunnel-te_tunnel100)#exit
R1(config-mpls-te)#explicit-path identifier 100
R1(config-mpls-te-expl-path-id-100)#next-address loose 61.61.61.3
R1(config-mpls-te-expl-path-id-100)#exit
R1(config-mpls-te)#exit

The configuration of R2 is as follows:


Interface configuration:

R2(config)#interface gei-0/5/0/3
R2(config-if-gei-0/5/0/3)#no shutdown
R2(config-if-gei-0/5/0/3)#ip address 131.4.2.1 255.255.255.0
R2(config-if-gei-0/5/0/3)#exit
R2(config)#interface loopback61

2-53

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R2(config-if-loopback61)#ip address 61.61.61.2 255.255.255.255


R2(config-if-loopback61)#exit

IS-IS and IS-IS TE configuration:


R2(config)#router isis 1
R2(config-isis-1)#area 10
R2(config-isis-1)#system-id 2355.255E.3666
R2(config-isis-1)#metric-style wide
R2(config-isis-1)#mpls traffic-eng level-1
R2(config-isis-1)#interface loopback61
R2(config-isis-1-if-loopback61)#ip router isis
R2(config-isis-1-if-loopback61)#exit
R2(config-isis-1)#exit

R2(config)#mpls traffic-eng
R2(config-mpls-te)#interface loopback61
R2(config-mpls-te-if-loopback61)#exit
R2(config-mpls-te)#router-id 61.61.61.2
R2(config-mpls-te)#interface gei-0/5/0/3
R2(config-mpls-te-if-gei-0/5/0/3)#exit
R2(config-mpls-te)#exit

The configuration of R3 is as follows:


Interface configuration:
R3(config)#interface gei-0/1/0/3
R3(config-if-gei-0/1/0/3)#no shutdown
R3(config-if-gei-0/1/0/3)# ip address 131.4.1.2 255.255.255.0
R3(config-if-gei-0/1/0/3)#exit
R3(config)#interface gei-0/1/0/4
R3(config-if-gei-0/1/0/4)#no shutdown
R3(config-if-gei-0/1/0/4)#ip address 131.4.2.2 255.255.255.0
R3(config-if-gei-0/1/0/4)#exit
R3(config)#interface loopback61
R3(config-if-loopback61)#ip address 61.61.61.3 255.255.255.255
R3(config-if-loopback61)#exit

IS-IS and IS-IS TE configuration:


R3(config)#router isis 1
R3(config-isis-1)#area 01
R3(config-isis-1)#system-id 1234.5678.9101
R3(config-isis-1)#metric-style wide
R3(config-isis-1)#mpls traffic-eng level-1
R3(config-isis-1)#interface gei-0/1/0/3
R3(config-isis-1-if-gei-0/1/0/3)#ip router isis
R3(config-isis-1-if-gei-0/1/0/3)#exit

2-54

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

R3(config-isis-1)#interface loopback61
R3(config-isis-1-if-loopback61)#ip router isis
R3(config-isis-1-if-loopback61)#exit
R3(config-isis-1)#exit

R3(config)#mpls traffic-eng
R3(config-mpls-te)#interface loopback61
R3(config-mpls-te-if-loopback61)#exit
R3(config-mpls-te)#router-id 61.61.61.3
R3(config-mpls-te)#interface gei-0/1/0/3
R3(config-mpls-te-if-gei-0/1/0/3)#exit
R3(config-mpls-te)#interface gei-0/1/0/4
R3(config-mpls-te-if-gei-0/1/0/4)#passive-interface nbr-te-id 61.61.61.2
nbr-if-addr 131.4.2.1 nbr-igp-id isis 2355.255e.3666
R3(config-mpls-te-if-gei-0/1/0/4)#exit
R3(config-mpls-te)#exit

Configuration Verification
Check the tunnel establishment on the R1:

R1(config)#show mpls traffic-eng tunnels brief


Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_100 61.61.61.2 - gei-0/1/0/3 up/up

R1(config)#show mpls traffic-eng tunnels te_tunnel 100


Name: tunnel_100 (Tunnel100) Destination: 61.61.61.2
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit identifier 100 (Basis for Setup)
Actual Bandwidth: N/A
Hot-standby protection:
No path options protected
Config Parameters:
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Hop Prior: disabled Upper Limit: -
Record-Route: disabled
Facility Fast-reroute: disabled
Detour Fast-reroute: disabled
Bandwidth Protection: disabled
Hot-standby-lsp Fast-reroute: disabled

2-55

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

BFD: disabled
Policy class: default
Track Name:
Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: disabled
Tunnel-Status: enabled
Bandwidth: 0 kbps (Global) Priority: 7 7 Affinity: 0x0/0x0
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
AutoRoute: disabled
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0

InLabel:-
OutLabel:gei-0/1/0/3,147456

RSVP Signalling Info :


Src 61.61.61.1, Dst 61.61.61.2, Tun_Id 100, Tun_Instance 105
RSVP Path Info:
Explicit Route: 131.4.1.1 131.4.1.2 61.61.61.2
Exclude Route: NULL
Record Route: NULL
Tspec:ave rate= 0 kbits, burst= 2000 bytes, peak rate = 0 kbits
RSVP Resv Info:
Record Route: NULL
Fspec:ave rate= 0 kbits, burst= 2000 bytes, peak rate = 0 kbits

Check the database information on the R3.

R3(config)#show isis database verbose level-1


Process ID:0

Process ID:1
IS-IS level 1 link-state database:
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R3.00-00* 0x16 0x27c3 837 0/0/0
NLPID: 0xcc
Hostname: R3
Area Address: 01

2-56

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Router ID: 61.61.61.3


Ip address: 1.2.3.82
Metric: 16777215 IS-Extended 2355.255E.3666-00
Affinity: 0x0
Interface IP Address: 131.4.2.2
Physical BW: 1000000 kbits/sec
Reservable Global Pool BW: 0 kbits/sec
Global Pool BW Unreserved:
[0]: 0 kbits/sec, [1]: 0 kbits/sec
[2]: 0 kbits/sec, [3]: 0 kbits/sec
[4]: 0 kbits/sec, [5]: 0 kbits/sec
[6]: 0 kbits/sec, [7]: 0 kbits/sec
Metric: 10 IS-Extended R3.03
Affinity: 0x0
Interface IP Address: 131.4.1.2
Physical BW: 1000000 kbits/sec
Reservable Global Pool BW: 0 kbits/sec
Global Pool BW Unreserved:
[0]: 0 kbits/sec, [1]: 0 kbits/sec
[2]: 0 kbits/sec, [3]: 0 kbits/sec
[4]: 0 kbits/sec, [5]: 0 kbits/sec
[6]: 0 kbits/sec, [7]: 0 kbits/sec
Metric: 10 IP 131.4.1.0/24
Metric: 10 IP 166.166.7.0/24
Metric: 10 IP 1.2.3.82/32
Metric: 10 IP 61.61.61.3/32
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R3.03-00* 0x8 0x7404 401 0/0/0
Metric: 0 IS-Extended R1.00
Metric: 0 IS-Extended R3.00
LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL
R1.00-00 0xf 0xb98c 491 0/0/0
NLPID: 0xcc
Area Address: 01
Ip address: 1.2.3.80
Router ID: 61.61.61.1
Hostname: R1
Metric: 10 IS-Extended R3.03
Affinity: 0x0
Interface IP Address: 131.4.1.1
Physical BW: 1000000 kbits/sec
Reservable Global Pool BW: 0 kbits/sec
Global Pool BW Unreserved:
[0]: 0 kbits/sec, [1]: 0 kbits/sec
[2]: 0 kbits/sec, [3]: 0 kbits/sec

2-57

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

[4]: 0 kbits/sec, [5]: 0 kbits/sec


[6]: 0 kbits/sec, [7]: 0 kbits/sec
Metric: 10 IP 131.4.1.0/24
Metric: 10 IP 166.166.3.0/24
Metric: 10 IP 1.2.3.80/32
Metric: 10 IP 61.61.61.1/32

Check the detailed configuration information of the TE interface on ASBR.


R3(config)#show mpls traffic-eng interface detail gei-0/1/0/4
gei-0/1/0/4:
State:
ENABLE
Traffic-eng metric: 0
Authentication: disabled
Key: <encrypted>
Type: md5
Challenge: disabled
Challenge-imp: Not implemented(simulated)
Window size: 32
BFD: disable
Passive Info:
nbr_te_id nbr_if_addr ospf_rid isis_id
61.61.61.2 131.4.2.1 2355.255e.3666
Backup path:
None
SRLGs: None
Intf Fast-Hello : DISABLE
Fast-Hello interval : 10000
Fast-Hello miss : 4
Convergence-Ratio: 100(%)

2.6 TE-FRR Configuration


2.6.1 TE-FRR Overview
TE-FRR Introduction
At present, the traditional IP network uses a "tried" service mode. With the further
development of the network service, the IP network bearing multiple services must reach
the traditional level of the telecommunication network on the aspect of reliability. For
example, the switching protection duration should less than 50 ms. In the last few years
since mid 1990s, the MPLS technology has played an important role in the development
of next generation telecommunication networks, such as quickly transferring, QoS
guarantee and multi-service support.

2-58

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

To ensure the reliability of the MPLS network, the MPLS Fast Reroute (FRR) technology
plays a very important role. This technology provides a quick switching protection function
for the LSP with the help of the MPLS Traffic Engineering (TE). To ensure that the LSP is
not affected by the link or the node fault, the MPLS FRR establishes a local backup path
in advance. When a fault occurs, the device that detects the link or node fault switches
the services from the faulty link to the backup path quickly to reduce the data loss.
The main feature of the MPLS fast rerouting is fast response and timely switching. It
ensures the smooth transition of the service data. At the same time, the LSP tries to find
a new path to re-establish the LSP and switch the data to the new path. Before the new
LSP is established, the service data is transmitted through the protection path.

TE-FRR Features
The MPLS FRR is a mechanism used for the link protection and node protection. When
the LSP link or node is faulty, the MPLS FRR protects the faulty node or link to transmit
the traffic through the protection node or link. In this case, the data transmission is not
interrupted. The header node could continue sending a request to establish the main path
when the data transmission is not affected.

The basic principle of the MPLS FRR is to protect one or more LSPs with a LSP which is
established in advance. The LSP established in advance is called fast rerouting LSP and
the protected LSP is called main LSP. The purpose of the MPLS FRR is as follows: skip
the faulty link or node through the fast rerouting tunnel to protect the main path.
MPLS FRR is implemented based on RSVP TE.
The following two methods are used for the implementation of the fast rerouting.
l Detour mode (One-to-one Backup): It provides protection to each LSP to be protected,
and create a protection path for each LSP to be protected. This protection path is
called Detour LSP.
l Bypass mode (Facility Backup): It protects multiple LSPs through one protection path.
This protection path is called Bypass LSP.
The Bypass mode also has two methods to implement fast rerouting.
l It is required to configure a backup tunnel on the egress interface of the main tunnel by
manual. The protection is classified into the node protection and the link protection.
l Backup the tunnel automatically. Establish a backup tunnel for the main tunnel
automatically when the backup condition is met (the node protection is generated
first).

The concept of several terms is as follows:


l Main LSP: The main LSP is the protected LSP for the Detour LSP or the Bypass LSP.
l PLR: It is a head node of the Detour LSP or the Bypass LSP. It must be on the path
of the main LSP and cannot be the tail node.
l MP: It is the tail node of the Detour LSP or the Bypass LSP. It must be on the path of
the main LSP and cannot be the head node.

2-59

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

l Link protection: There is a direct link between the PLR and the MP. The main LSP
pass this link. When this link is invalid, all the services are switched to the Detour LSP
path or the Bypass LSP path.
l Node protection: There is a router between the PLR and the MP. The main LSP passes
this router. When this router is invalid, all the service are switched to the Detour LSP
path or the Bypass LSP path.

TE-FRR Bandwidth Protection


If a bandwidth is configured for a protection LSP, upon switchover, to ensure the bandwidth
for the services of the protection LSP on the backup path, an additional requirement can
be promoted for bandwidth protection. Once the requirement for bandwidth protection is
promoted, an optimal backup path is calculated through an algorithm so that the backup
path has a sufficient bandwidth for forwarding the services of the protection LSP upon
switchover.
Figure 2-13 shows the active tunnel path RTA-RTB-RTC-RTD-RTE and the backup tunnel
path RTB-RTF-RTD.
The active tunnel is configured to have a 20 M bandwidth and require bandwidth
protection. Two backup tunnels are configured at the RTB node, tunnel back_tnnl1 has a
10 M bandwidth and tunnel back_tnnl2 has a 30 M bandwidth.
Upon selecting backup protection, back_tnnl2 is selected as the backup tunnel because
the backup bandwidth of back_tnnl1 cannot protect the bandwidth of the active tunnel.

Figure 2-13 TE-FRR Bandwidth Protection

HOT_LSP Supporting TE-FRR


When a dynamic IP/MPLS is deployed in the network with end-to-end TE HOT_LSP
protection, TE FRR is only deployed at the core convergence layer due to the complexity
of the network and devices at the access layer. If both the convergence layer and the
access layer are disconnected at the same time and the access device switches over to
the standby LSP, which is not protected by the TE FRR at the convergence layer, services
may be interrupted. In this case, you have to wait till the TE LSP is re-established.

2-60

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

To ensure the minimum traffic loss, configure FRR related protection attributes upon
establishing the standby LSP to implement TE FRR protection on downstream nodes.
At present, if both HOT_LSP protection and FRR protection are configured for a tunnel
and a HOT_LSP has been created, FRR protection forms on downstream nodes of the
HOT_LSP. However, FRR protection is not needed for the downstream nodes of the
HOT_LSP in some cases. To reduce the system calculation load, a configuration item is
added to enable or disable FRR protection for the HOT_LSP of a tunnel.

2.6.2 Configuring TE-FRR


This procedure describes how to configure TE-FRR.

Steps
1. Configure a tunnel to support the FRR function.

Step Command Function

1 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters tunnel interface


<tunnel-number> configuration mode.

2 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Enables the fast rerouting


number)#tunnel mpls traffic-eng fast-reroute {facility | function on the tunnel.
one-to-one}

2. Configure a backup tunnel.

Step Command Function

1 ZXCTN(config-mpls-te)#interface <interface-name> Enters the MPLS-TE interface


configuration mode.

2 ZXCTN(config-mpls-te-if-interface-name)#backup- Configures the tunnel-id for


path te_tunnel <tunnel-id> the backup tunnel on the
egress interface of the primary
tunnel.

3. Configure the auto-tunnel backup function.

Step Command Function

1 ZXCTN(config-mpls-te)#interface <interface-name> Enters the MPLS-TE interface


configuration mode.

2 ZXCTN(config-mpls-te-if-interface-name)#auto-tu Configures the tunnel to


nnel backup support the auto-tunnel
backup function.

3 ZXCTN(config-mpls-te-if-interface-name)#auto-tu Indicates that the auto-backup


nnel backup nhop-only tunnel only supports path
protection.

2-61

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Step Command Function

4 ZXCTN(config-mpls-te)#auto-tunnel backup Configures the maximum


tunnel-num min <min-value> max <max-value> value or the minimum value
for the auto-backup tunnel.

<min-value>: the minimum tunnel-num of the automatic backup tunnel, range:


6453665535.
<max-value>: the maximum tunnel-num of the automatic backup tunnel, range:
6453665535.
4. Configure TE-FRR bandwidth protection.

Step Command Function

1 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters the active tunnel.


<tunnel-number>

2 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Enables the bandwidth


number)#tunnel mpls traffic-eng fast-reroute {facility| protection function of the
one-to-one }[bw-protect] active tunnel.

3 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Exits the active tunnel.


number)#exit

4 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters the backup tunnel.


<tunnel-number>

5 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Sets a backup bandwidth for


number)#tunnel mpls traffic-eng backup-bw {bandwidth} the backup tunnel.

5. Enables TE-FRR on the Hot-standby LSP.

Step Command Function

1 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters tunnel interface


<tunnel-number> configuration mode.

2 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Enables TE-FRR on the


number)#tunnel mpls traffic-eng hot-standby-lsp Hot-standby LSP in tunnel
fast-reroute mode.

3 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Enables RRO in tunnel mode.


number)#tunnel mpls traffic-eng record-route

6. Display the configuration results.

Command Function

ZXCTN#show mpls traffic-eng fast-reroute Displays the FRR mapping relationship


configured globally.

ZXCTN#show mpls traffic-eng tunnels Displays tunnel information.

2-62

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Command Function

ZXCTN#show mpls traffic-eng auto-backup tunnels band Displays the binding information of the
[te_tunnel <tunnelId>] auto-backup tunnel and the primary
tunnel.

ZXCTN#show mpls traffic-eng auto-backup tunnels Displays the summary of the


summary auto-backup tunnel.

ZXCTN#show mpls traffic-eng auto-backup parameter Displays the parameters of the


auto-backup tunnel.

ZXCTN#show mpls traffic-eng tunnels backup Displays the backup bandwidth usage
of the backup tunnel and the number of
the protection tunnels.

ZXCTN#debug rsvp fast-reroute Displays the debugging information of


the manual backup tunnel.

End of Steps

2.6.3 TE-FRR Configuration Instance


2.6.3.1 Establishing a Tunnel in Facility Mode Manually

Configuration Descriptions
As shown in Figure 2-14, there are two tunnels from the P1 router to the P3 router, tunnel1
and tunnel2. Tunnel1 passes by the P1 router, the P2 router and the P3 router. Tunnel2
passes by the P1 router and the P3 router. Tunnel1 is the active LSP and tunnel2 is
stand-byndby LSP. These two tunnels form the FRR relationship. When the active LSP
has a fault, the stand-by LSP protects it. Traffic is handed over to the stand-by LSP.

2-63

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 2-14 Establishing a Tunnel in Facility Mode Manually

Configuration Flow
1. Establish OSPF neighbor relationship through the direct-connected interfaces on the
P1 router, the P2 router and the P3 router. Enable OSPF TE.
2. Establish two strict paths. The active path passes by the P1 router, the P2 router and
the P3 router. The stand-by path passes by the P1 router and the P3 router.
3. Enable TE on the interfaces in use on the P1 router, the P2 router and the P3 router.
Configure the stand-by LSP on gei-0/2/1/1 of the P1 router.
4. Create the active path and the standby path. Enable FRR on the active path. The
destination is the TE router-id of P3. The path is in strict mode.
5. Configure a static route to the destination on the P1 router. The next hop is Tunnel. In
this case, the traffic is transmitted through the tunnel.

Configuration Commands
The configuration of P1 is as follows:
P1(config)#interface gei-0/2/1/1
P1(config-if-gei-0/2/1/1)#no shutdown
P1(config-if-gei-0/2/1/1)#ip address 74.1.1.2 255.255.255.0
P1(config-if-gei-0/2/1/1)#exit
P1(config)#interface gei-0/2/1/3
P1(config-if-gei-0/2/1/3)#no shutdown
P1(config-if-gei-0/2/1/3)#ip address 60.1.1.1 255.255.255.0
P1(config-if-gei-0/2/1/3)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1

2-64

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P1(config-if-te_tunnel1)#ip unnumbered loopback1


P1(config-if-te_tunnel1)#exit
P1(config)#interface te_tunnel2
P1(config-if-te_tunnel2)#ip unnumbered loopback1
P1(config-if-te_tunnel2)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#network 74.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 60.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#explicit-path name primary
P1(config-mpls-te-expl-path-name)# next-address strict 74.1.1.1
P1(config-mpls-te-expl-path-name)#next-address strict 120.1.1.2
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#explicit-path name back
P1(config-mpls-te-expl-path-name)#next-address strict 60.1.1.2
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#interface gei-0/2/1/1
P1(config-mpls-te-if-gei-0/2/1/1)#exit
P1(config-mpls-te)#interface gei-0/2/1/3
P1(config-mpls-te-if-gei-0/2/1/3)#exit

P1(config-mpls-te)#tunnel te_tunnel1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 3.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1
explicit-path name primary
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng record-route
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng fast-reroute facility
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#tunnel te_tunnel2
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel destination ipv4 3.1.1.1
P1(config-mpls-te- tunnel-te_tunnel2)#tunnel mpls traffic-eng path-option 1
explicit-path name back
P1(config-mpls-te-tunnel-te_tunnel2)#exit
P1(config-mpls-te)#interface gei-0/2/1/1
P1(config-mpls-te-if-gei-0/2/1/1)#backup-path te_tunnel 2
P1(config-mpls-te-if-gei-0/2/1/1)#exit

2-65

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-mpls-te)#exit

P1(config)#ip route 172.20.1.2 255.255.255.255 te_tunnel1

The configuration of P2 is as follows:


P2(config)#interface gei-0/2/1/1
P2(config-if-gei-0/2/1/1)#no shutdown
P2(config-if-gei-0/2/1/1)#ip address 74.1.1.1 255.255.255.0
P2(config-if-gei-0/2/1/1)#exit
P2(config)#interface gei-0/2/1/2
P2(config-if-gei-0/2/1/2)#no shutdown
P2(config-if-gei-0/2/1/2)#ip address 120.1.1.1 255.255.255.0
P2(config-if-gei-0/2/1/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#network 74.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 120.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/2/1/1
P2(config-mpls-te-if-gei-0/2/1/1)#exit
P2(config-mpls-te)#interface gei-0/2/1/2
P2(config-mpls-te-if-gei-0/2/1/2)#exit
P2(config-mpls-te)#exit

The configuration of P3 is as follows:

P3(config)#interface gei-0/2/1/2
P3(config-if-gei-0/2/1/2)#no shutdown
P3(config-if-gei-0/2/1/2)#ip address 120.1.1.2 255.255.255.0
P3(config-if-gei-0/2/1/2)#exit
P3(config)#interface gei-0/2/1/3
P3(config-if-gei-0/2/1/3)#no shutdown
P3(config-if-gei-0/2/1/3)#ip address 60.1.1.2 255.255.255.0
P3(config-if-gei-0/2/1/3)#exit
P3(config)#interface loopback3

2-66

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P3(config-if-loopback3)#ip address 3.1.1.1 255.255.255.255


P3(config-if-loopback3)#exit

P3(config)#router ospf 1
P3(config-ospf-1)#router-id 3.1.1.1
P3(config-ospf-1)#network 3.1.1.1 0.0.0.0 area 0
P3(config-ospf-1)#network 120.1.1.0 0.0.0.255 area 0
P3(config-ospf-1)#network 60.1.1.0 0.0.0.255 area 0
P3(config-ospf-1)#mpls traffic-eng area 0
P3(config-ospf-1)#exit

P3(config)#mpls traffic-eng
P3(config-mpls-te)#interface loopback3
P3(config-mpls-te-if-loopback3)#exit
P3(config-mpls-te)#router-id 3.1.1.1
P3(config-mpls-te)#interface gei-0/2/1/2
P3(config-mpls-te-if-gei-0/2/1/2)#exit
P3(config-mpls-te)#interface gei-0/2/1/3
P3(config-mpls-te-if-gei-0/2/1/3)#exit
P3(config-mpls-te)#exit

The configuration of R2 is as follows:


R2(config)#interface gei-0/2/1/1
R2(config-if-gei-0/2/1/1)#no shutdown
R2(config-if-gei-0/2/1/1)#ip address 172.20.1.2 255.255.255.0
R2(config-if-gei-0/2/1/1)#exit

Configuration Verification
When the tunnel is up, check the FRR information on P1, as shown below.
P1#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 3.1.1.1 - gei-0/2/1/1 up/up
tunnel_2 3.1.1.1 - gei-0/2/1/3 up/up

P1#show mpls traffic-eng fast-reroute


Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 86 Tun hd gei-0/2/1/1:147456 Tu2:3 ready

LSP midpoint frr information:

2-67

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

LSP identifier In-label Out intf/label FRR intf/label Status

When the active LSP has a fault, the traffic will be handed over to the stand-by LSP. FRR
is in active state. At this time, both the active tunnel and the standby tunnel are in up
status. Check the FRR state on P1. When the fault on the active LSP recovers, the FRR
relationship recovers to ready state.
P1#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 86 Tun hd gei-0/2/1/3:147456 Tu2:3 active

LSP midpoint frr information:


LSP identifier In-label Out intf/label FRR intf/label Status

2.6.3.2 Establishing a Tunnel in Facility Mode Automatically

Configuration Descriptions
As shown in Figure 2-15, there is an active tunnel from P1 to P3. The automatic backup
function is enabled. The displayed path of the active tunnle1 is P1-P2-P3. The FRR facility
protect function is enabled on the active tunnel and the auto-backup relationship is formed.
When the active LSP has a fault, the standby LSP protects it. Traffic is handed over to the
standby LSP.

Figure 2-15 Establishing a Tunnel in Facility Mode Automatically

Configuration Flow
1. Establish OSPF neighbor relationship through the direct-connected interfaces on P1,
P2 and P3. Enable OSPF TE.
2. Enable the au-backup function in TE mode.

2-68

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

3. Create an active tunnel passing P1-P2-P3.


4. Enable T3 on the interfaces in used on P1, P2 and P3.
5. Create the active path. Enable FRR facility on the active path. The destination is the
TE router-id of P3. The path is in strict mode.
6. Configure a static route to the destination on the P1. The next hop is Tunnel1. In this
case, the traffic is transmitted through the tunnel.

Configuration Commands
The configuration of P1 is as follows:
P1(config)#interface gei-0/2/1/1
P1(config-if-gei-0/2/1/1)#no shutdown
P1(config-if-gei-0/2/1/1)#ip address 74.1.1.2 255.255.255.0
P1(config-if-gei-0/2/1/1)#exit
P1(config)#interface gei-0/2/1/3
P1(config-if-gei-0/2/1/3)#no shutdown
P1(config-if-gei-0/2/1/3)#ip address 60.1.1.1 255.255.255.0
P1(config-if-gei-0/2/1/3)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#network 74.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 60.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#explicit-path name primary
P1(config-mpls-te-expl-path-name)#next-address strict 74.1.1.1
P1(config-mpls-te-expl-path-name)#next-address strict 120.1.1.2
P1(config-mpls-te-expl-path-name)#exit

P1(config-mpls-te)#interface gei-0/2/1/1
P1(config-mpls-te-if-gei-0/2/1/1)#auto-tunnel backup
P1(config-mpls-te-if-gei-0/2/1/1)#exit

2-69

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-mpls-te)#interface gei-0/2/1/3
P1(config-mpls-te-if-gei-0/2/1/3)#exit

P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 3.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1
explicit-path name primary
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng record-route
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng fast-reroute facility
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#exit

P1(config)#ip route 172.20.1.2 255.255.255.255 te_tunnel1

The configuration of P2 is as follows:

P2(config)#interface gei-0/2/1/1
P2(config-if-gei-0/2/1/1)#no shutdown
P2(config-if-gei-0/2/1/1)#ip address 74.1.1.1 255.255.255.0
P2(config-if-gei-0/2/1/1)#exit
P2(config)#interface gei-0/2/1/2
P2(config-if-gei-0/2/1/2)#no shutdown
P2(config-if-gei-0/2/1/2)#ip address 120.1.1.1 255.255.255.0
P2(config-if-gei-0/2/1/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#network 74.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 120.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/2/1/1
P2(config-mpls-te-if-gei-0/2/1/1)#exit
P2(config-mpls-te)#interface gei-0/2/1/2
P2(config-mpls-te-if-gei-0/2/1/2)#exit
P2(config-mpls-te)#exit

The configuration of P3 is as follows:

2-70

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P3(config)#interface gei-0/2/1/2
P3(config-if-gei-0/2/1/2)#no shutdown
P3(config-if-gei-0/2/1/2)#ip address 120.1.1.2 255.255.255.0
P3(config-if-gei-0/2/1/2)#exit
P3(config)#interface gei-0/2/1/3
P3(config-if-gei-0/2/1/3)#no shutdown
P3(config-if-gei-0/2/1/3)#ip address 60.1.1.2 255.255.255.0
P3(config-if-gei-0/2/1/3)#exit
P3(config)#interface loopback3
P3(config-if-loopback3)#ip address 3.1.1.1 255.255.255.255
P3(config-if-loopback3)#exit

P3(config)#router ospf 1
P3(config-ospf-1)#router-id 3.1.1.1
P3(config-ospf-1)#network 3.1.1.1 0.0.0.0 area 0
P3(config-ospf-1)#network 120.1.1.0 0.0.0.255 area 0
P3(config-ospf-1)#network 60.1.1.0 0.0.0.255 area 0
P3(config-ospf-1)#mpls traffic-eng area 0
P3(config-ospf-1)#exit

P3(config)#mpls traffic-eng
P3(config-mpls-te)#interface loopback3
P3(config-mpls-te-if-loopback3)#exit
P3(config-mpls-te)#router-id 3.1.1.1
P3(config-mpls-te)#interface gei-0/2/1/2
P3(config-mpls-te-if-gei-0/2/1/2)#exit
P3(config-mpls-te)#interface gei-0/2/1/3
P3(config-mpls-te-if-gei-0/2/1/3)#exit
P3(config-mpls-te)#exit

The configuration of R2 is as follows:


R2(config)#interface gei-0/2/1/1
R2(config-if-gei-0/2/1/1)#no shutdown
R2(config-if-gei-0/2/1/1)#ip address 172.20.1.2 255.255.255.0
R2(config-if-gei-0/2/1/1)#exit

Configuration Verification
The P1 router shows that the active tunnel and the auto-backup tunnel are formed.
P1(config)##show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT

2-71

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

tunnel_1 3.1.1.1 - gei-0/2/1/1 up/up


tunnel_65535 3.1.1.1 - gei-0/2/1/3 up/up

The P1 shows that the auto-backup protection relationship is formed.


P1(config)#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 2 Tun hd gei-0/2/1/1:147456 Tu65535:3 ready

LSP midpoint frr information:


LSP identifier In-label Out intf/label FRR intf/label Status

When the active tunnel has a fault, the traffic will be handed over to the standby tunnel.
FRR is in active state. Check the FRR state on P1. When the fault on the active LSP
recovers, the FRR relationship recovers to ready state.
P1(config)#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 2 Tun hd gei-0/2/1/1:147456 Tu65535:3 active

LSP midpoint frr information:


LSP identifier In-label Out intf/label FRR intf/label Status

2.6.3.3 Establishing a Tunnel in Detour Protection Mode

Configuration Descriptions
As shown in Figure 2-16, the active tunnel1 is from R1 to R3 passes R1, R3 and R3.
Enable the FRR one-to-one protection on the active tunnel to form the detour protection
relationship. When the active LSP has a fault, the standby LSP protects it. Traffic is handed
over to the standby LSP.

2-72

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Figure 2-16 Establishing a Tunnel in Detour Protection Mode

Configuration Flow
1. As shown in Figure 2-16, interconnect the R1, R2, R3 and R4, and configure the
loopback address and the interface address for each router.
2. Establish the OSPF neighbor relationship through the direct-connected interfaces on
the R1, R2, R3 and R4 and enable TE.
3. Configure the FRR one-to-one function on the head node of the tunnel in MPLS TE
mode. The specified strict path is R1-R2-R3.
4. Configure a static route to the destination on the R1. The next hop is Tunnel1. In this
case, the traffic is transmitted through the tunnel.

Configuration Commands
The configuration of R1 is as follows:

R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
R1(config)#interface gei-0/0/1/4
R1(config-if-gei-0/0/1/4)#no shutdown
R1(config-if-gei-0/0/1/4)# ip address 10.1.1.1 255.255.255.0
R1(config-if-gei-0/0/1/4)#exit
R1(config)#interface gei-0/0/0/7
R1(config-if-gei-0/0/0/7)#no shutdown
R1(config-if-gei-0/0/0/7)# ip address 20.1.1.1 255.255.255.0
R1(config-if-gei-0/0/0/7)#exit
R1(config)#interface te_tunnel1
R1(config-if-te_tunnel1)#ip unnumbered loopback1
R1(config-if-te_tunnel1)#exit

2-73

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R1(config)#router ospf 1
R1(config-ospf-1)#router-id 1.1.1.1
R1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
R1(config-ospf-1)#mpls traffic-eng area 0
R1(config-ospf-1)#network 10.1.1.0 0.0.0.255 area 0
R1(config-ospf-1)#network 20.1.1.0 0.0.0.255 area 0
R1(config-ospf-1)#exit

R1(config)#mpls traffic-eng
R1(config-mpls-te)#interface loopback1
R1(config-mpls-te-if-loopback1)#exit
R1(config-mpls-te)#router-id 1.1.1.1
R1(config-mpls-te)# interface gei-0/0/1/4
R1(config-mpls-te-if-gei-0/0/1/4)#exit
R1(config-mpls-te)# interface gei-0/0/0/7
R1(config-mpls-te-if-gei-0/0/0/7)#exit

R1(config-mpls-te)#tunnel te_tunnel1
R1(config-mpls-te-te_tunnel1)#tunnel destination ipv4 3.3.3.3
R1(config-mpls-te-te_tunnel1)#tunnel mpls traffic-eng path-option 1
explicit-path name zte
R1(config-mpls-te-te_tunnel1)#tunnel mpls traffic-eng record-route
R1(config-mpls-te-te_tunnel1)# tunnel mpls traffic-eng fast-reroute one-to-one
R1(config-mpls-te-)#exit
R1(config-mpls-te)#explicit-path name zte
R1(config-mpls-te-expl-path-name)#next-address strict 10.1.1.2
R1(config-mpls-te-expl-path-name)#next-address strict 40.1.1.3
R1(config-mpls-te-expl-path-name)#exit
R1(config-mpls-te)#exit

R1(config)#ip route 172.20.1.2 255.255.255.255 te_tunnel1

The configuration of R2 is as follows:


R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 2.2.2.2 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/5/1/7
R2(config-if-gei-0/5/1/7)#no shutdown
R2(config-if-gei-0/5/1/7)#ip address 10.1.1.2 255.255.255.0
R2(config-if-gei-0/5/1/7)#exit
R2(config)#interface gei-0/5/1/9
R2(config-if-gei-0/5/1/9)#no shutdown
R2(config-if-gei-0/5/1/9)#ip address 40.1.1.2 255.255.255.0
R2(config-if-gei-0/5/1/9)#exit
R2(config)#interface gei-0/5/0/8

2-74

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

R2(config-if-gei-0/5/0/8)#no shutdown
R2(config-if-gei-0/5/0/8)#ip address 30.1.1.2 255.255.255.0
R2(config-if-gei-0/5/0/8)#exit

R2(config)#router ospf 1
R2(config-ospf-1)#router-id 2.2.2.2
R2(config-ospf-1)#network 2.2.2.2 0.0.0.0 area 0
R2(config-ospf-1)#mpls traffic-eng area 0
R2(config-ospf-1)#network 10.1.1.0 0.0.0.255 area 0
R2(config-ospf-1)#network 30.1.1.0 0.0.0.255 area 0
R2(config-ospf-1)#network 40.1.1.0 0.0.0.255 area 0
R2(config-ospf-1)#exit

R2(config)#mpls traffic-eng
R2(config-mpls-te)#interface loopback1
R2(config-mpls-te-if-loopback1)#exit
R2(config-mpls-te)#router-id 2.2.2.2
R2(config-mpls-te)#interface gei-0/5/1/7
R2(config-mpls-te-if-gei-0/5/1/7)#exit
R2(config-mpls-te)# interface gei-0/5/1/9
R2(config-mpls-te-if-gei-0/5/1/9)#exit
R2(config-mpls-te)#exit
R2(config-mpls-te)#interface gei-0/5/0/8
R2(config-mpls-te-if-gei-0/5/0/8)#exit
R2(config-mpls-te)#exit

The configuration of R3 is as follows:

R3(config)#interface loopback1
R3(config-if-loopback1)#ip address 3.3.3.3 255.255.255.255
R3(config-if-loopback1)#exit
R3(config)#interface gei-0/5/1/9
R3(config-if-gei-0/5/1/9)#no shutdown
R3(config-if-gei-0/5/1/9)#ip address 40.1.1.3 255.255.255.0
R3(config-if-gei-0/5/1/9)#exit

R3(config)#router ospf 1
R3(config-ospf-1)#router-id 3.3.3.3
R3(config-ospf-1)#network 3.3.3.3 0 0.0.0.0 area 0
R3(config-ospf-1)#mpls traffic-eng area 0
R3(config-ospf-1)#network 40.1.1.0 0.0.0.255 area 0
R3(config-ospf-1)#exit

R3(config)#mpls traffic-eng
R3(config-mpls-te)#interface loopback1
R3(config-mpls-te-if-loopback1)#exit

2-75

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R3(config-mpls-te)#router-id 3.3.3.3
R3(config-mpls-te)#interface gei-0/5/1/9
R3(config-mpls-te-if-gei-0/5/1/9)#exit
R3(config-mpls-te)#exit

The configuration of R4 is as follows:


R4(config)#interface gei-0/2/0/7
R4(config-if-gei-0/2/0/7)#no shutdown
R4(config-if-gei-0/2/0/7)#ip address 20.1.1.3 255.255.255.0
R4(config-if-gei-0/2/0/7)#exit
R4(config)#interface gei-0/2/0/8
R4(config-if-gei-0/2/0/8)#no shutdown
R4(config-if-gei-0/2/0/8)#ip address 30.1.1.3 255.255.255.0
R4(config-if-gei-0/2/0/8)#exit
R4(config)#interface loopback1
R4(config-if-loopback1)#ip address 4.4.4.4 255.255.255.255
R4(config-if-loopback1)#exit

R4(config)#router ospf 1
R4(config-ospf-1)#router-id 4.4.4.4
R4(config-ospf-1)#network 4.4.4.4 0.0.0.0 area 0
R4(config-ospf-1)#mpls traffic-eng area 0
R4(config-ospf-1)#network 20.1.1.0 0.0.0.255 area 0
R4(config-ospf-1)#network 30.1.1.0 0.0.0.255 area 0
R4(config-ospf-1)#exit

R4(config)#mpls traffic-eng
R4(config-mpls-te)#interface loopback1
R4(config-mpls-te-if-loopback1)#exit
R4(config-mpls-te)#router-id 4.4.4.4
R4(config-mpls-te)#interface gei-0/2/0/7
R4(config-mpls-te-if-gei-0/2/0/7)#exit
R4(config-mpls-te)#interface gei-0/2/0/8
R4(config-mpls-te-if-gei-0/2/0/8)#exit
R4(config-mpls-te)#exit

The configuration of R6 is as follows:


R6(config)#interface gei-0/2/1/1
R6(config-if-gei-0/2/1/1)#no shutdown
R6(config-if-gei-0/2/1/1)#ip address 172.20.1.2 255.255.255.0
R6(config-if-gei-0/2/1/1)#exit

Configuration Verification
The R1 router shows that the active tunnel and the detour tunnel are formed.
R1(config)#show mpls traffic-eng tunnels brief

2-76

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 3.3.3.3 - gei-0/0/1/4 up/up
tunnel_1 (PLR backup) 3.3.3.3 - gei-0/0/0/7 up/up

ZXCTN#show mpls traffic-eng tunnels


Name: tunnel_1 (Tunnel1) Destination: 3.3.3.3
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit name zte (Basis for Setup)
Hot-standby protection:
no path options protected
Config Parameters:
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Hop Prior: disabled Upper Limit: -
Record-Route: enabled
Facility Fast-reroute: disabled
Detour Fast-reroute: enabled
Bandwidth Protection: disabled
Hot-standby-lsp Fast-reroute: disabled
BFD: disabled
Policy class: default
Track Name:
Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: disabled
Tunnel-Status: enabled
Bandwidth: 0 kbps (Global) Priority: 7 7 Affinity: 0x0/0x0
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
AutoRoute: disabled
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0

InLabel:-

2-77

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

OutLabel:gei-0/0/1/4,147456

RSVP Signalling Info :


Src 1.1.1.1, Dst 3.3.3.3, Tun_Id 1, Tun_Instance 62
RSVP Path Info:
Explicit Route: 10.1.1.1 10.1.1.2 40.1.1.2 40.1.1.3 3.3.3.3
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits
RSVP Resv Info:
Record Route: 3.3.3.3 10.1.1.2 40.1.1.3
Fspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits

History:
Tunnel:
Time since created: 0 days, 0 hours, 12 minutes
Prior LSP: path option 1
Current LSP: Uptime:0 days, 0 hours, 10 minutes
Last lsp error information:
None log record.

Name: tunnel_1(PLR backup)(Tunnel) Destination: 3.3.3.3


Status:
Signalling: up

RSVP Signalling Info :


InLabel:-
OutLabel:gei-0/0/0/7,147457
Src 1.1.1.1, Dst 13.3.3.3, Tun_Id 1, Tun_Instance 62
RSVP Path Info:
Explicit Route: 20.1.1.1 20.1.1.3 30.1.1.3 30.1.1.2 40.1.1.2
40.1.1.3
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits
RSVP Resv Info:
Record Route: 3.3.3.3 30.1.1.2
Fspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits
History:
Tunnel:
Time since created: 0 days, 0 hours, 10 minutes
Current LSP: Uptime:0 days, 0 hours, 10 minutes

The R1 router shows that the detour protection relationship is formed.


R1(config)#show mpls traffic-eng fast-reroute

2-78

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Tunnel head end item information


Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 1 Tun hd gei-0/0/1/4:147456 Tu1:147457 ready

LSP midpoint frr information:


LSP identifier In-label Out intf/label FRR intf/label Status

When the active tunnel has a fault, the traffic will be handed over to the standby tunnel.
FRR is in active state. Check the FRR state on R1. When the fault on the active LSP
recovers, the FRR relationship recovers to ready state.
R1(config)#interface gei-0/0/1/4
R1(config-if-gei-0/0/1/4)#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 1 Tun hd gei-0/0/1/4:147456 Tu1:147457 active

R1(config-if-gei-0/0/1/4)#show mpls traffic-eng fast-reroute


Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 1 Tun hd gei-0/0/1/4:147458 Tu1:147459 ready

2.6.3.4 TE-FRR Bandwidth Protection Configuration Instance

Configuration Description
In Figure 2-17, a TE tunnel is established among P1-P2-P3 through IGP-TE, for which,
the available bandwidth is configured for the egress interface, the reserved bandwidth is
configured for the tunnel, and the FRR bandwidth protection is enabled. Multiple backup
tunnels are configured for P1-P2 and P1-P3 and a backup width is configured (after a
backup bandwidth is configured for a tunnel, the backup bandwidth is limited. If no backup
bandwidth is configured, the backup bandwidth is unlimited).

Figure 2-17 TE-FRR Bandwidth Protection Configuration Instance

After completing the configuration, you can see on the head node whether the FRR
bandwidth protection is enabled for the active tunnel and whether the backup bandwidth
of the standby tunnel is properly configured.

2-79

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

If no bandwidth is configured or a cti (i0) bandwidth is configured for the active tunnel,
you can only select the backup bandwidth as the unlimited backup tunnel (node protection
is prior to link protection).
If a common bandwidth or a ct0 bandwidth is configured for the active tunnel, a backup
tunnel with a limited backup bandwidth and a less bandwidth waste (node protection is prior
to link protection) is preferentially selected. If the limited backup tunnels are insufficient,
further select unlimited backup tunnels (node protection is prior to link protection).
After an FRR is established, you can check whether the number of the protection LSPs
and the backup bandwidth use on a backup tunnel are correct.

Configuration Flow
1. Configure the interfaces connecting P1, P2, and P3, and the corresponding loopback
interface addresses.
2. Configure OSPF neighbors for P1, P2, and P3, and enable the TE function on the
OSPF neighbors.
3. Enable the TE function on the loopback interfaces of P1, P2, and P3, and configure
the router-id of the TE as the loopback interface address.
4. Enable the TE function on the physical interfaces of P1, P2, and P3, and configure an
available bandwidth of 40 M for the egress interfaces of P1, P2, and P3.
5. Configure TE tunnel 1 on P1, for which, the destination address is set to P3, the explicit
path is set to strictly going through gei-0/1/0/1 of P1, the reserved bandwidth is set to
10 M, and the FRR facility bandwidth protection is enabled.
6. Configure tunnel2 on P1, for which, the destination address is set to P2, the explicit
path is set to strictly going through gei-0/1/0/2 of P1, the reserved bandwidth is set to
10 M, and the backup bandwidth is set to 15 M.
7. Configure TE tunnel 3 on P1, the destination address to P2, the display path to
gei-0/1/0/2 of P1, the reserved bandwidth to 5 M, and configure a backup bandwidth
to 20 M.
8. Configure TE tunnel 4 on P1, the destination address to P2, the display path to
gei-0/1/0/2 of P1, the reserved bandwidth to 10 M, and configure a backup bandwidth
to 9 M.
9. Configure TE tunnel 5 on P1, the destination address to P2, the display path to
gei-0/1/0/2 of P1, the reserved bandwidth to 5 M, and configure a backup bandwidth
to 20 M.
10. Configure tunnel6 on P1, for which, the destination address is set to P3, the explicit
path is set to strictly going through gei-0/2/0/1 of P1, the reserved bandwidth is set to
5 M, and the backup bandwidth is set to 20 M.
11. Configure backup tunnels tunnel2, 3, 4, 5, and 6 on the gei-0/1/0/1 interface.

The backup tunnels for TE-FRR bandwidth protection are selected in the following
sequence:
a. Because node protection is prior to link protection, tunnel 1 and tunnel 6 form FRR
protection.

2-80

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

b. If tunnel6 is disabled, tunnel 1 and tunnel 2 form FRR protection.


c. If tunnel2 and tunnel3 are further disabled, tunnel 1 and tunnel 5 form FRR
protection.
d. If tunnel5 is further disabled, no FRR protection is formed.

Configuration Commands
Run the following commands on P1:
P1#configure terminal
P1(config)#interface gei-0/1/0/1
P1(config-if-gei-0/1/0/1)#ip address 1.1.1.1 255.255.255.0
P1(config-if-gei-0/1/0/1)#no shutdown
P1(config-if-gei-0/1/0/1)#exit
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#ip address 2.1.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface gei-0/2/0/1
P1(config-if-gei-0/2/0/1)#ip address 5.1.1.1 255.255.255.0
P1(config-if-gei-0/2/0/1)#no shutdown
P1(config-if-gei-0/2/0/1)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 101.101.101.101 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#router ospf 1
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#network 5.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit
P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 101.101.101.101
P1(config-mpls-te)#interface gei-0/1/0/1
P1(config-mpls-te-if-gei-0/1/0/1)#bandwidth dynamic 40000
P1(config-mpls-te-if-gei-0/1/0/1)#exit
P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#bandwidth dynamic 40000
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#interface gei-0/2/0/1
P1(config-mpls-te-if-gei-0/2/0/1)#bandwidth dynamic 40000
P1(config-mpls-te-if-gei-0/1/0/1)#exit
P1(config-mpls-te)#explicit-path name main

2-81

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-mpls-te-expl-path-name)#next-address strict 1.1.1.2


P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#explicit-path name back
P1(config-mpls-te-expl-path-name)#next-address strict 2.1.1.2
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#explicit-path name back-1
P1(config-mpls-te-expl-path-name)#next-address strict 5.1.1.4
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#exit
P1(config)#interface te_tunnel2
P1(config-if-te_tunnel2)#exit
P1(config)#interface te_tunnel3
P1(config-if-te_tunnel3)#exit
P1(config)#interface te_tunnel4
P1(config-if-te_tunnel4)#exit
P1(config)#interface te_tunnel5
P1(config-if-te_tunnel5)#exit
P1(config)#interface te_tunnel6
P1(config-if-te_tunnel6)#exit
P1(config)#mpls traffic-eng
P1(config-mpls-te)#tunnel te_tunnel1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 103.103.103.103
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng bandwidth 10000
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng record-route
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng fast-reroute facility
bw-protect
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1
explicit-path name main
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#tunnel te_tunnel2
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel destination ipv4 102.102.102.102
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng bandwidth 10000
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng backup-bw 15000
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng path-option 1
explicit-path name back
P1(config-mpls-te-tunnel-te_tunnel2)#exit
P1(config-mpls-te)#tunnel te_tunnel3
P1(config-mpls-te-tunnel-te_tunnel3)#tunnel destination ipv4 102.102.102.102
P1(config-mpls-te-tunnel-te_tunnel3)#tunnel mpls traffic-eng bandwidth 5000
P1(config-mpls-te-tunnel-te_tunnel3)#tunnel mpls traffic-eng backup-bw 20000
P1(config-mpls-te-tunnel-te_tunnel3)#tunnel mpls traffic-eng path-option 1
explicit-path name back
P1(config-mpls-te-tunnel-te_tunnel3)#exit

2-82

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P1(config-mpls-te)#tunnel te_tunnel4
P1(config-mpls-te-tunnel-te_tunnel4)#tunnel destination ipv4 102.102.102.102
P1(config-mpls-te-tunnel-te_tunnel4)#tunnel mpls traffic-eng bandwidth 10000
P1(config-mpls-te-tunnel-te_tunnel4)#tunnel mpls traffic-eng backup-bw 9000
P1(config-mpls-te-tunnel-te_tunnel4)#tunnel mpls traffic-eng path-option 1
explicit-path name back
P1(config-mpls-te-tunnel-te_tunnel4)#exit
P1(config-mpls-te)#tunnel te_tunnel5
P1(config-mpls-te-tunnel-te_tunnel5)#tunnel destination ipv4 102.102.102.102
P1(config-mpls-te-tunnel-te_tunnel5)#tunnel mpls traffic-eng bandwidth 5000
P1(config-mpls-te-tunnel-te_tunnel5)#tunnel mpls traffic-eng path-option 1
explicit-path name back
P1(config-mpls-te-tunnel-te_tunnel5)#exi
P1(config-mpls-te)#tunnel te_tunnel6
P1(config-mpls-te-tunnel-te_tunnel6)#tunnel destination ipv4 103.103.103.103
P1(config-mpls-te-tunnel-te_tunnel6)#tunnel mpls traffic-eng bandwidth 5000
P1(config-mpls-te-tunnel-te_tunnel6)#tunnel mpls traffic-eng backup-bw 20000
P1(config-mpls-te-tunnel-te_tunnel6)#tunnel mpls traffic-eng path-option 1
explicit-path name back-1
P1(config-mpls-te-tunnel-te_tunnel6)#exit
P1(config-mpls-te)#interface gei-0/1/0/1
P1(config-mpls-te-if-gei-0/1/0/1)#backup-path te_tunnel 2
P1(config-mpls-te-if-gei-0/1/0/1)#backup-path te_tunnel 3
P1(config-mpls-te-if-gei-0/1/0/1)#backup-path te_tunnel 4
P1(config-mpls-te-if-gei-0/1/0/1)#backup-path te_tunnel 5
P1(config-mpls-te-if-gei-0/1/0/1)#backup-path te_tunnel 6

Run the following commands on P2:


P2#configure terminal
P2(config)#interface gei-0/1/0/1
P2(config-if-gei-0/1/0/1)#ip address 1.1.1.2 255.255.255.0
P2(config-if-gei-0/1/0/1)#no shutdown
P2(config-if-gei-0/1/0/1)#exit
P2(config)#interface gei-0/2/0/1
P2(config-if-gei-0/2/0/1)#ip address 9.1.1.2 255.255.255.0
P2(config-if-gei-0/2/0/1)#no shutdown
P2(config-if-gei-0/2/0/1)#exit
P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#ip address 2.1.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface loopback1
P2(config-if-loopback1)#ip address 102.102.102.102 255.255.255.255
P2(config-if-loopback1)#exit

2-83

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P2(config)#router ospf 1
P2(config-ospf-1)#network 1.1.1.2 0.0.0.0 area 0
P2(config-ospf-1)#network 9.1.1.2 0.0.0.0 area 0
P2(config-ospf-1)#network 2.1.1.2 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit
P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback1
P2(config-mpls-te-if-loopback1)#exit
P2(config-mpls-te)#router-id 102.102.102.102
P2(config-mpls-te)#interface gei-0/1/0/1
P2(config-mpls-te-if-gei-0/1/0/1)#exit
P2(config-mpls-te)#interface gei-0/2/0/1
P2(config-mpls-te-if-gei-0/2/0/1)#bandwidth dynamic 20000
P2(config-mpls-te-if-gei-0/2/0/1)#exit
P2(config-mpls-te)#

Run the following commands on P3:


P3#configure terminal
P3(config)#interface gei-0/1/0/2
P3(config-if-gei-0/1/0/2)#ip address 9.1.1.4 255.255.255.0
P3(config-if-gei-0/1/0/2)#no shutdown
P3(config-if-gei-0/1/0/2)#exit
P3(config)#interface gei-0/1/0/1
P3(config-if-gei-0/1/0/1)#ip address 5.1.1.4 255.255.255.0
P3(config-if-gei-0/1/0/1)#no shutdown
P3(config-if-gei-0/1/0/1)#exit
P3(config)#interface loopback1
P3(config-if-loopback1)#ip address 103.103.103.103 255.255.255.255
P3(config-if-loopback1)#exit
P3(config)#router ospf 1
P3(config-ospf-1)#network 9.1.1.4 0.0.0.0 area 0
P3(config-ospf-1)#network 5.1.1.4 0.0.0.0 area 0
P3(config-ospf-1)#mpls traffic-eng area 0
P3(config-ospf-1)#exit
P3(config)#mpls traffic-eng
P3(config-mpls-te)#interface loopback1
P3(config-mpls-te-if-loopback1)#exit
P3(config-mpls-te)#router-id 103.103.103.103
P3(config-mpls-te)#interface gei-0/1/0/2
P3(config-mpls-te-if-gei-0/1/0/2)#exit
P3(config-mpls-te)#

2-84

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Configuration Verification
1. After bandwidth protection is configured for a tunnel, run the show this !<mpls-te>
command to check the tunnel configuration and information. The execution result is
displayed as follows:
P1(config-mpls-te-tunnel-te_tunnel1)#show this
!<mpls-te>
tunnel destination ipv4 103.103.103.103
tunnel mpls traffic-eng bandwidth 10000
tunnel mpls traffic-eng record-route
tunnel mpls traffic-eng fast-reroute facility bw-protect
tunnel mpls traffic-eng path-option 1 explicit-path name main
!</mpls-te>
P1(config-mpls-te-tunnel-te_tunnel1)#show mpls traffic-eng tunnels te_tunnel 1
/*If the Bandwidth Protection field is set to enabled, the FRR bandwidth
protection is enabled.*/
Name: tunnel_1
(Tunnel1) Destination: 103.103.103.103
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit name: main (Basis for Setup)
Actual Bandwidth: N/A
Hot-standby protection:
No path options protected
Config Parameters:
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Hop Prior: disabled Upper Limit: -
Record-Route: enabled
Facility Fast-reroute: enabled
Detour Fast-reroute: disabled
Bandwidth Protection: enabled
Hot-standby-lsp Fast-reroute: disabled
BFD: disabled
Policy Class: Default
Track Name:
Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: disabled
Tunnel-Status: enabled
Bandwidth: 10000 kbps (Global) Priority: 7 7
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
Affinity(Bit position):
Exclude-any: None
Include-any: None

2-85

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Include-all: None
AutoRoute: disabled
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0
Without-CSPF: disabled
InLabel: -
OutLabel: gei-0/1/0/1, 147457
RSVP Signalling Info :
Src 101.101.101.101, Dst 103.103.103.103, Tun-ID 1, Tun-Instance 4
RSVP Path Info:
Explicit Route: 1.1.1.1 1.1.1.2 9.1.1.2 9.1.1.4 103.103.103.103
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 10000 kb, burst= 0 byte, peak rate= 10000 kb
RSVP Resv Info:
Record Route: 102.102.102.102(147457) 1.1.1.2(147457) 103.103.103.103(3)
9.1.1.4(3)
Fspec: ave rate= 10000 kb, burst= 0 byte, peak rate= 10000 kb
History:
Tunnel:
Time Since Created: 0 day, 0 hour, 18 minute, 3 second
Prior LSP: path option 1
Current LSP: Uptime:0 day, 0 hour, 15 minute, 40 second
Last LSP Error Information:

2. Run the show mpls traffic-eng tunnels backup command to check the information
about a backup tunnel after a backup bandwidth is configured for the backup tunnel.
The execution result is displayed as follows, in which, the Backup BW field is the
configured backup bandwidth.
P1#show mpls traffic-eng tunnels backup
Name: tunnel_2
LSP Head: Tunnel2 Admin: up Oper: up
Src:101.101.101.101,Dest: 102.102.102.102,Instance:1
Fast Reroute Backup Provided:
Protected i/fs: gei-0/1/0/1
Protected lsps: 0
Backup BW: 15000 kbps; inuse: 0 kbps
Name: tunnel_3

2-86

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

LSP Head: Tunnel3 Admin: up Oper: up


Src:101.101.101.101,Dest: 102.102.102.102,Instance:1
Fast Reroute Backup Provided:
Protected i/fs: gei-0/1/0/1
Protected lsps: 0
Backup BW: 20000 kbps; inuse: 0 kbps
Name: tunnel_4
LSP Head: Tunnel4 Admin: up Oper: up
Src:101.101.101.101,Dest: 102.102.102.102,Instance:1
Fast Reroute Backup Provided:
Protected i/fs: gei-0/1/0/1
Protected lsps: 0
Backup BW: 9000 kbps; inuse: 0 kbps
Name: tunnel_5
LSP Head: Tunnel5 Admin: up Oper: up
Src:101.101.101.101,Dest: 102.102.102.102,Instance:1
Fast Reroute Backup Provided:
Protected i/fs: gei-0/1/0/1
Protected lsps: 0
Backup BW: unlimited; inuse: 0 kbps
Name: tunnel_6
LSP Head: Tunnel6 Admin: up Oper: up
Src:101.101.101.101,Dest: 103.103.103.103,Instance:1
Fast Reroute Backup Provided:
Protected i/fs: gei-0/1/0/1
Protected lsps: 1
Backup BW: 20000 kbps; inuse: 0 kbps

3. After FRR protection is formed, run the following commands to check the selected
optimum backup tunnel:
P1#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 4 Tun hd gei-0/1/0/1:147457 Tu6:3 ready
LSP midpoint frr information:
LSP identifier In-label Out intf/label FRR intf/label Status

4. After FRR protection is formed, run the show mpls traffic-eng tunnels backup command
to check the backup tunnel information. The execution result is displayed as follows,
in which, the Protected lsps field is the number of the LSPs under the protection of
the backup tunnel, and the inuse field is the used backup bandwidth of the backup
tunnel.
P1#show mpls traffic-eng tunnels backup
Name: tunnel_2
LSP Head: Tunnel2 Admin: up Oper: up

2-87

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Src:101.101.101.101,Dest: 102.102.102.102,Instance:1
Fast Reroute Backup Provided:
Protected i/fs: gei-0/1/0/1
Protected lsps: 0
Backup BW: 15000 kbps; inuse: 0 kbps
Name: tunnel_3
LSP Head: Tunnel3 Admin: up Oper: up
Src:101.101.101.101,Dest: 102.102.102.102,Instance:1
Fast Reroute Backup Provided:
Protected i/fs: gei-0/1/0/1
Protected lsps: 0
Backup BW: 20000 kbps; inuse: 0 kbps
Name: tunnel_4
LSP Head: Tunnel4 Admin: up Oper: up
Src:101.101.101.101,Dest: 102.102.102.102,Instance:1
Fast Reroute Backup Provided:
Protected i/fs: gei-0/1/0/1
Protected lsps: 0
Backup BW: 9000 kbps; inuse: 0 kbps
Name: tunnel_5
LSP Head: Tunnel5 Admin: up Oper: up
Src:101.101.101.101,Dest: 102.102.102.102,Instance:1
Fast Reroute Backup Provided:
Protected i/fs: gei-0/1/0/1
Protected lsps: 0
Backup BW: unlimited; inuse: 0 kbps
Name: tunnel_6
LSP Head: Tunnel6 Admin: up Oper: up
Src:101.101.101.101,Dest: 103.103.103.103,Instance:1
Fast Reroute Backup Provided:
Protected i/fs: gei-0/1/0/1
Protected lsps: 1
Backup BW: 20000 kbps; inuse: 10000 kbps (BWP inuse: 10000 kbps)

2.6.3.5 Instance of Configuration for HOT_LSP Supporting TE-FRR

Configuration Description
In Figure 2-18, an end-to-end MPLS-TE path protection tunnel is established by using
IGP-TE, the FRR is enabled (facility or one-to-one), and the HOT_LSP is configured
to support TE-FRR. Take ISIS-TE as example, the path of the active LSP Tunnel1 is
the yellow solid line P1->P2->P3, the Tunnel HOT-LSP path is the black dotted line
P1->P4->P2->P3, a backup tunnel Tunnel2 (P2->P4->P5->P3) protection link P2->P3 is
configured on P2.

2-88

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Figure 2-18 Instance of Configuration for HOT_LSP Supporting TE-FRR

Configuration Flow
1. Configure a loopback address and interface address on each of five devices.
2. Establish the ISIS neighbor relation for all interfaces interconnected in the network,
enable the TE function on the ISIS and interfaces.
3. Configure an MPLS-TE end-to-end path protection tunnel Tunnel1 on P1 to P3,
enable the active LSP to strictly route along P1->P2->P3, and the HOT-LSP along
P1->P4->P2->P3, and enable the FRR facility function.
4. Configure a proper HOT_LSP FRR protection relation on P1 and a protection link
P2-P3 for backup tunnel Tunnel2 (P2->P4->P5->P3) on P2 to form a proper FRR link
protection on P2.
5. If the P1-P2 link becomes invalid, the FRR protection relation on P1 becomes active,
but the FRR protection relation on P2 is not affected, which is still ready.
6. If the P1-P2 link becomes invalid again, the FRR protection relation on both P1 and
P2 is active.

Configuration Commands
Run the following commands on P1:
Interface configurations:
P1(config)#interface gei-0/1/0/7
P1(config-if-gei-0/1/0/7)#no shutdown
P1(config-if-gei-0/1/0/7)#ip address 107.44.44.4 255.255.255.0
P1(config-if-gei-0/1/0/7)#exit
P1(config)#interface gei-0/1/0/13
P1(config-if-gei-0/1/0/13)#no shutdown
P1(config-if-gei-0/1/0/13)#ip address 1.0.13.4 255.255.255.0

2-89

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-if-gei-0/1/0/13)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 4.4.4.100 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit
ISIS and ISIS-TE configurations:
P1(config)#router isis 10
P1(config-isis-10)#area 00
P1(config-isis-10)#system-id 0000.4444.4444
P1(config-isis-10)#is-type level-1
P1(config-isis-10)#metric-style wide
P1(config-isis-10)#mpls traffic-eng level-1
P1(config-isis-10)#interface gei-0/1/0/7
P1(config-isis-10-if-gei-0/1/0/7)#ip router isis
P1(config-isis-10-if-gei-0/1/0/7)#exit
P1(config-isis-10)#interface gei-0/1/0/13
P1(config-isis-10-if-gei-0/1/0/13)#ip router isis
P1(config-isis-10-if-gei-0/1/0/13)#exit
P1(config-isis-10)#exit
MPLS-TE configurations:
P1(config)#mpls traffic-eng
P1(config-mpls-te)#router-id 4.4.4.100
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#interface gei-0/1/0/7
P1(config-mpls-te-if-gei-0/1/0/7)#exit
P1(config-mpls-te)#interface gei-0/1/0/13
P1(config-mpls-te-if-gei-0/1/0/13)#exit
P1(config-mpls-te)#explicit-path name main
P1(config-mpls-te-expl-path-name)#next-address strict 1.0.13.52
P1(config-mpls-te-expl-path-name)#next-address strict 15.73.52.73
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#explicit-path name hot-lsp
P1(config-mpls-te-expl-path-name)#next-address strict 107.44.44.72
P1(config-mpls-te-expl-path-name)#next-address strict 208.72.52.52
P1(config-mpls-te-expl-path-name)#next-address strict 15.73.52.73
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#tunnel te_tunnel1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 73.73.73.2
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng record-route
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng fast-reroute facility
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1
explicit-path name main

2-90

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng hot-standby protect 1


explicit-path name hot-lsp
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng hot-standby-lsp
fast-reroute
P1(config-mpls-te-tunnel-te_tunnel1)#exit

Run the following commands on P2:


Interface configurations:
P2(config)#interface gei-0/1/0/13
P2(config-if-gei-0/1/0/13)#no shutdown
P2(config-if-gei-0/1/0/13)#ip address 1.0.13.52 255.255.255.0
P2(config-if-gei-0/1/0/13)#exit
P2(config)#interface gei-0/1/0/15
P2(config-if-gei-0/1/0/15)#no shutdown
P2(config-if-gei-0/1/0/15)#ip address 15.73.52.52 255.255.255.0
P2(config-if-gei-0/1/0/15)#exit
P2(config)#interface gei-0/1/0/18
P2(config-if-gei-0/1/0/18)#no shutdown
P2(config-if-gei-0/1/0/18)#ip address 208.72.52.52 255.255.255.0
P2(config-if-gei-0/1/0/18)#exit
P2(config)#interface loopback1
P2(config-if-loopback1)#ip address 52.52.52.100 255.255.255.255
P2(config-if-loopback1)#exit
P2(config)#interface te_tunnel2
P2(config-if-te_tunnel2)#ip unnumbered loopback1
P2(config-if-te_tunnel2)#exit
ISIS and ISIS-TE configurations:
P2(config)#router isis 10
P2(config-isis-10)#area 00
P2(config-isis-10)#system-id 0000.5252.5252
P2(config-isis-10)#is-type level-1
P2(config-isis-10)#metric-style wide
P2(config-isis-10)#mpls traffic-eng level-1
P2(config-isis-10)#interface gei-0/1/0/13
P2(config-isis-10-if-gei-0/1/0/13)#ip router isis
P2(config-isis-10-if-gei-0/1/0/13)#exit
P2(config-isis-10)#interface gei-0/1/0/15
P2(config-isis-10-if-gei-0/1/0/15)#ip router isis
P2(config-isis-10-if-gei-0/1/0/15)#exit
P2(config-isis-10)#interface gei-0/1/0/18
P2(config-isis-10-if-gei-0/1/0/18)#ip router isis
P2(config-isis-10-if-gei-0/1/0/18)#exit
P2(config-isis-10)#exit
MPLS-TE configurations:

2-91

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P2(config)#mpls traffic-eng
P2(config-mpls-te)#router-id 52.52.52.100
P2(config-mpls-te)#interface loopback1
P2(config-mpls-te-if-loopback1)#exit
P2(config-mpls-te)#interface gei-0/1/0/13
P2(config-mpls-te-if-gei-0/1/0/13)#exit
P2(config-mpls-te)#interface gei-0/1/0/15
P2(config-mpls-te-if-gei-0/1/0/15)#exit
P2(config-mpls-te)#interface gei-0/1/0/18
P2 (config-mpls-te-if-gei-0/1/0/18)#exit
P2(config-mpls-te)#explicit-path name P2-P4-P5-P3
P2(config-mpls-te-expl-path-name)#next-address strict 208.72.52.72
P2(config-mpls-te-expl-path-name)#next-address strict 13.13.13.2
P2(config-mpls-te-expl-path-name)#next-address strict 14.1.1.2
P2(config-mpls-te-expl-path-name)#exit
P2(config-mpls-te)#tunnel te_tunnel2
P2(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng path-option 1
explicit-path name P2-P4-P5-P3
P2(config-mpls-te-tunnel-te_tunnel2)#exit
P2(config-mpls-te)#interface gei-0/1/0/15
P2(config-mpls-te-if-gei-0/1/0/15)#backup-path te_tunnel 2
P2(config-mpls-te-if-gei-0/1/0/15)#exit
P2(config-mpls-te)#exit

Run the following commands on P3:


Interface configurations:
P3(config)#interface gei-0/1/0/15
P3(config-if-gei-0/1/0/15)#no shutdown
P3(config-if-gei-0/1/0/15)#ip address 15.73.52.73 255.255.255.0
P3(config-if-gei-0/1/0/15)#exit
P3(config)#interface gei-0/1/0/6
P3(config-if-gei-0/1/0/6)#no shutdown
P3(config-if-gei-0/1/0/6)#ip address 14.1.1.2 255.255.255.0
P3(config-if-gei-0/1/0/6)#exit
P3(config)#interface loopback1
P3(config-if-loopback1)#ip address 73.73.73.2 255.255.255.255
P3(config-if-loopback1)#exit
ISIS and ISIS-TE configurations:
P3(config)#router isis 10
P3(config-isis-10)#area 00
P3(config-isis-10)#system-id 2008.561c.41a2
P3(config-isis-10)#is-type level-1
P3(config-isis-10)#metric-style wide
P3(config-isis-10)#mpls traffic-eng level-1

2-92

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P3(config-isis-10)#interface gei-0/1/0/6
P3(config-isis-10-if-gei-0/1/0/6)#ip router isis
P3(config-isis-10-if-gei-0/1/0/6)#exit
P3(config-isis-10)#interface gei-0/1/0/15
P3(config-isis-10-if-gei-0/1/0/15)#ip router isis
P3(config-isis-10-if-gei-0/1/0/15)#exit
P3(config-isis-10)#exit
MPLS-TE configurations:
P3(config)#mpls traffic-eng
P3(config-mpls-te)#router-id 73.73.73.2
P3(config-mpls-te)#interface loopback1
P3(config-mpls-te-if-loopback1)#exit
P3(config-mpls-te)#interface gei-0/1/0/15
P3(config-mpls-te-if-gei-0/1/0/15)#exit
P3(config-mpls-te)#interface gei-0/1/0/6
P3(config-mpls-te-if-gei-0/1/0/6)#exit
P3(config-mpls-te)#exit

Run the following commands on P4:


Interface configurations:
P4(config)#interface gei-0/1/0/7
P4(config-if-gei-0/1/0/7)#no shutdown
P4(config-if-gei-0/1/0/7)#ip address 107.44.44.72 255.255.255.0
P4(config-if-gei-0/1/0/7)#exit
P4(config)#interface gei-0/2/0/1
P4(config-if-gei-0/2/0/1)#no shutdown
P4(config-if-gei-0/2/0/1)#ip address 13.13.13.1 255.255.255.0
P4(config-if-gei-0/2/0/1)#exit
P4(config)#interface gei-0/2/0/8
P4(config-if-gei-0/2/0/8)#no shutdown
P4(config-if-gei-0/2/0/1)# ip address 208.72.52.72 255.255.255.0
P4(config-if-gei-0/2/0/8)#exit
P4(config)#interface loopback1
P4(config-if-loopback1)#ip address 72.72.72.1 255.255.255.255
ISIS and ISIS-TE configurations:
P4(config)#router isis 10
P4(config-isis-10)#area 00
P4(config-isis-10)#system-id 0000.0000.0072
P4(config-isis-10)#is-type level-1
P4(config-isis-10)#metric-style wide
P4(config-isis-10)#mpls traffic-eng level-1
P4(config-isis-10)#interface gei-0/1/0/7
P4(config-isis-10-if-gei-0/1/0/7)#ip router isis
P4(config-isis-10-if-gei-0/1/0/7)#exit

2-93

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P4(config-isis-10)#interface gei-0/2/0/1
P4(config-isis-10-if-gei-0/2/0/1)#ip router isis
P4(config-isis-10-if-gei-0/2/0/1)#exit
P4(config-isis-10)#interface gei-0/2/0/8
P4(config-isis-10-if-gei-0/2/0/8)#ip router isis
P4(config-isis-10-if-gei-0/2/0/8)#exit
P4(config-isis-10)#exit
MPLS-TE configurations:
P4(config)#mpls traffic-eng
P4(config-mpls-te)#router-id 72.72.72.1
P4(config-mpls-te)#interface loopback1
P4(config-mpls-te-if-loopback1)#exit
P4(config-mpls-te)#interface gei-0/1/0/7
P4(config-mpls-te-if-gei-0/1/0/7)#exit
P4(config-mpls-te)#interface gei-0/2/0/1
P4(config-mpls-te-if-gei-0/2/0/1)#exit
P4(config-mpls-te)#interface gei-0/2/0/8
P4(config-mpls-te-if-gei-0/2/0/8)#exit
P4(config-mpls-te)#exit

Run the following commands on P5:


Interface configurations:
P5(config)#interface gei-0/1/0/11
P5(config-if-gei-0/1/0/11)#no shutdown
P5(config-if-gei-0/1/0/11)#ip address 13.13.13.2 255.255.255.0
P5(config-if-gei-0/1/0/11)#exit
P5(config)#interface gei-0/1/0/6
P5(config-if-gei-0/1/0/6)#no shutdown
P5(config-if-gei-0/1/0/6)#ip address 14.1.1.1 255.255.255.0
P5(config-if-gei-0/1/0/6)#exit
P5(config)#interface loopback1
P5(config-if-loopback1)#ip address 73.73.73.1 255.255.255.255
P5(config-if-loopback1)#exit
ISIS and ISIS-TE configurations:
P5(config)#router isis 10
P5(config-isis-10)#area 00
P5(config-isis-10)#system-id 0000.0000.7301
P5(config-isis-10)#is-type level-1
P5(config-isis-10)#metric-style wide
P5(config-isis-10)#mpls traffic-eng level-1
P5(config-isis-10)#interface gei-0/1/0/11
P5(config-isis-10-if-gei-0/1/0/11)#ip router isis
P5(config-isis-10-if-gei-0/1/0/11)#exit
P5(config-isis-10)#interface gei-0/1/0/6

2-94

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P5(config-isis-10-if-gei-0/1/0/6)#ip router isis


P5(config-isis-10-if-gei-0/1/0/6)#exit
P5(config-isis-10)#exit
MPLS-TE configurations:
P5(config)#mpls traffic-eng
P5(config-mpls-te)#router-id 73.73.73.1
P5(config-mpls-te)#interface loopback1
P5(config-mpls-te-if-loopback1)#exit
P5(config-mpls-te)#interface gei-0/1/0/11
P5(config-mpls-te-if-gei-0/1/0/11)#exit
P5(config-mpls-te)#interface gei-0/1/0/6
P5(config-mpls-te-if-gei-0/1/0/6)#exit
P5(config-mpls-te)#exit

Configuration Verification
1. Run the show mpls traffic-eng tunnels brief command to check the status of the active
LSP and HOT-LSP on P1. The execution result is displayed as follows, in which up/up
indicates that the active LSP and HOT-LSP are activated.
P1(config-mpls-te)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process:running
RSVP Process:running
Forwarding:enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 73.73.73.2 - gei-0/1/0/13 up/up
tunnel_1 (hot) 73.73.73.2 - gei-0/1/0/7 up/up

2. Run the show mpls traffic-eng tunnels command to check the information about the
active LSP and HOT-LSP. The execution result is displayed as follows:
P1(config-mpls-te)#show mpls traffic-eng tunnels
Name: tunnel_1
(Tunnel1) Destination: 73.73.73.2
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit name: main (Basis for Setup)
Actual Bandwidth: N/A
Hot-standby protection:
protect option: 1, type explicit name: hot-lsp (Basis for Protect)
Config Parameters:
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Hop Prior: disabled Upper Limit: -
Record-Route: enabled

2-95

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Facility Fast-reroute: enabled


Detour Fast-reroute: disabled
Bandwidth Protection: disabled
Hot-standby-lsp Fast-reroute: disabled
BFD: disabled
Policy Class: Default
Track Name:
Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: disabled
Tunnel-Status: enabled
Bandwidth: 0 kbps (Global) Priority: 7 7
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
Affinity(Bit position):
Exclude-any: None
Include-any: None
Include-all: None
AutoRoute: disabled
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0
Without-CSPF: disabled
InLabel: -
OutLabel: gei-0/1/0/13, 212992
RSVP Signalling Info :
Src 4.4.4.100, Dst 73.73.73.2, Tun-ID 1, Tun-Instance 143
RSVP Path Info:
Explicit Route: 1.0.13.4 1.0.13.52 15.73.52.52 15.73.52.73 73.73.73.2
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb
RSVP Resv Info:
Record Route: 52.52.52.100(212992) 1.0.13.52(212992) 73.73.73.2(147456) 15
.73.52.73(147456)
Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb
History:
Tunnel:
Time Since Created: 0 day, 14 hour, 34 minute, 48 second
Prior LSP: path option 1

2-96

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Current LSP: Uptime:0 day, 0 hour, 7 minute, 45 second


Last LSP Error Information:
Path-option config changed(lspid:139,errcode:1,errvalue:2).
Path-option config changed(lspid:138,errcode:1,errvalue:2).
Tunnel destination changed(lspid:137,errcode:1,errvalue:4).
Name: tunnel_1
(hot) (Tunnel1) Destination: 73.73.73.2
Status:
Signalling: up
Actual Bandwidth: N/A
Hot-standby protection:
Config Parameters:
BFD: disabled
Hot-standby-lsp Fast-reroute: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Bandwidth: 0 kbps (Global) Priority: 7 7
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
Affinity(Bit position):
Exclude-any: None
Include-any: None
Include-all: None
AutoRoute: disabled
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0
Without-CSPF: disabled
InLabel: -
OutLabel: gei-0/1/0/7, 147458
RSVP Signalling Info :
Src 4.4.4.100, Dst 73.73.73.2, Tun-ID 1, Tun-Instance 157
RSVP Path Info:
Explicit Route: 107.44.44.4 107.44.44.72 208.72.52.72 208.72.52.52 15.73.52.52
15.73.52.73 73.73.73.2
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb
RSVP Resv Info:
Record Route: 72.72.72.1(147458) 107.44.44.72(147458) 52.52.52.100(212994)
208.72.52.52(212994) 73.73.73.2(147462) 15.73.52.73(147462)

2-97

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb


History:
Tunnel:
Time Since Created: 0 day, 14 hour, 34 minute, 49 second
Prior LSP: path option 1
Current LSP: Uptime:0 day, 0 hour, 0 minute, 45 second
Last LSP Error Information:
Path-option config changed(lspid:139,errcode:1,errvalue:2).
Path-option config changed(lspid:138,errcode:1,errvalue:2).
Tunnel destination changed(lspid:137,errcode:1,errvalue:4).

3. Run the show mpls traffic-eng tunnels hot-standby command to check the details of
the HOT-LSP. The execution result is displayed as follows, in which, Hot-standby
Protection:ready indicates that FRR protection is enabled.
P1(config-mpls-te)#show mpls traffic-eng tunnels hot-standby
Name: tunnel_1
(Tunnel1) Destination: 73.73.73.2
Status:
Admin: up Oper: up Path: valid Signalling: connected
Fast Reroute Protection: none
Hot-standby Protection: ready
Config Parameters:
BFD: disabled
Hot-standby-lsp Fast-reroute: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0
InLabel: -
OutLabel: gei-0/1/0/7, 147458
RSVP Signalling Info :
Src 4.4.4.100, Dst 73.73.73.2, Tun-ID 1, Tun-Instance 157
RSVP Path Info:
Explicit Route: 107.44.44.4 107.44.44.72 208.72.52.72 208.72.52.52 15.73.5
2.52 15.73.52.73 73.73.73.2
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb
RSVP Resv Info:
Record Route: 72.72.72.1(147458) 107.44.44.72(147458) 52.52.52.100(212994)
208.72.52.52(212994) 73.73.73.2(147462) 15.73.52.73(147462)
Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb

2-98

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

4. Run the show mpls traffic-eng fast-reroute command on P1 to check the FRR protection
relation. The execution result is displayed as follows, in which, ready indicates that
the FRR protection relation is properly established.
P1(config-mpls-te)#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 143 Tun hd gei-0/1/0/13:212992 Tu1:147458 ready
LSP midpoint frr information:
LSP identifier In-label Out intf/label FRR intf/label Status
P1(config-mpls-te)#

5. Run the show mpls traffic-eng tunnels brief command on P2 to check the status of the
backup tunnel Tunnel2. The execution result is displayed as follows, in which, up/up
indicates that Tunnel2 is properly established.
P2(config)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process:running
RSVP Process:running
Forwarding:enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_2 73.73.73.2 - gei-0/1/0/18 up/up

6. Run the show mpls traffic-eng tunnels te_tunnel 2 command on P2 to check the details
of the backup tunnel Tunnel2. The execution result is displayed as follows:
P2(config)#show mpls traffic-eng tunnels te_tunnel 2
Name: tunnel_2
(Tunnel2) Destination: 73.73.73.2
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit name: P2-P4-P5-P3 (Basis for Setup)
Actual Bandwidth: N/A
Hot-standby protection:
No path options protected
Config Parameters:
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Hop Prior: disabled Upper Limit: -
Record-Route: disabled
Facility Fast-reroute: disabled
Detour Fast-reroute: disabled
Bandwidth Protection: disabled
Hot-standby-lsp Fast-reroute: disabled
BFD: disabled
Policy Class: Default
Track Name:

2-99

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: disabled
Tunnel-Status: enabled
Bandwidth: 0 kbps (Global) Priority: 7 7
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
Affinity(Bit position):
Exclude-any: None
Include-any: None
Include-all: None
AutoRoute: disabled
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0
Without-CSPF: disabled
InLabel: -
OutLabel: gei-0/1/0/18, 147462
RSVP Signalling Info :
Src 52.52.52.100, Dst 73.73.73.2, Tun-ID 2, Tun-Instance 18
RSVP Path Info:
Explicit Route: 208.72.52.52 208.72.52.72 13.13.13.1 13.13.13.2 14.1.1.1
14.1.1.2 73.73.73.2

7. Run the show mpls traffic-eng fast-reroute command on P2 to check the FRR link
protection configuration. The execution result is displayed as follows, in which, the
protection link P2->P3 of the backup tunnel Tunnel2 is displayed.
P2(config)#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
LSP midpoint frr information:
LSP identifier In-label Out intf/label FRR intf/label Status
4.4.4.100 1/183 212992 gei-0/1/0/15:147456 Tu2:147457 ready
4.4.4.100 1/184 212993 gei-0/1/0/15:147461 Tu2:147457 ready

8. When the P1->P2 link is invalid, the FRR protection relation on P1 becomes active,
for example:
P1(config)#interface gei-0/1/0/13
P1(config-if-gei-0/1/0/13)#shutdown
P1(config-if-gei-0/1/0/13)#show mpls traffic-eng fast-reroute

2-100

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Tunnel head end item information


Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 162 Tun hd gei-0/1/0/13:212992 Tu1:147459 active

Run the show mpls traffic-eng tunnels brief command on P1 to check the information
about Tunnel1. The execution result is displayed as follows:
P1(config-if-gei-0/1/0/13)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process:running
RSVP Process:running
Forwarding:enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 73.73.73.2 - gei-0/1/0/7 up/up
P1(config-if-gei-0/1/0/13)#show mpls traffic-eng tunnels te_tunnel 1
Name: tunnel_1
(Tunnel1) Destination: 73.73.73.2
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit name: main
Actual Bandwidth: N/A
Hot-standby protection:
protect option: 1, type explicit name: hot-lsp (Basis for Protect)
Config Parameters:
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Hop Prior: disabled Upper Limit: -
Record-Route: enabled
Facility Fast-reroute: enabled
Detour Fast-reroute: disabled
Bandwidth Protection: disabled
Hot-standby-lsp Fast-reroute: disabled
BFD: disabled
Policy Class: Default
Track Name:
Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: disabled
Tunnel-Status: enabled
Bandwidth: 0 kbps (Global) Priority: 7 7
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
Affinity(Bit position):
Exclude-any: None
Include-any: None
Include-all: None

2-101

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

AutoRoute: disabled
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0
Without-CSPF: disabled
InLabel: -
OutLabel: gei-0/1/0/7, 147459
RSVP Signalling Info :
Src 4.4.4.100, Dst 73.73.73.2, Tun-ID 1, Tun-Instance 163
RSVP Path Info:
Explicit Route: 107.44.44.4 107.44.44.72 208.72.52.72 208.72.52.52 15.73.52.52
15.73.52.73 73.73.73.2
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb
RSVP Resv Info:
Record Route: 72.72.72.1(147459) 107.44.44.72(147459) 52.52.52.100(212993)
208.72.52.52(212993) 73.73.73.2(147460) 15.73.52.73(147460)
Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb

Run the show mpls traffic-eng tunnels hot-standby command on P1 to check the
HOT-LSP protection relation. The execution result is displayed as follows, in which,
backup lsp in use indicates that the traffic on P1 is forwarded through HOT-LSP.

P1(config-if-gei-0/1/0/13)#show mpls traffic-eng tunnels hot-standby


Name: tunnel_1
(Tunnel1) Destination: 73.73.73.2
Status:
Admin: up Oper: up Path: valid Signalling: connected
Fast Reroute Protection: none
Hot-standby Protection: backup lsp in use
Config Parameters:
BFD: disabled
Hot-standby-lsp Fast-reroute: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0

2-102

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Run the show mpls traffic-eng fast-reroute command on P2 to check the FRR protection
relation. The execution result is displayed as follows, in which, FRR protection relation
is still ready, without being affected.
P2(config)#show mpls traffic-eng fast-reroute
LSP midpoint frr information:
LSP identifier In-label Out intf/label FRR intf/label Status
4.4.4.100 1/162 212992 gei-0/1/0/15:147456 Tu2:147462 ready

9. If the P2->P3 link also becomes invalid, the FRR protection relation on both P1 and
P2 is active, for example:
P2(config)#interface gei-0/1/0/15
P2(config-if-gei-0/1/0/15)#shutdown
P2(config-if-gei-0/1/0/15)#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
LSP midpoint frr information:
LSP identifier In-label Out intf/label FRR intf/label Status
4.4.4.100 1/184 212993 gei-0/1/0/15:147461 Tu2:147457 active

When the P2->P3 link is restored, the FRR protection relation on both P1 and P2 is
active. Only when the P1->P2 link is also restored, can the FRR protection relation on
P1 and P2 be restored to ready.

2.7 FRR Promotion Introduction


2.7.1 FRR Promotion Introduction
Overview
Multiple backup tunnels can be configured on an interface. The FRR promotion function
is used to properly adjust the protection relationships between active and backup tunnels.
For example, if an interface has a backup tunnel only (Tunnel1), only a link protection
relationship can be established between active and backup tunnels. If another backup
tunnel (Tunnel2) is configured on the interface, a node protection relationship can be
established between the backup tunnel and active tunnel by using FRR promotion.

Implementation
After the FRR relationship is established manually, if the corresponding node has FRR
promotion enabled, the FRR relationship is deleted and a new FRR relationship is
established. The process is as follows:
1. Select the optimal backup tunnel for establishing an FRR relationship (facility
mode-based protection).
2. Configure FRR attributes on the protected tunnel.

2-103

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

3. Configure the ID of the backup tunnel on the egress interface of the protected tunnel.
A maximum of 16 tunnels can be configured on an egress interface for FRR protection.
4. Configure FRR promotion: select the optimal tunnel from the configured 16 tunnels,
and establish an FRR relationship between the optimal tunnel and protected tunnel.
The priorities of the conditions for selecting the optimal backup tunnel is as follows:
protection type>bandwidth for backup tunnels>pooling mechanism.
5. FRR promotion takes effect for the backup tunnels in ready status only.

2.7.2 Configuring FRR Promotion


This procedure describes how to configure FRR promotion.

Context
FRR promotion should be configured on an PLR node generated in FRR protection.

Steps
1. To enable MPLS TE, run the following command:

Command Function

ZXCTN(config)#mpls traffic-eng Enables MPLS TE, and enters


TE configuration mode.

2. To enable FRR promotion, perform the following steps:

Step Command Function

1 ZXCTN(config-mpls-te)#fast-reroute promote Enables FRR promotion


manually.

2 ZXCTN(config-mpls-te)#fast-reroute timers promotion Enables the FRR promotion


timer.

3 ZXCTN(config-mpls-te)#fast-reroute timers promotion Configures a periodic interval


interval <interval> for running FRR promotion.

3. To display the configuration results, run the following command:

Command Function

ZXCTN#show mpls traffic-eng fast-reroute promotion Displays the FRR promotion


information.

End of Steps

2-104

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

2.7.3 FRR Promotion Configuration Examples


2.7.3.1 FRR Promotion Configuration Example (Node Protection Having a Higher
Priority than Link Protection)

Scenario Description
Figure 2-19 shows a sample network topology. It is required to establish a primary tunnel
(Tunnel1) from P1 to P3 and two backup tunnels (Tunnel2 and Tunnel3). Tunnel1 should
pass through P1, P2, and P3, Tunnel2 should pass through P1 and P2, and Tunnel3 should
pass through P1 and P3. Tunnel2 provides link protection, and Tunnel3 provides node
protection.

Figure 2-19 FRR Promotion Configuration Example (Node Protection Having a Higher
Priority than Link Protection)

Configuration Flow
1. Establish OSPF neighbor relationships between the directly-connected interfaces of
P1, P2, and P3, and enable OSPF TE.
2. Establish three tunnels. Tunnel1 (primary tunnel) should pass through P1, P2, and
P3, Tunnel2 (backup tunnel) should pass through P1 and P2, and Tunnel3 (backup
tunnel) should pass through P1 and P3.
3. Enable FRR promotion in the TE configuration mode of P1.
4. Configure Tunnel2 and Tunnel3 to be backup tunnels on the gei-0/2/1/1 interface of
P1.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/2/1/1
P1(config-if-gei-0/2/1/1)#no shutdown
P1(config-if-gei-0/2/1/1)#ip address 74.1.1.1 255.255.255.0
P1(config-if-gei-0/2/1/1)#exit
P1(config)#interface gei-0/2/1/3
P1(config-if-gei-0/2/1/3)#no shutdown
P1(config-if-gei-0/2/1/3)#ip address 60.1.1.1 255.255.255.0

2-105

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-if-gei-0/2/1/3)#exit
P1(config)#interface gei-0/2/1/4
P1(config-if-gei-0/2/1/4)#no shutdown
P1(config-if-gei-0/2/1/4)#ip address 39.1.1.1 255.255.255.0
P1(config-if-gei-0/2/1/4)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit
P1(config)#interface te_tunnel2
P1(config-if-te_tunnel2)#ip unnumbered loopback1
P1(config-if-te_tunnel2)#exit
P1(config)#interface te_tunnel3
P1(config-if-te_tunnel3)#ip unnumbered loopback1
P1(config-if-te_tunnel3)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#network 74.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 60.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 39.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#explicit-path name primary
P1(config-mpls-te-expl-path-name)#next-address strict 74.1.1.2
P1(config-mpls-te-expl-path-name)#next-address strict 120.1.1.3
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#explicit-path name back1
P1(config-mpls-te-expl-path-name)#next-address strict 39.1.1.2
P1(config-mpls-te)#explicit-path name back2
P1(config-mpls-te-expl-path-name)#next-address strict 60.1.1.3
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#interface gei-0/2/1/1
P1(config-mpls-te-if-gei-0/2/1/1)#exit
P1(config-mpls-te)#interface gei-0/2/1/3
P1(config-mpls-te-if-gei-0/2/1/3)#exit
P1(config-mpls-te)#interface gei-0/2/1/4

2-106

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P1(config-mpls-te-if-gei-0/2/1/4)#exit

P1(config-mpls-te)#fast-reroute promote
P1(config-mpls-te)#fast-reroute timers promotion
P1(config-mpls-te)#fast-reroute timers promotion interval 60

P1(config-mpls-te)#tunnel te_tunnel1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 3.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path name primary
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng record-route
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
fast-reroute facility
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#tunnel te_tunnel2
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te- tunnel-te_tunnel2)#tunnel mpls traffic-eng
path-option 1 explicit-path name back1
P1(config-mpls-te-tunnel-te_tunnel2)#exit
P1(config-mpls-te)#tunnel te_tunnel3
P1(config-mpls-te-tunnel-te_tunnel3)#tunnel destination ipv4 3.1.1.1
P1(config-mpls-te-tunnel-te_tunnel3)#tunnel mpls traffic-eng
path-option 1 explicit-path name back2
P1(config-mpls-te-tunnel-te_tunnel2)#exit
P1(config-mpls-te)#interface gei-0/2/1/1
P1(config-mpls-te-if-gei-0/2/1/1)#backup-path te_tunnel 2
P1(config-mpls-te-if-gei-0/2/1/1)#backup-path te_tunnel 3
P1(config-mpls-te-if-gei-0/2/1/1)#exit
P1(config-mpls-te)#exit

Run the following commands on P2:


P2(config)#interface gei-0/2/1/1
P2(config-if-gei-0/2/1/1)#no shutdown
P2(config-if-gei-0/2/1/1)#ip address 74.1.1.2 255.255.255.0
P2(config-if-gei-0/2/1/1)#exit
P2(config)#interface gei-0/2/1/2
P2(config-if-gei-0/2/1/2)#no shutdown
P2(config-if-gei-0/2/1/2)#ip address 120.1.1.2 255.255.255.0
P2(config-if-gei-0/2/1/2)#exit
P2(config)#interface gei-0/2/1/4
P2(config-if-gei-0/2/1/4)#no shutdown
P2(config-if-gei-0/2/1/4)#ip address 39.1.1.2 255.255.255.0
P2(config-if-gei-0/2/1/4)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255

2-107

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#network 74.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 120.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/2/1/1
P2(config-mpls-te-if-gei-0/2/1/1)#exit
P2(config-mpls-te)#interface gei-0/2/1/2
P2(config-mpls-te-if-gei-0/2/1/2)#exit
P2(config-mpls-te)#interface gei-0/2/1/4
P2(config-mpls-te-if-gei-0/2/1/4)#exit
P2(config-mpls-te)#exit

Run the following commands on P3:


P3(config)#interface gei-0/2/1/2
P3(config-if-gei-0/2/1/2)#no shutdown
P3(config-if-gei-0/2/1/2)#ip address 120.1.1.3 255.255.255.0
P3(config-if-gei-0/2/1/2)#exit
P3(config)#interface gei-0/2/1/3
P3(config-if-gei-0/2/1/3)#no shutdown
P3(config-if-gei-0/2/1/3)#ip address 60.1.1.3 255.255.255.0
P3(config-if-gei-0/2/1/3)#exit
P3(config)#interface loopback3
P3(config-if-loopback3)#ip address 3.1.1.1 255.255.255.255
P3(config-if-loopback3)#exit

P3(config)#router ospf 1
P3(config-ospf-1)#router-id 3.1.1.1
P3(config-ospf-1)#network 3.1.1.1 0.0.0.0 area 0
P3(config-ospf-1)#network 120.1.1.0 0.0.0.255 area 0
P3(config-ospf-1)#network 60.1.1.0 0.0.0.255 area 0
P3(config-ospf-1)#mpls traffic-eng area 0
P3(config-ospf-1)#exit

P3(config)#mpls traffic-eng
P3(config-mpls-te)#interface loopback3

2-108

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P3(config-mpls-te-if-loopback3)#exit
P3(config-mpls-te)#router-id 3.1.1.1
P3(config-mpls-te)#interface gei-0/2/1/2
P3(config-mpls-te-if-gei-0/2/1/2)#exit
P3(config-mpls-te)#interface gei-0/2/1/3
P3(config-mpls-te-if-gei-0/2/1/3)#exit
P3(config-mpls-te)#exit

Configuration Verification
After the tunnel goes up, run the show mpls traffic-eng tunnels brief command on P1 to
check whether FRR relationships have been established. The execution result is displayed
as follows:
P1#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 3.1.1.1 - gei-0/2/1/1 up/up
tunnel_22.1.1.1 - gei-0/2/1/4 up/up
tunnel_33.1.1.1 - gei-0/2/1/3 up/up

P1#show mpls traffic-eng fast-reroute


Tunnel head end item information
Protected Tunnel LspIDIn-label Out intf/label FRR intf/label Status
Tunnel186 Tun hd gei-0/2/1/1:147456Tu3:3 ready

LSP midpoint frr information:


LSP identifierIn-label Out intf/label FRR intf/label Status

P1(config)#show mpls traffic-eng fast-reroute promotion


MPLS-TE: Enabled
Periodic FRR Promotion: every 60 seconds, next in 4 second

2.7.3.2 FRR Configuration Example (Bandwidth for Backup Tunnels Being Met)

Scenario Description
Figure 2-20 shows a sample network topology. It is required to establish the primary tunnel
(Tunnel1 has a 5000 kbps bandwidth) from P1 to P2 and two backup tunnels (Tunnel2 has
a 6000 kbps bandwidth and Tunnel3 has a 5000 kbps bandwidth) through other two links.
Moreover, FRR promotion should be enabled to establish an FRR relationship between
P1 and P2.

2-109

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 2-20 FRR Configuration Example (Bandwidth for Backup Tunnels Being Met)

Configuration Flow
1. Establish an OSPF neighbor relationship between the directly-connected interfaces of
P1 and P2, enable OSPF TE, and configure the bandwidth.
2. Establish three strict paths. The primary path is configured between the gei-0/1/0/2
interfaces of P1 and P2, and two backup paths are respectively configured between
the gei-0/1/0/3 interfaces and between the gei-0/1/0/4 interfaces of P1 and P2.
3. Establish the primary tunnel (Tunnel1 with a 5000 kbps bandwidth) and two backup
tunnels (Tunnel2 with a 6000 kbps bandwidth and Tunnel3 with a 5000 kbps
bandwidth).
4. Enable FRR promotion, and configure Tunnel2 and Tunnel3 to be backup tunnels on
the egress interface (gei-0/1/0/2) of the primary tunnel of P1.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface gei-0/1/0/3
P1(config-if-gei-0/1/0/3)#no shutdown
P1(config-if-gei-0/1/0/3)#ip address 31.1.1.1 255.255.255.0
P1(config-if-gei-0/1/0/3)#exit
P1(config)#interface gei-0/1/0/4
P1(config-if-gei-0/1/0/4)#no shutdown
P1(config-if-gei-0/1/0/4)#ip address 32.1.1.1 255.255.255.0
P1(config-if-gei-0/1/0/4)#exit

P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit
P1(config)#interface te_tunnel2
P1(config-if-te_tunnel2)#ip unnumbered loopback1
P1(config-if-te_tunnel2)#exit

2-110

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P1(config)#interface te_tunnel3
P1(config-if-te_tunnel3)#ip unnumbered loopback1
P1(config-if-te_tunnel3)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 31.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 32.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1

P1(config-mpls-te)#fast-reroute timers promotion


P1(config-mpls-te)#fast-reroute timers promotion interval 60

P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#bandwidth 20000
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#interface gei-0/1/0/3
P1(config-mpls-te-if-gei-0/1/0/3)#bandwidth 20000
P1(config-mpls-te-if-gei-0/1/0/3)#exit
P1(config-mpls-te)#interface gei-0/1/0/4
P1(config-mpls-te-if-gei-0/1/0/4)#bandwidth 20000
P1(config-mpls-te-if-gei-0/1/0/4)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#explicit-path identifier 2
P1(config-mpls-te-expl-path-id-2)#next-address strict 31.1.1.2
P1(config-mpls-te-expl-path-id-2)#exit
P1(config-mpls-te)#explicit-path identifier 3
P1(config-mpls-te-expl-path-id-3)#next-address strict 32.1.1.2
P1(config-mpls-te-expl-path-id-3)#exit
P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng record-route
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng

2-111

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

fast-reroute facility
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
bandwidth 5000
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#tunnel te_tunnel 2
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 2
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng
backup-bw 6000
P1(config-mpls-te)#tunnel te_tunnel 3
P1(config-mpls-te-tunnel-te_tunnel3)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel3)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 3
P1(config-mpls-te-tunnel-te_tunnel3)#tunnel mpls traffic-eng
backup-bw 5000
P1(config-mpls-te-tunnel-te_tunnel3)#exit

P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/2/1/1)#backup-path te_tunnel 2
P1(config-mpls-te-if-gei-0/2/1/1)#backup-path te_tunnel 3
P1(config-mpls-te)#exit

Run the following commands on P2:

P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface gei-0/1/0/3
P2(config-if-gei-0/1/0/3)#no shutdown
P2(config-if-gei-0/1/0/3)#ip address 31.1.1.2 255.255.255.0
P2(config-if-gei-0/1/0/3)#exit
P2(config)#interface gei-0/1/0/4
P2(config-if-gei-0/1/0/4)#no shutdown
P2(config-if-gei-0/1/0/4)#ip address 32.1.1.2 255.255.255.0
P2(config-if-gei-0/1/0/4)#exit

P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 31.1.1.0 0.0.0.255 area 0

2-112

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P2(config-ospf-1)#network 32.1.1.0 0.0.0.255 area 0


P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#exit
P2(config-mpls-te)#interface gei-0/1/0/3
P2(config-mpls-te-if-gei-0/1/0/3)#exit
P2(config-mpls-te)#interface gei-0/1/0/4
P2(config-mpls-te-if-gei-0/1/0/4)#exit

Configuration Verification
After the tunnel goes up, run the show mpls traffic-eng tunnels brief command on P1 to
check whether an FRR relationship has been enabled. The execution result is displayed
as follows:
P1#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_12.1.1.1 -gei-0/1/0/2 up/up
tunnel_22.1.1.1 -gei-0/1/0/3 up/up
tunnel_32.1.1.1 -gei-0/1/0/4 up/up

P1#show mpls traffic-eng fast-reroute


Tunnel head end item information
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel176 Tun hd gei-0/1/0/2:3 Tu3:3 ready

LSP midpoint frr information:


LSP identifierIn-label Out intf/label FRR intf/label Status

P1(config)#show mpls traffic-eng fast-reroute promotion


MPLS-TE: Enabled
Periodic FRR Promotion: every 60 seconds, next in 4 second

2-113

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

2.8 FRR-Hello Configuration


2.8.1 FRR Hello Introduction
Overview
RSVP FRR protection is a local protection technology used to provide link or node
protection for TE tunnels. When a PLR detects a failure on its downstream node, it
enables the traffic to bypass the faulty link or node along a backup tunnel.
Due to the fast switchover requirements of RSVP FRR, the corresponding fast fault
detection techniques are needed, such as the widespread BFD detection and MPLS
OAM detection. In some cases, however, fault detection on neighbors cannot be
implemented due to some reasons (for example, users do not use the corresponding
detection techniques or neighbor failures are not detected in time). It is required for RSVP
itself to provide one neighbor failure detection technology (RSVP hello fault detection
mechanism).

Implementation
To implement RSVP FRR hello, IETF RFC defines and describes the implementation
process of the function.

RFC defines an extended hello message mechanism. This mechanism provides the basics
of the RSVP-TE FRR HELLO technology, and enables nodes to detect when neighbors
become unreachable or reboot. It also defines an hello object and an hello message (for
more information, refer to the "GR Introduction" section).
The loss of neighbors may be caused by the loss of neighbors on the link-layer plane or
protocol-layer plane. BFD detection can only detect the loss of neighbors on the link-layer
plane, and therefore a technology for detecting the loss of neighbors on the protocol-layer
plane is required (that is, FRR HELLO detection).
RSVP HELLO messages are sent to neighboring devices through a local interface to detect
the reachability. If neighbors cannot be detected, FRR reroute starts to operate on the local
device.

Features
l A hello component sends a message to detect the reachability of a hello neighbor.
If no hello-ack message is received from the neighbor during the interval misses
period, the neighbor is considered to be unreachable
l If a neighbor is considered to be unreachable, FRR switchover is then triggered by
using the MBB technology.

2.8.2 Configuring FRR Hello


This procedure describes how to configure FRR hello.

2-114

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Context
FRR hello should be configured on the PLR node generated in FRR protection and the
signalling interface of the protected tunnel associated with a neighbor.
The FRR Hello function is conflicted with the GR function.

Steps
1. To enable MPLS TE, run the following command:

Command Function

ZXCTN(config)#mpls traffic-eng Enables MPLS TE, and enters


the TE configuration mode.

2. To enable FRR Hello, perform the following steps:

Step Command Function

1 ZXCTN(config-mpls-te)#signalling hello Enables FRR Hello globally.

2 ZXCTN(config-mpls-te)#interface <interface-name> Enters the signalling interface


to be protected.

3 ZXCTN(config-mpls-te-if-interface-name)#signall Enables FFRR Hello on the


ing hello interface.

4 ZXCTN(config-mpls-te-if-interface-name)#signal Sets the time interval (in


ling hello refresh interval <interval> milliseconds) for refreshing
hello messages, range:
100030000.

ZXCTN(config-mpls-te-if-interface-name)#signall Sets the maximum number of


ing hello refresh misses <num> times that hello messages can
be lost, range: 410.

3. To display the configuration results, run the following commands:

Command Function

ZXCTN#show ip rsvp hello instance summary Displays the summary


information about RSVP Hello
instances.

ZXCTN#show ip rsvp hello instance detail Displays the detailed information


about RSVP Hello instances.

4. To enable FRR Hello, run the following command:

2-115

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Command Function

ZXCTN#debug rsvp hello Enables the debugging of FRR


Hello.

End of Steps

2.8.3 FRR Hello Configuration Example


Scenario Description
Figure 2-21 shows a sample network topology. It is required to establish two tunnels (with
an FRR relationship between them) from P1 to P3 and enable FRR hello on P1 and P2.
Tunnel 1 (active tunnel) passes through P1, P2, and P3, and Tunnel2 (backup tunnel)
passes through P1 and P3.

Figure 2-21 FRR Hello Configuration Example

Configuration Flow
1. Establish OSPF neighbor relationships between the directly-connected interfaces of
P1, P2, and P3, and enable OSPF TE.
2. Establish two strict paths. The active path is P1>P2>P3, and the backup path is
P1>P3.
3. Enable TE on the interfaces of P1, P2, and P3, and configure the backup tunnel on
the gei-0/2/1/1 interface of P1.
4. Establish active and backup tunnels. Enable FRR facility on the active tunnel (the
destination is the router-id of P2, and the path is a strict path).
5. Enable FRR hello on P1 and P2.

2-116

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/2/1/1
P1(config-if-gei-0/2/1/1)#no shutdown
P1(config-if-gei-0/2/1/1)#ip address 74.1.1.2 255.255.255.0
P1(config-if-gei-0/2/1/1)#exit
P1(config)#interface gei-0/2/1/3
P1(config-if-gei-0/2/1/3)#no shutdown
P1(config-if-gei-0/2/1/3)#ip address 60.1.1.1 255.255.255.0
P1(config-if-gei-0/2/1/3)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit
P1(config)#interface te_tunnel2
P1(config-if-te_tunnel2)#ip unnumbered loopback1
P1(config-if-te_tunnel2)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#network 74.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 60.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#explicit-path name primary
P1(config-mpls-te-expl-path-name)# next-address strict 74.1.1.1
P1(config-mpls-te-expl-path-name)#next-address strict 120.1.1.2
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#explicit-path name back
P1(config-mpls-te-expl-path-name)#next-address strict 60.1.1.2
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#interface gei-0/2/1/1
P1(config-mpls-te-if-gei-0/2/1/1)#exit
P1(config-mpls-te)#interface gei-0/2/1/3
P1(config-mpls-te-if-gei-0/2/1/3)#exit

2-117

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-mpls-te)#tunnel te_tunnel1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 3.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path name primary
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng record-route
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
fast-reroute facility
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#tunnel te_tunnel2
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel destination ipv4 3.1.1.1
P1(config-mpls-te- tunnel-te_tunnel2)#tunnel mpls traffic-eng
path-option 1 explicit-path name back
P1(config-mpls-te-tunnel-te_tunnel2)#exit
P1(config-mpls-te)#interface gei-0/2/1/1
P1(config-mpls-te-if-gei-0/2/1/1)#backup-path te_tunnel 2
P1(config-mpls-te-if-gei-0/2/1/1)#exit

P1(config-mpls-te)#signalling hello
P1(config-mpls-te)#interface gei-0/2/1/1
P1(config-mpls-te-if-gei-0/2/1/1)#signalling hello
P1(config-mpls-te-if-gei-0/2/1/1)#exit
P1(config-mpls-te)#exit

Run the following commands on P2:

P2(config)#interface gei-0/2/1/1
P2(config-if-gei-0/2/1/1)#no shutdown
P2(config-if-gei-0/2/1/1)#ip address 74.1.1.1 255.255.255.0
P2(config-if-gei-0/2/1/1)#exit
P2(config)#interface gei-0/2/1/2
P2(config-if-gei-0/2/1/2)#no shutdown
P2(config-if-gei-0/2/1/2)#ip address 120.1.1.1 255.255.255.0
P2(config-if-gei-0/2/1/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#network 74.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 120.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng

2-118

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/2/1/1
P2(config-mpls-te-if-gei-0/2/1/1)#exit
P2(config-mpls-te)#interface gei-0/2/1/2
P2(config-mpls-te-if-gei-0/2/1/2)#exit

P2(config-mpls-te)# signalling hello


P2(config-mpls-te)#interface gei-0/2/1/1
P2(config-mpls-te-if-gei-0/2/1/1)#signalling hello
P2(config-mpls-te-if-gei-0/2/1/1)#exit
P2(config-mpls-te)#exit

Run the following commands on P3:


P3(config)#interface gei-0/2/1/2
P3(config-if-gei-0/2/1/2)#no shutdown
P3(config-if-gei-0/2/1/2)#ip address 120.1.1.2 255.255.255.0
P3(config-if-gei-0/2/1/2)#exit
P3(config)#interface gei-0/2/1/3
P3(config-if-gei-0/2/1/3)#no shutdown
P3(config-if-gei-0/2/1/3)#ip address 60.1.1.2 255.255.255.0
P3(config-if-gei-0/2/1/3)#exit
P3(config)#interface loopback3
P3(config-if-loopback3)#ip address 3.1.1.1 255.255.255.255
P3(config-if-loopback3)#exit

P3(config)#router ospf 1
P3(config-ospf-1)#router-id 3.1.1.1
P3(config-ospf-1)#network 3.1.1.1 0.0.0.0 area 0
P3(config-ospf-1)#network 120.1.1.0 0.0.0.255 area 0
P3(config-ospf-1)#network 60.1.1.0 0.0.0.255 area 0
P3(config-ospf-1)#mpls traffic-eng area 0
P3(config-ospf-1)#exit

P3(config)#mpls traffic-eng
P3(config-mpls-te)#interface loopback3
P3(config-mpls-te-if-loopback3)#exit
P3(config-mpls-te)#router-id 3.1.1.1
P3(config-mpls-te)#interface gei-0/2/1/2
P3(config-mpls-te-if-gei-0/2/1/2)#exit
P3(config-mpls-te)#interface gei-0/2/1/3
P3(config-mpls-te-if-gei-0/2/1/3)#exit
P3(config-mpls-te)#exit

2-119

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Configuration Verification
After the tunnel goes up, run the show mpls traffic-eng tunnels brief command on P1
to check the status of FRR.
P1#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 3.1.1.1 - gei-0/2/1/1 up/up
tunnel_2 3.1.1.1 - gei-0/2/1/3 up/up

P1#show mpls traffic-eng fast-reroute


Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 86 Tun hd gei-0/2/1/1:147456 Tu2:3 ready

LSP midpoint frr information:


LSP identifier In-label Out intf/label FRR intf/label Status

R5(config)#show ip rsvp hello instance summary


Client I/F Neighbor Type State LostCnt LSPs
FRR gei-0/2/1/1 74.1.1.1 ACTIVE UP 0 1

R5(config)#show ip rsvp hello instance detail


Hello Graceful Restart globally disabled
Fast-Hello globally enabled
Neighbor 74.1.1.1 Source 74.1.1.2
Clients:Fast Reroute
State:UP
Type:ACTIVE
I/F: gei-0/2/1/1
LSP num:1
Src_instance 30138456, Dst_instance 28778033
GR HELLO parameters
Refresh Misses Configured:4
Refresh Interval (msec)
Configured:10000
Current :0
Local restart time (msec):120000
Local recovery time (msec):120000
Nbr restart time (msec):0
Nbr recovery time (msec):0
Lost count:0

2-120

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

intf hello
FRR HELLO parameters
Fast_hello_period (msec):10000
Fast_hello_miss:4
Fast_hello_protect_lsps:1
Fast_hello_lost_count:0
Fast_hello_del_time (msec):0
Fast_hello_reroute_time (msec):5900

2.9 MPLS TE End-to-End Protection Path Configuration


2.9.1 MPLS TE End-to-End Path Protection Overview
Both TE FRR and Hot_standby are used to protect the RSVP-TE tunnel. The TE FRR is
used for part protection and the Hot_standby is used for the a single LSP protection from
the head node to the tail node (end-to-end protection).

For the end-to-end protection, a Hot_standby_lsp path is created in advance for one
working LSP before a fault occurs. The paths of these two LSPs on the tunnel do not
intersect except the head node and the tail node. In general, the traffic is transmitted
through the working LSP path. Only when the link or the node of the working LSP is faulty
the traffic passes the Hot_standby_lsp path after the handover.

When a tunnel is established, two LSPs with different paths are established.
l Each LSP has its own label switching item. On the head node, the egress interface
and the next hop address are different. The out-label could be the same or be different.
l In general, one LSP is set as the primary LSP and another LSP is set as the second
LSP.
l On the switching layer, the switching items of these two LSPs are written and the
relationship is bound. In general, the switching item of the primary LSP is used for
switching. Once when the path of the primary LSP is faulty, the switching layer hands
over the traffic to the second LSP. In this case, the fast handover for the hot-backup
item is implemented.
l After the handover, the RSVP-TE protocol tries to re-establish a primary LSP. If the
primary LSP is established successfully, the traffic is handed over to this primary LSP
after the switching item of the primary LSP is written.

2.9.2 Path Configuration for MPLS TE End-to-End Protection


This procedure describes how to configure MPLS TE End-to-End Protection.

Steps
1. Configure MPLS TE End-to-End Protection.

2-121

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Step Commands Functions

1 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters tunnel interface


<tunnel-number> configuration mode.

2 ZXCTN(config-mpls-te-tunnel-te_tunnel- Enables the hot-standby function


tunnel-number)#tunnel mpls traffic-eng hot-standby for the specified path option on
protect <protected-path-option-id>{dynamic [ the tunnel.
prefer]|explicit-path {identifier <explicit-path-identifie
r-id>|name <explicit-path-of-name>}[exclude]}

<protected-path-option-id>: specifies the active path-option that the standby LSP needs
to protect, range: 1-16.
dynamic: Specifies the dynamic calculation mode for the path of the standby LSP. If
the prefer option is not configured, the active and standby paths cannot be overlapped
except the head and tail nodes.
prefer: Specifies the dynamic calculation mode for the path of the standby LSP. If this
option is configured, the active and standby paths cannot be completely overlapped.
identifier: Specifies the identity mode for the explicit path of the standby LSP.
<explicit-path-identifier-id>: explicit path ID used by the standby LSP, range: 1-65535.
name: Specifies the name mode for the explicit path of the standby LSP.
<explicit-path-of-name>: explicit path name used by the standby LSP, range: 1-64
characters.
exclude: specifies the hot standby path and forcibly excludes the active path.
2. To display the configuration results, run the following command:

Commands Functions

ZXCTN#show mpls traffic-eng tunnels hot-standby Displays the detailed information about
the backup LSPs in hot-standby LSP
protection.

End of Steps

2.9.3 Establishing an MPLS TE End-to-End Path Protection


Configuration Descriptions
As shown in Figure 2-22, there is an MPLS TE end-to-end path protection tunnel created
through the OSPF-TE protocol in the network. The path for working LSP is R1-R2 and the
path for Hot_standby_lsp is R1-R3-R2.

2-122

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Figure 2-22 Establishing an MPLS TE End-to-End Path Protection

Configuration Flow
1. As shown in Figure 2-22, interconnect the R1, R2 and R3, and configure the loopback
address and the interface address for each router.
2. Establish the OSPF neighbor relationship through the direct-connected interfaces on
the R1, R2 and R3 and enable TE.
3. Configure the hot-standby function on the head node of the tunnel in MPLS TE mode.
The specified strict path is R1-R2.
4. Check the hot-standby relationship.
5. Configure a static route to the destination on the R1 router. The next hop is Tunnel1.
In this case, the traffic is transmitted through the tunnel.
6. Check the hot-standby relationship when the link of the primary tunnel is invalid.
7. Check the hot-standby relationship when the link of the primary tunnel recoveries
normally.

Configuration Commands
The configuration of R1 is as follows:
Interface related configuration:

R1(config)#interface loopback1
R1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
R1(config-if-loopback1)#exit
R1(config)#interface gei-0/0/1/4
R1(config-if-gei-0/0/1/4)#no shutdown
R1(config-if-gei-0/0/1/4)#ip address 10.1.1.1 255.255.255.0
R1(config-if-gei-0/0/1/4)#exit
R1(config)#interface gei-0/0/0/7
R1(config-if-gei-0/0/0/7)#no shutdown

2-123

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R1(config-if-gei-0/0/0/7)#ip address 20.1.1.1 255.255.255.0


R1(config-if-gei-0/0/0/7)#exit
R1(config)#interface te_tunnel1
R1(config-if-te_tunnel1)#ip unnumbered loopback1
R1(config-if-te_tunnel1)#exit

OSPF and OSPF-TE related configuration:


R1(config)#router ospf 1
R1(config-ospf-1)#router-id 1.1.1.1
R1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
R1(config-ospf-1)#mpls traffic-eng area 0
R1(config-ospf-1)#network 10.1.1.0 0.0.0.255 area 0
R1(config-ospf-1)#network 20.1.1.0 0.0.0.255 area 0
R1(config-ospf-1)#exit

MPLS-TE configuration:
R1(config)#mpls traffic-eng
R1(config-mpls-te)#interface loopback1
R1(config-mpls-te-if-loopback1)#exit
R1(config-mpls-te)#router-id 1.1.1.1
R1(config-mpls-te)#interface gei-0/0/1/4
R1(config-mpls-te-if-gei-0/0/1/4)#exit
R1(config-mpls-te)#interface gei-0/0/0/7
R1(config-mpls-te-if-gei-0/0/0/7)#exit
R1(config-mpls-te)#exit

R1(config)#mpls traffic-eng
R1(config-mpls-te)#explicit-path name zte
R1(config-mpls-te-expl-path-name)# next-address strict 10.1.1.2
R1(config-mpls-te-expl-path-name)#exit
R1(config-mpls-te)#explicit-path name hot
R1(config-mpls-te-expl-path-name)# next-address strict 20.1.1.3
R1(config-mpls-te-expl-path-name)# next-address strict 30.1.1.2
R1(config-mpls-te-expl-path-name)#exit
R1(config-mpls-te)#tunnel te_tunnel1
R1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.2.2.2
R1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1
explicit-path name zte
R1(config-mpls-te-tunnel-te_tunnel1)# tunnel mpls traffic-eng record-route
R1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng hot-standby
protect 1 explicit-path name hot
R1(config-mpls-te-tunnel-te_tunnel1)#exit
R1(config-mpls-te)#exit

R1(config)#ip route 172.20.1.2 255.255.255.255 te_tunnel1

2-124

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

The configuration of R2 is as follows:


Interface related configuration:
R2(config)#interface loopback1
R2(config-if-loopback1)#ip address 2.2.2.2 255.255.255.255
R2(config-if-loopback1)#exit
R2(config)#interface gei-0/5/1/7
R2(config-if-gei-0/5/1/7)#no shutdown
R2(config-if-gei-0/5/1/7)#ip address 10.1.1.2 255.255.255.0
R2(config-if-gei-0/5/1/7)#exit
R2(config)#interface gei-0/5/0/8
R2(config-if-gei-0/5/0/8)#no shutdown
R2(config-if-gei-0/5/0/8)#ip address 30.1.1.2 255.255.255.0
R2(config-if-gei-0/5/0/8)#exit

OSPF and OSPF-TE related configuration:


R2(config)#router ospf 1
R2(config-ospf-1)#router-id 2.2.2.2
R2(config-ospf-1)#network 2.2.2.2 0 0.0.0.0 area 0
R2(config-ospf-1)#mpls traffic-eng area 0
R2(config-ospf-1)#network 10.1.1.0 0.0.0.255 area 0
R2(config-ospf-1)#network 30.1.1.0 0.0.0.255 area 0
R2(config-ospf-1)#exit

MPLS-TE related configuration:


R2(config)#mpls traffic-eng
R2(config-mpls-te)#interface loopback1
R2(config-mpls-te-if-loopback1)#exit
R2(config-mpls-te)#router-id 2.2.2.2
R2(config-mpls-te)#interface gei-0/5/1/7
R2(config-mpls-te-if-gei-0/5/1/7)#exit
R2(config-mpls-te)#interface gei-0/5/0/8
R2(config-mpls-te-if-gei-0/5/0/8)#exit
R2(config-mpls-te)#exit

The configuration of R3 is as follows:


Interface related configuration:
R3(config)#interface loopback1
R3(config-if-loopback1)#ip address 3.3.3.3 255.255.255.255
R3(config-if-loopback1)#exit
R3(config)#interface gei-0/2/0/7
R3(config-if-gei-0/2/0/7)#no shutdown
R3(config-if-gei-0/2/0/7)#ip address 20.1.1.3 255.255.255.0
R3(config-if-gei-0/2/0/7)#exit
R3(config)#interface gei-0/2/0/8
R3(config-if-gei-0/2/0/8)#no shutdown

2-125

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R3(config-if-gei-0/2/0/8)#ip address 30.1.1.3 255.255.255.0


R3(config-if-gei-0/2/0/8)#exit

OSPF and OSPF-TE related configuration:


R3(config)#router ospf 1
R3(config-ospf-1)#router-id 3.3.3.3
R3(config-ospf-1)#network 3.3.3.3 0.0.0.0 area 0
R3(config-ospf-1)#mpls traffic-eng area 0
R3(config-ospf-1)#network 20.1.1.0 0.0.0.255 area 0
R3(config-ospf-1)#network 30.1.1.0 0.0.0.255 area 0
R3(config-ospf-1)#exit

MPLS-TE configuration:
R3(config)#mpls traffic-eng
R3(config-mpls-te)#interface loopback1
R3(config-mpls-te-if-loopback1)#exit
R3(config-mpls-te)#router-id 3.3.3.3
R3(config-mpls-te)#interface gei-0/2/0/7
R3(config-mpls-te-if-gei-0/2/0/7)#exit
R3(config-mpls-te)# interface gei-0/2/0/8
R3(config-mpls-te-if-gei-0/2/0/8)#exit

The configuration of R5 is as follows:


R5(config)#interface gei-0/2/1/1
R5(config-if-gei-0/2/1/1)#no shutdown
R5(config-if-gei-0/2/1/1)#ip address 172.20.1.2 255.255.255.0
R5(config-if-gei-0/2/1/1)#exit

Configuration Verification
Check the R1 to see the status information of the tunnel:
R1#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 2.2.2.2 - gei-0/0/1/4 up/up
tunnel_1(hot) 2.2.2.2 - gei-0/0/0 /7 up/up

Check the protection relationship between the hot-standby LSP and the LSP:

R1(config-if)#show mpls traffic-eng tunnels hot-standby


Name: tunnel_1 (Tunnel1) Destination: 2.2.2.2
Status:
Admin: up Oper: up Path: valid Signaling: connected
Fast Reroute Protection:disabled

2-126

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Hot-standby Protection: Ready


Config Parameters:
BFD: disabled
InLabel: -
OutLabel: gei-0/0/0/7, 147456
RSVP Signaling Info :
Src 1.1.1.1, Dst 2.2.2.2, Tun_Id 1, Tun_Instance 2
RSVP Path Info:
Explicit Route: 20.1.1.1 20.1.1.3 30.1.1.2 30.1.1.3 2.2.2.2
Exclude Route: NULL
Record Route: 1.1.1.1 20.1.1.1
Tspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits
RSVP Resv Info:
Record Route: 3.3.3.3 20.1.1.3 2.2.2.2 30.1.1.2
Fspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits

When the link of the primary LSP is down, check the protection relationship between
hot-standby LSP and the primary LSP.
R1(config)#interface gei-0/0/1/4
R1(config-if-gei-0/0/1/4)#shutdown
R1(config-if-gei-0/0/1/4)#show mpls traffic-eng tunnels hot-standby
Name: tunnel_1 (Tunnel1) Destination: 2.2.2.2
Status:
Admin: up Oper: up Path: valid Signaling: connected
Fast Reroute Protection:disabled
Hot-standby Protection: Backup lsp in use
Config Parameters:
BFD: disabled

When the link of the primary LSP recoveries normal, check the protection relationship
between hot-standby LSP and the primary LSP.

After the recovery, the detailed information of the primary LSP and the hot-standby LSP
tunnel is as follows:
R1(config-if)#show mpls traffic-eng tunnels te_tunnel 1
Name: tunnel_1 (Tunnel1) Destination: 2.2.2.2
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit name zte (Basis for Setup)
Actual Bandwidth: N/A
Hot-standby protection:
protect option: 1, type explicit name: hot (Basis for Protect)
Config Parameters:
Bandwidth: 0 kbps (Global) Priority: 7 7 Affinity: 0x0/0x0
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295

2-127

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Facility Fast-reroute: disabled


Detour Fast-reroute: disabled
BFD: disabled
Bidirect: disabled
AutoRoute: disabled
Forwarding-adjacency: disabled
InLabel:-
OutLabel:gei-0/0/1/4,3
RSVP Signalling Info :
Src 1.1.1.1, Dst 2.2.2.2, Tun_Id 1, Tun_Instance 34
RSVP Path Info:
Explicit Route: 10.1.1.1 10.1.1.2 2.2.2.2
Exclude Route: NONE
Record Route: NONE
Tspec:ave rate= 0 kbits, burst= 2000 bytes, peak rate = 0 kbits
RSVP Resv Info:
Record Route: 2.2.2.2 10.1.1.2
Fspec:ave rate= 0 kbits, burst= 2000 bytes, peak rate = 0 kbits

History:
Tunnel:
Time since created: 0 days, 18 hours, 37 minutes
Time since path change: 0 days, 0 hours, 0 minutes
Prior LSP: path option 1 [27]
Current LSP: Uptime:0 days, 0 hours, 11 minutes
Last lsp error information:
Delete mbb old inuse lsp(lspid:2,errcode:1,errvalue:1).
Path error:rsvp sys error(lspid:3,errcode:23,errvalue:0).
Path error:routing error,no route to destination(lspid:1,errcode:24,errvalue:5)

2.10 Loose Node Re-optimization


2.10.1 Loose Node Re-optimization Introduction
Loose node re-optimization refers to triggering an intermediate node whose next hop is
a loose or abstract node in the LSP path to check whether there is a better local route
in accordance with a scheme. If there is, the route is notified to the head node, which
determines whether to re-optimize the LSP.

2.10.2 Configuring Loose Node Re-optimization


This procedure describes how to configure loose node re-optimization.

2-128

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Steps
1. (Optional) Configure the loose node re-optimization function.

Step Command Function

1 ZXCTN(config-mpls-te)#reoptimize loose-node Enables the loose node


re-optimization function.

2 ZXCTN(config-mpls-te)#reoptimize timers frequency Configures the re-optimization


<frequency> frequency.

3 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters tunnel interface


<tunnel-number> configuration mode.

4 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Enables the re-optimization


number)#tunnel mpls traffic-eng auto-reoptimize{ function on the active or
main-lsp | hsb-lsp} standby LSP.

2. Verify the configurations.

Command Function

ZXCTN#show mpls traffic-eng tunnels summary Checks whether the loose


node re-optimization function is
successfully configured.

ZXCTN#show mpls traffic-eng tunnels Checks whether the


re-optimization function is
enabled on the tunnel.

End of Steps

2.10.3 Loose Node Re-optimization Configuration Instance


Configuration Description
In Figure 2-23, an MPLS TE tunnel is established through OSPF-TE. The tunnel path is
P1->P2->P3, and the explicit path is loosened to P2 first and then P3.

Figure 2-23 Loose Node Re-optimization Configuration Instance

2-129

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Configuration Flow
1. Configure a loopback address and interface address on P1, P2, and P3.
2. Establish OSPF neighbors on P1, P2, and P3, enable the TE function on the OSPF
neighbors and interfaces, and configure the egress gei-0/2/0/2 of P2 to cost so that
link 1 is prior to link 2.
3. Configure a TE tunnel on P1, configure the explicit path to loosened to P2 first and
then P3, and enable periodical re-optimization on the tunnel.
4. Configure re-optimization at loose node on P2, and set the periodical re-optimization
frequency to 30 seconds.
5. Set the interface gei-0/1/0/5 to shutdown on P2, and check whether the tunnel goes
through link 2 and whether the egress interface is gei-0/2/0/2.
6. Set the interface gei-0/1/0/5 to no shutdown on P2. After OSPF neighbors are
established and the timer expires, check whether the tunnel is MBB re-optimized to
link 1 and the egress interface is gei-0/1/0/5.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/1/0/1
P1(config-if-gei-0/1/0/1)#no shutdown
P1(config-if-gei-0/1/0/1)#ip address 19.18.17.11 255.255.255.0
P1(config-if-gei-0/1/0/1)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#router ospf 1
P1(config-ospf-1)#network 19.18.17.0 0.0.0.255 area 0.0.0.0
P1(config-ospf-1)#mpls traffic-eng area 0.0.0.0
P1(config-ospf-1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit
P1(config)#mpls traffic-eng
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#interface gei-0/1/0/1
P1(config-mpls-te-if-gei-0/1/0/1)#exit
P1(config-mpls-te)#explicit-path name 1
P1(config-mpls-te-expl-path-name)#next-address loose 2.2.2.2
P1(config-mpls-te-expl-path-name)#next-address loose 3.3.3.3
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#tunnel te_tunnel1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 3.3.3.3
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1

2-130

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

explicit-path name 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng auto-reoptimize main-lsp

Run the following commands on P2:


P2(config)#interface gei-0/1/0/1
P2(config-if-gei-0/1/0/1)#no shutdown
P2(config-if-gei-0/1/0/1)#ip address 19.18.17.22 255.255.255.0
P2(config-if-gei-0/1/0/1)#exit
P2(config)#interface gei-0/1/0/5
P2(config-if-gei-0/1/0/5)#no shutdown
P2(config-if-gei-0/1/0/5)#ip address 59.58.57.22 255.255.255.0
P2(config-if-gei-0/1/0/5)#exit
P2(config)#interface gei-0/2/0/2
P2(config-if-gei-0/2/0/2)#ip address 29.28.27.22 255.255.255.0
P2(config-if-gei-0/2/0/2)#no shutdown
P2(config-if-gei-0/2/0/2)#exit
P2(config)#interface loopback1
P2(config-if-loopback1)#ip address 2.2.2.2 255.255.255.255
P2(config-if-loopback1)#exit
P2(config)#router ospf 1
P2(config-ospf-1)#network 19.18.17.0 0.0.0.255 area 0.0.0.0
P2(config-ospf-1)#network 59.58.57.0 0.0.0.255 area 0.0.0.0
P2(config-ospf-1)#network 29.28.27.0 0.0.0.255 area 0.0.0.0
P2(config-ospf-1)#mpls traffic-eng area 0.0.0.0
P2(config-ospf-1)#interface gei-0/2/0/2
P2(config-ospf-1-if-gei-0/2/0/2)#cost 5
P2(config-ospf-1-if-gei-0/2/0/2)#exit
P2(config-ospf-1)#exit
P2(config)#mpls traffic-eng
P2(config-mpls-te)#router-id 2.2.2.2
P2(config-mpls-te)#interface loopback1
P2(config-mpls-te-if-loopback1)#exit
P2(config-mpls-te)#interface gei-0/1/0/1
P2(config-mpls-te-if-gei-0/1/0/1)#exit
P2(config-mpls-te)#interface gei-0/1/0/5
P2(config-mpls-te-if-gei-0/1/0/5)#exit
P2(config-mpls-te)#interface gei-0/2/0/2
P2(config-mpls-te-if-gei-0/2/0/2)#exit
P2(config-mpls-te)#reoptimize loose-node
P2(config-mpls-te)#reoptimize timers frequency 30

Run the following commands on P3:

P3(config)#interface gei-0/1/0/2

2-131

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P3(config-if-gei-0/1/0/2)#ip address 59.58.57.33 255.255.255.0


P3(config-if-gei-0/1/0/2)#no shutdown
P3(config-if-gei-0/2/0/2)#exit
P3(config)#interface gei-0/2/0/2
P3(config-if-gei-0/2/0/2)#ip address 29.28.27.33 255.255.255.0
P3(config-if-gei-0/2/0/2)#no shutdown
P3(config-if-gei-0/2/0/2)#exit
P3(config)#interface loopback1
P3(config-if-loopback1)#ip address 3.3.3.3 255.255.255.255
P3(config-if-loopback1)#exit
P3(config)#router ospf 1
P3(config-ospf-1)#network 59.58.57.0 0.0.0.255 area 0.0.0.0
P3(config-ospf-1)#network 29.28.27.0 0.0.0.255 area 0.0.0.0
P3(config-ospf-1)#mpls traffic-eng area 0.0.0.0
P3(config-ospf-1)#exit
P3(config)#mpls traffic-eng
P3(config-mpls-te)#router-id 3.3.3.3
P3(config-mpls-te)#interface loopback1
P3(config-mpls-te-if-loopback1)#exit
P3(config-mpls-te)#interface gei-0/1/0/2
P3(config-mpls-te-if-gei-0/1/0/2)#exit
P3(config-mpls-te)#interface gei-0/2/0/2
P3(config-mpls-te-if-gei-0/2/0/2)#exit

Configuration Verification
1. Run the show running-config mpls-te command to check the MPLS-TE configuration
on P1, P2, and P3. The execution result is displayed as follows:
P1(config)#show running-config mpls-te
!<mpls-te>
mpls traffic-eng
router-id 1.1.1.1
explicit-path name 1
index 1 next-address loose 2.2.2.2
index 2 next-address loose 3.3.3.3
$
tunnel te_tunnel1
tunnel destination ipv4 3.3.3.3
tunnel mpls traffic-eng auto-reoptimize main-lsp
tunnel mpls traffic-eng path-option 1 explicit-path name 1
$
interface gei-0/1/0/1
$
interface loopback1

2-132

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

$
$
!</mpls-te>
P2(config)#show running-config mpls-te
!<mpls-te>
mpls traffic-eng
router-id 2.2.2.2
reoptimize loose-node
reoptimize timers frequency 30
interface gei-0/1/0/1
$
interface gei-0/1/0/5
$
interface gei-0/2/0/2
$
interface loopback1
$
$
!</mpls-te>
P3(config)#show running-config mpls-te
!<mpls-te>
mpls traffic-eng
router-id 3.3.3.3
interface gei-0/1/0/2
$
interface gei-0/2/0/2
$
interface loopback1
$
$
!</mpls-te>

2. Run the show mpls traffic-eng tunnels remote-tunnel command to check whether the
egress interface gei-0/1/0/5 is shut down on P2, and whether the tunnel goes through
link 2 and the egress interface is gei-0/2/0/2. The execution result is displayed as
follows:
P2(config-if-gei-0/1/0/5)#shutdown
P2(config-if-gei-0/1/0/5)#show mpls traffic-eng tunnels remote-tunnel
Name: tunnel_1
(Tunnel1) Destination: 3.3.3.3
Status:
Signalling: up
RSVP Signalling Info :
InLabel: gei-0/1/0/1, 147456
OutLabel: gei-0/2/0/2, 3

2-133

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Src 1.1.1.1, Dst 3.3.3.3, Tun-ID 1, Tun-Instance 813


RSVP Path Info:
Explicit Route: 19.18.17.22 29.28.27.22 29.28.27.33 3.3.3.3
Exclude Route: NULL
Record Route: 1.1.1.1 19.18.17.11
Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb
Affinity(Bit position):
Exclude-any: None
Include-any: None
Include-all: None
RSVP Resv Info:
Record Route: 3.3.3.3(3) 29.28.27.33(3)
Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb
History:
Tunnel:
Time Since Created: 0 day, 0 hour, 0 minute, 5 second
Current LSP: Uptime:0 day, 0 hour, 0 minute, 4 second

3. Enable the interface gei-0/1/0/5 on P2. After OSPF neighbors are established and the
timer expires, MBB occurs on the tunnel, and re-optimization is performed at loose
nodes. The tunnel goes through link 1 and the egress interface is gei-0/1/0/5. Run the
show mpls traffic-eng tunnels remote-tunnel command to check the related information.
The execution result is displayed as follows:
P2(config-if-gei-0/1/0/5)#show mpls traffic-eng tunnels remote-tunnel
Name: tunnel_1
(Tunnel1) Destination: 3.3.3.3
Status:
Signalling: up
RSVP Signalling Info :
InLabel: gei-0/1/0/1, 147457
OutLabel: gei-0/1/0/5, 3
Src 1.1.1.1, Dst 3.3.3.3, Tun-ID 1, Tun-Instance 814
RSVP Path Info:
Explicit Route: 19.18.17.22 59.58.57.22 59.58.57.33 3.3.3.3
Exclude Route: NULL
Record Route: 1.1.1.1 19.18.17.11
Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb
Affinity(Bit position):
Exclude-any: None
Include-any: None
Include-all: None
RSVP Resv Info:
Record Route: 3.3.3.3(3) 59.58.57.33(3)
Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb
History:

2-134

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Tunnel:
Time Since Created: 0 day, 0 hour, 0 minute, 44 second
Current LSP: Uptime:0 day, 0 hour, 0 minute, 43 second

2.11 Automatic Bandwidth Regulation on an MPLS TE


2.11.1 Introduction to Automatic Bandwidth Regulation Function of
the MPLS TE
With the automatic bandwidth regulation function of the MPLS TE, the bandwidth actually
used by a tunnel is collected, the maximum bandwidth in a sampling period is recorded,
and a subscriber's bandwidth is regulated in accordance with the maximum bandwidth
collected in an automatic bandwidth regulation period. With this function, the bandwidth
reserved for a tunnel is closer to the actual service traffic.
To understand the automatic bandwidth regulation function, you must understand the
following two concepts:
Sampling period: configured in a global MPLS-TE to control the rate of periodically
collecting traffic data on a tunnel. This value must be lower than the regulation period.
Regulation period: configured for a TE tunnel to control the rate of regulating a tunnel
bandwidth. Regulation is determined when a sampling period ends depending on the
sampling data comparison result and whether the tunnel meets the regulation conditions.

2.11.2 Configuring Automatic MPLS TE Bandwidth Regulation


This procedure describes how to configure automatic MPLS TE bandwidth regulation.

Steps
1. Configure automatic global sampling of TE bandwidth and real-time tunnel regulation.

Step Command Function

1 ZXCTN(config-mpls-te)#auto-bw timers [frequency Enables automatic bandwidth


<para>] sampling and sets the
sampling frequency.

2 ZXCTN(config-mpls-te)#auto-bw adj-now all Manually triggers all tunnels


with the automatic bandwidth
regulation function to regulate
their bandwidths.

3 ZXCTN(config-mpls-te)#auto-bw adj-now tunnel-id Manually triggers a specific


<tnnlid> tunnel to immediately
perform automatic bandwidth
regulation.

2-135

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Step Command Function

4 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters Tunnel interface


<tunnel-number> configuration mode.

5 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Enables the automatic


number)#tunnel mpls traffic-eng auto-bw bandwidth regulation on a
tunnel.

6 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Sets the automatic bandwidth


number)#tunnel mpls traffic-eng auto-bw frequency regulation period.
<freq>

7 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Sets the tunnel bandwidth


number)#tunnel mpls traffic-eng auto-bw multiple regulation rate.
<multiple>

8 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Sets the maximum and


number)#tunnel mpls traffic-eng auto-bw adj-bw minimum of the tunnel
<maxbw>[<minbw>] bandwidth, between which,
the tunnel bandwidth can be
regulated.

9 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Configures regulation and


number)#tunnel mpls traffic-eng auto-bw overflow detection upon tunnel
threshold <percent>[min<bandwidth>] limit <limit> overflow.

<para>: sampling period, range: 60-604800, unit: seconds, default: 300.


<freq>: bandwidth regulation period. Range: 300-604800, unit: seconds.
<multiple>: tunnel bandwidth regulation rate. Range: 50-100, default: 100.
<maxbw>: maximum of the bandwidth. Range: 1-4294967295, units: kb/s.
<minbw>: minimum of the bandwidth. Range: 0-4294967295, units: kb/s, default: 0.
<percent>: specifies the percentage of the overflew bandwidth.Range: 1100.
<bandwidth>: specifies the overflew bandwidth. Range: 10-4294967295, unit: kbps,
default: 10.
<limit>: specifies the threshold of the overflew bandwidth.Range: 1-10.

2. Verify the configurations.

Command Function

ZXCTN#show mpls traffic-eng tunnels Displays tunnel information.

End of Steps

2-136

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

2.11.3 Instances of Automatic Bandwidth Regulation Configuration


for the MPLS TE
Configuration Description
Figure 2-24 shows tunnel1 from PE1 to PE2, which can be strictly or dynamically routed.
When strictly routed, a new LSP is formed following the strict path when the bandwidth
regulation period starts. When dynamically routed, the LSP is re-calculated in accordance
with the required bandwidth and a new LSP is formed when the bandwidth regulation period
starts. The new LSP may be different from the original one.

Figure 2-24 Instance of Automatic Bandwidth Regulation Configuration for the MPLS TE

Configuration Flow
1. Establish a common dynamically routed tunnel through ISIS-TE, with the initial
bandwidth of 10 M.
2. The egress interface gei-0/0/0/3 of PE1 has an available bandwidth of 40 M, the
egress interface gei-0/0/0/1 of PE1 has an available bandwidth of 80 M, the egress
interface gei-0/0/0/1 of PE3 has an available bandwidth of 80 M, and the egress
interface gei-0/0/0/1 of PE4 has an available bandwidth of 80 M.
3. Enable the automatic bandwidth regulation function in global TE mode and set the
sampling period to 60 seconds.
4. Enable automatic bandwidth sampling and regulation function in tunnel interface mode
and set the automatic bandwidth regulation period to 300 seconds.

Configuration Commands
Configuration for PE1:
ISIS configuration is omitted.
PE1(config)#interface te_tunnel1

2-137

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

PE1(config-if)#ip unnumbered loopback1


PE1(config-if)#exit
PE1(config)#mpls traffic-eng
PE1(config-mpls-te)#auto-bw timers frequency 60 //Sets the sampling period.
PE1(config-mpls-te)#interface gei-0/0/0/3
PE1(config-mpls-te-if)#bandwidth 40000
PE1(config-mpls-te-if)#exit
PE1(config-mpls-te)#interface gei-0/0/0/1
PE1(config-mpls-te-if)#bandwidth 80000
PE1(config-mpls-te-if)#exit
PE1(config-mpls-te)#tunnel te_tunnel1
PE1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng auto-bw
//Enables the automatic bandwidth regulation function on the tunnel.
PE1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng auto-bw frequency 300
//Sets the bandwidth regulation period.
PE1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng auto-bw adj-bw 1000000 10000
PE1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng auto-bw multiple 100
PE1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng bandwidth 10000
PE1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1 dynamic
PE1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.2.2.2
PE1(config-mpls-te-tunnel-te_tunnel1)#exit
PE1(config-mpls-te)#exit

Configures a static route to the forwarded-to destination address on the PE1, with the
next hop tunnel1.The TEs configured on the PE2, PE3, and PE4 are the same as that
configured when a common TE tunnel is being established. The commands related to
automatic bandwidth regulation do not need to be configured and are not described in this
manual.

Configuration Verification
Run the show mpls traffic-eng tunnels command to check the tunnel establishment
information on the PE1. The execution result is displayed as follows, in which, the tunnel
establishment path is PE1>PE2.
PE1(config)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 2.2.2.2 - gei-0/0/0/3 up/up
PE1(config)#show mpls traffic-eng tunnels te_tunnel 1
Name: tunnel_1 (Tunnel1) Destination: 2.2.2.2
Status:
Admin: up Oper: up Path: valid Signalling: connected

2-138

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Path option: 1, type dynamic (Basis for Setup)

Config Parameters:
Bandwidth: 10000 kbps (Global) Priority: 7 7 Affinity: 0x0/0x0
ClassType: 0 Bandwidth: 0 kbps
Metric Type: IGP (default) Fast-reroute: enable
BFD:disable disconnected down
Auto-bw:(300/117) Samplling Bandwidth:49508 Bandwidth Requested:0
//300 s is the configured bandwidth regulation period, and 117 s is the time
before bandwidth regulation starts.
Adjust Range:0-unconstrained(0) Adjust Multiple:100
AutoRoute:disabled AutoRouteMetricType:IGP(default) AutoRouteMetric: 0
Forwarding adjacency is not enabled
No-cspf:disable
Hot-standby: disabled

InLabel:-
OutLabel:gei-0/0/0/3,0

RSVP Signalling Info :


Src 1.1.1.1, Dst 2.2.2.2, Tun_Id 1, Tun_Instance 11
RSVP Path Info:
Explicit Route: 172.120.130.17 172.120.130.18 2.2.2.2
Exclude Route: NONE

Automatically regulates the tunnel bandwidth in accordance with the sampled traffic
on a tunnel. Suppose the sampled traffic on tunnel1 is 49508K, after a bandwidth
regulation period, the bandwidth of tunnel1 is regulated to 49508K, and the path is
PE1->PE3->PE4>PE2.

Run the show mpls traffic-eng tunnels te_tunnel command to check the information about
the regulated tunnel1 on the PE1. The execution result is displayed as follows:
PE1(config)#show mpls traffic-eng tunnels te_tunnel 1
Name: tunnel_1 (Tunnel1) Destination: 2.2.2.2
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type dynamic (Basis for Setup)

Config Parameters:
Bandwidth: 49508 kbps (Global) Priority: 7 7 Affinity: 0x0/0x0
ClassType: 0 Bandwidth: 49508 kbps
Metric Type: IGP (default) Fast-reroute: enable
BFD:disable disconnected down
Auto-bw:(300/113) Samplling Bandwidth:49508 Bandwidth Requested:49508
Adjust Range:0-unconstrained(0) Adjust Multiple:100

2-139

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

AutoRoute:disabled AutoRouteMetricType:IGP(default) AutoRouteMetric: 0


Forwarding adjacency is not enabled
No-cspf:disable
Hot-standby: disabled

InLabel:-
OutLabel:gei-0/0/0/1,37

RSVP Signalling Info :


Src 1.1.1.1, Dst 2.2.2.2, Tun_Id 1, Tun_Instance 12
RSVP Path Info:
Explicit Route: 172.20.130.22 172.20.130.21 172.20.130.149 172.20.130.150
172.20.130.157 172.20.130.158 2.2.2.2

Run the show running-config-interface command to display the changed tunnel bandwidth
configuration. The execution result is displayed as follows:
PE1(config)#show running-config-interface te_tunnel1
!<if-intf>
interface te_tunnel1
!
interface te_tunnel1
ip unnumbered loopback1
!
!</if-intf>
!<mpls-te>
mpls traffic-eng
tunnel te_tunnel 1
tunnel mpls traffic-eng bandwidth 49508
tunnel mpls traffic-eng auto-bw
tunnel mpls traffic-eng auto-bw frequency 300
tunnel mpls traffic-eng path-option 1 dynamic
tunnel destination ipv4 2.2.2.2
$
!</mpls-te>

2.12 TE GR Configuration
2.12.1 GR Introduction
Overview
Control-plane failures are divided into the following types:

2-140

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

l Inter-node communication failure: The control-plane communication between nodes


is lost, but the nodes can still obtain the status of the control plane or forwarding plane.
l Node failure: Although the RSVP-TE control plane becomes faulty and the status of
the control plane is lost, the data plane is still operating, and the LSR still remains in
the data forwarding status.
The application of the GR technology enables the control plane to recover from one of the
above failures.
1. Through this technology, the information of the LSR to reboot and whether it supports
GR are advertised to the neighboring LSR.
2. The neighbor detects the time when the failure occurs and the time when the reboot
process is completed, and then re-establishes a hello relationship.
3. The neighbor assists the LSR that reboots in recovering the control plane status and
re-synchronizing the control plane status and data forwarding plane status.

Implementation
To implement RSVP GR, the RFC in IETF define and describe the implementation process
of the function.
l RFC defines an extended hello message. This provides the basics of the RSVP-TE
GR technology, and enables nodes to detect when their neighbors become
unreachable or reboot. It also defines a hello object and a hello message.
l RFC defines an extended mechanism for hello messages, the flow of processing
control-channel failures and node failures, and an RESTART CAP object.
l For the remaining problems (for example, the reboot of the head nodes on LSPs is
not supported and incomplete PATH information), RFC defines the actions for the
downstream of the nodes that are rebooted (that is, the downstream nodes send
RECOVER PATH messages to the upstream nodes). It also defines an optional
summary refresh process and an CAPBILITY object.
l RFC describes the GR flow when multiples nodes of an LSP become faulty.
An hello object contains an SRC-INSTANCE and a DST-INSTANCE.
l SRC-INSTANCE: message sender instance. Different neighbors have different
SRC-INSTANCE values.
When the message sender reboots or loses communication with a neighbor, this
value must be changed. In other cases, this value remains unchanged. The
SRC-INSTANCE value should not be set to 0. During the implementation, this value
can be set to the system clock.

l DST-INSTANCE: latest SRC-INSTANCE value carried in the hello message from a


neighbor, also called Neighbor_Src_Instance. Before a hello message is received
from the neighbor, this value is set to 0.

A RESTART CAP object contains an RESTART TIME field and an RECOVER TIME field.

l RESTART TIME: indicates the time for a message sender to restart the control plane,
from the time when the control plane reboots to the time when the message sender

2-141

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

stops interactions with the neighbor through hello messages. If a control plane failure
does not affect the forwarding of data plane messages, the message sender can reset
the RESTART TIME field to 0XFFFFFF (meaning infinite reboot time).
l RECOVER TIME: indicates whether the node that reboots should be kept in the for-
warding status. If the node needs not to be kept in the forwarding status, this field is
set to 0. The recovery time begins from the time when the node that reboots re-es-
tablishes a neighbor relationship with its neighbor.
A CAPBILITY object contains three flag bits:
l RecoveryPath Transmit Enabled (T): The message sender has the capability of
sending a RecoveryPath message.
l RecoveryPath Desired (R): The message sender desires to receive a Recover Path
message.
l RecoveryPath Srefresh Capable (S): Both R and S flag bits are set to 1, indicating that
the message sender has the capability of receiving and processing the SREFRESH
message (RecoveryPath=1) in a MESSAGE_ID LIST object.
Hello messages provide a mechanism for an RSVP node to detect the unreachable failure
related to a neighboring node.
l This mechanism provides a means to detect node-to-node failures. When an
unreachable failure is detected, the handling ways that are the same as those for
link-layer communication failures are used.
l Hello messages are primarily used to detect the status of the link with a neighboring
node when:
The detection for the status of a link-layer neighboring node becomes invalidated
or does not operate in real time.
A link that is not marked is used.
RECOVER PATH messages use the same format as PATH messages. To distinguish
between the two types of messages, RECOVER PATH messages use message ID 30.
The destination address in the IP header of a RECOVER PATH message must be the same
as that in the IP header of the associated RESV message. Unless otherwise specified, the
objects in an RECOVER PATH message should be the same as those in the corresponding
PATH message (received from the node that reboots).

Features
A GR is divided into three stages:
l Stage before the reboot: Both upstream and downstream nodes receive the
information carried in the hello messages from the node to reboot, such as the
recovery capability, SRC-INSTANCE value, and DEST-INSTANCE value.
l Reboot stage: begins from the time when the node reboots to the time when both
upstream and downstream nodes receive new hello messages from the node that
reboots.
l Recovery stage: New neighboring relationships are established between the node
that reboots and upstream and downstream node. At the same time, both upstream

2-142

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

and downstream nodes can determine the failure occurring on the node that becomes
invalidated is a node failure or a control-plane failure.
The upstream node assists an invalidated node in recovering the associated LSP by
carrying a path recovery label in a PATH message. The invalidated node establishes the
control-plane status by processing the PATH message (carrying a path recovery label)
from the upstream, and marks the status of the LSP associated with the forwarding plane
to "Refresh".
The downstream node assists the invalidated node in recovering from the failure by
sending a RECOVER PATH message to the node. Upon receipt of the RECOVER PATH
message from the downstream, the node that reboots searches for the match with the
local LSP status. If an exact match is found, it sends a PATH message to the downstream.

The ERO object in the PATH message should match that in the received RECOVER PATH
message, and the node that reboots should recover from the failure based on other objects
in the received RECOVER PATH message.
Upon receipt of the PATH message, the downstream sends an RESV message to the
upstream. After the node that reboots processes the RESV message, the recovery
process of the LSP is completed.

2.12.2 Configuring GR
This procedure describes how to configure GR.

Context
GR should be configured for each node that a tunnel passes through.
The GR function is conflicted with the FRR HELLO function.

Steps
1. To enable MPLS TE, run the following command:

Command Function

ZXCTN(config)#mpls traffic-eng Enables MPLS TE, and enters


the TE configuration mode.

2. To enable GR, perform the following steps:

Step Command Function

1 ZXCTN(config-mpls-te)#signalling graceful-restart Enables the graceful-restart


function.

2-143

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Step Command Function

2 ZXCTN(config-mpls-te)#signalling hello Sets the time interval (in


graceful-restart refresh interval <interval> milliseconds) for refreshing
hello messages, range:
100030000.

ZXCTN(config-mpls-te)#signalling hello Sets the maximum number of


graceful-restart refresh misses <num> times that hello messages can
be lost, range: 410.

ZXCTN(config-mpls-te)#signalling hello Sets the maximum restart


graceful-restart timers restart-time <restart-time> time (in milliseconds) for
the graceful-restart function,
range: 120000600000.

ZXCTN(config-mpls-te)#signalling hello Sets the maximum recovery


graceful-restart timers recovery-time <recover-time> time (in milliseconds) for
the graceful-restart function,
range: 120000600000.

3. To display the configuration results, run the following commands:

Command Function

ZXCTN#show ip rsvp hello graceful-restart Displays the GR configuration.

ZXCTN#show ip rsvp hello instance summary Displays the summary


information about RSVP HELLO
instances.

ZXCTN#show ip rsvp hello instance detail Displays the detailed information


about RSVP HELLO instances.

4. To maintain the GR function, run the following commands:

Command Function

ZXCTN#debug rsvp hello Enables the debugging of GR.

End of Steps

2.12.3 GR Configuration Example


Scenario Description
Figure 2-25 shows a sample network topology. It is required to establish a common RSVP
tunnel from P1 to P2 by using the OSPF TE-based strict routing mode, and enable the GR
function in the TE configuration mode of P1 and P2.

2-144

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Figure 2-25 GR Configuration Example

Configuration Flow
1. Establish an OSPF neighbor relationship between the directly-connected interfaces of
P1 and P2, and enable OSPF TE.
2. Enable TE on the directly-connected interfaces of P1 and P2.
3. Configure the tunnel destination and strict routing mode on P1.
4. Enable the GR function in the TE configuration mode of P1 and P2.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1

2-145

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#exit

P1(config-mpls-te)#signalling graceful-restart
P1(config-mpls-te)#exit

Run the following commands on P2:


P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#exit

P2(config-mpls-te)#signalling graceful-restart

Configuration Verification
Run the show mpls traffic-eng tunnels brief command on P1 to check whether the tunnel
has been established. The execution result is displayed as follows:

P1(config)#show mpls traffic-eng tunnels brief


Signalling Summary:

2-146

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

LSP Tunnels Process: running


RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 2.1.1.1 - gei-0/1/0/2 up/up

It can be seen that the tunnel is in up status.


Run the show ip rsvp hello instance summary command on P1 to check whether GR
has been enabled:
P1(config)#show ip rsvp hello instance summary
Client I/F Neighbor Type StateLostCnt LSPs
GR gei-0/1/0/2 192.168.1.2 ACTIVE UP0 1

P1(config)#show ip rsvp hello graceful-restart


MPLS-TE: Enabled
Graceful Restart: Enabled
Refresh interval: 10000 msecs
Refresh misses: 4
Advertised restart time: 120000 msecs
Advertised recovery time: 120000 msecs

P1(config)#show ip rsvp hello instance detail


Hello Graceful Restart globally enabled
Fast-Hello globally disabled
Neighbor 192.168.1.2 Source 192.168.1.1
Clients:Graceful Restart
State:UP
Type:ACTIVE
I/F: gei-0/1/0/2
LSP num:1
Src_instance 19002981, Dst_instance 17128690
GR HELLO parameters
Refresh Misses Configured:4
Refresh Interval (msec)
Configured:10000
Current :10000
Local restart time (msec):120000
Local recovery time (msec):120000
Nbr restart time (msec):120000
Nbr recovery time (msec):0
Lost count:0
intf hello
FRR HELLO parameters
Fast_hello_period (msec):10000
Fast_hello_miss:4

2-147

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Fast_hello_protect_lsps:0
Fast_hello_del_time (msec):0
Fast_hello_reroute_time (msec):0

2.13 TE Tunnel FA Configuration


2.13.1 TE Tunnel FA Introduction
A routing protocol stores the path information related to the forwarding of packets through
a database. When the network topology is very complicated, during the forwarding of
packets, a great amount of system resources are spent in searching for the corresponding
information in the database. If the TE tunnel function is fully utilized by using a TE tunnel
as a forwarding entry of a route, the amount of system resources for the packet forwarding
can be greatly reduced, and the higher-speed forwarding can be achieved. This process
is achieved by using TE tunnel FA.
The status of a TE tunnel is advertised to a routing protocol in real time. This ensure that,
before the packet forwarding over the TE tunnel stops, the routing protocol has sufficient
time to switch over traffic from the TE tunnel to other alternate entities.

2.13.2 Configuring TE Tunnel FA


This procedure describes how to configure TE tunnel FA.

Steps
1. To configure TE tunnel FA, perform the following steps:

Step Command Function

1 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters tunnel interface


<tunnel-number> configuration mode.

2 ZXCTN(config-mpls-te-tunnel-te_tunnel- Enables FA and sets the


tunnel-number)#tunnel mpls traffic-eng holdtime.
forwarding-adjacency[<holdtime>]

<holdtime>: the delay time (in seconds) for informing the local router that the tunnel is
down after the corresponding link is down, range: 04294967295. If this parameter is
set, the local router does not know tunnel flapping.
2. To display the configuration results, run the following commands:

Command Function

ZXCTN#show mpls traffic-eng tunnels Displays detailed information


about tunnels.

2-148

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Command Function

ZXCTN#show mpls traffic-eng forwarding-adjacency Displays detailed information


about FA.

End of Steps

2.13.3 TE Tunnel FA Configuration Example


Scenario Description
Figure 2-26 shows a sample network topology. It is required to establish a common RSVP
tunnel from P1 to P2 by using the OSPF TE-based strict routing mode, and enable FA on
the tunnel.

Figure 2-26 FA Configuration Example

Configuration Flow
1. Establish an OSPF neighbor relationship between the directly-connected interfaces of
P1 and P2, and enable OSPF TE.
2. Enable TE on the directly-connected interfaces of P1 and P2.
3. Establish a tunnel (Tunnel1) on P1, and establish a reverse tunnel (Tunnel2) on P2.
4. Enable FA on two tunnels.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1

2-149

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-if-te_tunnel1)#ip unnumbered loopback1


P1(config-if-te_tunnel1)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
forwarding-adjacency
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
forwarding-adjacency holdtime 1000
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#exit

Run the following commands on P2:


P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit
P2(config)#interface te_tunnel2
P2(config-if-te_tunnel2)#ip unnumbered loopback2
P2(config-if-te_tunnel2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0

2-150

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0


P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#exit
P2(config-mpls-te)#explicit-path identifier 2
P2(config-mpls-te-expl-path-id-2)#next-address strict 192.168.1.1
P2(config-mpls-te-expl-path-id-2)#exit
P2(config-mpls-te)#tunnel te_tunnel 2
P2(config-mpls-te-tunnel-te_tunnel2)#tunnel destination ipv4 1.1.1.1
P2(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 2
P2(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng
forwarding-adjacency
P2(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng
forwarding-adjacency holdtime 1000
P2(config-mpls-te-tunnel-te_tunnel2)#exit
P2(config-mpls-te)#exit

Configuration Verification
Run the show mpls traffic-eng tunnels te_tunnel 1 command on P1 to check whether
the tunnel has been established. The execution result is displayed as follows:
P1(config)#show mpls traffic-eng tunnels te_tunnel 1
Name: tunnel_1 (Tunnel1) Destination: 2.1.1.1
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit identifier: 2 (Basis for Setup)
Actual Bandwidth: N/A
Hot-standby protection:
no path options protected
Config Parameters:
Bandwidth: 0 kbps (Global) Priority: 7 7 Affinity: 0x0/0x0
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Record-Route: disabled
Facility Fast-reroute: disabled
Detour Fast-reroute: disabled
BFD: disabled
Auto-bw: disabled

2-151

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Bidirect: disabled
AutoRoute: disabled
Forwarding adjacency: holdtime 1000s

InLabel: -
OutLabel: gei-0/1/0/2, 3
RSVP Signalling Info :
Src 1.1.1.1, Dst 2.1.1.1, Tun_Id 1, Tun_Instance 9
RSVP Path Info:
Explicit Route: 192.168.1.1 192.168.1.2 2.1.1.1
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits
RSVP Resv Info:
Record Route: NULL
Fspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits

History:
Tunnel:
Time since created: 0 days, 0 hours, 56 minutes, 22 seconds
Prior LSP: path option 1
Current LSP: Uptime:0 days, 0 hours, 5 minutes, 39 seconds
Last lsp error information:
Path error: admission fail(lspid:8,errcode:1,errvalue:4).
Tunnel config changed(lspid:7,errcode:1,errvalue:3).
Path error: admission fail(lspid:6,errcode:1,errvalue:4)

P1(config)#show mpls traffic-eng forwarding-adjacency


MPLS TE forwarding-adjacency enabled
Destination 2.1.1.1 has 1 tunnels
TunnelName Destination State Nexthop Holdtime
tunnel_1 2.1.1.1 Up 2.1.1.1 1000s

2.14 TE Tunnel AR Configuration


2.14.1 TE Tunnel AR Introduction
A routing protocol stores the path information related to the forwarding of packets through
a database. When the network topology is very complicated, during the forwarding of
packets, a great amount of system resources are spent in searching for the corresponding
information in the database. If the TE tunnel function is fully utilized by using a TE tunnel as
a forwarding entry in the routing table, the amount of system resources spent in forwarding
packets can be greatly reduced, and the higher-speed forwarding can be achieved.

2-152

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Auto route advertisement has AR and FR features. Both of the two features use the
principle of involving TE tunnel interfaces in the SPF calculation of IGP.
l An AR-enabled router uses CR-LSP as an egress interface, but the router does not
advertise the CR-LSP to the upstream router. Therefore, other routers do not store
the CR-LSP information in their link databases, and the CR-LSP cannot be used.
l An FA-enabled router advertises the CR-LSP as a common LSA/LSP to its upstream
router while using the CR-LSP as an egress interface. Therefore, other routers store
the CR-LSP information into their link databases, and the CR-LSP can be used.

2.14.2 Configuring TE Tunnel AR


This procedure describes how to configure TE tunnel AR.

Steps
1. To configure TE tunnel AR, perform the following steps:

Step Command Function

1 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters tunnel interface


<tunnel-number> configuration mode.

2 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Enables AR for the TE tunnel.


number)#tunnel mpls traffic-eng autoroute announce

3 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Specifies the metric value for


number)#tunnel mpls traffic-eng autoroute metric the AR.
{<value0>| absolute <value1>| relative <value2>}

<value0>: sets the default metric type of AR, default: absolute, range: 14294967295.
absolute <value1>: sets the absolute metric value of AR, range: 14294967295.
relative <value2>: sets the relative metric value of AR, range: -10 to +10.
2. To display the configuration results, run the following commands:

Command Function

ZXCTN#show mpls traffic-eng tunnels Displays detailed information


about tunnels.

ZXCTN#show mpls traffic-eng autoroute Displays detailed information


about AR.

End of Steps

2-153

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

2.14.3 TE Tunnel AR Configuration Example


Scenario Description
Figure 2-27 shows a sample network topology. It is required to establish a common RSVP
tunnel from P1 to P2 by using the OSPF TE-based strict routing mode and enable AR on
the tunnel.

Figure 2-27 AR Configuration Example

Configuration Flow
1. Establish an OSPF neighbor relationship between the directly-connected interfaces of
P1 and P2, and enable OSPF TE.
2. Enable TE on the directly-connected interfaces of P1 and P2.
3. Establish a tunnel (Tunnel1) on P1.
4. Enable AR on the tunnel.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0

2-154

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P1(config-ospf-1)#mpls traffic-eng area 0


P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
autoroute announce
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
autoroute metric absolute 12
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#exit

Run the following commands on P2:

P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#exit

2-155

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Configuration Verification
Run the show mpls traffic-eng tunnels te_tunnel 1 command on P1 to check whether
the tunnel has been established. The execution result is displayed as follows:
P1(config)#show mpls traffic-eng tunnels te_tunnel 1
Name: tunnel_1 (Tunnel1) Destination: 2.1.1.1
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit identifier: 1 (Basis for Setup)
Actual Bandwidth: N/A
Hot-standby protection:
no path options protected
Config Parameters:
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Hop Prior: disabled Upper Limit: -
Record-Route: disabled
Facility Fast-reroute: disabled
Detour Fast-reroute: disabled
Bandwidth Protection: disabled

Hot-standby-lsp Fast-reroute: disabled


BFD: disabled
Policy class: default
Track Name:
Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: disabled
Tunnel-Status: enabled
Bandwidth: 0 kbps (Global) Priority: 7 7 Affinity: 0x0/0x0
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
AutoRoute: enabledAutoRouteMetricType: absoluteAutoRouteMetric: 12
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0

InLabel: -
OutLabel: gei-0/1/0/2, 3
RSVP Signalling Info :

2-156

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Src 1.1.1.1, Dst 2.1.1.1, Tun_Id 1, Tun_Instance 30


RSVP Path Info:
Explicit Route: 192.168.1.1 192.168.1.2 2.1.1.1
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits
RSVP Resv Info:
Record Route: NULL
Fspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits

History:
Tunnel:
Time since created: 0 days, 0 hours, 19 minutes, 4 seconds
Prior LSP: path option 1
Current LSP: Uptime:0 days, 0 hours, 9 minutes, 56 seconds
Last lsp error information:
None log record.

P1(config)#show mpls traffic-eng autoroute


MPLS TE autorouting enabled
Destination 2.1.1.1 has 1 tunnels
TunnelName Destination State NexthopMetricType MetricValue
tunnel_1 2.1.1.1 Up 2.1.1.1Absolute 12

2.15 TE Metric Configuration


2.15.1 TE Metric Introduction
After TE metric is enabled on an MPLS TE tunnel and the TE metric values are specified
for associated interfaces, during the CSPF-based path selection process, the path whose
total TE metric values of all associated egress interfaces are the smallest is preferentially
selected. The path for the MPLS TE tunnel can be indirectly specified by changing the
metric values of associated interfaces, which enables the path selection process to be
manageable.

2.15.2 Configuring TE Metric


This procedure describes how to configure TE metric.

Steps
1. To configure TE metric, perform the following steps:

2-157

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Step Command Function

1 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters tunnel interface


<tunnel-number> configuration mode.

2 ZXCTN(config-mpls-te-tunnel-te_tunnel- Specifies the TE metric for the


tunnel-number)#tunnel mpls traffic-eng tunnel, range: 14294967295.
administrative-weight<value>

3 ZXCTN(config-mpls-te)#interface <interface-name> Enters the TE interface


configuration mode.

4 ZXCTN(config-mpls-te-if-interface-name)#adminis Specifies the TE metric for the


trative-weight<value> TE interface, range: 165535.

2. To display the configuration results, run the following commands:

Command Function

ZXCTN#show mpls traffic-eng tunnels Displays detailed information


about tunnels.

ZXCTN#show mpls traffic-eng interface detail Displays detailed information


about MPLS TE interface.

End of Steps

2.15.3 TE Metric Configuration Example


Scenario Description
Figure 2-28 shows a sample network topology. It is required to establish a common RSVP
tunnel from P1 to P2 by using the OSPF TE-based strict routing mode and configure TE
metric on the tunnel and corresponding interfaces.

Figure 2-28 TE Metric Configuration Example

2-158

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Configuration Flow
1. Establish an OSPF neighbor relationship between the directly-connected interfaces of
P1 and P2, and enable OSPF TE.
2. Enable TE on the directly-connected interfaces of P1 and P2.
3. Establish a tunnel (Tunnel1) on P1.
4. Configure TE metric on the tunnel and corresponding interfaces.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#administrative-weight 7
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
administrative-weight 12
P1(config-mpls-te-tunnel-te_tunnel1)#exit

2-159

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-mpls-te)#exit

Run the following commands on P2:


P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#exit

Configuration Verification
Run the show mpls traffic-eng tunnels te_tunnel 1 command on P1 to check whether
the tunnel has been established. The execution result is displayed as follows:
P1(config)#show mpls traffic-eng tunnels te_tunnel 1
Name: tunnel_1 (Tunnel1) Destination: 2.1.1.1
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit identifier: 1 (Basis for Setup)
Actual Bandwidth: N/A
Hot-standby protection:
no path options protected
Config Parameters:
Resv-Style: SE
Metric Type: TE Upper Limit: 12
Hop Prior: disabled Upper Limit: -
Record-Route: disabled
Facility Fast-reroute: disabled
Detour Fast-reroute: disabled
Bandwidth Protection: disabled

2-160

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Hot-standby-lsp Fast-reroute: disabled

BFD: disabled
Policy class: default
Track Name:
Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: disabled
Tunnel-Status: enabled
Bandwidth: 0 kbps (Global) Priority: 7 7 Affinity: 0x0/0x0
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
AutoRoute: disabled
AUTO-BW: disabled

Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0

InLabel: -
OutLabel: gei-0/1/0/2, 3
RSVP Signalling Info :
Src 1.1.1.1, Dst 2.1.1.1, Tun_Id 1, Tun_Instance 30
RSVP Path Info:
Explicit Route: 192.168.1.1 192.168.1.2 2.1.1.1
Exclude Route: NULL
Record Route: NULL
Tspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits
RSVP Resv Info:
Record Route: NULL
Fspec: ave rate= 0 kbits, burst= 1000 bytes, peak rate= 0 kbits

History:
Tunnel:
Time since created: 0 days, 0 hours, 19 minutes, 4 seconds
Prior LSP: path option 1
Current LSP: Uptime:0 days, 0 hours, 9 minutes, 56 seconds
Last lsp error information:
None log record.

P1(config)#show mpls traffic-eng interface detail

2-161

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

gei-0/1/0/2:
State:
ENABLE
Traffic-eng metric: 7
Authentication: disabled
Key: <encrypted>
Type: md5
Challenge: disabled
Challenge-imp: Not implemented(simulated)
Window size: 32
BFD: disabled
Backup path:
None
SRLGs: None
Intf Fast-Hello: DISABLE
Fast-Hello interval: 10000
Fast-Hello miss: 4
Convergence-Ratio: 100(%)

2.16 TE SRLG Configuration


2.16.1 TE SRLG Introduction
If one of the links in an SRLG becomes faulty, other links may also fail to operate. For
example, If an optical fiber or pipe is faulty, all of the optical links belonging to the optical
fiber or pipe may also fail. If an optical fiber is faulty, all associated sublinks also fail to
operate.
SRLG is widely used during the MPLS TE deployment. During the selection of a backup
path, the application of SRLG in MPLS TE prevents the backup path and a protected link
being selected to the same SRLG, which provides better protection.
In an MPLS TE network, some of the interfaces of network devices can be configured
to belong to the same SRLG. OSPF or IS-IS floods the SRLG member information, TE
information (such as the available bandwidth) of links, and other information to other
network devices, and the information is used for the CSPF-based calculation.

TE SRLG is generally used for MPLS TE-FRR services, and can be used to optimize
the selection of backup paths. The SRLG information can be used for the CSPF-based
calculation. If the dynamic generation mode is used, a backup path that is not in the same
SRLG with the protected link can be automatically calculated and generated. If the manual
generation mode is generated, you should avoid the case that the backup path is in the
same SRLG with the protected link.

2-162

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

2.16.2 Configuring TE SRLG


This procedure describes how to configure TE SRLG.

Steps
1. To configure MPLS TE SRLG, perform the following steps:

Step Command Function

1 ZXCTN(config-mpls-te)#srlg exclude{auto-tunnel-bac Specifies the exclusion


kup | facility-frr | hot-standby | one-to-one-frr}{force | mode of SRLG in global
preferred} configuration mode, options:
l force
l preferred

2 ZXCTN(config-mpls-te)#interface <interface-name> Enters the TE interface


configuration mode.

3 ZXCTN(config-mpls-te-if-interface-name)#srlg<v Specifies the SRLG value


alue> for the TE interface, range:
04294967295.
A maximum of three SRLG
values can be set on an
interface.

2. To display the configuration results, run the following commands:

Command Function

ZXCTN#show mpls traffic-eng auto-backup parameter Displays the configurations of


the auto-backup tunnel.

ZXCTN#show mpls traffic-eng interface detail Displays the SRLG


configurations of MPLS TE
interfaces.

End of Steps

2.16.3 TE SRLG Configuration Example


Scenario Description
Figure 2-29 shows a sample network topology. It is required to establish a common RSVP
tunnel from P1 to P2 by using the OSPF TE-based strict routing mode, configure the auto
backup mode, and configure the SRLG value on the egress interface of the primary tunnel.
It is also required to configure SRLG values on the egress interfaces of other links (the
force mode is used in this example).

2-163

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 2-29 TE SRLG Configuration Example

Configuration Flow
1. Establish an OSPF neighbor relationship between the directly-connected interfaces of
P1 and P2, and enable OSPF TE.
2. Enable TE on the directly-connected interfaces of P1 and P2.
3. Establish a tunnel (Tunnel1) on P1, and configure the auto backup mode.
4. Configure an SRLG value on the egress interface of the primary tunnel.
5. Configure SRLG values on the egress interfaces of other links.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface gei-0/1/0/3
P1(config-if-gei-0/1/0/3)#no shutdown
P1(config-if-gei-0/1/0/3)#ip address 31.1.1.1 255.255.255.0
P1(config-if-gei-0/1/0/3)#exit
P1(config)#interface gei-0/1/0/4
P1(config-if-gei-0/1/0/4)#no shutdown
P1(config-if-gei-0/1/0/4)#ip address 32.1.1.1 255.255.255.0
P1(config-if-gei-0/1/0/4)#exit

P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit

P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 31.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 32.1.1.0 0.0.0.255 area 0

2-164

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0


P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#srlg exclude auto-tunnel-backup force
P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#auto-tunnel backup
P1(config-mpls-te-if-gei-0/1/0/2)#srlg 1
P1(config-mpls-te-if-gei-0/1/0/2)#srlg 2
P1(config-mpls-te-if-gei-0/1/0/2)#srlg 3
/*An interface can have a maximum of three SRLG values*/
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#interface gei-0/1/0/3
P1(config-mpls-te-if-gei-0/1/0/3)#srlg 1
P1(config-mpls-te-if-gei-0/1/0/3)#exit
P1(config-mpls-te)#interface gei-0/1/0/4
P1(config-mpls-te-if-gei-0/1/0/4)#srlg 4
P1(config-mpls-te-if-gei-0/1/0/4)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng record-route
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
fast-reroute facility
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#exit

Run the following commands on P2:


P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface gei-0/1/0/3
P2(config-if-gei-0/1/0/3)#no shutdown
P2(config-if-gei-0/1/0/3)#ip address 31.1.1.2 255.255.255.0
P2(config-if-gei-0/1/0/3)#exit
P2(config)#interface gei-0/1/0/4

2-165

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P2(config-if-gei-0/1/0/4)#no shutdown
P2(config-if-gei-0/1/0/4)#ip address 32.1.1.2 255.255.255.0
P2(config-if-gei-0/1/0/4)#exit

P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 31.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 32.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#exit
P2(config-mpls-te)#interface gei-0/1/0/3
P2(config-mpls-te-if-gei-0/1/0/3)#exit
P2(config-mpls-te)#interface gei-0/1/0/4
P2(config-mpls-te-if-gei-0/1/0/4)#exit

Configuration Verification
Run the show mpls traffic-eng auto-backup parameter command on P1 to check
whether the tunnel has been established. The execution result is displayed as follows:
P1(config)#show mpls traffic-eng auto-backup parameter
MPLS-TE: Enabled
The setting of auto-tunnel minID is: 32001
The setting of auto-tunnel maxID is: 33000
Auto-tunnel minID in used is: 33000
Auto-tunnel maxID in used is: 33000
Auto-tunnel backup srlg exclude: Force

P1(config)#show mpls traffic-eng interface detail


gei-0/1/0/2:
State:
ENABLE
Traffic-eng metric: 0

2-166

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Authentication: disabled
Key: <encrypted>
Type: md5
Challenge: disabled
Challenge-imp: Not implemented(simulated)
Window size: 32
BFD: disabled
Backup path:
auto-tunnel backup
SRLGs: 1 2 3
Intf Fast-Hello: DISABLE
Fast-Hello interval: 10000
Fast-Hello miss: 4
gei-0/1/0/3:
State:
ENABLE
Traffic-eng metric: 0
Authentication: disabled
Key: <encrypted>
Type: md5
Challenge: disabled
Challenge-imp: Not implemented(simulated)
Window size: 32
BFD: disabled
Backup path:
None
SRLGs: 1
Intf Fast-Hello: DISABLE
Fast-Hello interval: 10000
Fast-Hello miss: 4
gei-0/1/0/4:
State:
ENABLE
Traffic-eng metric: 0
Authentication: disabled
Key: <encrypted>
Type: md5
Challenge: disabled
Challenge-imp: Not implemented(simulated)
Window size: 32
BFD: disabled
Backup path:
None
SRLGs: 4
Intf Fast-Hello: DISABLE

2-167

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Fast-Hello interval: 10000


Fast-Hello miss: 4

P1(config)#show mpls traffic-eng tunnels brief


Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAMEDESTINATION UP IFDOWN IFSTATE/PROT
tunnel_12.1.1.1 -gei-0/1/0/2 up/up
tunnel_33000 2.1.1.1 - gei-0/1/0/4 up/up
P1(config)#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspIDIn-label Out intf/labelFRR intf/label Status
Tunnel1545 Tun hd gei-0/1/0/2:3Tu33000:3 ready

LSP midpoint frr information:


LSP identifierIn-label Out intf/label FRR intf/label Status

2.17 TE Tunnel Reoptimization Configuration


2.17.1 Introduction to TE Tunnel Reoptimization
The optimal path may be not selected during the initial setup stage of a TE tunnel due to
some reasons. When link conditions are improved, the re-optimization technology can be
used to re-select a path for the tunnel that has been established and is in up status.
This technology not only helps in selecting the optimal path for a TE tunnel, but also helps
in switching back the tunnel to the reasonable primary path after a protection switchover.
It also uses the MBB technology to ensure that traffic is not lost during the path selection
process.

2.17.2 Configuring TE Tunnel Re-optimization


This procedure describes how to configure TE tunnel re-optimization.

Steps
1. Configure re-optimization for a point-to-point TE tunnel.

Step Command Function

1 ZXCTN(config-mpls-te)#reoptimize events link-up Enables re-optimization.

2 ZXCTN(config-mpls-te)#reoptimize timers Sets the re-optimization time


frequency<timer> interval (in seconds), range:
30604800.

2-168

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Step Command Function

3 ZXCTN(config-mpls-te)#reoptimize tunnel{<tunnel-i Enables re-optimization for a


d>|all} tunnel or all tunnels.
This command is an one-off
triggering command.

4 ZXCTN(config-mpls-te)#tunnel te_tunnel<tunnel-numb Enters point-to-point tunnel


er> configuration mode.

5 ZXCTN(config-mpls-te-tunnel-te_tunnel- Enables tunnel


tunnel-number)#tunnel mpls traffic-eng auto-reoptimize re-optimization.
{ hsb-lsp|main-lsp}

<tunnel-id>: ID of the specified tunnel.


all: all tunnels.
hsb-lsp: Enables the periodical re-optimization function on the hot-standby LSP.
main-lsp: Enables the periodical re-optimization function on the active LSP.
2. Configure re-optimization for a point-to-multipoint TE tunnel.

Step Command Function

1 ZXCTN(config-mpls-te)#reoptimize events link-up Configures re-optimization


upon link up events.

2 ZXCTN(config-mpls-te)#reoptimize timers Sets the re-optimization


frequency<timer> period, range: 30604800,
unit: seconds.

3 ZXCTN(config-mpls-te)#mtunnel mte_tunnel<tunnel- Enters point-to-multipoint


number> tunnel configuration mode.

4 ZXCTN(config-mpls-te-mtunnel-mte_tunnel- Enables tunnel


tunnel-number)#mtunnel mpls traffic-eng reoptimize re-optimization.

5 ZXCTN(config-mpls-te)#reoptimize mtunnel {< mtunnel In global mode, configures


id>| all } manual re-optimization for
one or all point-to-multipoint
tunnels.
This is an one-off triggering
command.

<tunnel-id>: Manually re-optimizes a point-to-multipoint tunnel.

all: Manually re-optimizes all point-to-multipoint tunnels.


3. Verify the configurations.

2-169

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Command Function

ZXCTN#show mpls traffic-eng tunnels summary Checks the information about


re-optimization for point-to-point
TE tunnels.

ZXCTN#show mpls traffic-eng mtunnels summary Checks the information


about re-optimization for
point-to-multipoint TE tunnels.

End of Steps

2.17.3 TE Tunnel Reoptimization Configuration Example


Scenario Description
Figure 2-30 shows a sample network topology. It is required to establish a tunnel from
P1 to P2, and configure three links between P1 and P2. After two of the three links are
broken, a manual re-optimization should be performed.

Figure 2-30 TE Tunnel Re-optimization Configuration Example

Configuration Flow
1. Establish OSPF neighbor relationships on the three links between P1 and P2, and
enable OSPF TE.
2. Configure three path-options (1, 2, and 3), corresponding to the three links.
3. Run the shutdown command on the two links corresponding to path-option 1 and
path-option 2, and run the no shutdown command on the tunnel interface to establish
a tunnel.
4. Run the no shutdown command on the two links corresponding to path-option 1 and
path-option 2, and perform a manual optimization.

Configuration Commands
Run the following commands on P1:

P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface gei-0/1/0/3

2-170

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P1(config-if-gei-0/1/0/3)#no shutdown
P1(config-if-gei-0/1/0/3)#ip address 31.1.1.1 255.255.255.0
P1(config-if-gei-0/1/0/3)#exit
P1(config)#interface gei-0/1/0/4
P1(config-if-gei-0/1/0/4)#no shutdown
P1(config-if-gei-0/1/0/4)#ip address 32.1.1.1 255.255.255.0
P1(config-if-gei-0/1/0/4)#exit

P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit

P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit

P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 31.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 32.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit

P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1

P1(config-mpls-te)#reoptimize events link-up

P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#interface gei-0/1/0/3
P1(config-mpls-te-if-gei-0/1/0/3)#exit
P1(config-mpls-te)#interface gei-0/1/0/4
P1(config-mpls-te-if-gei-0/1/0/4)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#explicit-path identifier 2
P1(config-mpls-te-expl-path-id-2)#next-address strict 31.1.1.2
P1(config-mpls-te-expl-path-id-2)#exit
P1(config-mpls-te)#explicit-path identifier 3

2-171

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-mpls-te-expl-path-id-3)#next-address strict 32.1.1.2


P1(config-mpls-te-expl-path-id-3)#exit
P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 2
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 2 explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 3 explicit-path identifier 3
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#exit

Run the following commands on P2:


P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface gei-0/1/0/3
P2(config-if-gei-0/1/0/3)#no shutdown
P2(config-if-gei-0/1/0/3)#ip address 31.1.1.2 255.255.255.0
P2(config-if-gei-0/1/0/3)#exit
P2(config)#interface gei-0/1/0/4
P2(config-if-gei-0/1/0/4)#no shutdown
P2(config-if-gei-0/1/0/4)#ip address 32.1.1.2 255.255.255.0
P2(config-if-gei-0/1/0/4)#exit

P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit

P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 31.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 32.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit

P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2

2-172

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P2(config-mpls-te-if-gei-0/1/0/2)#exit
P2(config-mpls-te)#interface gei-0/1/0/3
P2(config-mpls-te-if-gei-0/1/0/3)#exit
P2(config-mpls-te)#interface gei-0/1/0/4
P2(config-mpls-te-if-gei-0/1/0/4)#exit

Configuration Verification
Run the shutdown command on the gei-0/1/0/2 and gei-0/1/0/3 interfaces of P1, and run
the show mpls traffic-eng tunnels brief command to check whether the link between the
gei-0/1/0/4 interfaces of P1 and P2 is selected as the tunnel. The execution result is
displayed as follows:
P1(config)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAMEDESTINATION UP IFDOWN IF STATE/PROT
tunnel_12.1.1.1 - gei-0/1/0/4 up/up

Run the no shutdown command on the gei-0/1/0/2 and gei-0/1/0/3 interfaces of P1, and
start a manual re-optimization in the TE configuration mode of P1.
P1(config-mpls-te)#reoptimize tunnel 1

Run the show mpls traffic-eng tunnels brief command on P1 to check whether the link
between the gei-0/1/0/2 interfaces of P1 and P2 is selected as the tunnel.
P1(config)#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAMEDESTINATION UP IFDOWN IF STATE/PROT
tunnel_12.1.1.1 -gei-0/1/0/2 up/up

2.18 TE HOTSTANDBY Configuration


2.18.1 Tunnel Establishment With Only TE HOTSTANDBY
When the ZXCTN 9000-E is being deployed, TE HOTSTANDBY protection is also
deployed, which means that an active path and a standby path are configured. Without
this function, if a TE LSP cannot be established along the active path of a tunnel, the
tunnel cannot be established even if the TE LSP can be established along the standby
path.
If tunnel establishment with only TE HOTSTANDBY is enabled, TE LSP establishment is
attempted along the active path and the standby path in sequence. If a tunnel can be

2-173

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

established along the hot standby path, the tunnel continuously attempts switching back
and finally switches back to the active path once the active path is restored.

2.18.2 Configuring the TE HOTSTANDBY Function


This procedure describes how to configure the TE HOTSTANDBY function of a TE tunnel.

Steps
1. Configure the TE HOTSTANDBY function of a TE tunnel.

Step Command Function

1 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters Tunnel interface


<tunnel-number> configuration mode.

2 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Enables the TE


number)#tunnel mpls traffic-eng reference hot-standby HOTSTANDBY function
of the tunnel.

2. Verify the configurations.

Command Function

ZXCTN#show mpls traffic-eng tunnels Displays tunnel information.

End of Steps

2.18.3 TE HOTSTANDBY Function Configuration Instance


Configuration Description
In Figure 2-31, a common RSVP tunnel from P1 to P2 is established in strict routing mode
through OSPF TE, and another path is established and used to protect the active path of
the tunnel. In addition, a TE HOTSTANDBY command is configured, and then the tunnel
mpls traffic-eng reference hot-standby command is configured. With this configuration, if
both the active and standby paths of the TE HSB are down, the standby path is restored
and the tunnel can get UP properly and service messages can be properly forwarded.

2-174

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Figure 2-31 Topological Graph of the Instance for Tunnel Establishment with Only
TE HOTSTANDBY

Configuration Flow
1. Establish OSPF neighbors on the directly-connected interfaces of P1 and P2, and
enable the TE function on the OSPF neighbors.
2. Enable the TE function on the directly-connected interfaces of P1 and P2.
3. Establish Tunnel1 and explicit path 1 on P1.
4. Configure explicit path 2 on P1 and configure HSB protection for tunnel1, so that path
2 can be used to protect path 1.
5. Configure a TE HOTSTANDBY command, and then configure the tunnel mpls traffi
c-eng reference hot-standby command. With this configuration, if both the active and
standby paths of the TE HSB are down, the standby path is restored and the tunnel
can get UP properly and service messages can be properly forwarded.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/1/0/2
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 192.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface gei-0/2/0/1
P1(config-if-gei-0/1/0/2)#no shutdown
P1(config-if-gei-0/1/0/2)#ip address 190.168.1.1 255.255.255.0
P1(config-if-gei-0/1/0/2)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit
P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1

2-175

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0


P1(config-ospf-1)#network 190.168.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit
P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#interface gei-0/1/0/2
P1(config-mpls-te-if-gei-0/1/0/2)#exit
P1(config-mpls-te)#interface gei-0/2/0/1
P1(config-mpls-te-if-gei-0/1/0/1)#exit
P1(config-mpls-te)#explicit-path identifier 1
P1(config-mpls-te-expl-path-id-1)#next-address strict 192.168.1.2
P1(config-mpls-te-expl-path-id-1)#exit
P1(config-mpls-te)#explicit-path identifier 2
P1(config-mpls-te-expl-path-id-2)#next-address strict 190.168.1.2
P1(config-mpls-te-expl-path-id-2)#exit
P1(config-mpls-te)#tunnel te_tunnel 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 2.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng
path-option 1 explicit-path identifier 1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng record-route
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng hot-standby protect 1
explicit-path identifier 2
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng reference hot-standby
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#exit

Run the following commands on P2:


P2(config)#interface gei-0/1/0/2
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 192.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface gei-0/2/0/1
P2(config-if-gei-0/1/0/2)#no shutdown
P2(config-if-gei-0/1/0/2)#ip address 190.168.1.2 255.255.255.0
P2(config-if-gei-0/1/0/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit
P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 192.168.1.0 0.0.0.255 area 0

2-176

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P2(config-ospf-1)#network 190.168.1 0 0.0.0.255 area 0


P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit
P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/1/0/2
P2(config-mpls-te-if-gei-0/1/0/2)#exit
P2(config-mpls-te)#interface gei-0/2/0/1
P2(config-mpls-te-if-gei-0/2/0/1)#exit

Configuration Verification
Run the show mpls traffic-eng tunnels te_tunnel 1 hot-standby command to check the
information about the tunnel on P1. The execution result is displayed as follows:
P1(config)#show mpls traffic-eng tunnels te_tunnel 1 hot-standby
Name: tunnel_1
(Tunnel3) Destination: 2.1.1.1
Status:
Admin: up Oper: up Path: valid Signalling: connected
Fast Reroute Protection: disabled
Hot-standby Protection: ready
Config Parameters:
BFD: disabled
Hot-standby-lsp Fast-reroute: enabled
Hot-standby-lsp Auto-reoptimize: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0
InLabel: -
OutLabel: gei-0/1/0/2, 3
RSVP Signalling Info :
Src 1.1.1.1, Dst 2.1.1.1, Tun-ID 1, Tun-Instance 278
RSVP Path Info:
Explicit Route: 190.168.1.1 . 190.168.1.2 1.1.1.1
Exclude Route: 192.168.1.1 . 192.168.1.2
Record Route: NULL
Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb
RSVP Resv Info:
Record Route: 2.1.1.1(3) 190.168.1.1 (3)
Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb

P1(config)# show mpls traffic-eng tunnels te_tunnel 1

2-177

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Name: tunnel_1
(Tunnel3) Destination: 2.1.1.1
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path option: 1, type explicit identifier :2 (Basis for Setup)
Actual Bandwidth: 0 kbps
Hot-standby protection:
protect option: 1, type explicit identifier :1(Basis for Protect)
Config Parameters:
Resv-Style: SE
Metric Type: IGP (default) Upper Limit: 4294967295
Hop Prior: disabled Upper Limit: -
Record-Route: enabled
Facility Fast-reroute: disabled
Detour Fast-reroute: disabled
Bandwidth Protection: disabled
Hot-standby-lsp Fast-reroute: disabled
BFD: disabled
Policy class: default
Track Name:
Auto-reoptimize: disabled
Hot-standby-lsp Auto-reoptimize: disabled
Reference Hot-standby: enabled
Tunnel-Status: enabled
Bandwidth: 0 kbps (Global) Priority: 7 7
CBS: 0 byte EIR: 0 kbps EBS: 0 byte
Affinity(Bit position):
Exclude-any: None
Include-any: None
Include-all: None
AutoRoute: disabled
AUTO-BW: disabled
Forwarding-adjacency: disabled
Co-routed Bidirect: disabled
Associated Bidirect: disabled
Rate-limit: disabled
Crankback: disabled
Soft Preemption: disabled
Soft Preemption Status: not pending
Addresses of preempting links: 0.0.0.0
InLabel: -
OutLabel: gei-0/1/0/2, 3
RSVP Signalling Info :
Src 1.1.1.1 Dst 2.1.1.1, Tun-ID 1, Tun-Instance 278

2-178

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

RSVP Path Info:


Explicit Route: 190.168.1.1 . 190.168.1.2 1.1.1.1
Exclude Route: 192.168.1.1 . 192.168.1.2
Record Route: NULL
Tspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb
RSVP Resv Info:
Record Route: 2.1.1.1(3) 190.168.1.1 (3)
Fspec: ave rate= 0 kb, burst= 1000 byte, peak rate= 0 kb

History:
Tunnel:
Time Since Created: 0 day, 1 hour, 8 minute, 31 second
Prior LSP: path option 1
Current LSP: Uptime:0 day, 0 hour, 57 minute, 16 second
Last LSP Error Information

2.19 WTR Configuration for a TE Tunnel


2.19.1 Introduction to TE Tunnel WTR
To ensure the reliability of the MPLS network, the Fast Reroute (FRR) technology acts
an important role in the MPLS network. This technology uses the capability of the MPLS
Traffic Engineering (TE) and provides a fast switchover protection capability for the LSP.
The MPLS FRR previously establishes a local backup path to protect the LSP being
affected by link or node failures. When a fault occurs, the device detecting the link or
node fault can switch over the data traffic from the faulty active path to the standby path
fast to reduce data loss.
Because FRR protection is temporary, after the active path is restored, data traffic must be
switched back to the active path. This switchback can be performed immediately or after
the Wait To Restore (WTR) time. WTR allows data traffic to wait for a period before being
switched back to the active path. During this period, The forwarding information base of
each downstream node gets ready successively and then the head node restores data
traffic to the active path.

2.19.2 Configuring the WTR Function of a TE Tunnel


This procedure describes how to configure the WTR function of a TE tunnel.

Steps
1. Configure the TE WRT time.

2-179

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Command Function

ZXCTN(config-mpls-te)#reoptimize timers delay Sets the WTR period before


installation-delay-time <timer> switchback in global mode, unit:
seconds.

<timer>: switchback and deletion delay duration.


2. Verify the configurations.

Command Function

ZXCTN#show mpls traffic-eng tunnels summary Checks the WRT duration


configured by a user.

End of Steps

2.19.3 TE Tunnel WTR Configuration Instance


Configuration Description
In Figure 2-32, two tunnels are established from P1 to P3, Tunnel1 passes through P1,
P2, and P3, and Tunnel2 passes through P1 and P3. Tunnel1 is the active tunnel, Tunnel2
is the backup tunnel, and they form an FRR relation. Configure the WTR period on P1.
When any fault occurs on the active tunnel, the backup tunnel implements protection and
traffic is switched over to the backup tunnel. If the fault on the active tunnel is cleared,
traffic is switched back to the active tunnel after a WTR period.

Figure 2-32 TE Tunnel WTR Configuration Instance

2-180

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Configuration Flow
1. Establish OSPF neighbors for the directly-connected interfaces on P1, P2, and P3,
and enable the TE function on the OSPF neighbors.
2. Establish two strict paths. One is the active path through P1, P2, and P3, and the
other is the backup path through P1 and P3.
3. Enable the TE function on all interfaces used on P1, P2, and P3, and configure a
backup tunnel on gei-0/2/1/1 of P1.
4. Create an active tunnel and a standby tunnel, and enable the FRR facility function on
the active tunnel.
5. Configure the WTR period on P1.
6. Configure a static route to the destination on P1, with the next hop Tunnel1. With this
configuration, traffic is forwarded through Tunnel1.

Configuration Commands
Run the following commands on P1:
P1(config)#interface gei-0/2/1/1
P1(config-if-gei-0/2/1/1)#no shutdown
P1(config-if-gei-0/2/1/1)#ip address 74.1.1.2 255.255.255.0
P1(config-if-gei-0/2/1/1)#exit
P1(config)#interface gei-0/2/1/3
P1(config-if-gei-0/2/1/3)#no shutdown
P1(config-if-gei-0/2/1/3)#ip address 60.1.1.1 255.255.255.0
P1(config-if-gei-0/2/1/3)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel1
P1(config-if-te_tunnel1)#ip unnumbered loopback1
P1(config-if-te_tunnel1)#exit
P1(config)#interface te_tunnel2
P1(config-if-te_tunnel2)#ip unnumbered loopback1
P1(config-if-te_tunnel2)#exit
P1(config)#router ospf 1
P1(config-ospf-1)#router-id 1.1.1.1
P1(config-ospf-1)#network 1.1.1.1 0.0.0.0 area 0
P1(config-ospf-1)#network 74.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#network 60.1.1.0 0.0.0.255 area 0
P1(config-ospf-1)#mpls traffic-eng area 0
P1(config-ospf-1)#exit
P1(config)#mpls traffic-eng
P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#router-id 1.1.1.1
P1(config-mpls-te)#reoptimize timers delay installation-delay-time 600

2-181

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-mpls-te)#explicit-path name primary


P1(config-mpls-te-expl-path-name)#next-address strict 74.1.1.1
P1(config-mpls-te-expl-path-name)#next-address strict 120.1.1.2
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#explicit-path name back
P1(config-mpls-te-expl-path-name)#next-address strict 60.1.1.2
P1(config-mpls-te-expl-path-name)#exit
P1(config-mpls-te)#interface gei-0/2/1/1
P1(config-mpls-te-if-gei-0/2/1/1)#exit
P1(config-mpls-te)#interface gei-0/2/1/3
P1(config-mpls-te-if-gei-0/2/1/3)#exit
P1(config-mpls-te)#tunnel te_tunnel1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 3.1.1.1
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1
explicit-path name primary
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng record-route
P1(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng fast-reroute facility
P1(config-mpls-te-tunnel-te_tunnel1)#exit
P1(config-mpls-te)#tunnel te_tunnel2
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel destination ipv4 3.1.1.1
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng path-option 1
explicit-path name back
P1(config-mpls-te-tunnel-te_tunnel2)#exit
P1(config-mpls-te)#interface gei-0/2/1/1
P1(config-mpls-te-if-gei-0/2/1/1)#backup-path te_tunnel 2
P1(config-mpls-te-if-gei-0/2/1/1)#exit
P1(config-mpls-te)#exit
P1(config)#ip route 172.20.1.2 255.255.255.255 te_tunnel1

Run the following commands on P2:


P2(config)#interface gei-0/2/1/1
P2(config-if-gei-0/2/1/1)#no shutdown
P2(config-if-gei-0/2/1/1)#ip address 74.1.1.1 255.255.255.0
P2(config-if-gei-0/2/1/1)#exit
P2(config)#interface gei-0/2/1/2
P2(config-if-gei-0/2/1/2)#no shutdown
P2(config-if-gei-0/2/1/2)#ip address 120.1.1.1 255.255.255.0
P2(config-if-gei-0/2/1/2)#exit
P2(config)#interface loopback2
P2(config-if-loopback2)#ip address 2.1.1.1 255.255.255.255
P2(config-if-loopback2)#exit
P2(config)#router ospf 1
P2(config-ospf-1)#router-id 2.1.1.1
P2(config-ospf-1)#network 2.1.1.1 0.0.0.0 area 0

2-182

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P2(config-ospf-1)#network 74.1.1.0 0.0.0.255 area 0


P2(config-ospf-1)#network 120.1.1.0 0.0.0.255 area 0
P2(config-ospf-1)#mpls traffic-eng area 0
P2(config-ospf-1)#exit
P2(config)#mpls traffic-eng
P2(config-mpls-te)#interface loopback2
P2(config-mpls-te-if-loopback2)#exit
P2(config-mpls-te)#router-id 2.1.1.1
P2(config-mpls-te)#interface gei-0/2/1/1
P2(config-mpls-te-if-gei-0/2/1/1)#exit
P2(config-mpls-te)#interface gei-0/2/1/2
P2(config-mpls-te-if-gei-0/2/1/2)#exit
P2(config-mpls-te)#exit

Run the following commands on P3:


P3(config)#interface gei-0/2/1/2
P3(config-if-gei-0/2/1/2)#no shutdown
P3(config-if-gei-0/2/1/2)#ip address 120.1.1.2 255.255.255.0
P3(config-if-gei-0/2/1/2)#exit
P3(config)#interface gei-0/2/1/3
P3(config-if-gei-0/2/1/3)#no shutdown
P3(config-if-gei-0/2/1/3)#ip address 60.1.1.2 255.255.255.0
P3(config-if-gei-0/2/1/3)#exit
P3(config)#interface loopback3
P3(config-if-loopback3)#ip address 3.1.1.1 255.255.255.255
P3(config-if-loopback3)#exit
P3(config)#router ospf 1
P3(config-ospf-1)#router-id 3.1.1.1
P3(config-ospf-1)#network 3.1.1.1 0.0.0.0 area 0
P3(config-ospf-1)#network 120.1.1.0 0.0.0.255 area 0
P3(config-ospf-1)#network 60.1.1.0 0.0.0.255 area 0
P3(config-ospf-1)#mpls traffic-eng area 0
P3(config-ospf-1)#exit
P3(config)#mpls traffic-eng
P3(config-mpls-te)#interface loopback3
P3(config-mpls-te-if-loopback3)#exit
P3(config-mpls-te)#router-id 3.1.1.1
P3(config-mpls-te)#interface gei-0/2/1/2
P3(config-mpls-te-if-gei-0/2/1/2)#exit
P3(config-mpls-te)#interface gei-0/2/1/3
P3(config-mpls-te-if-gei-0/2/1/3)#exit
P3(config-mpls-te)#exit

Run the following commands on R2:

2-183

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

R2(config)#interface gei-0/2/1/1
R2(config-if-gei-0/2/1/1)#no shutdown
R2(config-if-gei-0/2/1/1)#ip address 172.20.1.2 255.255.255.0
R2(config-if-gei-0/2/1/1)#exit

Configuration Verification
Run the show mpls traffic-eng tunnels brief command to check the FRR establishment
information on P1 after the tunnel gets up. The execution result is displayed as follows:
P1#show mpls traffic-eng tunnels brief
Signalling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
tunnel_1 3.1.1.1 - gei-0/2/1/1 up/up
tunnel_2 3.1.1.1 - gei-0/2/1/3 up/up
P1#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 86 Tun hd gei-0/2/1/1:147456 Tu2:3 ready
LSP midpoint frr information:
LSP identifier In-label Out intf/label FRR intf/label Status

Run the show mpls traffic-eng fast-reroute command to check the FRR status on P1 if the
active tunnel is faulty and the traffic is switched over to the standby tunnel, and FRR is in
active status. The execution result is displayed as follows:
P1#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 86 Tun hd gei-0/2/1/3:147456 Tu2:3 active
LSP midpoint frr information:
LSP identifier In-label Out intf/label FRR intf/label Status

After the fault on the active tunnel is cleared, FRR is still active in the WTR period, and
traffic is still forwarded through the standby tunnel. Run the show mpls traffic-eng fast-r
eroute Tunnel head end item information command to check the FRR status on P1. The
execution result is displayed as follows:
P1#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 86 Tun hd gei-0/2/1/3:147456 Tu2:3 active
LSP midpoint frr information:

2-184

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

LSP identifier In-label Out intf/label FRR intf/label Status

After the WRT period reaches 600 s, the FRR status is restored to ready, and traffic is
forwarded through the active tunnel. Run the show mpls traffic-eng fast-reroute command
to check the FRR status on P1. The execution result is displayed as follows:
P1#show mpls traffic-eng fast-reroute
Tunnel head end item information
Protected Tunnel LspID In-label Out intf/label FRR intf/label Status
Tunnel1 86 Tun hd gei-0/2/1/1:147456 Tu2:3 ready
LSP midpoint frr information:
LSP identifier In-label Out intf/label FRR intf/label Status

2.20 TE Tunnels Supporting Soft Preemption


2.20.1 TE Tunnels Supporting Soft-Preemption
In an MPLS network, when a TE tunnel is established, it has two attributes, priority upon
establishment and priority after establishment.

Priority upon establishment refers to the priority of a tunnel being established, range: 07, 0
is the highest priority. When the resources are insufficient, this priority determines whether
the LSP can preempt the tunnel resources that have been UP.
Priority after establishment refers to the priority when a tunnel is established. Range: 07,
in which 0 is the highest priority. This priority is relative to being preempted. The higher
the priority after establishment of the current node, the more difficult its resources can be
preempted.
In general, the priority upon establishment cannot be higher than the priority after
establishment, that is, the value of the priority upon establishment cannot be lower than
that of the Priority after establishment. Otherwise, the tunnel will be in flapping status.
Tunnel preemption includes hard preemption and soft preemption.
Hard preemption: The preempted tunnel is directly disconnected upon preemption.
Therefore, the services bored on the preempted tunnels may be interrupted.

In Figure 2-33, the priority upon establishment of Tunnel1 is higher than the priority after
establishment of Tunnel2 (R1 and R5 links are interrupted).
l The path of Tunnel2 is R2R1R4 (in UP status).
l The path calculated for Tunnel1 is R0R1R4R5 (in signaling status).

2-185

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Figure 2-33 Hard Preemption

Because the bandwidth used between R1 and R4 is insufficient, Tunnel1 preempts the
bandwidth resources of Tunnel2 on the preemption point R1. At this time, Tunnel2 sends
resv-tear to the upstream node at R1 and sends path-tear to the downstream node to tear
the tunnel. After that, Tunnel2 recalculates the path along R2R3R5R4. However,
during Tunnel2 becomes up from down, services bored on Tunnel2 may be interrupted.
Soft preemption: The preempted tunnel is not directly disconnected upon preemption.
Signaling messages are sent to the head node of the tunnel to notify the head node to
perform re-optimization, without going through the link on which preemption occurs. In this
way, the service interruption risk from directly disconnecting a tunnel upon hard preemption
is greatly reduced.
In Figure 2-34, the priority upon establishment of Tunnel1 is higher than the priority after
establishment of Tunnel2 (R1 and R5 links are interrupted).
l The path of Tunnel2 is R2R1R4 (in UP status).
l The path calculated by Tunnel1 is R0R1R4R5 (in signaling status).

Figure 2-34 Soft Preemption

Because the bandwidth used between R1 and R4 is insufficient, Tunnel1 preempts the
bandwidth resources of Tunnel2 on the preemption point R1. In this case, Tunnel2

2-186

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

sends a path-err message to the upstream node at R1 to notify the head node R2 of
Tunnel2 to re-optimize Tunnel2, without going through the link R1R4. The recalculated
path is R2R3R5R4. After Tunnel2 is successfully re-optimized, the previous LSP
(R2R1R4) is disconnected, Tunnel2 is not down during preemption and services will
not be interrupted. However, soft preemption cannot completely avoid service interruption
due to preemption. For example, if pre-optimization fails, services may be interrupted.

2.20.2 Configuring a TE Tunnel Supporting Priorities and Soft


Preemption
This procedure describes how to enable a TE tunnel to support priorities and soft
preemption.

Steps
1. Configure a TE tunnel priority.

Step Command Function

1 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters Tunnel interface


<tunnel-number> configuration mode.

2 ZXCTN(config-mpls-te-tunnel-te_tunnel- Configures the setup priority


tunnel-number)#tunnel mpls traffic-eng priority and hold priority of a tunnel.
<setup-priority><hold-priority> The highest priority is 0. The
setup priority cannot be higher
than the hold priority.

<setup-priority>: setup priority of a tunnel, range: 0-7.


<hold-priority>: hold priority of a tunnel, range: 0-7.
2. Configure the soft preemption parameters and enable the soft preemption function of
a tunnel.

Step Command Function

1 ZXCTN(config-mpls-te)#soft-preemption timeout Sets the LSP keepalive time


<timeout> for MPLS-TE soft preemption.

2 ZXCTN(config-mpls-te)#tunnel te_tunnel Enters Tunnel interface


<tunnel-number> configuration mode.

3 ZXCTN(config-mpls-te-tunnel-te_tunnel-tunnel- Enables the soft preemption


number)#tunnel mpls traffic-eng soft-preemption function on a tunnel.

<timeout>: LSP keepalive time for MPLS-TE soft preemption.Range: 1-300, detault:
30, unit: seconds.
3. Verify the configurations.

2-187

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

Command Function

ZXCTN#show mpls traffic-eng soft-preemption Checks the local tunnel soft


preemption configuration, soft
preemption keepalive time, and
information about the tunnels
involved in soft preemption.

ZXCTN#show mpls traffic-eng tunnels remote-tunnel Checks the configuration for


[tunnel-id<tunnel_id> lsp-id<lsp_id> ingress-id <ingress_id> remote tunnel soft preemption.
egress-id<egress_id>]

End of Steps

2.20.3 Instance of TE Tunnels Supporting Soft Preemption


Configuration Description
In Figure 2-35, a TE tunnel (ISIS-TE) is established following IGP-TE. The available
bandwidth of all TE interfaces is 500 M, the reserved bandwidth of Tunnel1 and Tunnel2
is 500 M, and the priority upon establishment of Tunnel2 is higher than the priority after
establishment of Tunnel1.
The path of Tunnel1 (in up status) is P2>P3>P5.
The path calculated by Tunnel2 is P1>P3>P5 (in signaling status).
Because the bandwidth of the link P3>P5 is insufficient, Tunnel2 will preempt the
bandwidth of Tunnel1.

Figure 2-35 Instance of TE Tunnels Supporting Soft Preemption

2-188

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

Configuration Flow
1. Configure a loopback address and interface address on each of six devices.
2. Establish ISIS neighbor relation among interconnected interfaces, enable the TE
function on both ISISs and interfaces, and set an available bandwidth for the dynamic
TE to 500 M.
3. Configure a dynamic TE Tunnel1 on P2 to P5, using dynamic routing, with a reserved
bandwidth of 500 M, the priorities upon and after establishment 7, and the soft pre-
emption function enabled.
4. Configure a dynamic TE Tunnel2 on P1 to P5, using dynamic routing, with a reserved
bandwidth of 500 M, and the priorities upon and after establishment 6.
Because the bandwidth of the link P3>P5 is insufficient, Tunnel2 will preempt the
bandwidth of Tunnel1. Tunnel1 sends a path-err message on P3 to P2 to notify P2 to
re-optimize Tunnel1, without going through the link P3>P5. The re-optimized path is
P2>P4>P6>P5.

Configuration Commands
Run the following commands on P1:
Interface configurations:
P1(config)#interface gei-0/2/0/6
P1(config-gei-0/2/0/6)#no shutdown
P1(config-gei-0/2/0/6)#ip address 106.172.1.1 255.255.255.0
P1(config-gei-0/2/0/6)#exit
P1(config)#interface loopback1
P1(config-if-loopback1)#ip address 1.1.1.100 255.255.255.255
P1(config-if-loopback1)#exit
P1(config)#interface te_tunnel2
P1(config-if-te_tunnel2)#ip unnumbered loopback1
P1(config-if-te_tunnel2)#exit
ISIS and ISIS-TE configurations:
P1(config)#router isis 10
P1(config-isis-10)#area 00
P1(config-isis-10)#system-id 0000.1111.1111
P1(config-isis-10)#is-type level-1
P1(config-isis-10)#metric-style wide
P1(config-isis-10)#mpls traffic-eng level-1
P1(config-isis-10)#interface gei-0/2/0/6
P1(config-isis-10-if-gei-0/2/0/6)#ip router isis
P1(config-isis-10-if-gei-0/2/0/6)#exit
P1(config-isis-10)#exit
P1(config)#
MPLS-TE configurations:
P1(config)#mpls traffic-eng
P1(config-mpls-te)#router-id 1.1.1.100

2-189

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P1(config-mpls-te)#interface loopback1
P1(config-mpls-te-if-loopback1)#exit
P1(config-mpls-te)#interface gei-0/2/0/6
P1(config-mpls-te-if-gei-0/2/0/6)#bandwidth dynamic 1000000 percent 50
P1(config-mpls-te-if-gei-0/2/0/6)#exit
P1(config-mpls-te)#tunnel te_tunnel2
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel destination ipv4 73.73.73.1
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng bandwidth 500000
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng path-option 1 dynamic
P1(config-mpls-te-tunnel-te_tunnel2)#tunnel mpls traffic-eng priority 6 6
P1(config-mpls-te-tunnel-te_tunnel2)#exit
P1(config-mpls-te)#exit

Run the following commands on P2:


Interface configurations:
P2(config)#interface gei-0/1/0/7
P2(config-if-gei-0/1/0/7)#no shutdown
P2(config-if-gei-0/1/0/7)#ip address 107.44.44.4 255.255.255.0
P2(config-if-gei-0/1/0/7)#exit
P2(config)#interface gei-0/1/0/13
P2(config-if-gei-0/1/0/13)#no shutdown
P2(config-if-gei-0/1/0/13)#ip address 1.0.13.4 255.255.255.0
P2(config-if-gei-0/1/0/13)#exit
P2(config)#interface loopback1
P2(config-if-loopback1)#ip address 4.4.4.100 255.255.255.255
P2(config-if-loopback1)#exit
P2(config)#interface te_tunnel1
P2(config-if-te_tunnel1)#ip unnumbered loopback1
P2(config-if-te_tunnel1)#exit
ISIS and ISIS-TE configurations:
P2(config)#router isis 10
P2(config-isis-10)#area 00
P2(config-isis-10)#system-id 0000.4444.4444
P2(config-isis-10)#is-type level-1
P2(config-isis-10)#metric-style wide
P2(config-isis-10)#mpls traffic-eng level-1
P2(config-isis-10)#interface gei-0/1/0/7
P2(config-isis-10-if-gei-0/1/0/7)#ip router isis
P2(config-isis-10-if-gei-0/1/0/7)#exit
P2(config-isis-10)#interface gei-0/1/0/13
P2(config-isis-10-if-gei-0/1/0/13)#ip router isis
P2(config-isis-10-if-gei-0/1/0/13)#exit
P2(config-isis-10)#exit
MPLS-TE configurations:

2-190

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P2(config)#mpls traffic-eng
P2(config-mpls-te)#router-id 4.4.4.100
P2(config-mpls-te)#interface loopback1
P2(config-mpls-te-if-loopback1)#exit
P2(config-mpls-te)#interface gei-0/1/0/7
P2(config-mpls-te-if-gei-0/1/0/7)#bandwidth dynamic 1000000 percent 50
P2(config-mpls-te-if-gei-0/1/0/7)#exit
P2(config-mpls-te)#interface gei-0/1/0/13
P2(config-mpls-te-if-gei-0/1/0/13)#bandwidth dynamic 1000000 percent 50
P2(config-mpls-te-if-gei-0/1/0/13)#exit
P2(config-mpls-te)#exit
P2(config)#mpls traffic-eng
P2(config-mpls-te)#tunnel te_tunnel1
P2(config-mpls-te-tunnel-te_tunnel1)#tunnel destination ipv4 73.73.73.1
P2(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng bandwidth 500000
P2(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng path-option 1 dynamic
P2(config-mpls-te-tunnel-te_tunnel1)#tunnel mpls traffic-eng soft-preemption
P2(config-mpls-te-tunnel-te_tunnel1)#exit
P2(config-mpls-te)#exit

Run the following commands on P3:


Interface configurations:
P3(config)#interface gei-0/1/0/6
P3(config-if-gei-0/1/0/6)#no shutdown
P3(config-if-gei-0/1/0/6)#ip address 106.172.1.72 255.255.255.0
P3(config-if-gei-0/1/0/6)#exit
P3(config)#interface gei-0/1/0/7
P3(config-if-gei-0/1/0/7)#no shutdown
P3(config-if-gei-0/1/0/7)#ip address 107.44.44.72 255.255.255.0
P3(config-if-gei-0/1/0/7)#exit
P3(config)#interface gei-0/2/0/1
P3(config-if-gei-0/2/0/1)#no shutdown
P3(config-if-gei-0/2/0/1)#ip address 13.13.13.1 255.255.255.0
P3(config-if-gei-0/2/0/1)#exit
P3(config)#interface loopback1
P3(config-if-loopback1)#ip address 72.72.72.1 255.255.255.255
P3(config-if-loopback1)#exit
ISIS and ISIS-TE configurations:
P3(config)#router isis 10
P3(config-isis-10)#area 00
P3(config-isis-10)#system-id 0000.0000.0072
P3(config-isis-10)#is-type level-1
P3(config-isis-10)#metric-style wide
P3(config-isis-10)#mpls traffic-eng level-1

2-191

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P3(config-isis-10)#interface gei-0/1/0/6
P3(config-isis-10-if-gei-0/1/0/6)#ip router isis
P3(config-isis-10-if-gei-0/1/0/6)#exit
P3(config-isis-10)#interface gei-0/1/0/7
P3(config-isis-10-if-gei-0/1/0/7)#ip router isis
P3(config-isis-10-if-gei-0/1/0/7)#exit
P3(config-isis-10)#interface gei-0/2/0/1
P3(config-isis-10-if-gei-0/2/0/1)#ip router isis
P3(config-isis-10-if-gei-0/2/0/1)#exit
P3(config-isis-10)#exit
MPLS-TE configurations:
P3(config)#mpls traffic-eng
P3(config-mpls-te)#router-id 72.72.72.1
P3(config-mpls-te)#interface loopback1
P3(config-mpls-te-if-loopback1)#exit
P3(config-mpls-te)#interface gei-0/1/0/6
P3(config-mpls-te-if-gei-0/1/0/6)#exit
P3(config-mpls-te)#interface gei-0/1/0/7
P3(config-mpls-te-if-gei-0/1/0/7)#exit
P3(config-mpls-te)#interface gei-0/2/0/1
P3(config-mpls-te-if-gei-0/2/0/1)#bandwidth dynamic 1000000 percent 50
P3(config-mpls-te-if-gei-0/2/0/1)#exit
P3(config-mpls-te)#exit
P3(config)#

Run the following commands on P4:

Interface configurations:
P4(config)#interface gei-0/1/0/13
P4(config-if-gei-0/1/0/13)#no shutdown
P4(config-if-gei-0/1/0/13)#ip address 1.0.13.52 255.255.255.0
P4(config-if-gei-0/1/0/13)#exit
P4(config)#interface gei-0/1/0/15
P4(config-if-gei-0/1/0/15)#no shutdown
P4(config-if-gei-0/1/0/15)#ip address 15.73.52.52 255.255.255.0
P4(config-if-gei-0/1/0/15)#exit
P4(config)#interface loopback1
P4(config-if-loopback1)#ip address 52.52.52.100 255.255.255.255
P4(config-if-loopback1)#exit
ISIS and ISIS-TE configurations:
P4(config)#router isis 10
P4(config-isis-10)#area 00
P4(config-isis-10)#system-id 0000.5252.5252
P4(config-isis-10)#is-type level-1
P4(config-isis-10)#metric-style wide

2-192

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P4(config-isis-10)#mpls traffic-eng level-1


P4(config-isis-10)#interface gei-0/1/0/13
P4(config-isis-10-if-gei-0/1/0/13)#ip router isis
P4(config-isis-10-if-gei-0/1/0/13)#exit
P4(config-isis-10)#interface gei-0/1/0/15
P4(config-isis-10-if-gei-0/1/0/15)#ip router isis
P4(config-isis-10-if-gei-0/1/0/15)#exit
P4(config-isis-10)#exit
MPLS-TE configurations:
P4(config)#mpls traffic-eng
P4(config-mpls-te)#router-id 52.52.52.100
P4(config-mpls-te)#interface loopback1
P4(config-mpls-te-if-loopback1)#exit
P4(config-mpls-te)#interface gei-0/1/0/13
P4(config-mpls-te-if-gei-0/1/0/13)#exit
P4(config-mpls-te)#interface gei-0/1/0/15
P4(config-mpls-te-if-gei-0/1/0/15)#bandwidth dynamic 1000000 percent 50
P4(config-mpls-te-if-gei-0/1/0/15)#exit
P4(config-mpls-te)#exit

Run the following commands on P5:


Interface configurations:
P5(config)#interface gei-0/1/0/11
P5(config-if-gei-0/1/0/11)#no shutdown
P5(config-if-gei-0/1/0/11)#ip address 13.13.13.2 255.255.255.0
P5(config-if-gei-0/1/0/11)#exit
P5(config)#interface gei-0/1/0/6
P5(config-if-gei-0/1/0/6)#no shutdown
P5(config-if-gei-0/1/0/6)#ip address 14.1.1.1 255.255.255.0
P5(config-if-gei-0/1/0/6)#exit
P5(config)#interface loopback1
P5(config-if-loopback1)#ip address 73.73.73.1 255.255.255.255
P5(config-if-loopback1)#exit
ISIS and ISIS-TE configurations:
P5(config)#router isis 10
P5(config-isis-10)#area 00
P5(config-isis-10)#system-id 0000.0000.7301
P5(config-isis-10)#is-type level-1
P5(config-isis-10)#metric-style wide
P5(config-isis-10)#mpls traffic-eng level-1
P5(config-isis-10)#interface gei-0/1/0/11
P5(config-isis-10-if-gei-0/1/0/11)#ip router isis
P5(config-isis-10-if-gei-0/1/0/11)#exit
P5(config-isis-10)#interface gei-0/1/0/6

2-193

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


ZXCTN 9000-E Configuration Guide (MPLS)

P5(config-isis-10-if-gei-0/1/0/6)#ip router isis


P5(config-isis-10-if-gei-0/1/0/6)#exit
P5(config-isis-10)#exit
MPLS-TE configurations:
P5(config)#mpls traffic-eng
P5(config-mpls-te)#router-id 73.73.73.1
P5(config-mpls-te)#interface loopback1
P5(config-mpls-te-if-loopback1)#exit
P5(config-mpls-te)#interface gei-0/1/0/11
P5(config-mpls-te-if-gei-0/1/0/11)#exit
P5(config-mpls-te)#interface gei-0/1/0/6
P5(config-mpls-te-if-gei-0/1/0/6)#exit
P5(config-mpls-te)#exit

Run the following commands on P6:


Interface configurations:
P6(config)#interface gei-0/1/0/15
P6(config-if-gei-0/1/0/15)#no shutdown
P6(config-if-gei-0/1/0/15)#ip address 15.73.52.73 255.255.255.0
P6(config-if-gei-0/1/0/15)#exit
P6(config)#interface gei-0/1/0/6
P6(config-if-gei-0/1/0/6)#no shutdown
P6(config-if-gei-0/1/0/6)#ip address 14.1.1.2 255.255.255.0
P6(config-if-gei-0/1/0/6)#exit
P6(config)#interface loopback1
P6(config-if-loopback1)#ip address 73.73.73.2 255.255.255.255
P6(config-if-loopback1)#exit
ISIS and ISIS-TE configurations:
P6(config)#router isis 10
P6(config-isis-10)#area 00
P6(config-isis-10)#system-id 2008.561c.41a2
P6(config-isis-10)#is-type level-1
P6(config-isis-10)#metric-style wide
P6(config-isis-10)#mpls traffic-eng level-1
P6(config-isis-10)#interface gei-0/1/0/6
P6(config-isis-10-if-gei-0/1/0/6)#ip router isis
P6(config-isis-10-if-gei-0/1/0/6)#exit
P6(config-isis-10)#interface gei-0/1/0/15
P6(config-isis-10-if-gei-0/1/0/15)#ip router isis
P6(config-isis-10-if-gei-0/1/0/15)#exit
P6(config-isis-10)#exit
MPLS-TE configurations:
P6(config)#mpls traffic-eng
P6(config-mpls-te)#router-id 73.73.73.2

2-194

SJ-20140721105958-012|2014-11-10 (R1.0) ZTE Proprietary and Confidential


Chapter 2 MPLS TE Configuration

P6(config-mpls-te)#interface loopback1
P6(config-mpls-te-if-loopback1)#exit
P6(config-mpls-te)#interface gei-0/1/0/15
P6(config-mpls-te-if-gei-0/