From: "Roberto Belletti" Date: Sun, 08 Jan 2006 06:24:34 +0000 Subject: [LARTC] unexpected drop Message-Id: <000801c6141c$31ad2b30$0100000a@casa> MIME-Version: 1 Content-Type: multipart/mixed; boundary="===============2042576034==" List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. --===============2042576034== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0005_01C61424.92FA6760" This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C61424.92FA6760 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello everybody,=20 I have a Linux router with an ethernet adapter and a ADSL device. My router has a GRE tunnel connected to a remote IP address. Using "tc" I have configured 3 different classes: 1. 290kbit rate (used for Voip Services) 2. 180kbit rate (used for GRE tunnel) 3. 80kbit rate (for generic data traffic) For each class, using "iperf", I send some data from a PC (connected = attraverso eth0 device) to a remote destination. The remote destination is the GRE tunnel = terminator. The data traffic test is different for each class: 1. 240kbit, 60byte packet size, UDP protocol 2. 200kbit, 250byte packet size, UDP protocol 3. 80kbit, 235byte packet size, UDP protocol In this way I got a lot of dropped packets on each class, while my = expected results was a many drop packages only on the second class. Can someone help me? Thank all you, roberto This is the class configuration script: iptables -t mangle -A PREROUTING -m dscp --dscp 40 -j MARK --set-mark = 100 iptables -t mangle -A PREROUTING -m dscp --dscp 40 -j ACCEPT iptables -t mangle -A PREROUTING -d 11.11.11.250 -j DSCP --set-dscp 16 iptables -t mangle -A PREROUTING -d 11.11.11.250 -j MARK --set-mark 200 iptables -t mangle -A PREROUTING -d 11.11.11.250 -j ACCEPT iptables -t mangle -A PREROUTING -j DSCP --set-dscp 0 iptables -t mangle -A PREROUTING -j MARK --set-mark 300 iptables -t mangle -A PREROUTING -j ACCEPT tc qdisc add dev atm0 root handle 1: cbq bandwidth 500Kbit avpkt 500 tc qdisc add dev tadsl0 root handle 1: cbq bandwidth 500Kbit avpkt 500 tc class add dev atm0 classid 1:1 parent 1: cbq bandwidth 500Kbit rate = 500Kbit avpkt 400 prio 1 allot 500 tc class add dev atm0 classid 1:2 parent 1:1 cbq bandwidth 500Kbit rate = 290Kbit avpkt 400 prio 1 allot 500 bounded isolated tc filter add dev atm0 parent 1:0 protocol ip prio 1 handle 100 fw = flowid 1:2 tc qdisc add dev atm0 parent 1:2 pfifo limit 10 tc class add dev atm0 classid 1:3 parent 1:1 cbq bandwidth 500Kbit rate = 180Kbit avpkt 400 prio 2 bounded isolated allot 500 tc filter add dev atm0 parent 1:0 protocol ip prio 2 handle 200 fw = flowid 1:3 tc qdisc add dev atm0 parent 1:3 handle 20: sfq perturb 5 tc class add dev atm0 classid 1:4 parent 1:1 cbq bandwidth 500Kbit rate = 80Kbit avpkt 400 prio 3 bounded isolated allot 500 tc filter add dev atm0 parent 1:0 protocol ip prio 3 handle 300 fw = flowid 1:4 tc qdisc add dev atm0 parent 1:4 handle 30: sfq perturb 5 ------=_NextPart_000_0005_01C61424.92FA6760 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello everybody,
 
I have a Linux router with an ethernet = adapter and=20 a ADSL device.
My router has a GRE tunnel connected to a remote IP=20 address.
 
Using "tc" I have configured 3 = different=20 classes:
1. 290kbit rate (used for Voip Services)
2. 180kbit rate = (used=20 for GRE tunnel)
3. 80kbit rate (for generic data = traffic)
 
For each class, using "iperf", I send = some data=20 from a PC (connected attraverso eth0 device)
to a remote destination. = The=20 remote destination is the GRE tunnel terminator.
 
The data traffic test is different for = each=20 class:
1. 240kbit, 60byte packet size, UDP protocol
2. 200kbit, = 250byte=20 packet size, UDP protocol
3. 80kbit, 235byte packet size, UDP=20 protocol
 
In this way I got a lot of dropped = packets on each=20 class, while my expected results was
a many drop packages only on the = second=20 class.
 
Can someone help me?
Thank all you,
roberto
 
This is the class configuration = script:
iptables=20 -t mangle -A PREROUTING -m dscp --dscp 40  -j MARK --set-mark=20 100
iptables -t mangle -A PREROUTING -m dscp --dscp 40  -j=20 ACCEPT
iptables -t mangle -A PREROUTING -d 11.11.11.250  -j DSCP = --set-dscp 16
iptables -t mangle -A PREROUTING -d 11.11.11.250  = -j MARK=20 --set-mark 200
iptables -t mangle -A PREROUTING -d 11.11.11.250  = -j=20 ACCEPT
iptables -t mangle -A PREROUTING -j DSCP --set-dscp = 0
iptables -t=20 mangle -A PREROUTING -j MARK --set-mark 300
iptables -t mangle -A = PREROUTING=20 -j ACCEPT
 
tc qdisc add dev atm0 root handle 1: = cbq bandwidth=20 500Kbit avpkt 500
tc qdisc add dev tadsl0 root handle 1: cbq = bandwidth=20 500Kbit avpkt 500
 
tc class add dev atm0 classid 1:1 = parent 1: cbq=20 bandwidth 500Kbit rate 500Kbit avpkt 400 prio 1 allot 500
 
tc class add dev atm0 classid 1:2 = parent 1:1 cbq=20 bandwidth 500Kbit rate 290Kbit avpkt 400 prio 1 allot 500 bounded = isolated
tc=20 filter add dev atm0 parent 1:0 protocol ip prio 1 handle 100 fw flowid = 1:2
tc=20 qdisc add dev atm0 parent 1:2 pfifo limit 10
 
tc class add dev atm0 classid 1:3 = parent 1:1 cbq=20 bandwidth 500Kbit rate 180Kbit avpkt 400 prio 2 bounded isolated = allot=20 500
tc filter add dev atm0 parent 1:0 protocol ip prio 2 handle 200 = fw flowid=20 1:3
tc qdisc add dev atm0 parent 1:3 handle 20: sfq perturb = 5
 
tc class add dev atm0 classid 1:4 = parent 1:1 cbq=20 bandwidth 500Kbit rate 80Kbit avpkt 400 prio 3 bounded isolated = allot=20 500
tc filter add dev atm0 parent 1:0 protocol ip prio 3 handle 300 = fw flowid=20 1:4
tc qdisc add dev atm0 parent 1:4 handle 30: sfq perturb=20 5
------=_NextPart_000_0005_01C61424.92FA6760-- --===============2042576034== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc --===============2042576034==--