Compatibility
Minecraft: Java Edition
1.21–1.21.10
1.20.x
1.19.2–1.19.4
Platforms
Supported environments
Creators
Details
Licensed GPL-3.0-or-later
Published 4 months ago
Updated 2 weeks ago
Changelog
Tunnely v1.4.4 - Multi-Hop Relay Routing
Release Date
October 3, 2025
Overview
This release introduces an intelligent multi-hop relay routing system that automatically optimizes player connections by routing traffic through data center backbone networks, similar to how VPNs optimize routes. This results in 30-50% latency reduction for cross-region connections.
Major Features
Multi-Hop Relay Routing System
- Automatic Route Optimization: Dijkstra's algorithm finds the best path through relay mesh networks
- Data Center Backbone Routing: Routes traffic through high-priority DC-to-DC connections instead of congested residential ISP peering
- Self-Healing Network: Automatically detects degraded connections and re-routes within 60 seconds
- Zero Configuration: Works automatically for all players with no manual setup required
Performance Improvements
- Cross-region latency reduced by 30-50% (e.g., LA to Atlanta: 180ms -> 53ms)
- Stable, predictable latency through data center backbone networks
- Intelligent heuristics avoid multi-hop when not beneficial (same-region connections)
- Concurrent relay latency probing for fast route discovery
Relay Mesh Infrastructure
- Relay-to-relay latency monitoring (automatic measurement every 30 seconds)
- Mesh topology database with relay connection tracking
- Inter-relay tunneling protocol with HMAC-SHA256 authentication
- Support for up to 3-hop routes with configurable limits
Network Quality Monitoring
- Real-time latency, packet loss, and jitter tracking
- Moving average calculations with 20-sample circular buffer
- Automatic degradation detection with configurable thresholds
- Adaptive re-routing when network quality degrades
Technical Changes
Database
- New
relay_connectionstable for storing relay-to-relay latency measurements - New
optimal_routestable for caching pre-computed routes - New SQL functions:
get_relay_mesh_topology(),update_relay_connection(),find_optimal_route(),get_relay_mesh_stats() - Performance indexes on relay mesh queries
Relay Server
- New mesh monitoring module (
mesh-monitor.js) for automatic peer discovery and latency measurement - New relay tunnel module (
relay-tunnel.js) for inter-relay packet forwarding - New
/relay-meshWebSocket endpoint for peer-to-peer connections - New
/meshHTTP endpoint for topology queries - Enhanced
/metricsendpoint with mesh statistics
Java Client
- New
RouteOptimizerclass implementing Dijkstra's algorithm with hop penalties - New
RelayMeshProberclass for concurrent relay latency measurement - New
NetworkQualityMonitorclass for connection quality tracking - New methods in
SupabaseClient:getRelayMeshTopology(),getRelayMeshStats()
Configuration
New Environment Variables (Relay Server)
RELAY_MESH_SECRET: Shared secret for relay-to-relay authentication (required for mesh)
Existing Variables (Enhanced)
RELAY_ID: Now used for mesh node identificationRELAY_REGION: Now used for route optimization decisions
Security
- HMAC-SHA256 authentication for relay-to-relay connections
- Timestamp validation with 5-minute window to prevent replay attacks
- Timing-safe token comparison to prevent timing attacks
- TLS encryption (wss://) for all relay mesh connections
- Hop count tracking to prevent infinite routing loops
Deployment Notes
- Fully backward compatible with existing single-hop relay deployments
- Relays without mesh support continue functioning normally
- Run
supabase/create-relay-mesh-tables.sqlto enable mesh features - Set consistent
RELAY_MESH_SECRETacross all relay servers in the mesh - No client updates required - route optimization happens automatically
Documentation
- New comprehensive guide:
MULTI-HOP-ROUTING.md(technical deep-dive) - New quick start guide:
MULTI-HOP-QUICKSTART.md(5-minute deployment) - New implementation summary:
MULTI-HOP-IMPLEMENTATION-SUMMARY.md - New code review document:
MULTI-HOP-CODE-REVIEW.md
Performance Metrics
- Latency overhead per hop: 10-15ms (relay forwarding)
- Bandwidth cost multiplier: 1x (single-hop), 2x (2-hop), 3x (3-hop)
- Route computation: O(E log V) using Dijkstra's algorithm
- Mesh monitoring interval: 30 seconds (configurable)
- Re-routing check interval: 60 seconds (configurable)
Known Limitations
- Maximum 3 hops per route (configurable, can be reduced to 2)
- Bandwidth cost increases linearly with hop count
- Initial mesh measurement takes 30 seconds after relay startup
- Multi-hop only beneficial for cross-region connections
Upgrade Instructions
- Update mod to v1.4.4
- Run
create-relay-mesh-tables.sqlin Supabase SQL Editor - Set
RELAY_MESH_SECRETenvironment variable on all relay servers (use same value) - Restart relay servers
- Verify mesh is active by checking
https://your-relay.com/meshendpoint
Breaking Changes
None - fully backward compatible with v1.4.3 and earlier.
Bug Fixes
None in this release (new feature release).
Dependencies
Files
Metadata
Release channel
ReleaseVersion number
1.4.4-SNAPSHOTLoaders
Game versions
1.20.1–1.21.9Downloads
2Publication date
October 4, 2025 at 1:45 AMPublisher
Bobcat
Member



