Skip to contentSkip to conversation

how to add burstable rate?

LARTC Applied ro0ot 2 participants 5 messages Dec 22, 2004 – Dec 23, 2004

lore
Share & tools
lore

ro0ot

author
#0 lore raw

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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Applied
#1 lore raw

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

Quoted 13 lines · 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?

Quoted 9 lines

Regards,
ro0ot

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Applied
#2 lore raw
In reply to ro0ot

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

Quoted 13 lines · 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?

Quoted 9 lines

Regards,
ro0ot

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Applied
#3 lore raw
In reply to ro0ot

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 ?

Quoted 13 lines · 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?

Quoted 9 lines

Regards,
ro0ot

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Applied
#4 lore raw
In reply to ro0ot

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 ?

Quoted 13 lines · 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?

Quoted 9 lines

Regards,
ro0ot

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/