Skip to content

Instantly share code, notes, and snippets.

@cawka
Created October 17, 2019 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cawka/c85cb6a22e3c8edaa18a367d1c3f4cde to your computer and use it in GitHub Desktop.
Save cawka/c85cb6a22e3c8edaa18a367d1c3f4cde to your computer and use it in GitHub Desktop.
rtt-unfairness.py
flow1 = 1.0
flow2 = 1.0
for i in range(1, 100):
flow1 = flow1 * 2
# flow 2 twice as fast
flow2 = flow2 * 2
flow2 = flow2 * 2
upper = flow1 + flow2
j = (flow1 + flow2) * (flow1 + flow2) / ( 2 * (flow1*flow1 + flow2*flow2) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment