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

Testing 4 hosts

by Oleg Sadov last modified Feb 13, 2018 06:06 AM

All actions are done under the 'root' user.

on each machine:

  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  4-host_raw-tcp.yaml, 4-host_tcp.yaml, 4-host_raw-udp.yaml and 4-host_raw-udp.yaml, for ex.:
    [root@localhost mininet-qnet-tap]# rm -rf kw?; python mininet-qnet-tap.py defaults-env.yaml 4-host_udp.yaml hX
    mininet>
    Where X=0,1,2,3 for node1,node2,node3,node4 correspondingly 

    1. Test connectivity (on node1):
      mininet> in ping 10.0.0.2
      mininet> in ping 10.0.0.11
      mininet> in ping 10.0.0.12
    2. Test "Latency" for different packages sizes from default 56 to max. 65507, keeping in mind size of ICMP header = 8 bytes. For ex.(on node1):
      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 (on node4) 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 (on node1) '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 (on node4) 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(on node1) 'iperf' client with bandwidth test traffic 1, 10, 100 and 1000 Mbit/s, for ex.:
        mininet> in ./tests/iperf_udp_clt 100m