Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Feb 2009 09:48:04 -0900
From:      Mel <fbsd.hackers@rachie.is-a-geek.net>
To:        freebsd-hackers@freebsd.org
Cc:        Bruce Cran <bruce@cran.org.uk>, xorquewasp@googlemail.com
Subject:   Re: Simulating bad network conditions
Message-ID:  <200902180948.04532.fbsd.hackers@rachie.is-a-geek.net>
In-Reply-To: <20090218103903.5aee2d7d@tau.draftnet>
References:  <20090218083424.GA62198@logik.internal.network> <20090218085715.GA9821@logik.internal.network> <20090218103903.5aee2d7d@tau.draftnet>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902180948.04532.fbsd.hackers>