It can be very useful for applications to be able to measure the latencies between a pair of hosts on the Internet, neither of which is under control of the application. Unfortunately, there are few tools that allow direct measurement between two hosts outside of one's control, and instead developers must rely on often error-prone estimates.

We introduce Ting, a technique for measuring latencies between arbitrary nodes on the Tor network---a popular peer-to-peer network used for anonymous communication.

For more information, check out our IMC 2015 slides or read our paper.


Each download listed below contains a README explaining how to run any code and how all of the data is formatted. If you have any questions or run into any issues with the code, feel free to email us.
  • Code (5.9M): Implementation of the Ting technique. List of command-line arguments can be found in the README or by running ting -h.
  • PlanetLab Dataset (710K): Ping and Ting-measured latencies between all pairs of 31 PlanetLab nodes used in our paper as a ground-truth dataset in order to evaluate Ting's accuracy.
  • All-Pairs RTT Datset (2.9M): Ting-measured latencies between all pairs of 50 random relays from the live Tor network, used in the application section of our paper.
  • Figure Data (133K): Data used to generate all of the figures in our IMC 2015 paper.
  • All (9.6M): All of the code and data above in a single tarball.


(pdf) Ting: Measuring and Exploiting Latencies Between All Tor Nodes
Frank Cangialosi, Dave Levin, Neil Spring
ACM IMC 2015 (Internet Measurement Conference) Long paper


The following people have contributed to this project:


Web Accessibility