How to prioritize IAX2 (VoIP) traffic?
Anders Peter Fugmann
email hidden
Sun Nov 20 11:10:28 CET 2005
Paolo Prandini wrote:
> Do you have any news? I have never used TOS or traffic shaping settings in fiaif, so any suggestion is welcome,
> even a basic schema. Thanks a lot.
Sorry I haven't replied to you earlier.
I have found some inefficiencies in the way FIAIF do traffic shaping.
From what I can see from my VoIP setup, the correct TOS settings are already applied,
to all you need to do is to enable traffic shaping in FIAIF.
If you are using the HTB scheduler, I may want to use a modified version of FIAIF traffic shaping,
which I have attached.
Some notes for installing:
install the attached file into /usr/share/fiaif, overriding the existing traffic-shaping.sh file.
Edit the zone configuration for you internet line, and enter:
TC_ENABLE=1
TC_TYPE=HTB
TC_DOWNLINK=<specified download speed in Kbit>
TC_UPLINK=<specified upload speed in Kbit>
The speeds needs not to be lowered compared to what you ISP has specified, as this is done by the
traffic shaping now. Also remember to set ENABLE_TC=1 in fiaif.conf.
Now restart FIAIF, and do a 'tc -s -d class show dev eth0', (assuming that you have enabled traffic shaping for eth0).
When having VoIP traffic, you should see the counter for class 1:10 increase with a rate of about 130000 bit. If not,
please write back, as you then need to classify the packets manually (through FIAIF that is).
Regards
Anders Fugmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: traffic-shaping.sh
Type: application/x-sh
Size: 6713 bytes
Desc: not available
Url : http://www.fiaif.net/pipermail/fiaif/attachments/20051120/3d1a5f8a/attachment.sh
More information about the fiaif
mailing list