Skip to main content
QUICK REVIEW

[Paper Review] Tor's Been KIST: A Case Study of Transitioning Tor Research to Practice

Rob Jansen, Matthew Traudt|arXiv (Cornell University)|Sep 4, 2017
Internet Traffic Analysis and Secure E-votingComputer Science12 references7 citations
TL;DR

This paper implements and evaluates KIST, a kernel-informed socket scheduling policy that reduces outbound kernel queuing delays in Tor relays by intelligently prioritizing low-volume, bursty traffic. The study confirms KIST significantly improves performance under high load and packet loss, with measurable reductions in client download times and application queuing delays, and demonstrates its viability for production deployment in future Tor releases.

ABSTRACT

Most computer science research is aimed at solving difficult problems with a goal of sharing the developed solutions with the greater research community. For many researchers, a project ends when the paper is published even though a much broader impact could be achieved by spending additional effort to transition that research to real world usage. In this paper, we examine the opportunities and challenges in transitioning Tor research through a case study of deploying a previously proposed application layer socket scheduling policy called KIST into the Tor network. We implement KIST, simulate it in a 2,000-relay private Tor network using Shadow, deploy it on a Tor relay running in the public Tor network, and measure its performance impact. Confirming the results reported in prior research, we find that KIST reduces kernel outbound queuing times for relays and download times for low-volume or bursty clients. We also find that client and relay performance with KIST increases as network load and packet loss rates increase, although the effects of packet loss on KIST were overlooked in past work. Our implementation will be released as open-source software for inclusion in a future Tor release.

Motivation & Objective

  • To bridge the gap between academic Tor research and real-world deployment by implementing and evaluating KIST in production conditions.
  • To address the performance limitations of existing Tor relay scheduling mechanisms under high network load and packet loss.
  • To validate that KIST reduces kernel outbound queuing times and improves end-to-end latency for low-volume and bursty clients.
  • To assess the real-world impact of KIST on relay throughput, kernel queuing, and application-level performance in the public Tor network.
  • To produce a production-ready, open-source implementation of KIST suitable for inclusion in future Tor releases.

Proposed method

  • Implemented KIST in collaboration with Tor developers, focusing on low-overhead socket management and integration with Tor's existing scheduling stack.
  • Simulated KIST in a 2,000-relay private Tor network using Shadow, varying network load and packet loss rates to evaluate performance under diverse conditions.
  • Deployed KIST on a high-speed relay in the public Tor network to conduct a live evaluation of its real-world impact.
  • Instrumented clients and relays to collect download times, goodput, Tor application queuing times, and kernel outbound queuing times.
  • Measured system call overhead by collecting TCP socket information only for write-pending sockets, ensuring minimal performance impact.
  • Used a 10ms scheduling interval to evaluate application-level queuing behavior and compared KIST against the default AMAP scheduler.

Experimental results

Research questions

  • RQ1How does KIST affect client download times and relay performance under varying network load and packet loss conditions?
  • RQ2Does KIST effectively reduce kernel outbound queuing delays and improve scheduling fairness for low-volume or bursty traffic?
  • RQ3What is the real-world performance impact of KIST when deployed on a public Tor relay, and how does it compare to the default scheduler?
  • RQ4What is the system call overhead of KIST, and is it scalable and tolerable for high-throughput Tor relays?
  • RQ5Can KIST back off from high-volume circuits under high packet loss while correctly prioritizing low-volume circuits?

Key findings

  • KIST reduced client download times relative to the default AMAP scheduler, with greater improvement observed for 320 KiB files than for 5 MiB files.
  • In simulation, KIST reduced kernel outbound queuing times and relocated congestion into the Tor application layer where priority scheduling could be effectively applied.
  • KIST improved performance for both clients and relays as network load and packet loss rates increased, with the most significant gains under high-loss conditions.
  • In live deployment, KIST increased Tor application queuing time by less than 10ms for over 90% of sampled cells, and reduced worst-case application queue times from over 2,000ms to under 400ms.
  • The system call overhead of KIST scaled linearly with the number of write-pending sockets (1.08 μs per socket), and was independent of the total number of open sockets, indicating low and predictable overhead.
  • KIST demonstrated the ability to back off from high-volume circuits under high packet loss while maintaining priority for low-volume or bursty circuits, a behavior not previously analyzed in prior research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.