File: testFRp_tcp.sh

package info (click to toggle)
ns2 2.35%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 78,864 kB
  • sloc: cpp: 172,923; tcl: 107,130; perl: 6,391; sh: 6,143; ansic: 5,846; makefile: 818; awk: 525; csh: 355
file content (22 lines) | stat: -rwxr-xr-x 593 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/csh

rm -f testFRp_tcp/flows* testFRp_tcp/tmp* testFRp_tcp/dropRate* testFRp_tcp/data*

set t1=1000
foreach p ( 0.01 0.02 0.03 0.04 0.05)
	echo "Doing drop rate ${p}"
	foreach rate (0.25 0.5 0.75 1.0 1.25 1.5 1.75 2.0 3.0 4.0 5.0 )
		echo "Doing gamma ${rate}"
		ns red-pd.tcl one netTestFRp TestFRp p ${p} gamma ${rate} ftype tcp testUnresp 0 verbose -1 time $t1
		mv one.netTestFRp.TestFRp.1.flows flows-${p}-${rate}
	end
	testFRp_tcp/testFRp_tcp.pl flows-${p} ${p} $t1 > data-${p}
end

mv flows-* data-* testFRp_tcp
cd testFRp_tcp
gnuplot testFRp_tcp.gp
gv testFRp_tcp.ps &

cd ..