THE LINUX FOUNDATION PROJECTS

Adam Cervenka on Building a DPDK Data Acquisition Library at CERN

By November 23, 2026Community Spotlight
DPDK Community Spotlight: Adam Cervenka, building a DPDK data acquisition library at CERN

Adam Cervenka on Building a DPDK Data Acquisition Library at CERN

TL;DR: A CERN intern built a reusable DPDK library for streaming detector data over Ethernet. Here is what he learned about DPDK, NICs and hardware, including an 800 Gbps test that began to degrade after about five minutes.

Adam Cervenka studies computer science and mathematics at Masaryk University in Brno, Czechia. He spent his internship, a CERN Technical Studentship that ran from October 2025 to August 2026, in CERN’s EP-DT group, writing a DPDK library that physics experiments can use to stream detector data over Ethernet. His supervisor was Roland Sipos, a computing engineer at CERN, who presented the lab’s DPDK work at DPDK Summit 2026 in Stockholm.

Background

Adam got into programming through competitive programming at a mathematics high school. He had done two industrial internships in software development before CERN, but nothing like a high-throughput networking library for physics data acquisition (DAQ). He came from a mostly theoretical background and expected the project to pull him into low-level programming, hardware details and debugging lost packets.

The project

His starting point was DPDKDAQ, which is based on DUNE-DAQ’s dpdklibs and lives in its own public repository. It is C and C++ code and tests written to support high-speed networking R&D for DAQ applications. The motivation comes from the DUNE use case, where DPDK is actively used within its Readout system. Adam’s project aimed to generalize that use case and to support other small and medium-sized experiments with similar needs and requirements.

The goal was a reusable library for multi-100 Gbps streaming over Ethernet and UDP on commercial off-the-shelf hardware. It had to be widely configurable and to integrate with DAQling, the open-source C++ DAQ framework developed at CERN and used by experiments including FASER, for control and monitoring. It also needed an emulator module that produces fake data, so teams can test their infrastructure away from the detector. In Stockholm, Roland presented it as a common library modeled on the DUNE readout, meant to hide the networking layer from small and medium-sized experiments. DAQ teams at different experiments end up solving much the same problems, and there is little point in each of them starting from nothing.

Learning DPDK

Adam first had to understand how DPDK handles traffic without the kernel. The documentation felt heavy at first. What he had recently learned about operating systems helped, as did LLMs, which he used to explain the documentation, review code fragments, debug and propose new strategies. Talking parts of the code through with them pointed him to several places where bugs could hide. He fixed those and refactored the code toward modern C++.

Configuring, starting and resetting the resources DPDK manages has to happen in a particular order, and it is easy to get wrong. The library wraps the EAL, the Ethernet interfaces, their queues and the memory pool in C++ classes, and RAII makes sure cleanup runs when an object is destroyed.

Adam also had to think carefully about rte_eth_tx_burst() and who owns an mbuf after the call. Mbufs the call consumes belong to the driver from that point, and anything it does not consume stays with the caller to retry or free. It is easy to find code that reuses mbufs already handed to the NIC, or frees them a second time.

Hardware behavior

Some problems had nothing to do with the code. Adam worked with DPDK 25 and 26, using vfio-pci for the Intel E810-C and the kernel’s mlx5_core driver for the NVIDIA ConnectX-5, ConnectX-7 and ConnectX-8. The first packets after an interface started kept going missing, and the cause turned out to be link negotiation between the two connected NICs. The fix was to wait for link negotiation to finish before transmitting, polling with rte_eth_link_get_nowait().

On shutdown, an Intel E810-C bound to the vfio-pci user space driver went down as soon as the application finished. An NVIDIA ConnectX-5 in bifurcated mode, shared between the kernel and the application, kept listening to traffic. Running bifurcated also kept Linux tools like ifconfig and ethtool available. If the program was killed instead of exiting cleanly, the NICs could be left in an inconsistent state. After one forced exit, ifconfig on the ConnectX-5 still showed its interface as RUNNING with nothing on the other end, though Adam is not sure that was the cause.

Testing

A slot that halved throughput

Adam’s first application ran a TX and RX connection between two servers. When he scaled it up, throughput stalled at about half the link bandwidth, and he traced it to one NIC.

“I could have tried whatever code optimization, but it would not have helped,” Adam says. “The device was plugged into an expansion slot with reduced electrical capacity, so it could not transfer all the data. The solution was to open the server and plug the NIC in elsewhere.”

The NIC sat in a physical x16 slot that was wired as x8.

Packet loss on the ConnectX-5

After the move, the Intel NIC reached 100 Gbps. The ConnectX-5 spiked at first, then drifted down to 85 to 90 Gbps over a few tens of seconds. The missing packets showed up in the extended statistics as rx_phy_discard_packets, which counts packets the adapter drops at the physical port when it is congested and cannot absorb the incoming traffic. Their rate climbed quickly and then leveled off. The team didn’t find the cause and moved on. Adam had allocated large mempools, so he suspects the NIC could not keep up with the pace of incoming packets and move them to memory. He did not raise the issue on a DPDK mailing list or with the mlx5 maintainers, since Roland suggested it might come from the team’s custom driver installation.

Reaching 800 Gbps

The 400 Gbps NVIDIA ConnectX-7 NICs came next, and the servers held them back: they were PCIe Gen3, and the motherboard couldn’t supply the transfer rate. A newer server took a while to arrive. For the final test, the two 400G NICs sat on one end of a breakout cable with an 800 Gbps NVIDIA ConnectX-8 NIC on the other. The 800G NIC’s single physical port was split into several virtual interfaces, each with part of the bandwidth. Once the team had worked out which interface connected to which, the setup reached 800 Gbps, with a transmitter on one side of the cable and a receiver on the other. Each side used 80 queues and 20 worker lcores, with 7,242-byte packets. After about five minutes throughput began to degrade, and there was no time to investigate because the server arrived shortly before Adam left.

The emulator

The emulator module was the part that didn’t scale. It generated payloads and passed them to the transmitter over a message queue, and its implementation from DAQling dynamically allocated too many memory buffers across tens of threads.

Integration

The library was delivered with the functionality planned. Through DAQling it gets configuration management, control of distributed applications and operational monitoring with Grafana dashboards. Interface queues are pinned to specific logical cores to keep resources isolated, and traffic can be steered to different queues by header fields using rte_flow, without RSS. It also handles ARP: ARP traffic can be steered to a dedicated queue, which replies to requests for the interface’s MAC address. A worker can also send gratuitous ARP, repeatedly advertising the interface MAC address by broadcast, which could help in more complex distributed setups. The ARP support was tested only at 100 Gbps. The DAQling plug-ins and integration live in a separate public repository, daqling-dpdk, on CERN’s GitLab.

Advice for new developers

Adam’s advice to anyone put off by DPDK’s complexity is not to give up.

“The time spent trying to understand the library pays off later, when everything comes together,” he says.

He suggests reading the documentation along with the working example programs it links to, then building your program a piece at a time and watching what each change does.

Community and next steps

Adam did not engage with the DPDK community during the project, whether on the mailing lists, in Bugzilla or through patches, and says it might have helped if he had. The library’s future is open. His team has been busy with other work, though the SHiP experiment is looking at using DAQling, and possibly DPDKDAQ with it. Adam plans to finish his studies first and will probably do a networking internship next summer.

Get Involved

If Adam’s experience makes you want to engage with the DPDK community earlier than he did, these two guides are a starting point.

Review Your First Patch | Contribute Your First Patch