08-01-2020 01:29 AM
Hi everyone it is not clear to me how mpls works. I understand that the packet that enters the first router A is assigned a label immediately after having made a lookup in the routing table. After that, when router A goes from router B to the packet, the label is removed and in the meantime it performs a lookup of the labels to be assigned to the packet, and so on for any other router that must pass through the packet. My question is how do routers know which label to assign for the packet to follow the correct path to the destination network?
Solved! Go to Solution.
08-01-2020 12:34 PM
> My question is how do routers know which label to assign for the packet to follow the correct path to the destination network?
The router knows where to forward the packets and what label should be used via a control plane protocol (LDP, RSVP. BGP-LU or (OSPF or ISIS in the case of Segment Routing)) or via a static MPLS mapping.
Regards,
08-01-2020 06:50 PM - edited 08-01-2020 07:02 PM
MPLS Operation is similar to Router building routing table (RIB), CEF creating Forwarding info base table (FIB) and adjacency table. MPLS uses Label Information Base table (LIB) and Label FIB (LFIB). LIB stores all labels known by router while LFIB stores label information only for currently used and the "best route". To make decision about which label is "the best", MPLS router will rely on routing protocol and Routing table (RIB). For each route in RIB, router assigns next available label number, call "local" label and advertises it via LDP. For each route learned via LDP, router records "remote" label, interface it came in, ID of LDP advertising router (loopback interface), and also adds its own new local label. Note that remote label will became outgoing label later. Each MPLS FIB table will have 2 labels (local and outgoing), prefix id and outgoing interface. Your local label is my outgoing label and vice versa.
Regards, ML
**Please Rate All Helpful Responses **
08-01-2020 12:34 PM
> My question is how do routers know which label to assign for the packet to follow the correct path to the destination network?
The router knows where to forward the packets and what label should be used via a control plane protocol (LDP, RSVP. BGP-LU or (OSPF or ISIS in the case of Segment Routing)) or via a static MPLS mapping.
Regards,
08-02-2020 07:46 AM
08-01-2020 06:50 PM - edited 08-01-2020 07:02 PM
MPLS Operation is similar to Router building routing table (RIB), CEF creating Forwarding info base table (FIB) and adjacency table. MPLS uses Label Information Base table (LIB) and Label FIB (LFIB). LIB stores all labels known by router while LFIB stores label information only for currently used and the "best route". To make decision about which label is "the best", MPLS router will rely on routing protocol and Routing table (RIB). For each route in RIB, router assigns next available label number, call "local" label and advertises it via LDP. For each route learned via LDP, router records "remote" label, interface it came in, ID of LDP advertising router (loopback interface), and also adds its own new local label. Note that remote label will became outgoing label later. Each MPLS FIB table will have 2 labels (local and outgoing), prefix id and outgoing interface. Your local label is my outgoing label and vice versa.
Regards, ML
**Please Rate All Helpful Responses **
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: