Re: [mpls-linux-general] Use of set-exp
Status: Beta
Brought to you by:
jleu
|
From: James R. L. <jl...@mi...> - 2005-05-19 21:18:12
|
exp2tc allows you to set the tcindex on the packet based on the incoming EXP bits. The tcindex can be used by TC schedulers. Read up on TC to learn how to utilize the tcindex. On Thu, May 19, 2005 at 10:59:58PM +0200, Julien Cayssol wrote: >=20 > yes but in a LSR how can setup priority between a paquet exp 1 and 6 ? >=20 > James R. Leu wrote: >=20 > >mpls ilm add label gen 16 labelspace 0 instructions pop exp2tc 0x0 0x10= =20 > >0x1 0x11 0x2 0x12 0x3 0x13 0x4 0x14 0x5 0x15 0x6 0x16 0x7 0x17 peek > > > >(again I don't have access to my test machines so the above command is= =20 > >untested) > > > >The above example maps each EXP value to a TC value which is 0x10 more. > >You can choose to only map certain EXP and you can choose whatever TC=20 > >values > >you want. > > > >BTW the 'mpls' command does have 'usage' output if you just type 'mpls' > >by itself. If the output is difficult to understand, please suggest=20 > >changes. > > > >On Thu, May 19, 2005 at 12:58:33PM +0200, Julien Cayssol wrote: > >=20 > > > >>Julien Cayssol wrote: > >> > >> =20 > >> > >>>James R. Leu wrote: > >>> > >>> =20 > >>> > >>>>On Wed, May 18, 2005 at 03:55:42PM +0200, jul...@aq... wrote: > >>>> > >>>> > >>>> =20 > >>>> > >>>>>Hello, > >>>>> > >>>>>The search function on sourceforge for the mailing-list doesn't=20 > >>>>>works so i post > >>>>>my question. > >>>>> > >>>>>With the command "mpls" you can specify the exp field. > >>>>> > >>>>>I don't understand what you must specify to make it work ? > >>>>>does any body have an example ? > >>>>> > >>>>> =20 > >>>>> > >>>>It must be before the push instruction, for example: > >>>> > >>>> mpls nhlfe add key 0 instructions set-exp 0x2 push gen 16 nexthop=20 > >>>>eth0 ipv4 1.1.1.1 > >>>> > >>>>I don't have access to my test boxes right now, so I can't confirm the > >>>>actual command above works. > >>>> > >>>>What commands have you tried? What is the resulting MPLS kernel debug > >>>>that you get? > >>>> > >>>> > >>>> =20 > >>>> > >>>i've try somes commandes but only with a "change key", the exp field= =20 > >>>is use for classe services, > >>> > >>>Is it possible to map it with TC ? > >>> > >>>were can we use exp next ? > >>> =20 > >>> > >>Helo, > >> > >>With iptable we set an exp to a paquet mpls, on the nexthop an exp a= =20 > >>6(dm) is faster than a exp 0(best effort). > >>but when we simulate traffic there are no differents. > >> > >>We must use tc ? can i have somes informations, were to search, on the= =20 > >>mailing liste a don't find a lot of informations. > >> > >>thanks. > >> > >> =20 > >> > >>>> =20 > >>>> > >>>>>Thanks a lot. > >>>>> > >>>>> > >>>>>--=20 > >>>>>Julien CAYSSOL > >>>>>INSA de LYON -=3D- D?partement Telecom Service= s=20 > >>>>>et Usages > >>>>>http://www.aqwz.com/ T?l : +33=20 > >>>>>664 973 067 > >>>>> > >>>>> > >>>>>------------------------------------------------------- > >>>>>This SF.Net email is sponsored by Oracle Space Sweepstakes > >>>>>Want to be the first software developer in space? > >>>>>Enter now for the Oracle Space Sweepstakes! > >>>>>http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick > >>>>>_______________________________________________ > >>>>>mpls-linux-general mailing list > >>>>>mpl...@li... > >>>>>https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > >>>>> > >>>>> =20 > >>>>> > >>>> > >>>> > >>>> =20 > >>>> > >>> =20 > >>> > >>--=20 > >>--- > >> > >>Julien Cayssol > >>http://www.aqwz.com > >>Mobile : 33 664 973 067 > >> =20 > >> > > > >=20 > > >=20 >=20 > --=20 > --- >=20 > Julien Cayssol > http://www.aqwz.com > Mobile : 33 664 973 067 --=20 James R. Leu jl...@mi... |