"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "a1b04a45435bfea545c9092a83e135bb6a812191"
Commit c0ef7db8 authored by Hejing Li's avatar Hejing Li
Browse files

dctcp.py: fix calibration equation

parent 414f8b28
......@@ -30,7 +30,11 @@ for k_val in range(0, max_k + 1, k_step):
tp = res['avg']
# 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))
print('\t'.join(line))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment