Use the Er macro for error numbers.
[dragonfly.git] / share / man / man4 / dummynet.4
1 .\"
2 .\" $FreeBSD: src/share/man/man4/dummynet.4,v 1.4.2.12 2002/11/18 21:51:16 luigi Exp $
3 .\" $DragonFly: src/share/man/man4/dummynet.4,v 1.2 2003/06/17 04:36:59 dillon Exp $
4 .\"
5 .Dd October 28, 2002
6 .Dt DUMMYNET 4
7 .Os
8 .Sh NAME
9 .Nm dummynet
10 .Nd traffic shaper, bandwidth manager and delay emulator
11 .Sh DESCRIPTION
12 .Em dummynet
13 is a system facility that 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 .Em dummynet
20 is implemented by the
21 .Nm ipfw
22 program, so the reader is referred to the
23 .Xr ipfw 8
24 manpage for a complete description of the capabilities of
25 .Nm
26 and on how to use it.
27 .Sh KERNEL OPTIONS
28 The following options in the kernel configuration file are related to
29 .Nm
30 operation:
31 .Bd -literal
32   IPFIREWALL               - enable ipfirewall (required for dummynet).
33   IPFIREWALL_VERBOSE       - enable firewall output.
34   IPFIREWALL_VERBOSE_LIMIT - limit firewall output.
35   DUMMYNET                 - enable dummynet operation.
36   NMBCLUSTERS              - set the amount of network packet buffers
37   HZ                       - sets the timer granularity
38 .Ed
39 .Pp
40 Generally, the following options are required:
41 .Bd -literal
42   options IPFIREWALL
43   options DUMMYNET
44   options HZ=1000       # strongly recommended
45 .Ed
46 .Pp
47 additionally, one may want to increase the number
48 of mbuf clusters (used to store network packets) according to the
49 sum of the bandwidth-delay products and queue sizes of all configured
50 pipes.
51 .Sh SEE ALSO
52 .Xr setsockopt 2 ,
53 .Xr bridge 4 ,
54 .Xr ip 4 ,
55 .Xr ipfw 8 ,
56 .Xr sysctl 8
57 .Sh HISTORY
58 .Nm
59 was initially implemented as a testing tool for TCP congestion control
60 by
61 .An Luigi Rizzo Aq luigi@iet.unipi.it ,
62 as described on ACM Computer Communication Review, Jan.97 issue.
63 Later it has been then modified to work at the ip and bridging
64 level, integrated with the IPFW packet filter, and extended to
65 support multiple queueing and scheduling policies.