Papers
Topics
Authors
Recent
Search
2000 character limit reached

ProxFly: Unikernel TCP & RL Quadcopter Control

Updated 7 February 2026
  • ProxFly is a dual-system framework combining a unikernel-based, on-the-fly TCP acceleration architecture and a residual RL-enhanced quadcopter control system.
  • The networking component employs early SYN forwarding and proxy chaining via Miniproxy, achieving up to 37.5% reduced transfer times with markedly lower memory usage.
  • The aerial robotics module augments a cascaded controller with residual reinforcement learning, significantly reducing position and attitude errors under variable disturbances.

ProxFly encompasses two distinct, high-efficiency systems in network and robotics research: (1) a unikernel-based, on-the-fly TCP acceleration architecture built on Miniproxy and (2) a robust quadcopter control framework leveraging residual reinforcement learning for close-proximity flight. Each system represents state-of-the-art approaches within its domain, offering significant performance improvements, resource efficiency, and rigorous experimental validation (Siracusano et al., 2016, Zhang et al., 2024).

1. Unikernel-Based ProxFly for On-the-Fly TCP Acceleration

Architecture and Cloud OS Integration

ProxFly’s TCP acceleration architecture is implemented using Miniproxy, a Xen unikernel based on MiniOS and a patched lwIP stack. MiniOS provides a paravirtualized, single-address-space kernel with no traditional system calls and achieves boot times on the order of tens of milliseconds. The entire Miniproxy VM is a static ELF image requiring only ~6 MB RAM, supporting massive consolidation. At boot, Miniproxy immediately launches a packet RX/TX loop (via the Xen network backend) and a TCP proxy application managing each proxied connection as a pair of lwIP protocol control blocks (PCBs). A 12-byte custom TCP option enables explicit proxy chaining by embedding the client–server 4-tuple in the SYN, enabling Early SYN Forwarding even for explicit proxies (Siracusano et al., 2016).

TCP Connection Handling Optimizations

ProxFly fundamentally restructures TCP handshake and slow-start timing via the following mechanisms:

  • Split-TCP and Naïve Proxy Chaining: Without proxies, the 3-way handshake plus first data incurs latency of $4D$ (DD being the one-way delay). Sequential proxy handshakes do not improve this.
  • Early SYN Forwarding (ESF): On SYN reception, the proxy immediately forwards the SYN, causing the client–proxy and proxy–server handshakes to overlap. For delays X1X_1 and X2X_2 (such that X1+X2=DX_1 + X_2 = D):

TTFBESF=2D+2max(X1,X2)TTFB_{ESF} = 2D + 2\max(X_1, X_2)

In the balanced configuration (X1=X2=D/2X_1 = X_2 = D/2), this yields a 25%25\% TTFB reduction ($3D$). For NN evenly spaced in-path proxies:

DD0

  • Slow Start Acceleration: Parallelization via proxy splitting reduces effective RTT during window ramp-up. For DD1 slow-start slots and DD2 proxies:

DD3

Mathematical Model: Boot Time, Resources, and Latency Tradeoffs

Letting DD4 denote proxy instantiation time, DD5 RAM per instance, and DD6 the CPU cycles per packet, the end-to-end time to first byte with on-the-fly instantiation is:

DD7

The improvement over the baseline (no proxy) is:

DD8

For transfer completion after DD9 RTT slots:

X1X_10

X1X_11

A single host with X1X_12 MB RAM can run X1X_13 Miniproxy instances (e.g., X1X_14 GB RAM yields X1X_1510,000 proxies at X1X_16 MB each, vs. X1X_17 Linux proxies at X1X_18 GB each).

Quantitative Results

In empirical evaluation, Miniproxy achieved 1.534 Gb/s throughput (vs. Varnish’s 1.462 Gb/s), with X1X_195% higher throughput and two orders of magnitude less memory usage. Boot times at X2X_20–X2X_21 GHz CPUs are X2X_2212 ms for X2X_23 MB RAM; up to X2X_24 MB RAM produces X2X_25 ms (X2X_26 ms at X2X_27 MHz). Median per-flow SYN processing is under X2X_28 ms for up to 230 concurrent connections. For a 100 ms RTT path and 10 KB flow, adding proxies reduces transfer time from X2X_29 ms (no proxy) to X1+X2=DX_1 + X_2 = D0 ms (1 proxy), X1+X2=DX_1 + X_2 = D1 ms (2), or X1+X2=DX_1 + X_2 = D2 ms (3) – up to X1+X2=DX_1 + X_2 = D3 improvement. For 25 KB slow-start-dominated transfers, savings rise to X1+X2=DX_1 + X_2 = D4–X1+X2=DX_1 + X_2 = D5 (Siracusano et al., 2016).

Deployment Modes and Operational Guidelines

Principal modes include:

  • Edge cloud acceleration: Proxies instantiate in under X1+X2=DX_1 + X_2 = D6 ms near the client.
  • Massive isolation: X1+X2=DX_1 + X_2 = D7X1+X2=DX_1 + X_2 = D8 Miniproxy instances per X1+X2=DX_1 + X_2 = D9 GB RAM for per-flow/tenant separation.
  • Just-in-time provisioning: Boot on-demand using orchestration triggered by SYN packet observation; balance placement for maximum latency gain.

Guidelines include memory tuning (6–8 MB per instance for %%%%5$4D$5%%%%1 flows), CPU provisioning (TTFBESF=2D+2max(X1,X2)TTFB_{ESF} = 2D + 2\max(X_1, X_2)2 Gb/s per 3 GHz core), security reinforcement (unikernel surface minimization; authenticate explicit proxy SYN options), rate-limited instantiation to prevent storm effects, and careful path selection to avoid offsetting gains with path-length increases.

2. Residual RL-Based ProxFly for Close Proximity Quadcopter Control

Quadcopter Dynamics and Baseline Control

The control framework models standard Newton–Euler rigid-body dynamics in world-frame position TTFBESF=2D+2max(X1,X2)TTFB_{ESF} = 2D + 2\max(X_1, X_2)3 and body-frame angular velocity TTFBESF=2D+2max(X1,X2)TTFB_{ESF} = 2D + 2\max(X_1, X_2)4:

TTFBESF=2D+2max(X1,X2)TTFB_{ESF} = 2D + 2\max(X_1, X_2)5

TTFBESF=2D+2max(X1,X2)TTFB_{ESF} = 2D + 2\max(X_1, X_2)6

with TTFBESF=2D+2max(X1,X2)TTFB_{ESF} = 2D + 2\max(X_1, X_2)7 mass, TTFBESF=2D+2max(X1,X2)TTFB_{ESF} = 2D + 2\max(X_1, X_2)8 rotation matrix, TTFBESF=2D+2max(X1,X2)TTFB_{ESF} = 2D + 2\max(X_1, X_2)9 thrust, X1=X2=D/2X_1 = X_2 = D/20 torque, and X1=X2=D/2X_1 = X_2 = D/21 representing disturbances (notably, aerodynamic downwash in close-proximity flight).

The cascaded controller consists of:

  • Outer loop (position ⟶ thrust/attitude): Given position/velocity errors, applies PD-style law to output normalized thrust X1=X2=D/2X_1 = X_2 = D/22 and desired attitude X1=X2=D/2X_1 = X_2 = D/23.
  • Inner loop (attitude ⟶ body rates): Computes attitude error and outputs compensation body rates X1=X2=D/2X_1 = X_2 = D/24.
  • Basic command vector: X1=X2=D/2X_1 = X_2 = D/25.

Residual RL Module

ProxFly introduces a residual policy on top of the model-based controller, with the following structure:

  • Observation space (X1=X2=D/2X_1 = X_2 = D/26-dim): Includes current error states, last action, and basic controller output.
  • Action: Residual on thrust and rates, X1=X2=D/2X_1 = X_2 = D/27, with clipping to practical actuation bounds.
  • Reward: Weighted sum of position offset, attitude deviation, thrust/rate penalties, and a survival bonus.
  • Final command: X1=X2=D/2X_1 = X_2 = D/28.

The actor (policy) and critic (value) networks are both 3-layer MLPs (128 units/layer, LeakyReLU, X1=X2=D/2X_1 = X_2 = D/29 output). Training uses Proximal Policy Optimization (PPO) with advantage estimation, clipped surrogate objective, and Adam optimization (Zhang et al., 2024).

Domain Randomization and Robustness Strategy

To enforce robustness and rapid adaptation, every episode randomizes:

  • Mass and inertia (per-episode, up to 25%25\%0 variance)
  • Propeller constants (per-motor)
  • External vertical/horizontal disturbance profiles (triangular waves; amplitude 25%25\%1–25%25\%2 N)
  • Additive torque noise (Gaussian)

This broad parameter sweep forces the residual policy to generalize across identification errors and uncertain/unmodeled turbulence.

Experimental Validation

Simulation: Two-vehicle scenarios with high-fidelity downwash (Karana et al. model) test at separations 25%25\%3–25%25\%4 m, measuring altitude error, attitude RMSE, and control residuals. The RL-added residuals correct for steady-state errors induced by downwash, despite never having seen the Karana model in training.

Real-World Experiments: Using precision motion capture and multi-rate control loops (high-level 25%25\%5 Hz, low-level 25%25\%6 Hz), three baselines are compared: the basic cascaded controller, a finely tuned model-based downwash compensator (FB-AeroComp), and ProxFly. Metrics include position RMSE 25%25\%7 and attitude RMSE 25%25\%8:

Task Basic FB-AeroComp ProxFly
Hovering 0.1199 m, 0.1710 rad 0.1113 m, 0.1818 rad 0.0882 m, 0.0794 rad
Circling (same) 0.1867 m, 0.1976 rad 0.0832 m, 0.1238 rad 0.1385 m, 0.1252 rad
Circling (rev) 0.1451 m, 0.1714 rad 0.0983 m, 0.0930 rad 0.0940 m, 0.0996 rad
Average 0.1506 m, 0.1800 rad 0.0976 m, 0.1329 rad 0.1069 m, 0.1014 rad

ProxFly reduces mean position error (vs. basic) by approximately 25%25\%9, and mean attitude error by $3D$0, while matching or outperforming FB-AeroComp in hover.

In-Air Docking: The system handles rapid load/inertia change and strong turbulence when a small quadcopter drops $3D$1 cm onto a larger hovering vehicle without loss of stability, the residual thrust response peaks and then returns to nominal.

Discussion, Limitations, and Prospects

By learning only the residual atop a validated controller, ProxFly achieves interpretable, sample-efficient policy refinement with reduced “black box” exposure and avoids the need for inter-vehicle communication. However, high-frequency oscillations in the residual output may stress hardware; extreme parameter mismatch remains a possible failure point; and broader physical generalization awaits further demonstration. Possible extensions include online residual smoothing (system ID), integration of perceptual sensing, and multi-agent explicit intent sharing (Zhang et al., 2024).

3. Broader Significance and Impact

ProxFly, across domains, exemplifies minimalist, high-performance system design:

  • In networking, it demonstrates that high-frequency, on-the-fly instantiation of TCP-accelerating proxies is practical and efficient, even at per-flow granularity.
  • In aerial robotics, it establishes a pathway whereby model-based control augmented by RL-trained residuals yields robust, communication-minimal, and hardware-constrained high-agility behaviors previously only achievable via purpose-built, model-tuned controllers.

Both systems explicitly target real-world deployment scenarios: edge-cloud TCP orchestration and safe, reliable close-proximity quadcopter maneuvers, including aggressive actions such as mid-air docking.

4. Trade-offs, Operational Constraints, and Deployment Considerations

  • Resource provisioning: In ProxFly-TCP, small RAM and fast boot times permit massive scalability and per-tenant isolation; in ProxFly-RL, computation and memory are dictated by actor-critic MLP inference rates and sensor/control latency budgets.
  • Security: Unikernel architecture in Miniproxy naturally reduces exploit surface; ProxFly quadrotor system can install further safety assurance layers, though the RL residual could in principle produce unexpected time-series artifacts.
  • Latency/throughput scalability: In networks, orchestration operations must not offset handshake/slow-start gains; in RL flight, the controller must maintain closed-loop frequency under typical wireless/CPU burdens.
  • Limitations: For both, edge cases (mini-flows in TCP, extreme mass/turbulence in drones) may undercut net benefits, and orchestration or parameter tuning complexity may grow with deployment scale.

5. Summary

ProxFly, as instantiated in both TCP acceleration and quadcopter control, represents minimalist, resource-efficient high-performance solutions, validated in both empirical and theoretical analysis. Key elements are (1) rapid, lightweight proxy instantiation for fine-grained, on-demand TCP acceleration with verified resource and latency savings (Siracusano et al., 2016), and (2) residual RL augmentation of interpretable controllers, yielding robust close-proximity flight with performance matching specialized model-based compensators—without the need for inter-agent communication (Zhang et al., 2024).

For further technical and implementation details, consult the original references and supporting codebase (Siracusano et al., 2016, Zhang et al., 2024).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (2)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to ProxFly.