anzp
2003-Aug-05 02:14 UTC
For a root-qdisc, can the bandwidth be smaller than the bandwidth of the device?
For a root-qdisc, can the bandwidth be smaller than the bandwidth of the device? _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Steve Wright
2003-Aug-05 04:15 UTC
Re: For a root-qdisc, can the bandwidth be smaller than the bandwidth of the device?
On Tue, 2003-08-05 at 14:14, anzp wrote:> For a root-qdisc, can the bandwidth be smaller than the bandwidth of the device?yes. The root qdisc bandwidth *should* be set smaller than the bandwidth of the device by about 5% /steve _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Martin A. Brown
2003-Aug-05 12:57 UTC
Re: For a root-qdisc, can the bandwidth be smaller than the bandwidth of the device?
: > For a root-qdisc, can the bandwidth be smaller than the bandwidth of : > the device : : yes. The root qdisc bandwidth *should* be set smaller than the : bandwidth of the device by about 5% Well, wouldn''t you say it depends on the qdisc in use? If you are using CBQ, see the comments in section 9.5.4, "The famous CBQ qdisc": http://lartc.org/howto/lartc.qdisc.classful.html In short, you''ll use the bandwidth parameter to both your "tc qdisc add" and your "tc class add" commands. But, if you are using HTB, Steve is partly correct. Under HTB, you do not specify the real device bandwidth, but rather the rate to which you wish to limit your transmitted traffic. And in this case, it is wise to set the rate a bit lower than the real bandwidth to ensure that the HTB qdisc/classes are the bottleneck between the networks. -Martin -- Martin A. Brown --- SecurePipe, Inc. --- mabrown@securepipe.com _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Stef Coene
2003-Aug-05 16:25 UTC
Re: For a root-qdisc, can the bandwidth be smaller than the bandwidth of the device?
On Tuesday 05 August 2003 14:57, Martin A. Brown wrote:> : > For a root-qdisc, can the bandwidth be smaller than the bandwidth of > : > the device > : > : yes. The root qdisc bandwidth *should* be set smaller than the > : bandwidth of the device by about 5% > > Well, wouldn''t you say it depends on the qdisc in use? If you are using > CBQ, see the comments in section 9.5.4, "The famous CBQ qdisc": > > http://lartc.org/howto/lartc.qdisc.classful.html > > In short, you''ll use the bandwidth parameter to both your "tc qdisc add" > and your "tc class add" commands.It''s also not clear to me what anzp means with bandwidth. If he means the bandwidth parameter, then it''s the nic speed. The bandwidth parameter has to be the NIC speed so 10 or 100 mbit. But you can add a bounded class to the root qdisc so you can limit all bandwidth and this can be different from the nic bandwidth. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/