Server requirements

From AssaultCube

(Redirected from Server Requirements)
Jump to: navigation, search

Contents

Machine requirements

CPU usage is not that much. But it is important, to provide sufficient priority to the server task, if it's not running alone on the machine. If the task suffers from high latency, ping time will increase.

Per player data amount

During normal gameplay, every player produces around 30 Bytes 25 times a second, or just 750 bytes/second. Special events, like new players connecting, may create peaks. Also, for example, every bullet increases the data amount a bit, so the actual values will vary for different game modes too. For example, tosok has almost no bullet data.

Server incoming bandwidth

For n players, the average incoming bandwidth will be n * 750 Bytes/second.

Server outgoing bandwidth

Every packet which is incoming from one player, is sent to all the other players.

For n players, the average outgoing bandwidth will be (n - 1) * n * 750 Bytes/second.

Though incoming bandwith scales linear with the player number, outgoing bandwidth increases quadratic with the number of players. For a doubled player count, quadruple outgoing bandwidth is needed.

Uplink bandwidth throttle

To share the uplink bandwidth fair between the players, a uplink throttle is provided. To limit the bandwidth usage of every single player, specify the maximum upstream data rate by using the -u commandline parameter. A player should have a throttle value of around (n - 1) * 750 Bytes/second. It's safe to set the throttle to line_uplink_capability / number_of_players

Example Calculation

given bandwidth

ADSL line with 6 mbps downlink and 384 kbps uplink:

n = sqrt((384000 / (8 * 750) + 0.25) + 0.5 = 8.52 -> up to 8 players
throttle = 384000 / (8 * 8) = 6000 -> use parameter -u6000

commandline parameters: -u6000 -c8

If the ADSL line is used for other purposes at the same time, the available bandwidth will be lower. Please do not host a server simultaneously to P2P networking or VoIP unless you can guarantee bandwidth by means of QoS. Playing AssaultCube on the same line is possible.

given player number

Server requirements for 16 players:

downlink = 16 * 750 * 8 = 96 kbps
uplink = 16 * 15 * 750 * 8 = 1440 kbps
throttle = 15 * 750 = 11250

rent a server with downlink > 96 kbps, uplink > 1440 kbps

commandline parameters: -u11250 -c16

Guides

Newbie Guide | Basic Strategy Tips | Server Guide | Special Movement | Weapon Tactics and Tips | Slang and Jargon Definitions | Gamemodes | Server administration | IRC | Server setup | Console commands

View Edit
Personal tools