Skip to main content
QUICK REVIEW

[Paper Review] User-space Multipath UDP in Mosh

Matthieu Boutier, Juliusz Chroboczek|arXiv (Cornell University)|Feb 9, 2015
IPv6, Mobility, Handover, Networks, SecurityEngineering11 references3 citations
TL;DR

This paper presents a user-space multipath UDP implementation in Mosh, enabling dynamic path selection among multiple network interfaces by continuously probing and estimating RTT across different source-destination address pairs. The approach achieves fast convergence during link failures with minimal overhead, maintaining session continuity without disrupting the event loop.

ABSTRACT

In many network topologies, hosts have multiple IP addresses, and may choose among multiple network paths by selecting the source and destination addresses of the packets that they send. This can happen with multihomed hosts (hosts connected to multiple networks), or in multihomed networks using source-specific routing. A number of efforts have been made to dynamically choose between multiple addresses in order to improve the reliability or the performance of network applications, at the network layer, as in Shim6, or at the transport layer, as in MPTCP. In this paper, we describe our experience of implementing dynamic address selection at the application layer within the Mobile Shell. While our work is specific to Mosh, we hope that it is generic enough to serve as a basis for designing UDP-based multipath applications or even more general APIs.

Motivation & Objective

  • To address the limitations of traditional networking APIs that assume single-source, single-destination communication in multihomed environments.
  • To improve session resilience and performance for interactive applications like Mosh in mobile or multihomed networks with multiple network paths.
  • To implement dynamic, application-layer path selection for UDP-based protocols without requiring kernel or transport-layer modifications.
  • To minimize probing overhead while ensuring rapid detection and recovery from network outages.
  • To provide a generic, reusable framework for UDP-based multipath applications through a modular C++ library.

Proposed method

  • The system uses continuous, adaptive probing of all available source-destination address pairs to estimate RTT and path responsiveness.
  • It applies a dynamic probing strategy that reduces probe frequency on stable, low-latency paths and increases it on idle or high-latency flows.
  • The implementation leverages Mosh's existing transport layer, which is resilient to packet reordering, to safely manage multiple concurrent flows.
  • It integrates with the event loop without blocking, using non-blocking I/O to generate probes without interrupting application logic.
  • The algorithm distinguishes between transient packet loss and actual path failure by analyzing RTT convergence and stability over time.
  • It uses Babel routing protocol and Linux netem to simulate real-world network conditions, including variable delay and link loss.

Experimental results

Research questions

  • RQ1Can application-layer multipath selection improve resilience in UDP-based interactive applications like Mosh without kernel-level changes?
  • RQ2How can probing overhead be minimized while maintaining fast detection of path failures and rapid path switching?
  • RQ3To what extent can RTT estimation and path selection be decoupled from the main application event loop to avoid performance degradation?
  • RQ4How does the system perform under asymmetric or unstable network conditions with multiple active paths?
  • RQ5Can the approach be generalized to other UDP-based applications requiring multipath support?

Key findings

  • The system achieved fast re-convergence after a link failure, switching to an alternative path within approximately one second after unplugging a cable.
  • After a 300ms delay was introduced on one path, the system detected and switched to the lower-latency path within seconds, with RTT estimates converging quickly.
  • When a path was restored after a 21-second outage, the system required about 21 seconds to recover, which matched the maximum probing interval of 10 seconds and the time needed for lower-layer routing recovery.
  • The probing strategy effectively limited overhead by reducing probe frequency on stable, low-latency paths while maintaining responsiveness on idle or failing ones.
  • The implementation did not require changes to the server side, relying on client-side intelligence, which simplifies deployment in asymmetric mobile-client scenarios.
  • The approach demonstrated that application-layer multipath UDP is viable and efficient, with minimal impact on the main event loop and no need for complex protocol extensions.

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.