Network features and improvements for v0.8.0

Author: chenhengqiCreated Sep 22, 2026Updated Sep 24, 2026
Labelsenhancementarea/Cubeletarea/CubeNet

Sandbox-to-sandbox peer communication

Sandboxes can currently reach each other only through CubeProxy, and only over HTTP/HTTPS/gRPC. That is not enough for common workloads such as one sandbox running Redis and another connecting to it. The next version should add direct sandbox-to-sandbox networking so arbitrary protocols and ports can be used.

Faster Cubelet initialization after restart

After Cubelet and the network stack were merged, a Cubelet restart can take 20+ minutes to become fully usable (#1813). The restart returns immediately, but the node stays unhealthy or slow while the binary boots and leftover TAP devices are cleaned up. Initialization should return to a few seconds, with a clear ready signal.

Revisit direct-mode on-link neighbor resolution

#1209 reported that CubeVS direct egress always rewrites the destination MAC to the gateway MAC, which breaks on-link traffic when the gateway does not support hairpinning. The later fix in b0b0af47 (#1488) introduced scan-driven neighbor resolution, but users report it still does not work as expected. This path needs to be re-examined and corrected.

Fix stale host-port sessions that cause cross-host 502s

In multi-node clusters, CubeProxy forwards envd traffic to another node's mapped host port. A leftover eBPF session from a recycled sandbox can still match the shared (inner_ip, envd_port) tuple, so CubeVS resets the SYN and the client sees Connection refused / 502 even though the sandbox is healthy (#1841). #1839 retries the connect at CubeProxy and lowers the failure rate, but does not remove the stale session. The next version should key or retire these sessions so they cannot collide across TAP generations.

Source: TencentCloud/CubeSandbox