capturing pcap with 10 gig card

14 views
Skip to first unread message

Rawan Kersh

unread,
Sep 29, 2024, 2:30:19 AM9/29/24
to PcapPlusPlus support
Hi 
I'm using your library to capture UDP packets, I'm using a packet list (vector) like in your tutorial and then writing the packets to a pcap file.
I have heavy traffic so I have a lot of drops, is there a way to optimize the grabbing ? 
I'm only grabbing for a couple of milliseconds then I'm stopping writing to a file and exiting,
so the only bottleneck is in capture.

PcapPlusPlus Support

unread,
Sep 29, 2024, 4:19:25 AM9/29/24
to Rawan Kersh, PcapPlusPlus support
Hi Rawan,

If you're capturing heavy traffic, libpcap is probably not the right tool. You should consider using DPDK.
You can read about PcapPlusPlus DPDK support here: https://pcapplusplus.github.io/docs/dpdk

Thanks,
PcapPlusPlus maintainer


--
You received this message because you are subscribed to the Google Groups "PcapPlusPlus support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pcapplusplus-sup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pcapplusplus-support/e66d7fb2-e0f2-49d1-b3ad-e3c0759bc86fn%40googlegroups.com.

Rawan Kersh

unread,
Sep 29, 2024, 8:35:22 AM9/29/24
to PcapPlusPlus support
my application must run on windows. is there another way to optimize ?

PcapPlusPlus Support

unread,
Oct 2, 2024, 4:25:21 AM10/2/24
to Rawan Kersh, PcapPlusPlus support
Unfortunately I don't know a way to capture such heavy traffic on Windows...

Thanks,
PcapPlusPlus maintainer


Reply all
Reply to author
Forward
0 new messages