CN111628915B - Network connection state real-time monitoring and management method and system of gateway equipment - Google Patents

Network connection state real-time monitoring and management method and system of gateway equipment Download PDF

Info

Publication number
CN111628915B
CN111628915B CN202010685937.2A CN202010685937A CN111628915B CN 111628915 B CN111628915 B CN 111628915B CN 202010685937 A CN202010685937 A CN 202010685937A CN 111628915 B CN111628915 B CN 111628915B
Authority
CN
China
Prior art keywords
platform
gateway device
network
gateway
connection
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
Application number
CN202010685937.2A
Other languages
Chinese (zh)
Other versions
CN111628915A (en
Inventor
李巍
杨旋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Anhui Huasuda Electronic Technology Co ltd
Original Assignee
Anhui Huasuda Electronic Technology 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 Anhui Huasuda Electronic Technology Co ltd filed Critical Anhui Huasuda Electronic Technology Co ltd
Priority to CN202010685937.2A priority Critical patent/CN111628915B/en
Publication of CN111628915A publication Critical patent/CN111628915A/en
Application granted granted Critical
Publication of CN111628915B publication Critical patent/CN111628915B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a real-time monitoring and managing method and a real-time monitoring and managing system for a network connection state of gateway equipment, which comprise the following steps: establishing a gateway equipment monitoring script, monitoring an interface of a server, and checking whether a new gateway equipment is accessed to the server; after detecting that a new gateway device is accessed to the server, activating a heartbeat message task, a data communication task and a system monitoring task based on the execution content of a gateway device monitoring script; if the DCT obtains a suspension instruction of the server through a Netcon interface, executing suspension operation and marking current network interruption; and if the DCT is not suspended through acquiring the suspension instruction of the server through the Netcon interface, marking the current network is abnormal. The HMT, the DCT and the SMT are arranged at the gateway equipment end, and the accessed server is subjected to real-time network state detection according to the server instruction obtained by the DCT, so that a good network environment is ensured to be provided between the gateway equipment and the server.

Description

Network connection state real-time monitoring and management method and system of gateway equipment
Technical Field
The present invention relates to the field of network status monitoring technologies, and in particular, to a method and a system for monitoring and managing a network connection status of a gateway device in real time.
Background
In the existing network communication process, due to the fact that technical consideration is not thorough or images of network environments are received, when communication between equipment and a server is unstable due to network connection, transmission data packet is lost, or network connection is directly interrupted, manual investigation and solution are needed, and workload of technicians is caused. Therefore, a technique for monitoring the connection status of a network, tracking the network fluctuation in time, and automatically recovering the interrupted network is needed to solve the above problems.
Disclosure of Invention
In order to solve the above-mentioned deficiencies in the prior art, an object of the present invention is to provide a method and a system for monitoring and managing a network connection status of a gateway device in real time, wherein an HMT, a DCT, and an SMT are installed in the gateway device, and a Platform command obtained by the DCT is used to perform real-time network status detection on an accessed server, so as to ensure a good network environment between the gateway device and the server.
The invention discloses a real-time monitoring and managing method for network connection state of gateway equipment, which comprises the following steps:
creating a gateway device monitoring script and monitoring an Interface of Platform of a server;
checking whether a new gateway device access server exists, and activating a heartbeat message task, a data communication task and a system monitoring task based on the execution content of a gateway device monitoring script after detecting that the new gateway device accesses Platform; setting a heartbeat message task as HMT, a data communication task as DCT and a system monitoring task as SMT.
As a further optimization of the above scheme, after detecting that a new gateway device accesses Platform, a DCT of the gateway device is detected:
if the DCT obtains a Platform suspension instruction through a Netcon Interface, executing suspension operation and marking current network interruption;
and if the DCT is not suspended through the Netcon Interface and does not acquire a suspension instruction of Platform, marking the current network as abnormal.
As a further optimization of the above scheme, the DCT transmits suspend operation information to the HMT after suspension:
if the HMT is suspended according to the suspension instruction when the suspension information of the DCT is acquired, stopping the gateway equipment from sending the heartbeat message HM to the Platform;
and if the HMT is not suspended according to the suspension instruction after the HMT acquires the suspension information of the DCT, setting the gateway equipment to continue sending the HM to the Platform.
As a further optimization of the above scheme, the gateway device sends HM to Platform according to the heartbeat sending period value t.value of the gateway device.
As a further optimization of the above scheme, the frequency at which the detection gateway device sends HM to Platform is:
if the gateway device sends the HM to successfully transmit to the Platform within the preset transmission frequency of M times, marking that the current network is normal;
if the gateway device fails to send the HM to transmit to the Platform within the preset transmission frequency of M times, transmitting the current state information to the SMT, and marking the current network to be abnormal.
As a further optimization of the above scheme, after the SMT acquires the state information that the HM sent by the HMT cannot transmit to Platform:
the HMT activates network recovery operation of the SMT, closes the connection between the gateway equipment and the Platform, and deletes the configuration of the gateway equipment to release the memory space;
the HMT activates the gateway device to reestablish the connection with the Platform;
if the gateway equipment is successfully reconnected to the Platform within the preset connection frequency of N times, marking that the current network is normally reconnected;
if the gateway device fails to reconnect to Platform within the preset connection frequency of N times, the current network interruption state is marked.
As a further optimization of the above scheme, the gateway device reconnection waiting period is set to T, and after T time elapses, the HMT activates the gateway device to retry connection with Platform.
As a further optimization of the above scheme, the gateway device fails to establish a connection with Platform within N preset connection frequencies,
the gateway device suspends all network services and performs connection with Platform;
if the gateway equipment is successfully reconnected to the Platform after suspending all network services, sending a network abnormity alarm to the Platform;
if the gateway device fails to reconnect to Platform after suspending all network traffic, the current network interruption state is marked.
As a further optimization of the above scheme, the process of transmitting information to the HMT by the DCT, the process of transmitting failure information to the SMT by the HM and the Platform, and the process of recovering the gateway device are recorded by using logs.
The invention also discloses a network connection state real-time monitoring and management system of the gateway equipment, which comprises the gateway equipment and the server and is characterized in that,
the server includes:
the Interface monitoring unit is used for creating a gateway equipment monitoring script and monitoring an Interface of Platform of the server;
the task activation unit is used for checking whether a new gateway device access server exists or not, and activating a working module of the gateway device based on the execution content of the gateway device monitoring script after detecting that the new gateway device accesses Platform;
and the state identification unit is used for identifying the network connection state of the gateway equipment terminal and the server.
As a further optimization of the above scheme, the operation module of the gateway device includes:
a data communication unit for establishing network connection and data communication between the gateway device and the server;
the heartbeat message unit is used for monitoring the network connection state of the gateway equipment and the server and periodically sending heartbeat messages to the server according to the configuration parameters of the read gateway equipment;
the system monitoring unit is used for monitoring the running state of the service between the gateway equipment and the server, trying to recover network connection when the network has a connection fault, and judging that the gateway equipment is in a network abnormal state if the network cannot be recovered within the limited network connection reestablishment times;
and the state alarm unit is used for sending the state alarm of the abnormal information of the gateway equipment connection server.
As further optimization of the scheme, a data communication unit is set as DCM, a heartbeat message unit is set as HMM, and a system monitoring unit is set as SMM.
As a further optimization of the above scheme, after detecting that a new gateway device accesses Platform, the interface monitoring unit detects DCM of the gateway device:
if the DCM obtains a Platform suspension instruction through a Netcon Interface, suspension operation is executed, and the state identification unit identifies current network interruption;
and if the DCM is not suspended through the Netcon Interface acquiring the suspension instruction of Platform, the state identification unit identifies the current network abnormality.
As a further optimization of the above scheme, the DCM transmits suspend operation information to the HMM after suspension:
if the obtained suspension information of the DCM is suspended according to the suspension instruction by the HMM, stopping the HMM of the gateway equipment from sending the heartbeat message HM to the Platform;
and if the obtained suspension information of the DCM is that the suspension is not suspended according to the suspension instruction by the HMM, setting the HMM of the gateway equipment to continuously send the HM to the Platform.
As a further optimization of the above scheme, HMM of the gateway device sends HM to Platform, and the HM is sent according to a heartbeat sending period value t.
As a further optimization of the above scheme, the HMM of the detection gateway device sends the HM to Platform frequency:
if the gateway device sends the HM to successfully transmit to the Platform within the preset transmission frequency of M times, the state identification unit identifies that the current network is normal;
if the gateway device fails to send the HM to transmit to Platform within the preset transmission frequency of M times, transmitting the current state information to SMM, and the state identification unit identifies the current network abnormality.
As a further optimization of the above scheme, after acquiring the state information that the HM sent by the HMM cannot transmit to Platform:
the HMM activates the network recovery operation of the SMM, closes the connection between the gateway device and the Platform, and deletes the configuration of the gateway device to release the memory space;
the HMM activates the gateway device to reestablish the connection with the Platform;
if the gateway device is successfully reconnected to the Platform within the preset connection frequency of N times, the state identification unit identifies that the current network is normally reconnected;
if the gateway device fails to reconnect to Platform within the preset connection frequency of N times, the state identification unit identifies the current network interruption state.
As a further optimization of the above scheme, the gateway device reconnection waiting period is set to T, and after T time elapses, the HMM activates the gateway device to retry connection with Platform.
As a further optimization of the above scheme, the gateway device fails to establish a connection with Platform within N preset connection frequencies,
the gateway device suspends all network services and performs connection with Platform;
if the gateway equipment is successfully reconnected to the Platform after suspending all network services, the state alarm unit sends a network abnormity alarm to the Platform;
if the gateway device fails to reconnect to Platform after suspending all network services, the state identification unit identifies the current network interruption state.
As a further optimization of the above scheme, the working module of the gateway device further includes a logging unit, configured to record a process of transmitting information from the DCM to the HMM, a process of transmitting failure information from the HM to the Platform to the SMM, and a process of recovering the gateway device again.
By adopting the technical scheme, compared with the prior art, the method and the system for monitoring and managing the network connection state of the gateway equipment in real time have the following technical effects:
1. according to the method for monitoring and managing the network connection state of the gateway equipment in real time, the heartbeat message task HMT, the data communication task DCT and the system monitoring task SMT are arranged on the gateway equipment, and the network connection state of the accessed server is monitored in real time according to the Platform instruction obtained by the DCT, so that a good network environment is ensured to be provided between the gateway equipment and the server.
2. In the method for monitoring and managing the network connection state of the gateway equipment in real time, the server is considered to actively close the network connection and belongs to controllable operation, so that after the network connection is closed, the DCT of the gateway equipment sends an operation instruction to the HMT, feeds back the operation instruction to actively close the network connection, and stops sending the HM to the server, thereby avoiding interference on network troubleshooting of the server.
3. According to the method for monitoring and managing the network connection state of the gateway equipment in real time, by setting the heartbeat cycle, the HM of the server is sent by the HMT according to the frequency of the heartbeat cycle, and the judgment of the network connection of the server and the gateway equipment by the image due to the fact that the HM is sent too fast or too slow is avoided.
4. According to the method for monitoring and managing the network connection state of the gateway equipment in real time, the SMT is arranged on the gateway equipment to recover the connection of the network under the abnormal state, and the stability of the network connection is enhanced.
5. The method for monitoring and managing the network connection state of the gateway equipment in real time also records the processes that the DCT transmits the suspension operation information to the HMT, the HM cannot transmit the state information to the Platform to the SMT and the reconnection of the gateway equipment is unsuccessful, adopts logs, and sends the process network abnormity alarm to the Platform, so that server management personnel can perform network abnormity troubleshooting of a system, and the risk of the system is reduced.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a schematic DCT flow chart of a real-time monitoring and managing method for network connection status of a gateway device according to the present invention;
fig. 2 is a schematic flow chart of an HMT of a method for monitoring and managing a network connection status of a gateway device in real time according to the present invention,
fig. 3 is a schematic diagram of an SMT flow of a method for monitoring and managing a network connection status of a gateway device in real time according to the present invention,
fig. 4 is a schematic flow chart of a method for monitoring and managing a network connection status of a gateway device in real time according to the present invention;
fig. 5 is a block diagram of a network connection status real-time monitoring and managing system of a gateway device according to the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 1 to 5, the present embodiment discloses a method for monitoring and managing a network connection state of a gateway device in real time, including:
s100, creating a gateway device monitoring script, monitoring an Interface of a Platform of a server, and checking whether a new gateway device is accessed to the server;
s200, after detecting that a new gateway device is accessed to Platform, activating a heartbeat message task, a data communication task and a system monitoring task based on the execution content of a gateway device monitoring script; setting a heartbeat message task as HMT, a data communication task as DCT and a system monitoring task as SMT; specifically, the heartbeat message task HMT, the data communication task DCT and the system monitoring task SMT are arranged at the gateway equipment end, so that the accessed server can be monitored for the network state in real time, a good network environment is ensured between the gateway equipment and the server, and the condition of packet loss caused by unstable network state of the gateway equipment is conveniently analyzed;
s300, if the DCT obtains a Platform suspension instruction through a Netcon Interface, executing suspension operation and marking current network interruption;
specifically, the DCT of the invention is mainly used for establishing network connection between the gateway device and the server and carrying out communication, and when the network connection is established, the HMT is activated and the HM is transmitted to the server;
when the server actively disconnects the network, calling Netcon Interface awareness gateway equipment in advance, and after the gateway equipment acquires the prompt of the server, suspending the network and releasing the memory resource; the HMT stops sending the HM, the task process of the DCT is interrupted, and the server waits for sending an instruction for reconnecting with the equipment;
specifically, the HM format of the present invention is shown in Table 1:
Figure GDA0003493588310000061
Figure GDA0003493588310000071
TABLE 1 Heartbeat Message (HM) Format
Wherein, the device model field: informing a server of the concrete model of the current gateway;
device SN code domain: the server is used for marking the specific equipment number of the server and determining the specific geographic position by combining an equipment data table in a server database;
the heart cycle domain: the server is used for marking the normal heartbeat message sending cycle time of the server, and judging whether the gateway equipment is on line currently or not according to the information and the actual heartbeat message receiving interval, and the judgment can be identified by the server;
network quality domain: the gateway equipment is used for marking the network quality condition between the server and the current gateway equipment and can be identified by the server;
network connection time domain: the method is used for marking the latest connection establishment time of the server and the current gateway equipment and is used for counting the online time of the equipment by the server.
S400, if the DCT is not suspended through the Netcon Interface to obtain the suspension instruction of the Platform, marking the current network is abnormal.
Specifically, after the DCT is suspended, the HMT transmits the suspension operation information to the HMT:
s310, if the HMT obtains the suspension information of the DCT and is suspended according to the suspension instruction, stopping the gateway equipment from sending the heartbeat message HM to the Platform; more specifically, the network connection is actively closed based on the server, which belongs to controllable operation, so that after the network connection is closed, the DCT of the gateway equipment sends an operation instruction to the HMT, feeds back the actively closed network connection, and stops sending the HM to the server, thereby avoiding interference on network troubleshooting of the server;
s410, if the suspension information of the HMT in the DCT is acquired and is suspended according to the non-suspension instruction, setting the gateway equipment to continue sending the HM to the Platform; more specifically, based on the situation that the gateway device and the server are disconnected from the network abnormally, the network connection situation needs to be further analyzed, so that the HMT of the gateway device continuously sends the HM;
specifically, the gateway device sends the HM to Platform according to a heartbeat sending period value t.value of the gateway device; the value of t.value is preferably set to 2min in this embodiment; and the HM of the server is sent according to the frequency by the HMT through the set value T.value of the heartbeat cycle number, so that the judgment of the network connection of the server and the gateway equipment by the image due to the too fast or too slow sending of the HM is avoided.
Specifically, the frequency of sending HM to Platform by the detection gateway device is:
s411, if the gateway device sends the HM to successfully transmit to the Platform within the preset transmission frequency of M times, the current network is marked to be normal;
s412, if the transmission of the HM from the gateway device to the Platform fails within the preset transmission frequency M, transmitting the current state information to the SMT, and marking the current network abnormality.
Specifically, after the SMT acquires the state information that the HM sent by the HMT cannot transmit to Platform:
s4121, the HMT activates network recovery operation of the SMT, closes the connection between the gateway equipment and Platform, and deletes the configuration of the gateway equipment to release the memory space; more specifically, the invention monitors the process of transmitting HM to Platform by HMT of the gateway device, and restarts the service for the transmission failure condition, namely, the connection between the gateway device and the server is forcibly closed by activating SMT;
s4122, the HMT activates the gateway device to reestablish the connection with the Platform;
s4123, if the gateway device is successfully reconnected to the Platform within the preset connection frequency of N times, marking that the current network is normally reconnected;
s4124, if the gateway device fails to reconnect to Platform within the preset connection frequency N times, the current network interruption status is marked.
More specifically, the invention performs network connection restart service through the SMT set in the gateway device, and is used for solving the problem that when the HMT sending HM of the gateway device cannot be transmitted to Platform; in addition, the connection frequency N is preset for the reconnection process, when the gateway equipment fails to reconnect to the Platform, network reconnection is carried out again after a buffering time period, and if network reconnection is successfully carried out within preset N times, the network reconnection is successful; if the reconnection of the network is not completed for more than preset N times, marking the network interruption state and needing deep processing;
the invention activates SMT for the gateway equipment HMT, monitors the network reconnection of the gateway equipment and the server, allows the gateway equipment to be successfully reconnected within the reconnection frequency threshold value, indicates that the network reconnection is normal, enhances the reasonable inclusiveness of the invention on the actual network state monitoring, and enhances the accuracy of the invention.
Specifically, setting a reconnection waiting period of the gateway device as T, and after T time, activating the gateway device by the HMT to retry connection with Platform; preferably, the preset reconnection frequency N of the invention is 3, and the buffering time period T is 1 min;
specifically, the gateway device fails to establish a connection with the Platform within N times of the preset connection frequency,
s41241, the gateway device suspends all network services and performs connection with Platform; more specifically, after the operation of restarting the network connection service of the gateway device based on SMT fails, all network services of the gateway device are set to be suspended so as to provide an optimal connection environment between the gateway device and the server;
s41242, if the gateway device reconnects to the Platform successfully after suspending all network services, sending a network anomaly alarm to the Platform;
s41243, if the gateway device fails to reconnect to Platform after suspending all network traffic, the current network outage status is marked.
More specifically, the invention also monitors the process of the operation failure of the SMT restarting network connection service, and after more than 3 times of network reconnection failures, the invention ensures that the gateway equipment has the best network environment when reestablishing network connection with the server by suspending all network services of the gateway equipment so as to ensure the stability of the network state; it should be particularly noted that, after suspending all network services and successfully reconnecting the gateway device to the Platform, the present invention sends a process network anomaly alarm to the Platform, so that a server administrator can perform network anomaly troubleshooting of the system.
Specifically, the process of transmitting information from the DCT to the HMT, the process of transmitting failure information from the HM to the Platform to the SMT and the process of recovering the gateway device are recorded by adopting logs; by recording the operation records of the process, the server management personnel can call the transmission records of any process and perform network state fault troubleshooting according to the log records, and the effect is obvious.
The invention also discloses a network connection state real-time monitoring and management system of the gateway equipment, which comprises the gateway equipment and a server, wherein the server comprises:
the Interface monitoring unit 50 is configured to create a gateway device monitoring script and monitor an Interface of a Platform server;
a task activating unit 60, configured to check whether a new gateway device accesses the server, and activate a working module of the gateway device based on execution content of a gateway device monitoring script after detecting that the new gateway device accesses the Platform;
and a state identification unit 70, configured to identify a network connection state between the gateway device side and the server.
Specifically, the working module of the gateway device includes:
a data communication unit 10 for establishing network connection to the gateway device and the server and performing data communication;
a heartbeat message unit 20, configured to monitor a network connection status between the gateway device and the server, and periodically send a heartbeat message to the server according to the configuration parameter read from the gateway device;
the system monitoring unit 30 is configured to monitor an operation state of a service between the gateway device and the server, attempt to recover a network connection when a connection failure occurs in the network, and determine that the gateway device is in a network abnormal state if the network cannot be recovered within a limited number of times for reestablishing the network connection;
the log recording unit 40 is configured to record process information that the DCM of the gateway device transmits information to the HMM, the HM transmits failure information to the Platform to the SMM, and the gateway device recovers again;
a state alarm unit 80, configured to send a state alarm of abnormal information of the gateway device connection server; more specifically, the alarm mode adopted by the invention can inform the user through the contact information bound with the server by the administrator, such as adopting the forms of short messages, mails and the like to alarm the state.
Specifically, the data communication unit 10 is set as DCM, the heartbeat message unit 20 is set as HMM, and the system monitoring unit 30 is set as SMM.
Specifically, after detecting that a new gateway device accesses Platform, the interface monitoring unit 50 detects DCM of the gateway device:
if the DCM obtains a suspension instruction of Platform through the Netconn Interface, the suspension operation is executed, and the state identification unit 70 identifies the current network interruption;
if the DCM is not suspended through the Netconn Interface to obtain the suspend instruction of Platform, the state identification unit 70 identifies the current network is abnormal.
Specifically, after the DCM suspends, the suspend operation information is transmitted to the HMM:
if the obtained suspension information of the DCM is suspended according to the suspension instruction by the HMM, stopping the HMM of the gateway equipment from sending the heartbeat message HM to the Platform;
and if the obtained suspension information of the DCM is that the suspension is not suspended according to the suspension instruction by the HMM, setting the HMM of the gateway equipment to continuously send the HM to the Platform.
Specifically, HMM sending HM to Platform of the gateway device is sent according to a heartbeat sending period value t.
Specifically, the HMM of the detection gateway device sends the frequency of HM to Platform:
if within the preset transmission frequency M times, the gateway device sends the HM and successfully transmits the HM to Platform, the state identification unit 70 identifies that the current network is normal;
if the gateway device fails to send HM to Platform within the preset transmission frequency M times, the current state information is transmitted to SMM, and the state identification unit 70 identifies the current network anomaly.
More specifically, the invention also enhances the detection of the frequency from the HMM of the gateway device to the Platform, monitors the effective times of the transmission from the HMM to the Platform by presetting a transmission frequency, and transmits and sends the HMM again after the buffer time period after the transmission and sending of the HMM fails, wherein within M times of the preset value, the successful transmission of the HMM indicates that the network is normal; if the HM is not successfully transmitted for more than M times of the preset value, the network is marked to be abnormal and further processing is needed; preferably, the transmission frequency of the invention is set to 3 times, and the buffering time period is 1 min;
more specifically, HMT may be used to indicate an online status of the gateway device to the server, indicate that the gateway device is disconnected if the server is greater than 2 times t.value and cannot accept HM, and preset transmission frequency is used to detect a current network environment condition, as shown in table 2:
number of retransmissions Network stability (%)
0 100
1 80
2 60
3 30
... 0
Table 2 network quality description
The invention sets a transmission frequency for buffering by sending HM to Platform by HMM of the gateway equipment, allows the gateway equipment to be successfully connected within the threshold value of the transmission frequency, namely indicates that the network connection is normal, effectively enhances the fault tolerance of the technology of the invention and has good effect.
Specifically, after acquiring the state information that the HM sent by the HMM cannot transmit to Platform:
the HMM activates the network recovery operation of the SMM, closes the connection between the gateway device and the Platform, and deletes the configuration of the gateway device to release the memory space;
the HMM activates the gateway device to reestablish the connection with the Platform;
if the gateway device is successfully reconnected to the Platform within the preset connection frequency of N times, the state identification unit 70 identifies that the current network is normally reconnected;
if the gateway device fails to reconnect to Platform within the preset connection frequency N times, the state identification unit 70 identifies the current network interruption state.
Specifically, the gateway device reconnection waiting period is set to T, and after T time elapses, the HMM activates the gateway device to retry connection with Platform.
Specifically, the gateway device fails to establish a connection with the Platform within N times of the preset connection frequency,
the gateway device suspends all network services and performs connection with Platform;
if the gateway device is successfully reconnected to the Platform after suspending all network services, the state alarm unit 80 sends a network anomaly alarm to the Platform;
if the gateway device fails to reconnect to Platform after suspending all network services, the state identification unit 70 identifies the current network interruption state.
Specifically, the invention discloses a real-time monitoring and managing system of the network connection state of the gateway device, and specifically constructs a data communication unit 10, a heartbeat message unit 20, a system monitoring unit 30 and a log recording unit 40; calling the task activation unit 60 to monitor the newly accessed device according to the monitoring result of the interface unit 50;
the method comprises the steps that a data communication unit 10 is adopted, whether network connection between Netcon Interface monitoring gateway equipment and a server is in a normal communication state or not is called, if monitoring is abnormal, a heartbeat message unit 20 is activated through the data communication unit 10, so that the heartbeat message unit 20 continuously sends heartbeat messages according to a message sending period, the running state of the gateway equipment is monitored and obtained, information is transmitted to the server, and whether a current network is available or not and the network stability are judged;
if the heartbeat message unit 20 cannot transmit the heartbeat message to the server within the limited number of times, the system monitoring unit 30 is activated to restart the service for establishing the network connection, the system monitoring unit 30 resets the connection between the gateway device and the server, and reestablishes the connection, and if the connection cannot be established yet within the preset number of times, the system monitoring unit 30 suspends all network services of the gateway device so as to provide an optimal network environment for establishing the connection with the network;
the invention also uses the log recording unit 40 to record all network abnormal conditions of the gateway device and the server in the network connection process, and performs log recording, and the gateway device sends network abnormal alarm information to the server after the network connection is recovered for reminding the manager to perform system troubleshooting. The invention discloses a real-time monitoring and managing system for the network connection state of gateway equipment, which realizes the real-time monitoring of the network state, and ensures the network effectiveness by the gateway equipment retrying the automatic starting recovery mechanism to recover the connection with a server when the network connection is abnormal.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Other technical features than those described in the specification are known to those skilled in the art, and are not described herein in detail in order to highlight the innovative features of the present invention.

Claims (14)

1. A network connection state real-time monitoring and management method of gateway equipment is characterized by comprising the following steps:
creating a gateway device monitoring script and monitoring an Interface of Platform of a server;
checking whether a new gateway device access server exists, and activating a heartbeat message task, a data communication task and a system monitoring task based on the execution content of a gateway device monitoring script after detecting that the new gateway device accesses Platform; setting a heartbeat message task as HMT, a data communication task as DCT and a system monitoring task as SMT;
after detecting that a new gateway device accesses Platform, detecting a DCT of the gateway device:
if the DCT obtains a suspension instruction of the Platform through the Interface, executing suspension operation and marking current network interruption;
if the DCT is not suspended through the Interface and does not acquire a suspension instruction of Platform, marking the current network as abnormal;
the DCT, after suspending, transmits suspension operation information to the HMT:
if the HMT is suspended according to the suspension instruction when the suspension information of the DCT is acquired, stopping the gateway equipment from sending the heartbeat message HM to the Platform;
and if the HMT is not suspended according to the suspension instruction after the HMT acquires the suspension information of the DCT, setting the gateway equipment to continue sending the HM to the Platform.
2. The method as claimed in claim 1, wherein the gateway device sends HM to Platform according to a heartbeat sending period value t.value of the gateway device.
3. The method according to claim 1, wherein the frequency of transmitting HM to Platform by the gateway device is detected as follows:
if the gateway device sends the HM to successfully transmit to the Platform within the preset transmission frequency of M times, marking that the current network is normal;
if the gateway device fails to send the HM to transmit to the Platform within the preset transmission frequency of M times, transmitting the current state information to the SMT, and marking the current network to be abnormal.
4. The method according to claim 3, wherein the SMT, after obtaining the state information that the HM sent by the HMT cannot transmit to Platform, is configured to:
the HMT activates network recovery operation of the SMT, closes the connection between the gateway equipment and the Platform, and deletes the configuration of the gateway equipment to release the memory space;
the HMT activates the gateway device to reestablish the connection with the Platform;
if the gateway equipment is successfully reconnected to the Platform within the preset connection frequency of N times, marking that the current network is normally reconnected;
if the gateway device fails to reconnect to Platform within the preset connection frequency of N times, the current network interruption state is marked.
5. The method as claimed in claim 4, wherein the gateway reconnection waiting period is set to T, and the HMT activates the gateway to retry connection with Platform after T time.
6. The method as claimed in claim 4, wherein the gateway device fails to establish connection with Platform within N times of preset connection frequency,
the gateway device suspends all network services and performs connection with Platform;
if the gateway equipment is successfully reconnected to the Platform after suspending all network services, sending a network abnormity alarm to the Platform;
if the gateway device fails to reconnect to Platform after suspending all network traffic, the current network interruption state is marked.
7. The method as claimed in claim 6, wherein the process of DCT transferring information to HMT, the process of transmitting failure information of HM to Platform to SMT and the process of gateway device recovering are recorded by logs.
8. A network connection state real-time monitoring and management system of a gateway device comprises:
the Interface monitoring unit is used for creating a gateway equipment monitoring script and monitoring an Interface of Platform of the server;
the task activation unit is used for checking whether a new gateway device access server exists or not, and activating a working module of the gateway device based on the execution content of the gateway device monitoring script after detecting that the new gateway device accesses Platform;
the state identification unit is used for identifying the network connection state of the gateway equipment terminal and the server;
the working module of the gateway device comprises:
a data communication unit for establishing network connection and data communication between the gateway device and the server;
the heartbeat message unit is used for monitoring the network connection state of the gateway equipment and the server and periodically sending heartbeat messages to the server according to the configuration parameters of the read gateway equipment;
the system monitoring unit is used for monitoring the running state of the service between the gateway equipment and the server, trying to recover network connection when the network has a connection fault, and judging that the gateway equipment is in a network abnormal state if the network cannot be recovered within the limited network connection reestablishment times;
the state alarm unit is used for sending a state alarm of abnormal information of the gateway equipment connection server;
after detecting that a new gateway device accesses Platform, the interface monitoring unit detects a data communication unit DCM of the gateway device:
if the DCM obtains a Platform suspension instruction through the Interface, suspension operation is executed, and the state identification unit identifies current network interruption;
if the DCM is not suspended through the Interface acquiring a suspension instruction of Platform, the state identification unit identifies the current network abnormality;
after the DCM is suspended, transmitting the suspension operation information to a heartbeat message unit HMM:
if the obtained suspension information of the DCM is suspended according to the suspension instruction by the HMM, stopping the HMM of the gateway equipment from sending the heartbeat message HM to the Platform;
and if the obtained suspension information of the DCM is that the suspension is not suspended according to the suspension instruction by the HMM, setting the HMM of the gateway equipment to continuously send the HM to the Platform.
9. The system according to claim 8, wherein the HMM of the gateway device sends HM to Platform according to a heartbeat sending cycle value t.
10. The system according to claim 8, wherein the frequency of sending HM to Platform by HMM of the gateway device is detected as:
if the gateway device sends the HM to successfully transmit to the Platform within the preset transmission frequency of M times, the state identification unit identifies that the current network is normal;
if the transmission of the HM from the gateway device to the Platform fails within the preset transmission frequency M, transmitting the current state information to a system monitoring unit SMM, and identifying the current network abnormality by a state identification unit.
11. The system according to claim 10, wherein after obtaining the state information that the HM sent by the HMM cannot transmit to Platform, the SMM:
the HMM activates the network recovery operation of the SMM, closes the connection between the gateway device and the Platform, and deletes the configuration of the gateway device to release the memory space;
the HMM activates the gateway device to reestablish the connection with the Platform;
if the gateway device is successfully reconnected to the Platform within the preset connection frequency of N times, the state identification unit identifies that the current network is normally reconnected;
if the gateway device fails to reconnect to Platform within the preset connection frequency of N times, the state identification unit identifies the current network interruption state.
12. The system according to claim 11, wherein the gateway reconnection waiting period is set to T, and after T time elapses, the HMM activates the gateway to retry connection with Platform.
13. The system according to claim 11, wherein the gateway device fails to establish connection with Platform within N times of preset connection frequency,
the gateway device suspends all network services and performs connection with Platform;
if the gateway equipment is successfully reconnected to the Platform after suspending all network services, the state alarm unit sends a network abnormity alarm to the Platform;
if the gateway device fails to reconnect to Platform after suspending all network services, the state identification unit identifies the current network interruption state.
14. The system according to claim 13, wherein the working module of the gateway device further comprises a log recording unit, which is configured to record a procedure of transmitting information from DCM to HMM, a procedure of transmitting failure information from HM to Platform to SMM, and a procedure of recovering the gateway device.
CN202010685937.2A 2020-07-16 2020-07-16 Network connection state real-time monitoring and management method and system of gateway equipment Active CN111628915B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010685937.2A CN111628915B (en) 2020-07-16 2020-07-16 Network connection state real-time monitoring and management method and system of gateway equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010685937.2A CN111628915B (en) 2020-07-16 2020-07-16 Network connection state real-time monitoring and management method and system of gateway equipment

Publications (2)

Publication Number Publication Date
CN111628915A CN111628915A (en) 2020-09-04
CN111628915B true CN111628915B (en) 2022-03-25

Family

ID=72260442

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010685937.2A Active CN111628915B (en) 2020-07-16 2020-07-16 Network connection state real-time monitoring and management method and system of gateway equipment

Country Status (1)

Country Link
CN (1) CN111628915B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113341833A (en) * 2021-06-22 2021-09-03 天津航通科技有限公司 Acquisition and transmission method for operating state data of ground equipment of airport apron

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002095580A1 (en) * 2001-05-23 2002-11-28 Tekelec Methods and systems for automatically configuring network monitoring system
WO2010025674A1 (en) * 2008-09-03 2010-03-11 中兴通讯股份有限公司 Method and apparatus for monitoring operating status of node in short message service center
CN108667742A (en) * 2018-08-15 2018-10-16 南京国电南自轨道交通工程有限公司 A kind of comprehensive monitoring system Network Load Balance gateway communication method
CN110048903A (en) * 2019-03-12 2019-07-23 视联动力信息技术股份有限公司 A kind of association turns gateway status monitoring method and device

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7418498B2 (en) * 2001-01-24 2008-08-26 Telecommunication Systems, Inc. System and method to publish information from servers to remote monitor devices
US7693981B2 (en) * 2001-01-24 2010-04-06 Telecommunication Systems, Inc. System and method to publish information from servers to remote monitor devices
CN1996884A (en) * 2006-11-30 2007-07-11 华为技术有限公司 Expansion method and communication device of communication device
CN101043388A (en) * 2007-03-27 2007-09-26 杭州华为三康技术有限公司 Method, equipment and system for detecting whether web access user terminal is on line
CN102164063A (en) * 2011-03-16 2011-08-24 烽火通信科技股份有限公司 Home gateway device and system with security signal processing function
CN102622829B (en) * 2012-03-28 2014-03-05 中国民航大学 Service integration settlement system for ground power supply and air conditioner set of civil airport
CN102710457B (en) * 2012-05-07 2015-11-25 浙江宇视科技有限公司 A kind of N+1 backup method of cross-network segment and device
CN104158684B (en) * 2014-08-15 2017-04-05 深圳市蜂联科技有限公司 Gateway device status tracking based on open type intelligent Networking Platform
US10212045B2 (en) * 2015-06-30 2019-02-19 Vmware, Inc. Method and system for testing and analyzing management servers
CN105262608B (en) * 2015-09-01 2018-09-18 北京百度网讯科技有限公司 Monitoring method and device for network service
US9794292B2 (en) * 2015-10-26 2017-10-17 Amazon Technologies, Inc. Providing fine-grained access remote command execution for virtual machine instances in a distributed computing environment
CN209402536U (en) * 2017-09-26 2019-09-17 北京国通创安报警网络技术有限公司 A kind of intelligence access gateway
US10231085B1 (en) * 2017-09-30 2019-03-12 Oracle International Corporation Scaling out moving objects for geo-fence proximity determination
CN109344053B (en) * 2018-09-03 2023-05-30 平安科技(深圳)有限公司 Interface coverage test method, system, computer device and storage medium
CN109495584B (en) * 2018-12-18 2022-03-25 浩云科技股份有限公司 Internet of things equipment access method, device, equipment and medium
CN110224972A (en) * 2019-04-19 2019-09-10 凯通科技股份有限公司 One kind is towards multi-protocols polymorphic type equipment access system, method and device
CN209962246U (en) * 2019-07-30 2020-01-17 安徽华速达电子科技有限公司 Box type intelligent control equipment based on optical port communication and network monitoring system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002095580A1 (en) * 2001-05-23 2002-11-28 Tekelec Methods and systems for automatically configuring network monitoring system
WO2010025674A1 (en) * 2008-09-03 2010-03-11 中兴通讯股份有限公司 Method and apparatus for monitoring operating status of node in short message service center
CN108667742A (en) * 2018-08-15 2018-10-16 南京国电南自轨道交通工程有限公司 A kind of comprehensive monitoring system Network Load Balance gateway communication method
CN110048903A (en) * 2019-03-12 2019-07-23 视联动力信息技术股份有限公司 A kind of association turns gateway status monitoring method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
智能家居系统中网关与服务器连接方案设计;刘新星等;《电子设计工程》;20160220(第04期);全文 *

Also Published As

Publication number Publication date
CN111628915A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
US10419273B2 (en) Stand-by controller assisted failover
EP1890427B1 (en) A system and method for monitoring the device port state
CN111628915B (en) Network connection state real-time monitoring and management method and system of gateway equipment
US10721135B1 (en) Edge computing system for monitoring and maintaining data center operations
JP5716641B2 (en) Safety confirmation system and safety confirmation method
CN107454184B (en) Method for establishing stable network connection between Android client and server
JP2016066303A (en) Server device, redundant configuration server system, information taking-over program and information taking-over method
CN111181763A (en) Network fault reporting method and device
JP3779121B2 (en) Data transmission system
CN117076229A (en) Data backup checking method and device and electronic equipment
JP5050014B2 (en) Network monitoring system
JP5240825B2 (en) Security system
CN111356017B (en) Video monitoring network equipment keep-alive method and device
CN102868730A (en) Method and system for monitoring running states of elevator
CN107864057B (en) Online automatic checking and alarming method based on networking state
CN113905055A (en) Method, device, equipment and readable medium for synchronous data transmission between BMCs
CN108259322B (en) Intercom instant access method and device
JP2007267099A (en) Method and device for managing base station
CN117938628A (en) Remote monitoring service downtime method
JP2536449B2 (en) Trace data collection method for fault location investigation in packet communication network
CN114531485A (en) Data transmission method, system and corresponding equipment and storage medium
JP3574058B2 (en) Communication device monitoring control method and association refresh system device
JP3641525B2 (en) Analyzer monitoring system
CN115426281A (en) Application state monitoring method and device, electronic equipment and storage medium
JP2008219359A (en) Network monitoring system

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
GR01 Patent grant
GR01 Patent grant