| 1 |
#! /bin/csh |
| 2 |
|
| 3 |
rm -f data* flows* |
| 4 |
rm -f pktsVsBytes/flows* pktsVsBytes/tmp* pktsVsBytes/dropRate* |
| 5 |
|
| 6 |
set t1=1000 |
| 7 |
foreach try ( 2 ) |
| 8 |
echo "Doing iteration $try, for RED in packet mode." |
| 9 |
## This uses topology netPktsVsBytes1 for packet mode. |
| 10 |
foreach flows ( 4 8 12 16 20 ) |
| 11 |
echo "Doing flows ${flows}" |
| 12 |
ns red-pd.tcl one netPktsVsBytes1 PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1 enable 0 |
| 13 |
mv one.netPktsVsBytes1.PktsVsBytes.0.flows flows0-${try}-${flows} |
| 14 |
|
| 15 |
ns red-pd.tcl one netPktsVsBytes1 PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1 |
| 16 |
mv one.netPktsVsBytes1.PktsVsBytes.1.flows flows1-${try}-${flows} |
| 17 |
|
| 18 |
end |
| 19 |
pktsVsBytes/pktsVsBytesA.pl flows0 $t1 $try 0 |
| 20 |
pktsVsBytes/pktsVsBytesA.pl flows1 $t1 $try 1 |
| 21 |
end |
| 22 |
|
| 23 |
foreach try ( 1 ) |
| 24 |
echo "Doing iteration $try, for RED in byte mode." |
| 25 |
foreach flows ( 4 8 12 16 20 ) |
| 26 |
echo "Doing flows ${flows}" |
| 27 |
ns red-pd.tcl one netPktsVsBytes PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1 enable 0 |
| 28 |
mv one.netPktsVsBytes.PktsVsBytes.0.flows flows0-${try}-${flows} |
| 29 |
|
| 30 |
ns red-pd.tcl one netPktsVsBytes PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1 |
| 31 |
mv one.netPktsVsBytes.PktsVsBytes.1.flows flows1-${try}-${flows} |
| 32 |
|
| 33 |
end |
| 34 |
pktsVsBytes/pktsVsBytesA.pl flows0 $t1 $try 0 |
| 35 |
pktsVsBytes/pktsVsBytesA.pl flows1 $t1 $try 1 |
| 36 |
end |
| 37 |
|
| 38 |
mv flows* data* pktsVsBytes |
| 39 |
cd pktsVsBytes |
| 40 |
gnuplot pktsVsBytesA.gp |
| 41 |
gv pktsVsBytes0-A.ps & |
| 42 |
gv pktsVsBytes1-A.ps & |
| 43 |
gv pktsVsBytes0.ps & |
| 44 |
gv pktsVsBytes1.ps & |
| 45 |
|
| 46 |
cd .. |
| 47 |
|