Feature #20376

Use TCP instead of UDP for networking in some cases

Added by MuxauL about 4 years ago. Updated about 3 years ago.

Status:New Start date:06/13/2011
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Multiplayer
Target version:-
Reproduced by another DH user: First affected ArmA3 version:
Reproducible for you: Single / Multi Player?:
Affected ArmA3 version:

Description

Using UDP in Arma on large-scale multiplayer battles with more than 100 players causes bad results (lags, freezes, etc..)

History

Updated by MuxauL about 4 years ago

Of course you can spend hours finetuning configs.. But this will slightly reduce those effects..

Updated by pettka about 4 years ago

  • Category set to Multiplayer

Updated by firefly2442 about 4 years ago

I'm not sure switching over to using just TCP is the best choice. UDP may still be better for some data such as movement and rotation of players because even if you lose one or two packets, the game can compensate so it has a "rough" position. Plus, a UDP header is actually smaller than a TCP header.

Updated by MuxauL about 4 years ago

firefly2442 wrote:

Plus, a UDP header is actually smaller than a TCP header.

I think it was important 3-7 years ago... When internet speed was 0.1-0.5 MbPS
And its not better for player motion(for rotation - maybe..) because packets are often lost by groups of 100-200 not one or two.. And then the player just moves 10 meters from his previous position.

Updated by wore about 4 years ago

WHAT?? LOL
MuxauL wrote:

Using UDP in Arma on large-scale multiplayer battles with more than 100 players causes bad results (lags, freezes, etc..)

Really?In case of TCP there is time needed to create session, time needed to confirmation from receiver and sender, time needed to detect connection lost, time to use buffer, time to detect packer lost, time to send it again,etc. How do you think TCP will helps to prevent freezes and lags? Also in case of using TCP as transport protocol you'll have a lot more traffic. With TCP instead of UDP you'll see the most terrible lags and freezes you ever seen. Учи матчасть вместо того чтоб писать бред

Updated by MuxauL almost 4 years ago

wore wrote:

WHAT?? LOL

Really? You know that arma uses 2 different types of packets: guaranteed and nonGuaranteed. And guaranteed works(i think) like tcp packets(they ARE guaranteed to be delivered)And what tcp protocol offers to us? Just the same... Plus in case of using tcp you'll have 2 - 2.5 larger header(only HEADER)128-160 bit(16-20 bytes) for tcp instead of 8 bytes for udp datagram. And i misspoken naming that ticket. It should sound like "Use tcp instead of udp in network in some cases". А что касается матчасти:
1. Разберусь без людей не умеющих себя адекватно вести.
2. Разберись сначала сам в ней, а потом уж учи других.

Updated by Fireball almost 4 years ago

  • Subject changed from Use TCP instead of UDP for Networking to Use TCP instead of UDP for networking in some cases

Updated by Magician almost 4 years ago

arse vote neg.
+1 to compensate
MuxauL have point after all

Also available in: Atom PDF