[LARTC] Difficulties trying to control VOIP traffic with TC - HTB
Ricardo Soria
ricardo_soria@yahoo.com
Mon, 8 Dec 2003 20:48:35 -0600 (CST)
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