From: Vitor Carlos Flausino Date: Tue, 20 Mar 2001 13:41:18 +0000 Subject: [LARTC] Testing diferent bandwidths. MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------6CF1C08C2752E722A7C1F907" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. --------------6CF1C08C2752E722A7C1F907 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! I'm using class based queueing for testing how same applications work with low bandwidth. So what I did was give this commands: tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000 tc qdisc add dev eth1 root handle 20: cbq bandwidth 100Mbit avpkt 1000 tc class add dev eth0 parent 10:0 classid 10:1 cbq bandwidth 100Mbit rate 100Mbit allot 1514 weight 1Mbit prio 5 maxburst 20 avpkt 1000 tc class add dev eth1 parent 20:0 classid 20:1 cbq bandwidth 100Mbit rate 100Mbit allot 1514 weight 1Mbit prio 5 maxburst 20 avpkt 1000 tc class add dev eth0 parent 10:1 classid 10:100 cbq bandwidth 100Mbit rate 2Kbit allot 1514 weight 2Kbit prio 5 maxburst 20 avpkt 1000 isolated tc class add dev eth0 parent 10:1 classid 10:200 cbq bandwidth 100Mbit rate 102398Kbit allot 1514 weight 1022Kbit prio 5 maxburst 20 avpkt 1000 isolated tc class add dev eth1 parent 20:1 classid 20:100 cbq bandwidth 100Mbit rate 2Kbit allot 1514 weight 2Kbit prio 5 maxburst 20 avpkt 1000 isolated tc class add dev eth1 parent 20:1 classid 20:200 cbq bandwidth 100Mbit rate 102398Kbit allot 1514 weight 1022Kbit prio 5 maxburst 20 avpkt 1000 isolated tc qdisc add dev eth0 parent 10:1 sfq quantum 1514b tc qdisc add dev eth1 parent 20:1 sfq quantum 1514b tc filter add dev eth0 parent 10:0 protocol ip prio 10 u32 match ip src 0.0.0.0/0 flowid 10:100 tc filter add dev eth1 parent 20:0 protocol ip prio 10 u32 match ip src 0.0.0.0/0 flowid 20:100 (has you can see I'm testing with bandwidth = 2K) Now, WHY DOES NOT WORK? It seams that it using all 100Mbits ____________ ____________ ( ) ( ) (57.227.234.0/23)--------|Linux|---------(192.168.76.0/24) (____________) eth0 eth1 (____________) 57.227.235.12 192.168.76.1 thanks -vcf --------------6CF1C08C2752E722A7C1F907 Content-Type: text/x-vcard; charset=us-ascii; name="vflausino.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Vitor Carlos Flausino Content-Disposition: attachment; filename="vflausino.vcf" begin:vcard n:Flausino;Vitor tel;cell:+351.96 691 6079 tel;fax:+351.21 842 5534 tel;work:+351.21 842 5688 x-mozilla-html:FALSE org:PGA-Portugalia Airlines;IT version:2.1 email;internet:vflausino@pga.pt title:Eng adr;quoted-printable:;;Aeroporto de Lisboa=0D=0ARua C=3BEdf 70;Lisbon;;1749-078 Lisbon;Portugal x-mozilla-cpt:;0 fn:Vitor Carlos Flausino end:vcard --------------6CF1C08C2752E722A7C1F907-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/