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
892346ff
Commit
892346ff
authored
Feb 01, 2024
by
Hejing Li
Browse files
e2e_bg_homa: runs, ns3 not synchronized
parent
ceaab2d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
16 deletions
+30
-16
experiments/pyexps/e2e_bg_homa.py
experiments/pyexps/e2e_bg_homa.py
+15
-9
experiments/simbricks/orchestration/e2e_topologies.py
experiments/simbricks/orchestration/e2e_topologies.py
+15
-7
No files found.
experiments/pyexps/e2e_bg_homa.py
View file @
892346ff
...
@@ -42,14 +42,8 @@ options = {
...
@@ -42,14 +42,8 @@ options = {
'ns3::Ipv4GlobalRouting::RandomEcmpRouting'
:
'1'
,
'ns3::Ipv4GlobalRouting::RandomEcmpRouting'
:
'1'
,
}
}
topology
=
DCFatTree
(
n_spine_sw
=
1
,
n_agg_bl
=
4
,
n_agg_sw
=
1
,
n_agg_racks
=
4
,
h_per_rack
=
10
,
)
experiments
=
[]
for
h
in
types_of_host
:
for
h
in
types_of_host
:
for
p
in
types_of_protocol
:
for
p
in
types_of_protocol
:
...
@@ -69,13 +63,25 @@ for h in types_of_host:
...
@@ -69,13 +63,25 @@ for h in types_of_host:
e
.
checkpoint
=
True
e
.
checkpoint
=
True
else
:
else
:
raise
NameError
(
h
)
raise
NameError
(
h
)
topology
=
DCFatTree
(
n_spine_sw
=
1
,
n_agg_bl
=
1
,
n_agg_sw
=
1
,
n_agg_racks
=
1
,
h_per_rack
=
2
,
)
add_homa_bg
(
topology
,
app_proto
=
'homa'
)
add_homa_bg
(
topology
,
app_proto
=
p
)
net
=
sim
.
NS3E2ENet
()
net
=
sim
.
NS3E2ENet
()
net
.
opt
=
' '
.
join
([
f
'--
{
o
[
0
]
}
=
{
o
[
1
]
}
'
for
o
in
options
.
items
()])
net
.
opt
=
' '
.
join
([
f
'--
{
o
[
0
]
}
=
{
o
[
1
]
}
'
for
o
in
options
.
items
()])
net
.
e2e_global
.
stop_time
=
"60s"
net
.
e2e_global
.
stop_time
=
"60s"
net
.
add_component
(
topology
)
net
.
add_component
(
topology
)
if
h
==
'qemu'
:
net
.
sync
=
False
else
:
net
.
sync
=
True
# net.wait = True
# net.wait = True
e
.
add_network
(
net
)
e
.
add_network
(
net
)
...
@@ -118,4 +124,4 @@ for h in types_of_host:
...
@@ -118,4 +124,4 @@ for h in types_of_host:
net
.
init_network
()
net
.
init_network
()
experiments
=
[
e
]
experiments
.
append
(
e
)
experiments/simbricks/orchestration/e2e_topologies.py
View file @
892346ff
...
@@ -348,13 +348,21 @@ def add_homa_bg(topo, subnet='10.0.0.0/16', **kwargs):
...
@@ -348,13 +348,21 @@ def add_homa_bg(topo, subnet='10.0.0.0/16', **kwargs):
s_host
.
queue_size
=
params
[
'link_queue_size'
]
s_host
.
queue_size
=
params
[
'link_queue_size'
]
if
(
params
[
'app_proto'
]
==
'tcp'
):
if
(
params
[
'app_proto'
]
==
'tcp'
):
s_app
=
e2e
.
E2EMsgGenApplicationTCP
(
'msggen'
)
s_app
=
e2e
.
E2EMsgGenApplicationTCP
(
'msggen'
)
s_app
.
stop_time
=
params
[
'app_stop_time'
]
s_app
.
remotes
=
remotes
s_host
.
add_component
(
s_app
)
s_probe
=
e2e
.
E2EPeriodicSampleProbe
(
'probe'
,
'Rx'
)
s_probe
.
interval
=
'1s'
s_probe
.
file
=
f
'sink-rx-
{
i
}
'
s_app
.
add_component
(
s_probe
)
elif
(
params
[
'app_proto'
]
==
'homa'
):
elif
(
params
[
'app_proto'
]
==
'homa'
):
s_app
=
e2e
.
E2EMsgGenApplication
(
'msggen'
)
s_app
=
e2e
.
E2EMsgGenApplication
(
'msggen'
)
s_app
.
stop_time
=
params
[
'app_stop_time'
]
s_app
.
stop_time
=
params
[
'app_stop_time'
]
s_app
.
remotes
=
remotes
s_app
.
remotes
=
remotes
s_host
.
add_component
(
s_app
)
s_host
.
add_component
(
s_app
)
s_probe
=
e2e
.
E2EPeriodicSampleProbe
(
'probe'
,
'Rx'
)
s_probe
=
e2e
.
E2EPeriodicSampleProbe
(
'probe'
,
'Rx'
)
s_probe
.
interval
=
'1s'
s_probe
.
interval
=
'1s'
s_probe
.
file
=
f
'sink-rx-
{
i
}
'
s_probe
.
file
=
f
'sink-rx-
{
i
}
'
s_app
.
add_component
(
s_probe
)
s_app
.
add_component
(
s_probe
)
topo
.
add_host_r
(
s_host
)
topo
.
add_host_r
(
s_host
)
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