All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] how to add burstable rate?
@ 2004-12-22 16:07 ro0ot
  2004-12-23  7:44 ` Amit Vyas
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ro0ot @ 2004-12-22 16:07 UTC (permalink / raw)
  To: lartc

Hi,

I managed to fix 128kbit for an IP address of 192.168.200.3 as below: -

tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot 1500 
prio 5 bounded isolated
tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst 
192.168.200.3 flowid 1:1
tc qdisc add dev eth3 parent 1:1 sfq perturb 10

How can I make it burstable to 256kbit?  What command I need to add in?

Regards,
ro0ot



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

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

* Re: [LARTC] how to add burstable rate?
  2004-12-22 16:07 [LARTC] how to add burstable rate? ro0ot
@ 2004-12-23  7:44 ` Amit Vyas
  2004-12-23 11:50 ` Amit Vyas
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Amit Vyas @ 2004-12-23  7:44 UTC (permalink / raw)
  To: lartc

I applied this to following Network

+--------------+     eth1         +---------+   eth0           +--------+
| 192.168.3.31 |------------------|         |------------------|internet| 
+--------------+ 192.168.3.32     +---------+   192.168.2.198  +---|----+
						                   V

                                                                         
                                        gateway

and modified the rate and IP to look it   this way

tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth1 parent 1: classid 1:1 cbq rate 1kbit  allot 1500 
prio 5 bounded isolated
tc filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip dst 
192.168.3.31 flowid 1:1
tc qdisc add dev eth1 parent 1:1 sfq perturb 10

This limit packets from 192.168.3.31 to 1kbit How can it modify it to 
not to limit it for local IP addresses.
Ie Only the traffic for internet is limited to 1kbps :wq

Amit







ro0ot wrote:

> Hi,
>
> I managed to fix 128kbit for an IP address of 192.168.200.3 as below: -
>
> tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit
> tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot 
> 1500 prio 5 bounded isolated
> tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst 
> 192.168.200.3 flowid 1:1
> tc qdisc add dev eth3 parent 1:1 sfq perturb 10
>
> How can I make it burstable to 256kbit?  What command I need to add in?
>
> Regards,
> ro0ot
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

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

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

* Re: [LARTC] how to add burstable rate?
  2004-12-22 16:07 [LARTC] how to add burstable rate? ro0ot
  2004-12-23  7:44 ` Amit Vyas
@ 2004-12-23 11:50 ` Amit Vyas
  2004-12-23 14:35 ` Amit Vyas
  2004-12-23 14:36 ` Amit Vyas
  3 siblings, 0 replies; 5+ messages in thread
From: Amit Vyas @ 2004-12-23 11:50 UTC (permalink / raw)
  To: lartc

I applied this to following Network
+------------------+     eth1            +----------------+  eth0        
                      +-----------+
| 192.168.3.31   |------------------- | Linux Box    
|------------------------------- | Internet  |
+------------------+  192.168.3.32 +----------------+   192.168.2.198 
            +-----------+
      
                                                                       
                                       gateway

and modified the rate and IP and dev  to look it   this way

tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth1 parent 1: classid 1:1 cbq rate 1kbit  allot 1500 
prio 5 bounded isolated
tc filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip dst 
192.168.3.31 flowid 1:1
tc qdisc add dev eth1 parent 1:1 sfq perturb 10

This limit packets from 192.168.3.31 to 1kbit How can it modify it to 
not to limit it for local IP addresses.
Ie Only the traffic for internet is limited to 1kbps

Amit







ro0ot wrote:

> Hi,
>
> I managed to fix 128kbit for an IP address of 192.168.200.3 as below: -
>
> tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit
> tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot 
> 1500 prio 5 bounded isolated
> tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst 
> 192.168.200.3 flowid 1:1
> tc qdisc add dev eth3 parent 1:1 sfq perturb 10
>
> How can I make it burstable to 256kbit?  What command I need to add in?
>
> Regards,
> ro0ot
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

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

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

* Re: [LARTC] how to add burstable rate?
  2004-12-22 16:07 [LARTC] how to add burstable rate? ro0ot
  2004-12-23  7:44 ` Amit Vyas
  2004-12-23 11:50 ` Amit Vyas
@ 2004-12-23 14:35 ` Amit Vyas
  2004-12-23 14:36 ` Amit Vyas
  3 siblings, 0 replies; 5+ messages in thread
From: Amit Vyas @ 2004-12-23 14:35 UTC (permalink / raw)
  To: lartc

I applied this to following Network
+------------------+     eth1            +----------------+  eth0        
                     +-----------+
| 192.168.3.31   |------------------- | Linux Box    
|------------------------------- | Internet  |
+------------------+  192.168.3.32 +----------------+   192.168.2.198 
           +-----------+
     
                                                                      
                                      gateway

and modified the rate and IP and dev  to look it   this way

tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth1 parent 1: classid 1:1 cbq rate 1kbit  allot 1500 
prio 5 bounded isolated
tc filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip dst 
192.168.3.31 flowid 1:1
tc qdisc add dev eth1 parent 1:1 sfq perturb 10

This limit packets from 192.168.3.31 to 1kbit How can it modify it to 
not to limit it for local IP addresses.
Ie Only the traffic for internet is limited to 1kbps

Amit
I am sending it third time but not echoed on list. Are my mails reaching ?






ro0ot wrote:

> Hi,
>
> I managed to fix 128kbit for an IP address of 192.168.200.3 as below: -
>
> tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit
> tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot 
> 1500 prio 5 bounded isolated
> tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst 
> 192.168.200.3 flowid 1:1
> tc qdisc add dev eth3 parent 1:1 sfq perturb 10
>
> How can I make it burstable to 256kbit?  What command I need to add in?
>
> Regards,
> ro0ot
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

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

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

* Re: [LARTC] how to add burstable rate?
  2004-12-22 16:07 [LARTC] how to add burstable rate? ro0ot
                   ` (2 preceding siblings ...)
  2004-12-23 14:35 ` Amit Vyas
@ 2004-12-23 14:36 ` Amit Vyas
  3 siblings, 0 replies; 5+ messages in thread
From: Amit Vyas @ 2004-12-23 14:36 UTC (permalink / raw)
  To: lartc

I applied this to following Network
+------------------+     eth1            +----------------+  eth0
                     +-----------+
| 192.168.3.31   |------------------- | Linux Box
|------------------------------- | Internet  |
+------------------+  192.168.3.32 +----------------+   192.168.2.198
           +-----------+


                                      gateway

and modified the rate and IP and dev  to look it   this way

tc qdisc add dev eth1 root handle 1: cbq avpkt 1000 bandwidth 100mbit
tc class add dev eth1 parent 1: classid 1:1 cbq rate 1kbit  allot 1500
prio 5 bounded isolated
tc filter add dev eth1 parent 1: protocol ip prio 16 u32 match ip dst
192.168.3.31 flowid 1:1
tc qdisc add dev eth1 parent 1:1 sfq perturb 10

This limit packets from 192.168.3.31 to 1kbit How can it modify it to
not to limit it for local IP addresses.
Ie Only the traffic for internet is limited to 1kbps

Amit
I am sending it third time but not echoed on list. Are my mails reaching ?






ro0ot wrote:

> Hi,
>
> I managed to fix 128kbit for an IP address of 192.168.200.3 as below: -
>
> tc qdisc add dev eth3 root handle 1: cbq avpkt 1000 bandwidth 100mbit
> tc class add dev eth3 parent 1: classid 1:1 cbq rate 128kbit allot 
> 1500 prio 5 bounded isolated
> tc filter add dev eth3 parent 1: protocol ip prio 16 u32 match ip dst 
> 192.168.200.3 flowid 1:1
> tc qdisc add dev eth3 parent 1:1 sfq perturb 10
>
> How can I make it burstable to 256kbit?  What command I need to add in?
>
> Regards,
> ro0ot
>
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>


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

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

end of thread, other threads:[~2004-12-23 14:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-22 16:07 [LARTC] how to add burstable rate? ro0ot
2004-12-23  7:44 ` Amit Vyas
2004-12-23 11:50 ` Amit Vyas
2004-12-23 14:35 ` Amit Vyas
2004-12-23 14:36 ` Amit Vyas

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.