MPLS introduction & Basic configuration
Multi protocol labels switching (MPLS) uses labels to forward packets, instead of traditional routing. Alternatively to having each router looking up the destination in each packet’s header and forwarding it to the next hop, routers can simply switch packets based label value.
Once a label distribution protocol (LDP) session is established between routers, labels are exchanged for prefixes and stored in the forwarding equivalence class table (FEC). A subset of packets to be forwarded along the same path and treatment.
Four bytes label is inserted between layer2 header and layer3 packet.
Router role:
- LSR Label Switch router a router which supports MPLS
- Ingress LSR Receives unlabeled packets and push a label on it.
- Egress LSR Pop a label from a packet.
- Intermediate LSR Switch labelled packets.
It is sometimes said that one of the benefits of MPLS is speeding up packet forwarding, since this operation no longer relies on routing table lookups. Although this might have been true in the old days, it no longer holds. Current routers architecture decouple data and control planes, offloading the CPU from the forwarding function.
So what are the real benefits and advantages of deploying MPLS ?
For starters, deploying MPLS will remove the need for running BGP on core nodes. This is referred to as BGP free core, where BGP is only running on edge nodes and often a set of route reflectors.
Another advantage is the possibility to implement VPN, over one AS or more (Inter-AS VPN). This design allows a given provider to segregate its routing context per VPN set. Traffic engineering (TE) is another benefit, whereby traffic path can be manipulated and engineered due to capacity constraints or links quality.
And finally AToM, which is an acronym for Any Transport over MPLS. Layer 2 VPNs (L2VPN) are a great application of AToM.
MPLS configuration
At a basic level, configuring MPLS is rather straight forward.
You must enable or have an IGP running already and enable LDP globally. Define or hard code LDP update source, this is typically default to a used Loopback zero. And finally, enable LDP on each interface adjacent to an LSR.
There is also the option to auto configure LDP on each interface running IGP.
Notice how for XR config, I chose to auto-configures MPLS on any interfaces running that particular IGP process. Another difference between IOS and XR is the way router-id is configured.
For validation and verification following commands can be used.
In this post MPLS packet flow, you can learn more about label switching in an MPLS network. And follow the trail hop by hop, using Cisco show commands.
Leave A Comment