View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-22-2020 , 14:45   Re: Calculate Bandwidth Usage
Reply With Quote #5

You can restrict, how high rates players can use on your server.
sv_maxrate

Max updaterate and cmdrate follow -tickrate, in csgo.
Other games can use
sv_maxupdaterate
sv_maxcmdrate

You can also set minium rates what player can use.
sv_minrate
sv_minupdaterate
sv_mincmdrate

Then players can set own rates but you have set limits.
Code:
] rate 250000
] rate
"rate" = "192000" ( def. "196608" ) archive user                                 - Max bytes/sec the host can receive data
] sv_maxrate 
"sv_maxrate" = "192000" ( def. "0" ) min. 0.000000 max. 786432.000000 replicated - Max bandwidth rate allowed on server, 0 == unlimited

That above posts, calculations was just about server UPLOAD bandwidth, how much players can download information.

Players send much less data to server. CMD rate.
All I see 10KB/s. Around 80 Kbps per player.

CMD packet size (out:) goes around 150 Bytes, peak is 350 Bytes.
So 128 cmdrate x 150 Bytes = 19200 B/s
~ 153 Kbps per player.
~ 16 players = 2.448 Mbps.
*edit Around 1.280 Mbps - 2.488 Mbps, 16 players


*edit
apologize, I had fps_max set to 60, so my CMD rate didn't go any higher. That's why I see only 10KB/s.
With cmdrate 128 with no fps limit, I could reach 21KB/s. Around 168 Kbps per player.
~ 128 tick with 16 players = 2,688 Mbps
__________________
Do not Private Message @me

Last edited by Bacardi; 04-22-2020 at 15:15.
Bacardi is offline