All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] CBQ Rate
@ 2003-09-04 15:39 Emmanuel SIMON
  2003-09-04 17:07 ` Emmanuel SIMON
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Emmanuel SIMON @ 2003-09-04 15:39 UTC (permalink / raw)
  To: lartc

Hi everyone,

This is on a linux box, ingress (eth1) at 100Mb/s and egress (eth0) at
10Mb/s. The purpose is to test CBQ
Here is my script

-------------------------------------------------------------------
# Root qdisc
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 9Mbit \
  avpkt 1000 cell 8

# Classes
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 9Mbit \
  rate 5Mbit weight 0.3 allot 1514 avpkt 1000 bounded prio 1
tc class add dev eth0 parent 1:0 classid 1:2 cbq bandwidth 9Mbit \
  rate 5Mbit weight 0.3 allot 1514 avpkt 1000 bounded prio 2
tc class add dev eth0 parent 1:0 classid 1:3 cbq bandwidth 9Mbit \
  rate 5Mbit weight 0.3 allot 1514 avpkt 1000 bounded prio 3

# Leaf qdiscs
tc qdisc add dev eth0 parent 1:1 handle 10:0 sfq perturb 10
tc qdisc add dev eth0 parent 1:2 handle 20:0 sfq perturb 10
tc qdisc add dev eth0 parent 1:3 handle 30:0 sfq perturb 10

# Filters
tc filter add dev eth0 parent 1:0 proto ip prio 0 u32 \
  match ip tos 0x10 0xff flowid 1:1
tc filter add dev eth0 parent 1:0 proto ip prio 1 u32 \
  match ip tos 0x04 0xff flowid 1:2
tc filter add dev eth0 parent 1:0 proto ip prio 2 u32 \
  match ip tos 0x08 0xff flowid 1:3
-------------------------------------------------------------------

I send some traffic at different rate : 3Mb/s, 3.5Mb/s, 4Mb/s, 4.5Mb/s,
5Mb/s, 6Mb/s

1st in only one class at a time
   => the result is always 2.35Mb/s

then in the 3 classes at the same time with the same rates.
   => the result rate is close from wanted rate

Can someone explain to me why we I send data in only one class the rate is
so low ?

Thank you
Emmanuel

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

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

end of thread, other threads:[~2003-09-05 14:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-04 15:39 [LARTC] CBQ Rate Emmanuel SIMON
2003-09-04 17:07 ` Emmanuel SIMON
2003-09-04 17:49 ` Stef Coene
2003-09-05 14:31 ` Damjan

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.