All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] cbq question
@ 2001-02-06 22:22 Forstner
  2001-05-10 10:50 ` [LARTC] CBQ question Gery Kahn
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Forstner @ 2001-02-06 22:22 UTC (permalink / raw)
  To: lartc

<PRE>Hi all,

I've got following network running:

linux router with 2 NICs and one ISDN card
- the ISDN card is connected to the internet (dialup dynamic ip)
- first NIC subnet 192.168.0.x
- second NIC subnet 192.168.1.x

All computers on both subnets get access to the internet through the linux 
router with NAT
I would like to split the bandwidth for the 2 subnets (4 KB/s for each subnet)
Question: is it possible with tc, because of the limitation for outgoing 
traffic only ?
If possible, can someone please help me ?
Example config ? Tool for creating scripts ? Other ?
THX for any help!

---
Best regards,

Forstner Michael


</PRE>

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

* [LARTC] CBQ question
  2001-02-06 22:22 [LARTC] cbq question Forstner
@ 2001-05-10 10:50 ` Gery Kahn
  2001-05-11  0:19 ` Juergen
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Gery Kahn @ 2001-05-10 10:50 UTC (permalink / raw)
  To: lartc

Please.
I create simple config.

    CBQ
       |
   class
 |	|
class1   class2

when rate of class1 is high for the rate of class2,
finaly rate of class2 exceed the given.
My experiments gives for example if
class1 rate = 90Mbit and class2 rate = 10Mbit so
actual rate of class2 can be from 11.4 to 12.5 ( and far more ).

Thank you.

_______________________________________________
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] 11+ messages in thread

* Re: [LARTC] CBQ question
  2001-02-06 22:22 [LARTC] cbq question Forstner
  2001-05-10 10:50 ` [LARTC] CBQ question Gery Kahn
@ 2001-05-11  0:19 ` Juergen
  2001-05-11  6:20 ` Stef Coene
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Juergen @ 2001-05-11  0:19 UTC (permalink / raw)
  To: lartc



> Please.
> I create simple config.
>
>     CBQ
>        |
>    class
>  | |
> class1   class2
>
> when rate of class1 is high for the rate of class2,
> finaly rate of class2 exceed the given.
> My experiments gives for example if
> class1 rate = 90Mbit and class2 rate = 10Mbit so
> actual rate of class2 can be from 11.4 to 12.5 ( and far more ).
>
> Thank you.
>
 I test for CBQ and get the same result.
This question I asked before, it's maybe weight, avpkt, cbq problem...
I change the avpkt to 500Kbit(I don't know why???) and get better accuracy,
maybe you can try this.
Another way is change your queueing disciplines(cbq) to tbf, it's really
more stable than cbq, it won't get jitter when your avpkt is change.



_______________________________________________
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] 11+ messages in thread

* Re: [LARTC] CBQ question
  2001-02-06 22:22 [LARTC] cbq question Forstner
                   ` (2 preceding siblings ...)
  2001-05-11  6:20 ` Stef Coene
@ 2001-05-11  6:20 ` Stef Coene
  2001-05-13 15:54 ` Gery Kahn
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Stef Coene @ 2001-05-11  6:20 UTC (permalink / raw)
  To: lartc

Gery Kahn wrote:
> 
> Please.
> I create simple config.
> 
>     CBQ
>        |
>    class
>  |      |
> class1   class2
> 
> when rate of class1 is high for the rate of class2,
> finaly rate of class2 exceed the given.
> My experiments gives for example if
> class1 rate = 90Mbit and class2 rate = 10Mbit so
> actual rate of class2 can be from 11.4 to 12.5 ( and far more ).

I tested it also and when you give 1 class more than 75% of bandwidth,
it gets less than that.  I have tests-results on  my website to prove
it.

A better setup is this :

      CBQ
       |
     class
       |
     qdisc
   |        |
 class1   class2
 

-- 

Stef

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] 11+ messages in thread

* Re: [LARTC] CBQ question
  2001-02-06 22:22 [LARTC] cbq question Forstner
  2001-05-10 10:50 ` [LARTC] CBQ question Gery Kahn
  2001-05-11  0:19 ` Juergen
@ 2001-05-11  6:20 ` Stef Coene
  2001-05-11  6:20 ` Stef Coene
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Stef Coene @ 2001-05-11  6:20 UTC (permalink / raw)
  To: lartc

Gery Kahn wrote:
> 
> Please.
> I create simple config.
> 
>     CBQ
>        |
>    class
>  |      |
> class1   class2
> 
> when rate of class1 is high for the rate of class2,
> finaly rate of class2 exceed the given.
> My experiments gives for example if
> class1 rate = 90Mbit and class2 rate = 10Mbit so
> actual rate of class2 can be from 11.4 to 12.5 ( and far more ).

I tested it also and when you give 1 class more than 75% of bandwidth,
it gets less than that.  I have tests-results on  my website to prove
it.

A better setup is this :

      CBQ
       |
     class
       |
     qdisc
   |        |
 class1   class2
 

-- 

Stef

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] 11+ messages in thread

* RE: [LARTC] CBQ question
  2001-02-06 22:22 [LARTC] cbq question Forstner
                   ` (3 preceding siblings ...)
  2001-05-11  6:20 ` Stef Coene
@ 2001-05-13 15:54 ` Gery Kahn
  2001-05-14  2:02 ` Juergen
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Gery Kahn @ 2001-05-13 15:54 UTC (permalink / raw)
  To: lartc

It seems that configuration like
      qdisc(CBQ)
       |
     class
   |		|
 class1   class2
 bounded  bounded

doesn't work perfect.The more stable ( accurate ) configuration would be
    qdisc(cbq) 1:0
	|
    class 1:1
	|
    qdisc(cbq) 2:0
    |          |
  class 2:1  class 2:2
    |
  qdisc(tbf) 3:0
Now when class 2:1 have rate 10Mbit and class 2:2 = 70Mbit
i can have 9.05 and 72.774

> Please.
> I create simple config.
>
>     CBQ
>        |
>    class
>  | |
> class1   class2
>
> when rate of class1 is high for the rate of class2,
> finaly rate of class2 exceed the given.
> My experiments gives for example if
> class1 rate = 90Mbit and class2 rate = 10Mbit so
> actual rate of class2 can be from 11.4 to 12.5 ( and far more ).
>
> Thank you.
>
 I test for CBQ and get the same result.
This question I asked before, it's maybe weight, avpkt, cbq problem...
I change the avpkt to 500Kbit(I don't know why???) and get better accuracy,
maybe you can try this.
Another way is change your queueing disciplines(cbq) to tbf, it's really
more stable than cbq, it won't get jitter when your avpkt is change.


_______________________________________________
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] 11+ messages in thread

* Re: [LARTC] CBQ question
  2001-02-06 22:22 [LARTC] cbq question Forstner
                   ` (4 preceding siblings ...)
  2001-05-13 15:54 ` Gery Kahn
@ 2001-05-14  2:02 ` Juergen
  2001-05-14  5:45 ` Gery Kahn
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Juergen @ 2001-05-14  2:02 UTC (permalink / raw)
  To: lartc



> It seems that configuration like
>       qdisc(CBQ)
>        |
>      class
>    | |
>  class1   class2
>  bounded  bounded
>
> doesn't work perfect.The more stable ( accurate ) configuration would be
>     qdisc(cbq) 1:0
> |
>     class 1:1
> |
>     qdisc(cbq) 2:0
>     |          |
>   class 2:1  class 2:2
>     |
>   qdisc(tbf) 3:0
> Now when class 2:1 have rate 10Mbit and class 2:2 = 70Mbit
> i can have 9.05 and 72.774
>

I want to do it and make a config

----------------------------------------------------------------------------
--------------------
BANDWIDTH="bandwidth 10Mbit"
RATE="rate 2Mbit"
DEV="dev eth1"
AVP="avpkt 1000"

tc qdisc add $DEV root handle 10: cbq $BANDWIDTH $AVP

tc class add $DEV parent 10:0 classid 10:1 cbq $BANDWIDTH $RATE \
allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
bounded

tc qdisc add $DEV parent 10:1 handle 20: cbq bandwidth 2Mbit $AVP

tc class add $DEV parent 20:0 classid 20:1 cbq bandwidth 2Mbit $RATE \
allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
bounded


tc filter add $DEV parent 20:0 protocol ip prio 100 u32 match ip src \
$IP flowid 20:1
----------------------------------------------------------------------------
--------------------
but it's not active....the bandwidth is still 10Mbit....
Is my config's error?????


_______________________________________________
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] 11+ messages in thread

* RE: [LARTC] CBQ question
  2001-02-06 22:22 [LARTC] cbq question Forstner
                   ` (5 preceding siblings ...)
  2001-05-14  2:02 ` Juergen
@ 2001-05-14  5:45 ` Gery Kahn
  2001-05-14  5:57 ` Juergen
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Gery Kahn @ 2001-05-14  5:45 UTC (permalink / raw)
  To: lartc

Just add one more qdisc

tc qdisc add dev eth1 parent 20:1 tbf rate 2Mbit buffer 30Kb/8 limit 15Kb


-----Original Message-----
From: Juergen [mailto:lchou@staff.pccu.edu.tw]
Sent: Monday, May 14, 2001 5:02 AM
To: Gery Kahn
Cc: lartc@mailman.ds9a.nl
Subject: Re: [LARTC] CBQ question




> It seems that configuration like
>       qdisc(CBQ)
>        |
>      class
>    | |
>  class1   class2
>  bounded  bounded
>
> doesn't work perfect.The more stable ( accurate ) configuration would be
>     qdisc(cbq) 1:0
> |
>     class 1:1
> |
>     qdisc(cbq) 2:0
>     |          |
>   class 2:1  class 2:2
>     |
>   qdisc(tbf) 3:0
> Now when class 2:1 have rate 10Mbit and class 2:2 = 70Mbit
> i can have 9.05 and 72.774
>

I want to do it and make a config

----------------------------------------------------------------------------
--------------------
BANDWIDTH="bandwidth 10Mbit"
RATE="rate 2Mbit"
DEV="dev eth1"
AVP="avpkt 1000"

tc qdisc add $DEV root handle 10: cbq $BANDWIDTH $AVP

tc class add $DEV parent 10:0 classid 10:1 cbq $BANDWIDTH $RATE \
allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
bounded

tc qdisc add $DEV parent 10:1 handle 20: cbq bandwidth 2Mbit $AVP

tc class add $DEV parent 20:0 classid 20:1 cbq bandwidth 2Mbit $RATE \
allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
bounded


tc filter add $DEV parent 20:0 protocol ip prio 100 u32 match ip src \
$IP flowid 20:1
----------------------------------------------------------------------------
--------------------
but it's not active....the bandwidth is still 10Mbit....
Is my config's error?????

_______________________________________________
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] 11+ messages in thread

* Re: [LARTC] CBQ question
  2001-02-06 22:22 [LARTC] cbq question Forstner
                   ` (6 preceding siblings ...)
  2001-05-14  5:45 ` Gery Kahn
@ 2001-05-14  5:57 ` Juergen
  2001-05-14  7:33 ` Stef Coene
  2001-05-14  7:33 ` Stef Coene
  9 siblings, 0 replies; 11+ messages in thread
From: Juergen @ 2001-05-14  5:57 UTC (permalink / raw)
  To: lartc


> Just add one more qdisc
>
> tc qdisc add dev eth1 parent 20:1 tbf rate 2Mbit buffer 30Kb/8 limit 15Kb

But I just want to use cbq to bound my bandwidth.
In classid 20:1 should have been limit to 2Mbit (I guess...), but not
active.
Or I have to add a tbf in this config???????
If I have to use tbf, I can just use tbf to limit my bandwidth without cbq
and it's also work....right??????

> >     qdisc(cbq) 1:0
> > |
> >     class 1:1
> > |
> >     qdisc(cbq) 2:0
> >     |          |
> >   class 2:1  class 2:2
> >     |
> >   qdisc(tbf) 3:0
> > Now when class 2:1 have rate 10Mbit and class 2:2 = 70Mbit
> > i can have 9.05 and 72.774
> >
>
> I want to do it and make a config
>
> --------------------------------------------------------------------------
--
> --------------------
> BANDWIDTH="bandwidth 10Mbit"
> RATE="rate 2Mbit"
> DEV="dev eth1"
> AVP="avpkt 1000"
>
> tc qdisc add $DEV root handle 10: cbq $BANDWIDTH $AVP
>
> tc class add $DEV parent 10:0 classid 10:1 cbq $BANDWIDTH $RATE \
> allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
> bounded
>
> tc qdisc add $DEV parent 10:1 handle 20: cbq bandwidth 2Mbit $AVP
>
> tc class add $DEV parent 20:0 classid 20:1 cbq bandwidth 2Mbit $RATE \
> allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
> bounded
>
>
> tc filter add $DEV parent 20:0 protocol ip prio 100 u32 match ip src \
> $IP flowid 20:1
> --------------------------------------------------------------------------
--
> --------------------
> but it's not active....the bandwidth is still 10Mbit....
> Is my config's error?????
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO:
http://ds9a.nl/2.4Routing/
>


_______________________________________________
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] 11+ messages in thread

* Re: [LARTC] CBQ question
  2001-02-06 22:22 [LARTC] cbq question Forstner
                   ` (8 preceding siblings ...)
  2001-05-14  7:33 ` Stef Coene
@ 2001-05-14  7:33 ` Stef Coene
  9 siblings, 0 replies; 11+ messages in thread
From: Stef Coene @ 2001-05-14  7:33 UTC (permalink / raw)
  To: lartc


> ----------------------------------------------------------------------------
> --------------------
> BANDWIDTH="bandwidth 10Mbit"
> RATE="rate 2Mbit"
> DEV="dev eth1"
> AVP="avpkt 1000"
> 
> tc qdisc add $DEV root handle 10: cbq $BANDWIDTH $AVP
> 
> tc class add $DEV parent 10:0 classid 10:1 cbq $BANDWIDTH $RATE \
> allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
> bounded
> 
> tc qdisc add $DEV parent 10:1 handle 20: cbq bandwidth 2Mbit $AVP
> 
> tc class add $DEV parent 20:0 classid 20:1 cbq bandwidth 2Mbit $RATE \
> allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
> bounded
> 
> tc filter add $DEV parent 20:0 protocol ip prio 100 u32 match ip src \
> $IP flowid 20:1
> ----------------------------------------------------------------------------
> --------------------
> but it's not active....the bandwidth is still 10Mbit....
> Is my config's error?????
You miss a filter 

tc filter add $DEV parent 10:0 protocol ip prio 100 u32 match ip src $IP
flowid 10:1

Stef

_______________________________________________
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] 11+ messages in thread

* Re: [LARTC] CBQ question
  2001-02-06 22:22 [LARTC] cbq question Forstner
                   ` (7 preceding siblings ...)
  2001-05-14  5:57 ` Juergen
@ 2001-05-14  7:33 ` Stef Coene
  2001-05-14  7:33 ` Stef Coene
  9 siblings, 0 replies; 11+ messages in thread
From: Stef Coene @ 2001-05-14  7:33 UTC (permalink / raw)
  To: lartc


> ----------------------------------------------------------------------------
> --------------------
> BANDWIDTH="bandwidth 10Mbit"
> RATE="rate 2Mbit"
> DEV="dev eth1"
> AVP="avpkt 1000"
> 
> tc qdisc add $DEV root handle 10: cbq $BANDWIDTH $AVP
> 
> tc class add $DEV parent 10:0 classid 10:1 cbq $BANDWIDTH $RATE \
> allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
> bounded
> 
> tc qdisc add $DEV parent 10:1 handle 20: cbq bandwidth 2Mbit $AVP
> 
> tc class add $DEV parent 20:0 classid 20:1 cbq bandwidth 2Mbit $RATE \
> allot 1514 weight 200Kbit prio 5 maxburst 20 $AVP \
> bounded
> 
> tc filter add $DEV parent 20:0 protocol ip prio 100 u32 match ip src \
> $IP flowid 20:1
> ----------------------------------------------------------------------------
> --------------------
> but it's not active....the bandwidth is still 10Mbit....
> Is my config's error?????
You miss a filter 

tc filter add $DEV parent 10:0 protocol ip prio 100 u32 match ip src $IP
flowid 10:1

Stef


_______________________________________________
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] 11+ messages in thread

end of thread, other threads:[~2001-05-14  7:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-06 22:22 [LARTC] cbq question Forstner
2001-05-10 10:50 ` [LARTC] CBQ question Gery Kahn
2001-05-11  0:19 ` Juergen
2001-05-11  6:20 ` Stef Coene
2001-05-11  6:20 ` Stef Coene
2001-05-13 15:54 ` Gery Kahn
2001-05-14  2:02 ` Juergen
2001-05-14  5:45 ` Gery Kahn
2001-05-14  5:57 ` Juergen
2001-05-14  7:33 ` Stef Coene
2001-05-14  7:33 ` 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.