TL;DR
This paper proposes mHTTP, a novel receiver-oriented mechanism that leverages existing path diversity in the internet to speed up HTTP downloads. By intelligently fetching chunks of a file from multiple servers simultaneously using existing HTTP range requests, mHTTP can significantly reduce download times for large objects without requiring any server-side modifications.
What Problem Does This Paper Address?
Modern internet users often have multiple network interfaces (e.g., Wi-Fi and cellular) and popular content is frequently replicated across various servers (e.g., via CDNs). This creates significant "path diversity" that can be exploited to improve data transfer speeds. However, traditional HTTP/TCP protocols are largely oblivious to this diversity, typically using only a single path to fetch content. While solutions like Multipath TCP (MPTCP) exist, they often require kernel modifications on both the client and server, and are typically limited to a single server. This paper addresses the challenge of efficiently utilizing this path diversity for HTTP traffic, specifically for large object downloads, without imposing significant burdens on servers or requiring complex client-side application changes.
Methods
The core of mHTTP lies in two components:
- multiHTTP: This is a receiver-oriented mechanism that operates at the socket API level. It intercepts HTTP requests and modifies them to include
Rangeheaders, allowing it to request specific byte ranges (chunks) of a file. It then establishes multiple simultaneous connections to different servers that host identical copies of the content, fetching these chunks concurrently. A key aspect is its ability to reassemble these chunks in the correct order to deliver the complete file to the application. It also includes an HTTP parser that handles header manipulation, such as replacing the206 Partial Contentresponse with a200 OKto maintain compatibility with existing applications. - multiDNS: This component enhances the DNS resolution process. It obtains multiple IP addresses for a given hostname by querying various DNS servers (local ISP DNS, public DNS like Google DNS) and potentially leveraging extensions like eDNS. This allows mHTTP to discover multiple potential sources for the same content.
The system is designed to be transparent to applications and requires no server-side modifications. It also includes a novel scheduling algorithm to intelligently decide which chunk to request next from which connection, aiming to avoid bottlenecks and optimize buffer usage.
Datasets
The paper does not explicitly mention or introduce new datasets. Instead, it relies on:
- Real-world measurements: The authors conducted experiments on both an indoor testbed (emulating different network conditions) and an outdoor testbed (using actual Wi-Fi and LTE interfaces).
- Publicly available content: They used files from a well-known site on Alexa.com's top-50 list for CDN testing.
- Standard web servers: Apache2 web servers were used to host content.
Key Insights and Ideas
- HTTP Range Requests are Powerful: The paper highlights that HTTP's built-in
Rangerequest functionality, often used for resuming downloads, can be repurposed to fetch different parts of a file from multiple sources simultaneously. - Receiver-Oriented is Key: By focusing on receiver-side modifications at the socket API level, mHTTP achieves its goals without burdening servers or requiring application changes, making it highly practical for adoption.
- DNS Diversity Matters: The effectiveness of mHTTP is significantly boosted by its ability to query multiple DNS servers, uncovering a richer set of available content sources.
- Chunk Size Optimization is Crucial: The performance of mHTTP is sensitive to the chunk size. Larger chunk sizes generally lead to better performance due to reduced overhead from range requests, with 1024KB identified as an optimal size in their experiments.
- Robustness to Path Changes: mHTTP demonstrates resilience to fluctuations in network conditions on individual paths, gracefully adapting its throughput without significantly impacting overall download performance.
Key Results
- Significant Speedup for Large Objects: mHTTP decreased download times for large objects (e.g., 64MB files) by up to 50% compared to single-path HTTP.
- No Harm to Small Objects: For smaller object downloads, mHTTP showed negligible performance impact, and the authors suggest it can be configured to fall back to regular HTTP for such cases.
- Competitive with MPTCP: In single-server scenarios, mHTTP performed comparably to MPTCP, especially for large objects and chunk sizes, while requiring fewer modifications (receiver-side only vs. kernel modifications on both ends).
- Efficient Bandwidth Utilization: mHTTP effectively utilized the combined bandwidth of multiple interfaces, achieving throughput close to the sum of individual interface capacities.
- Buffer Size Reduction with Scheduling: The proposed scheduling mechanism effectively reduced the mHTTP buffer size without negatively impacting download performance.
Limitations and Future Work
- Small Chunk Size Overhead: The paper acknowledges that mHTTP exhibits lower performance with small chunk sizes, attributing this to the overhead of range requests. This is identified as a topic for future research.
- Server Configuration: The authors note that their testbed configuration was not optimized for mHTTP, which might have influenced some results.
- Current Connection Limits: The current implementation limits the number of simultaneous connections to two, with at most one per interface.
- Future Work:
- Optimizing the HTTP parser and restructuring the mHTTP buffer.
- Integrating ideas like "socket intense" for better handling of small flows.
- Exploring load balancing mechanisms across multiple connections, potentially by modifying the receiver's TCP kernel.
- Extending mHTTP to other use cases like streaming content delivery (e.g., YouTube, Netflix).
Summary updated