On 11/23/11 20:58, Henning Brauer wrote:
> * Jussi Peltola <pe...@pelzi.net> [2011-11-20 04:09]:
>> On Sat, Nov 19, 2011 at 08:58:46PM -0500, quartz wrote:
>>> is there a way to set up altq+priq on an internet connection with highly
>>> variable/unknown bandwidth?
>>>
>>> I'd like to create a simple one layer queue system that prioritizes empty
>>> ACKs over anything else (always, all the time, no matter the load or
>>> congestion). it looks like priq is the way to do this, but all the
>>> documentation I can find seems to say you have to type in a hard number,
>>> which won't work for my case.
>>  
>> This is usually impossible. The packets get re-queued in the modem or
>> whatever device is next to the choke point, and any prioritization you
>> configure becomes useless. Typically the only way around it is to send
>> at a rate slightly lower than the choke point bandwidth, so the buffer
>> of the modem never starts to get utilized. If the bandwidth is variable,
>> you're screwed.
> 
> this is not true for simple priority queueing. it just reorders the
> packets. the modem is not supposed to, so your higher priority packets
> still go out before the later sent lower priority ones.

This works only as long as the modem doesn't start to drop packets
because its queue is full.
If the modem ist not queueing packets, why do you do priorization?

Most people use priority queueing because they want short delay on some
connections like ssh, VoIP... They don't want the modem to buffer
packets at all because that would add delay.
This means you can priorize packets only on the bottleneck.

> however and admittedly:
> the effect of simple priority queueing isn't all that drastic since
> your machine only reorders within the packets it has in flight at the
> given moment (few less even).
> the combo of the extra buffer and the lower bandwidth link further
> down the road minimizes the effects - foremost when there is congestion
> on that slower link. 

as soon as the modem starts queueing your deley rises (my modem buffers
up to 2500ms - try doing VoIP over such a connection).
as soon as the modem starts dropping packets (because it has a small
buffer or because it gets fed with 100MBit) your priorization won't
work anymore, too.

You cannot do any kind of bandwidth shaping, priorization or fair
queueing on any link but the bottleneck.

Reply via email to