LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-30-2010, 04:32 AM   #1
toure32
LQ Newbie
 
Registered: Nov 2009
Posts: 26

Rep: Reputation: 15
tc and making QoS


Hi list,
I've some problem with making Qos.
All my traffic pass through a linux box which is in Bridge mode.
I'd like to implement a Qos to allocate 25Kbit of bandwith to the http communication. So I've made these commands:
Code:
tc qdisc add dev  eth1  root handle 1: htb default 1
tc  class add dev  eth1  parent 1: classid  1:1  htb rate 50kbit ceil 50kbit
tc qdisc add dev  eth1  parent  1:1  handle 10:  sfq perturb 10
tc qdisc add dev  eth2  root handle 1: htb default 1
tc  class add dev  eth2  parent 1: classid  1:1  htb rate 50kbit ceil 50kbit
tc qdisc add dev  eth2  parent  1:1  handle 10:  sfq perturb 10

tc  class add dev  eth1  parent 1:0 classid  1:1007  htb rate 512kbit ceil 512kbit
tc  class add dev  eth2  parent 1:0 classid  1:1007  htb rate 512kbit ceil 512kbit

tc  class add dev  eth1  parent 1:1007 classid  1:8170  htb rate 25kbit ceil 25kbit 
tc qdisc add dev  eth1  parent  1:8170  handle 8170:  sfq perturb 10
tc  class add dev  eth2  parent 1:1007 classid  1:8170  htb rate 25kbit ceil 25kbit 
tc qdisc add dev  eth2  parent  1:8170  handle 8170:  sfq perturb 10

tc filter add dev  eth1  protocol ip parent 1:  prio 1 u32   match ip  src  192.168.2.88/32  match ip protocol  6  0xff match ip dport  80  0xffff flowid  1:8170
tc filter add dev  eth2  protocol ip parent 1:  prio 1 u32   match ip  dst  192.168.2.88/32  match ip protocol  6  0xff match ip dport  80  0xffff flowid  1:8170
The filter tc filter add dev eth1.....
Is allway match for all http upstream traffic
But the filter tc filter add dev eth2...
Is never match for the http downstream. And that make a sense because the dport of the downstream is not 80.
Can someone help me troubleshoot.
Regards.

Last edited by toure32; 04-30-2010 at 05:49 AM.
 
  


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
QoS monitor reta Linux - Networking 1 02-05-2010 02:03 AM
QoS hvc123 Linux - Server 5 12-17-2008 07:04 AM
What is QoS? tarballedtux Linux - Networking 2 08-02-2007 10:38 AM
How to install QOS chrisjwray Linux - Networking 4 10-26-2004 11:05 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 03:56 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