CN103312558A - Network connection availability monitoring method and system in computer client server system - Google Patents
Network connection availability monitoring method and system in computer client server system Download PDFInfo
- Publication number
- CN103312558A CN103312558A CN2013101801411A CN201310180141A CN103312558A CN 103312558 A CN103312558 A CN 103312558A CN 2013101801411 A CN2013101801411 A CN 2013101801411A CN 201310180141 A CN201310180141 A CN 201310180141A CN 103312558 A CN103312558 A CN 103312558A
- Authority
- CN
- China
- Prior art keywords
- ping
- client
- server
- time
- last
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a network connection availability monitoring method and a system in a computer client server system. The network connection availability monitoring system comprises a client, a server, a JMS (java message service) server, wherein the client is used for sending ping instructions, receiving ping response message, resetting the last ping message receiving time, checking the last ping message receiving time at fixed time, judging double-channel fault if the time is out, stopping sending ping request, disconnecting, and reconnecting again; the server is used for receiving the ping instructions, resetting the last ping instruction receiving time, sending ping response message to the JMS server, checking the last ping instruction receiving time at fixed time, judging double-channel fault if the time is out, and disconnecting; and the JMS server is used for transferring the ping response message sent by the server to the client. By the method and system provided by the invention, the availability of the network connection between the client and the server can be monitored in time.
Description
Technical field
The present invention relates to network technology, compunication, field of software engineering, be specifically related to network connection validity monitoring method in a kind of computer clients server system.
Background technology
C/S (Client/Server) structure, i.e. client-server structure.It is software system architecture, can take full advantage of the advantage of two ends hardware environment by it, and the task reasonable distribution is brought in realization to Client end and Server, has reduced the communication-cost of system.Widely applying software systems at present all is the double-layer structure of Client/Server form.
In C/S uses, need the validity of the network connection between the periodic monitoring client-server usually.Traditional monitoring mode is to arbitrary network connection, regularly initiates the ping request, then the validity that connects according to the situation decision network of obtaining ping request response from this connection.
Transmit with TCP and is connected the request that is used for non-message and the system of replying existing third party JMS server to carry out message, traditional monitoring mode is monitored the validity of network connection and is difficult to judgement.
Summary of the invention
The technical problem to be solved in the present invention is: network connection validity monitoring method and system in a kind of computer clients server system is provided, transmit when being connected for the request of non-message and the system replied with TCP, can in time monitor the validity of network connection between the client-server existing third party JMS server to carry out message.
The present invention solves the problems of the technologies described above the technical scheme of taking to be: network connection validity monitoring method in a kind of computer clients server system, and it is characterized in that: it may further comprise the steps:
1) binary channels connects foundation: client foundation is connected with service end, sets up the order interface channel with service end; Service end setup message passage, and the assignment messages channel address returns client, service end and JMS server are set up the first message interface channel simultaneously; Client is set up the second message interface channel according to the message channel address and the JMS server that return
2) binary channels connects monitoring:
Client sends the ping instruction by the order interface channel; Service end receives the last ping order of ping instruction back replacement time of reception at every turn, and receives the response to JMS server transmission ping by the first message interface channel; The JMS server is receiveed the response to client forwarding ping by the second message interface channel; Client is received after ping is receiveed the response and is reset the last ping message sink time;
The last ping of service end regular check order time of reception if overtimely then judge the binary channels fault, disconnects and connecting;
The last ping message sink time of client regular check if overtimely then judge the binary channels fault, stops to send the ping request, and disconnects and rebulid binary channels and connect.
A kind of system that adopts network connection validity monitoring method in the above-mentioned computer clients server system, it is characterized in that: it comprises:
Client is used for sending the ping instruction, receives ping and receives the response, and reset the last ping message sink time, the last ping message sink time of regular check is if overtimely then judge the binary channels fault, stop to send the ping request, and disconnection rebulids connection;
Service end be used for to receive the ping instruction, the last ping order time of reception of resetting, and send ping to the JMS server and receive the response, and the last ping order of regular check time of reception if overtimely then judge the binary channels fault, disconnects and connecting;
The JMS server is transmitted to client for the ping of service end transmission is receiveed the response.
Beneficial effect of the present invention is: by adopting the inventive method, transmit when being connected for the request of non-message and the system replied with TCP existing third party JMS server to carry out message, client is by regularly initiating the ping request at non-message channel (namely ordering interface channel), after service end is received this request, send ping at the JMS passage and receive the response; Client can be judged two passage connection status by the monitoring ping situation of receiveing the response; In the time can't receiving normally that ping responds, client no longer sends the ping request, and judges the connection inefficacy; Service end then can be judged two passage connection status by monitoring ping request situation, thereby can in time monitor the validity of network connection between the client-server.
Description of drawings
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 the monitoring flow chart.
Embodiment
The present invention will be further described below in conjunction with instantiation and accompanying drawing.
Network connection validity monitoring method in a kind of computer clients server system, it may further comprise the steps:
1) binary channels connects foundation, and as shown in Figure 1: client foundation is connected with service end, sets up the order interface channel with service end; Service end setup message passage, and the assignment messages channel address returns client, service end and JMS server are set up the first message interface channel simultaneously; Client is set up the second message interface channel according to the message channel address and the JMS server that return
2) binary channels connects monitoring, as shown in Figure 2:
Client sends the ping instruction by the order interface channel; Service end receives the last ping order of ping instruction back replacement time of reception at every turn, and receives the response to JMS server transmission ping by the first message interface channel; The JMS server is receiveed the response to client forwarding ping by the second message interface channel; Client is received after ping is receiveed the response and is reset the last ping message sink time;
The last ping of service end regular check order time of reception if overtimely then judge the binary channels fault, disconnects and connecting;
The last ping message sink time of client regular check if overtimely then judge the binary channels fault, stops to send the ping request, and disconnects and rebulid binary channels and connect.
A kind of system that adopts network connection validity monitoring method in the above-mentioned computer clients server system, it comprises:
Client is used for sending the ping instruction, receives ping and receives the response, and reset the last ping message sink time, the last ping message sink time of regular check is if overtimely then judge the binary channels fault, stop to send the ping request, and disconnection rebulids connection;
Service end be used for to receive the ping instruction, the last ping order time of reception of resetting, and send ping to the JMS server and receive the response, and the last ping order of regular check time of reception if overtimely then judge the binary channels fault, disconnects and connecting;
The JMS server is transmitted to client for the ping of service end transmission is receiveed the response.
Claims (2)
1. network connection validity monitoring method in the computer clients server system, it is characterized in that: it may further comprise the steps:
1) binary channels connects foundation: client foundation is connected with service end, sets up the order interface channel with service end; Service end setup message passage, and the assignment messages channel address returns client, service end and JMS server are set up the first message interface channel simultaneously; Client is set up the second message interface channel according to the message channel address and the JMS server that return;
2) binary channels connects monitoring:
Client sends the ping instruction by the order interface channel; Service end receives the last ping order of ping instruction back replacement time of reception at every turn, and receives the response to JMS server transmission ping by the first message interface channel; The JMS server is receiveed the response to client forwarding ping by the second message interface channel; Client is received after ping is receiveed the response and is reset the last ping message sink time;
The last ping of service end regular check order time of reception if overtimely then judge the binary channels fault, disconnects and connecting;
The last ping message sink time of client regular check if overtimely then judge the binary channels fault, stops to send the ping request, and disconnects and rebulid binary channels and connect.
2. system that adopts network connection validity monitoring method in the described computer clients server system of claim 1, it is characterized in that: it comprises:
Client is used for sending the ping instruction, receives ping and receives the response, and reset the last ping message sink time, the last ping message sink time of regular check is if overtimely then judge the binary channels fault, stop to send the ping request, and disconnection rebulids connection;
Service end be used for to receive the ping instruction, the last ping order time of reception of resetting, and send ping to the JMS server and receive the response, and the last ping order of regular check time of reception if overtimely then judge the binary channels fault, disconnects and connecting;
The JMS server is transmitted to client for the ping of service end transmission is receiveed the response.
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 true CN103312558A (en) | 2013-09-18 |
CN103312558B 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) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI549449B (en) * | 2014-11-12 | 2016-09-11 | 宏碁股份有限公司 | Maintenance method for network connection and computer system |
CN106533845A (en) * | 2016-12-27 | 2017-03-22 | 海尔优家智能科技(北京)有限公司 | Long-connection state monitoring method and device |
CN106648966A (en) * | 2016-10-14 | 2017-05-10 | 郑州云海信息技术有限公司 | Metadata backup method and system for storage server |
CN107809807A (en) * | 2017-10-20 | 2018-03-16 | 广州小鹏汽车科技有限公司 | The communication means and device of large-size screen monitors and mobile terminal are controlled in a kind of Android |
CN110213120A (en) * | 2019-04-24 | 2019-09-06 | 深圳智链物联科技有限公司 | A kind of the pressure survey method, apparatus and terminal device of message-oriented middleware |
CN115103005A (en) * | 2022-06-14 | 2022-09-23 | 北京京东乾石科技有限公司 | Request response method and device, electronic equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150443A (en) * | 2007-10-17 | 2008-03-26 | 中兴通讯股份有限公司 | 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
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150443A (en) * | 2007-10-17 | 2008-03-26 | 中兴通讯股份有限公司 | 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 |
Cited By (8)
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 |
CN107809807A (en) * | 2017-10-20 | 2018-03-16 | 广州小鹏汽车科技有限公司 | The communication means and device of large-size screen monitors and mobile terminal are controlled in a kind of Android |
CN107809807B (en) * | 2017-10-20 | 2020-12-15 | 广州小鹏汽车科技有限公司 | Method and device for communication between Android central control large screen and mobile terminal |
CN110213120A (en) * | 2019-04-24 | 2019-09-06 | 深圳智链物联科技有限公司 | A kind of the pressure survey method, apparatus and terminal device of message-oriented middleware |
CN110213120B (en) * | 2019-04-24 | 2020-12-04 | 深圳智链物联科技有限公司 | Message middleware pressure measurement method and device and terminal equipment |
CN115103005A (en) * | 2022-06-14 | 2022-09-23 | 北京京东乾石科技有限公司 | Request response method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103312558B (en) | 2016-04-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103312558A (en) | Network connection availability monitoring method and system in computer client server system | |
CN102333128B (en) | Active transmission method for real-time Web data | |
EP2437456B1 (en) | Method and system for realizing concurrent access of multi-kinds of bearer protocols on machine-to-machine (m2m) platform | |
JP2017505473A5 (en) | ||
CN102394925B (en) | Communication method and device for remote monitoring diagnosis center and area regulation center | |
CN103491102A (en) | Method, system and device for monitoring stability of internet audio and video | |
JP2014515851A5 (en) | ||
CN110098987B (en) | Method for balancing multilayer long connection load of Internet of things | |
CN103312593B (en) | A kind of message distributing system and method | |
CN107529229B (en) | Data transmission method, device and system | |
CN103858389A (en) | Session transmission method, client and Push server | |
CN113472810B (en) | Method and system for SOCKET communication based on TCP/IP protocol | |
CN103036724B (en) | State information transmission method, the network equipment and unit equipment | |
CN104113564A (en) | Hyper text transfer protocol connection multiplexing method, device, system, and terminal | |
CN105554150A (en) | Network logging-in method and apparatus | |
CN109067509A (en) | Distributed node signal transmission method and system, shared calculate node and signaling gateway | |
CN103428070A (en) | Instant group messaging method, session management server and client side | |
CN104378230A (en) | System and method for improving stability of Telnet server | |
JP5740105B2 (en) | Application monitoring method for communication system | |
CN105306442A (en) | Proxy server and command transmission methods | |
CN107295057B (en) | Apparatus for relaying data transmission in SCADA system | |
KR20120128013A (en) | System and method for providing push service | |
KR101407597B1 (en) | System and method for providing push service | |
CN104052623A (en) | Message processing method and message processing system in Ethernet passive optical network | |
CN210274135U (en) | Remote connection system |
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 |