HTB & VoIP

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I have a Linux box which acts as a router (NAT) and has VoIP software.
I want the VoIP traffic to have the highest priority. So I used
a script like this:


#!/bin/sh

DEV=ppp0
TC=tc

$TC qdisc del dev $DEV root > /dev/null 2>&1

$TC qdisc add dev $DEV root handle 1: htb default 30

$TC class add dev $DEV parent 1: classid 1:1 htb rate 96kbit burst 15k

$TC class add dev $DEV parent 1:1 classid 1:10 htb rate 94kbit burst 15k
prio 0
$TC class add dev $DEV parent 1:1 classid 1:20 htb rate 1kbit ceil 1kbit
burst 1k prio 1
$TC class add dev $DEV parent 1:1 classid 1:30 htb rate 1kbit ceil 90kbit
burst 1k prio 7

$TC qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10
$TC qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10
$TC qdisc add dev $DEV parent 1:30 handle 30: sfq perturb 10

$TC filter add dev $DEV protocol ip parent 1:0 prio 1 u32 match ip protocol
17 0xff flowid 1:10


Currently the filter puts all UDP traffic (through which the voice goes) to
1:10.
The script works partially: when uploading from the LAN and starting a call,
the
upload rate decreases exactly as needed by the voice, BUT the voice has
LARGE delays - 
up to 2 secs.

Is there an option to put (for instance) all UDP traffic at the beginning of
the output queue?

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

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux