Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Mar 2009 19:59:04 +0100 (CET)
From:      Oliver Fromme <>
To:        freebsd-ipfw@FreeBSD.ORG,
Subject:   Re: ipfw (dummynet) adds delay, but not configured to do so
Message-ID:  <>
In-Reply-To: <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Sebastian Mellmann wrote:
 > Luigi Rizzo wrote:
 > > The delay Sebastian is seeing comes from the babdnwidth limitation,
 > > which is causing a non-zero "transmission time" which is rounded up.
 > Let me get this right:
 > When I configure a pipe with bandwidth limitations, I'll always get some
 > additional delay when a packet passes this pipe?

Yes, of course.  That's expected.

Transmitting a packet through a 10 Mbit link takes longer
than transmitting the same packet through a 100 Mbit link.
Dummynet correctly emulates that behaviour, but it is
limited by the granularity of the kernel clock, which runs
at 1000 Hz by default, so the delays are rounded to 1 ms.

For example, transferring a 1 KB data packet (that's about
10 kbits including headers of the various protocols) will
take about 1 ms on a 10 Mbit link, and 0.1 ms on 100 Mbit.

Best regards

Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:

"In My Egoistical Opinion, most people's C programs should be indented
six feet downward and covered with dirt."
        -- Blair P. Houghton

Want to link to this message? Use this URL: <>