From: "Brandis Jaroslav" Date: Wed, 18 Feb 2004 14:22:15 +0000 Subject: [LARTC] qos with bridge Message-Id: MIME-Version: 1 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C3F62A.9B81A9B2" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C3F62A.9B81A9B2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hello ...=20 =20 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.=20 =20 here's my config ebtables: =20 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=20 =20 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=20 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 ?=20 has anybody working configuration with shaping on bridge ?=20 If yes can you provide your config and infos what you used for it ?=20 thanks=20 =20 ------_=_NextPart_001_01C3F62A.9B81A9B2 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hello = ...=20
 
I try = to build=20 bridge with qos features but Im not success . Im using ebtables, kernel = bridge=20 support and tc but still cant get packets in correct class.=20
 
here's = my=20 config
ebtables:
 
ebtables -P INPUT=20 ACCEPT
ebtables -P OUTPUT ACCEPT
ebtables -P FORWARD=20 ACCEPT
ebtables -F
ebtables -A FORWARD -p ipv4 --ip-dst = xx.xx.xx.xx -i=20 eth0 -j mark --set-mark 1 --mark-target CONTINUE --log-ip
ebtables -A = FORWARD=20 -p ipv4 --ip-dst yy.yy.yy.yy -i eth0 -j mark --set-mark 2 --mark-target = CONTINUE=20 --log-ip

 

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

tc:

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

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

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

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

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

Any advice=20 ?

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

thanks=20

 
------_=_NextPart_001_01C3F62A.9B81A9B2-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/