]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man4/dummynet.4
Merge commit 'ce929fe84f9c453263af379f3b255ff8eca01d48'
[FreeBSD/FreeBSD.git] / share / man / man4 / dummynet.4
1 .\"
2 .\" $FreeBSD$
3 .\"
4 .Dd September 10, 2021
5 .Dt DUMMYNET 4
6 .Os
7 .Sh NAME
8 .Nm dummynet
9 .Nd traffic shaper, bandwidth manager and delay emulator
10 .Sh DESCRIPTION
11 The
12 .Nm
13 system facility permits the control of traffic
14 going through the various network interfaces, by applying bandwidth
15 and queue size limitations, implementing different scheduling and queue
16 management policies, and emulating delays and losses.
17 .Pp
18 The user interface for
19 .Nm
20 is implemented by the
21 .Xr dnctl 8
22 utility, so please refer to the
23 .Xr dnctl 8
24 manpage for a complete description of the
25 .Nm
26 capabilities and how to use it.
27 .Ss Kernel Options
28 The following options in the kernel configuration file are related to
29 .Nm
30 operation:
31 .Pp
32 .Bl -tag -width ".Dv IPFIREWALL_VERBOSE_LIMIT" -offset indent -compact
33 .It Dv IPFIREWALL
34 enable ipfirewall (if
35 .Nm
36 is to be used with ipfw)
37 .It Dv IPFIREWALL_VERBOSE
38 enable firewall output
39 .It Dv IPFIREWALL_VERBOSE_LIMIT
40 limit firewall output
41 .It Dv DUMMYNET
42 enable
43 .Nm
44 operation
45 .It Dv HZ
46 set the timer granularity
47 .El
48 .Pp
49 Generally, the following options are required:
50 .Bd -literal -offset indent
51 options IPFIREWALL
52 options DUMMYNET
53 options HZ=1000         # strongly recommended
54 .Ed
55 .Pp
56 Additionally, one may want to increase the number
57 of mbuf clusters (used to store network packets) according to the
58 sum of the bandwidth-delay products and queue sizes of all configured
59 pipes.
60 .Sh SEE ALSO
61 .Xr setsockopt 2 ,
62 .Xr if_bridge 4 ,
63 .Xr ip 4 ,
64 .Xr ipfw 8 ,
65 .Xr dnctl 8 ,
66 .Xr pf.conf 5 ,
67 .Xr sysctl 8
68 .Sh HISTORY
69 The
70 .Nm
71 facility
72 was initially implemented as a testing tool for
73 .Tn TCP
74 congestion control by
75 .An Luigi Rizzo Aq Mt luigi@iet.unipi.it ,
76 as described on ACM Computer Communication Review, Jan.97 issue.
77 Later it has been modified to work at the
78 .Tn IP
79 and bridging levels, integrated with the
80 .Xr ipfw 4
81 packet filter, and extended to
82 support multiple queueing and scheduling policies.