Hriday

DP Analyzer

A native macOS app and Go routing engine that distributes TCP and UDP connections directly across Wi-Fi and USB phone tethering, with zero cloud relays and deterministic route rollback.

SYS-01
Domain Systems
Scope Verified Local Build
Year 2026
Systems lens Parallel link load-sharing across two independent physical interfaces with fault fallback and deterministic state rollback.
SYS-01Signal block diagram
DP Analyzer relay-free macOS dual-network connection routing diagramIN1MAC APPSSeparate ConnectionsU1LOCAL ROUTER ENGINEVirtual Link · Loopback ProxyZero Cloud VPN RelayDeterministic route rollbackIF1HOME WI-FI LINKDirect Pinning · 0 DropsIF2PHONE USB TETHERiPhone & Android Guarded
Figure SYS-01 — Relay-free macOS connection balancing across Wi-Fi and USB tethering with automatic route rollback.Swipe diagram →

Why I built it

Whenever home Wi-Fi stutters, a live 5G connection is usually sitting inches away on my phone, yet macOS routes traffic through only one primary interface at a time. Existing channel-bonding apps either tunnel every packet through a paid cloud VPN or corrupt system routes if killed. DP Analyzer distributes separate connections directly across two local interfaces on-device.

How it works

  • Per-Connection Load Sharing: Rather than splitting packets through an external relay, DP Analyzer assigns whole TCP and UDP connections across active interfaces. End-to-end TLS stays untouched, and multi-connection downloads or browser sessions draw from both Wi-Fi and USB tethering simultaneously.
  • Reversible Routing Ledger: Instead of overwriting the macOS default gateway, the local Go engine installs scoped public routes over a virtual utun interface and records an ordered undo log so every route unwinds in reverse order on stop or crash recovery. A lightweight loopback SOCKS5 mode is also included for proxy-aware tools.
  • Hardware-Tested macOS Fixes: Live testing exposed three subtle platform bugs that I resolved: preventing Dual-Stack Wi-Fi IPv6 from starving an IPv4-only phone tether, preserving Android USB DHCP leases during tunnel bring-up, and fixing a busy-wait loop in an open-source USB tether helper that cut idle CPU load from ~90% to under 4%.

What I tested & current scope

The scheduler and route ledger pass 40 Go tests and 5 Swift checks, and live Apple Silicon sessions forwarded connections reliably across Wi-Fi + iPhone USB (en0 + en5) and Wi-Fi + Android USB with zero dropped transfers and verified SHA-256 checksums.

One honest benchmark finding: in a recorded 103 MB multi-connection download, dual-link mode completed with zero errors but did not beat single-link Wi-Fi peak speed. Sustained multi-link throughput gains and Apple-notarized packaging for the system extension mode remain open work.

Stack & parts

Swift & SwiftUI Go macOS Networking SOCKS5 Proxy C++