All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] why the bandwidth is not follow my config??????
@ 2001-05-04  3:27 Juergen
  2001-05-04  6:31 ` Stef Coene
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Juergen @ 2001-05-04  3:27 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 1091 bytes --]

I try to use iproute to control my bandwidth less than 3MB, but something happen.
list below is my config

--------------------------------------------------------------------------------

tc qdisc add dev eth1 root handle 20: cbq bandwidth 10Mbit avpkt 1000

tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit rate \
1Mbit allot 1514 weight 100Kbit prio 8 maxburst 20 avpkt 1000 bounded

tc class add dev eth1 parent 20:1 classid 20:2 cbq bandwidth 10Mbit rate \
3Mbit allot 1514 weight 200Kbit prio 5 maxburst 20 avpkt 1000 bounded

tc filter add dev eth1 parent 20:0 protocol ip prio 100 u32 match ip src \
192.168.0.1 flowid 20:1

tc filter add dev eth1 parent 20:0 protocol ip prio 25 u32 match ip src \
192.168.0.2 flowid 20:2           

--------------------------------------------------------------------------------

I use download file to test this function.
But the really situation about the bandwidth is ...
1MB(20:1) is 1.5Mbit
3MB(20:2)is 4.6Mbit
Have anyone met this kind of problem before?????
And how to solve this problem?????

[-- Attachment #2: Type: text/html, Size: 1769 bytes --]

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

* Re: [LARTC] why the bandwidth is not follow my config??????
  2001-05-04  3:27 [LARTC] why the bandwidth is not follow my config?????? Juergen
@ 2001-05-04  6:31 ` Stef Coene
  2001-05-04 17:43 ` Guy Van Den Bergh
  2001-05-07  5:52 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2001-05-04  6:31 UTC (permalink / raw)
  To: lartc

I just did the tests and these are my results : (I use ttcp to test)
for class 20:1 = 71.90 KB/sec (575.2Kbit/sec)
for class 20:2 = 134.05 KB/sec (1072.4Kbit/s)

The numbers are not correct, but I think it's just CBQ that's not very
accurate when you use the bounded paramter.  I got the same results when
I use everywhere prio8 and put class 20:2 on qdisc 20:0.  So it's a CBQ
accuracy problem.


-- 

Staf

More QOS info : http://users.belgacom.net/staf/


> Juergen wrote:
> 
> I try to use iproute to control my bandwidth less than 3MB, but
> something happen.
> list below is my config
> ----------------------------------------------------------------------
> tc qdisc add dev eth1 root handle 20: cbq bandwidth 10Mbit avpkt 1000
> 
> tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 10Mbit
> rate \
> 1Mbit allot 1514 weight 100Kbit prio 8 maxburst 20 avpkt 1000 bounded
> 
> tc class add dev eth1 parent 20:1 classid 20:2 cbq bandwidth 10Mbit
> rate \
> 3Mbit allot 1514 weight 200Kbit prio 5 maxburst 20 avpkt 1000 bounded
> 
> tc filter add dev eth1 parent 20:0 protocol ip prio 100 u32 match ip
> src \
> 192.168.0.1 flowid 20:1
> 
> tc filter add dev eth1 parent 20:0 protocol ip prio 25 u32 match ip
> src \
> 192.168.0.2 flowid 20:2
> ----------------------------------------------------------------------
> I use download file to test this function.
> But the really situation about the bandwidth is ...
> 1MB(20:1) is 1.5Mbit
> 3MB(20:2)is 4.6Mbit
> Have anyone met this kind of problem before?????
> And how to solve this problem?????

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

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

* Re: [LARTC] why the bandwidth is not follow my config??????
  2001-05-04  3:27 [LARTC] why the bandwidth is not follow my config?????? Juergen
  2001-05-04  6:31 ` Stef Coene
@ 2001-05-04 17:43 ` Guy Van Den Bergh
  2001-05-07  5:52 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Guy Van Den Bergh @ 2001-05-04 17:43 UTC (permalink / raw)
  To: lartc

Do you think this "anomaly" might be a consequence not choosing
the average size correctly? Have you done some tests with a higher 
avgpkt value?

I suppose CBQ does packet per packet handling, assuming the average 
packet size is what you specified on the command line. But what if the
real average packet size is bigger?

Guy

Stef Coene wrote:

> I just did the tests and these are my results : (I use ttcp to test)
> for class 20:1 = 71.90 KB/sec (575.2Kbit/sec)
> for class 20:2 = 134.05 KB/sec (1072.4Kbit/s)
> 
> The numbers are not correct, but I think it's just CBQ that's not very
> accurate when you use the bounded paramter.  I got the same results when
> I use everywhere prio8 and put class 20:2 on qdisc 20:0.  So it's a CBQ
> accuracy problem.



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

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

* Re: [LARTC] why the bandwidth is not follow my config??????
  2001-05-04  3:27 [LARTC] why the bandwidth is not follow my config?????? Juergen
  2001-05-04  6:31 ` Stef Coene
  2001-05-04 17:43 ` Guy Van Den Bergh
@ 2001-05-07  5:52 ` Stef Coene
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2001-05-07  5:52 UTC (permalink / raw)
  To: lartc

Guy Van Den Bergh wrote:
> 
> Do you think this "anomaly" might be a consequence not choosing
> the average size correctly? Have you done some tests with a higher
> avgpkt value?
Could be.  The problem is there is allmost no documentation on how to
choose these numbers and what they change.

That's why I'm doing a lot of tests.  It's possible that some of the
strange results I got could be explained by a bad choice of parameters,
but I have no other choice than doing another bunge of tests and to
change the average size.  That's how I finally figured out what you can
do with the weight parameter and how you have to choose the different
rates for the classes.  Now I'm trying to figure out how youc an use the
isolated keyword.  The results will be published on my website.


-- 

Staf

More QOS info : http://users.belgacom.net/staf/

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

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

end of thread, other threads:[~2001-05-07  5:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-04  3:27 [LARTC] why the bandwidth is not follow my config?????? Juergen
2001-05-04  6:31 ` Stef Coene
2001-05-04 17:43 ` Guy Van Den Bergh
2001-05-07  5:52 ` 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.