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
bf60b96e
Commit
bf60b96e
authored
Jan 23, 2024
by
Antoine Kaufmann
Committed by
Hejing Li
Feb 01, 2024
Browse files
experiments: update e2e_bgsplit experiment with working partitions
parent
a530c146
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
18 deletions
+29
-18
experiments/pyexps/e2e_bgsplit.py
experiments/pyexps/e2e_bgsplit.py
+29
-18
No files found.
experiments/pyexps/e2e_bgsplit.py
View file @
bf60b96e
...
...
@@ -31,9 +31,9 @@ from simbricks.orchestration.e2e_topologies import (
DCFatTree
,
add_contig_bg
)
random
.
seed
(
42
)
e
=
exp
.
Experiment
(
'e2e_bg'
)
splits
=
[
1
,
2
,
4
]
options
=
{
'ns3::TcpSocket::SegmentSize'
:
'1448'
,
...
...
@@ -41,19 +41,30 @@ options = {
'ns3::TcpSocket::RcvBufSize'
:
'524288'
,
}
topology
=
DCFatTree
(
experiments
=
[]
for
N
in
splits
:
e
=
exp
.
Experiment
(
f
'e2e_bgsplit-
{
N
}
'
)
# Make sure background hosts are placed the same way
random
.
seed
(
42
)
# Create empty topology first
topology
=
DCFatTree
(
n_spine_sw
=
1
,
n_agg_bl
=
2
,
n_agg_sw
=
1
,
n_agg_racks
=
1
,
h_per_rack
=
1
,
n_agg_racks
=
2
,
h_per_rack
=
1
0
,
)
add_contig_bg
(
topology
)
nets
=
e2e_part
.
partition
(
topology
,
2
)
for
net
in
nets
:
# fill up with background traffic hosts
add_contig_bg
(
topology
)
# Partition into N ns-3 processes
nets
=
e2e_part
.
partition
(
topology
,
N
)
for
net
in
nets
:
net
.
e2e_global
.
stop_time
=
'1s'
net
.
opt
=
' '
.
join
([
f
'--
{
o
[
0
]
}
=
{
o
[
1
]
}
'
for
o
in
options
.
items
()])
net
.
wait
=
True
e
.
add_network
(
net
)
net
.
init_network
()
experiments
=
[
e
]
experiments
.
append
(
e
)
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