LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-02-2010, 07:38 PM   #1
Kavya
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
TC -Rate Control issues


Hi,

I am using Netem to simulate network conditions. I use tc to rate control traffic to a specific ip address.

I referred to the below source : http://lartc.org/howto/lartc.ratelimit.single.html to try out the same.

I used the following commands to rate control traffic to specific links

tc qdisc add dev eth0 root handle 1: cbq avpkt 1000 bandwidth 100mbit

tc class add dev $DEV parent 1: classid 1:1 cbq rate 500kbit \
allot 1500 prio 5 bounded isolated

tc filter add dev $DEV parent 1: protocol ip prio 16 u32 \
match ip dst 195.96.96.97 flowid 1:1

tc class add dev $DEV parent 1: classid 1:2 cbq rate 300kbit \
allot 1500 prio 5 bounded isolated

tc filter add dev $DEV parent 1: protocol ip prio 16 u32 \
match ip dst 195.96.96.98 flowid 1:2


Without these tc settings on my router, using iperf I get a throughput of 90Mbps. After I set the above commands, my measured throughput with iperf drops around 17Mbps as opposed to expected values of 500kbps. Similar pattern is observed on teh second link too.

I can see that CBQ settings control the throughput but does not give me the expected value. I am not sure what is wrong. Can someone help and give me some insights about this issue? Thanks
 
Old 05-04-2010, 08:41 PM   #2
davyherds
LQ Newbie
 
Registered: Nov 2005
Posts: 5

Rep: Reputation: 1
Hi, I'm not familiar to cbq. but if you just want some traffic control function, you can try htb which will make your life easier.
 
Old 05-06-2010, 03:05 PM   #3
Kavya
LQ Newbie
 
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks davyherds. yeah, htb is easier to use, but my requirement is to control bandwidth for separate flows for specific ip addresses.
 
  


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
rate control algorithm ineya Programming 12 08-20-2009 10:41 AM
Rate control in ethernet kamalsivadas Linux - Networking 1 04-15-2009 02:39 AM
TC rate control problem jaderaugusto Linux - Networking 0 04-24-2006 12:24 PM
Postfix: rate & connection control£¿ Chowroc Linux - Software 1 11-16-2005 02:41 AM
Changing refresh rate in Control Center? General Mandriva 3 10-18-2005 04:00 AM

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

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