1

Can the transport address for the LDP be different from the loopback IP? LSR ID would be loopback while the transport address would be interface IP. For example, if the interface IP is the transport address, is there a drawback of not using it as a loopback.

1
  • Did any answer help you? if so, you should accept the answer so that the question does not keep popping up forever, looking for an answer. Alternatively, you could post and accept your own answer.
    – Ron Maupin
    Dec 23, 2021 at 19:44

1 Answer 1

2

Since the LDP is running using TCP, it needs to establish session with every LDP speaking neighbor. Sometimes those neighbors are one hop away and you can use the point-to-point addresses configured on interfaces, but sometimes those might be a few hops away (e.g. when using L2 vpns/EoMPLS) and then both routers must be able to discover each other first before they're able to establish this communication. Similar to iBGP using loopback0 for update-source (think about it this way). Therefore, if you're to establish a TCP session with a neighbor that is 2-3 hops away, you'd want to use your loopback address to avoid LDP adjacency failures during interface failure.

Consider the following topology.

(A) et1 --- et1 (B)
   et2       et2
     \       /
      \     x <--- failed link
     et1   et2
        (C)

Router C's et2 towards Router B fails. In this case, if you don't use your loopback address to establish adjacency, router C will use it's p2p address used for the link between C<->B to peer with B. When the link goes down, Router C will try to establish adjacency with (B)'s router-id (which is the IP of the failed interface et2) because B is not using loopback address either, so C will try to use it's et1 address to talk to (B)'s failed et2 (again, this is only in case they have indirect (i think it was called targeted) LDP session (EoMPLS/L2 circuit) and this won't work, because the link will be down.

Using Loopback addresses solves these problems and as long as you have route between peers - the LDP adjacencies will be intact.

1
  • Thanks, @Danail for the answer. Another question on the same note. Let's say in the above example between router A and C we've 2 links. LDP is enabled on both the links, if we use loopback IPs on each router, would router A and C create 2 LDP sessions based on the loopback IP. How the 2 sessions would be different. In case if we use just the interface IP, there would be 2 unique session on each link.
    – Goldy Tomy
    Jun 3, 2021 at 17:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.