nat packets, proxy questions

Post here if you want to help developing something for FAF.

nat packets, proxy questions

Postby rootbeer23 » 05 Oct 2014, 15:26

why am i connected with the proxy in this situation?
it looks like udp between the peers is working.
can someone explain in plain english the meaning and mechanism
of "sendNatPacket", "ProcessNatPacket", "ASKREPLY", "PLAYERID"

2014-10-05 13:18:27,209 INFO faf.fa.relayer FA connected locally.
2014-10-05 13:18:27,250 DEBUG faf.fa.relayer faf server direct.faforever.com:8000
2014-10-05 13:18:27,250 DEBUG faf.fa.relayer Initializing ping timer
2014-10-05 13:18:27,252 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "GameState", "chuncks": ["Idle"]}
2014-10-05 13:18:27,296 INFO faf.fa.relayer Command received from server : {"commands": [0, 6112, "root2dot0", 67226, 1], "key": "CreateLobby"}
2014-10-05 13:18:27,296 INFO faf.fa.relayer Setting uid : 67226
2014-10-05 13:18:27,296 INFO faf.fa.relayer Command received from server : {"commands": ["91.121.153.175:30351", "/PLAYERID 67226 root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:27,365 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "GameState", "chuncks": ["Lobby"]}
2014-10-05 13:18:27,493 INFO faf.fa.relayer Command received from server : {"commands": ["91.121.153.175:30351", "/PLAYERID 67226 root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:27,494 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["91.121.153.175:30351", "PACKET_RECEIVED 6112"]}
2014-10-05 13:18:27,539 INFO faf.client port used : 6112
2014-10-05 13:18:27,694 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:27,759 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:28,355 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:28,437 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:28,437 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:28,479 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/PLAYERID 67226 root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:28,552 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:28,621 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:28,621 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:28,756 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:28,819 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:28,819 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:28,953 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:29,035 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:29,036 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:29,155 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:29,217 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:29,219 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:29,355 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:29,421 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:29,421 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:29,555 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:29,618 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:29,618 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:29,808 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/PLAYERID 67226 root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:29,831 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:29,884 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:29,885 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:30,480 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:30,549 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:30,551 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:30,680 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:30,747 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:30,750 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:30,832 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/PLAYERID 67226 root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:30,881 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:30,950 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:30,950 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:31,085 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:31,148 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:31,151 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:31,288 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:31,348 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:31,351 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:31,487 INFO faf.fa.relayer Command received from server : {"commands": ["77.37.152.21:6112", "/ASKREPLY root2dot0"], "key": "SendNatPacket"}
2014-10-05 13:18:31,549 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/PLAYERID 38718 armenator88"]}
2014-10-05 13:18:31,549 INFO faf.fa.relayer Command transmitted from FA to server : {"action": "ProcessNatPacket", "chuncks": ["77.37.152.21:6112", "/ASKREPLY armenator88"]}
2014-10-05 13:18:36,974 INFO faf.fa.relayer Command received from server : {"commands": [3, "77.37.152.21", "armenator88", 38718], "key": "JoinProxy"}
rootbeer23
Supreme Commander
 
Posts: 1001
Joined: 18 May 2012, 15:38
Has liked: 0 time
Been liked: 31 times
FAF User Name: root2342

Re: nat packets, proxy questions

Postby Sheeo » 06 Oct 2014, 04:34

Would need to see armenators log to see if he doesn't receive the udp messages.
Support FAF on patreon: https://www.patreon.com/faf?ty=h

Peek at our continued development on github: https://github.com/FAForever
Sheeo
Councillor - Administrative
 
Posts: 1038
Joined: 17 Dec 2013, 18:57
Has liked: 109 times
Been liked: 233 times
FAF User Name: Sheeo

Re: nat packets, proxy questions

Postby rootbeer23 » 06 Oct 2014, 06:04

i guess that will be the case...
but that also means that ASKREPLY wouldnt be asking for a reply, the server would instruct peer 1
to send a PLAYERID everytime it instructs peer 2 to send ASKREPLY, without checking if peer 1 received
an ASKREPLY.
which doesnt make much sense either.
rootbeer23
Supreme Commander
 
Posts: 1001
Joined: 18 May 2012, 15:38
Has liked: 0 time
Been liked: 31 times
FAF User Name: root2342


Return to Contributors

Who is online

Users browsing this forum: No registered users and 1 guest