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
6c1dd451
"host/host_tensor/include/device.hpp" did not exist on "b8b2d0a6d1f6342686ee890eac64a1506d865452"
Commit
6c1dd451
authored
Dec 13, 2023
by
Marvin Meiers
Committed by
Antoine Kaufmann
May 08, 2024
Browse files
experiments: add enum for congestion control algorithms
parent
f451e1e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
experiments/simbricks/orchestration/e2e_components.py
experiments/simbricks/orchestration/e2e_components.py
+39
-0
No files found.
experiments/simbricks/orchestration/e2e_components.py
View file @
6c1dd451
...
...
@@ -25,10 +25,49 @@ from __future__ import annotations
import
typing
as
tp
from
abc
import
ABC
,
abstractmethod
from
enum
import
Enum
import
sys
class
CongestionControl
(
Enum
):
RENO
=
(
"ns3::TcpLinuxReno"
,
"reno"
)
WESTWOOD
=
(
"ns3::TcpWestwoodPlus"
,
"westwood"
)
BIC
=
(
"ns3::TcpBic"
,
"bic"
)
CUBIC
=
(
"ns3::TcpCubic"
,
"cubic"
)
HTCP
=
(
"ns3::TcpHtcp"
,
"htcp"
)
HYBLA
=
(
"ns3::TcpHybla"
,
"hybla"
)
VEGAS
=
(
"ns3::TcpVegas"
,
"vegas"
)
NV
=
(
""
,
"nv"
)
SCALABLE
=
(
"ns3::TcpScalable"
,
"scalable"
)
LP
=
(
"ns3::TcpLp"
,
"lp"
)
VENO
=
(
"ns3::TcpVeno"
,
"veno"
)
YEAH
=
(
"ns3::TcpYeah"
,
"yeah"
)
ILLINOIS
=
(
"ns3::TcpIllinois"
,
"illinois"
)
DCTCP
=
(
"ns3::TcpDctcp"
,
"dctcp"
)
CDG
=
(
""
,
"cdg"
)
BBR
=
(
"ns3::TcpBbr"
,
"bbr"
)
HIGHSPEED
=
(
"ns3::TcpHighSpeed"
,
"highspeed"
)
def
__init__
(
self
,
ns3_str
,
gem5_str
):
self
.
ns3_str
=
ns3_str
self
.
gem5_str
=
gem5_str
def
__str__
(
self
):
return
self
.
name
.
lower
()
@
property
def
ns3
(
self
):
if
self
.
ns3_str
==
""
:
print
(
f
"There is no ns3 implementation for
{
self
.
name
}
available"
)
sys
.
exit
(
1
)
return
self
.
ns3_str
@
property
def
gem5
(
self
):
return
self
.
gem5_str
class
E2EBase
(
ABC
):
def
__init__
(
self
)
->
None
:
...
...
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