[Click] How to make a fast multi-core UDP generator ??

borkmann at iogearbox.net borkmann at iogearbox.net
Fri Oct 14 11:24:36 EDT 2011


Hi Fabrice,

Quoting Fabrice Schuler <fabrice.schuler at inrialpes.fr>:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/13/11 16:37, borkmann at iogearbox.net wrote:
>
>> Well, or maybe not. ;-) I just got an email with this:
>>
>> trafgen -d p1p1 -c /etc/netsniff-ng/trafgen/nst_udp_pkt_18.txf -b 0
>> trafgen -d p1p1 -c /etc/netsniff-ng/trafgen/nst_udp_pkt_18.txf -b 1
>>
>> Sustained rate at: 1.416mps...
>>
>
> Hello,
>
> I am also trying to generate as much packets as possible - on a 10G
> link, and have the following questions :
>  - Could you provide me your nst_udp_pkt_18.txf configuration file, as
> the one I wrote seems very slow
>  - How do you measure the sustained rate ? With Click or with another tool ?
>  - Why not using Click to generate (for tests purpose), as Schule was
> trying to do ?
>  - Does anyone know if there is a Linux implementation of netmap ?
>
> Any help will be greatly considered !

trafgen from http://netsniff-ng.org has nothing to do with Click or netmap and
works from userspace without patching the kernel. Ronald W. Henderson from
NST reported this rate to me, so I suggest to ask him for his specific system
configuration. You will find his contact info the netsniff-ng THANKS file btw.
As far as I know, the rate was measured in the following way ... you have a
traffic source (i.e., a running pktgen, trafgen, or netmap) and a  
traffic sink. Both
are directly connected and on the sink, you measure the rate that is received
(in the kernel) on your NIC driver via profcs. This can be done with ifpps for
instance, or with a simple script that parses the procfs file.

> Thanks,
> Fabrice
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (OpenBSD)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQEcBAEBAgAGBQJOmEzEAAoJEL2/ouHeevJ4AHMH/0RSsf2KnvzjptHn9MpXWxNm
> 22eL4hAY0cFUfjXnABdr5TEJYexS0/LxaveLVeueRr24jv0LhJ8gAfGfdm465qi0
> BJegCT6j+T0Carhx4zFWzWfYYsh36KqPtH/nKgLy4bxj7Ogx8frUWzrErViMQB+Z
> 6a3rf4SSX4WEsXuT8VmEq2LEMqULhr0vIbbXFiI+PtGCQiWH9k4osH0LDRzoZgHt
> nLsFBW4fWdOxFxSP2yXwrwDePN1uHluY+AonTs+v7qhvMjDj+JikY872pbE67zwY
> DT3DrpWUwiM+ezVgw2l6GY/p4L2X9R0jGRRIrTA+e7Zp8+RntyyK43jke1l6+OQ=
> =dxhX
> -----END PGP SIGNATURE-----
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>






More information about the click mailing list