[LARTC] >10Mbit on HTB
Kristiadi Himawan
kristiadi_himawan@dtp.net.id
Sat, 11 Oct 2003 21:28:10 +0700
This is a multi-part message in MIME format.
------=_NextPart_000_00C5_01C3903E.920ACFA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Below is the script:
tc qdisc del dev eth2 root
tc qdisc add dev eth2 root handle 1 htb default 10 r2q 100
tc class add dev eth2 parent 1: classid 1:2 htb rate 100Mbit
tc class add dev eth2 parent 1:2 classid 1:10 htb rate 20Mbit ceil =
20Mbit
tc filter add dev eth2 parent 1:0 protocol ip prio 100 u32 match ip dst =
202.xx.xxx.xx/26 classid 1:10
When i try to shape 20Mbit, there's dropped packet but i see the =
bandwidth not shaped to 20Mbit.
But when shape to 10Mbit, i see the bandwidth down to 13Mbit.
Any comment with this?
Thanks.
------=_NextPart_000_00C5_01C3903E.920ACFA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3502.5390" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Below is the script:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>tc qdisc del dev eth2 root<BR>tc qdisc =
add dev eth2=20
root handle 1 htb default 10 r2q 100</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>tc class add dev eth2 parent 1: classid =
1:2 htb=20
rate 100Mbit</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>tc class add dev eth2 parent 1:2 =
classid 1:10 htb=20
rate 20Mbit ceil 20Mbit<BR>tc filter add dev eth2 parent 1:0 protocol ip =
prio=20
100 u32 match ip dst 202.xx.xxx.xx/26 classid 1:10</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>When i try to shape 20Mbit, there's =
dropped packet=20
but i see the bandwidth not shaped to 20Mbit.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But when shape to 10Mbit, i see the =
bandwidth down=20
to 13Mbit.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Any comment with this?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_00C5_01C3903E.920ACFA0--