ntop / PF_RING

High-speed packet processing framework
http://www.ntop.org
GNU Lesser General Public License v2.1
2.68k stars 353 forks source link

Add ZC support for Amazon EC2 ENA driver #941

Open tianbaoluo opened 4 months ago

tianbaoluo commented 4 months ago

I read the documentation and it seems that PF_RING ZC does not support Amazon's ENA driver. Can you add it?

cardigliano commented 4 months ago

@tianbaoluo could you describe your use case please?

tianbaoluo commented 4 months ago

@cardigliano one of the scenes, we need to implement cross-zone UDP broadcast on Amazon, and I hope to reduce the latency. I found that PF_RING ZC has best performance and is not expensive, but it does not seem to support the ENA driver (https://github.com/amzn/amzn-drivers/tree/master/kernel/linux/ena). I hope PF_RING ZC can support ENA driver.

cardigliano commented 4 months ago

@tianbaoluo please note that PF_RING ZC is a kernel-bypass technology, this means you cannot use for standard networking (e.g. sending receiving UDP traffic) unless you implement a small stack in userspace (e.g. you need at least to handle ARP traffic)

tianbaoluo commented 4 months ago

@tianbaoluo please note that PF_RING ZC is a kernel-bypass technology, this means you cannot use for standard networking (e.g. sending receiving UDP traffic) unless you implement a small stack in userspace (e.g. you need at least to handle ARP traffic)

Understood, I have implemented the UDP protocol with raw socket, but it is relatively slow.