]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
netpfil tests: dummynet queue test
authorKristof Provost <kp@FreeBSD.org>
Thu, 2 Sep 2021 13:38:04 +0000 (15:38 +0200)
committerKristof Provost <kp@FreeBSD.org>
Tue, 14 Sep 2021 08:33:21 +0000 (10:33 +0200)
commitc31393d326ceb85a85da9d0f55b9eaeedd2550a5
tree8f5eeb4189e35488df83a5c3044e3b447cd74295
parenta1d23e697345695c4b316c49453142e216c54421
netpfil tests: dummynet queue test

Test prioritisation and dummynet queues.
We need to give the pipe sufficient bandwidth for dummynet to work.
Given that we can't rely on the TCP connection failing alltogether, but
we can measure the effect of dummynet by imposing a time limit on a
larger data transfer.

If TCP is prioritised it'll get most of the pipe bandwidth and easily
manage to transfer the data in 3 seconds or less. When not prioritised
this will not succeed.

MFC after: 2 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31788

(cherry picked from commit cb6bfef9ca78623e33d2aef347dcee112a639103)
tests/sys/netpfil/common/dummynet.sh