All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] time window in CBQ
Date: Fri, 05 Sep 2003 20:25:31 +0000	[thread overview]
Message-ID: <marc-lartc-106279380606977@msgid-missing> (raw)
In-Reply-To: <marc-lartc-106274651319618@msgid-missing>

On Friday 05 September 2003 09:22, Andreani Luca wrote:
> Dear list,
>
> I have two linux boxes acting as VoIP Gateway in the following
> configuration:
>
>
>         IP Phone ----------+                 +------------------+
> +------------------+                  +---------------- IP Phone
>
> 		         |-----------eth0-| Linux BOX1
> |
> |-hdlc0----------hdlc0-| Linux BOX2 |-hdlc0-----------|
>
>         PC ----------------- -+                 +------------------+
> +-----------------+                   +--------------- PC
>
> The hdlc link is 64 kbps.
>
> I tried to make a configuration in order to guarantee the bandidth of the
> VoIP calls versus the data traffic between the two PCs.
> I used CBQ + Prio and U32 filter. The ip Phones mark the packet with TOS
> 0x40. I also need the entire bandidth available for data traffic
> when there are no calls.
>
> I used the following configuration:
>
>
> insmod /lib/modules/2.4.17_mvl21-sandpoint/kernel/net/sched/sch_cbq.o
>
> insmod /lib/modules/2.4.17_mvl21-sandpoint/kernel/net/sched/sch_prio.o
>
> insmod /lib/modules/2.4.17_mvl21-sandpoint/kernel/net/sched/cls_u32.o
>
> tc qdisc del dev $int root
>
> tc qdisc add dev $int root handle 1:0 cbq bandwidth $banda avpkt 1000 cell
> 8
>
> tc class add dev $int parent 1:0 classid 1:1 cbq bandwidth $banda rate
> $banda maxburst 20 avpkt 500
>
> tc class add dev $int parent 1:1 classid 1:2 cbq bandwidth $banda rate
> $banda_voce maxburst 20 avpkt 500
>
> tc class add dev $int parent 1:1 classid 1:3 cbq bandwidth $banda rate
> $banda_dati maxburst 1 avpkt 500
>
> tc qdisc add dev $int parent 1:2 handle 20: prio
>
> tc qdisc add dev $int parent 1:3 handle 30: prio
>
> tc filter add dev $int parent 1:0 protocol ip prio 1 u32 match ip tos 0x40
> 0xff flowid 1:2
>
> tc filter add dev $int parent 1:0 protocol ip prio 1 u32 match ip tos 0x00
> 0xff flowid 1:3
>
>
> According to the test I performed, the configuration works because the VoiP
> traffic has its bandwidth, however the voice quality is absolutely bad.
> This occurs because
> the bandidth is given in "avarage" while I need a more "instant" bandidth.
> How can I reduce the time window used to calculate the rate of the VoIP
> class. Note (in the script) that I tried setting maxburst=1 for the best
> effort class but had no result,
Check your bandwidth parameter :
http://www.docum.org/stef.coene/qos/faq/cache/5.html

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      reply	other threads:[~2003-09-05 20:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-05  7:22 [LARTC] time window in CBQ Andreani Luca
2003-09-05 20:25 ` Stef Coene [this message]

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-106279380606977@msgid-missing \
    --to=stef.coene@docum.org \
    --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.