Testing
by
Oleg Sadov
—
last modified
Feb 06, 2018 11:34 AM
All actions are done under the 'root' user.
- 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 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>- Test connectivity:
mininet> pingall
*** Ping: testing ping reachability
in -> out
out -> in
*** Results: 0% dropped (2/2 received) - 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
... - TCP Bandwidth measurement:
- 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 - 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
- At the second screen switch to second host 'out' run server part of 'iperf':
- UDP Bandwidth, Jitter and Lost/Total Datagrams measurement:
- 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 - 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
- At the second screen switch to second host 'out' run server part of 'iperf':
- Test connectivity: