[mpls-linux-general] problems with classes and iptables
Status: Beta
Brought to you by:
jleu
From: lucapilosu\@libero\.it <luc...@li...> - 2008-04-22 10:04:59
|
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 |