Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Ricardo Soria" <ricardo_soria@yahoo.com>
To: lartc@vger.kernel.org
Subject: [LARTC] Difficulties trying to control VOIP traffic with TC - HTB
Date: Tue, 09 Dec 2003 02:48:35 +0000	[thread overview]
Message-ID: <marc-lartc-107093862510422@msgid-missing> (raw)

Hi all:

I hope someone can help me with this "little"
problem...

I'm using a linux script to sub-divide my bandwidth
(64kbit) into:  40kbit for VOIP, and the remaining
24kbit for http.  So, the commands I'm using are:

======================

#!/bin/bash

# This script shapes "downloading" stuff

# Initial qdisc
tc qdisc add dev eth1 root handle 1: htb default 20
r2q 2

# Classes definition
tc class add dev eth1 parent 1: classid 1:1 htb rate \
64kbit ceil 64kbit
tc class add dev eth1 parent 1:1 classid 1:10 htb \
rate 40kbit ceil 40kbit prio 0
tc class add dev eth1 parent 1:1 classid 1:20 htb \
rate 24kbit ceil 24kbit prio 1

# Filters

# This is filter for VOIP
tc filter add dev eth1 protocol ip parent 1:0 prio 1 \
u32 match ip dst 1.2.3.4 flowid 1:10

# Remaining traffic is supossed to go to default 20
class

# Script end

======================

I reached this script after a lot of investigation and
tryings.  So, the bandwidth distribution seems to be
ok.  But here my problem:  Every time a person is
using VOIP, and another person starts surfing the
Internet (from a different IP, of course) at the same
time, the sound quality of the VOIP decreases notably.
 I have priorized VOIP traffic, as it can be seen on
"prio 0".  I even used IPTABLES statements to set
Minimize-Delay to packets coming from VOIP ip address.
 But every effort seems to be unuseful:  Every time
someone opens web browser, VOIP sound quality goes
down...

So, could someone tell me what's wrong about my
script??  I know it is possible to get what I'm trying
with htb, anyway...

Very thanks to everybody.

Cheers.

Ricardo Soria.

_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

             reply	other threads:[~2003-12-09  2:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-09  2:48 Ricardo Soria [this message]
2003-12-09  8:06 ` [LARTC] Difficulties trying to control VOIP traffic with TC - HTB Kotek Tichomir
2003-12-12 22:53 ` Ricardo Soria

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-107093862510422@msgid-missing \
    --to=ricardo_soria@yahoo.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox