Visible to the public MLEFlow: Learning from History to Improve Load Balancing in Tor

Tor has millions of daily users seeking privacy while browsing the Internet. It has thousands of relays to route users’ packets while anonymizing their sources and destinations. Users choose relays to forward their traffic according to probability distributions published by the Tor authorities. The authorities generate these probability distributions based on estimates of the capacities of the relays. They compute these estimates based on the bandwidths of probes sent to the relays. These estimates are necessary for better load balancing. Unfortunately, current methods fall short of providing accurate estimates leaving the network underutilized and its capacities unfairly distributed between the users’ paths. We present MLEFlow, a maximum likelihood approach for estimating relay capacities for optimal load balancing in Tor. We show that MLEFlow generalizes a version of Tor capacity estimation, TorFlow-P, by making better use of measurement history. We prove that the mean of our estimate converges to a small interval around the actual capacities, while the variance converges to zero. We present two versions of MLEFlow: MLEFlow-CF, a closed-form approximation of the MLE and MLEFlow-Q, a discretization and iterative approximation of the MLE which can account for noisy observations. We demonstrate the practical benefits of MLEFlow by simulating it using a flow-based Python simulator of a full Tor network and packet-based Shadow simulation of a scaled down version. In our simulations MLEFlow provides significantly more accurate estimates, which result in improved user performance, with median download speeds increasing by 30%.

My name is Hussein Darir, a PhD student in mechanical engineering at the University of Illinois at Urbana-Champaign under the supervision of Professor Geir Dullerud and Professor Nikita Borisov. I primarily work on developing algorithms to address the problem of load balancing in anonymous communication networks using tools such as differential-privacy, maximum likelihood and probabilistic programming. The practical benefits of the developed algorithms are demonstrated using flow-based Python simulations and packet-based Shadow simulations.

License: 
Creative Commons 2.5

Other available formats:

MLEFlow: Learning from History to Improve Load Balancing in Tor
Switch to experimental viewer