[dpdk-users] pktgen - IP address randomness

Chris Hall chris.hall at stackpath.com
Tue May 23 01:31:30 CEST 2017


Hello,

pktgen-3.2.4

I Looking to get as much randomness out of src ip’s as possible. Using this config in lua…

        pktgen.src_ip('0', 'start',"0.0.0.1");
        pktgen.src_ip('0', 'min', "0.0.0.1");
        pktgen.src_ip('0', 'max', "255.255.255.254");
        pktgen.src_ip('0', 'inc', "1.1.1.1");

running a packet capture of 5Million packets on the receiving host, parsing the pcap file, based on source ip, seems I can only get about 32769 uniq ip's, (each connected about 150 times).

As a comparison I used hping3 with --rand-source option (5million packets) I can get about 4942744 uniq ip’s.

Is there a configure option(s) somewhere that could be tuned for more randomness or is the above parms just wrong ?

Thanks much.

  *   Chris





More information about the users mailing list