CN112311878A - Centralized control probe disconnection reconnection method, device and system - Google Patents

Centralized control probe disconnection reconnection method, device and system Download PDF

Info

Publication number
CN112311878A
CN112311878A CN202011188305.1A CN202011188305A CN112311878A CN 112311878 A CN112311878 A CN 112311878A CN 202011188305 A CN202011188305 A CN 202011188305A CN 112311878 A CN112311878 A CN 112311878A
Authority
CN
China
Prior art keywords
centralized control
control probe
probe
control platform
platform
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
CN202011188305.1A
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202011188305.1A priority Critical patent/CN112311878A/en
Publication of CN112311878A publication Critical patent/CN112311878A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3263Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The disclosure relates to a method, a device and a system for disconnection and reconnection of a centralized control probe, electronic equipment and a computer readable medium. The method comprises the following steps: the centralized control probe sends heartbeat information to the centralized control platform at regular time; when the feedback information of the heartbeat information is not received, the centralized control probe increases the monitoring value by 1; when the monitoring value is larger than the monitoring threshold value, determining that the centralized control probe is in a disconnection state; closing the communication connection between the centralized control probe and the centralized control platform; and the centralized control probe initiates a connection establishment request with the centralized control platform to reconnect. The centralized control probe disconnection reconnection method, the centralized control probe disconnection reconnection device, the centralized control probe disconnection reconnection system, the electronic equipment and the computer readable medium can automatically solve the centralized control probe disconnection phenomenon caused by network fluctuation, and save labor cost and time cost.

Description

Centralized control probe disconnection reconnection method, device and system
Technical Field
The disclosure relates to the field of computer information processing, in particular to a method, a device and a system for disconnection and reconnection of a centralized control probe, electronic equipment and a computer readable medium.
Background
With the development of computer and network technologies, the dependence of business in various industries on computer technologies is increasing day by day. In different industries, centralized control management systems composed of centralized control platforms and centralized control probes are also increasingly widely used. The automatic reconnection of the centralized control probes in the centralized control management system is also more and more important. When the centralized control probe is added into a centralized control management system, the centralized control probe needs to have the function of automatically reconnecting with the centralized control platform after the network is recovered when the communication between the probe and the centralized control platform is interrupted due to the network interruption.
At present, the widely used centralized control probe reconnection scheme in the industry is as follows: and manually confirming whether the disconnection phenomenon of the centralized control probe is network fluctuation or real disconnection, and then reconnecting by manual remote operation or driving to field operation authentication reconnection when the centralized control probe is real disconnection. In the existing scheme, all disconnection probes need to manually confirm whether the network fluctuation exists or not; when the centralized control probe in the centralized control management system is excessively disconnected, a large amount of manpower is consumed for carrying out authentication reconnection operation on the centralized control probe, and the manpower cost is excessively high; moreover, when the centralized control platform device is disconnected from the network and migrated, the centralized control probes are all disconnected.
Therefore, a new method, apparatus, system, electronic device and computer readable medium for disconnection and reconnection of a centralized control probe are needed.
The above information disclosed in this background section is only for enhancement of understanding of the background of the disclosure and therefore it may contain information that does not constitute prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of the above, the present disclosure provides a method, an apparatus, a system, an electronic device and a computer readable medium for reconnection of a centralized control probe, which can automatically solve the disconnection phenomenon of the centralized control probe caused by network fluctuation, and save labor cost and time cost.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the present disclosure, a method for reconnecting a central control probe during disconnection is provided, the method including: the centralized control probe sends heartbeat information to the centralized control platform at regular time; when the feedback information of the heartbeat information is not received, the centralized control probe increases the monitoring value by 1; when the monitoring value is larger than the monitoring threshold value, determining that the centralized control probe is in a disconnection state; closing the communication connection between the centralized control probe and the centralized control platform; and the centralized control probe initiates a connection establishment request with the centralized control platform to reconnect.
In an exemplary embodiment of the present disclosure, before the central control probe sends heartbeat information to the central control platform at regular time, the method further includes: the centralized control probe continuously establishes communication connection with the centralized control platform; and the centralized control probe reports the running state of the centralized control probe to the centralized control platform.
In an exemplary embodiment of the present disclosure, the continuously establishing, by the centralized control probe, a communication connection with the centralized control platform includes: and the centralized control probe continuously establishes communication connection based on a safety socket layer protocol with the centralized control platform.
In an exemplary embodiment of the present disclosure, the reporting, by the centralized control probe, the running state of the centralized control probe to the centralized control platform includes: enabling a heartbeat mechanism on the centralized control probe; and reporting the running state of the centralized control probe to the centralized control platform based on the heartbeat mechanism.
In an exemplary embodiment of the present disclosure, further comprising: and when the feedback information contains a disconnection instruction, the centralized control probe disconnects the communication connection with the centralized control platform.
In an exemplary embodiment of the present disclosure, further comprising: and clearing the monitoring value when the feedback information of the heartbeat information is received.
In an exemplary embodiment of the present disclosure, the initiating, by the centralized control probe, a connection establishment request with the centralized control platform for reconnection includes: the centralized control probe initiates a connection establishment request with the centralized control platform; and when the connection establishment request is unsuccessful, sending the connection establishment request again.
In an exemplary embodiment of the present disclosure, the central control probe initiates a connection establishment request with the central control platform to reconnect, further including: and when the connection establishment request is successful, the centralized control probe reports the running state of the centralized control probe to the centralized control platform.
According to an aspect of the present disclosure, a centralized control probe disconnection reconnection device is provided, the device including: the monitoring module is used for sending heartbeat information to the centralized control platform at regular time by the centralized control probe; the numerical value module is used for increasing the monitoring numerical value by 1 by the centralized control probe when the feedback information of the heartbeat information is not received; the state module is used for determining that the centralized control probe is in a disconnection state when the monitoring value is greater than the monitoring threshold value; the closing module is used for closing the communication connection between the centralized control probe and the centralized control platform; and the reconnection module is used for initiating a connection establishment request with the centralized control platform by the centralized control probe so as to reconnect.
In an exemplary embodiment of the present disclosure, further comprising: the communication module is used for the centralized control probe to continuously establish communication connection with the centralized control platform; and the reporting module is used for reporting the running state of the centralized control probe to the centralized control platform by the centralized control probe.
According to an aspect of the present disclosure, a centralized control probe disconnection reconnection system is provided, which includes: the centralized control probe sends heartbeat information to the centralized control platform at regular time; when the feedback information of the heartbeat information is not received, increasing the monitoring value by 1; when the monitoring value is larger than the monitoring threshold value, determining that the centralized control probe is in a disconnection state; closing the communication connection between the centralized control probe and the centralized control platform; initiating a connection establishment request with the centralized control platform to reconnect; and the user receives the heartbeat information sent by the centralized control probe, generates feedback information and transmits the feedback information back to the centralized control probe, and is connected with the centralized control probe again when the centralized control probe sends a connection establishment request.
According to an aspect of the present disclosure, an electronic device is provided, the electronic device including: one or more processors; storage means for storing one or more programs; when executed by one or more processors, cause the one or more processors to implement a method as above.
According to an aspect of the disclosure, a computer-readable medium is proposed, on which a computer program is stored, which program, when being executed by a processor, carries out the method as above.
According to the disconnection reconnection method, the disconnection reconnection device and the disconnection reconnection system for the centralized control probe, the electronic equipment and the computer readable medium, the centralized control probe sends heartbeat information to the centralized control platform at regular time; when the feedback information of the heartbeat information is not received, the centralized control probe increases the monitoring value by 1; when the monitoring value is larger than the monitoring threshold value, determining that the centralized control probe is in a disconnection state; closing the communication connection between the centralized control probe and the centralized control platform; the centralized control probe initiates a connection establishment request with the centralized control platform to reconnect, so that the phenomenon of disconnection of the centralized control probe caused by network fluctuation can be automatically solved, and the labor cost and the time cost are saved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are merely some embodiments of the present disclosure, and other drawings may be derived from those drawings by those of ordinary skill in the art without inventive effort.
FIG. 1 is a block diagram illustrating a centralized control probe disconnect reconnect system in accordance with an exemplary embodiment.
FIG. 2 is a flow chart illustrating a method for centrally controlled probe disconnection reconnecting in accordance with an exemplary embodiment.
FIG. 3 is a flow chart illustrating a method for centrally controlled probe disconnection reconnecting in accordance with another exemplary embodiment.
FIG. 4 is a flow chart illustrating a method for centrally controlled probe disconnection reconnecting in accordance with another exemplary embodiment.
FIG. 5 is a block diagram illustrating a centralized control probe disconnect reconnect device in accordance with an exemplary embodiment.
FIG. 6 is a block diagram illustrating a centralized control probe disconnect reconnect device in accordance with another exemplary embodiment.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 8 is a block diagram illustrating a computer-readable medium in accordance with an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals denote the same or similar parts in the drawings, and thus, a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another. Thus, a first component discussed below may be termed a second component without departing from the teachings of the disclosed concept. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
It is to be understood by those skilled in the art that the drawings are merely schematic representations of exemplary embodiments, and that the blocks or processes shown in the drawings are not necessarily required to practice the present disclosure and are, therefore, not intended to limit the scope of the present disclosure.
Fig. 1 is a system block diagram illustrating a centralized control probe disconnection reconnecting method, apparatus, system, electronic device, and computer readable medium according to an example embodiment.
As shown in fig. 1, the system architecture 10 may include centralized probes 101, 102, 103, a network 104, and a centralized platform 105. The network 104 is used to provide a medium for communication links between the centralized control probes 101, 102, 103 and the centralized control platform 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The centralized probes 101, 102, 103 interact with a centralized platform 105 over a network 104 to receive or send messages, etc. The centralized control probes 101, 102, 103 are network security devices, and can collect data in a network.
The centralized control platform 105 may be a server that provides various services, such as a background management server that supports data sent by the centralized control probes 101, 102, 103. The centralized control platform 105 may analyze and process the received data, and give suggestions on network security according to the processing result. More specifically, the centralized control platform 105 is configured to receive heartbeat information sent by the centralized control probe, generate feedback information to be returned to the centralized control probe, and connect with the centralized control probe again when the centralized control probe sends a connection establishment request.
The centralized control probes 101, 102, 103 can, for example, send heartbeat information to the centralized control platform at regular times; the centralized control probes 101, 102, 103 may, for example, increase the monitoring value by 1 when no feedback information of the heartbeat information is received; the centralized control probes 101, 102, 103 may determine that the centralized control probes are in a disconnection state, for example, when the monitored value is greater than the monitoring threshold; the centralized probes 101, 102, 103 may, for example, close the communication connection between the centralized probes and the centralized platform; the centralized probes 101, 102, 103 may, for example, initiate a connection establishment request with the centralized platform for reconnection.
Before the centralized control probes 101, 102, 103 send heartbeat information to the centralized control platform at regular time, the method further includes: continuously establishing communication connection with the centralized control platform; and reporting the running state of the centralized control probe to the centralized control platform.
It should be noted that the central control probe disconnection reconnection method provided by the embodiment of the present disclosure may be executed by the central control probes 101, 102, and 103 and/or the central control platform 105, and accordingly, the central control probe disconnection reconnection device may be disposed in the central control probes 101, 102, and 103 and/or the central control platform 105.
FIG. 2 is a flow chart illustrating a method for centrally controlled probe disconnection reconnecting in accordance with an exemplary embodiment. The centralized control probe disconnection reconnection method 20 at least includes steps S202 to S210.
As shown in fig. 2, in S202, the centralized control probe sends heartbeat information to the centralized control platform at regular time.
Wherein, before the central control probe sends heartbeat information to the central control platform regularly, still include: the centralized control probe continuously establishes communication connection with the centralized control platform; and the centralized control probe reports the running state of the centralized control probe to the centralized control platform.
In S204, when the feedback information of the heartbeat information is not received, the centralized control probe increases the monitoring value by 1. In the initial period, the value of the monitoring data is 0, and when the heartbeat information is received and the feedback information is not received, the count of 1 monitoring data is increased.
In one embodiment, the method further comprises the step of disconnecting the communication connection between the centralized control probe and the centralized control platform when the feedback information contains a disconnection instruction. And clearing the monitoring value when the feedback information of the heartbeat information is received.
In S206, when the monitoring value is greater than the monitoring threshold, it is determined that the centralized control probe is in a disconnection state. The centralized platform and the centralized probe may, for example, establish a secure communication link using SSL. After the communication is established, a heartbeat mechanism is used on the probe side to keep continuous communication with the centralized control platform. And simultaneously monitoring data acquired from the centralized control platform by heartbeat communication at each time on the probe side, and analyzing: if the heartbeat communication for n times (n is a user-defined numerical value) does not receive the data information of the centralized control platform, the reason of network fluctuation packet loss can be eliminated, and the communication between the probe and the centralized control platform is considered to be disconnected unexpectedly.
In S208, the communication connection between the centralized control probe and the centralized control platform is closed. More specifically, the SSL communication connection between the centralized control probe and the centralized control platform may be closed.
In S210, the centralized control probe initiates a connection establishment request with the centralized control platform to reconnect. The centralized control probe can circularly initiate a request for carrying out digital certificate authentication with the centralized control platform until the probe and the platform pass the digital authentication, and a new communication connection between the probe and the platform is established.
In one embodiment, may include: the centralized control probe initiates a connection establishment request with the centralized control platform; wherein, when the connection establishment request is unsuccessful, the connection establishment request is sent again; and when the connection establishment request is successful, the centralized control probe reports the running state of the centralized control probe to the centralized control platform.
According to the disconnection reconnection method for the centralized control probe, the centralized control probe sends heartbeat information to the centralized control platform at regular time; when the feedback information of the heartbeat information is not received, the centralized control probe increases the monitoring value by 1; when the monitoring value is larger than the monitoring threshold value, determining that the centralized control probe is in a disconnection state; closing the communication connection between the centralized control probe and the centralized control platform; the centralized control probe initiates a connection establishment request with the centralized control platform to reconnect, so that the phenomenon of disconnection of the centralized control probe caused by network fluctuation can be automatically solved, and the labor cost and the time cost are saved.
The scheme disclosed by the invention can be applied to the centralized control probe, and can automatically eliminate the phenomenon of disconnection with the centralized control platform caused by network fluctuation; when the communication between the centralized control probe and the centralized control platform is interrupted unexpectedly, the centralized control probe automatically initiates a request for circulating the digital certificate authentication of the centralized control platform until the communication connection between the probe and the platform is reestablished after the authentication is passed. Before replacement, the method needs to rely on manual confirmation of disconnection and then manual digital authentication reconnection so as to achieve the purposes of time saving and labor saving. The scheme is particularly effective in the situation that the same centralized control platform is connected with a plurality of centralized control probes in different areas.
It should be clearly understood that this disclosure describes how to make and use particular examples, but the principles of this disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
FIG. 3 is a flow chart illustrating a method for centrally controlled probe disconnection reconnecting in accordance with another exemplary embodiment. The flow 30 shown in fig. 3 is a detailed description of the steps before S202 "the centralized control probe sends heartbeat information to the centralized control platform at regular time" in the flow shown in fig. 2.
As shown in fig. 3, in S302, the centralized control probe continuously establishes a communication connection with the centralized control platform. The centralized control probe can, for example, continuously establish a secure socket layer protocol-based communication connection with the centralized control platform. SSL (secure Socket Layer), a secure data transmission standard used on the internet, among others. It uses encryption technology to transmit data on the internet, ensuring that the data is not intercepted and not modified.
In S304, a heartbeat mechanism is enabled on the centralized control probe. The heartbeat mechanism is a mechanism for sending a self-defined structure (data packet) at regular time to let the other party know that the other party is still in the working state so as to ensure the validity of the connection.
In S306, the centralized control probe reports its own operating state to the centralized control platform based on the heartbeat mechanism.
The probe is accessed into a centralized control management system, an SSL communication pipeline A is established with a centralized control platform, the communication pipeline A is used for keeping communication, and a heartbeat mechanism is started on the probe to actively report information such as the running state of the probe to the centralized control platform; the monitoring threshold (network fluctuation packet loss attempt value) may also be set to m.
FIG. 4 is a flow chart illustrating a method for centrally controlled probe disconnection reconnecting in accordance with another exemplary embodiment. The process 40 shown in fig. 4 is a detailed description of the process shown in fig. 2.
As shown in fig. 4, in S401, the centralized control platform establishes a heartbeat connection channel a with the centralized control probe, and may further set n to 6 and m to 0. 1. The probe is accessed into the centralized control management system, and establishes an SSL communication pipeline with the centralized control platform: a, the system is used for keeping communication, and a heartbeat mechanism is started on a probe to actively report information such as the running state of the probe to a centralized control platform; the monitoring threshold is set to m.
In S402, the centralized control probe monitors feedback information of the centralized control platform. After the continuous communication between the centralized control probe and the centralized control platform is established, the data returned from the centralized control platform during each heartbeat communication is monitored and analyzed at the probe side.
In S403, whether the feedback information content is normal. If the feedback information of the heartbeat information is not received, setting n to be 1; if the centralized control platform issues other commands, the heartbeat communication is monitored continuously;
in S404, it is determined whether or not the command is a disconnection command.
In S405, the heartbeat connection channel is disconnected. If the centralized control platform issues a command for disconnecting the connection with the probe, closing the SSL communication pipeline A established with the centralized control platform in the step 1;
in S406, m > n. After waiting for a period of time, the established communication pipeline is tried again to acquire and analyze the heartbeat information of the centralized control platform.
If the data information of the centralized control platform is still not received, n + 1;
if n > m, execute S407,
if n is less than m, continuously trying to acquire heartbeat information;
and when n is less than m, if the communication information of the centralized control platform is received again, n is equal to 0, and the returned data of the centralized control platform during heartbeat communication is monitored continuously.
In S407, the heartbeat connection channel a is closed. The condition that the probe does not receive heartbeat communication data returned by the centralized control platform and does not receive a disconnection command issued by the centralized control platform due to network fluctuation packet loss is eliminated, and the probe and the centralized control platform are considered to be disconnected accidentally at the moment.
In S408, an authentication request to establish a link with the centralized control platform is initiated. And the probe reinitiates a digital certificate authentication request for establishing connection with the centralized control platform.
In S409, whether the centralized control platform is authenticated.
In S410, the heartbeat connection channel B is established. And the centralized control probe and the centralized control platform establish an SSL communication pipeline B.
In S411, the centralized control probe reports its own state information to the centralized control platform. And (3) starting a heartbeat mechanism on the probe to actively report information such as the running state of the probe to the centralized control platform.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as computer programs executed by a CPU. When executed by the CPU, performs the functions defined by the above-described methods provided by the present disclosure. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the methods according to exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
FIG. 5 is a block diagram illustrating a centralized control probe disconnect reconnect device in accordance with an exemplary embodiment. As shown in fig. 5, the centralized control probe disconnection reconnecting device 50 includes: a monitor module 502, a value module 504, a status module 506, a shutdown module 508, and a reconnect module 510.
The monitoring module 502 is used for sending heartbeat information to the centralized control platform by the centralized control probe at regular time;
the value module 504 is configured to, when feedback information of the heartbeat information is not received, increase the monitoring value by 1 by the centralized control probe;
the state module 506 is configured to determine that the centralized control probe is in a disconnection state when the monitoring value is greater than the monitoring threshold;
a closing module 508 is configured to close a communication connection between the centralized control probe and the centralized control platform;
the reconnection module 510 is configured to initiate, by the centralized control probe, a connection establishment request with the centralized control platform to reconnect.
FIG. 6 is a block diagram illustrating a centralized control probe disconnect reconnect device in accordance with another exemplary embodiment. As shown in fig. 6, the centralized control probe disconnection reconnecting device 60 includes: a communication module 602 and a reporting module 604.
The communication module 602 is configured to continuously establish a communication connection between the centralized control probe and the centralized control platform;
the reporting module 604 is configured to report the operation state of the centralized control probe to the centralized control platform.
According to the disconnection reconnection device for the centralized control probe, the centralized control probe sends heartbeat information to the centralized control platform at regular time; when the feedback information of the heartbeat information is not received, the centralized control probe increases the monitoring value by 1; when the monitoring value is larger than the monitoring threshold value, determining that the centralized control probe is in a disconnection state; closing the communication connection between the centralized control probe and the centralized control platform; the centralized control probe initiates a connection establishment request with the centralized control platform to reconnect, so that the phenomenon of disconnection of the centralized control probe caused by network fluctuation can be automatically solved, and the labor cost and the time cost are saved.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment.
An electronic device 700 according to this embodiment of the disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one memory unit 720, a bus 730 that connects the various system components (including the memory unit 720 and the processing unit 710), a display unit 740, and the like.
Wherein the storage unit stores program code that can be executed by the processing unit 710 to cause the processing unit 710 to perform the steps according to various exemplary embodiments of the present disclosure described in this specification. For example, the processing unit 710 may perform the steps as shown in fig. 2, 3, 4.
The memory unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
The memory unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 730 may be any representation of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 700' (e.g., keyboard, pointing device, bluetooth device, etc.), such that a user can communicate with devices with which the electronic device 700 interacts, and/or any devices (e.g., router, modem, etc.) with which the electronic device 700 can communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. The network adapter 760 may communicate with other modules of the electronic device 700 via the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In general, in the disconnection reconnection method for the centralized control probe according to the present disclosure, the centralized control platform and the centralized control probe (hereinafter, referred to as probe) establish a secure communication link using SSL. After the communication is established, a heartbeat mechanism is used on the probe side to keep continuous communication with the centralized control platform. And simultaneously monitoring data acquired from the centralized control platform by heartbeat communication at each time on the probe side, and analyzing: if the heartbeat communication for n times (n is a user-defined numerical value) does not receive the data information of the centralized control platform, the reason of network fluctuation packet loss can be eliminated, and the communication between the probe and the centralized control platform is considered to be disconnected unexpectedly. And then the probe circularly initiates a request for carrying out digital certificate authentication with the centralized control platform until the digital authentication between the probe and the platform passes, and starts to establish new communication connection between the probe and the platform. Specifically, the probe is accessed into the centralized control management system, and establishes an SSL communication pipeline with the centralized control platform: a, the system is used for keeping communication, and a heartbeat mechanism is started on a probe to actively report information such as the running state of the probe to a centralized control platform; and setting the network fluctuation packet loss attempt value as m. After continuous communication between the probe and the centralized control platform is established, monitoring data returned from the centralized control platform during heartbeat communication at the probe side every time and analyzing the data, namely if the returned data information of the centralized control platform is not received in the heartbeat communication, setting n to be 1 and executing the step 3; if the centralized control platform issues a command of disconnecting the connection with the probe, closing the SSL communication pipeline established with the centralized control platform in the step 1: a; and if the centralized control platform issues other commands, continuously monitoring heartbeat communication. After waiting for a period of time, trying to acquire heartbeat communication data of the centralized control platform from the communication pipeline established in the step 1 again and analyzing the heartbeat communication data, namely, if data information of the centralized control platform is still not received, n + 1; if n is larger than m, executing the step 4, otherwise, continuing to execute the step 3; if the communication information of the centralized control platform is received again, n is equal to 0, and the returned data of the centralized control platform is monitored continuously during heartbeat communication. By repeatedly executing the steps after waiting for a period of time, the condition that the probe does not receive heartbeat communication data returned by the centralized control platform due to network fluctuation packet loss and does not receive a disconnection command issued by the centralized control platform is eliminated, and the probe and the centralized control platform are considered to be disconnected accidentally at the moment; then the probe closes the SSL communication pipeline established with the centralized control platform: a, the probe re-initiates a digital certificate authentication request for establishing connection with the centralized control platform, namely, if the digital certificate authentication with the centralized control platform is not passed, the digital certificate authentication request for establishing connection with the centralized control platform is re-initiated; if the digital certificate passes the authentication with the centralized control platform, the probe and the centralized control platform establish an SSL communication pipeline: and B, a heartbeat mechanism is started on the probe to actively report information such as the running state of the probe to the centralized control platform, and then after continuous communication with the centralized control platform is established, data returned from the centralized control platform during each heartbeat communication is monitored and analyzed on the probe side.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, as shown in fig. 8, the technical solution according to the embodiment of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, or a network device, etc.) to execute the above method according to the embodiment of the present disclosure.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The computer readable medium carries one or more programs which, when executed by a device, cause the computer readable medium to perform the functions of: the centralized control probe sends heartbeat information to the centralized control platform at regular time; when the heartbeat information is received but the feedback information is not received, the centralized control probe increases the monitoring value by 1; when the monitoring value is larger than the monitoring threshold value, determining that the centralized control probe is in a disconnection state; closing the communication connection between the centralized control probe and the centralized control platform; and the centralized control probe initiates a connection establishment request with the centralized control platform to reconnect.
Those skilled in the art will appreciate that the modules described above may be distributed in the apparatus according to the description of the embodiments, or may be modified accordingly in one or more apparatuses unique from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Exemplary embodiments of the present disclosure are specifically illustrated and described above. It is to be understood that the present disclosure is not limited to the precise arrangements, instrumentalities, or instrumentalities described herein; on the contrary, the disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (11)

1. A centralized control probe disconnection reconnection method is characterized by comprising the following steps:
the centralized control probe sends heartbeat information to the centralized control platform at regular time;
when the feedback information of the heartbeat information is not received, the centralized control probe increases the monitoring value by 1;
when the monitoring value is larger than the monitoring threshold value, determining that the centralized control probe is in a disconnection state;
closing the communication connection between the centralized control probe and the centralized control platform;
and the centralized control probe initiates a connection establishment request with the centralized control platform to reconnect.
2. The method of claim 1, wherein before the centralized control probe periodically sends heartbeat information to the centralized control platform, the method further comprises:
the centralized control probe continuously establishes communication connection with the centralized control platform;
and the centralized control probe reports the running state of the centralized control probe to the centralized control platform.
3. The method of claim 2, wherein the centralized control probe continuously establishes a communication connection with the centralized control platform, comprising:
and the centralized control probe continuously establishes communication connection based on a safety socket layer protocol with the centralized control platform.
4. The method of claim 2, wherein reporting the operating state of the centralized control probe to the centralized control platform by the centralized control probe comprises:
enabling a heartbeat mechanism on the centralized control probe;
and reporting the running state of the centralized control probe to the centralized control platform based on the heartbeat mechanism.
5. The method of claim 1, further comprising:
and when the feedback information contains a disconnection instruction, the centralized control probe disconnects the communication connection with the centralized control platform.
6. The method of claim 1, further comprising:
and clearing the monitoring value when the feedback information of the heartbeat information is received.
7. The method of claim 1, wherein the centralized control probe initiating a connection establishment request with the centralized control platform for reconnection comprises:
the centralized control probe initiates a connection establishment request with the centralized control platform;
and when the connection establishment request is unsuccessful, sending the connection establishment request again.
8. The method of claim 7, wherein the centralized control probe initiates a connection establishment request with the centralized control platform for reconnection, further comprising:
and when the connection establishment request is successful, the centralized control probe reports the running state of the centralized control probe to the centralized control platform.
9. The utility model provides a centralized control probe disconnection reconnection device which characterized in that includes:
the monitoring module is used for sending heartbeat information to the centralized control platform at regular time by the centralized control probe;
the numerical value module is used for increasing the monitoring numerical value by 1 by the centralized control probe when the feedback information of the heartbeat information is not received;
the state module is used for determining that the centralized control probe is in a disconnection state when the monitoring value is greater than the monitoring threshold value;
the closing module is used for closing the communication connection between the centralized control probe and the centralized control platform;
and the reconnection module is used for initiating a connection establishment request with the centralized control platform by the centralized control probe so as to reconnect.
10. The apparatus of claim 9, further comprising:
the communication module is used for the centralized control probe to continuously establish communication connection with the centralized control platform;
and the reporting module is used for reporting the running state of the centralized control probe to the centralized control platform by the centralized control probe.
11. The utility model provides a centralized control probe disconnection reconnection system which characterized in that includes:
the centralized control probe is used for sending heartbeat information to the centralized control platform at regular time; when the feedback information of the heartbeat information is not received, increasing the monitoring value by 1; when the monitoring value is larger than the monitoring threshold value, determining that the centralized control probe is in a disconnection state; closing the communication connection between the centralized control probe and the centralized control platform; initiating a connection establishment request with the centralized control platform to reconnect;
and the centralized control platform is used for receiving the heartbeat information sent by the centralized control probe, generating feedback information to be returned to the centralized control probe, and connecting the heartbeat information with the centralized control probe again when the centralized control probe sends a connection establishment request.
CN202011188305.1A 2020-10-30 2020-10-30 Centralized control probe disconnection reconnection method, device and system Pending CN112311878A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011188305.1A CN112311878A (en) 2020-10-30 2020-10-30 Centralized control probe disconnection reconnection method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011188305.1A CN112311878A (en) 2020-10-30 2020-10-30 Centralized control probe disconnection reconnection method, device and system

Publications (1)

Publication Number Publication Date
CN112311878A true CN112311878A (en) 2021-02-02

Family

ID=74332433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011188305.1A Pending CN112311878A (en) 2020-10-30 2020-10-30 Centralized control probe disconnection reconnection method, device and system

Country Status (1)

Country Link
CN (1) CN112311878A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62128346A (en) * 1985-11-29 1987-06-10 Nec Corp Data transfer device
CN103166788A (en) * 2011-12-15 2013-06-19 北京天行网安信息技术有限责任公司 Centralized control management system
CN104243615A (en) * 2014-10-10 2014-12-24 天津中益信达科技发展有限公司 Central control method with intelligent heartbeat automatic log-on and offline reconnection functions
CN105281967A (en) * 2014-06-20 2016-01-27 北京神州泰岳软件股份有限公司 Data collection method and system
CN109660426A (en) * 2018-12-14 2019-04-19 泰康保险集团股份有限公司 Monitoring method and system, computer-readable medium and electronic equipment
CN111510492A (en) * 2020-04-15 2020-08-07 矩阵元技术(深圳)有限公司 Data processing method, device, equipment and system for realizing disconnection reconnection
CN111830911A (en) * 2019-04-18 2020-10-27 天津市元坤科技发展有限公司 School logistics control equipment based on Internet of things

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62128346A (en) * 1985-11-29 1987-06-10 Nec Corp Data transfer device
CN103166788A (en) * 2011-12-15 2013-06-19 北京天行网安信息技术有限责任公司 Centralized control management system
CN105281967A (en) * 2014-06-20 2016-01-27 北京神州泰岳软件股份有限公司 Data collection method and system
CN104243615A (en) * 2014-10-10 2014-12-24 天津中益信达科技发展有限公司 Central control method with intelligent heartbeat automatic log-on and offline reconnection functions
CN109660426A (en) * 2018-12-14 2019-04-19 泰康保险集团股份有限公司 Monitoring method and system, computer-readable medium and electronic equipment
CN111830911A (en) * 2019-04-18 2020-10-27 天津市元坤科技发展有限公司 School logistics control equipment based on Internet of things
CN111510492A (en) * 2020-04-15 2020-08-07 矩阵元技术(深圳)有限公司 Data processing method, device, equipment and system for realizing disconnection reconnection

Similar Documents

Publication Publication Date Title
CN111478974B (en) Network connection method and device, electronic equipment and readable storage medium
CN111654404B (en) Intelligent network card management and control method and device
CN111954240A (en) Network fault processing method and device and electronic equipment
CN108847974A (en) A kind of Mobile Online's alarm method and power grid warning system
US20060264241A1 (en) Base station log collection device, method for collecting logs of base station and computer program product
CN107436831A (en) Monitoring method and device for client server system
CN110896362B (en) Fault detection method and device
CN112751689A (en) Network connectivity detection method, monitoring server and monitoring agent device
CN112311878A (en) Centralized control probe disconnection reconnection method, device and system
CN114696888B (en) Port task processing method, device, equipment and medium of satellite measurement, operation and control system
CN112994934B (en) Data interaction method, device and system
CN115103005A (en) Request response method and device, electronic equipment and storage medium
CN112260903B (en) Link monitoring method and device
CN114244700A (en) Port processing method and device, electronic equipment and computer readable storage medium
CN115118762B (en) Session processing method, client and system
CN113347135A (en) Method and system for electronic data exchange
CN111722986A (en) Software performance monitoring method and device
CN112511556B (en) User authentication state monitoring method, device and system
CN114302438B (en) Method, device, equipment and storage medium for processing abnormality of network element
CN113676482B (en) Data transmission system and method and data transmission system and method based on double-layer SSL
CN113315833B (en) File transfer mode processing method and device
CN112445827B (en) Data security processing system, method and device in cloud office environment
CN118400421A (en) Real-time pushing method and system for external connection detection alarm information
CN113760635A (en) Method and device for determining connection abnormity, electronic equipment and storage medium
CN116366677A (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20210202

RJ01 Rejection of invention patent application after publication