From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandra Alvarado Date: Tue, 24 Apr 2001 10:37:58 +0000 Subject: Re: [LARTC] CBQ does not works MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------0792FF48F932A6927200EB5B" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org This is a multi-part message in MIME format. --------------0792FF48F932A6927200EB5B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit If you see de graph attached, the limit must to be until 8Kbytes, but exceeds. Ramin Alidousti wrote: > > Are you sure it's not a scaling problem with MRTG? What do you expect > to see and what do you see? Is your MRTG publicly available? > > Having said that, some days ago Stef sent his results which (I believe) > is the same as what you're experiencing. See "5. Bugs" on: > > http://users.belgacom.net/staf/generalbody.html > > Ramin > > On Tue, Apr 24, 2001 at 10:06:07AM +0000, Alexandra Alvarado wrote: > > > Hi Serguei I. Ivantsov > > > > Can you please explain to me what is wrong in this configuration, > > because of when i analize traffic i can see that this exceeds 64 Kbps. > > To see the traffic bandwidth i use mrtg. > > > > Thanks > > > > Alexandra > > > > PD: I have a realtek [rtl8139] network cards, and i try configuring with > > 10Mbit and 100Mbit but without success. > > > > > I have a Linux firewall [Red Hat 7.0] and i need to implement cbq, until > > > now i make my file configuration that is: > > > > > > ==========Introduction============ > > > > > > [The Internet] --- [Linux router] --- [Intranet] > > > eth0 eth1 > > > > > > The Networks Cards are "rtl8139" > > > > > > And what i whant is that the input and output to the intranet can reach > > > a max bandwidth of 64 Kbit per second > > > > > > ============================= File cbq.init > > > ================================ > > > > > > #!/bin/sh > > > > > > # eth1 > > > > > > tc qdisc add dev eth1 root handle 10: cbq bandwidth 100Mbit avpkt 1000 > > > > > > tc class add dev eth1 parent 10:0 classid 10:1 cbq bandwidth 100Mbit > > > rate 100Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000 > > > > > > tc class add dev eth1 parent 10:1 classid 10:100 cbq bandwidth 100Mbit > > > rate 64Kbit allot 1514 weight 6Kbit prio 5 maxburst 20 avpkt 1000 > > > bounded > > > > > > tc qdisc add dev eth1 parent 10:100 sfq quantum 1514b perturb 15 > > > > > > tc filter add dev eth1 parent 10:0 protocol ip prio 25 u32 match ip dst > > > 10.10.10.0/24 flowid 10:100 > > > > > > # eth0 > > > > > > tc qdisc add dev eth0 root handle 20: cbq bandwidth 100Mbit avpkt 1000 > > > > > > tc class add dev eth0 parent 20:0 classid 20:1 cbq bandwidth 100Mbit > > > rate 100Mbit allot 1514 weight 1Mbit prio 8 maxburst 20 avpkt 1000 > > > > > > tc class add dev eth0 parent 20:1 classid 20:100 cbq bandwidth 100Mbit > > > rate 64Kbit allot 1514 weight 6Kbit prio 5 maxburst 20 avpkt 1000 > > > bounded > > > > > > tc qdisc add dev eth0 parent 20:100 sfq quantum 1514b perturb 15 > > > > > > tc filter add dev eth0 parent 20:0 protocol ip prio 25 u32 match ip src > > > 10.10.10.0/24 flowid 20:100 > > > > > > ===================== cbq.init stats ============================= > > > > > > ---[ eth0: configured classes ]--------------------------- > > > > > > class cbq 20: root rate 100Mbit (bounded,isolated) prio no-transmit > > > Sent 6723337 bytes 32154 pkts (dropped 0, overlimits 0) > > > borrowed 0 overactions 0 avgidle 61 undertime 0 > > > class cbq 20:100 parent 20:1 leaf 8004: rate 64Kbit (bounded) prio 5 > > > Sent 0 bytes 0 pkts (dropped 0, overlimits 0) > > > borrowed 0 overactions 0 avgidle 2.83654e+06 undertime 0 > > > class cbq 20:1 parent 20: rate 100Mbit prio no-transmit > > > Sent 0 bytes 0 pkts (dropped 0, overlimits 0) > > > borrowed 0 overactions 0 avgidle 62 undertime 0 > > > > > > ---[ eth0: queueing disciplines ]------------------------- > > > > > > qdisc sfq 8004: quantum 1514b perturb 15sec > > > Sent 0 bytes 0 pkts (dropped 0, overlimits 0) > > > > > > qdisc cbq 20: rate 100Mbit (bounded,isolated) prio no-transmit > > > Sent 6724367 bytes 32157 pkts (dropped 0, overlimits 0) > > > borrowed 0 overactions 0 avgidle 62 undertime 0 > > > > > > > > > ---[ eth1: configured classes ]--------------------------- > > > > > > class cbq 10: root rate 100Mbit (bounded,isolated) prio no-transmit > > > Sent 26432943 bytes 32209 pkts (dropped 0, overlimits 0) > > > borrowed 0 overactions 0 avgidle 62 undertime 0 > > > class cbq 10:100 parent 10:1 leaf 8003: rate 64Kbit (bounded) prio 5 > > > Sent 26410431 bytes 31673 pkts (dropped 455, overlimits 188780) > > > borrowed 0 overactions 20574 avgidle 375275 undertime 0 > > > class cbq 10:1 parent 10: rate 100Mbit prio no-transmit > > > Sent 26410431 bytes 31673 pkts (dropped 0, overlimits 0) > > > borrowed 0 overactions 0 avgidle 62 undertime 0 > > > > > > ---[ eth1: queueing disciplines ]------------------------- > > > > > > qdisc sfq 8003: quantum 1514b perturb 15sec > > > Sent 27456058 bytes 33494 pkts (dropped 455, overlimits 0) > > > > > > qdisc cbq 10: rate 100Mbit (bounded,isolated) prio no-transmit > > > Sent 27482602 bytes 34126 pkts (dropped 455, overlimits 184922) > > > borrowed 0 overactions 0 avgidle 62 undertime 0 > > > > > > ============= cbq.init list ==================== > > > > > > ---[ eth0: configured classes ]--------------------------- > > > > > > class cbq 20: root rate 100Mbit (bounded,isolated) prio no-transmit > > > class cbq 20:100 parent 20:1 leaf 8004: rate 64Kbit (bounded) prio 5 > > > class cbq 20:1 parent 20: rate 100Mbit prio no-transmit > > > > > > ---[ eth0: queueing disciplines ]------------------------- > > > > > > qdisc sfq 8004: quantum 1514b perturb 15sec > > > qdisc cbq 20: rate 100Mbit (bounded,isolated) prio no-transmit > > > > > > ---[ eth1: configured classes ]--------------------------- > > > > > > class cbq 10: root rate 100Mbit (bounded,isolated) prio no-transmit > > > class cbq 10:100 parent 10:1 leaf 8003: rate 64Kbit (bounded) prio 5 > > > class cbq 10:1 parent 10: rate 100Mbit prio no-transmit > > > > > > ---[ eth1: queueing disciplines ]------------------------- > > > > > > qdisc sfq 8003: quantum 1514b perturb 15sec > > > qdisc cbq 10: rate 100Mbit (bounded,isolated) prio no-transmit > > > > > > ==============Problem=============== > > > > > > I have an mrtg monitor, and according to this the bandwidth of the > > > firewall exceeds the 64 Kbit per seconds, i don't know why, i need > > > extrictly the bandwidth does no exceeds 64 Kbps. > > > > > > ==================================== > > > > > > > > "Serguei I. Ivantsov" wrote: > > > > > > Hello! > > > > > > If you simply want to limit dataflow to 64kbit, you have to use TBF discpipline for the leaf qdisc. > > > > _______________________________________________ > > LARTC mailing list / LARTC@mailman.ds9a.nl > > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/ > > -- > Ramin Alidousti ramin@UU.NET > Advanced Development tel +1 703 886 2640 > UUNET, A WorldCom Company fax +1 703 886 0536 > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/ --------------0792FF48F932A6927200EB5B Content-Type: text/html; charset=us-ascii; name="mh.telconet.net.2.html" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mh.telconet.net.2.html" mh.telconet.net: eth0

Traffic Analysis for eth0

System:mh.telconet.net
Maintainer:telconet
Interface:eth0
IP:207.87.93.63
Max Speed: 1250.0 kBytes/s (ethernetCsmacd)


The statistics were last updated Tuesday, 24 April 2001 at 10:19 ,
at which time 'mh.telconet.net' had been up for 1:17:14.
`Daily' Graph (5 Minute Average)
day
Max  In: 17.7 kB/s (1.4%) Average  In: 3839.0 B/s (0.3%) Current  In: 17.7 kB/s (1.4%)
Max  Out: 9040.0 B/s (0.7%) Average  Out: 995.0 B/s (0.1%) Current  Out: 1835.0 B/s (0.1%)

`Weekly' Graph (30 Minute Average)
week
Max  In: 14.2 kB/s (1.1%) Average  In: 2837.0 B/s (0.2%) Current  In: 10.1 kB/s (0.8%)
Max  Out: 9347.0 B/s (0.7%) Average  Out: 511.0 B/s (0.0%) Current  Out: 974.0 B/s (0.1%)

`Monthly' Graph (2 Hour Average)
month
Max  In: 33.1 kB/s (2.6%) Average  In: 4998.0 B/s (0.4%) Current  In: 279.0 B/s (0.0%)
Max  Out: 5281.0 B/s (0.4%) Average  Out: 855.0 B/s (0.1%) Current  Out: 1028.0 B/s (0.1%)

`Yearly' Graph (1 Day Average)
year
Max  In: 19.6 kB/s (1.6%) Average  In: 2874.0 B/s (0.2%) Current  In: 245.0 B/s (0.0%)
Max  Out: 3675.0 B/s (0.3%) Average  Out: 574.0 B/s (0.0%) Current  Out: 2.0 B/s (0.0%)


GREEN ### Incoming Traffic in Bytes per Second
BLUE ### Outgoing Traffic in Bytes per Second



MRTG Multi Router Traffic Grapher
version 2.8.9 Tobias Oetiker <oetiker@ee.ethz.ch> and   Dave Rand  <dlr@bungi.com>
--------------0792FF48F932A6927200EB5B-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/