Hello,
MPLS loop prevention:
The LDP loop detection mechanism depends on the IGP protocol.
If a loop occurs (generally, an IGP fault occurs, for example, the static route configuration is incorrect), the TTL in the label header prevents the labeled packet from being forwarded endlessly.
The TTL in the label header is the same as that in the IP header. Generally, the TTL in the IP header is copied when an IP packet enters the MPLS network.
Hope to help you!