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:
- Start OpenVSwitch service:
[root@localhost mininet-qnet-tap]# service openvswitch start - [root@localhost mininet-qnet-tap]# cd ~/qnet/mininet-qnet-tap
- [root@localhost mininet-qnet-tap]# screen -RD
- 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 - 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 - 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
... - TCP Bandwidth measurement:
- 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 - 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
- At the second screen switch (on node4) to second host 'out' run server part of 'iperf':
- UDP Bandwidth, Jitter and Lost/Total Datagrams measurement:
- 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 - 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
- At the second screen (on node4) switch to second host 'out' run server part of 'iperf':
- Test connectivity (on node1):