CN101072233A - Method and system for stimulating stateful connection based on stateless network protocol - Google Patents

Method and system for stimulating stateful connection based on stateless network protocol Download PDF

Info

Publication number
CN101072233A
CN101072233A CN 200710090668 CN200710090668A CN101072233A CN 101072233 A CN101072233 A CN 101072233A CN 200710090668 CN200710090668 CN 200710090668 CN 200710090668 A CN200710090668 A CN 200710090668A CN 101072233 A CN101072233 A CN 101072233A
Authority
CN
China
Prior art keywords
client
server
session node
data
simulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200710090668
Other languages
Chinese (zh)
Other versions
CN101072233B (en
Inventor
郭必坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN200710090668XA priority Critical patent/CN101072233B/en
Publication of CN101072233A publication Critical patent/CN101072233A/en
Application granted granted Critical
Publication of CN101072233B publication Critical patent/CN101072233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The method for simulating connection with status based on connection without status includes following steps: connecting server to client end based on network protocol without status, and establishing conversation node in connection state table at simulating connection layer of the server; the server stores data information prepared to send to client end to the conversation node temporarily; the client end sends request information to the server, and the reply information of the server carries the said data information so as to realize connection with status between the server and the client end. Under condition based on connection between client end and server in network protocol without status, the invention makes server possible to send data information to client end on initiatively so as to realize partial function of connection with status.

Description

The method and system that simulation has state to connect based on the stateless procotol
Technical field
The present invention relates to the procotol field, particularly relate to the method and system that simulation has state to connect based on the stateless procotol.
Background technology
The stateless procotol is meant that carrying out the both sides that network connects does not keep a connection that state is arranged, and needs a side to send solicited message during each information interaction and arrive the opposing party, and after the opposing party's echo reply information, both sides close connection.As HTTP (Hypertext Transfer Protocol) application protocol, UDP (User DatagramProtocol) agreement.In a lot of practical applications, adopt this stateless procotol to be connected between client and the server, like this, only when client initiatively sends solicited message to server, server could echo reply information, server initiatively transmit operation information to client.
Consult Fig. 1, be the client and the server info reciprocal process flow chart that connect based on the stateless procotol in the prior art, concrete steps are as described below.
Connect between step S101, client and the server.
As, when client need send information to server, set up TCP (Transfer Control Protocol) between client and the server and be connected.
Step S102, client send solicited message to server.
As, in a virtual pet recreation, client sends the solicited message of relevant virtual pet attribute adjustment to server.
Step S103, server carry out correspondent service logic to be handled.
As, server receives the solicited message of the relevant virtual pet attribute adjustment of client transmission, and according to the existing attribute status of virtual pet in this solicited message, and the ludic activity rule is handled accordingly.
Step S104, server return corresponding information to client.
As, the virtual pet attribute information after the server process returns client.
After step S105, client are received return information, close connection.
After receiving the information that server returns as, client, close TCP and connect.
In above-mentioned steps, be to adopt the stateless procotol to be connected between client and the server, the solicited message of client and the return information of server must match and carry out, and have solicited message must return return information.But, owing to do not have a maintained connection status between client and the server, just do not exist a ready-to-use communication port can make server initiatively send information to client yet, make server can't initiatively send data message to client.
Summary of the invention
Technical problem to be solved by this invention provides a kind of method and system that simulation has state to connect based on the stateless procotol, the present invention can be under client and situation that server is connected based on the stateless procotol, make server can initiatively send data message, realize the partial function that has state to connect to client.
Another object of the present invention provides a kind of method and system that simulation has state to connect based on the stateless procotol, the present invention can be under a plurality of clients and situation that server is connected based on the stateless procotol, one client can initiatively be sent exchange data, between each client, realize low delay data transmission to another client.
A kind of method that has state to connect based on stateless procotol simulation of the present invention, comprising: server is connected based on the stateless procotol with client, sets up session node in the connection status table of the simulation articulamentum of described server; Described server will be ready for sending the data message of described client and keep in described session node; Described client sends solicited message to described server, and described server carries described data message in return information, realize that described server is connected with the state that has of described client.
Preferably, also comprise: described client sends removes session information to described server, and described server is changed to failure state with described session node.
Preferably, also comprise: described client does not send heartbeat request to described server being provided with in the cycle, described server is changed to failure state with described session node.
Preferably, described session node comprises the identification information of described client, and described session node is corresponding with described client by described identification information.
Preferably, by following step, in the connection status table of the simulation articulamentum of server, set up session node: client send comprise self identification solicited message to server; Described server extracts identification information, sets up session node in the connection status table of simulation articulamentum, and described identification information is write described session node.
Preferably, by following step, described server will be ready for sending the data message of client and keep in described session node: described server generates and is ready for sending the data message of client, and determines the session node of this client correspondence according to described identification information; Described server is temporary to this session node with described data message.
Preferably, by following step, described server carries described data message in return information: described server generates return information according to described request information, and transfers temporary data message in session node place of described client correspondence; Described return information carries described data message and returns described client.
Preferably, described simulation articulamentum is the pet articulamentum.
A kind of system that simulation has state to connect based on the stateless procotol of the present invention, comprise session node set up unit, temporal data information unit, and data message carry the unit: the unit is set up in described session node, is used for setting up session node at the connection status table of the simulation articulamentum of server; Described temporal data information unit is used for the data message that is ready for sending client temporary to described session node; Described data message carries the unit, is used for adding described interchange data to return information when receiving the solicited message of described client transmission, is carried by described return information and returns client.
Preferably, also comprise: the client identification information unit, be used for writing client identification information in described session node, make described session node corresponding with described client by described identification information.
The another kind of the present invention method that simulation has state to connect based on the stateless procotol, comprise: server is connected based on the stateless procotol with at least two clients, in the connection status table of the simulation articulamentum of described server, set up at least two session nodes, described session node is corresponding with described client, and described client comprises the transmission client and receives client; Described transmission client sends solicited message to described server, and this solicited message comprises the interchange data that are ready for sending described reception client; Described server is with the temporary session node to described reception client correspondence of above-mentioned interchange data; Described reception client sends solicited message to described server, and described server carries above-mentioned interchange data in return information.
The another kind of the present invention system that simulation has state to connect based on the stateless procotol, comprise that session node is provided with the unit, exchanges data transmission unit, keeps in the interchange data cell, reaches interchange data carry unit: described session node is provided with the unit, be used at least two session nodes of connection status table foundation at the simulation articulamentum of server, described session node is corresponding with transmission client and reception client; Described interchange data transmission unit is used to send solicited message to described temporary interchange data cell, and this solicited message comprises the interchange data that are ready for sending the reception client; Described temporary interchange data cell is used for the temporary session node to described reception client correspondence of above-mentioned interchange data; Described interchange data carry unit is used for adding described interchange data to return information when described reception client sends solicited message to described server, is carried by described return information and returns client.
Compared with prior art, the present invention has the following advantages:
The present invention sets up session node in the connection status table of the simulation articulamentum of server, server will be ready for sending the temporary session node that arrives of data message of client, client sends solicited message to server, and server carries described data message in return information.Because of between client and the server being adopts the stateless procotol to be connected, the solicited message of client and the return information of server must match and carry out.The present invention is by setting up session node in server inside, is ready for sending the data message of client by the temporary transient storage server of session node, and when client sent solicited message to server, the return information that is returned by server carried this data message.With respect to prior art, server of the present invention can initiatively generate the data message of the client of transmission, and this data message can be sent to client, realizes the partial function that has state to connect.
The present invention writes client identification information in session node, session node is corresponding with client by identification information.Server can be set up a plurality of session nodes in the connection status table of simulation articulamentum, the corresponding client of each session node, server can initiatively send data message to a plurality of clients that connect based on the stateless procotol, and realization has the partial function of state connection between server and a plurality of clients that are connected based on stateless.
The present invention sets up at least two session nodes in the connection status table of the simulation articulamentum of server, session node is corresponding with client, send client and send solicited message to server, this solicited message comprises the interchange data that are ready for sending the reception client, server is temporary to the session node that receives the client correspondence with above-mentioned interchange data, when receiving client transmission solicited message to server, server carries above-mentioned interchange data in return information.Like this, cooperate by session node temporal data and server forwarding capability, under a plurality of clients and situation that server is connected based on the stateless procotol, a client can initiatively be sent exchange data to another client, between each client, realize low delay data transmission.
Description of drawings
Fig. 1 is client and the server info reciprocal process flow chart that connects based on the stateless procotol in the prior art;
The method flow diagram that simulation has state to connect based on the stateless procotol that Fig. 2 provides for first embodiment of the invention;
The method flow diagram of setting up session node that Fig. 3 provides for second embodiment of the invention;
The server that Fig. 4 provides for third embodiment of the invention is kept in data message to the method flow diagram of session node;
Fig. 5 carries the method flow diagram of related data information for the server that fourth embodiment of the invention provides in return information;
The method flow diagram that simulation has state to connect based on the stateless procotol that Fig. 6 provides for fifth embodiment of the invention;
The system schematic that simulation has state to connect based on the stateless procotol that Fig. 7 provides for sixth embodiment of the invention;
The system schematic that simulation has state to connect based on the stateless procotol that Fig. 8 provides for seventh embodiment of the invention;
The another kind method flow diagram that simulation has state to connect based on the stateless procotol that Fig. 9 provides for eighth embodiment of the invention;
The another kind system schematic that simulation has state to connect based on the stateless procotol that Figure 10 provides for ninth embodiment of the invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Server is with the client but when adopting the stateless procotol to be connected, the present invention sets up session node in the connection status table (CST Connection Status Table) of the simulation articulamentum of server, server will be ready for sending the temporary session node that arrives of data message of client, client sends solicited message to server, and server carries described data message in return information.The present invention makes server initiatively send data message to client in the client and server that connect based on the stateless procotol, realizes the partial function that has state to connect.
Consult Fig. 2, be the method flow diagram that simulation has state to connect based on the stateless procotol that first embodiment of the invention provides, concrete steps are as described below.
Step S201, server are connected based on the stateless procotol with client, set up session node in the connection status table of the simulation articulamentum of server.
The simulation articulamentum of server is meant that server inside is used for the connection of administrative client, is responsible for the management function layer of exchanges data between client and the Back end data treatment system.The connection status table is meant the kernel data structure in the simulation articulamentum, and the link information of administrative client is responsible for finishing the exchanges data between client and the server back end data handling system.The present invention sets up session node in the connection status table of the simulation articulamentum of server, this session node is used for the data message that temporary transient storage server initiatively sends to client.
Step S202, server will be ready for sending the temporary session node that arrives of data message of client.
Server is ready for sending data messages such as modification information, control information, adjustment information to client according to certain needs.The server back end data handling system generates this data message, and this data message is sent to session node keeps in.
As required, but can be in the quantity of session node setting storing data information, and when this session node data information stored arrival necessarily is provided with quantity, server no longer will be ready for sending the data message of client and keep in this session node.
Step S203, client send solicited message to server.
When client is handled the related service data at the needs request server, send the solicited message that comprises business datum and insert processor to data in server.After data insert processor and receive this information, judge whether this business datum needs business logic processing, be forwarded to after the Back end data treatment system carries out the related service logical process, the answer data after handling are sent to data transmitter as needs; Directly send a reply the data to data transmitter as not needing.
Step S204, server carry this data message in return information.
Temporary data message is obtained in session node place in the connection status table of simulation articulamentum of data in server transmitter, is carried by return information and returns client.After data message reached client, control client related system was carried out action.
Because of between client and the server being adopts the stateless procotol to be connected, the solicited message of client and the response message of server must match and carry out.The present invention is by setting up session node in server inside, is ready for sending the data message of client by the temporary transient storage server of session node, and when client sent solicited message to server, the return information that is returned by server carried this data message.With respect to prior art, server of the present invention just can initiatively generate the data message of the client of transmission, and this data message can be sent to client, realizes the partial function that has state to connect.
The present invention writes client identification information in session node, session node is corresponding with client by identification information.Server can be set up a plurality of session nodes in the connection status table of simulation articulamentum, the corresponding client of each session node, server can initiatively send data message to a plurality of clients that connect based on the stateless procotol, and realization has the partial function of state connection between server and a plurality of clients that are connected based on stateless.
Consult Fig. 3, be the method flow diagram of setting up session node that second embodiment of the invention provides, concrete steps are as described below.
Step S301, client send the solicited message that comprises self identification and arrive server.
When client is handled the related service data at the needs request server, send the solicited message that comprises business datum and client self identification information and insert processor to data in server.After the data access device receives this solicited message, in this solicited message, extract client identification information, send in the connection status table of simulation articulamentum.Identification information comprises the IP address information of client, in register account number information of server etc.
Step S302, server extract identification information, set up session node in the connection status table of simulation articulamentum.
Described server is transferred identification information in solicited message, send in the connection status table of simulation articulamentum.
Step S303, server write described session node with identification information.
Server is set up in the connection status table of simulation articulamentum should the client-side session node, fills in the identification information of this client in session node.By identification information, make client corresponding one by one with session node.
When the present invention set up a plurality of session node that should client in the connection status table of the simulation articulamentum of server, server needed to determine earlier the session node of the client correspondence of receiving data information, data message is sent to this session joint again.
Consult Fig. 4, for the server that third embodiment of the invention provides data message is kept in the method flow diagram that arrives the session node, concrete steps are as described below.
Step S401, server generate the data message that is ready for sending client.
Server is ready for sending data messages such as modification information, control information, adjustment information to certain client according to certain needs, this data message comprises the identification information of this client.
Step S402, server are determined the session node of this client correspondence according to identification information.
Server is determined the session node of this client correspondence by the identification information in correction data information and the session node.
Step S403, server are kept in this session node with data message.
Server sends to this session node with data message, temporarily stores.
When the present invention set up a plurality of session node that should client in the connection status table of the simulation articulamentum of server, server needed transfer temporary data message in session node place corresponding with this client, and was carried by return information and to return this client.
Consult Fig. 5, the server that provides for fourth embodiment of the invention carries the method flow diagram of related data information in return information, and concrete steps are as described below.
Step S501, server generate return information according to client-requested information.
When client is handled the related service data at the needs request server, send the solicited message that comprises business datum and insert processor to data in server.After data insert processor and receive this information, judge whether this business datum needs business logic processing, be forwarded to after the Back end data treatment system carries out the related service logical process, the answer data after handling are sent to data transmitter as needs; Directly send a reply the data to data transmitter as not needing.
Step S502, server are determined the session node of this client correspondence.
Server is determined the session node of this client correspondence by the identification information in contrast solicited message and the session node.
Step S503, server are transferred the temporary data message of session node place of client correspondence.
Temporary data message is obtained in this session node place in the connection status table of simulation articulamentum of data in server transmitter.
Step S504, return information carry data message and return client.
Server carries data message by return information and returns client, and after data message reached client, control client related system was carried out action.
Also comprise the client heartbeat message in the session node of the present invention.Because of client is connected based on the stateless procotol with server, client needs to send heartbeat request in the cycle to server, to keep the connection status of client and server being provided with.Client does not send heartbeat request to server being provided with in the cycle, server initiatively is changed to failure state with the session node of this client correspondence, or directly deletes this session node.The cycle of setting can be two normal heart beat cycles.
Remove and being connected of server as client wants, client sends the releasing session information to server, and server is changed to failure state with the session node of this client correspondence, or directly deletes this session node.
Now in virtual pet recreation, be applied as example, introduce the method that simulation has state to connect based on the stateless procotol of the present invention in detail with the present invention.In the virtual pet games system, the simulation articulamentum is pet articulamentum (PCL Pet Connection Layer).
Consult Fig. 6, be the method flow diagram that simulation has state to connect based on the stateless procotol that fifth embodiment of the invention provides, concrete steps are as described below.
Step S601, client send solicited message to server, and solicited message comprises the identification information of client.
As, the virtual pet game client carries out one group of work operation in user interface to virtual pet, and the client event responsor sends the solicited message that comprises relevant virtual pet work data and client login virtual pet GID and arrives the virtual pet game server.After pet data access device in the virtual pet game server receives this solicited message, in this solicited message, extract the client account information, send in the connection status table of pet articulamentum.
Step S602, server are set up session node in the connection status table of simulation articulamentum, session node comprises the identification information of client.
As, the virtual pet game server is set up session node in the connection status table of pet articulamentum, and this session node comprises the account information of virtual pet game client.
Step S603, server generate the data message that is ready for sending client.
As, the designer of virtual pet recreation has revised game rule at the virtual pet game server, service generates the relevant data message of adjusting the virtual pet attribute, and transfers the virtual pet game client number of the account of preparing to receive this virtual pet attribute adjustment information in database.
Step S604, server are determined the session node of this client correspondence according to identification information.
As, the virtual pet game server is determined the session node of virtual pet game client correspondence by the contrast number of the account.
Step S605, server are kept in this session node with data message.
As, the virtual pet game server sends to this session node with virtual pet attribute adjustment information, temporarily stores.
Step S606, client send solicited message to server.
As, the virtual pet game client carries out one group of work operation in user interface to virtual pet, and the client event responsor sends the solicited message that comprises relevant virtual pet work data and client login virtual pet GID and arrives the virtual pet game server.
Step S607, server generate return information according to client-requested information.
As, after pet data access device in the virtual pet game server receives this solicited message, judge whether these virtual pet work data need business logic processing, be forwarded to after the rear end pet forms the logical process system and carry out the related service logical process as needs, the answer data after handling are sent to data transmitter; Directly send a reply the data to data transmitter as not needing.
Step S608, server are determined the session node of this client correspondence.
As, the virtual pet game server is determined the session node of virtual pet game client correspondence by account information.
Step S609, server are transferred the temporary data message of session node place of client correspondence.
As, temporary virtual pet attribute adjustment information is obtained in this session node place in the connection status table of simulation articulamentum of the data transmitter of virtual pet game server.
Step S610, return information carry data message and return client.
As, the virtual pet server carries virtual pet attribute adjustment information by return information and returns the virtual pet game client, and the virtual pet game client is adjusted the attribute of virtual pet according to virtual pet attribute adjustment information.
Step S611, client send removes session information to server, and server is changed to failure state with the session node of this client correspondence.
As, the virtual game client sends removes session information to the virtual game server, and the virtual game server is changed to failure state with the session node of virtual game client correspondence.
The present invention makes the articulamentum and the Business Logic separate processes data of server, clear in logic, on the positioning problems easily, dispose more flexible (as, articulamentum is separately positioned on different servers with Business Logic), can improve the maintainability and the service availability of server.
Simulating based on the stateless procotol on the method basis that the state connection is arranged, the present invention also provides a kind of system that simulation has state to connect based on the stateless procotol.
Consult Fig. 7, be the system schematic that simulation has state to connect based on the stateless procotol that sixth embodiment of the invention provides, comprise session node set up unit 71, temporal data information unit 72, and data message carry unit 73.
Session node is set up unit 71 and set up session node in the connection status table of the simulation articulamentum of server.The simulation articulamentum of server is meant that server inside is used for the connection of administrative client, is responsible for the management function layer of exchanges data between client and the Back end data treatment system.The connection status table is meant the kernel data structure in the simulation articulamentum, and the link information of administrative client is responsible for finishing the exchange between client and the database.Session node is set up unit 71 and set up session node in the connection status table of the simulation articulamentum of server, and this session node is used for the data message that temporary transient storage server initiatively sends to client.
Temporal data information unit 72 will be ready for sending the temporary session node that arrives of data message of client.Temporal data information unit 72 is ready for sending data messages such as modification information, control information, adjustment information to client according to certain needs.The server back end data handling system generates this data message, and this data message is sent to session node keeps in.
Data message carries unit 73 when receiving the solicited message of client transmission, carries described data message in return information.When client is handled the related service data at the needs request server, send the solicited message that comprises business datum and insert processor to data in server.After data insert processor and receive this information, judge whether this business datum needs business logic processing, be forwarded to after the Back end data treatment system carries out the related service logical process, the answer data after handling are sent to data message carry unit 73 as needs; Carry unit 73 as not needing directly to send a reply data to data information.Data message carries unit 73 session node place in the connection status table of simulation articulamentum and obtains temporary data message, is carried by return information and returns client.After data message reached client, control client related system was carried out action.
The present invention can add the identification information of client by the client identification information unit in session node, make session node corresponding with client by identification information.
Consult Fig. 8, be the system schematic that simulation has state to connect based on the stateless procotol that seventh embodiment of the invention provides, comprise that session node sets up unit 71, temporal data information unit 72, data message and carry unit 73, and client identification information unit 74.
Client identification information unit 74 adds the identification information of client in session node, make session node corresponding with client by described identification information.Client comprises self identification information in sending to the solicited message of server.Extract client identification information in client identification information unit 74 these solicited messages, be filled up to the corresponding session node in the connection status table of simulating articulamentum.Identification information comprises the IP address information of client, and in the register account number information of server etc.
The present invention also provides a kind of system that simulation has state to connect based on the stateless procotol, this system can be under a plurality of clients and situation that server is connected based on the stateless procotol, one client can initiatively be sent exchange data, between each client, realize low delay data transmission to another client.
Consult Fig. 9, be the another kind method flow diagram that simulation has state to connect based on the stateless procotol that eighth embodiment of the invention provides, concrete steps are as described below.
Step S901, server are connected based on the stateless procotol with at least two clients, set up a plurality of session nodes in the connection status table of the simulation articulamentum of server, and session node is corresponding with client.
The simulation articulamentum of server is meant that server inside is used for the connection of administrative client, is responsible for the management function layer of exchanges data between client and the Back end data treatment system.The connection status table is meant the kernel data structure in the simulation articulamentum, and the link information of administrative client is responsible for finishing the exchange between client and the database.The present invention sets up session node in the connection status table of the simulation articulamentum of server, this session node is used for the data message that temporary transient storage server initiatively sends to client.
The present invention sets up a plurality of session nodes in the connection status table of simulation articulamentum, all corresponding client of each session node.
Step S902, transmission client send solicited message to server, and this solicited message comprises the interchange data that are ready for sending the reception client.
The transmission client needs transmission earlier to comprise the solicited message of these interchange data to server because certain needs the pre-interchange data that send to receiving client.
It is temporary to the session node that receives the client correspondence that step S903, server will exchange data.
Server determine to receive the session node of client correspondence, will exchange data and send to this session node and temporarily store.
Step S904, described reception client send solicited message to server, and server carries above-mentioned interchange data in return information.
Server generates return information according to solicited message, and transfers temporary interchange data in the session node that receives the client correspondence, is carried by return information and returns the reception client.
On the method basis that has state to connect based on above-mentioned stateless procotol simulation, the present invention also provides a kind of system that simulation has state to connect based on the stateless procotol.
Consult Figure 10, be that the another kind that ninth embodiment of the invention provides is simulated the system schematic that the state connection is arranged based on the stateless procotol, comprise that session node is provided with unit 101, exchanges data transmission unit 102, keeps in interchange data cell 103, reaches interchange data carry unit 104.
Session node is provided with unit 101 a plurality of session nodes in the connection status table of the simulation articulamentum of server, and session node is corresponding with client.Session node is provided with unit 101 and is arranged on server.
Interchange data transmission unit 102 sends solicited messages to the temporary data cell 103 that exchanges, and this solicited message comprises the interchange data that are ready for sending the reception client.Exchange data transmission unit 102 and be arranged on client.
The temporary data cell 103 that exchanges is with the temporary session node to described reception client correspondence of above-mentioned interchange data.The temporary data cell 103 that exchanges is arranged on server.
Exchange data carry unit 104 when described reception client sends solicited message to server, in the return information of server, carry above-mentioned interchange data.Exchange data carry unit 104 and be arranged on server.
More than connect the method and system that simulation has state to connect to two kinds provided by the present invention based on the stateless network, be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (12)

1, a kind of method that simulation has state to connect based on the stateless procotol is characterized in that, comprising:
Server is connected based on the stateless procotol with client, sets up session node in the connection status table of the simulation articulamentum of described server;
Described server will be ready for sending the data message of described client and keep in described session node;
Described client sends solicited message to described server, and described server carries described data message in return information, realize that described server is connected with the state that has of described client.
2, the method for claim 1 is characterized in that, also comprises:
Described client sends removes session information to described server, and described server is changed to failure state with described session node.
3, the method for claim 1 is characterized in that, also comprises:
Described client does not send heartbeat request to described server being provided with in the cycle, described server is changed to failure state with described session node.
4, as claim 1,2 or 3 described methods, it is characterized in that described session node comprises the identification information of described client, described session node is corresponding with described client by described identification information.
5, method as claimed in claim 4 is characterized in that, by following step, sets up session node in the connection status table of the simulation articulamentum of server:
Client sends the solicited message that comprises self identification and arrives server;
Described server extracts identification information, sets up session node in the connection status table of simulation articulamentum, and described identification information is write described session node.
6, method as claimed in claim 4 is characterized in that, by following step, described server will be ready for sending the data message of client and keep in described session node:
Described server generates and is ready for sending the data message of client, and determines the session node of this client correspondence according to described identification information;
Described server is temporary to this session node with described data message.
7, method as claimed in claim 4 is characterized in that, by following step, described server carries described data message in return information:
Described server generates return information according to described request information, and transfers temporary data message in session node place of described client correspondence;
Described return information carries described data message and returns described client.
As claim 1,2 or 3 described methods, it is characterized in that 8, described simulation articulamentum is the pet articulamentum.
9, a kind of system that has state to connect based on stateless procotol simulation is characterized in that, comprise session node set up unit, temporal data information unit, and data message carry the unit:
The unit is set up in described session node, is used for setting up session node at the connection status table of the simulation articulamentum of server;
Described temporal data information unit is used for the data message that is ready for sending client temporary to described session node;
Described data message carries the unit, is used for adding described data message to return information when receiving the solicited message of described client transmission, is carried by described return information and returns client.
10, system according to claim 9 is characterized in that, also comprises:
The client identification information unit is used for writing client identification information in described session node, makes described session node corresponding with described client by described identification information.
11, a kind of method that simulation has state to connect based on the stateless procotol is characterized in that, comprising:
Server is connected based on the stateless procotol with at least two clients, in the connection status table of the simulation articulamentum of described server, set up at least two session nodes, described session node is corresponding with described client, and described client comprises the transmission client and receives client;
Described transmission client sends solicited message to described server, and this solicited message comprises the interchange data that are ready for sending described reception client;
Described server is with the temporary session node to described reception client correspondence of above-mentioned interchange data;
Described reception client sends solicited message to described server, and described server carries above-mentioned interchange data in return information.
12, a kind of system that has state to connect based on stateless procotol simulation is characterized in that, comprises that session node is provided with the unit, exchanges data transmission unit, temporaryly exchanges data cell, and exchanges the data carry unit:
Described session node is provided with the unit, is used at least two session nodes of connection status table foundation at the simulation articulamentum of server, and described session node is corresponding with transmission client and reception client;
Described interchange data transmission unit is used to send solicited message to described temporary interchange data cell, and this solicited message comprises the interchange data that are ready for sending the reception client;
Described temporary interchange data cell is used for the temporary session node to described reception client correspondence of above-mentioned interchange data;
Described interchange data carry unit is used for adding described interchange data to return information when described reception client sends solicited message to described server, is carried by described return information and returns client.
CN200710090668XA 2007-03-30 2007-03-30 Method and system for stimulating stateful connection based on stateless network protocol Active CN101072233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710090668XA CN101072233B (en) 2007-03-30 2007-03-30 Method and system for stimulating stateful connection based on stateless network protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710090668XA CN101072233B (en) 2007-03-30 2007-03-30 Method and system for stimulating stateful connection based on stateless network protocol

Publications (2)

Publication Number Publication Date
CN101072233A true CN101072233A (en) 2007-11-14
CN101072233B CN101072233B (en) 2011-05-18

Family

ID=38899220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710090668XA Active CN101072233B (en) 2007-03-30 2007-03-30 Method and system for stimulating stateful connection based on stateless network protocol

Country Status (1)

Country Link
CN (1) CN101072233B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150205A (en) * 2011-10-31 2013-06-12 株式会社Pfu Information processing system, information processing device and client terminal
WO2016197995A1 (en) * 2015-10-19 2016-12-15 中兴通讯股份有限公司 Method and device for realizing stateful operation in stateless network protocol
CN111030999A (en) * 2019-11-15 2020-04-17 广州辰河质检技术有限公司 Method for extracting files based on network data packet

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7177918B2 (en) * 2002-12-20 2007-02-13 International Business Machines Corporation Method and system for efficiently processing multiframe data in a client/server computing environment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103150205A (en) * 2011-10-31 2013-06-12 株式会社Pfu Information processing system, information processing device and client terminal
US9413851B2 (en) 2011-10-31 2016-08-09 Pfu Limited Information processing system, information processing device, client terminal, and computer readable medium
WO2016197995A1 (en) * 2015-10-19 2016-12-15 中兴通讯股份有限公司 Method and device for realizing stateful operation in stateless network protocol
CN111030999A (en) * 2019-11-15 2020-04-17 广州辰河质检技术有限公司 Method for extracting files based on network data packet
CN111030999B (en) * 2019-11-15 2021-09-24 广州辰河质检技术有限公司 Method for extracting files based on network data packet

Also Published As

Publication number Publication date
CN101072233B (en) 2011-05-18

Similar Documents

Publication Publication Date Title
CN110351246A (en) Server cluster system Socket management method and device
CN105120495B (en) A kind of information push method and system of intelligent mobile terminal
CN103312528B (en) A kind of heartbeat message sending method and user terminal
CN107800603B (en) Intranet user accesses the method and storage medium of headend equipment based on VPN
CN102209302A (en) System and method for realizing information push of mobile terminal
CN111617487B (en) Account access method and device in game application, storage medium and electronic equipment
CN110034972B (en) Server pressure testing method and device
CN105959347B (en) A kind of digital collaborative simulation system communication means based on P2P network
CN102045270A (en) Chat server system, method for constructing chat server system and chat system
CN103563314B (en) For system and method for passive communication services
CN106612196B (en) Obtain the method and device of resource
CN102045409A (en) Network penetrating method and network communication system
CN101488966A (en) Video service system
CN107517227A (en) Session implementation method and device for distributed consensus system
CN103281346A (en) Disconnection reconnection method, network system and proxy server
CN106550058A (en) Network address translation penetration method and system using same
CN104426794B (en) A kind of message forwarding method and device
US10455041B2 (en) Stateful service with partial replication
CN103812947A (en) Data interaction system and method
CN101072233B (en) Method and system for stimulating stateful connection based on stateless network protocol
CN102821172B (en) Method, equipment and system for obtaining address of SIP (session initiation protocol) register server
CN109120556B (en) A kind of method and system of cloud host access object storage server
CN103560937B (en) Data access method and portal server
CN109857439B (en) Game version updating method and device
CN103703745A (en) Method and apparatus for interconnecting a user agent to a cluster of servers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant