Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Aug 2020 01:37:44 +0700
From:      Eugene Grosbein <eugen@grosbein.net>
To:        Ryan Stone <rysto32@gmail.com>, freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: Is anybody using ng_pipe?
Message-ID:  <5410b88c-4b6c-c2ef-fa8d-4105bd923627@grosbein.net>
In-Reply-To: <CAFMmRNxgoSNX2%2BLd=eEXRH0q7-XFzSF=b2GPzZgNW1LDCvq5Xw@mail.gmail.com>
References:  <CAFMmRNxgoSNX2%2BLd=eEXRH0q7-XFzSF=b2GPzZgNW1LDCvq5Xw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
19.08.2020 0:17, Ryan Stone wrote:

> I'd like to dump all of this and just implement a packet loss rate,
> which would simplify all this immensely.  Is anybody using ng_pipe
> with a non-zero BER who would object to this?  Given this litany of
> issues I doubt it, but I thought that I'd be sure.

Take a look at dummynet(4):

kldload dummynet

# adds (optional) queueing delay plus 10 ms additional delay
ipfw pipe 1 config bw 100Mbit/s delay 10

# add packet drop probability
ipfw add 3000 prob 0.05 deny ip from any to any in

# apply bandwidth limit/delay
ipfw add 3010 pipe 1 ip from any to any in




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5410b88c-4b6c-c2ef-fa8d-4105bd923627>