Re: [mpls-linux-devel] The different between LER and LSR in MPLS-Linux-1.1
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2005-12-09 03:56:05
|
On Fri, Dec 09, 2005 at 10:03:38AM +0800, yaya wrote: >=20 > hello, everyone =09 >=20 > > > We have downloaded the newest code--mpls-linux-1.1 from p4 server. Duri= ng debuging the source code, we have already realize the ldp between two L= ER for IPv4 and IPv6. the topo as below: =20 Your drawing does not display cleanly in a 80 column text email client. Please try again (hint don't use <tabs>) > ldp > =20 > --10000--> key:0x2 =20 > 3ffe:0:0:1::3 3ffe:0:0:1::1 3ffe:0:0:3::1 > | | | =20 > host1------LER1--------LER2------host2 > | | | > 3ffe:0:0:2::1 3ffe:0:0:2::2 3ffe:0:0:3::2 > key:0x2 <--10001--- =09 >=20 > =20 > but when we add the enetry LSR as follow figure, we can't create XC t= o mapping the label. We want to know if LER and LSR have respective codes = in the source code of mpls-linux-1.1 got from p4. How we distinguish LER an= d LSR. Yes ldp-portable has code to handle creating cross connects. A simple revi= ew of the structures and the functions will show that. For example=20 ldp_label_mapping_with_xc() sends a label mapping to the peer while cross connecting it to an existing label mapping. My guess is that the issue your seeing is in the porting layer (the part that hooks to MPLS linux). If you are running this inside of quagga-mpls then simply issuing a show mpls forwarding-table will show what LDP _wanted_ to create. If that still doesn't look right you could try implementing a quagga command that walks the inlabel table (ldp_cfg_inlabel_getnext()) and looking at it's outlabel_index and then does a ldp_cfg_outlabel_get() on that. > =20 > host1------LER1--------LSR--------LER2------host2 >=20 > For serveral months working, we have some progress in the mpls-linux sou= rce code. We also want to publicize our work to everyone care the mpls lin= ux project. How can we do? Send me a diff between your tree and a clean ldp-portable or quagga-mpls tr= ee. --=20 James R. Leu jl...@mi... |