Specifying the TTL mode for MPLS

MPLS nodes process TTLs in either uniform or pipe mode.

Context

You can configure an MPLS TTL processing mode on the ingress PE or Egress PE.

Procedure

  • Set a TTL processing mode for MPLS LDP packets.

    Perform the following steps on the ingress:

    1. Run system-view

      The system view is displayed.

    2. Run mpls

      The MPLS view is displayed.

    3. Run mpls ldp ttl-mode { pipe | uniform }

      An MPLS TTL processing mode is set.

    4. Run commit

      The configuration is committed.

  • Set a TTL processing mode for MPLS TE packets.

    Perform the following steps on the ingress:

    1. Run system-view

      The system view is displayed.

    2. Run mpls

      The MPLS view is displayed.

    3. Run mpls te ttl-mode { pipe | uniform }

      An MPLS TTL processing mode is set.

    4. Run commit

      The configuration is committed.

  • Set a TTL processing mode for an SR-MPLS.

    Perform the following steps on the ingress PE:

    1. Run system-view

      The system view is displayed.

    2. Run mpls

      The MPLS view is displayed.

    3. Run mpls sr ttl-mode { pipe | uniform }

      An MPLS TTL processing mode is set.

    4. Run commit

      The configuration is committed.

  • Set a TTL processing mode for a BGP LSP egress.

    Perform the following steps on the egress PE:

    1. Run system-view

      The system view is displayed.

    2. Run mpls

      The MPLS view is displayed.

    3. Run mpls bgp ttl-mode { pipe | uniform } egress

      A TTL processing mode is set for a BGP LSP egress.

    4. Run commit

      The configuration is committed.

    When IP packets in a VPN instance enter an MPLS tunnel, to configure the mode of processing the MPLS TTL carried in a private network label, run the ttl-mode command. In addition, the mpls te ttl-mode or mpls ldp ttl-mode command configures the mode of processing the MPLS TTL in public network labels. The combinations of TTL processing modes are as follows:

    • The MPLS TTL processing modes for both the private network label and public network label are uniform.

      When an IP packet passes through an MPLS network, the IP TTL decreases by one on the ingress and is mapped to the MPLS TTL of the private network label. The MPLS TTL of the private network label is mapped to the MPLS TTL of the public network label. Then, the packet is processed in the standard TTL mode on the MPLS network. The egress removes the public network label, copies and pastes the MPLS TTL in the public network label to the MPLS TTL in the private network label, and removes the private network label. The egress then reduces the MPLS TTL by one and changes the IP TTL to a smaller value of the MPLS TTL and IP TTL. Figure 1 illustrates such an MPLS TTL processing mode.

      Figure 1 MPLS TTL processing mode 1
    • The MPLS TTL processing mode for the private network label is pipe, and that for the public network label is uniform.

      When an IP packet passes through an MPLS network, the ingress reduces the IP TTL and copies and pastes the MPLS TTL that is fixed at 255 in the private network label to the MPLS TTL in the public network label. Then, the packet is processed in the standard TTL mode on the MPLS network. The egress removes the public network label, copies and pastes the MPLS TTL to the MPLS TTL in the private network label, and removes the private network label. The IP TTL is reduced by one only by the egress. Figure 2 illustrates such an MPLS TTL processing mode.

      Figure 2 MPLS TTL processing mode 2
    • The MPLS TTL processing mode for the private network label is uniform, and that for the public network label is pipe.

      When an IP packet passes through an MPLS network, the ingress reduces the IP TTL by one and copies and pastes the IP TTL to the MPLS TTL of the private network label. The MPLS TTL of the public network label is fixed at 255. Then, the packet is processed in the standard TTL mode on the MPLS network. The egress removes the public network label and private network label in sequence, reduces the MPLS TTL by one, and changes the IP TTL to a smaller value of the MPLS TTL and the IP TTL. Figure 3 illustrates such an MPLS TTL processing mode.

      Figure 3 MPLS TTL processing mode 3
    • The MPLS TTL processing modes for both the private network label and public network label are pipe.

      When an IP packet passes through an MPLS network, the IP TTL decreases by one on the ingress. The MPLS TTLs in the private network label and public network label are fixed at 255. Then, the packet is processed in the standard TTL mode on the MPLS network. The egress removes the public network label and private network label in sequence. The IP TTL is reduced by one only by the egress. Figure 4 illustrates such an MPLS TTL processing mode.

      Figure 4 MPLS TTL processing mode 4

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >