Skip to contentSkip to conversation

fairness queing: sfq, etc.

LARTC David Koski 3 participants 3 messages Apr 10, 2002 – Apr 11, 2002

lore
Share & tools
lore
#0 lore raw

The documentation (2.4routing) seems to imply that SFQ balances on a per connection basis. It would seem to be more fair to balance on a source ip basis as that would evenly divide bandwidth among users. Is this correct? If so, is there an alternative qdisc that would provide the above?

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

#1 lore raw

Hi !

Quoted 3 lines · David Koski

The documentation (2.4routing) seems to imply that SFQ balances on a per connection basis. It would seem to be more fair to balance on a source ip basis

SFQ places packets in slots based on a hash function. Then each slot is dequeud in
a round-robin fashion.

Quoted 2 lines

as that would evenly divide bandwidth among users. Is this correct? If so, is there an alternative qdisc that would provide the above?

I don't think there is a qdiscs for this but SFQ should be easy to change.
Changing the hash function to something like iph->saddr % SFQ_HASH_DIVISOR
should be enough ..

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

#2 lore raw
In reply to David Koski
Quoted 11 lines · Patrick McHardy

Hi !

Quoted 3 lines · David Koski

The documentation (2.4routing) seems to imply that SFQ balances on a per connection basis. It would seem to be more fair to balance on a source ip basis

SFQ places packets in slots based on a hash function. Then each slot is dequeud in
a round-robin fashion.

Quoted 5 lines
Quoted 2 lines

as that would evenly divide bandwidth among users. Is this correct? If so, is there an alternative qdisc that would provide the above?

I don't think there is a qdiscs for this but SFQ should be easy to change.

The WRR (http://wipl-wrr.sourceforge.net/wrr.html) scheduler can do this job.

Wojtek Sawasciuk

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