lkml.org 
[lkml]   [1999]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjecttraffic shaper enhancement
Hi Alan and all other kernel-guru's, here's a little patch for the traffic
shaper with which it is possible to simulate a device with a higher latency.

This patch is against 2.2.10, and a patched shapecfg is available at
http://www.lr.tudelft.nl/~lr788024/shaper/

A short demonstration of what this provides:

[root@spaans-smp linux]# shapecfg delay shaper0 0
[root@spaans-smp linux]# ping -q -c3 laptop
PING laptop (10.0.0.99): 56 data bytes

--- laptop ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.9/0.9/0.9 ms
[root@spaans-smp linux]# shapecfg delay shaper0 100
[root@spaans-smp linux]# ping -q -c3 laptop
PING laptop (10.0.0.99): 56 data bytes

--- laptop ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 93.8/98.3/100.8 ms

VrGr,
--
__ ___ __ C. Jasper Spaans <cj@dds.nl> -o)
/ //__ /\\
/__ __/ __/ _\_v
join the penguin force!
11:14am up 8159 days, 3:01, 1 user, load average: 0.00, 0.00, 0.00
[unhandled content-type:application/x-gunzip]
\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.025 / U:0.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site