All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] wondershaper prio question
@ 2003-05-10  0:23 John McCain
  2003-05-12  7:12 ` Stef Coene
  0 siblings, 1 reply; 2+ messages in thread
From: John McCain @ 2003-05-10  0:23 UTC (permalink / raw)
  To: lartc

Referencing the cbq wondershaper as a discussion example, let me ask a stupid 
question with regard to how the rules actually work and what they actually 
do.

"Prio" is discussed in the howto as a qdisc, but in the wondershaper, it 
appears to be a cbq parameter rather than a qdisc in its own right.  My 
question is this:

If the outgoing queue is full of traffic identified as "traffic we hate", or 
1:30 at prio 2, what exactly is the behavior of the system for a ping packet, 
for example, which should classify as 1:10 at prio 1?  Does the ping packet 
bypass the 1:30 line, because it's prio is lower? (discounting stochastic 
fairness behavior)

If, as is the case with 1:20 and 1:30 in the wondershaper, the prio is 
identical but bandwidth is different, how exactly does the system behave?  
Will it look at every outbound packet in the queue, make a bandwidth 
decision, and then either send the packet or skip it?  Let's assume the 
example as above - a queue full of 1:30 traffic, and here comes a 1:20 
packet.  I'm guessing the kernel is cycling through each 1:30 packet and 
deciding not to forward it yet, then coming to the 1:20 packet, and 
forwarding it because 1:20's bandwidth is higher.

As I understand it, if we were to analogize this process with a line (queue 
for our UK friends) at a resturaunt, for example, the first situation, with 
two different prios, would take the form of two differnt lines, such that 
(again, discounting sfq for the purposes of discussion) no one in the prio 2 
line could be seated if anyone was standing in the prio 1 line.

The second situation, with the same prio level for each queue, would be 
represented by a single line, but where the matre'd asks the first person a 
question to determine their queue class, finds that the resturaunt is at its 
maximum level for that type of "customer", then moves on to the second in 
line and so on until reaching the 1:20 "customer", who then is removed from 
the back of the line and seated.

Is this the meaning of "prio" in the wondershaper?  If not, what's really 
happening?

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-05-12  7:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-10  0:23 [LARTC] wondershaper prio question John McCain
2003-05-12  7:12 ` Stef Coene

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.