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
5e576d18
Commit
5e576d18
authored
Jan 25, 2024
by
Antoine Kaufmann
Committed by
Hejing Li
Feb 01, 2024
Browse files
experiments: more sane defaults for e2e data center topology
parent
1d17d7ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
experiments/simbricks/orchestration/e2e_topologies.py
experiments/simbricks/orchestration/e2e_topologies.py
+9
-7
No files found.
experiments/simbricks/orchestration/e2e_topologies.py
View file @
5e576d18
...
@@ -109,19 +109,20 @@ class DCFatTree(E2ETopology):
...
@@ -109,19 +109,20 @@ class DCFatTree(E2ETopology):
def
__init__
(
self
,
basename
=
''
,
**
kwargs
):
def
__init__
(
self
,
basename
=
''
,
**
kwargs
):
self
.
params
=
{
self
.
params
=
{
'n_spine_sw'
:
4
,
'n_spine_sw'
:
1
,
'n_agg_bl'
:
4
,
'n_agg_bl'
:
5
,
'n_agg_sw'
:
4
,
'n_agg_sw'
:
1
,
'n_agg_racks'
:
4
,
'n_agg_racks'
:
6
,
'h_per_rack'
:
40
,
'h_per_rack'
:
40
,
'mtu'
:
'1448'
,
'mtu'
:
'1448'
,
'spine_link_delay'
:
'1us'
,
'spine_link_delay'
:
'1us'
,
'spine_link_rate'
:
'10Gbps'
,
'spine_link_rate'
:
'10
0
Gbps'
,
'spine_link_queue'
:
'512KB'
,
'spine_link_queue'
:
'512KB'
,
'agg_link_delay'
:
'1us'
,
'agg_link_delay'
:
'1us'
,
'agg_link_rate'
:
'10Gbps'
,
'agg_link_rate'
:
'10
0
Gbps'
,
'agg_link_queue'
:
'512KB'
,
'agg_link_queue'
:
'512KB'
,
'sbhost_eth_latency'
:
'500ns'
,
'sbhost_eth_latency'
:
'500ns'
,
'sbhost_sync_delay'
:
'100ns'
,
}
}
for
(
n
,
v
)
in
kwargs
.
items
():
for
(
n
,
v
)
in
kwargs
.
items
():
self
.
params
[
n
]
=
v
self
.
params
[
n
]
=
v
...
@@ -254,6 +255,7 @@ class DCFatTree(E2ETopology):
...
@@ -254,6 +255,7 @@ class DCFatTree(E2ETopology):
host
=
e2e
.
E2ESimbricksHost
(
f
'_sbh-
{
i
}
-
{
nic
.
name
}
'
)
host
=
e2e
.
E2ESimbricksHost
(
f
'_sbh-
{
i
}
-
{
nic
.
name
}
'
)
host
.
eth_latency
=
self
.
params
[
'sbhost_eth_latency'
]
host
.
eth_latency
=
self
.
params
[
'sbhost_eth_latency'
]
host
.
sync_delay
=
self
.
params
[
'sbhost_sync_delay'
]
host
.
simbricks_component
=
nic
host
.
simbricks_component
=
nic
return
host
return
host
...
@@ -272,7 +274,7 @@ class DCFatTree(E2ETopology):
...
@@ -272,7 +274,7 @@ class DCFatTree(E2ETopology):
def
add_contig_bg
(
topo
,
subnet
=
'10.42.0.0/16'
,
**
kwargs
):
def
add_contig_bg
(
topo
,
subnet
=
'10.42.0.0/16'
,
**
kwargs
):
params
=
{
params
=
{
'link_rate'
:
'
1
Gbps'
,
'link_rate'
:
'
5
Gbps'
,
'link_delay'
:
'1us'
,
'link_delay'
:
'1us'
,
'link_queue_size'
:
'512KB'
,
'link_queue_size'
:
'512KB'
,
'congestion_control'
:
e2e
.
CongestionControl
.
CUBIC
,
'congestion_control'
:
e2e
.
CongestionControl
.
CUBIC
,
...
...
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