<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello everybody, </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have a Linux router with an ethernet adapter and 
a ADSL device.<BR>My router has a GRE tunnel connected to a remote IP 
address.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Using "tc" I have configured 3 different 
classes:<BR>1. 290kbit rate (used for Voip Services)<BR>2. 180kbit rate (used 
for GRE tunnel)<BR>3. 80kbit rate (for generic data traffic)</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>For each class, using "iperf", I send some data 
from a PC (connected attraverso eth0 device)<BR>to a remote destination. The 
remote destination is the GRE tunnel terminator.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The data traffic test is different for each 
class:<BR>1. 240kbit, 60byte packet size, UDP protocol<BR>2. 200kbit, 250byte 
packet size, UDP protocol<BR>3. 80kbit, 235byte packet size, UDP 
protocol</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In this way I got a lot of dropped packets on each 
class, while my expected results was<BR>a many drop packages only on the second 
class.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Can someone help me?</FONT></DIV>
<DIV><FONT face=Arial size=2>Thank all you,</FONT></DIV>
<DIV><FONT face=Arial size=2>roberto</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is the class configuration script:<BR>iptables 
-t mangle -A PREROUTING -m dscp --dscp 40&nbsp; -j MARK --set-mark 
100<BR>iptables -t mangle -A PREROUTING -m dscp --dscp 40&nbsp; -j 
ACCEPT<BR>iptables -t mangle -A PREROUTING -d 11.11.11.250&nbsp; -j DSCP 
--set-dscp 16<BR>iptables -t mangle -A PREROUTING -d 11.11.11.250&nbsp; -j MARK 
--set-mark 200<BR>iptables -t mangle -A PREROUTING -d 11.11.11.250&nbsp; -j 
ACCEPT<BR>iptables -t mangle -A PREROUTING -j DSCP --set-dscp 0<BR>iptables -t 
mangle -A PREROUTING -j MARK --set-mark 300<BR>iptables -t mangle -A PREROUTING 
-j ACCEPT</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>tc qdisc add dev atm0 root handle 1: cbq bandwidth 
500Kbit avpkt 500<BR>tc qdisc add dev tadsl0 root handle 1: cbq bandwidth 
500Kbit avpkt 500</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>tc class add dev atm0 classid 1:1 parent 1: cbq 
bandwidth 500Kbit rate 500Kbit avpkt 400 prio 1 allot 500</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>tc class add dev atm0 classid 1:2 parent 1:1 cbq 
bandwidth 500Kbit rate 290Kbit avpkt 400 prio 1 allot 500 bounded isolated<BR>tc 
filter add dev atm0 parent 1:0 protocol ip prio 1 handle 100 fw flowid 1:2<BR>tc 
qdisc add dev atm0 parent 1:2 pfifo limit 10</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>tc class add dev atm0 classid 1:3 parent 1:1 cbq 
bandwidth 500Kbit&nbsp;rate 180Kbit avpkt 400 prio 2 bounded isolated allot 
500<BR>tc filter add dev atm0 parent 1:0 protocol ip prio 2 handle 200 fw flowid 
1:3<BR>tc qdisc add dev atm0 parent 1:3 handle 20: sfq perturb 5</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>tc class add dev atm0 classid 1:4 parent 1:1 cbq 
bandwidth 500Kbit&nbsp;rate 80Kbit avpkt 400 prio 3 bounded isolated allot 
500<BR>tc filter add dev atm0 parent 1:0 protocol ip prio 3 handle 300 fw flowid 
1:4<BR>tc qdisc add dev atm0 parent 1:4 handle 30: sfq perturb 
5</FONT></DIV></BODY></HTML>