Quantcast
Channel: Embedded Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 3140

DPDK - capturing packets from multiple ports - timestamping / ordering

$
0
0

Hello,

 

I am trying to build a capture program (tcpdump-like) using dpdk.

Packet ordering and timestamps are important for this application in order to calculate some network KPIs (Syn Ack time for instance).

 

So, basically, the problem is to capture, timestamp and sort packets from 2 ethernet ports.

 

rte_eth_rx_burst retrieves burst of packets from one port.

If I have 2 ports, I have to call rte_eth_rx_burst on each port ; unfortunately I have no way to order packets from these two sets of packets.

 

A this point, I think I (either) miss:

- a way to bind two RX port (as far as I could see, dpdk bonding feature won't help), so that it **magically** deals with packet ordering

- a way to set packet timestamps at the very low level - If someone knows how to do it, an example would really be welcome.

- another approach ?

 

Thanks for your help!

Thierry

 

PS:

Running tests with

Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)


Viewing all articles
Browse latest Browse all 3140

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>