Simulating bad network conditions

Mel fbsd.hackers at rachie.is-a-geek.net
Wed Feb 18 11:39:48 PST 2009


On Wednesday 18 February 2009 01:39:03 Bruce Cran wrote:

> It seems ALTQ can't delay packets though, so you'd need to use dummynet
> for that.

You can work around it using hfsc's realtime:
hfsc(realtime (0Kb 300 128Kb))
   1.  0Kbit of bandwidth guaranteed for the first 300ms
   2. After 300ms 128Kbit of bandwidth is provided
   3. When using this method, the first value must be 0.

Though, this only works when under pressure. If enough bandwidth is available, 
the delay won't happen.

More info here:
http://www.probsd.net/pf/index.php/Hednod%27s_HFSC_explained

-- 
Mel


More information about the freebsd-hackers mailing list