P4TG 2.0: A Major Upgrade for Network Testing

Sunday 16 March 2025


The latest iteration of P4TG, a hardware-based traffic generator, has been unveiled with a slew of new features and improvements. The device, designed for testing network devices and applications, can now generate packets encapsulated in a variety of protocols, including VLAN, QinQ, VxLAN, MPLS, and SRv6.


The ability to generate packets using these protocols is a significant upgrade from the initial version of P4TG, which was limited to Ethernet and IPv4 headers. This expansion allows network testers to simulate real-world scenarios more accurately, making it easier to evaluate the performance and behavior of network devices under various conditions.


In addition to its expanded protocol support, P4TG’s latest iteration also boasts improved user experience features. The device now includes automated ARP replies, which facilitate traffic generation in IPv4 networks by automatically responding to ARP requests. This feature saves testers time and effort by eliminating the need to manually configure ARP responses.


Another notable improvement is the addition of a test profile system, which allows users to easily select pre-defined test scenarios for network devices. The current set of profiles includes an IMIX distribution, which mimics real-world internet traffic patterns, as well as an RFC 2544 benchmarking suite, which provides standardized tests for evaluating network device performance.


P4TG’s control plane has also been overhauled with a rewritten interface in Rust, making it more robust and efficient. This change is part of the larger effort to improve the user experience and make P4TG easier to integrate into existing network environments.


In terms of performance, P4TG continues to impress, capable of generating traffic at rates of up to 1Tb/s on its ToFino ASIC-based hardware. The device’s ability to generate accurate traffic patterns while maintaining high speeds has made it a popular choice among network testers and researchers.


The future of P4TG looks bright, with plans to integrate NETCONF support and automated NDP handling in the works. These additions will further enhance the device’s capabilities and make it even more versatile for network testing applications.


Overall, the latest iteration of P4TG represents a significant step forward for hardware-based traffic generators. Its expanded protocol support, improved user experience features, and robust control plane make it an attractive choice for anyone involved in network testing or research.


Cite this article: “P4TG 2.0: A Major Upgrade for Network Testing”, The Science Archive, 2025.


Network Devices, Traffic Generator, Protocol Support, Vlan, Qinq, Vxlan, Mpls, Srv6, Ethernet, Ipv4


Reference: Fabian Ihle, Etienne Zink, Steffen Lindner, Michael Menth, “Enhancements to P4TG: Protocols, Performance, and Automation” (2025).


Leave a Reply