LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-30-2003, 11:13 PM   #1
Passe
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
Exclamation QoS Problem kernel 2.4.21 to 2.4.23-pre6


Hi,

I'm using QoS with a wonder shaper style script in order to manage my bandwith.
I modified the initial script for my type of prefered traffic...
When i did it, it was on a 2.4.21 kernel and it worked perfectly !

Recently i upgraded my kernel to 2.4.23-pre6 all works well as before but my optimisation for the gaming traffic (Quake3) doesnt't work now...
I recompiled tcng for my new kernel but it does nothing better. With this optimisation i was able to upload and play with a good ping, even if i just play with no more traffic i had 10ms less than without this optimisation.

I don't understand what is happening...
the version of HTB for kernel 2.4.23-pre6:
HTB init, kernel part version 3.13

On the HTB homepage they give a precompiled binarie of tc with the good htb version 3 code.
I tried it, nothing better...
I have no errors when i'm running my script but the priority for the gaming class don't works at all now.

Does anyone have a suggestion ?

Here is a part of my script (on the 2.4.21 kernel version it worked perfectly):

DOWNLINK=2048
UPLINK=350
DEV=eth0

tc qdisc del dev $DEV root 2> /dev/null > /dev/null
tc qdisc del dev $DEV ingress 2> /dev/null > /dev/null

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

tc class add dev $DEV parent 1: classid 1:1 htb rate ${UPLINK}kbit burst 3k

# High priority class 1:10 gaming class and 1:20 other high priority class :

tc class add dev $DEV parent 1:1 classid 1:10 htb rate ${UPLINK}kbit \
burst 16k prio 1

tc class add dev $DEV parent 1:1 classid 1:20 htb rate ${UPLINK}kbit \
burst 6k prio 2

tc class add dev $DEV parent 1:1 classid 1:30 htb rate $[9*$UPLINK/10]kbit \
burst 6k prio 3

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

# here is the optimisation for Quake3, all UDP traffic on ports 27940 to 27995 is redirected to the 1:10 high priority class

iptables -t mangle -A OUTPUT -o eth0 -p udp --dport 27940:27995 -j MARK --set-mark 1
iptables -t mangle -A INPUT -i eth0 -p udp --sport 27940:27995 -j MARK --set-mark 1

tc filter add dev $DEV parent 1:0 protocol ip prio 1 \
handle 1 fw flowid 1:10

Last edited by Passe; 10-30-2003 at 11:16 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is QoS? tarballedtux Linux - Networking 2 08-02-2007 10:38 AM
QoS with HTB diaskimo Linux - Networking 3 08-08-2005 12:57 AM
QoS with HTB: Multi-session problem diaskimo Linux - Networking 0 08-01-2005 08:21 PM
Mplayer 1.0-pre6 released acid_kewpie Linux - Software 1 12-31-2004 07:54 AM
HTB.. qos or what? bcc1981 Mandriva 0 04-16-2004 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration