Skip to main content
QUICK REVIEW

[Paper Review] Small Is Not Always Beautiful

Paweł Marciniak, Nikitas Liogkas|ArXiv.org|Feb 7, 2008
Peer-to-Peer Network TechnologiesComputer Science9 references39 citations
TL;DR

This paper investigates the impact of piece size in BitTorrent's peer-to-peer content distribution system through real-world experiments on a controlled testbed. It finds that smaller piece sizes improve download performance for small content by increasing parallelism, but become detrimental for large content due to TCP congestion window limitations and reduced pipelining efficiency, explaining why BitTorrent's subpiece mechanism is only necessary for large files.

ABSTRACT

Peer-to-peer content distribution systems have been enjoying great popularity, and are now gaining momentum as a means of disseminating video streams over the Internet. In many of these protocols, including the popular BitTorrent, content is split into mostly fixed-size pieces, allowing a client to download data from many peers simultaneously. This makes piece size potentially critical for performance. However, previous research efforts have largely overlooked this parameter, opting to focus on others instead. This paper presents the results of real experiments with varying piece sizes on a controlled BitTorrent testbed. We demonstrate that this parameter is indeed critical, as it determines the degree of parallelism in the system, and we investigate optimal piece sizes for distributing small and large content. We also pinpoint a related design trade-off, and explain how BitTorrent's choice of dividing pieces into subpieces attempts to address it.

Motivation & Objective

  • To investigate the performance impact of varying piece sizes in BitTorrent, a widely used peer-to-peer content distribution protocol.
  • To determine the optimal piece size for both small and large content distributions.
  • To identify the trade-off between parallelism and TCP/pipelining overhead introduced by small pieces.
  • To explain why BitTorrent uses subpieces for large content, despite the added complexity.
  • To evaluate the real-world performance implications of piece size beyond theoretical assumptions.

Proposed method

  • Conducted real experiments on the PlanetLab platform using private torrents with 40 leechers and one seed.
  • Varied piece sizes from 16 kB to 512 kB while distributing content of different sizes (5 MB to 100 MB).
  • Measured download completion times and upload utilization across multiple runs to assess performance.
  • Imposed upload bandwidth limits on leechers (20–200 kB/s) and a fixed 200 kB/s limit on the seed to simulate realistic conditions.
  • Used the official BitTorrent client to ensure protocol fidelity and collected data on peer behavior, including pipelining and choking behavior.
  • Analyzed TCP-related effects such as congestion window ramp-up and window decay due to inactivity on peer connections.

Experimental results

Research questions

  • RQ1How does piece size affect download completion time in BitTorrent for small and large content?
  • RQ2What is the trade-off between parallelism and TCP/pipelining overhead as piece size varies?
  • RQ3Why does BitTorrent divide pieces into subpieces, and is this necessary for small content?
  • RQ4How do TCP effects such as congestion window behavior influence performance with small pieces?
  • RQ5What explains the performance degradation of small pieces when distributing large content?

Key findings

  • For small content (e.g., 5 MB), smaller piece sizes (16 kB) significantly reduce download completion time compared to larger pieces (512 kB), due to higher parallelism.
  • With 5 MB content, 16 kB pieces achieved faster download times and higher average upload utilization than 512 kB pieces, demonstrating the benefit of fine-grained parallelism.
  • For large content (e.g., 100 MB), small pieces (16 kB) lead to performance degradation due to frequent peer switching, which limits TCP congestion window growth and triggers window decay from inactivity.
  • The pipelining of subpiece requests is restricted within piece boundaries, limiting the number of simultaneous requests and reducing efficiency for small pieces on large content.
  • The performance degradation from small pieces is exacerbated at higher bandwidths, where request/response latency dominates transmission time.
  • BitTorrent’s use of subpieces is unnecessary for small content, as the performance gains from small pieces alone are sufficient, but becomes essential for large content to balance parallelism and TCP efficiency.

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.