Networking Forums

Networking Forums > Computer Networking > Linux Networking > Help with tc qdisc and netem

Reply
Thread Tools Display Modes

Help with tc qdisc and netem

 
 
Jagadeesh
Guest
Posts: n/a

 
      10-29-2004, 12:04 AM
I have downloaded the latest version of
iproute2-2.6.9-ss040831.tar.gz.
I have compiled it against linux-2.4.25. while it compiled fine, i get
error messages when i try to add delay.

For iproute-2.6.8:

#[root@iproute2-2.6.8]# /usr/sbin/tc qdisc add root dev eth0 netem
delay 10ms
What is "delay"?
Usage: ... netem latency TIME [ jitter TIME ] [ limit PACKETS]
[ loss PERCENT ] [ duplicate PERCENT ]
[ gap PACKETS]


For iproute-2.6.9:

[root@tools]# /usr/sbin/tc qdisc add root dev eth0 netem delay 10ms
RTNETLINK answers: Invalid argument

Am i missing loading a module or something?
 
Reply With Quote
 
 
 
 
Stephen Hemminger
Guest
Posts: n/a

 
      10-29-2004, 02:26 AM
Jagadeesh wrote:
> I have downloaded the latest version of
> iproute2-2.6.9-ss040831.tar.gz.
> I have compiled it against linux-2.4.25. while it compiled fine, i get
> error messages when i try to add delay.
>
> For iproute-2.6.8:
>
> #[root@iproute2-2.6.8]# /usr/sbin/tc qdisc add root dev eth0 netem
> delay 10ms


You have "root" in the wrong place. You want the following:

tc qdisc add dev eth0 root netem delay 10ms

See http://developer.osdl.org/shemminger/netem/example.html

> What is "delay"?
> Usage: ... netem latency TIME [ jitter TIME ] [ limit PACKETS]
> [ loss PERCENT ] [ duplicate PERCENT ]
> [ gap PACKETS]
>
>
> For iproute-2.6.9:
>
> [root@tools]# /usr/sbin/tc qdisc add root dev eth0 netem delay 10ms
> RTNETLINK answers: Invalid argument


If you have built netem scheduler into your kernel then sch_netem
will autoload. To configure it you need to enable:
Device Drivers
Network Devices
Networking options
QOS and queuing
Network Emulator

Normally it is configured as a module.
 
Reply With Quote
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help - How do I install Netem cpptutor2000@yahoo.com Linux Networking 1 07-30-2008 07:36 PM
tc, netem: Emulating multiple connections, problem with limit on the number of PRIO bands Patrick Reinhardt Linux Networking 1 08-28-2007 06:37 PM
tc qdisc netem rule seems to kill interface carl.hirsch@gmail.com Linux Networking 1 12-15-2005 10:08 PM
Netem with high limit value and memory leaks in 2.4 kernel. Sergey Prokoshev Linux Networking 0 04-29-2005 09:57 AM
New to TC and qdisc Luke Robertson Linux Networking 0 11-24-2004 03:37 AM



1 2 3 4 5 6 7 8 9 10 11