[dpdk-users] pktgen - IP address randomness

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



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

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

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