IP Library Granted Patent US 10,569,169
Granted Patent B2
US 10,569,169 · App. 15/171,138 · Granted Feb 25, 2020

Data processing method and apparatus for network system

Inventors: Jun Li (Shenzhen, CN); Zhiyong Zhuo (Shenzhen, CN); Yiju Mou (Shenzhen, CN); Zhuo Gong (Shenzhen, CN); Liang Shang (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
A63F13/35A63F13/23G06F9/544H04L69/161
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,569,169
App. No.
15/171,138
Granted
Feb 25, 2020
Kind
B2
Abstract

Data processing method and apparatus for a network system are provided. The method includes collecting, by a recording module at a socket interface of a front apparatus of the network system, data packets transmitted between the front apparatus and a server, sequentially recording the collected data packets in a binary file in chronological order, and saving the binary file; and disconnecting, by a playback module, transmission communication between the front apparatus and the server, sequentially parsing the data packets in the binary file in chronological order, and sending the data packets to an upper-layer logic processing module of the front apparatus without using the socket interface. The present disclosure can implement a demonstration (Demo) technology of a network system in a simple processing manner, thereby reducing system complexity and storage space occupied, and improving universality.

Claims (47)

1. A data processing method for a network system, comprising:

a recording process; and

a playback process;

wherein:

the network system comprises a front apparatus and a game server, the front apparatus being an online game front apparatus that includes a socket interface and an upper-layer logic processing module,

the recording process comprises: when a current online game runs,

collecting, at the socket interface of the front apparatus of the network system, data packets transmitted between the front apparatus and the game server, the data packets including at least one of a first type data packet and a second type data packet, wherein the first type data packet is a data packet received by the socket interface from the upper-layer logic processing module of the front apparatus, converted by the socket interface to comply with a transport layer protocol, and then sent by the socket interface to the game server; and the second type data packet is a data packet received by the socket interface from the game server, decapsulated by the socket interface, and then transmitted to the upper-layer logic processing module;

sequentially recording the collected data packets in a binary file in chronological order, including: each time the socket interface sends a data packet to the game server or receives a data packet from the game server, forming a data segment corresponding to the data packet, and writing the data segment into the binary file; and

saving the binary file; and

the playback process comprising:

disconnecting transmission communication between the front apparatus and the server;

sequentially parsing the data packets in the binary file in chronological order; and

sending the data packets to the upper-layer logic processing module of the front apparatus for playback without using the socket interface and without modifying the upper-layer logic processing module.

2. The method according to claim 1 , wherein the at the socket interface of the front apparatus of the network system is specifically at a side, connected to the upper-layer logic processing module, of the socket interface.

3. The method according to claim 2 , wherein the collecting data packets transmitted between the front apparatus and the game server, and sequentially recording the collected data packets in a binary file in chronological order specifically comprises:

intercepting a data packet transmitted by using the socket interface, copying the intercepted data packet, and then continuing to transmit the data packet in an original direction of the data packet; and

generating a data segment from each copied data packet, wherein the data segment comprises a segment header and a segment body, the segment header comprises length information of the data segment, and the data packet is in the segment body, and sequentially recording the data segments in a binary file in chronological order.

4. The method according to claim 3 , wherein the intercepting a data packet transmitted by using the socket interface is specifically: intercepting a data packet that is transmitted by the socket interface to the upper-layer logic processing module of the front apparatus.

5. The method according to claim 1 , wherein the method further comprises:

parsing, in the playback process, a data packet when the data packet is the first type data packet originally obtained in the recording process when being sent by the upper-layer logic processing module of the front apparatus to the socket interface, to obtain operation data in the data packet, and inputting the operation data to the upper-layer logic processing module of the front apparatus in an input manner of simulating a playback of a human-computer interaction interface processing a user operation; and

directly inputting, to the upper-layer logic processing module of the front apparatus, a data packet when the data packet is the second type data packet originally obtained in the recording process when being decapsulated and transmitted by the socket interface to the front apparatus.

6. The method according to claim 5 , wherein simulating a playback of a human-computer interaction interface processing a user operation comprises:

simulating the user operation performed on an input device associated with the front apparatus, the input device being a screen display input module, a keyboard, or a mouse.

7. The method according to claim 1 , wherein the method further comprises:

creating the binary file when the recording process starts, and adding a file header to the binary file, wherein the file header at least comprises a recording time, attribute information of a user and a network system, and length information of the file header, and naming the binary file by using the information in the file header.

8. The method according to claim 1 , further comprising:

sequentially recording the collected data packets in the binary file without including data produced after processing at the upper-layer logic processing module.

9. The method according to claim 1 , wherein:

a program that executes the recording process is independent from an upper-layer logic of the current online game and is applicable to multiple online games.

10. The method according to claim 1 , wherein:

the multiple online games include an online game that runs on a web page and an online game that runs by a game client.

11. A data processing apparatus for a network system, the network system comprising a front apparatus and a game server, the front apparatus being an online game front apparatus that includes a socket interface and an upper-layer logic processing module, the data processing apparatus comprising:

one or more processors;

memory; and

one or more modules stored in the memory and to be executed by the one or more processors, the one or more modules comprising:

a recording module, configured to:

collect, at the socket interface of the front apparatus of the network system, data packets transmitted between the front apparatus and the game server, the data packets including at least one of a first type data packet and a second type data packet, wherein the first type data packet is a data packet received by the socket interface from the upper-layer logic processing module of the front apparatus, converted by the socket interface to comply with a transport layer protocol, and then sent by the socket interface to the game server; and the second type data packet is a data packet received by the socket interface from the game server, decapsulated by the socket interface, and then transmitted by the socket interface to the upper-layer logic processing module;

sequentially record the collected data packets in a binary file in chronological order, including: each time the socket interface sends a data packet to the game server or receives a data packet from the game server, forming a data segment corresponding to the data packet, and writing the data segment into the binary file; and

save the binary file; and

a playback module, configured to disconnect transmission communication between the front apparatus and the server, sequentially parse the data packets in the binary file in chronological order, and send the data packets to the upper-layer logic processing module of the front apparatus for playback without using the socket interface and without modifying the upper-layer logic processing module.

12. The apparatus according to claim 11 , wherein the at the socket interface of the front apparatus of the network system is specifically at a side, connected to the upper-layer logic processing module, of the socket interface.

13. The apparatus according to claim 11 , wherein the recording module specifically comprises:

an interception and copy submodule, configured to intercept a data packet transmitted by using the socket interface, copy the intercepted data packet, and then continue to transmit the data packet in an original direction of the data packet; and

a data writing submodule, configured to generate a data segment from each copied data packet, wherein the data segment comprises a segment header and a segment body, the segment header comprises length information of the data segment, and the data packet is in the segment body, and sequentially record the data segments in a binary file in chronological order.

14. The apparatus according to claim 13 , wherein the playback module further comprises an operation data parsing submodule, configured to:

parse a data packet in the binary file, when the data packet is the first type data packet originally collected by the recording module when being sent by the upper-layer logic processing module of the front apparatus to the socket interface, to obtain operation data in the data packet, and input the operation data to the upper-layer logic processing module of the front apparatus in an input manner of simulating a playback of a human-computer interaction interface processing a user operation; and

directly input, to the upper-layer logic processing module of the front apparatus, a data packet when the data packet is the second type data packet originally collected by the recording module when being decapsulated and transmitted by the socket interface to the front apparatus.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 2, 2016
From: LI, JUN; ZHUO, ZHIYONG; MOU, YIJU; GONG, ZHUO; SHANG, LIANG
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 038778/0399 →
Priority Claims (1)
CN 2014 1 0028750 · Jan 22, 2014 · national
Continuity (2)
Continuation PCTCN2015071110 · Jan 20, 2015
Related Publication 20160271494A1 · Sep 22, 2016
Cited By (4)
US 12,377,094 US 12,433,886 US 12,458,638 US 12,458,639