Re: [mpls-linux-general] problems with classes and iptables
Status: Beta
Brought to you by:
jleu
From: Adrian P. <adr...@gm...> - 2008-04-22 10:41:15
|
Hello Luca, I have a question about your iptables install: did you install the iptables that came with mpls-linux? I may be wrong, but I seem to remember that you had to load a module for mpls target support for iptables, but I don't remember its name (this if it isn't compiled statically in the kernel). Do a lsmod and post the output. I don't remember the syntax of the mpls command, (do a mpls -h) but if there is an option DSCP-to-TCINDEX, than you can map DSCP directly to TCINDEX, without the need to use EXP. But please note that you would be able to use the scheduling strategy only on the input LER, since the mapping is done only here. Good luck, Adrian On Tue, Apr 22, 2008 at 12:08 PM, luc...@li... <luc...@li...> wrote: > Hello, > I'm trying to differentiate traffic flows in MPLS by marking DSCP field at > the source and using scheduling strategies at the LER. > I tried to follow the mpls-linux labs for congestion, in which I found > something similar to my case. > In that case the steps are: > 1- mapping DSCP on EXP bits of mpls header > 2- mapping EXP on the tcindex (scheduling strategy) > > In the script by Adrian Popa there are the following commands: > > var_best1=`mpls nhlfe add key 0 instructions ds2exp 0xf 0x1A 0x3 exp2tc > 0x3 0x1 push gen 300 nexthop ath1 ipv4 10.0.5.3|grep key|cut -c 17-26` > > iptables -A FORWARD -s 172.16.30.0/24 -m dscp --dscp 26 -j mpls --nhlfe > $var_best1 > > the iptables command answers to me: > iptables: Invalid argument > > I've attached also the result of the command: > strace iptables -A FORWARD -s 172.16.30.0/24 -m dscp --dscp 26 -j mpls > --nhlfe 0x02 > > (0x02 is the previously generated key) > > I don't understand where's the problem: I've followed the example and it > seems that the problem is in in the -j target of iptables... > Could you please help me? > > > Actually what I'd like to do is quite simpler: it would be enough to > simply give a different mpls label to every class and then associate each > label (flow) with a scheduling strategy, without marking exp bits...is it > possible? > Thanks in advance, > Luca > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > mpls-linux-general mailing list > mpl...@li... > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > |