Author Topic: TCP vs UDP in AH2  (Read 589 times)

Offline SectorNine50

  • Silver Member
  • ****
  • Posts: 1331
TCP vs UDP in AH2
« on: January 05, 2011, 11:23:03 AM »
Backstory: I'm taking a class that is about the internet, it's history, it's protocols, and the social and security ramifications of both.  We started talking about TCP vs UDP and why each is used, when the teacher brought up something that made me wonder...

Why does AH2 use TCP?  Wouldn't the packet retransmit abilities of this protocol cause warping when a packet was lost?  The way the internet works now, it seems that when you send the packets from the client to the server, they will inevitably get hung up in the buffer (particularly with how congested companies like Comcast are).  If one gets lost, and the TCP protocol requests a retransmit, you'd get an out-of-sequence packet, that could potentially make the plane warp backwards then back to it's current location since the server is waiting for the client's retransmitted packet to arrive.

I'm not assuming that I know the netcode of the game, but it just seems that just using UDP and ignoring packet retransmit could keep the large-distance warping issue, that happens occasionally, from occurring.  I know that a lot of FPS' use the UDP protocol for this same reason.

I guess basically I'm wondering if anyone could shed light as to why this game would use TCP over UDP. :salute
« Last Edit: January 05, 2011, 11:30:52 AM by SectorNine50 »
I'm Sector95 in-game! :-D

Offline ImADot

  • Platinum Member
  • ******
  • Posts: 6215
Re: TCP vs UDP in AH2
« Reply #1 on: January 05, 2011, 11:40:05 AM »
There was an excellent post about this somewhere...I'm sure somebody will dig up a link to it.  Might have been from Skuzzy in the Tech Support forum.
My Current Rig:
GigaByte GA-X99-UD4 Mobo w/ 16Gb RAM
Intel i7 5820k, Win7 64-bit
NVidia GTX 970 4Gb ACX 2.0
Track IR, CH Fighterstick, CH Pro Throttle, CH Pro Pedals

Offline Bino

  • Platinum Member
  • ******
  • Posts: 5938
Re: TCP vs UDP in AH2
« Reply #2 on: January 05, 2011, 12:37:45 PM »
Aces High defaults to using UDP, and will only fall back to TCP if there's a problem.


"The plural of 'anecdote' is not 'data'." - Randy Pausch

PC Specs

Offline SectorNine50

  • Silver Member
  • ****
  • Posts: 1331
Re: TCP vs UDP in AH2
« Reply #3 on: January 05, 2011, 12:43:27 PM »
Aces High defaults to using UDP, and will only fall back to TCP if there's a problem.

I thought it was the other way around?
I'm Sector95 in-game! :-D

Offline Bino

  • Platinum Member
  • ******
  • Posts: 5938
Re: TCP vs UDP in AH2
« Reply #4 on: January 05, 2011, 12:45:31 PM »


"The plural of 'anecdote' is not 'data'." - Randy Pausch

PC Specs

Offline SectorNine50

  • Silver Member
  • ****
  • Posts: 1331
Re: TCP vs UDP in AH2
« Reply #5 on: January 05, 2011, 01:47:55 PM »
Ah okay, thanks for the info. Clears that up haha
I'm Sector95 in-game! :-D