Patent attributes
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.