Skip to main content
QUICK REVIEW

[Paper Review] Rarest First and Choke Algorithms Are Enough

Arnaud Legout, Guillaume Urvoy-Keller|arXiv (Cornell University)|Sep 6, 2006
Peer-to-Peer Network TechnologiesComputer Science19 references15 citations
TL;DR

This paper evaluates BitTorrent's rarest-first and choke algorithms through real-world experiments, demonstrating they ensure high piece diversity and fairness without requiring complex alternatives like network coding or bit-level tit-for-tat. The study concludes these two algorithms are sufficient for efficient and robust peer-to-peer file replication in the Internet, with minimal need for replacement despite prior theoretical concerns.

ABSTRACT

The performance of peer-to-peer file replication comes from its piece and peer selection strategies. Two such strategies have been introduced by the BitTorrent protocol: the rarest first and choke algorithms. Whereas it is commonly admitted that BitTorrent performs well, recent studies have proposed the replacement of the rarest first and choke algorithms in order to improve efficiency and fairness. In this paper, we use results from real experiments to advocate that the replacement of the rarest first and choke algorithms cannot be justified in the context of peer-to-peer file replication in the Internet. We instrumented a BitTorrent client and ran experiments on real torrents with different characteristics. Our experimental evaluation is peer oriented, instead of tracker oriented, which allows us to get detailed information on all exchanged messages and protocol events. We go beyond the mere observation of the good efficiency of both algorithms. We show that the rarest first algorithm guarantees close to ideal diversity of the pieces among peers. In particular, on our experiments, replacing the rarest first algorithm with source or network coding solutions cannot be justified. We also show that the choke algorithm in its latest version fosters reciprocation and is robust to free riders. In particular, the choke algorithm is fair and its replacement with a bit level tit-for-tat solution is not appropriate. Finally, we identify new areas of improvements for efficient peer-to-peer file replication protocols.

Motivation & Objective

  • To evaluate the real-world performance of BitTorrent's rarest-first and choke algorithms beyond theoretical assumptions.
  • To assess whether replacing these algorithms with advanced solutions like network coding or bit-level tit-for-tat is justified in practice.
  • To identify the actual causes of low piece diversity during torrent startup and evaluate the fairness of the choke algorithm.
  • To provide empirical evidence on the efficiency and robustness of existing protocols in real Internet conditions.
  • To identify new areas for improvement in peer-to-peer file replication, such as first-block delivery and transient phase duration.

Proposed method

  • Instrumented a BitTorrent client to log all protocol messages and events at the peer level, enabling detailed, peer-oriented analysis.
  • Conducted extensive experiments on multiple real torrents with varying characteristics, including number of leechers, seeds, and content sizes.
  • Measured piece distribution entropy and diversity across peers to evaluate the rarest-first algorithm’s effectiveness.
  • Analyzed upload/download reciprocity and peer behavior to assess the fairness and robustness of the choke algorithm.
  • Compared the performance of the current choke algorithm with bit-level tit-for-tat strategies in terms of fairness and system stability.
  • Identified transient phases in torrent startup and quantified their duration and impact on piece diversity.

Experimental results

Research questions

  • RQ1Does the rarest-first algorithm truly prevent the last pieces problem and maintain high piece diversity in real-world torrents?
  • RQ2Is the low piece diversity observed during torrent startup caused by the rarest-first algorithm or by the source's upload capacity?
  • RQ3Is the choke algorithm fair and robust to free-riding peers in real deployments?
  • RQ4Can bit-level tit-for-tat strategies improve fairness over the current choke algorithm in peer-to-peer file replication?
  • RQ5What are the key performance bottlenecks in current peer-to-peer file replication, particularly in early download stages?

Key findings

  • The rarest-first algorithm maintains close to ideal piece diversity across peers, effectively preventing the reappearance of rare pieces and the last pieces problem.
  • Low piece diversity during torrent startup is primarily due to the source’s upload capacity, not the rarest-first algorithm.
  • The choke algorithm fosters strong reciprocation and is robust to free-riding peers, ensuring system stability without requiring bit-level tit-for-tat.
  • Bit-level tit-for-tat strategies are not appropriate for peer-to-peer file replication, as they fail to achieve meaningful fairness improvements and may harm performance.
  • The transient phase—characterized by low piece entropy—lasts only as long as the source’s upload capacity limits initial distribution, and can be minimized through protocol enhancements.
  • Two key areas for improvement were identified: reducing the time to deliver the first data blocks and shortening the duration of the transient phase in large or small content transfers.

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.