Internal
ODC010002 LDP Principle
ISSUE 1.1
www.huawei.com
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved
MPLS LDP protocol is one of important
MPLS signal protocols used to set up
MPLS LSP.
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 2
Learning Guide
RFC 3036
VRP Operation Manual-MPLS
chapter
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 3
Upon completion of this course, you will
be able to:
Understand MPLS LDP Principle
Understand LDP Working Process
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 4
Chapter 1 LDP Basic Principle
Chapter 2 LDP Protocol Features
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 5
Basic Concepts of LDP
LDP is a MPLS control and signal protocol
Main functions:
Release Label-FEC mapping
Create and maintain label switching path
LDP serves to distribute and maintain label mapping messages
between peers in form of message
LDP uses the TCP transmission service
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 6
LDP Messages
20 18 10 v octets
General
Format IP TCP LDP Header LDP Message
Well-known port 646
Some message types use UDP for multicast
2 2 6 octets
LDP Version PDU Length LDP Identifier
Header
Currently Excludes length Router ID (IP address)
1 and version and Label Space ID
2 2 6 octets
LDP Type Length ID Parameters
Message
Excludes Type Sequence Mandatory
Address and Length number and optional
Address withdraw Label Request
Hello Label Abort Request
Initialization Label Withdraw
KeepAlive Label Release
Label Mapping Notification
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 7
LDP Message Types
Discovery message: Used to discover LDP adjacencies in the
network
Session message: Used to set up, maintain and terminate a
session between LDP peers
Distribution message: Used to create, change and delete label
mappings related to FEC
Notification message: Used to provide recommendation or
error notification information
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 8
Detailed LDP Message
Message Type Description
Notification Reports an error condition
Hello LDP keep-alive, sent periodically based on hold timer
Initialization Sets up an LDP session and negotiate parameters
KeepAlive Monitors Integrity of TCP connection supporting a session
Address Advertises a list of interface addresses
Address Withdraw “Undoes” the address message
Label Mapping Advertises FEC / Label bindings to neighbors
Label Request Requests a label binding for a given FEC
Label Abort Request Aborts an outstanding label request message
Label Withdraw Deletes FEC / Label binding when FEC no longer supported
Label Release Deletes FEC / Label binding due to route change
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 9
LDP Message Switching
UDP-Hello
Discovery stage
UDP-Hello
TCP connection establishment
Session creation
and maintenance
Session initialization
Label request
LSP creation and FEC
maintenance
Label
Label mapping
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 10
Chapter 1 LDP Basic Principle
Chapter 2 LDP Protocol Features
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 11
LDP Supported Features
LDP is an important MPLS signal protocol.
Modes
− Distribution: Downstream Unsolicited / Downstream On-demand.
− Control: Ordered / Independent
− Label Retention: Liberal / Conservative
Optional features
− Loop detection
− TCP Message Digest 5 signature option
−...
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 12
LDP Supported Features (cont.)
LDP Discovery (Hello message) with support for basic (link)
and extended (targeted) discovery.
LDP Error Handling with support for Notification message and
Status TLV
LDP Session Establishment and Maintenance with support for
Initialization, Address, and Address Withdraw messages
Support for LDP vendor-private and experimental features
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 13
Remote LDP
In general, LDP neighbor should be established between
directed links.
In some case, we require to set up remote LDP neighbor
relationship for:
MPLS L2 VPN (Martini mode)
LDP over MPLS TE
…….
Remote LDP
R1 R2 R3
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 14
LDP and TDP—Overview
Functionally, TDP is a subset of LDP
TDP is Cisco private protocol
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 15
Summary
LDP message type:
Discovery message
Session message
Distribution message
Notification message
LDP important features
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 16
Thank You
www.huawei.com