From Fedora Project Wiki
Description
This test is intended to do Multiple Nics Stress test
How to test
- determine the test time: testtime
- boot the virtual machine with three different modles of virtual nics: 8139,virtio,e1000
qemu-kvm -net nic,model=rtl8139... -net tap -net nic,model=e1000,... -net tap...... -net nic,model=virtio,...... -net tap...... ...
- Adjust the arp policy: use the dedicated interface hw addr to announce and response the arp packet
- echo 2 > /proc/sys/net/ipv4/conf/default/arp_ignore
- echo 2 > /proc/sys/net/ipv4/conf/default/arp_announce
- Set the max MTU for each nics
- ifconfig eth0 mtu 1500 ( for rtl8139 )
- ifconfig eth1 mtu 16110 ( for e1000 )
- ifconfig eth2 mtu 65535 ( for virtio )
- determine the guest ip address: ip1 ip2 ip3
- In the host, parallel flood ping each nics through the following commands and last for testtime seconds.
- ping -f ip1 -s {size from 0 to 1500}
- ping -f ip2 -s {size from 0 to 16110}
- ping -f ip3 -s {size form 0 to 65507}
- ping each nics to find whether it still work, the packet loss should be zero.
- ping -c 10 ip1
- ping -c 10 ip2
- ping -c 10 ip3
Expected Results
- the packet loss should be zero when ping each nics