Skip to contentSkip to conversation

qos with bridge

LARTC Brandis Jaroslav 2 participants 2 messages Feb 18, 2004 – Feb 19, 2004

lore
Share & tools
lore
#0 lore raw

Hello ...

I try to build bridge with qos features but Im not success . Im using ebtables, kernel bridge support and tc but still cant get packets in correct class.

here's my config
ebtables:

ebtables -P INPUT ACCEPT
ebtables -P OUTPUT ACCEPT
ebtables -P FORWARD ACCEPT
ebtables -F
ebtables -A FORWARD -p ipv4 --ip-dst xx.xx.xx.xx -i eth0 -j mark --set-mark 1 --mark-target CONTINUE --log-ip
ebtables -A FORWARD -p ipv4 --ip-dst yy.yy.yy.yy -i eth0 -j mark --set-mark 2 --mark-target CONTINUE --log-ip

I see in log packet when is marked. But I cant see packet in correct class .

tc:

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 30

tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbit burst 15k

tc class add dev eth0 parent 1:1 classid 1:10 htb rate 500kbit burst 15k tc class add dev eth0 parent 1:1 classid 1:20 htb rate 400kbit burst 15k

tc class add dev eth0 parent 1:1 classid 1:30 htb rate 100kbit

tc qdisc add dev eth0 parent 1:10 handle 10: sfq perturb 10 tc qdisc add dev eth0 parent 1:20 handle 20: sfq perturb 10 tc qdisc add dev eth0 parent 1:30 handle 30: pfifo

tc filter add dev eth0 parent 1: protocol ip prio 3 handle 1 fw classid 1:10
tc filter add dev eth0 parent 1: protocol ip prio 3 handle 2 fw classid 1:20

Any advice ?

has anybody working configuration with shaping on bridge ? If yes can you provide your config and infos what you used for it ?

thanks

#1 lore raw
Quoted 1 line

ebtables -A FORWARD -p ipv4 --ip-dst yy.yy.yy.yy -i eth0 -j mark

                                                   ^^^^^^^
Quoted 3 lines

--set-mark 2 --mark-target CONTINUE --log-ip

tc qdisc del dev eth0 root

                   ^^^^

You mark packets that ENTER eth0, but your qdisc is applied when packets exit eth0. You should apply the qdisc on the other interface (eth1 I presume).

Signature · 6 lines
Damjan Georgievski
jabberID: [email protected]

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/