FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2005
    Location
    flying a cubicle
    Posts
    465

    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 03:55 AM.

  2. #2
    Join Date
    Nov 2005
    Location
    flying a cubicle
    Posts
    465

    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

Similar Threads

  1. Booting encrypted Fedora 12 from Slax USB Token
    By Shunyata in forum Security and Privacy
    Replies: 0
    Last Post: 23rd January 2010, 06:41 AM
  2. Implementing Token ring
    By Beagleboy in forum Servers & Networking
    Replies: 2
    Last Post: 23rd March 2009, 01:19 PM
  3. error: expected ; before ( token in c++
    By gowrishankar in forum Using Fedora
    Replies: 1
    Last Post: 24th January 2009, 02:36 PM
  4. Replies: 0
    Last Post: 5th April 2008, 09:50 PM
  5. rate limiting
    By greno in forum Security and Privacy
    Replies: 1
    Last Post: 21st September 2007, 09:26 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •