Difference between revisions of "Development:Network:process jump"

From Ghoulwiki
Jump to: navigation, search
 
(example packetlog)
 
Line 7: Line 7:
 
see [[Development:Network:packetlog_jump]]
 
see [[Development:Network:packetlog_jump]]
  
=== packetlog by proxy (only part before reconnect) ===
+
=== packetlog by wireshark parsed before reconnect ===
 
<pre>
 
<pre>
// player is in space in Crucible/Enyo.system near jumppoint, playership = admonisher, jumps to cephid 17. serverip = 192.168.178.26
+
-- packetlogs/jump-1-before-reconnect.c
// point-of-view = server, so  recv=data sent from client to server,   send=data sent from server to client
+
Packet({from=client,cmd=CMD_JUMP,head={{len=16,pri=1,flags=0x0},{cmd=28,serial=132,datalen=0,flags=0x0}}})
// warning : display of packets above 512bytes are shortened to 128 bytes at beginning and end, and ... in between
+
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=59,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=43,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_JUMP,head={{len=37,pri=1,flags=0x7a},{cmd=28,serial=0,datalen=21,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_LOGOUT,head={{len=16,pri=1,flags=0x0},{cmd=2,serial=132,datalen=0,flags=0x0}}})
 +
</pre>
  
TCP(6777,'vega'):Recv(Data(8,{0x00,0x00,0x00,0x10,0x01,0x00,0x00,0x00},"????????"))
+
=== packetlog by wireshark parsed after reconnect ===
TCP(6777,'vega'):Recv(Data(16,{0x1C,0xF2,0x01,0xA4,0x77,0x43,0xE8,0x07,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},"????wC??????????"))
+
<pre>
TCP(6777,'vega'):Send(Data(107,{0x00,0x00,0x00,0x36,0x01,0x00,0x0A,0x0A,0x31,0x14,0x00,0x00,0x77,0x43,0xE8,0x74,0x00,0x00,0x00,0x26,0x00,0x00,0x00,0x00,0xBC,0x01,0x02,0x21,0xBC,0x00,0x09,0x6A,0x75,0x6D,0x70,0x5F,0x66,0x72,0x6F,0x6D,0xBE,0x00,0x00,0x00,0x00,0x21,0xBC,0x00,0x0D,0x43,0x72,0x75,0x63,0x69,0x62,0x6C,0x65,0x2F,0x45,0x6E,0x79,0x6F,0x00,0x00,0x00,0x25,0x01,0x00,0x0A,0x0A,0x1C,0x14,0x00,0x00,0x77,0x43,0xE8,0x7B,0x00,0x00,0x00,0x15,0x00,0x00,0x20,0x31,0x21,0xBC,0x00,0x0E,0x31,0x39,0x32,0x2E,0x31,0x36,0x38,0x2E,0x31,0x37,0x38,0x2E,0x32,0x36,0xBC,0x1A,0x79},"???6??\\r\\r1???wC?t???&???????!???jump_from?????!??\\nCrucible/Enyo???%??\\r\\r????wC?{?????? 1!???192.168.178.26??y"))
+
-- packetlogs/jump-2-after-reconnect.c
TCP(6777,'vega'):Recv(Data(8,{0x00,0x00,0x00,0x10,0x01,0x00,0x00,0x00},"????????"))
+
Packet({from=client,cmd=CMD_CONNECT,head={{len=16,pri=1,flags=0x0},{cmd=46,serial=4995,datalen=0,flags=0x0}}})
TCP(6777,'vega'):Recv(Data(16,{0x02,0x70,0x01,0xA4,0x77,0x43,0xE8,0x56,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},"?p??wC?V????????"))
+
Packet({from=server,cmd=CMD_CONNECT,head={{len=38,pri=1,flags=0x7a},{cmd=46,serial=0,datalen=22,flags=0x0}}})
TCP(6777,'vega'):TerminateByServer()
+
Packet({from=client,cmd=CMD_LOGIN,head={{len=36,pri=1,flags=0x0},{cmd=1,serial=0,datalen=20,flags=0x0}}})
TCP(6777,'vega'):Destroy()
+
Packet({from=server,cmd=LOGIN_ACCEPT,head={{len=9924,pri=1,flags=0x7a},{cmd=4,serial=135,datalen=9908,flags=0x0}}})
 
+
Packet({from=server,cmd=CMD_TXTMESSAGE,head={{len=58,pri=1,flags=0x7a},{cmd=33,serial=0,datalen=42,flags=0x0}}})
// packetlog ends here, the client made a direct connection to the server ip instead of my packet-logging proxy
+
Packet({from=client,cmd=CMD_DOWNLOAD,submd=ResolveRequest,head={{len=47,pri=1,flags=0x0},{cmd=30,serial=0,datalen=31,flags=0x10}}})
 +
Packet({from=server,cmd=CMD_DOWNLOAD,submd=ResolveResponse,head={{len=47,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=31,flags=0x10}}})
 +
Packet({from=client,cmd=CMD_DOWNLOAD,submd=DownloadRequest,head={{len=47,pri=1,flags=0x0},{cmd=30,serial=0,datalen=31,flags=0x10}}})
 +
Packet({from=server,cmd=CMD_DOWNLOAD,submd=DownloadFirstFragment,head={{len=1030,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=1014,flags=0x10}}})
 +
Packet({from=server,cmd=CMD_DOWNLOAD,submd=DownloadFragment,head={{len=1027,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=1011,flags=0x10}}})
 +
Packet({from=server,cmd=CMD_DOWNLOAD,submd=DownloadFragment,head={{len=1027,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=1011,flags=0x10}}})
 +
Packet({from=server,cmd=CMD_DOWNLOAD,submd=DownloadFragment,head={{len=1027,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=1011,flags=0x10}}})
 +
Packet({from=server,cmd=CMD_DOWNLOAD,submd=DownloadLastFragment,head={{len=985,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=969,flags=0x10}}})
 +
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
 +
Packet({from=client,cmd=CMD_ADDCLIENT,head={{len=16,pri=1,flags=0x0},{cmd=12,serial=135,datalen=0,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=37,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=21,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_ADDEDYOU,head={{len=67,pri=1,flags=0x7a},{cmd=15,serial=135,datalen=51,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_ENTERCLIENT,head={{len=9912,pri=1,flags=0x7a},{cmd=13,serial=0,datalen=9896,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_SNAPCARGO,head={{len=20,pri=1,flags=0x7a},{cmd=40,serial=0,datalen=4,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_CREDITS,head={{len=21,pri=1,flags=0x7a},{cmd=42,serial=135,datalen=5,flags=0x0}}})
 +
Packet({from=server,cmd=CMD_SNAPCARGO,head={{len=8670,pri=1,flags=0x7a},{cmd=40,serial=0,datalen=8654,flags=0x0}}})
 
</pre>
 
</pre>

Latest revision as of 20:39, 17 June 2012

during a jump, the client disconnects from the gameserver and makes a new connection.

example packetlog

packetlog by wireshark (before and after reconnect)

see Development:Network:packetlog_jump

packetlog by wireshark parsed before reconnect

-- packetlogs/jump-1-before-reconnect.c
Packet({from=client,cmd=CMD_JUMP,head={{len=16,pri=1,flags=0x0},{cmd=28,serial=132,datalen=0,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=59,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=43,flags=0x0}}})
Packet({from=server,cmd=CMD_JUMP,head={{len=37,pri=1,flags=0x7a},{cmd=28,serial=0,datalen=21,flags=0x0}}})
Packet({from=client,cmd=CMD_LOGOUT,head={{len=16,pri=1,flags=0x0},{cmd=2,serial=132,datalen=0,flags=0x0}}})

packetlog by wireshark parsed after reconnect

-- packetlogs/jump-2-after-reconnect.c
Packet({from=client,cmd=CMD_CONNECT,head={{len=16,pri=1,flags=0x0},{cmd=46,serial=4995,datalen=0,flags=0x0}}})
Packet({from=server,cmd=CMD_CONNECT,head={{len=38,pri=1,flags=0x7a},{cmd=46,serial=0,datalen=22,flags=0x0}}})
Packet({from=client,cmd=CMD_LOGIN,head={{len=36,pri=1,flags=0x0},{cmd=1,serial=0,datalen=20,flags=0x0}}})
Packet({from=server,cmd=LOGIN_ACCEPT,head={{len=9924,pri=1,flags=0x7a},{cmd=4,serial=135,datalen=9908,flags=0x0}}})
Packet({from=server,cmd=CMD_TXTMESSAGE,head={{len=58,pri=1,flags=0x7a},{cmd=33,serial=0,datalen=42,flags=0x0}}})
Packet({from=client,cmd=CMD_DOWNLOAD,submd=ResolveRequest,head={{len=47,pri=1,flags=0x0},{cmd=30,serial=0,datalen=31,flags=0x10}}})
Packet({from=server,cmd=CMD_DOWNLOAD,submd=ResolveResponse,head={{len=47,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=31,flags=0x10}}})
Packet({from=client,cmd=CMD_DOWNLOAD,submd=DownloadRequest,head={{len=47,pri=1,flags=0x0},{cmd=30,serial=0,datalen=31,flags=0x10}}})
Packet({from=server,cmd=CMD_DOWNLOAD,submd=DownloadFirstFragment,head={{len=1030,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=1014,flags=0x10}}})
Packet({from=server,cmd=CMD_DOWNLOAD,submd=DownloadFragment,head={{len=1027,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=1011,flags=0x10}}})
Packet({from=server,cmd=CMD_DOWNLOAD,submd=DownloadFragment,head={{len=1027,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=1011,flags=0x10}}})
Packet({from=server,cmd=CMD_DOWNLOAD,submd=DownloadFragment,head={{len=1027,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=1011,flags=0x10}}})
Packet({from=server,cmd=CMD_DOWNLOAD,submd=DownloadLastFragment,head={{len=985,pri=1,flags=0x7a},{cmd=30,serial=0,datalen=969,flags=0x10}}})
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
Packet({from=client,cmd=CMD_SERVERTIME,head={{len=19,pri=1,flags=0x0},{cmd=0,serial=0,datalen=3,flags=0x0}}})
Packet({from=client,cmd=CMD_ADDCLIENT,head={{len=16,pri=1,flags=0x0},{cmd=12,serial=135,datalen=0,flags=0x0}}})
Packet({from=server,cmd=CMD_SAVEDATA,head={{len=37,pri=1,flags=0x7a},{cmd=49,serial=0,datalen=21,flags=0x0}}})
Packet({from=server,cmd=CMD_ADDEDYOU,head={{len=67,pri=1,flags=0x7a},{cmd=15,serial=135,datalen=51,flags=0x0}}})
Packet({from=server,cmd=CMD_ENTERCLIENT,head={{len=9912,pri=1,flags=0x7a},{cmd=13,serial=0,datalen=9896,flags=0x0}}})
Packet({from=server,cmd=CMD_SNAPCARGO,head={{len=20,pri=1,flags=0x7a},{cmd=40,serial=0,datalen=4,flags=0x0}}})
Packet({from=server,cmd=CMD_CREDITS,head={{len=21,pri=1,flags=0x7a},{cmd=42,serial=135,datalen=5,flags=0x0}}})
Packet({from=server,cmd=CMD_SNAPCARGO,head={{len=8670,pri=1,flags=0x7a},{cmd=40,serial=0,datalen=8654,flags=0x0}}})