Skip to content

IVNP v0.10.10

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Dec 14:04
v0.10.10
178f144

IVNP v0.10.10

IVNP v0.10.10 fixes 29 production defects uncovered across 52-node real-socket ivnp_net (netId = 105) full-mesh chaos testing, 26-node race-detector runs, and 16-daemon multi-process ivnpd validation. The changes harden streaming half-close and RTO recovery, heterogeneous {NTCP2, SSU2, VTLS, VQUIC} routing and VQUIC queuing, participating transit forwarding, NetDB floodfill discovery, tunnel health probing, dedicated Garlic Ratchet tag windows, Veil observability, and graceful shutdown.

What changed

Streaming Reliability, Half-Close & Mid-Handshake Route Rotation (dataplane/internal/streaming, controlplane/internal/router)

  • Fixed half-close reverse writes (tunnel.go): Write() previously aborted with net.ErrClosed once c.peerClosedOK was set. Checking c.reset instead preserves full-duplex half-close semantics (CloseWrite() followed by reverse response writes).
  • Fixed selective-ACK teardown race (tunnel.go): Receiving an ACK covering FlagClose while earlier data packets remained NACKed previously tore down c.pending via !c.hasPendingLocked(localCloseSequence). Checking c.pendingCount == 0 retains NACKed packets until every prior sequence is acknowledged.
  • Eliminated exponential RTO backoff stalls (reliability.go, tunnel.go): Added RTOEstimator.ResetBackoff() (RFC 6298 Section 5.3) to restore base Jacobson/Karels RTO whenever new data is acknowledged without feeding retransmitted RTT samples into SRTT/RTTVAR, and added RTOEstimator.BackoffCapped(6s) during active silent-route rotation.
  • Tuned DedicatedStreamingProfile() (tunnel.go): Raised dedicated MaxRetries to 10 and lowered InitialRTO to 1.5s (from the 9s public I2P default).
  • Added FastHandshakeObserver and SilentRouteRotator (tunnel.go, route_control.go): Inbound SYN bursts from peers with a confirmed usable route complete inline via TryPreparedHandshake without hitting the 2-per-peer async preparation cap; unanswered outbound SYNs (syncRetries >= 3) and repeated duplicate inbound SYNs (syncRetries >= 2) rotate routes and refresh cached plaintext or blinded EncryptedLeaseSet2 records within a single dial.
  • Sized dedicated Garlic Ratchet receive windows (destination_runtime.go): Dedicated and direct throughput profiles configure InitialTagWindow = 256 and TagLookahead = 1024 (up from 64 / 512) so burst loss and RTO retransmissions cannot overrun the initial tag window before highWater grows.

Heterogeneous Transport Routing, VQUIC Queuing & Participating Transit (controlplane/internal/router, controlplane/internal/tunnel, dataplane/internal/router, dataplane/internal/tunnel)

  • Added bounded async TransitSessionConnector (transit_connector.go, dataplane/internal/tunnel/runtime.go): Participating transit hops (OBEP, participating IBGW, and intermediate relays) enqueue RouterErrSessionUnavailable deliveries for bounded asynchronous dialing (8 workers, 64 peers, 256 messages) strictly against peers already in local NetDB, without implicit DHT lookups or creator-path interference.
  • Enforced OBEP/IBGW transport compatibility (netdb_source.go, route_control.go, direct_fallback.go): peerAllowedAtPosition enforces endpointMask even for already-connected OBEP peers; selectOutboundFromCandidates pairs compatible (OBEP, IBGW) transports and never falls back to an incompatible pair once compatible routes are exhausted.
  • Added dead first-hop failover and immediate circuit eviction (route_control.go, destination_runtime.go, client_destination.go): selectRoutePass probes FirstHop inside the candidate loop, invokes OnOutboundUnreachable to penalize the dead peer, evict the broken outbound circuit, and wake tunnel maintenance immediately, fails over to surviving circuits in the same pass, and joins TunnelErrCircuitNotFound with the dial error when all outbound circuits are dead so DialStream waits for replacement builds.
  • Hardened VQUICManager reassembly and dispatch (vquic_manager.go): Raised reassembly capacity (512 messages / 4 MiB, 10s TTL) and per-worker queues (2048), classified bulk TunnelGateway (> 1024 B) into the BDP-sized bulk queue instead of the bounded control queue, and prevented inline dispatch deadlocks in authWorker.
  • Expanded retryable transport errors (transport_mux.go): IsRetryableTransportError now classifies net.OpError{Op: "write"} with ECONNREFUSED, ECONNRESET, EPIPE, EHOSTUNREACH, and ENETUNREACH as retryable so unreachable UDP/TCP peers do not poison Controller.err.

NetDB Discovery, Tunnel Health & Lifecycle Shutdown (controlplane/internal/netdb, controlplane/internal/tunnel, controlplane/internal/runtime)

  • Fixed RequestManager non-floodfill DSR handling and fallback promotion (requests.go): Known non-floodfill referrals never receive DatabaseLookup, fallback floodfills are promoted when primary candidates exhaust, and failed RouterInfoLookup completions clear stale refreshing marks on waiting lookups.
  • Added floodfill discovery to Explorer (explorer.go, controller.go): Explorer alternates RouterInfoLookup probes with ExplorationLookup while known floodfills stay below MinFloodfillTarget, and dedicated profiles use IdleRouterTarget = max(MinRouters, 64) and IdleCheckInterval = 30s.
  • Fixed tunnel health retirement, pair coverage, and firewalled activity checks (health.go, paired_maintenance.go, destination_runtime.go, controller.go):
    • failExplicit no longer rolls back a dead tunnel when started > 0 or ErrBuildPending is returned; local SendBlockPrepared failures penalize only outbound (inIncrement = 0).
    • PairedPoolMaintainer.Pair staggers inbound indices across outbound cycles so square pools probe every (outbound, inbound) combination.
    • Health.pairActive enables probing on unidirectional activity (outbound != 0 || inbound != 0), and dedicated firewalled destinations probe proactively (ProbeBeforeActivity = true, 10s cadence).
  • Fixed shutdown stalls and lifecycle poisoning (destination_publication.go, destination_runtime.go, controller.go, transport_mux.go, runtime.go): Scoped destinationPublisher to its own cancelable context canceled before opGate drain (cutting 52-node teardown from 24s to < 30ms), canceled TransportMux setups during Router.stop(), skipped RefreshLocalLeaseSet() after close, and suppressed maintenance errors from destinations released mid-cycle.

Observability & Veil Telemetry (observability/internal/registry, dataplane/internal/router, dataplane/internal/tunnel, controlplane/internal/tunnel, controlplane/internal/runtime, cmd/ivnpd)

  • Added VTLS and VQUIC session gauges (registry.go, http.go, vtls_manager.go, vquic_manager.go, webui_api.go): Exposed ivnp_transport_vtls_sessions and ivnp_transport_vquic_sessions in Prometheus, included both in Transport.Sessions, reported transports.vtls and transports.vquic in WebUI /api/status, and stopped Veil-only nodes from reporting reachability = "disabled".
  • Fixed tunnel build and forwarding counters (build_manager.go, dataplane/internal/tunnel/runtime.go, controller.go): Wired TunnelRuntimeConfig.Metrics in Controller, counted ParticipatingForwarded across IBGW, intermediate, and OBEP participating roles, and credited speculative ErrBuildPending completions to BuildSuccesses.

Downloads

Each binary archive contains the self-contained static ivnpd binary (including the embedded WebUI), LICENSE, and README.md.

Artifact Target platform Microarchitecture baseline
ivnpd-v0.10.10-linux-amd64.tar.gz Linux (x86_64) GOAMD64=v2
ivnpd-v0.10.10-linux-arm64.tar.gz Linux (arm64) GOARM64=v8.0
ivnpd-v0.10.10-darwin-amd64.tar.gz macOS Intel (x86_64) GOAMD64=v1
ivnpd-v0.10.10-darwin-arm64.tar.gz macOS Apple Silicon (arm64) GOARM64=v8.4
ivnpd-v0.10.10-windows-amd64.zip Windows (x86_64) GOAMD64=v2
ivnpd-v0.10.10-windows-arm64.zip Windows (arm64) GOARM64=v8.1
SHA256SUMS Checksum manifest SHA-256 digests for all release archives
ivnpd-v0.10.10.sigstore.json Offline Sigstore bundle SLSA v1.0 Build Level 2 provenance for all archives and SHA256SUMS

Reproducible build and checksum verification

Verify downloaded archives against SHA256SUMS:

sha256sum -c SHA256SUMS --ignore-missing
# On macOS:
grep ' ivnpd-v0.10.10-darwin-arm64.tar.gz$' SHA256SUMS | shasum -a 256 -c -

Reproduce any target binary locally from tag v0.10.10 using the pinned Go toolchain in go.mod:

git checkout v0.10.10
GOOS=linux GOARCH=amd64 ./scripts/repro-build.sh ./dist/ivnpd ./cmd/ivnpd

Full Changelog: v0.10.9...v0.10.10

Container images (GHCR, multi-arch linux/amd64 + linux/arm64)

Image Pinned digest SLSA v1.0 L2 attestation
ghcr.io/gosuda/ivnpd:v0.10.10 sha256:49df2ec22d8834efb25d2882b37df804b745287a0dd17e6b158068adbd602c2b https://github.com/gosuda/IVNP/attestations/75238060
ghcr.io/gosuda/ivnp-reseed:v0.10.10 sha256:8709dc90236a4956bcef6ba64b69658a5d5c1914c735130ee1de3a6a6a94b55d https://github.com/gosuda/IVNP/attestations/75238124

Verify GHCR OCI image provenance before deploying:

gh attestation verify oci://ghcr.io/gosuda/ivnpd@sha256:49df2ec22d8834efb25d2882b37df804b745287a0dd17e6b158068adbd602c2b \
  --repo gosuda/IVNP \
  --signer-workflow gosuda/IVNP/.github/workflows/release.yml \
  --source-ref refs/tags/v0.10.10 \
  --deny-self-hosted-runners

Build provenance attestation

GitHub Actions generated SLSA v1.0 Build Level 2 provenance for every release archive, SHA256SUMS, and GHCR OCI container image on GitHub-hosted runners.

Verify release archives online against GitHub attestations or offline with the attached Sigstore bundle:

gh attestation verify ivnpd-v0.10.10-linux-amd64.tar.gz \
  --bundle ivnpd-v0.10.10.sigstore.json \
  --repo gosuda/IVNP \
  --signer-workflow gosuda/IVNP/.github/workflows/release.yml \
  --source-ref refs/tags/v0.10.10 \
  --deny-self-hosted-runners