Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
0d635f53
Commit
0d635f53
authored
Nov 25, 2020
by
Hejing Li
Browse files
ns3-dctcp.sh: add comment
parent
eed0b85b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
+18
-12
experiments/pyexps/ns3-dctcp.sh
experiments/pyexps/ns3-dctcp.sh
+18
-12
No files found.
experiments/pyexps/ns3-dctcp.sh
View file @
0d635f53
#!/bin/bash
#!/bin/bash
##### build dctcp-modes.cc example in ns-3
##### cp cp examples/tcp/dctcp-modes.cc scratch/dctcp-modes.cc
##### ./waf
##### ./ns3-dctcp.sh [num_core]
EHSIM_BASE
=
"
$(
readlink
-f
$(
dirname
${
BASH_SOURCE
[0]
}
)
/../..
)
"
EHSIM_BASE
=
"
$(
readlink
-f
$(
dirname
${
BASH_SOURCE
[0]
}
)
/../..
)
"
NS3_BASE
=
"
$EHSIM_BASE
/ns-3"
NS3_BASE
=
"
$EHSIM_BASE
/ns-3"
OUTDIR_BASE
=
"
$EHSIM_BASE
/experiments/pyexps"
cd
$NS3_BASE
cd
$NS3_BASE
mtu
=
1500
k_start
=
0
k_start
=
0
k_end
=
199680
#
k_end=199680
#
k_end=0
k_end
=
0
k_step
=
8320
k_step
=
8320
#mtus="1500 4000 9000"
mtus
=
"1500"
cores
=
$1
cores
=
$1
echo
$cores
echo
$cores
...
@@ -16,13 +25,15 @@ echo $cores
...
@@ -16,13 +25,15 @@ echo $cores
proc
=
0
proc
=
0
pids
=
""
pids
=
""
for
k
in
$(
seq
$k_start
$k_step
$k_end
)
#for k in $(seq $k_start $k_step $k_end)
for
m
in
$mtus
do
do
#echo $k
#echo $k
for
m
in
1500 4000 9000
# MTU size
#for m in 1500 4000 9000 # MTU size
for
k
in
$(
seq
$k_start
$k_step
$k_end
)
do
do
echo
"
K
:
$
k
MtU:
$m
"
echo
"
MtU
:
$
m
K:
$k
"
./cosim-dctcp-run.sh
$k
$m
&
./cosim-dctcp-run.sh
$k
$m
pid
=
$!
pid
=
$!
pids
=
"
$pids
$pid
"
pids
=
"
$pids
$pid
"
proc
=
$((
$proc
+
1
))
proc
=
$((
$proc
+
1
))
...
@@ -38,11 +49,6 @@ do
...
@@ -38,11 +49,6 @@ do
done
done
done
done
for
p
in
$pids
;
do
wait
$p
done
cleanup
()
{
cleanup
()
{
echo
Cleaning up
echo
Cleaning up
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment