Commit 0c0732b4 authored by Hejing Li's avatar Hejing Li
Browse files

dctcp.py: fix calibration equation

parent eb7a8bc5
...@@ -29,8 +29,8 @@ for k_val in range(0, max_k + 1, k_step): ...@@ -29,8 +29,8 @@ for k_val in range(0, max_k + 1, k_step):
continue continue
tp = res['avg'] tp = res['avg']
# TP * (MTU + ETH(14(MAC) + 24(PHY))) / (MTU - IP (20) - TCP w/option (24)) # TP * (MTU ) / (MTU - IP (20) - TCP w/option (24))
tp_calib = tp * (mtu + (14 + 24)) / (mtu - 20 - 24) tp_calib = tp * (mtu) / (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