Skip to content

UDP ports: a lane on a node forwards them as TCP, and the main slot does not move them #192

Closed

Description

@7schmiede

Known limitation

devstack forwards TCP only: tcpfwd.rs, the tunnels to a lane on a node (ADR-0029) and the shared-lane forwards. There is no UDP socket anywhere in the code. Most dev stacks only need TCP (an API, a UI, a database, a game server's realm and world ports). UDP turns up with game voice/position ports, DNS, syslog and some media servers.

What happens today

  1. A local lane: works. Its Compose overlay moves a UDP host port by the lane's offset and keeps the /udp suffix (devstack-compose overlay(); the test with 5353:53/udp).
  2. A lane on a node: broken, and without saying so.
    • The node lists every published port of a started service, whatever its protocol: initial_infra in crates/devstack-node/src/lanerun.rs, published keyed by the target port only.
    • The requester then listens on that number as TCP (remote.rs, forward_port).
    • So a UDP port of such a lane is unreachable here, and a TCP listener sits on its number.
  3. published maps are keyed without the protocol. A service that publishes the same target port as TCP and as UDP (DNS: 53/tcp and 53/udp) keeps only one of the two.
  4. The main slot (ADR-0048, accepted): main_ports moves TCP ports only. A UDP port of a named service stays with Docker in the main tree and does not follow a lane.

Proposal

  • Short term:
    • The node skips non-TCP ports when it builds the forward list.
    • The lane's page and devstack lane list say "UDP port … is not forwarded".
    • The published maps carry the protocol.
  • Later, when a stack needs it:
    • A UDP relay: sessions keyed by the client's address, with an idle timeout. There is no "hold" while a container starts; datagrams are dropped.
    • A datagram framing through the node tunnel, which means a pool protocol bump.
    • Then main_ports can move UDP too.

Seen while writing ADR-0048 (#190, part 2 of #184).

Activity

  1. added
    bug
    enhancement
    on Oct 21, 2026
  2. 7schmiede commented on Oct 22, 2026

    @7schmiede
    MemberAuthor

    The short-term part shipped with #217 (0.19.0): a lane on a node forwards TCP ports only, the published maps carry the protocol, and the dashboard and devstack lane list name UDP ports as not forwarded. The UDP relay is tracked in #219.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions