Created
November 15, 2016 16:21
-
-
Save sora/04e5f8800fb1c83249e7d6a66950877d to your computer and use it in GitHub Desktop.
performance evaluation (TX: netmap, RX: mgcap)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ifname="enp1s0f1" | |
ip_addr="192.168.100.13" | |
mtu_size="1500" | |
echo "${ifname} is assigned as ${ip_addr}." | |
sudo ifconfig ${ifname} ${ip_addr} netmask 255.255.255.0 up | |
echo "MTU of ${ifname} is changed into ${mtu_size}" | |
sudo ifconfig ${ifname} mtu ${mtu_size} | |
echo "Disable Flow Control on x550." | |
sudo ethtool --pause ${ifname} rx off tx off | |
echo "Stop daemons." | |
sudo service apparmor stop | |
sudo service ufw stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
pkt_gen="/home/sora/netmap/pkt-gen" | |
ifname="ix0" | |
me_ip_addr="192.168.200.1-192.168.231.254" | |
#me_ip_addr="192.168.100.12" | |
gai_ip_addr="192.168.100.13" | |
me_mac_addr="00:11:22:33:44:55" | |
gai_mac_addr="00:aa:bb:cc:dd:ee" | |
rate=14880950 | |
length=60 | |
count=$((${rate}*30)) ## 30 sec for testing | |
sudo ${pkt_gen} -i ${ifname} -f tx -n ${count} -l ${length} -d ${gai_ip_addr} -s ${me_ip_addr} -D ${gai_mac_addr} -S ${me_mac_addr} -R ${rate} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
pkt_gen="/home/sora/netmap/pkt-gen" | |
ifname="ix0" | |
#me_ip_addr="192.168.200.1-192.168.231.254" | |
me_ip_addr="192.168.100.12" | |
gai_ip_addr="192.168.100.13" | |
me_mac_addr="00:11:22:33:44:55" | |
gai_mac_addr="00:aa:bb:cc:dd:ee" | |
rate=14880950 | |
length=60 | |
count=$((${rate}*30)) ## 10 sec for testing | |
#count=100 ## 10 sec for testing | |
sudo ${pkt_gen} -i ${ifname} -f tx -n ${count} -l ${length} -d ${gai_ip_addr} -s ${me_ip_addr} -D ${gai_mac_addr} -S ${me_mac_addr} -R ${rate} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment