All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandra Alvarado <aaaa@telconet.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] CBQ does not works
Date: Tue, 24 Apr 2001 10:37:58 +0000	[thread overview]
Message-ID: <marc-lartc-98812656510456@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98805374621366@msgid-missing>

[-- Attachment #1: Type: text/plain, Size: 6981 bytes --]

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/

[-- Attachment #2: mh.telconet.net.2.html --]
[-- Type: text/html, Size: 7505 bytes --]

  parent reply	other threads:[~2001-04-24 10:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-23 14:25 [LARTC] CBQ does not works Alexandra Alvarado
2001-04-24 10:06 ` Alexandra Alvarado
2001-04-24 10:37 ` Alexandra Alvarado [this message]
2001-04-24 15:20 ` Ramin Alidousti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-98812656510456@msgid-missing \
    --to=aaaa@telconet.net \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.