ByteProject Network Architecture
Introduction
We designed the ByteProject network to be scalable and fully isolated, so that it can grow across many locations over a long period of time without redesigns. This article walks through how our nodes and routers are connected, how game servers are made reachable from the internet, and how the platform keeps servers running when a node comes under heavy load.
Node Groups
The basic building block of our network is the node group. Every node group consists of exactly 8 nodes. You can see these groups on our node status page, for example as NG-1 | DE-FFO-LOCAL-1.
Each node group has its own dedicated private address space of 10.28.0.0/28. When a node is created in the panel, it is automatically assigned an IP address from the range of its node group. Because every group works with its own self-contained range, groups never interfere with each other, and we can add as many of them as we need.
Connecting Nodes to the Router
Once a node has been created, it automatically establishes a WireGuard tunnel to the router of its node group. Inside this tunnel, we run a VXLAN network, and this is where the game servers live.
Why VXLAN inside WireGuard?
We regularly integrate nodes from external providers into our network. For these nodes, it was important to us that:
- the VXLAN network is never publicly reachable, and
- all game server traffic is encrypted and cannot be inspected by third parties, including the infrastructure between the node and our router.
Running VXLAN inside WireGuard satisfies both requirements. VXLAN provides the flat virtual network for our servers, while WireGuard ensures that everything travelling over the wire is encrypted and authenticated. It does not matter whether a node sits in our own rack or in a third-party data center.
Health Verification
After all nodes of a group have come online, the platform runs an automated status ping:
- Every node pings every other node in the group.
- Every node pings the router once.
This confirms that the tunnels and the VXLAN network were set up correctly and that all members of the group can communicate with each other. If any of these checks fail, the node group is marked as degraded and automatically deactivated, so that no servers are ever placed on a faulty network.
How a Game Server Is Made Reachable
Each node group is assigned its own port range within the span of 10,000 to 20,000. Public ports are handed out from this range, which guarantees that no two servers in the same group ever compete for the same port.
The following steps happen when a user creates a server:
- Placement. The server is placed on a node in a node group that is currently enabled for new server creations.
- Port allocation. The panel allocates a free port from the range of that group, for example
10002, on both TCP and UDP. Router configuration. The panel contacts the router of the node group and provides it with everything it needs to create a port forward:
- Internal server IP: for example
10.28.0.4/28 - Server port: for example
10002 - Protocols: TCP and UDP
- Internal server IP: for example
- Start. The game server is started.
From this point on, players can connect using the public IP address of the router together with the port of the server. The router forwards the traffic through the encrypted tunnel to the node that is running the server.
Automatic Load Balancing
To keep nodes from running out of memory, we built an automatic transfer mechanism. When a node reaches 85% RAM usage, the platform moves servers from that node to other nodes within the same node group and starts them there.
An important detail is that a transferred server keeps its assigned port. This is possible because the public port belongs to the server and the node group, not to a specific node. For a transfer, the panel only has to contact the router and change the NAT target IP of the existing port forward to the IP of the new node. Players keep using the same address, and nothing changes on their end.
Port Forward Verification on Start
As an additional safety measure, the platform checks on every server start whether the port forward on the router is still correct. If it is outdated or does not match the current node of the server, it is corrected automatically before the server starts. This ensures that a server is always reachable under its assigned address, even after transfers, maintenance, or unexpected changes.
Summary
- Nodes are organized in node groups of 8, each with its own
10.28.0.0/28range. - Nodes connect to the router via WireGuard, with a VXLAN network running inside the tunnel.
- All game server traffic is encrypted and never exposed publicly inside the network.
- Faulty groups are detected by status pings and marked as degraded.
- Servers are reachable through the router's public IP and a dedicated port from the group's range.
- At 85% RAM usage, servers are transferred to other nodes in the group while keeping their port.
- Port forwards are verified on every start.