DUMMYNET(4)

πŸ’– DUMMYNET πŸ’–

okay so bestie, welcome to the dummynet page from the Kernel Interfaces Manual β€” yes we're in section 4, we're being ✨technical✨ today.


🌸 NAME 🌸

dummynet β€” traffic shaper, bandwidth manager and delay emulator


✨ DESCRIPTION ✨

So the dummynet system facility is literally the main character that lets you control traffic going through all the various network interfaces πŸ’… It does this by applying bandwidth and queue size limitations, implementing different scheduling and queue management policies, and emulating delays and losses. It's giving traffic cop, but make it fashion.

Now the user interface for dummynet is implemented by the ipfw(8) utility, so bestie please go read the ipfw(8) manpage for a complete description of the dummynet capabilities and how to use it. I'm not gatekeeping, I'm just saying that's where the full tea is πŸ«–

🧚 Kernel Options 🧚

The following options in the kernel configuration file are related to dummynet operation:

  • IPFIREWALL β€” enable ipfirewall (required for dummynet)
  • IPFIREWALL_VERBOSE β€” enable firewall output
  • IPFIREWALL_VERBOSE_LIMIT β€” limit firewall output
  • DUMMYNET β€” enable dummynet operation
  • HZ β€” set the timer granularity

Generally, the following options are required:

options IPFIREWALL
options DUMMYNET
options HZ=1000         # strongly recommended
no cap, that HZ=1000 is strongly recommended, don't skip it πŸ™ˆ

Additionally, one may want to increase the number of mbuf clusters (used to store network packets) according to the sum of the bandwidth-delay products and queue sizes of all configured pipes. Yes queen, do the math πŸ“βœ¨


πŸ‘‘ SEE ALSO πŸ‘‘


πŸ’œ HISTORY πŸ’œ

The dummynet facility was initially implemented as a testing tool for TCP congestion control by Luigi Rizzo <luigi@iet.unipi.it>, as described on ACM Computer Communication Review, Jan.97 issue. Later it has been modified to work at the IP and bridging levels, integrated with the ipfw(4) packet filter, and extended to support multiple queueing and scheduling policies. Iconic behaviour honestly, we love a glow-up 🌈⭐


and that's the whole page bestie, mwah πŸ’‹ this one's from the Debian edition, dated October 28, 2002 β€” yes it's vintage, yes it still slays, periodt πŸŽ€

πŸ“¦ where this page comes from