09-13-2023
09:20 AM
- last edited on
09-18-2023
06:59 PM
by
Translator
Hello, everyone!
I've built a simple small
MPLS topology
which consists of two routers only to see how LDP works in action.
Once enabled using the
mpls ip
command, the routers exchanged LDP multicast hellos and setup an adjacency.
My question is, why are there periodical unicast LDP Keepalives that are being sent between the neighbors while they are also both sending LDP multicast messages?
Wouldn't the multicast messages act as a sufficient keepalive by themselves? Why is there the need for the LDP Unicast Keepalive?
Thank you in advance.
David
Solved! Go to Solution.
09-13-2023 10:03 AM
The multicast UDP hellos are used to discover potential LDP peers on the local link. Unless you are using targeted LDP, the local node has no knowledge of potential peers (ie, it does not have them explicitly configured).
Exchanging hellos establishes a hello adjacency and provides each peer with the IP address of the other, allowing them to open a unicast TCP session to exchange labels. The unicast keepalive message is intended to monitor the integrity of this particular TCP session between the LDP peers, while the multicast LDP hello messages have no particular intended recipient and are agnostic to any established TCP session.
09-14-2023 01:53 AM
Hello @Mitrixsen ,
the multicast Hellos are just for new neighbor discovery.
The unicast UDP keepalives are intended to verify the usability of the specific link for the LDP TCP session between loopbacks.
In general multiple links in ECMP can exist between the two LSR nodes and this UDP unicast keepalive checks the health of each physical link between the two nodes.
The TCP keepalive between loopbacks can be re-routed in case of failure however each device needs to know how many paths are usable to the MPLS LDP peer.
It could rely on IGP but this unicast keepalives provide an indipendent way to check.
Hope to help
Giuseppe
09-13-2023 10:03 AM
The multicast UDP hellos are used to discover potential LDP peers on the local link. Unless you are using targeted LDP, the local node has no knowledge of potential peers (ie, it does not have them explicitly configured).
Exchanging hellos establishes a hello adjacency and provides each peer with the IP address of the other, allowing them to open a unicast TCP session to exchange labels. The unicast keepalive message is intended to monitor the integrity of this particular TCP session between the LDP peers, while the multicast LDP hello messages have no particular intended recipient and are agnostic to any established TCP session.
09-13-2023 10:39 AM
Hello @Mitrixsen,
Unicast messages are preferred for detecting session failures because they provide a more direct and reliable means of communication between the routers involved in the LDP session. This helps ensure rapid detection and recovery from any issues that may occur in the network.
Unicast messages can be targeted specifically to the remote LDP peer, providing a direct communication path. This allows the routers to quickly detect if the peer becomes unresponsive. Multicast messages are broadcast to a group of potential peers and are typically used during the session initialization process when the exact peer is not yet known.
09-14-2023 01:53 AM
Hello @Mitrixsen ,
the multicast Hellos are just for new neighbor discovery.
The unicast UDP keepalives are intended to verify the usability of the specific link for the LDP TCP session between loopbacks.
In general multiple links in ECMP can exist between the two LSR nodes and this UDP unicast keepalive checks the health of each physical link between the two nodes.
The TCP keepalive between loopbacks can be re-routed in case of failure however each device needs to know how many paths are usable to the MPLS LDP peer.
It could rely on IGP but this unicast keepalives provide an indipendent way to check.
Hope to help
Giuseppe
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide