LinuxQuestions.org
Review your favorite Linux distribution.
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-30-2013, 07:37 AM   #1
gsk_308
LQ Newbie
 
Registered: Jun 2008
Posts: 2

Rep: Reputation: 0
network throttling with TC (netem and tbf)


Hi all,

I am trying to control the rate of a server. I was following the link on netem from "the linux foundation" (not able to post the link due to my limited posts)
All the basic rules work fine. But I am not able to get a precis rate control.

Trial 1#:
/sbin/tc qdisc add dev eth0 root handle 1: prio
/sbin/tc qdisc add dev eth0 parent 1:3 handle 30: tbf rate 1mbps burst 1599b lat 26.6ms
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 3 u32 match ip dst 10.10.10.10 flowid 1:3

From the targeted IP I see the rate is limited to approximately 15.4K/s.

Trial 2#
/sbin/tc qdisc add dev eth0 root handle 1: prio
/sbin/tc qdisc add dev eth0 parent 1:3 handle 30: tbf rate 20kbit buffer 1600 limit 3000
/sbin/tc filter add dev eth0 protocol ip parent 1:0 prio 3 u32 match ip dst 10.10.10.10 flowid 1:3

Even in this case I see the rate is limited to approximately 15 K/s.

What is the difference in these two cases and why is the rate not changing in these cases.
My entire infra is a 1Gbps. Can someone please help me in understand where i am going wrong?

-Sri Krishna
 
  


Reply

Tags
throttling



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
modifying netem code mun10 Programming 0 04-10-2013 08:45 PM
how to find the netem codes mun10 Linux - Newbie 3 03-17-2013 11:45 AM
TBF (Token Bucket Filter) and Netem. Netem removed on TBF param change scoops Linux - Wireless Networking 1 03-16-2012 08:26 AM
Generically throttling any application's network usage? humbletech99 Linux - Networking 1 04-09-2008 04:39 PM
Throttling network usage of generic programs? humbletech99 Linux - Networking 1 01-11-2007 08:52 AM

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

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