Created
November 7, 2018 13:46
-
-
Save raffysommy/6873f989beb1f57d5e1cc0bcc4c1a694 to your computer and use it in GitHub Desktop.
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 | |
cd /home/raffaele/network-testing/pktgen | |
case "$1" in | |
"-36") | |
./pktgen_sample05_flow_per_thread.sh -i enp1s0f0 -s 64 -d 192.168.1.20 -m 00:0a:f7:ec:08:a8 -t 4 -f 0 -n 0 -b 32; | |
exit 0; | |
;; | |
"-25,6") | |
export DELAY=10000; | |
./pktgen_sample05_flow_per_thread.sh -i enp1s0f0 -s 64 -d 192.168.1.20 -m 00:0a:f7:ec:08:a8 -t 8 -f 0 -n 0 -b 32; | |
exit 0; | |
;; | |
"-17,7") | |
export DELAY=15000; | |
./pktgen_sample05_flow_per_thread.sh -i enp1s0f0 -s 64 -d 192.168.1.20 -m 00:0a:f7:ec:08:a8 -t 8 -f 0 -n 0 -b 32; | |
exit 0; | |
;; | |
"-12,8") | |
export DELAY=20000; | |
./pktgen_sample05_flow_per_thread.sh -i enp1s0f0 -s 64 -d 192.168.1.20 -m 00:0a:f7:ec:08:a8 -t 8 -f 0 -n 0 -b 32; | |
exit 0; | |
;; | |
"-2,5") | |
export DELAY=100000; | |
./pktgen_sample05_flow_per_thread.sh -i enp1s0f0 -s 64 -d 192.168.1.20 -m 00:0a:f7:ec:08:a8 -t 8 -f 0 -n 0 -b 32; | |
exit 0; | |
;; | |
"-1,7") | |
export DELAY=150000; | |
./pktgen_sample05_flow_per_thread.sh -i enp1s0f0 -s 64 -d 192.168.1.20 -m 00:0a:f7:ec:08:a8 -t 8 -f 0 -n 0 -b 32; | |
exit 0; | |
;; | |
"-1,2") | |
export DELAY=200000; | |
./pktgen_sample05_flow_per_thread.sh -i enp1s0f0 -s 64 -d 192.168.1.20 -m 00:0a:f7:ec:08:a8 -t 8 -f 0 -n 0 -b 32; | |
exit 0; | |
;; | |
"-0,1") | |
export DELAY=2000000; | |
./pktgen_sample05_flow_per_thread.sh -i enp1s0f0 -s 64 -d 192.168.1.20 -m 00:0a:f7:ec:08:a8 -t 8 -f 0 -n 0 -b 32; | |
exit 0; | |
;; | |
*) | |
echo "You must specify the rate." | |
exit 0 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment