You are on page 1of 11

4/2/2012

Internal

ODC011001 LDP Principle Configuration


ISSUE 1.1
www.huawei.com

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

In MPLS network, we often adopt LDP as the label distribution protocol in an MPLS domain to set up LSPs, this slide introduces the configuration of how to establish LDP sessions and how to

perform label mapping, release, and so on.

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 2

4/2/2012

Upon completion of this course, you will be able to: Describe the LDP configuration commands Know typical applications of LDP Describe how to monitor the information of LDP

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 3

Chapter 1 LDP Configuration Commands Chapter 2 LDP Configuration Case Chapter 3 LDP Information Information Monitor

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 4

4/2/2012

Basic Configure Steps


Configure MPLS LSR-ID Preconfigured Tasks Enable MPLS

Enable MPLS LDP LDP configuration Enable Interface MPLS&LDP

Optional Configuration

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 5

LDP Configuration Commands


Enable LDP
[Quidway] mpls ldp
Enable mpls ldp in system view mpls ldp enable LDP for a public instance or for a VPN instance. Use this command after the MPLS LSR ID has been configured and MPLS is globally enabled.

[Quidway-Serial1] mpls ldp


Enable mpls ldp in interface view
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 6

4/2/2012

LDP Configuration Commands


Configure Remote LDP [Quidway]
mpls ldp remote-peer peer-name
Enter MPLS LDP remote peer view.

[Quidway-mpls-ldp-remote-huawei] remote-ip ip-address


Configure remote peer IP address There is only one LDP session between two LSRs, and the priority of local LDP is higher than remote LDP Up to now, remote LDP is only used to transmit message for L2VPN
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 7

LDP Configuration Commands


Configure Parameters for LDP Session [Quidway-Serial1] mpls ldp advertisement { dod | du }
The default label advertisement mode is DU.

[Quidway-Serial1] mpls ldp timer keepalive-hold seconds


Configure the session hold timer. By default, the keepalive hold value is 45 seconds for both local and remote sessions.
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 8

4/2/2012

LDP Configuration Commands


Configure Label Distribution and Retention Mode
[Quidway] label-distribution { independent | ordered }
Configure label distribution control mode.

label-retention { liberal | conservative }


Configure label retention mode. By default, label distribution control mode is ordered; label retention mode is liberal; re-advertising labels in DU mode is enabled.

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 9

LDP Configuration Commands


Configure Loop Detection [Quidway-mpls-ldp]
loop-detect hops-count hop-number path-vectors pv-number
Configuring Loop Detection By default, loop detection is disabled. To perform loop detection for the MPLS domain, you must configure loop detection on all LSRs. Loop detection includes two modes, the maximum hop count mode and the path vector mode.
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 10

ranges from 1 to 32

4/2/2012

LDP Configuration Commands


Configure LDP MD5 Authentication [Quidway-mpls-ldp] md5-password { plain | cipher } peer-lsr-id password

Configuring LDP MD5 Authentication By default, the MD5 authentication is disabled. To improve the security of LDP sessions, MD5 authentication can be used for the setup of TCP connections used by LDP.

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 11

Chapter 1 LDP Configuration Commands Chapter 2 LDP Configuration Case Chapter 3 LDP Information Monitor

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 12

4/2/2012

LDP Configuration Case


Remote LDP L0:1.1.1.9 L0:2.2.2.9 L0:3.3.3.9

POS:10.1.1.0/24

POS:10.2.2.0/24

RTA
Local LDP
Network Requirements

RTB
Local LDP

RTC

RTA, RTB and RC support MPLS, and run routing protocol between them. Establish local LDP sessions between RTA and RTB, also between RTB and RTC. Establish a remote LDP session between RTA and RTC.
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 13

LDP Configuration Case


Configuration Procedure
1.Configure interfaces IP address Basic Configuration 2. Configure IGP, such as OSPF

Enable MPLS and LDP Enable Remote LDP

[RouterA] mpls lsr-id 1.1.1.9 [RouterA] mpls [RouterA-mpls] lsp-trigger all [RouterA] mpls ldp [RouterA] interface pos 1/0/0 [RouterA-Pos1/0/0] mpls [RouterA-Pos1/0/0] mpls ldp

For VRP 3.3, it should be mpls ldp enable For VRP5.10 or higher, It would be mpls ldp

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 14

4/2/2012

LDP Configuration Case


Configuration Procedure
Basic Configuration [RouterA] mpls ldp remote-peer peerc [RouterA-mpls-ldp-remote-peerc] remote-ip 3.3.3.9 [RouterA-mpls-ldp-remote-peerc] quit The configuration of RTC is similar to RTA

Enable MPLS and LDP Enable Remote LDP

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 15

Chapter 1 LDP Configuration Commands Chapter 2 LDP Configuration Case Chapter 3 LDP Information Monitor

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 16

4/2/2012

LDP Information Monitor


Common Commands
display mpls ldp session
[RouterA] display mpls ldp session LDP Session(s) in Public Network ----------------------------------------------------------------------------------------Peer-ID Status LAM SsnRole SsnAge KA-Sent/Rcv ----------------------------------------------------------------------------------------2.2.2.9:0 Operational DU Passive 000:00:17 69/69 3.3.3.9:0 Operational DU Passive 000:00:00 4/4 ----------------------------------------------------------------------------------------LAM : Label Advertisement Mode SsnAge Unit : DDD:HH:MM
Session status, Operational means session established

Label Advertisement Mode

the routers role in the session, the larger LSR ID router will be Active the less one will be Passive

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 17

LDP Information Monitor


Common Commands
display mpls ldp peer
[RouterA] display mpls ldp peer LDP Peer Information in Public network -----------------------------------------------------------------------------Peer-ID Transport-Address Discovery-Source -----------------------------------------------------------------------------2.2.2.9:0 2.2.2.9 Pos1/0/0 3.3.3.9:0 3.3.3.9 Remote Peer : peerc ------------------------------------------------------------------------------

display mpls ldp peer verbose can display more detailed information
HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 18

4/2/2012

LDP Information Monitor


Common Commands
display mpls ldp lsp
[RouterA] display mpls ldp lsp LDP LSP Information --------------------------------------------------------------------------------------------SN DestAddress/Mask In/Out Label Next-Hop In/Out-Interface --------------------------------------------------------------------------------------------1 1.1.1.9/32 3/NULL 127.0.0.1 Pos1/0/0/InLoop0 2 2.2.2.9/32 NULL/3 10.1.1.2 -------/Pos1/0/0 3 3.3.3.9/32 NULL/1025 10.1.1.2 -------/Pos1/0/0 4 20.1.1.0/24 NULL/3 10.1.1.2 -------/Pos1/0/0 --------------------------------------------------------------------------------------------A '*' before an LSP means the LSP is not established

A '*' before a Label means the USCB or DSCB is stale


HUAWEI TECHNOLOGIES CO., LTD. All rights reserved Page 19

Summary

This slide includes LDP basic configuration, local and remote LDP configuration and one case, at last introduces some common commands for information monitor.

Microsoft Excel

HUAWEI TECHNOLOGIES CO., LTD.

All rights reserved

Page 20

10

4/2/2012

Thank You
www.huawei.com

11

You might also like