This is a multi-part message in MIME format.
------=_NextPart_000_0016_01C3A892.174A1B10
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Stef
I have one flow, I mark as EF class, then I use CBQ to control rate
in tc script there is place to control queue size (buffer size)
for example=20
## Definition of the CBQ leaf classes to support EF and BE
## EF class
$TC class add dev eth1 parent 2:1 classid 2:5 cbq bandwidth 100Mbit rate
6Mbit
avpkt 1000 prio 1 bounded allot 1514 weight 600kbit maxburst 10 =
defmap 0
$TC qdisc add dev eth1 parent 2:5 pfifo limit 10
.....
here use pfifo inside EF class, the parameter "limit" is queue size 10
However, each NIC card has txqueuelen which is transimission queue of =
device, the default is 100
So I am confused here, if I want control EF class buffer size, I think I =
should change "tc ......limit ...."
but what about NIC queue size? does NIC queue size is only for BE =
traffic?
thanks
yuxiao
------=_NextPart_000_0016_01C3A892.174A1B10
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1226" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Stef</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have one flow, I mark as EF
class, =
then I use CBQ=20
to control rate</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>in tc script there is place to
control =
queue size=20
(buffer size)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>for example
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>## Definition of the CBQ leaf classes to support EF and
BE<BR>## EF =
class<BR>$TC class add dev eth1 parent 2:1 classid 2:5 cbq bandwidth =
100Mbit=20
rate<BR>6Mbit<BR> avpkt 1000 prio 1
bounded allot 1514 =
weight=20
600kbit maxburst 10 defmap 0<BR>$TC qdisc add dev eth1 parent 2:5 pfifo =
limit=20
10<BR><FONT face=3DArial size=3D2>.....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>here use pfifo inside EF class, the
=
parameter=20
"limit" is queue size 10</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>However, each NIC card has
=
txqueuelen which is=20
transimission queue of device, the default is 100</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>So I am confused here, if I want =
control EF class=20
buffer size, I think I should change "tc ......limit
...."</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>but what about NIC queue size? does
NIC =
queue size=20
is only for BE traffic?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>yuxiao</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0016_01C3A892.174A1B10--