Aquila

Networking

Ports, how player traffic reaches a server, and what a server can reach.

Ports

A fleet template declares up to four ports. Each has a name, the container port the game listens on, and a protocol:

ProtocolFor
PORT_PROTOCOL_UDPMost game traffic
PORT_PROTOCOL_TCPLobbies, HTTP, game protocols over TCP
PORT_PROTOCOL_TCP_UDPOne public port number carrying both

Every server gets a public port for each, between 20000 and 21000, on its node's public address. Allocation and matchmaking return the address and the public ports by name, so the game never needs to know them. Players always connect to the public port, whatever the container port is.

How players reach a server

Player traffic arrives at the node, and a proxy there forwards it to the server. What the game sees:

  • Source addresses. Packets and connections come from the node's address. Each player still has a source port of its own, so tell players apart by the full address:port. The player's own IP is not visible to the game. Identify players by what they send, such as a token from your backend.
  • Idle UDP flows. A UDP flow that carries nothing either way for 30 seconds is closed. The player's next packet then arrives from a new source port. Send a keepalive from the client at least every 20 seconds, or let players rejoin by token.
  • Unanswered UDP flows. A new flow the server does not answer within 5 seconds is closed. Reply to every client's first packet, even if only to acknowledge it.
  • Flow limit. A port holds up to 512 UDP flows at once. Plan for one flow per connected player.

The node also rate-limits traffic per source address, to soak up floods aimed at one server.

What a server can reach

DestinationAllowed
The internet, over any port but 25Yes
DNSYes
The SDK, at AQUILA_SDK_URLYes, SDK servers only
Mail servers on port 25No
Other servers, in your fleets or anyone else'sNo
The cluster's own services and nodesNo

Servers that need to talk to each other, or to your backend, do so through your backend's public endpoints.

Incoming traffic reaches a server only on its declared ports, through the proxy. A metrics endpoint is reachable by Aquila's scraper only, and never public.

Isolation

An approved organization runs in its own namespace on nodes dedicated to it. No other organization's servers share those nodes, and nothing in another organization's namespace can reach yours.

On this page