Skip to contentSkip to conversation

htb-Why incoming only ?

LARTC Martin Devera 2 participants 2 messages Feb 28, 2002

lore
Share & tools
lore
#0 lore raw

I'm Cc this to LARTC as it may be of general interest. The problem is that Linux (as other OSes) can install qdisc (shaper) only for outgoing data. It is generaly believed to be dumb to throttle data when they already reached your computer or gateway.
When you do this on router you CAN limit both directions by placing shaper on both eth0 and eth1 for example.

But the incoming data can be already shaped by your upstream so that you have to shape to yet lower rate to be sure that backlog is build.

To overcome limitation where qdisc can be only at output interface you can use my IMQ patch which allows you to run every packet in system thru HTB - of course you have to be careful when setting it up because all packets including local will go there.

hope it helps,
devik

Quoted 9 lines · Project Work

Hello,
We read from various manuals that it is not possible to control the
incoming bandwidth using HTB. The reason we understood was that we don't have control over what is coming in from the internet. But, when we install HTB in a router to control the outgoing bandwidth, the same problem exists there too, right? The router doesn't know how much data each user in the n/w sends, similar to how much data sent to each user. May be a silly doubt. But do reply ?

Quoted 8 lines

Thanks,
Leetha, Pramod, Viswanath.

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 3 lines · Martin Devera

qdisc (shaper) only for outgoing data. It is generaly believed to be dumb to throttle data when they already reached your computer or gateway.

The only reason I've ever been able to see for incoming data shaping is to reorder packets so that, for example, FINs are sent to their respective applications before SYNs (just an example) or ACKs before data.

Signature · 6 lines
Michael T. Babcock
CTO, FibreSpeed Ltd.     (Hosting, Security, Consultation, Database, etc)
http://www.fibrespeed.net/~mbabcock/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/