MoonGen: A Scriptable High-Speed Packet Generator

Paul Emmerich, Sebastian Gallenmüller, Daniel Raumer, Florian Wohlfart, Georg Carle
10/13/2014
445 citations
cs.NI

Official code: emmericp/MoonGen (1,120 stars, Lua, MIT, last commit 2025-11-30).

Abstract

We present MoonGen, a flexible high-speed packet generator. It can saturate 10 GbE links with minimum sized packets using only a single CPU core by running on top of the packet processing framework DPDK.

Show full abstract

Linear multi-core scaling allows for even higher rates: We have tested MoonGen with up to 178.5 Mpps at 120 Gbit/s. We move the whole packet generation logic into user-controlled Lua scripts to achieve the highest possible flexibility. In addition, we utilize hardware features of Intel NICs that have not been used for packet generators previously. A key feature is the measurement of latency with sub-microsecond precision and accuracy by using hardware timestamping capabilities of modern commodity NICs. We address timing issues with software-based packet generators and apply methods to mitigate them with both hardware support on commodity NICs and with a novel method to control the inter-packet gap in software. Features that were previously only possible with hardware-based solutions are now provided by MoonGen on commodity hardware. MoonGen is available as free software under the MIT license at https://github.com/emmericp/MoonGen

View on arXivView PDF

Code Implementations(1)

emmericp/MoonGenOfficial100%
MIT

MoonGen is a fully scriptable high-speed packet generator built on DPDK and LuaJIT. It can saturate a 10 Gbit/s connection with 64 byte packets on a single CPU core while executing user-provided Lua scripts for each packet. Multi-core support allows for even higher rates. It also features precise and accurate timestamping and rate control.

1,120240Lua, CSep 27, 20141 years agoMIT
dpdkluapacket-generator

Similar Papers

Cite this paper

@article{emmerich2014moongen,
  title  = {MoonGen: A Scriptable High-Speed Packet Generator},
  author = {Paul Emmerich and Sebastian Gallenmüller and Daniel Raumer and Florian Wohlfart and Georg Carle},
  year   = {2014},
  eprint = {1410.3322},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1410.3322}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1410.3322.svg)](https://codeofpaper.com/paper/1410.3322)

Discussion