Chengdu Shuwei Communication Technology Co., Ltd.
Chengdu Shuwei Communication Technology Co., Ltd.
blog
Home / blog /

Company Blog About Intel DPDK Offers DIY Guide for Highperformance Network Traffic

Intel DPDK Offers DIY Guide for Highperformance Network Traffic

2026-05-17
Intel DPDK Offers DIY Guide for Highperformance Network Traffic

In a quiet corner of the lab, an unassuming single-board computer—the MinnowBoard Turbot—humbs quietly. Powered by an Intel® Atom™ processor and running Ubuntu 16.04 with pre-installed Data Plane Development Kit (DPDK) software, this compact device transforms into a powerful network traffic generator with just a few Ethernet cable connections. This isn't science fiction—it's the reality made possible by Intel®'s newly released "DPDK-in-a-Box" implementation guide.

The Power Duo: DPDK and TRex

The implementation guide centers around two critical technical components:

  • Intel® Data Plane Development Kit (DPDK): This high-performance packet processing library and NIC driver collection bypasses the Linux kernel's network stack, enabling direct user-space packet processing. The result? Dramatically improved network throughput and reduced latency—the foundation for building high-performance network applications.
  • TRex Realistic Traffic Generator: A sophisticated traffic generation tool capable of simulating complex network traffic patterns with extensive configuration options, providing reliable test environments for network device and application performance evaluation.
Hardware Selection: Balancing Cost and Performance

The guide recommends using the MinnowBoard Turbot , a single-board computer built around the Intel® Atom™ processor E3826. Its low cost and compact form factor make it ideal for the "DPDK-in-a-Box" solution, while its onboard Intel® Ethernet Controller I350 dual gigabit NICs provide the necessary hardware foundation for high-performance traffic generation.

Software Environment: Ubuntu Meets DPDK

The operating system of choice is Ubuntu 16.04 Client , pre-integrated with DPDK. This combination ensures both system usability and optimal DPDK performance.

Implementation Steps: From Hardware to Traffic Generation

The guide provides detailed instructions covering hardware connection, OS configuration, software installation, and traffic generator setup:

1. Hardware Connection and System Boot

Users learn to connect the MinnowBoard's network ports—two Intel® Ethernet Controller I350 ports for traffic generation (recommended for loopback connection) and a third port for internet access. The guide also covers peripheral connections and initial system setup.

2. NIC Information Collection

Before running DPDK or the traffic generator, users must collect NIC PCI bus information and MAC addresses through lspci and ifconfig commands—critical steps since DPDK occupation makes this information inaccessible to the Linux kernel.

3. TRex Installation

The guide provides exact command sequences for downloading and unpacking the TRex traffic generator, culminating in locating the t-rex-64 executable.

4. TRex Configuration

Users work with the sample configuration file cfg/simple_cfg.yaml , copying it to /etc/trex_cfg.yaml and editing key parameters including port limits, version specifications, interface PCI addresses, and MAC address information for port connections.

5. Platform Lcore Information

The guide emphasizes checking logical CPU core counts via cat /proc/cpuinfo to optimize CPU usage through proper -c parameter configuration.

6. Running the Traffic Generator

The command sudo ./t-rex-64 –f cap2/dns.yaml –c 1 –d 100 launches the generator, with explanations for the -f (traffic profile), -c (CPU cores), and -d (duration) parameters.

7. Results Analysis

The guide presents typical output displays during operation and after test completion, helping users interpret results.

Appendix: NIC Driver Binding and Unbinding

A dedicated section addresses situations where ifconfig fails to recognize ports due to DPDK driver occupation, providing detailed instructions for switching between DPDK and Linux kernel drivers using the setup.sh script.

Advanced Applications and Exploration

The DPDK-in-a-Box project opens numerous possibilities for network performance testing and application development:

  • Interconnecting multiple platforms for distributed testing
  • Advanced packet length configuration for granular testing
  • Latency measurement on higher-core-count platforms
  • DPDK troubleshooting and error resolution
  • Performance analysis using tools like Intel® VTune™ Amplifier
Conclusion

The Intel® DPDK-in-a-Box project delivers a cost-effective, high-performance network traffic generation solution. This implementation guide not only enables users to build custom traffic generators but also provides deep insight into DPDK's capabilities, establishing a strong foundation for future network technology research and development.

Google Analytics -->