All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] qdisc unbounding question
@ 2001-06-01 14:25 Andy Pyles
  2001-06-01 16:30 ` Wingtung.Leung
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Andy Pyles @ 2001-06-01 14:25 UTC (permalink / raw)
  To: lartc

Hello,

I'm trying to setup a linux box as follows:



  <---- 170kbs                        170kbs ------------>
	  if Dest. = 10.10.20.97        if Dest. = 10.10.30.3
	  (classid=170)                 (classid=171)

			|------|     |------
			| eth0 |     |eth1  |
			|      |-----|      |
			--------     -------
  <------30kbs                       30kbs --------------->
	  if Dest. = 10.10.20.95        if Dest. = 10.10.30.2 
        (classid=30)			  (classid=31)

Brief synopsis:

basically what I have outlined above works fine. The problem that I'm
having is
when I'm NOT experiencing any traffic on #170, then #30 is NOT able to
inherit any excess bandwidth.
Any ideas where to start?

Also, what I'm trying to do here, is intentionally throttle down the the
total bandwidth to 200kbs. 

Anyone have any pointers here?



Here is what I have below:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 200Kbit avpkt 1000
cell 8
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 200Kbit rate
200Kbit weight 20Kbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000

tc qdisc add dev eth1 root handle 1:0 cbq bandwidth 200Kbit avpkt 1000
cell 8
tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 200Kbit rate
200Kbit weight 20Kbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000

tc class add dev eth0 parent 1:1 classid 1:170 cbq bandwidth 200Kbit
rate 170Kbit weight 17Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt
1000
tc qdisc add dev eth0 parent 1:170 tbf rate 170Kbit buffer 10Kb/8 limit
15Kb mtu 1500
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
10.10.20.97 flowid 1:170

tc class add dev eth1 parent 1:1 classid 1:171 cbq bandwidth 200Kbit
rate 170Kbit weight 17Kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt
1000
tc qdisc add dev eth1 parent 1:171 tbf rate 170Kbit buffer 10Kb/8 limit
15Kb mtu 1500
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst
10.10.30.3 flowid 1:171

tc class add dev eth0 parent 1:170 classid 1:30 cbq bandwidth 200Kbit
rate 30Kbit weight 3Kbit prio 6 allot 1514 cell 8 maxburst 20 avpkt 1000
tc qdisc add dev eth0 parent 1:30 tbf rate 30Kbit buffer 10Kb/8 limit
15Kb mtu 1500
tc filter add dev eth0 parent 1:0 protocol ip prio 100 u32 match ip dst
10.10.20.95 flowid 1:30

tc class add dev eth1 parent 1:171 classid 1:31 cbq bandwidth 200Kbit
rate 30Kbit weight 3Kbit prio 6 allot 1514 cell 8 maxburst 20 avpkt 1000
tc qdisc add dev eth1 parent 1:31 tbf rate 30Kbit buffer 10Kb/8 limit
15Kb mtu 1500
tc filter add dev eth1 parent 1:0 protocol ip prio 100 u32 match ip dst
10.10.30.2 flowid 1:31



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

end of thread, other threads:[~2001-06-07  7:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-01 14:25 [LARTC] qdisc unbounding question Andy Pyles
2001-06-01 16:30 ` Wingtung.Leung
2001-06-01 16:55 ` Rodrigo Goya
2001-06-01 19:14 ` Andy Pyles
2001-06-07  7:11 ` Stef Coene
2001-06-07  7:11 ` 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.