You are here: Home / Projects / Software Defined Network / QNet / Testing / QCrypt AES / Testing

Testing

by Oleg Sadov last modified Feb 06, 2018 11:34 AM

All actions are done under the 'root' user.

  1. Start OpenVSwitch service:
    [root@localhost mininet-qnet-tap]# service openvswitch start
  2. [root@localhost mininet-qnet-tap]# cd ~/qnet/mininet-qnet-tap
  3. [root@localhost mininet-qnet-tap]# screen -RD
  4. Run test script on the first screen for single-host-direct.yaml, single-host-raw-tcp.yaml, single-host-tcp.yaml, single-host-raw-udp.yaml and single-host-raw-udp.yaml, for ex.:
    [root@localhost mininet-qnet-tap]# python mininet-qnet-tap.py defaults.yaml single-host-direct.yaml h1
    mininet>
    1. Test connectivity:
      mininet> pingall
      *** Ping: testing ping reachability
      in -> out
      out -> in
      *** Results: 0% dropped (2/2 received)
    2. Test "Latency" for different packages sizes from default 56 to max. 65507, keeping in mind size of ICMP header = 8 bytes. For ex.:
      mininet> in tests/pings
      ping -c 10 -M dont -s 56 10.0.0.2
      PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
      64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=1.99 ms
      64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=0.128 ms
      64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=0.129 ms
      64 bytes from 10.0.0.2: icmp_seq=4 ttl=64 time=0.143 ms
      ...
    3. TCP Bandwidth measurement:
      1. At the second screen switch to second host 'out' run server part of 'iperf':
        [root@localhost mininet-qnet-tap]# sh switch_to_vhost.sh out
        [root@mininet:out at localhost; mininet-qnet-tap]$ ./tests/iperf_tcp_srv
      2. On the first screen 'iperf' client with bandwidth test traffic 1, 10, 100 and 1000 Mbit/s, for ex.:
        mininet> in ./tests/iperf_tcp_clt 1m
    4. UDP Bandwidth, Jitter and Lost/Total Datagrams measurement:
      1. At the second screen switch to second host 'out' run server part of 'iperf':
        [root@mininet:out at localhost; mininet-qnet-tap]$ ./tests/iperf_udp_srv
      2. On the first screen 'iperf' client with bandwidth test traffic 1, 10, 100 and 1000 Mbit/s, for ex.:
        mininet> in ./tests/iperf_udp_clt 100m