BB-Gen: A Packet Crafter for Data Plane Evaluation

  • Fabricio Cesen UNICAMP
  • P. Gyanesh Patra UNICAMP
  • Christian Rothenberg UNICAMP


With the advent of research on fast path packet processing, traffic generator tools witnessed many entrants with features ranging from supporting list of protocols, analyzing network traffic to measuring throughput and latency of packets. While approaching towards feature completeness, the tools are becoming more complex every time making it difficult to port, manage, and use. BBGen with a sole focus on simplicity complements other traffic generators instead of trying to replace them. BB-Gen is a simple CLI-based packet crafter to generate packet flows formatted as PCAP files. The tool supports different standard protocols and creates the necessary traces for network function configuration and testing. It allows creating PCAPs for worst and best case scenarios with all unique flows or following flow distributions published elsewhere. In this demo, we feature BB-Gen as used by the MACSAD development team to test P4-based software switch pipelines.


Biondi, P. (2008). Welcome to scapy's documentation!

Bosshart, P., Daly, D., Gibb, G., Izzard, M., McKeown, N., Rexford, J., Schlesinger, C., Talayco, D., Vahdat, A., Varghese, G., and Walker, D. (2014). P4: Programming protocol-independent packet processors. ACM SIGCOMM Computer Communication Review.

Botta, A., Dainotti, A., and Pescapé, A. (2012). A tool for the generation of realistic network workload for emerging networking scenarios. Computer Networks, 56(15):3531–3547.

Bradner, S. and McQuaid, J. (1999). Benchmarking methodology for network interconnect devices. RFC 2544, RFC Editor.

Csikor, L., Szalay, M., Sonkoly, B., and Toka, L. (2015a). Network Function Performance Analyzer.

Csikor, L., Szalay, M., Sonkoly, B., and Toka, L. (2015b). Nfpa: Network function performance analyzer. IEEE Conference on Network Function Virtualization and Software Dened Networks Demo Track.

DPDK (2014). Data Plane Development Kit.

Knutsson, K. (2014). RWS Synthetic Pcap Generator.

Olsson, R. (2005). Pktgen the linux packet generator. In Proceedings of the Linux Symposium, Ottawa, Canada, volume 2, pages 11–24.

OpenDataPlane (2013).

Ostinato (2010). Ostinato.

Patra, P. G., Rothenberg, C. E., and Pongracz, G. (2016). Macsad: Multiarchitecture compiler system for abstract dataplanes (aka partnering p4 with odp). ACM SIGCOMM Demo and Poster Session.

Patra, P. G., Rothenberg, C. E., and Pongracz, G. (2017). Macsad: High IEEE HPSR High Performance performance dataplane applications on the move. Switching and Routing.

Tcpdump (2010). Tcpdump.
Como Citar

Selecione um Formato
CESEN, Fabricio; PATRA, P. Gyanesh; ROTHENBERG, Christian. BB-Gen: A Packet Crafter for Data Plane Evaluation. In: SALÃO DE FERRAMENTAS - SIMPÓSIO BRASILEIRO DE REDES DE COMPUTADORES E SISTEMAS DISTRIBUÍDOS (SBRC), 1. , 2018, Campos do Jordão. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2018 . ISSN 2177-9384. DOI: