"...composable_kernel-1.git" did not exist on "3b8664611508c8e8999a45be3f58ea9e7f4ed010"
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): ...@@ -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))
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