Fedora Linux Support Community & Resources Center
  #1  
Old 3rd April 2010, 03:05 AM
PilotJLR Offline
Registered User
 
Join Date: Nov 2005
Location: flying a cubicle
Posts: 465
linuxfedorafirefox
Netem rate limiting (token bucket filter) not supported?

Hello,
I've been trying for a couple days now to get netem rate limiting to work on a Fedora 12 i686 virtual machine (both on VMware Fusion and KVM), and have had no success.

In order to do outbound rate limiting, I want to use the netem token bucket filter (TBF), as described here:
http://www.linuxfoundation.org/colla...m#Rate_control

Unfortunately, attempting to use the TBF results in this error:
Code:
[root@f12-build ~]# tc qdisc add dev eth1 parent 1:1 handle 10: tbf rate 256kbit buffer 1600 limit 3000
RTNETLINK answers: Operation not supported
However... the exact same command DOES work on a default net install of Debian 5.0.4.

I've already recompiled the Fedora kernel with TBF (and all QoS options, actually) loaded by default. I've also verified the right modules are present:
Code:
[root@f12-build ~]# lsmod | grep sch
sch_tbf                 3187  0 
sch_netem               5670  1
Yet I still have not figured out how to resolve this... rate limiting is clearly an option, since a basic vanilla Debian install supports it.

If anyone has rate limiting / TBF working on Fedora, or if anyone has any suggestions, I would really appreciate it!

Thank you

Last edited by PilotJLR; 3rd April 2010 at 04:55 AM.
  #2  
Old 3rd April 2010, 09:48 PM
PilotJLR Offline
Registered User
 
Join Date: Nov 2005
Location: flying a cubicle
Posts: 465
linuxfedorafirefox
Re: Netem rate limiting (token bucket filter) not supported?

Solved!

A post on ubuntuforums taught me that netem doesn't allow child layers to be added to it, so the TBF rate limiting must be set before latency.

What DOES work:
Code:
[root@f12-build ~]# tc qdisc add dev eth1 root handle 1: tbf rate 256kbit buffer 1600 limit 3000
[root@f12-build ~]# tc qdisc add dev eth1 parent 1: handle 10: netem delay 150ms
Credit goes here:
http://ubuntuforums.org/showpost.php...28&postcount=3
Closed Thread

Tags
netem, rate limiting, tbf, token bucket filter

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting encrypted Fedora 12 from Slax USB Token Shunyata Security and Privacy 0 23rd January 2010 06:41 AM
Implementing Token ring Beagleboy Servers & Networking 2 23rd March 2009 02:19 PM
error: expected ‘;’ before ‘(’ token in c++ gowrishankar Using Fedora 1 24th January 2009 02:36 PM
How to increase uthash bucket size to accomodate a large number of values ahm_irf Programming & Packaging 0 5th April 2008 10:50 PM
rate limiting greno Security and Privacy 1 21st September 2007 10:26 PM


Current GMT-time: 11:35 (Saturday, 22-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Klatovy Instagram Photos - Teotihuacan de Arista Photos - Bareggio