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
c0ef7db8
"...composable_kernel-1.git" did not exist on "3b8664611508c8e8999a45be3f58ea9e7f4ed010"
Commit
c0ef7db8
authored
Dec 04, 2020
by
Hejing Li
Browse files
dctcp.py: fix calibration equation
parent
414f8b28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
results/dctcp.py
results/dctcp.py
+5
-1
No files found.
results/dctcp.py
View file @
c0ef7db8
...
@@ -30,7 +30,11 @@ for k_val in range(0, max_k + 1, k_step):
...
@@ -30,7 +30,11 @@ for k_val in range(0, max_k + 1, k_step):
tp
=
res
[
'avg'
]
tp
=
res
[
'avg'
]
# TP * (MTU ) / (MTU - IP (20) - TCP w/option (24))
# TP * (MTU ) / (MTU - IP (20) - TCP w/option (24))
tp_calib
=
tp
*
(
mtu
)
/
(
mtu
-
20
-
24
)
if
(
h
==
'gt'
or
h
==
'qt'
):
tp_calib
=
tp
*
(
mtu
)
/
(
mtu
-
20
-
24
)
else
:
# TP * (MTU + ETH(14) + PHY(24)) / (MTU - IP (20) - TCP w/option (24))
tp_calib
=
tp
*
(
mtu
+
14
+
24
)
/
(
mtu
-
20
-
24
)
line
.
append
(
'%.2f'
%
(
tp_calib
))
line
.
append
(
'%.2f'
%
(
tp_calib
))
print
(
'
\t
'
.
join
(
line
))
print
(
'
\t
'
.
join
(
line
))
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