mpls ldp ttl-mode

Function

The mpls ldp ttl-mode command configures a mode for MPLS LDP to process TTLs in packets.

The undo mpls ldp ttl-mode command restores the default mode for MPLS LDP to process TTLs in packets.

By default, MPLS LDP processes TTLs in packets in uniform mode.

Format

mpls ldp ttl-mode { pipe | uniform }

undo mpls ldp ttl-mode

Parameters

Parameter Description Value
pipe

Enables MPLS LDP to process TTLs in packets in pipe mode.

-

uniform

Enables MPLS LDP to process TTLs in packets in uniform mode.

-

Views

MPLS view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mpls-ldp write

Usage Guidelines

Usage Scenario

MPLS LDP processes TTLs in MPLS packets in the following two modes:

  • Uniform Mode

    The IP TTL value reduces by one each time it passes through a node in an MPLS network. When IP packets enter the MPLS network, the ingress reduces the IP TTL value by one and copies the IP TTL value to the MPLS TTL field. Each transit node only processes the MPLS TTL. The egress reduces the MPLS TTL by one, compares the MPLS TTL with the IP TTL, and obtains the smaller value to map it to the IP TTL.
  • Pipe Mode

    The IP TTL value decreases by one only when passing through the ingress and egress. When IP packets enter the MPLS network, the ingress reduces the IP TTL value in packets by one and sets the MPLS TTL to a specific value. Transit nodes only process the MPLS TTL. When the egress receives the packets, it removes the MPLS label carrying the MPLS TTL from each packet and reduces the IP TTL value by one.

    In multiple-hop PW virtual circuit connectivity verification (VCCV) tracert, all nodes on LSPs must process TTLs in packets in the same mode. A mode inconsistency causes a tracert operation failure.

Configuration Impact

If a node on an MPLS network processes TTLs in MPLS packets in pipe mode, the tracert and tracert lsp command output does not contain information about this node.

Example

# Configure MPLS LDP to process TTLs in MPLS packets in pipe mode.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls ldp ttl-mode pipe
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >