CBQ has a bunch of parameters. If you are new to tc (by the way, it's traffic control not total control), use cbq.init (from http://www.freashmeat.net).
Or go to http://lartc.org. This is the must-to-read page regards traffic control. wain wen wrote: > >Hi: > >Below is my network topology ( n = 60 ): > > >internet ----------- linux box --------- PC1 > ADSL(1024k) | > |-------- PC2 > | > |-------- PCn > >If the linux box only servers as gateway, everything >is ok.However, boss wants to control the flow of every >PC, my configuration is : > ># tc qdisc list dev eth1 // eth1 is the internal >interface of linux box which ip is 192.168.0.1 > > qdisc sfq 8012: quantum 1514b perturb 15sec > qdisc sfq 8011: quantum 1514b perturb 15sec > qdisc sfq 8010: quantum 1514b perturb 15sec > qdisc sfq 800f: quantum 1514b perturb 15sec > qdisc sfq 800e: quantum 1514b perturb 15sec > qdisc sfq 800d: quantum 1514b perturb 15sec > qdisc sfq 800c: quantum 1514b perturb 15sec > qdisc sfq 800b: quantum 1514b perturb 15sec > qdisc sfq 800a: quantum 1514b perturb 15sec > qdisc cbq 10: rate 100Mbit (bounded,isolated) prio >no-transmit > > #tc class list dev eth1 > > class cbq 10:11 parent 10:1 leaf 8012: rate 10Mbit >(bounded,isolated) prio no-transmit > class cbq 10: root rate 100Mbit (bounded,isolated) >prio no-transmit > class cbq 10:256 parent 10:1 leaf 800c: rate 256Kbit >(bounded,isolated) prio no-transmit > class cbq 10:1 parent 10: rate 100Mbit prio 5 > class cbq 10:8192 parent 10:1 leaf 8011: rate 8Mbit >(bounded,isolated) prio no-transmit > class cbq 10:64 parent 10:1 leaf 800a: rate 64Kbit >(bounded,isolated) prio no-transmit > class cbq 10:512 parent 10:1 leaf 800d: rate 512Kbit >(bounded,isolated) prio no-transmit > class cbq 10:1024 parent 10:1 leaf 800e: rate 1Mbit >(bounded,isolated) prio no-transmit > class cbq 10:4096 parent 10:1 leaf 8010: rate 4Mbit >(bounded,isolated) prio no-transmit > class cbq 10:128 parent 10:1 leaf 800b: rate 128Kbit >(bounded,isolated) prio no-transmit > class cbq 10:2048 parent 10:1 leaf 800f: rate 2Mbit >(bounded,isolated) prio no-transmit > ># tc filter list dev eth1 > > filter parent 10: protocol ip pref 100 u32 > filter parent 10: protocol ip pref 100 u32 fh 800: ht >divisor 1 > filter parent 10: protocol ip pref 100 u32 fh >800::800 order 2048 key ht 800 bkt 0 flowid 10:128 >match c0a8003f/ffffffff at 16 > filter parent 10: protocol ip pref 100 u32 fh >800::801 order 2049 key ht 800 bkt 0 flowid 10:128 >match c0a8003e/ffffffff at 16 > filter parent 10: protocol ip pref 100 u32 fh >800::802 order 2050 key ht 800 bkt 0 flowid 10:128 >match c0a8000f/ffffffff at 16 > filter parent 10: protocol ip pref 100 u32 fh >800::803 order 2051 key ht 800 bkt 0 flowid 10:128 >match c0a80011/ffffffff at 16 > .... > >In my opinion, every IP should have only 128kbits.It >is true when I download files with ftp.But the http >response is very very slow,even if >there is only one person online. When PC1 download >files , other PC ping the gateway should take more >than 300 ms .Something must be wrong with my >configuration. >Is the performance problem ? However, the idle is >about 90%.By the way I boundled the IP and the MAC >address with arp. > >Thx. > > > >_________________________________________________________ >Do You Yahoo!? >2002�����籭Ⱥ����ս �Ż��й��۽��պ� >http://cn.fifaworldcup.yahoo.com/ >
