Connection Issues in GW

Re: Connection Issues in GW

Postby Eximius » 20 Apr 2014, 19:57

Zep, While I do understand the need for consistency, we have our both forever.log s which show the proxy creation side of FAF. Then we do have both our GW game logs and my custom game log (you can infer deering's custom game log from mine, seeing as the connection worked in the usual way). We do not need any more information.

For the following information 'Peer' is Deering and Host is 'Eximius' (c'est moi):

This is the series of events that leads to the failure of the proxy:

<events>
FA is started

1. The server tells the host to connect to the Peer after some Nat Packet ping pong between the peer and the host. The Host tries to, but cannot connect due to the udp packets not getting through the peer's router. //GPG ConnectToPeer

2. The server tells the peer to connect through proxy to host. As we can deduce from the logs, the connection is rejected, because the peer is already connected in a non-proxy mode (even though the connection is one-way as udp packets don't go through Peer's router.). // JoinGame

3. The server tells the host to drop the connection to peer's regular port. // DisconnectFromPeer

4. The server tells the host to connect to peer through proxy. //GPG ConnectToPeer

</events>

Now, it seems very likely that FA has added the address and port of peer to a blacklist when it rejected the faulty connect (127.0.0.1:12001). Which means that it cannot get any data from the Peer. No connection.

Why does this faulty series of events happen? Well, the sequence in which the server talks to the clients is (with relative time stamps):

00:00 | ConnectToPeer -> Host
00:01~ | JoinGame (proxy) -> Peer
00:02.5 | DisconnectFromPeer -> Host
00:02.5 | ConnectToPeer (proxy) -> Host

It is elementary my dear Watson.

Welcome to the wonderful world of race conditions. We hope you had enjoying << hello >> your stay.

This explains why Deering has this problem a lot and seemingly at random.

Why Deering? Because he is 'Stralian and there is a massive lag between FAF <-> Deering, Deering <-> Me

There is a useless(?) ConnectToPeer/DisconnectFromPeer trial, when the server should know that the packets do not ping pong between the game players. (Plus it seems to have a period of 2.5s? (2.0s maybe?))

Possible fixes:
Remove ConnectToPeer/DisconnectFromPeer trial before proxy.
Eximius
Crusader
 
Posts: 13
Joined: 16 Mar 2014, 00:41
Has liked: 1 time
Been liked: 13 times
FAF User Name: Eximius

Re: Connection Issues in GW

Postby Ze_PilOt » 21 Apr 2014, 14:03

Good catch. The disconnect is handled client-side to avoid these issues now.

So, should be fixed.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Connection Issues in GW

Postby Deering » 29 Apr 2014, 17:34

Had connection issues with orb, could not connect in custom or gw.

We have managed to connect previously. He did mention he is on a university network so that might have something to do with it.
Attachments
Orb logs.zip
(36.08 KiB) Downloaded 132 times
Deering logs.zip
(60.94 KiB) Downloaded 143 times
Deering
Evaluator
 
Posts: 673
Joined: 18 Sep 2013, 11:47
Has liked: 16 times
Been liked: 41 times
FAF User Name: Deering

Re: Connection Issues in GW

Postby Ze_PilOt » 29 Apr 2014, 17:45

Not sure to understand :

info: LOBBY: "Deering" [Orb370:12001, uid=68518] has established connections to: 23178
info: LOBBY: "Orb" [Matt_Desktop:12001, uid=23178] has established connections to: 68518

You both connected to each other, the the host left.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Connection Issues in GW

Postby Deering » 29 Apr 2014, 18:01

Was this the custom or gw game? With the custom game, I was host. Orb managed to connect for all of a second and then disappeared. His point of view he said he got in and then it said some weird things and then was out. He then couldn't see my lobby in the list anymore. From my point of view I was just sitting in the lobby and left a minute or two later.
Deering
Evaluator
 
Posts: 673
Joined: 18 Sep 2013, 11:47
Has liked: 16 times
Been liked: 41 times
FAF User Name: Deering

Re: Connection Issues in GW

Postby Ze_PilOt » 01 May 2014, 11:11

Something weird is not a message I'm aware of.

What was it saying exactly?
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Connection Issues in GW

Postby Deering » 01 May 2014, 11:52

I dont know, he didnt say. I will try to recreate it with him and report back
Deering
Evaluator
 
Posts: 673
Joined: 18 Sep 2013, 11:47
Has liked: 16 times
Been liked: 41 times
FAF User Name: Deering

Re: Connection Issues in GW

Postby Ze_PilOt » 01 May 2014, 12:50

That's really important.

I've also put more debug message, so please report again.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Connection Issues in GW

Postby Deering » 01 May 2014, 14:34

Navy and I

Edit: Never mind he just said it was too much and disconnected ...
Attachments
game.log
(44.19 KiB) Downloaded 134 times
forever.log
(87.77 KiB) Downloaded 123 times
Deering
Evaluator
 
Posts: 673
Joined: 18 Sep 2013, 11:47
Has liked: 16 times
Been liked: 41 times
FAF User Name: Deering

Re: Connection Issues in GW

Postby Deering » 01 May 2014, 18:08

Gw game with Lextoc

We managed to connect in a custom game straight after.
Attachments
game.log
(44.46 KiB) Downloaded 124 times
forever.log
(141.91 KiB) Downloaded 122 times
Last edited by Deering on 01 May 2014, 18:14, edited 1 time in total.
Deering
Evaluator
 
Posts: 673
Joined: 18 Sep 2013, 11:47
Has liked: 16 times
Been liked: 41 times
FAF User Name: Deering

PreviousNext

Return to Galactic War

Who is online

Users browsing this forum: No registered users and 1 guest