MPLS nodes process TTLs in either uniform or pipe mode.
Perform the following steps on the ingress:
Perform the following steps on the ingress:
Perform the following steps on the ingress PE:
Perform the following steps on the egress PE:
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:
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.
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.
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.
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.