All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreani Luca <landreani@seltatel.it>
To: lartc@vger.kernel.org
Subject: [LARTC] time window in CBQ
Date: Fri, 05 Sep 2003 07:22:06 +0000	[thread overview]
Message-ID: <marc-lartc-106274651319618@msgid-missing> (raw)

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

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,

thanks for help,

P.S. any other configuration suggested for my application will be very
appreciated...

Luca Andreani

[-- Attachment #2: Type: text/html, Size: 4646 bytes --]

             reply	other threads:[~2003-09-05  7:22 UTC|newest]

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

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-106274651319618@msgid-missing \
    --to=landreani@seltatel.it \
    --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.