CN103312558B - In computer clients server system, network is connected with validity monitoring method and system - Google Patents
In computer clients server system, network is connected with validity monitoring method and system Download PDFInfo
- Publication number
- CN103312558B CN103312558B CN201310180141.1A CN201310180141A CN103312558B CN 103312558 B CN103312558 B CN 103312558B CN 201310180141 A CN201310180141 A CN 201310180141A CN 103312558 B CN103312558 B CN 103312558B
- Authority
- CN
- China
- Prior art keywords
- ping
- time
- response
- client
- service 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.)
- Active
Links
Landscapes
- Computer And Data Communications (AREA)
- Debugging And Monitoring (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides network in computer clients server system and be connected with validity monitoring method and system, comprise client, for sending ping instruction, receive ping to receive the response, and reset last ping and to receive the response time of reception, the last ping of regular check is receiveed the response time of reception, if time-out, judges binary channels fault, stop sending ping request, and disconnection re-establishes connection; Service end, for receiving ping instruction, resets the last ping command reception time, and receives the response to JMS server transmission ping, the regular check last ping command reception time, if time-out, judges binary channels fault, disconnects; JMS server, the ping for service end being sent is receiveed the response to client and is forwarded.The present invention can monitor the validity that between client-server, network connects in time.
Description
Technical field
The present invention relates to network technology, compunication, field of software engineering, be specifically related to network in a kind of computer clients server system and be connected with validity monitoring method.
Background technology
C/S(Client/Server) structure, i.e. client-server structure.It is software system architecture, can be made full use of the advantage of two ends hardware environment by it, task is reasonably allocated to Client end and Server hold realize, reduce the communication-cost of system.Current extensive application software systems are all the double-layer structures of Client/Server form.
In C/S application, usually need the validity that the network between periodic monitoring client-server connects.Traditional monitoring mode connects arbitrary network, regularly initiates ping request, then according to the validity obtaining the situation decision network connection that ping request is responded from this connection.
Carry out message and forward and is connected in the request of non-message and the system of response with TCP there is third party JMS server, the validity that traditional monitoring mode connects network is monitored and is difficult to judgement.
Summary of the invention
The technical problem to be solved in the present invention is: provide network in a kind of computer clients server system to be connected with validity monitoring method and system, exist third party JMS server carry out message forward the system be connected with TCP for the request of non-message and response time, the validity of network connection between client-server can be monitored in time.
The present invention for solving the problems of the technologies described above taked technical scheme is: in a kind of computer clients server system, network is connected with validity monitoring method, it is characterized in that: it comprises the following steps:
1) binary channels connection establishment: client sets up the connection with service end, sets up order interface channel with service end; Service end setup message passage, and assignment messages channel address returns client, service end and JMS server set up the first message interface channel simultaneously; Client sets up the second message interface channel according to the message channel address returned and JMS server
2) binary channels connects monitoring:
Client sends ping instruction by order interface channel; Service end resets the last ping command reception time at every turn after receiving ping instruction, and is receiveed the response to JMS server transmission ping by the first message interface channel; JMS server forwards ping by the second message interface channel to client and receives the response; Client receives and to reset last ping after ping is receiveed the response and to receive the response time of reception;
The service end regular check last ping command reception time, if time-out, judge binary channels fault, disconnect;
The last ping of client regular check is receiveed the response time of reception, if time-out, judges binary channels fault, stops sending ping request, and disconnects and re-establish binary channels and connect.
Adopt network in above computer client server system to be connected with a system for validity monitoring method, it is characterized in that: it comprises:
Client, for sending ping instruction, receiving ping and receiveing the response, and reset last ping and to receive the response time of reception, the last ping of regular check is receiveed the response time of reception, if time-out, judges binary channels fault, stop sending ping request, and disconnection re-establishes connection;
Service end, for receiving ping instruction, resets the last ping command reception time, and receives the response to JMS server transmission ping, the regular check last ping command reception time, if time-out, judges binary channels fault, disconnects;
JMS server, the ping for service end being sent is receiveed the response to client and is forwarded.
Beneficial effect of the present invention is: by adopting the inventive method, exist third party JMS server carry out message forward the system be connected with TCP for the request of non-message and response time, client is by regularly asking at the upper ping of initiation of non-message passage (i.e. order interface channel), after service end receives this request, JMS passage sends ping and receives the response; Client can judge two passage connection state by the monitoring ping situation of receiveing the response; When normally receiving ping and respond, client no longer sends ping request, and judges Joint failure; Service end then can judge two passage connection state by monitoring ping situation of asking, thus can monitor the validity that between client-server, network connects in time.
Accompanying drawing explanation
Fig. 1 is the binary channels connection building process figure of one embodiment of the invention.
Fig. 2 is that the binary channels of one embodiment of the invention connects monitoring flow chart.
Embodiment
Below in conjunction with instantiation and accompanying drawing, the present invention will be further described.
In a kind of computer clients server system, network is connected with validity monitoring method, and it comprises the following steps:
1) binary channels connection establishment, as shown in Figure 1: client sets up the connection with service end, sets up order interface channel with service end; Service end setup message passage, and assignment messages channel address returns client, service end and JMS server set up the first message interface channel simultaneously; Client sets up the second message interface channel according to the message channel address returned and JMS server
2) binary channels connects monitoring, as shown in Figure 2:
Client sends ping instruction by order interface channel; Service end resets the last ping command reception time at every turn after receiving ping instruction, and is receiveed the response to JMS server transmission ping by the first message interface channel; JMS server forwards ping by the second message interface channel to client and receives the response; Client receives and to reset last ping after ping is receiveed the response and to receive the response time of reception;
The service end regular check last ping command reception time, if time-out, judge binary channels fault, disconnect;
The last ping of client regular check is receiveed the response time of reception, if time-out, judges binary channels fault, stops sending ping request, and disconnects and re-establish binary channels and connect.
Adopt network in above computer client server system to be connected with a system for validity monitoring method, it comprises:
Client, for sending ping instruction, receiving ping and receiveing the response, and reset last ping and to receive the response time of reception, the last ping of regular check is receiveed the response time of reception, if time-out, judges binary channels fault, stop sending ping request, and disconnection re-establishes connection;
Service end, for receiving ping instruction, resets the last ping command reception time, and receives the response to JMS server transmission ping, the regular check last ping command reception time, if time-out, judges binary channels fault, disconnects;
JMS server, the ping for service end being sent is receiveed the response to client and is forwarded.
Claims (2)
1. in computer clients server system, network is connected with a validity monitoring method, it is characterized in that: it comprises the following steps:
1) binary channels connection establishment: client sets up the connection with service end, sets up order interface channel with service end; Service end setup message passage, and assignment messages channel address returns client, service end and JMS server set up the first message interface channel simultaneously; Client sets up the second message interface channel according to the message channel address returned and JMS server;
2) binary channels connects monitoring:
Client sends ping instruction by order interface channel; Service end resets the last ping command reception time at every turn after receiving ping instruction, and is receiveed the response to JMS server transmission ping by the first message interface channel; JMS server forwards ping by the second message interface channel to client and receives the response; Client receives and to reset last ping after ping is receiveed the response and to receive the response time of reception;
The service end regular check last ping command reception time, if time-out, judge binary channels fault, disconnect;
The last ping of client regular check is receiveed the response time of reception, if time-out, judges binary channels fault, stops sending ping request, and disconnects and re-establish binary channels and connect.
2. adopt network in computer clients server system according to claim 1 to be connected with a system for validity monitoring method, it is characterized in that: it comprises:
Client, for sending ping instruction, receiving ping and receiveing the response, and reset last ping and to receive the response time of reception, the last ping of regular check is receiveed the response time of reception, if time-out, judges binary channels fault, stop sending ping request, and disconnection re-establishes connection;
Service end, for receiving ping instruction, resets the last ping command reception time, and receives the response to JMS server transmission ping, the regular check last ping command reception time, if time-out, judges binary channels fault, disconnects;
JMS server, the ping for service end being sent is receiveed the response to client and is forwarded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310180141.1A CN103312558B (en) | 2013-05-15 | 2013-05-15 | In computer clients server system, network is connected with validity monitoring method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310180141.1A CN103312558B (en) | 2013-05-15 | 2013-05-15 | In computer clients server system, network is connected with validity monitoring method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103312558A CN103312558A (en) | 2013-09-18 |
CN103312558B true CN103312558B (en) | 2016-04-06 |
Family
ID=49137359
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310180141.1A Active CN103312558B (en) | 2013-05-15 | 2013-05-15 | In computer clients server system, network is connected with validity monitoring method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103312558B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI549449B (en) * | 2014-11-12 | 2016-09-11 | 宏碁股份有限公司 | Maintenance method for network connection and computer system |
CN106648966A (en) * | 2016-10-14 | 2017-05-10 | 郑州云海信息技术有限公司 | Metadata backup method and system for storage server |
CN106533845A (en) * | 2016-12-27 | 2017-03-22 | 海尔优家智能科技(北京)有限公司 | Long-connection state monitoring method and device |
CN107809807B (en) * | 2017-10-20 | 2020-12-15 | 广州小鹏汽车科技有限公司 | Method and device for communication between Android central control large screen and mobile terminal |
CN110213120B (en) * | 2019-04-24 | 2020-12-04 | 深圳智链物联科技有限公司 | Message middleware pressure measurement method and device and terminal equipment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150443B (en) * | 2007-10-17 | 2011-08-24 | 中兴通讯股份有限公司 | Processing method for telecommunication network management message |
CN102340510A (en) * | 2011-11-02 | 2012-02-01 | 上海市共进通信技术有限公司 | Method for realizing keeping of calling heartbeat based on SIP (Session Initiation Protocol) signaling in VoIP (Voice over Internet Protocol) network |
-
2013
- 2013-05-15 CN CN201310180141.1A patent/CN103312558B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103312558A (en) | 2013-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103312558B (en) | In computer clients server system, network is connected with validity monitoring method and system | |
CN107645529B (en) | Heartbeat packet sending method and device | |
JP2017505473A5 (en) | ||
CN104811459A (en) | Processing method, processing device and system for message services and message service system | |
CN102394925B (en) | Communication method and device for remote monitoring diagnosis center and area regulation center | |
CN106685748B (en) | Heartbeat information sending method, server and terminal | |
JP2014515851A5 (en) | ||
CN107528891B (en) | Websocket-based automatic clustering method and system | |
CN102045270A (en) | Chat server system, method for constructing chat server system and chat system | |
CN106790626B (en) | Reliable distributed alarm implementation method | |
US8711734B2 (en) | Method and system for fail-safe call survival | |
CN110311800A (en) | Communication equipment, the connection method of node, storage medium, electronic device | |
CN107529229B (en) | Data transmission method, device and system | |
CN116048538B (en) | Service grid deployment method and device for DPU | |
CN104202255A (en) | Efficient multi-link data transmission implementation method | |
CN102624745A (en) | Method and device for establishing PCEP session | |
CN103533039A (en) | P2P (Peer-to-Peer) data transmission method, forwarding proxy server and system | |
CN103685398A (en) | Communication connection establishment method and communication system | |
CN112947333B (en) | Socket long connection-based balanced load fragmentation method | |
US20140201376A1 (en) | Method and system for the handling of redundant long poll | |
CN105554150A (en) | Network logging-in method and apparatus | |
CN105072148B (en) | Method and device for establishing connection with terminal | |
CN104243473B (en) | A kind of method and device of data transmission | |
CN102355371A (en) | Implementation method for dual hot redundancy of splicing wall control system | |
CN103414778A (en) | Method for keeping clustering network management devices alive step by step |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20130918 Assignee: WUHAN YANGTZE COMMUNICATIONS ZHILIAN TECHNOLOGY CO., LTD. Assignor: Wuhan Yangtze Communications Industry Group Co., Ltd. Contract record no.: 2014420000177 Denomination of invention: Network connection availability monitoring method and system in computer client server system License type: Exclusive License Record date: 20140926 |
|
LICC | Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |