Created
December 20, 2016 12:53
-
-
Save justinc1/e3d1a64c420f643d9246aa9ce9a18d11 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 | |
# /home/justin_cinkelj/devel/mikelangelo/perf-test/dec-2016/3392.vsbase2.hlrs.de/ | |
IND=./ | |
OUTD=../outdata/ | |
# individual files time span is: | |
# run1-node0101.pcap 10:45:05.192261 - 10:46:49.561470 | |
# run1-node0102.pcap 10:45:20.754461 - 10:46:16.754582 | |
# run1-node0103.pcap 10:45:02.345936 - 10:46:22.164012 | |
# run1-node0104.pcap 10:45:20.615597 - 10:46:15.432400 | |
# 1482227105.192261 == 10:45:05.192261 | |
# 1482227160 == 10:46:00 | |
TIME0="2016-12-20 10:45:50" | |
TIME1="2016-12-20 10:46:00" | |
TIMERES=0.010 | |
NVM=4 | |
IP[1]='172.18.2.236' | |
IP[2]='172.18.2.223' | |
IP[3]='172.18.2.249' | |
IP[4]='172.18.2.242' | |
for ii in `seq 1 $NVM`; do | |
for jj in `seq 1 $NVM`; do | |
if [ "$ii" == "$jj" ]; then | |
continue | |
fi | |
tcpdump -r $IND/run1-node010${ii}.pcap host ${IP[jj]} -w $OUTD/run1-n${ii}-n${jj}.pcap | |
editcap -A "$TIME0" -B "$TIME1" -F libpcap $OUTD/run1-n${ii}-n${jj}.pcap $OUTD/run1-n${ii}-n${jj}-time.pcap | |
mkdir $OUTD/work-$ii-$jj/ | |
captcp throughput --init --mode link-layer --per-second -s $TIMERES --output-dir $OUTD/work-$ii-$jj/ $OUTD/run1-n${ii}-n${jj}-time.pcap | |
(cd $OUTD/work-$ii-$jj/ && make) | |
cp $OUTD/work-$ii-$jj/throughput.pdf $OUTD/throughput-n$ii-n$jj.pdf | |
#exit 0 | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment