CN102271139A - C/S (Client/Server) framework-based communication system and method - Google Patents

C/S (Client/Server) framework-based communication system and method Download PDF

Info

Publication number
CN102271139A
CN102271139A CN2011102598942A CN201110259894A CN102271139A CN 102271139 A CN102271139 A CN 102271139A CN 2011102598942 A CN2011102598942 A CN 2011102598942A CN 201110259894 A CN201110259894 A CN 201110259894A CN 102271139 A CN102271139 A CN 102271139A
Authority
CN
China
Prior art keywords
message
client
service
server
processing end
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.)
Pending
Application number
CN2011102598942A
Other languages
Chinese (zh)
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.)
SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd
Original Assignee
SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) 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 SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd filed Critical SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd
Priority to CN2011102598942A priority Critical patent/CN102271139A/en
Publication of CN102271139A publication Critical patent/CN102271139A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides a C/S (Client/Server) framework-based communication system and method. All client end message queues of a client end message module store client end messages sent to all the corresponding client ends, and all service message modules store service messages sent to all the corresponding service processing ends, and therefore, services among a plurality of client ends, among a plurality of service processing ends and between the client ends and the service processing ends are not mutually influenced, and the problem of network congestion is effectively processed; meanwhile, according to the C/S framework-based communication system and method provided by the invention, messages are distributed to the client ends and the service processing ends after the claiming requests transmitted by the client ends and the service processing ends are received, thereby the reasonable use of C/S framework service resources is controlled, the high speed and high efficiency of network messages are ensured and the loss condition is effectively avoided.

Description

Communication system and communication means based on the C/S framework
Technical field
The present invention relates to the computer software communications field, relate in particular to a kind of communication system and communication means based on the C/S framework.
Background technology
At present, large-scale C/S (client/server, Client/Server) system architecture, the communication modes that adopts generally is: set up at server end (S) and receive the message that message queue is stored reception, set up and send the message that message queue is handled transmission, receive message queue and send message queue all recreation.
But there is following shortcoming in this communication modes:
1, which client can't locate be to the message of the reception formation of server end, transmit queue;
If 2 certain client process speed are slow or block up and can influence the Message Processing of other clients;
3, it is big to receive the space that formation opens up, and the resource of consumption is many.
Therefore, need a kind of communication system and communication means based on the C/S framework, can be applicable to the complex network situation of multi-client, many service processing end on the large-scale C/S system architecture, control the use of the Service Source of C/S framework as far as possible, ensure that internet message is smooth and easy, quick, efficient.
Summary of the invention
The object of the present invention is to provide a kind of communication system and communication means, can be applicable to the complex network situation of multi-client, many service processing end on the large-scale C/S system architecture, ensure that internet message is smooth and easy based on the C/S framework.
For addressing the above problem, the invention provides a kind of communication system based on the C/S framework, comprising: at least one client, at least one service processing end and a server, wherein,
Described client is used for sending client message to described server and gets request;
Described service processing end is used for sending service message to described server and gets request;
Described server comprises:
Client's message module is for each client is established the client message formation that a storage will send to the client message of this client;
The service message module is for each service processing end is established the service message formation that a storage will send to the service message of this service processing end;
Message processing module, be provided with one and receive message queue, be used to receive request of getting of described client message and service message and get request, and distribute the client message of described client's message module and the service message of service message module to described client and service end for process.
Accordingly, the invention provides a kind of above-mentioned communication means, comprising based on server and client in the communication system of C/S framework:
Described client inserts described server by described client's incoming end, and gets request to described server transmission client message;
Described message processing module receives described client message and gets and ask in the described reception message queue, and according to described client message the request of getting to extract described client's message module be client message in the client message formation that is provided with of described client;
Described message processing module sends to described client with described client message.
Further, when the client of described client's incoming end access is two or more, described message processing module receives client message that each client sends and gets and ask in the described reception message queue, get the client message of asking to extract in the client message formation that described client's message module is each client setting according to each client message, and each client message is distributed to each client.
Accordingly, the present invention also provides a kind of above-mentioned communication means based on server in the communication system of C/S framework and service processing end, comprising:
Described service processing end inserts described server by described service incoming end, and gets request to described server transmission service message;
Described message processing module receives described service message and gets and ask described reception message queue, and according to described service message the request of getting to extract described service message module be service message in the service message formation that is provided with of described service processing end;
Described message processing module sends to described service processing end with described service message.
Further, when the service processing end of described service incoming end access is two or more, described message processing module receives service message that each service processing end sends and gets and ask in the described reception message queue, the service message in the service message formation that described service message module is each service processing end setting is extracted in the request of getting according to each service message, and each service message is distributed to each service processing end.
Compared with prior art, communication system and communication means based on the C/S framework of the present invention, send to the client message of corresponding each client by each client message queue stores of client message module, send to the service message of corresponding each service processing end by each service message module stores, make between a plurality of clients, between a plurality of service processing ends and the business between client and the service processing end be independent of each other, handled the network congestion problem effectively, simultaneously, communication system and method based on the C/S framework of the present invention received client, just distribute message to them after the request of getting that the service processing end sends, controlled the reasonable use of the Service Source of C/S framework, the guarantee internet message is quick, efficiently, avoided the generation of packet drop effectively.
Description of drawings
Fig. 1 is the configuration diagram based on the communication system of C/S framework of the embodiment of the invention one;
Fig. 2 be the embodiment of the invention two based on the server of the communication system of C/S framework and the communication means flow chart between client;
Fig. 3 be the embodiment of the invention three based on the server of the communication system of C/S framework and the communication means flow chart between the service processing end.
Embodiment
Below in conjunction with the drawings and specific embodiments communication system and the communication means based on the C/S framework that the present invention proposes is described in further detail.
Embodiment one
As shown in Figure 1, present embodiment provides a kind of communication system based on the C/S framework, comprising: n client (C), a n service processing end (S) and a server (S).
Wherein, client 11, client 12 ..., client 1n is used for sending client message to described server 3 and gets request; Service processing end 21, service processing end 22 ..., service processing end 2n is used for sending service message to described server 3 and gets request.
In the present embodiment, described server 3 comprises:
Client's incoming end 31, be used to insert described client 11, client 12 ..., client 1n;
Service incoming end 32, be used to insert described service processing end 21, service processing end 22 ..., service processing end 2n;
Client's message module 33, for each client is established the client message formation that a storage will send to the client message of this client, that is, client message formation C1, client message formation C2 ..., client message formation Cn respectively corresponding stored to send to client 11, client 12 ..., the client message of client 1n;
Service message module 34, for each service processing end is established the service message formation that a storage will send to the service message of this service processing end, that is, service message formation S1, client message formation S2 ..., client message formation Sn respectively corresponding stored to send to service processing end 21, service processing end 22 ..., the service message of service processing end 2n;
Message processing module 35, be provided with one and receive message queue R0, be used to receive client 11, client 12, ..., the client message that client 1n sends request of getting and service processing end 21, service processing end 22, ..., the service message that service processing end 2n sends is got request, and to client 11, client 12, ..., client 1n distributes the client message formation C1 of described client's message module 33, client message formation C2, ..., the client message of storing among the client message formation Cn and to service processing end 21, service processing end 22, ..., service processing end 2n distributes the service message formation S1 of described service message module 34, client message formation S2, ..., the service message of storing among the client message formation Sn.
The communication system based on the C/S framework of present embodiment, send to the client message of corresponding each client by each client message queue stores of client message module, send to the service message of corresponding each service processing end by each service message module stores, make between a plurality of clients, between a plurality of service processing end and client be independent of each other when communicating by letter with business between the service processing end, can handle the network congestion problem effectively, ensure that internet message fast, efficiently.
Embodiment two
As shown in Figure 2, present embodiment provides a kind of communication means based on server and client in the communication system of C/S framework, comprising:
Step D201, described client access server, and send client message to described server and get request;
Please refer to Fig. 1, in this step, client 11, client 12 ..., client 1n can pass through client's incoming end 31 access servers 3;
Step D202, described message processing module receive described client message and get and ask in the described reception message queue;
Please refer to Fig. 1, in this step, when the client of described client's incoming end access is two or more, for example client 11, client 12 ..., when client 1n passes through client's incoming end 31 access servers 3, described message processing module 35 receive clients 11, client 12 ..., the client message that sends of client 1n gets and asks among the described reception message queue R0;
Step D203, described message processing module get the client message of asking to extract in the client message formation that described client's message module is described client setting according to described client message;
Please refer to Fig. 1, in this step, when the client of described client's incoming end access is two or more, for example client 11, client 12, ..., when client 1n passes through client's incoming end 31 access servers 3, described message processing module 35 is got the client message of asking to extract in the client message formation that described client's message module 33 is each client setting according to each client message, promptly, get the client message of asking to extract among the client message formation C1 according to the client message that client 11 sends, get the client message of asking to extract among the client message formation C2 according to the client message that client 12 sends, ..., get the client message of asking to extract among the client message formation Cn according to the client message that client 1n sends;
Step D204, described message processing module sends to described client with described client message;
Please refer to Fig. 1, in this step, when the client of described client's incoming end access is two or more, for example client 11, client 12 ..., when client 1n passes through client's incoming end 31 access servers 3, the client message that described message processing module 35 will extract from client message formation C1 is distributed to client 11, the client message that will extract from client message formation C2 is distributed to client 12, ..., the client message that will extract from client message formation Cn is distributed to client 1n.
Now enumerate 3 test datas, with further displaying beneficial effect of the present invention based on the communication means of server and client in the communication system of C/S framework.
Data one: the relevant parameter when certain game client and server communication is as follows:
This game client configuration comprises: Windows XP operating system, internal memory 1G;
The communication data of this game client access server comprises:
Network speed (between this game client and the server): up 1M, descending 1M;
Message bag size: 300 characters;
Business Processing speed: 2500/second;
Wherein, this game client configuration data shows the traffic handing capacity of this game client, and client message distribution transmission was unimpeded, quick, efficient when the communication data of this game client access server had shown communication.
Data two: the relevant parameter when certain store client and server communication is as follows:
This store client configuration comprises: Windows XP operating system, internal memory 1G;
The communication data of this store client access server comprises:
Network speed (between this store client and the server): up 0.05M, descending 0.05M;
Message bag size: 300 characters;
Business Processing speed: 100/second.
Wherein, these store client configuration data show the traffic handing capacity of this store client, and client message distribution transmission was unimpeded, quick, efficient when the communication data of this store client access server had shown communication.
Data two: the relevant parameter when certain store client and server communication is as follows:
This store client configuration comprises: the operating system of Linux, internal memory 2G
The communication data of this store client access server comprises:
Network speed (between this store client and the server): up 2M, descending 2M
Message bag size: 300 characters
Business Processing speed: 6000/second
Wherein, these store client configuration data show the traffic handing capacity of this store client, and client message distribution transmission was unimpeded, quick, efficient when the communication data of this store client access server had shown communication.
The communication means based on server and client in the communication system of C/S framework of present embodiment, send to the client message of corresponding each client by each client message queue stores of client message module, the business between a plurality of clients that makes is independent of each other, handled the network congestion problem effectively, simultaneously, described message processing module is just distributed client message to them after the client message of receiving the client transmission is got request, controlled the reasonable use of the Service Source of C/S framework, ensure that client message distribution transmission is unimpeded, fast, efficiently, avoided the generation of packet drop effectively.
Embodiment three
As shown in Figure 2, present embodiment provides a kind of above-mentioned communication means based on server in the communication system of C/S framework and service processing end, comprising:
Step D301, described service processing termination is gone into described server, and gets request to described server transmission service message;
Please refer to Fig. 1, in this step, service processing end 21, service processing end 22 ..., service processing end 2n can pass through service incoming end 32 access servers 3;
Step D302, described message processing module receive described service message and get and ask described reception message queue;
Please refer to Fig. 1, in this step, the service processing end that inserts when described service incoming end is two when above, for example service processing end 21, service processing end 22 ..., during service processing end 2n access server 3, described message processing module 35 receive service processing ends 21, service processing end 22 ..., the service message that sends of service processing end 2n gets and asks among the described reception message queue R0;
Step D303, the service message in the service message formation that described service message module is described service processing end setting is extracted in the request of getting according to described service message;
Please refer to Fig. 1, in this step, the service processing end that inserts when described service incoming end is two when above, for example the service processing end 21, service processing end 22, ..., during service processing end 2n access server 3, described message processing module 35 is got the described service message module 34 of request extraction according to each service message and is the service message in the service message formation of each service processing end setting, promptly, get the client message of asking to extract among the service message formation S1 according to the service message that service processing end 21 sends, get the service message of asking to extract among the service message formation S2 according to the service message that service processing end 22 sends, ..., get the service message of asking to extract among the service message formation Sn according to the service message that service processing end 2n sends;
Step D304, described message processing module sends to described service processing end with described service message;
Please refer to Fig. 1, in this step, the service processing end that inserts when described service incoming end is two when above, for example service processing end 21, service processing end 22 ..., during service processing end 2n access server 3, the service message that described message processing module 35 will extract from service message formation S1 is distributed to service processing end 21, the service message that will extract from service message formation S2 is distributed to service processing end 22, ..., the service message that will extract from service message formation Sn is distributed to service processing end 2n.
Now enumerate 2 test datas, with further displaying beneficial effect of the present invention based on the communication means of server in the communication system of C/S framework and service processing end.
Data four: the relevant parameter when certain command service end for process and server communication is as follows:
This command service end for process configuration comprises: the operating system of Linux, internal memory 2G;
The communication data of this command service end for process access server comprises:
Network speed (between command service end for process and the server): up 10M, descending 10M;
Message bag size: 300 characters;
Business Processing speed: 20000/second.
Wherein, this command service end for process configuration data shows the traffic handing capacity of this command service end for process, and service message distribution transmission was unimpeded, quick, efficient when the communication data of this command service end for process access server had shown communication.
Data five: the relevant parameter when certain command service end for process and server communication is as follows:
This command service end for process configuration comprises: the operating system of Linux, internal memory 2G;
The communication data of this command service end for process access server comprises:
Network speed (between command service end for process and the server): up 10M, descending 10M;
Message bag size: 300 characters;
Business Processing speed: 18000/second.
Wherein, this command service end for process configuration data shows the traffic handing capacity of this command service end for process, and service message distribution transmission was unimpeded, quick, efficient when the communication data of this command service end for process access server had shown communication.
The communication means based on server in the communication system of C/S framework and service processing end of present embodiment, send to the service message of corresponding each service processing end by each service message queue stores of service message module, the business between a plurality of service processing ends that makes is independent of each other, handled the network congestion problem effectively, simultaneously, described message processing module is just distributed service message to them after the service message of receiving the transmission of service processing end is got request, controlled the reasonable use of the Service Source of C/S framework, ensure that service message distribution transmission is unimpeded, fast, efficiently, avoided the generation of packet drop effectively.
In sum, communication system and method based on the C/S framework, make between a plurality of clients, between a plurality of service processing end and the business between client and the service processing end be independent of each other, handled the network congestion problem effectively, simultaneously, communication system and method based on the C/S framework of the present invention just distributed message to them after receiving the request of getting that client, service processing end send, controlled the reasonable use of the Service Source of C/S framework, ensure that internet message is quick, efficient, avoided the generation of packet drop effectively.
Obviously, those skilled in the art can carry out various changes and modification to invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (7)

1. the communication system based on the C/S framework is characterized in that, comprising: at least one client, at least one service processing end, and server, wherein,
Described client is used for sending client message to described server and gets request;
Described service processing end is used for sending service message to described server and gets request;
Described server comprises:
Client's message module is for each client is established the client message formation that a storage will send to the client message of this client;
The service message module is for each service processing end is established the service message formation that a storage will send to the service message of this service processing end;
Message processing module, be provided with one and receive message queue, be used to receive request of getting of described client message and service message and get request, and distribute the client message of described client's message module and the service message of service message module to described client and service end for process.
2. the communication system based on the C/S framework as claimed in claim 1, it is characterized in that, the client that inserts when described client's incoming end is two when above, described message processing module receives client message that each client sends and gets and ask in the described reception message queue, get the client message of asking to extract in the client message formation that described client's message module is each client setting according to each client message, and each client message is distributed to each client.
3. the communication system based on the C/S framework as claimed in claim 1 or 2, it is characterized in that, the service processing end that inserts when described service incoming end is two when above, described message processing module receives service message that each service processing end sends and gets and ask in the described reception message queue, the service message in the service message formation that described service message module is each service processing end setting is extracted in the request of getting according to each service message, and each service message is distributed to each service processing end.
4. the communication means based on server and client in the communication system of C/S framework as claimed in claim 1 is characterized in that, comprising:
Described client inserts described server, and gets request to described server transmission client message;
Described message processing module receives described client message and gets and ask in the described reception message queue, and according to described client message the request of getting to extract described client's message module be client message in the client message formation that is provided with of described client;
Described message processing module sends to described client with described client message.
5. communication means as claimed in claim 4, it is characterized in that, the client that inserts when described server is two when above, described message processing module receives client message that each client sends and gets and ask in the described reception message queue, get the client message of asking to extract in the client message formation that described client's message module is each client setting according to each client message, and each client message is distributed to each client.
6. the communication means based on server in the communication system of C/S framework and service processing end as claimed in claim 1 is characterized in that, comprising:
Described service processing termination is gone into described server, and gets request to described server transmission service message;
Described message processing module receives described service message and gets and ask described reception message queue, and according to described service message the request of getting to extract described service message module be service message in the service message formation that is provided with of described service processing end;
Described message processing module sends to described service processing end with described service message.
7. communication means as claimed in claim 6, it is characterized in that, the service processing end that inserts when described server is two when above, described message processing module receives service message that each service processing end sends and gets and ask in the described reception message queue, the service message in the service message formation that described service message module is each service processing end setting is extracted in the request of getting according to each service message, and each service message is distributed to each service processing end.
CN2011102598942A 2011-09-05 2011-09-05 C/S (Client/Server) framework-based communication system and method Pending CN102271139A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102598942A CN102271139A (en) 2011-09-05 2011-09-05 C/S (Client/Server) framework-based communication system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102598942A CN102271139A (en) 2011-09-05 2011-09-05 C/S (Client/Server) framework-based communication system and method

Publications (1)

Publication Number Publication Date
CN102271139A true CN102271139A (en) 2011-12-07

Family

ID=45053302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102598942A Pending CN102271139A (en) 2011-09-05 2011-09-05 C/S (Client/Server) framework-based communication system and method

Country Status (1)

Country Link
CN (1) CN102271139A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106576043A (en) * 2014-08-29 2017-04-19 英特尔公司 Virally distributable trusted messaging

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1564960A1 (en) * 2001-05-16 2005-08-17 Bytemobile, Inc. System and methods for providing differentiated services within a network communication system
CN101431476A (en) * 2008-12-12 2009-05-13 中国工商银行股份有限公司 Data transmission method based on message queue, server and system
CN101739296A (en) * 2009-12-28 2010-06-16 广州菲音信息科技有限公司 Data processing system and method
CN102025650A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Message processing system and message processing method of enterprise service bus
CN102025649A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Message processing method of enterprise service bus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1564960A1 (en) * 2001-05-16 2005-08-17 Bytemobile, Inc. System and methods for providing differentiated services within a network communication system
CN101431476A (en) * 2008-12-12 2009-05-13 中国工商银行股份有限公司 Data transmission method based on message queue, server and system
CN101739296A (en) * 2009-12-28 2010-06-16 广州菲音信息科技有限公司 Data processing system and method
CN102025650A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Message processing system and message processing method of enterprise service bus
CN102025649A (en) * 2010-06-04 2011-04-20 西本新干线股份有限公司 Message processing method of enterprise service bus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106576043A (en) * 2014-08-29 2017-04-19 英特尔公司 Virally distributable trusted messaging
CN106576043B (en) * 2014-08-29 2020-02-28 英特尔公司 Virally allocatable trusted messaging

Similar Documents

Publication Publication Date Title
CN102915254B (en) task management method and device
CN104796337A (en) Method and device for forwarding message
CN102594876B (en) The mixing accelerating system of game real time data and more new data
CN103442030A (en) Method and system for sending and processing service request messages and client-side device
CN102196591A (en) Mobile terminal and data parallel transmission method thereof
CN103874035A (en) Mobile terminal message pushing method and equipment
CN102571568A (en) Method and device for processing task
WO2017185615A1 (en) Method for determining service status of service processing device and scheduling device
CN113259415B (en) Network message processing method and device and network server
CN104539510A (en) Multi-protocol-based information pushing system and method
CN110535811B (en) Remote memory management method and system, server, client and storage medium
CN105025047A (en) Cloud desktop pushing method, system and pushing end and receiving end
CN102724132A (en) Method and device for improving transmission control protocol (TCP) connection multiplexing processing efficiency
CN105049531A (en) Message pushing system and message pushing method
CN114390451A (en) 5G message batch sending method and device based on message queue and electronic equipment
CN209805866U (en) Conversation maintaining system
CN104965810A (en) Method and device for rapidly processing data message in multi-core mode
CN102685209A (en) Method, device and facility for assisting user equipment to receive and dispatch instant message
CN103577469B (en) Database connection multiplexing method and apparatus
CN106357728B (en) Information processing method, system and terminal
CN102761608A (en) UDP (User Datagram Protocol) conversation multiplexing method and load balancing equipment
CN102271139A (en) C/S (Client/Server) framework-based communication system and method
CN102281202A (en) Dispatching method, server and system
CN110365749B (en) Message pushing method, message pushing system and storage medium
Chen et al. Joint deployment and task computation of uavs in uav-assisted edge computing network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20111207