NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Minimizing weighted sum delay for one-to-many file transfer in peer-to-peer networks

Bike Xie, Mihaela van der Schaar, Richard D. WeselarXiv 2010

Abstract

This paper presents a comprehensive framework for optimizing file distribution in peer-to-peer (P2P) networks by minimizing the Weighted Sum Download Time (WSDT). Unlike traditional approaches that focus primarily on uplink bottlenecks or minimizing the maximum download time, this work incorporates heterogeneous downlink constraints and user priorities. We develop a tight lower bound for WSDT and introduce efficient rateless-coding-based schemes for both static and dynamic resource allocation. Our results demonstrate that these methods significantly outperform traditional static distribution strategies, reducing download times by up to 50% in uplink-constrained scenarios.

Introduction

In P2P networks, a source node distributes a file to multiple receivers who, in turn, assist each other by uploading pieces of the file they have already received. While most existing research focuses on minimizing the maximum download time (ensuring the last peer finishes as quickly as possible) or assumes that only the upload speed (uplink) is the bottleneck, real-world scenarios often involve heterogeneous bandwidth where download speeds (downlink) can also be a limiting factor. Furthermore, different users may have different priorities, necessitating a metric like Weighted Sum Download Time (WSDT) to improve overall network efficiency while respecting user weights.

Methodology

The authors tackle the WSDT minimization problem under two primary scenarios: static and dynamic resource allocation.

Problem Formulation and Flow Model

The network is modeled with a source $S$ and $N$ peers. Each peer $i$ has an uplink capacity $U_i$ and a downlink capacity $D_i$. The goal is to determine the transmission rates $r_{i \to j}$ between peers to minimize the weighted sum of completion times.

Flow rates in a P2P network for Peer 1, showing incoming rates from the source and neighbors, and outgoing rates to neighbors.

Static Scenario

In the static scenario, resource allocation remains fixed until all peers complete their downloads.

  • Convex Optimization: The authors prove that the optimal static allocation can be found in polynomial time using convex optimization and a time-expanded graph model.
  • Rateless Coding: To simplify the complex logic of "which chunk goes where," the paper proposes using rateless erasure codes (e.g., LT or Raptor codes). This allows peers to relay any unique coded chunks they receive, reaching the target file size without needing complex coordination.

Dynamic Scenario

In the dynamic scenario, resource allocation can change every time a peer finishes downloading (an "epoch").

  • Piecewise Static Approach: The dynamic problem is treated as a series of static problems solved at each epoch.
  • Ordering Solution: A major contribution is solving the "ordering problem"—deciding which peers should finish in what order. The authors derive a binary relation to rank peers based on their weights and remaining data, effectively deciding which peers to "fully support" in each epoch.

Key Insights and Results

The paper highlights that ignoring downlink constraints is a significant oversight. Even with a fast connection, a peer can be overwhelmed if too many neighbors attempt to send data simultaneously. The proposed framework explicitly accounts for these constraints, ensuring feasible and efficient flow rates.

Performance Gains

  • Optimality: The proposed static rateless-coding scheme achieves the theoretical lower bound across a wide range of parameters.
  • Dynamic Efficiency: Dynamic schemes were shown to reduce the WSDT to approximately 50% of the time required by the best static schemes in cases where uplinks are the primary bottleneck. Even with finite downlink constraints, the dynamic rateless-coding approach consistently outperformed static allocations, with WSDT ratios as low as 0.59 to 0.73 compared to the static optimal.
  • Tight Lower Bound: The authors derived an analytical lower bound for WSDT that is computationally inexpensive ($O(N^2)$) and empirically shown to be very tight.

Conclusion and Future Work

This work provides a robust theoretical and practical foundation for minimizing delay in P2P file transfers. By leveraging rateless coding and dynamic ordering, the proposed schemes offer significant efficiency improvements over traditional methods. Future work includes exploring the impact of coding overhead (typically ~5% for Raptor codes) and developing faster peer-selection algorithms for highly volatile networks where peers frequently join and leave.

Summary updated

BibTeX
@misc{xie2010minimizing,
  author = {Bike Xie and Mihaela van der Schaar and Richard D. Wesel},
  title = {{Minimizing weighted sum delay for one-to-many file transfer in peer-to-peer networks}},
  year = {2010},
  eprint = {1002.3449},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1002.3449},
}

Loading related content...

Figure