Add lispflowmapping performance tests 30/26930/8
authorLorand Jakab <lojakab@cisco.com>
Thu, 1 Oct 2015 14:44:42 +0000 (17:44 +0300)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 6 Oct 2015 23:58:55 +0000 (23:58 +0000)
commit611a34523b1d9bc8e307c1f7c7ec87f47831a58a
treec1829b19930f01db7d3c329f417e717c624ebe01
parent2637986fa551436dd633f28f5ae4d2c39fa785e2
Add lispflowmapping performance tests

Add test to detect regressions in mapping resolution performance of the
Mapping Service when used through the LISP Southbound Plugin.

First, add a script (loosely based on Jan Medved's
flow_config_blaster.py) to create 10.000 simple IPv4-to-IPv4 mappings to
ODL through RPCs.

Second and a script to generate a .pcap file containing 10.000
Map-Requests for each of those mappings in a randomized order. The .pcap
file can then be replayed at arbitrary speeds.

Third, use `udpreplay` to send the prerecorded lookup requests in the
.pcap file at a rate of 100.000 packets/second for 1000 times for a
total of 100 seconds.

Finally, compute the reply rate by reading the Tx packet counter from
the southbound statisitics using RPC and dividing it by the number of
seconds the packet generater was active.

Change-Id: Ib4de1782aa32b7e010f22e12fbd04b2f53579fb1
Signed-off-by: Lorand Jakab <lojakab@cisco.com>
csit/libraries/Utils.robot
csit/suites/lispflowmapping/performance/010_Southbound_MapRequest.robot [new file with mode: 0644]
csit/variables/Variables.py
tools/odl-lispflowmapping-performance-tests/create_map_request_pcap.py [new file with mode: 0755]
tools/odl-lispflowmapping-performance-tests/mapping_blaster.py [new file with mode: 0755]