Author Topic: Taffic shaping for uploads/downloads  (Read 573 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Taffic shaping for uploads/downloads
« on: 12 December 2011, 12:58:16 »
Currently (v3.6.0), when a user hosts a game server, has FTP serving enabled, and has multiple connected users download from him simultaniously, it tends to happen that the hosting users' upstream bandwidth gets saturated, causing some or all of the connected users to be disconnected. This situation could be prevented if the game was to limit the bandwidth used for FTP transfers to a value that is below the total bandwidth available for the given direction (upstream or downstream), as (could be) configured in MegaGlest options.

For example, if a hosting user H and a connected client user C, had both set, in glestuser.ini
Code: [Select]
UpstreamBandwidth=100
DownstreamBandwidth=3000
then this would allow the game to artificially limit the bandwidth used by FTP data transferred between H and C to:
Code: [Select]
100 kbps - 1 (number of connected clients) x 10 kbps (bandwith needed for game protocol) = 90 kbps.This way, clients should remain connected while the file transfer is ongoing.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

 

anything