LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-21-2007, 11:33 AM   #1
GSMD
Member
 
Registered: Dec 2005
Distribution: Gentoo
Posts: 87

Rep: Reputation: 16
prio qdisc - does this really work?


I've got a simple setup at home with a linux box (ubuntu gutsy) connected to a router and clients sitting behind it.
Now, I want to make sure that voip, web serfing etc. don't degrade in case something large gets downloaded in the meantime.
Here's the sample setup:
Code:
# master classful queue with 5 bands, by default all the traffic goes to band #5
tc qdisc add dev ppp0 root handle 1: prio bands 5 priomap 4 3 3 3 3 3 3 3 2 2 2 2 2 2 2 1
# handlers
tc qdisc add dev ppp0 parent 1:1 handle 10: sfq
tc qdisc add dev ppp0 parent 1:2 handle 20: sfq
tc qdisc add dev ppp0 parent 1:3 handle 30: sfq
tc qdisc add dev ppp0 parent 1:4 handle 40: sfq
tc qdisc add dev ppp0 parent 1:5 handle 50: sfq
sudo tc filter add dev ppp0 protocol ip parent 1: prio 1 u32 match ip dport 22 0xff flowid 1:1
sudo tc filter add dev ppp0 protocol ip parent 1: prio 1 u32 match ip sport 80 0xff flowid 1:1
As far as I understand, 1:1 (which would be 0 in priomap) should get dequeued first, no matter what happens "above".
Now, though tc -s qdisc ls dev ppp0 shows that packets go through this queue (and all the other go through 1:5, just as expected), I see no performance/latency improvements at all. How could this be? Feels like I'm getting something terribly wrong.
Any thoughts?

TIA.
 
Old 05-28-2008, 05:51 PM   #2
SonJelfn
Member
 
Registered: Aug 2003
Location: Sendai, Japan
Distribution: Slackware, Slackware64, Debian
Posts: 63

Rep: Reputation: 17
Hello,

the SFQ qdiscs really only work when you have a saturated link and you need the qdisc to fairly distribute the time of transmit of each connection that exists on the machine.

It is also tough to see a difference with QoS on just one machine, but you might want to change the SFQ qdiscs for pfifos if the your link isn't always saturated.

Just remember that QoS isn't the answer to everything but hopefully this will help you a little.

Good luck.
 
  


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
kernel: qdisc with PRIO map ohu Linux - Software 0 10-19-2007 09:06 PM
iproute2 ip rule prio question bartmanxxi Linux - Networking 0 10-18-2006 07:32 AM
help with tc qdisc ssoc80 Linux - Networking 0 05-16-2006 06:03 AM
qdisc initiation shrishailnk Linux - Networking 0 04-14-2006 10:16 PM
tc qdisc and multiple external IPs tvynr Linux - Networking 2 10-12-2005 07:49 PM

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

All times are GMT -5. The time now is 12:42 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