PacketMill at ASPLOS’21

We presented our paper PacketMill: Toward per-core 100-Gbps networking at ASPLOS’21, with Alireza Farshin, Amir Roozbeh, Gerald Q. Maguire Jr. and Dejan Kostić.

At 100 Gbps, new packets arrive more than 10 times faster than a main memory access, so every cycle spent on the datapath counts. PacketMill grinds the whole packet processing stack, from the network function configuration down to the DPDK driver, and produces a binary tailored to a given network function.

It relies on two ideas. First, X-Change, a metadata model where the driver fills the packet descriptors of the application directly, instead of a generic rte_mbuf that must then be converted. Second, a pipeline of source-to-source and LLVM passes that specializes the code for the configuration.

Applied to FastClick, PacketMill increases throughput by up to 70% (36.4 Gbps) and reduces latency by up to 28% (101 µs). It runs nontrivial network functions such as a router at ~100 Gbps on a single core. We discussed it in our FOSDEM’21 talk.

▶️ Paper ; X-Change code ; patent application with Ericsson: WO2022214854