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
0c0732b4
Commit
0c0732b4
authored
Dec 04, 2020
by
Hejing Li
Browse files
dctcp.py: fix calibration equation
parent
eb7a8bc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
results/dctcp.py
results/dctcp.py
+2
-2
No files found.
results/dctcp.py
View file @
0c0732b4
...
...
@@ -29,8 +29,8 @@ for k_val in range(0, max_k + 1, k_step):
continue
tp
=
res
[
'avg'
]
# TP * (MTU
+ ETH(14(MAC) + 24(PHY))
) / (MTU - IP (20) - TCP w/option (24))
tp_calib
=
tp
*
(
mtu
+
(
14
+
24
)
)
/
(
mtu
-
20
-
24
)
# TP * (MTU ) / (MTU - IP (20) - TCP w/option (24))
tp_calib
=
tp
*
(
mtu
)
/
(
mtu
-
20
-
24
)
line
.
append
(
'%.2f'
%
(
tp_calib
))
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