Mailing List Archive

PF_RING (Vanilla) latency
Hello,




Just completed a simple test and I'm not sure I'm getting the expected results..

I'm unis pfring_recv() to collects packets and then doing immediately pfring_send() to send

them back (on a different ring/ interface).




Measuring this with an external sniffer shows around 1 second delay between

the time that the packet was received and sent. This is the only process running on the PC (Core i7)




1. Does this makes any scene?

2. What can I do to speed things to a reasonable speed ?




Thank you,

Eitan.
Re: PF_RING (Vanilla) latency [ In reply to ]
Hi Eitan
did you try setting the pfring_send flush_packet parameter to 1?

int pfring_send(pfring *ring, char *pkt, u_int pkt_len, u_int8_t flush_packet);

Alfredo

> On 15 Aug 2019, at 08:42, Eitan Michaelson <eitanm@me.com> wrote:
>
> Hello,
>
> Just completed a simple test and I'm not sure I'm getting the expected results..
> I'm unis pfring_recv() to collects packets and then doing immediately pfring_send() to send
> them back (on a different ring/ interface).
>
> Measuring this with an external sniffer shows around 1 second delay between
> the time that the packet was received and sent. This is the only process running on the PC (Core i7)
>
> 1. Does this makes any scene?
> 2. What can I do to speed things to a reasonable speed ?
>
> Thank you,
> Eitan.
>
> _______________________________________________
> Ntop-dev mailing list
> Ntop-dev@listgateway.unipi.it <mailto:Ntop-dev@listgateway.unipi.it>
> http://listgateway.unipi.it/mailman/listinfo/ntop-dev <http://listgateway.unipi.it/mailman/listinfo/ntop-dev>