summaryrefslogtreecommitdiff
path: root/code/rtt/gen_rtt_samples.sh
blob: bf1e7b0c6ad42d1f068d489095d843637dd41f0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

ranks=(1 2 3)
# manually set these two lines
streams=(11 12 8)
outdir="rtt/dur/"

for i in "${ranks[@]}"
do
	echo "getting RTT samples rank ${i}..."
	tshark -Y "tcp.stream == ${streams[$((i-1))]}" -r univ1_pt13 -Tfields -e frame.number -e tcp.analysis.ack_rtt -E header=y -E separator=, > $outdir/r${i}.csv
	#echo ${ipsa[$((i-1))]}

done
echo "done"