01-21-2013 08:21 AM
how ftn is programmed in mpls. i mean how ip traffic is put onto mpls lsp. can anyone tell how it is done in cisco routers
01-24-2013 07:40 AM
hi i want to know how ip traffic is mapped to an lsp in cisco routers. somebody please explain.
01-25-2013 08:54 AM
can someone please shed some light on this.
01-28-2013 03:12 AM
Hello Sinbad,
in cisco routers MPLS implementation is based on CEF.
So the first step for each label switch router (LSR) is to have CEF enabled and to build the CEF related tables including the FIB ( Forwarding Information Base).
the FIB provides forwarding information for each IP prefix that is known in the IP routing table including rewriting information to encapsulate the packet.
The second building component is a classless IGP like OSPF, ISIS but also EIGRP or RIPv2 could be used.
The third component in the signalling plane is an MPLS label distribution protocol like LDP or RSVP-TE.
Let's make the case of LDP. Each LSR builds LDP sessions ( TCP based on port 646) with all adjacent routers and advertises the local bindings for each IPv4 prefix that is known from IGP protocol in use.
Each node allocates MPLS labels to all known IPv4 prefixes (local labels) and can receive remote bindings that are the labels to be used when sending traffic to neighbor router.
The MPLS label space is unique and once a label is picked it is not avaiable for other uses.
Labels have local meaning in each node.
Different nodes will assign different label values to the same FEC IPv4 prefix.
The duty of LDP is to advertise these label to IP prefix mappings that are called bindings.
LDP does not use split horizon or other routing protocol concepts so the bindings are exchanged bidirectionally with all neighbors regardless of best route to destination.
all the MPLS bindings are stored in the LIB label information base database.
By checking the IGP best route an MPLS binding using the same outgoing interface/neighbor for a given IPv4 destination is picked from the LIB and placed in the LFIB ( label forwarding information base).
So the LFIB contains the installed MPLS entries used for forwarding.
If an entry exists in the LFIB it is used instead of the corresponding entry in the FIB.
LDP in this way can populate the LFIB with entries for all IGP routes.
For a given destination each router on the IGP best path makes its own choice of label and publishes its label upstream (opposite direction of the destination). The ordered list of chosen labels make the LSP for the destination.
For BGP routes things are little different: BGP routes use recursion to use forwarding the BGP next-hop.
This recursion is used also in the MPLS forwarding so the BGP next-hop is usually the loopback address of a remote edge router (PE node) that is published in the IGP.
With the introduction of BGP the IGP is only requested to provide infrastructure connectivity, that is to advertise the loopback addresses.
MPLS traffic engineering uses RSVP-TE and relies on OSPF or ISIS only with their TE extensions.
Hope to help
Giuseppe
01-30-2013 07:32 AM
HI Giuseppe,
Thanks for your detailed answer. I thought one has to map the ip traffic
on to an mpls lsp.
> If an entry exists in the LFIB it is used instead of the corresponding entry in the FIB.
But, what if i want the IP path to take the precedency over LSP. how can one do that ?
Thanks
Sinbad.
02-01-2013 04:37 AM
Hi Sinbad,
If you want you can apply filtering for some prefixes not to allcoate labels or allocate labels only for certain prefixes through acl's.
Thanks
Sai
02-03-2013 06:39 PM
so there will be only one entry for the lsp, i mean only the lsp destination
will be carried on the lsp ? i have seen other implementations where
a fec is mapped to an lsp, with this different fecs can be mapped to
an lsp, this carrying any ip traffic over the lsp.
02-04-2013 03:54 AM
ASFAIK, it's a unique mapping of fec to lsp. It might be that multiple destination/source combination might fall under one single FEC.
I see MPLS-TE as one way to do that i.e. multiple source/destinations to one single TE tunnel. You can probably do PBR and re-direct some of the traffic through other paths than the chosen MPLS path.
Hope this helps.
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