CN106230658B - A kind of method and apparatus monitoring the network equipment - Google Patents

A kind of method and apparatus monitoring the network equipment Download PDF

Info

Publication number
CN106230658B
CN106230658B CN201610591223.9A CN201610591223A CN106230658B CN 106230658 B CN106230658 B CN 106230658B CN 201610591223 A CN201610591223 A CN 201610591223A CN 106230658 B CN106230658 B CN 106230658B
Authority
CN
China
Prior art keywords
monitored device
time
monitoring
abnormal
receiving time
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
CN201610591223.9A
Other languages
Chinese (zh)
Other versions
CN106230658A (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.)
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 CN201610591223.9A priority Critical patent/CN106230658B/en
Publication of CN106230658A publication Critical patent/CN106230658A/en
Application granted granted Critical
Publication of CN106230658B publication Critical patent/CN106230658B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications

Landscapes

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

Abstract

The application provides a kind of method and apparatus for monitoring the network equipment, which comprises sends Status Enquiry Packet to monitored device, identification information corresponding with the monitored device will be carried in Status Enquiry Packet;The sending time of Status Enquiry Packet is corresponding with the identification information to be saved in monitoring table;After the condition responsive message for receiving monitored device return, according to the identification information that condition responsive message carries, the receiving time of condition responsive message is saved in monitoring table;The monitoring table is traversed according to the preset traversal period, whether detect corresponding monitored device based on the sending time saved in monitoring table and receiving time abnormal;When determining monitored device exception, Status Enquiry Packet is sent to abnormal monitored device again within this monitoring period.Using the embodiment of the present invention, abnormal monitored device is detected again within this monitoring period, to find that the abnormal of monitored device ensures network equipment control real-time with this in time.

Description

A kind of method and apparatus monitoring the network equipment
Technical field
This application involves field of communication technology more particularly to a kind of method and apparatus for monitoring the network equipment.
Background technique
The network equipment is monitored, it will be appreciated that the operating status of the network equipment, as the connection status of the network equipment is No normal, whether chain-circuit time delay is in preset threshold value etc..If it find that unit exception, can pass through sound alarm or mail Alarm notification administrator is handled, so that Logistics networks communication efficiently carries out.
Currently, for the real-time for ensuring the network equipment monitoring monitoring period can be shortened, or use parallel form pair The network equipment is monitored, but can bring huge processing pressure to monitoring device in this way.Therefore, how to ensure the network equipment The process resource of monitoring device is saved while control real-time again, it has also become urgent problem to be solved at present.
Summary of the invention
In view of this, the application provides a kind of method and apparatus for monitoring the network equipment, to solve traditional monitoring network The problem of real-time present in the method for equipment is poor, occupies excessive Installed System Memory and resource.
According to the embodiment of the present application in a first aspect, providing a kind of method for monitoring the network equipment, which comprises
Status Enquiry Packet is sent to monitored device, is carried and the monitored device in the Status Enquiry Packet Corresponding identification information;
It is saved in the sending time of the Status Enquiry Packet is corresponding with the identification information in monitoring table;
After receiving the condition responsive message that the monitored device returns, carried according to the condition responsive message The receiving time of the condition responsive message is saved in the monitoring table by identification information;
The monitoring table is traversed according to the preset traversal period, based on the sending time and reception saved in the monitoring table Whether the time detects corresponding monitored device abnormal;
When determining the monitored device exception, state is sent to abnormal monitored device again within this monitoring period Request message.
According to the second aspect of the embodiment of the present application, a kind of device for monitoring the network equipment is provided, described device includes:
First transmission unit carries in the Status Enquiry Packet for sending Status Enquiry Packet to monitored device There is identification information corresponding with the monitored device;
First storage unit, for being saved in the sending time of the Status Enquiry Packet is corresponding with the identification information It monitors in table;
Second storage unit, for after receiving the condition responsive message that the monitored device returns, according to described The identification information that condition responsive message carries, the receiving time of the condition responsive message is saved in the monitoring table;
Detection unit, for when according to the traversal monitoring table of preset traversal period, based on being protected in the monitoring table Whether the sending time and receiving time deposited detect corresponding monitored device abnormal;
Second transmission unit, for when determining the monitored device exception, again to exception within this monitoring period Monitored device sends Status Enquiry Packet.
In the embodiment of the present application, monitoring device can be according to sending time and the receiving time detection pair of Status Enquiry Packet Whether the monitored device answered is abnormal, when determining monitored device exception, is supervised again to abnormal within this monitoring period It controls equipment and sends Status Enquiry Packet.It, can be within this monitoring period again to exception using technical solution provided by the present application Monitored device is detected, even if in the monitoring period that setting is relatively long, can also find the exception of monitored device in time, So as under the premise of saving monitoring device process resource, it is ensured that the real-time of network equipment monitoring.
Detailed description of the invention
Fig. 1 is a kind of embodiment flow chart of the method for monitoring network equipment shown in one exemplary embodiment of the application;
Fig. 2 be a kind of shown in one exemplary embodiment of the application based on the sending time and reception that are saved in monitoring table when Between detect corresponding monitored device whether Yi Chang embodiment flow chart;
Fig. 3 is another based on the sending time and reception saved in monitoring table shown in one exemplary embodiment of the application Time detect corresponding monitored device whether Yi Chang embodiment flow chart;
Fig. 4 is a kind of for monitoring a kind of hardware knot of the device of the network equipment shown in one exemplary embodiment of the application Composition;
Fig. 5 is a kind of block diagram of the device of monitoring network equipment shown in one exemplary embodiment of the application;
Fig. 6 is the frame of detection unit in a kind of device of monitoring network equipment shown in one exemplary embodiment of the application Figure.
Specific embodiment
Technical solution in embodiment in order to enable those skilled in the art to better understand the present invention will combine attached here Embodiment is described in detail in figure.
Realize that the way for monitoring multiple network equipments is using polling mode or parallel multithreading under normal conditions. Wherein, it using polling mode, needs to preset a monitoring period, if it is desired to which strong real-time a bit, can shorten the monitoring period; If it is intended to the system of saving and Internet resources, it can extension detection cycle appropriate.Meanwhile it being needed within each monitoring period really Which platform monitored device is the monitoring sequence of fixed all monitored devices, first detect with determination, which platform monitored device detected afterwards, with Guarantee in the same period, each monitored device, which is monitored, to be arrived.It, will but if too short using which monitoring period Huge processing pressure can be brought to monitoring device;If the monitoring period is too long, the real-time of monitoring will affect.Using parallel Multithreading, for every network equipment require open a thread, for executing task;One communication socket Socket, for communicating.But which is in the case where more monitored devices, it may be desirable to a large amount of thread and communication set Word socket is met, to occupy excessive Installed System Memory and resource.
In view of the above-mentioned problems, this application provides a kind of method and apparatus for monitoring the network equipment.
It is a kind of embodiment stream of the method for monitoring network equipment shown in one exemplary embodiment of the application with reference to Fig. 1 The method of Cheng Tu, the monitoring network equipment are applied in monitoring device, which can be router, three-tier switch The equal network equipments, naturally it is also possible to be PC machine, server etc., there is no special restriction on this by the application.The monitoring network equipment Method may comprise steps of:
Step 101: sending Status Enquiry Packet to monitored device, carry in the Status Enquiry Packet and set with monitored Standby corresponding identification information.
Monitored device can be the network equipments such as router, three-tier switch in the present embodiment.Administrator presets The period is monitored, and sets monitoring sequence for all monitored devices, it, can be suitable according to preset monitoring within a monitoring period Sequence successively sends Status Enquiry Packet to each monitored device.
In the present embodiment, monitoring device can based on ICMP (Internet Control Message Protocol, Internet Control Message agreement) agreement constructs the Status Enquiry Packet, it is of course also possible to use other agreements construct the shape State request message, the application are not particularly limited this.The Status Enquiry Packet carries identification information, the identification information with Monitored device is corresponding, and for characterizing the monitored device, the identification information can be the marker based on number mark. For example, 1 can be set by the identification information of monitored device A, sets 2 etc. for the identification information of monitored device B.
Step 102: being saved in the sending time of the Status Enquiry Packet is corresponding with identification information in monitoring table.
In the present embodiment, which is used to record receiving and sending messages for each monitored device state message, such as: state is asked Ask sending time, the receiving time of condition responsive message etc. of message.As shown in table 1, it is assumed that monitoring device 8:00:00 to Monitored device A sends Status Enquiry Packet, then monitoring device can be by the mark of sending time 8:00:00 and monitored device A The corresponding preservation of information 1 is known into table 1.
Title Sending time Identification information Receiving time
Monitored device A 8:00:00 1
Table 1
Step 103: after the condition responsive message for receiving monitored device return, being taken according to the condition responsive message The receiving time of the condition responsive message is saved in the monitoring table by the identification information of band.
In the present embodiment, monitoring device, can be according to the state after receiving the condition responsive message of monitored device The identification information that response message carries finds corresponding monitored device from monitoring table, by the reception of the condition responsive message Time is saved in the position for corresponding to receiving time in the monitoring table.
For example, monitored device A is after the Status Enquiry Packet for receiving monitoring device transmission, to monitoring device Condition responsive message is returned to, which carries the identification information 1 of monitored device A.Monitoring device receives this After condition responsive message, in table 1 by identification information 1 find with the matched list item of monitored device A, and by the state The receiving time 8:00:01 of response message is recorded in the position corresponding to receiving time, as shown in table 2.
Title Sending time Identification information Receiving time
Monitored device A 8:00:00 1 8:00:01
Table 2
Step 104: traverse the monitoring table according to the preset traversal period, based on the sending time saved in monitoring table and Whether receiving time detects corresponding monitored device abnormal.
In the present embodiment, administrator presets the traversal period, which usually less than monitors the period, in each prison It controls in the period, monitoring device is according to traversal period traversal monitoring table.It is assumed that the administrator setting monitoring period is 1 day, the period is traversed It is 30 minutes, then monitoring device successively can send Status Enquiry Packet, monitoring to all monitored devices at daily zero Equipment can also every 30 minutes traversals monitor table, according to the sending time and condition responsive of the Status Enquiry Packet saved in monitoring table Whether the end time of message detects monitored device abnormal.
Step 105: when determining monitored device exception, being sent again to abnormal monitored device within this monitoring period Status Enquiry Packet.
In the present embodiment, when determining monitored device exception, monitoring device can be within this monitoring period according to pre- If monitoring sequence successively to all monitored devices send Status Enquiry Packet after, again to the exception monitored device hair Send Status Enquiry Packet.Optionally, when determining monitored device exception, monitoring device can also be immediately again to the exception quilt Monitoring device sends Status Enquiry Packet, and the application is not particularly limited this.
The application monitoring device can be according to the sending time and reception of Status Enquiry Packet it can be seen from above description Whether the time detects corresponding monitored device abnormal, when determining monitored device exception, within this monitoring period again to Abnormal monitored device sends Status Enquiry Packet.It, can be within this monitoring period using technical solution provided by the present application Again abnormal monitored device is detected, even if in the monitoring period that setting is relatively long, can also find to be monitored in time The exception of equipment, so as under the premise of saving monitoring device process resource, it is ensured that the real-time of network equipment monitoring.
With reference to Fig. 2, monitoring device is detected based on the sending time saved in the monitoring table and receiving time in the application Corresponding monitored device whether Yi Chang embodiment flow chart, the specific steps are as follows:
Step 201: traversing monitoring table according to the preset traversal period.
Step 202: judging that whether the corresponding receiving time of monitored device is sky in the monitoring table, if it is sky, is held Row step 203;If being not sky, 204 are thened follow the steps.
Step 203: will test the time is saved in the monitoring table as receiving time corresponding with monitored device.
In the present embodiment, monitoring device traverses monitoring table according to the preset traversal period, sets if be monitored in monitoring table Standby one column of receiving time be sky, then illustrate the monitored device not to monitoring device return condition responsive message, or due to Network communication failure, monitoring device can not receive the condition responsive message of monitored device, at this point it is possible to by current detection Time is saved in the monitoring table as receiving time corresponding with monitored device.Please refer to table 3, it is assumed that monitoring device is in 8: 00:10 sends Status Enquiry Packet to monitored device B, and according to the preset traversal period, monitoring device is traversed in 8:00:15 and supervised When controlling table, the corresponding receiving time of discovery monitored device B is sky, then can be using current detection time 8:00:15 as connecing Generation table 4 in monitoring table is saved between time receiving.
Title Sending time Identification information Receiving time
Monitored device A 8:00:00 1 8:00:01
Monitored device B 8:00:10 2 \
Table 3
Title Sending time Identification information Receiving time
Monitored device A 8:00:00 1 8:00:01
Monitored device B 8:00:10 2 8:00:15
Table 4
Step 204: calculating the time difference of receiving time and corresponding sending time.
Based on the judging result of abovementioned steps 202, when the corresponding receiving time of monitored device is not sky in monitoring table, The time difference of receiving time with corresponding sending time can be calculated.In addition, being based on abovementioned steps 203, the time will test After being saved in the monitoring table as receiving time corresponding with monitored device, receiving time and corresponding transmission can also be calculated The time difference of time.
Table 4 specifically is please referred to, in this step, calculates receiving time and the corresponding sending time of monitored device A, B Time difference is respectively 1 second and 5 seconds.
Step 205: judging whether the time difference is greater than preset difference value.If it is greater than preset difference value, then follow the steps 206, if it is less than or equal to preset difference value, it is determined that monitored device is normal.
In the present embodiment, administrator presets " preset difference value ", and such as 3 seconds, then the corresponding time difference of monitored device A 1 second, it is less than preset difference value, can determines that the equipment state of monitored device A is normal;The monitored device B corresponding time difference Value 5 seconds, it is greater than preset difference value, then can executes step 206.
Step 206: determining monitored device exception.
Based on the judging result of abovementioned steps 206, the corresponding time difference of monitored device B is greater than preset difference value, then really It is abnormal for determining the equipment state of monitored device B.
In one example, table 5 is please referred to, is determining that equipment state, can be by monitored device whether after exception Equipment state is stored in monitoring table.When traversing monitoring table in next traversal period, monitoring device can be directed to equipment state For abnormal monitored device, detecting the exception monitored device based on the sending time and receiving time saved in monitoring table is It is no still abnormal.It is normal monitored device for equipment state, no longer needs to detect again, the place of monitoring device is saved with this Manage resource.In addition, monitoring device also needs to empty the equipment state recorded in monitoring table in this monitoring end cycle.
Title Sending time Identification information Receiving time Equipment state
Monitored device A 8:00:00 1 8:00:01 Normally
Monitored device B 8:00:10 2 8:00:15 It is abnormal
Table 5
As seen from the above-described embodiment, monitoring device can record equipment state in monitoring table, so as to next time time When going through monitoring table, is detected again for the equipment state of the abnormal monitored device in monitoring table, substantially reduce detection Time saves the process resource of monitoring device, improves detection efficiency, while improving the utilization rate of system resource.
It is that another kind is corresponded to based on the sending time saved in monitoring table and receiving time detection in the application with reference to Fig. 3 Monitored device whether Yi Chang embodiment flow chart, the specific steps are as follows:
Step 301: with the sending time of the Status Enquiry Packet retransmitted, updating abnormal monitored device in monitoring table Corresponding sending time.
Step 302: after receiving the condition responsive message that the exception monitored device is returned based on Status Enquiry Packet, With the receiving time of the condition responsive message, the corresponding receiving time of exception monitored device in the monitoring table is updated.
In the present embodiment, within this monitoring period, after sending Status Enquiry Packet to abnormal monitored device again, use The sending time of the Status Enquiry Packet of retransmission updates the corresponding sending time of exception monitored device in monitoring table.When When monitoring device receives condition responsive message, corresponding receiving time in former monitoring table is updated.
For example, the time of monitoring device to abnormal monitored device B retransmission Status Enquiry Packet is 9:00:10, it will The corresponding sending time 8:00:10 of monitored device B is updated to 9:00:10 in former monitoring table table 4.Referring to table 6, it is assumed that monitored Equipment B receives condition responsive message in 9:00:02, then the receiving time 8:00:15 of former monitoring table table 4 is updated to 9:00: 12。
Title Sending time Identification information Receiving time
Monitored device A 8:00:00 1 8:00:01
Monitored device B 9:00:10 2 9:00:12
Table 6
Step 303: traversing monitoring table according to the preset traversal period, judge corresponding with the monitored device in monitoring table Whether receiving time is later than sending time, if receiving time corresponding with the abnormal monitored device earlier than or be equal to and send Time thens follow the steps 304;If receiving time corresponding with abnormal monitored device is later than sending time, then follow the steps 305。
Step 304: will test the time as receiving time corresponding with exception monitored device update to the monitoring table In.
Step 305: calculating the time difference of receiving time and corresponding sending time.When the time difference is poor greater than default When value, monitored device exception is determined.When the time difference is less than or equal to preset difference value, the monitored device is being determined just Often.
In one example, it is assumed that monitoring device traverses monitoring table, reference table 6, monitored device B in 9:00:15 again Corresponding receiving time 9:00:12 is later than sending time 9:00:10, then when calculating receiving time 9:00:12 with corresponding transmission Between 9:00:10 time difference be 2 seconds, be less than preset time difference 3 seconds, can determine the equipment state of monitored device B Normally.
Title Sending time Identification information Receiving time
Monitored device A 8:00:00 1 8:00:01
Monitored device B 9:00:10 2 8:00:15
Table 7
In another example, reference table 7, when 9:00:15 traverses monitoring table again, discovery is monitored to be set monitoring device The standby corresponding receiving time 8:00:15 of B illustrates that monitoring device does not receive monitored device B base earlier than sending time 9:00:10 In the condition responsive message that the Status Enquiry Packet of retransmission returns, then need first to make current detection time 9:00:15 For receiving time corresponding with monitored device B, former receiving time 8:00:15 is updated to 9:00:15, generates table 8.Then again It is 5 seconds that receiving time 9:00:15, which is calculated, with the time difference of corresponding sending time 9:00:10, and the preset time is still greater than Difference 3 seconds, illustrate that monitored device B is still abnormal.Therefore, can be within this monitoring period, it can be again to monitored device B Status Enquiry Packet is sent, to determine whether monitored device B is still abnormal.
Title Sending time Identification information Receiving time
Monitored device A 8:00:00 1 8:00:01
Monitored device B 9:00:10 2 9:00:15
Table 8
As seen from the above-described embodiment, monitoring device, can in the process to abnormal monitored device again detection device state Sending time corresponding with the monitored device and receiving time in monitoring table are updated in a manner of using updating, without increasing List item has saved the storage resource of system.
Corresponding with the aforementioned monitoring embodiment of the method for the network equipment, present invention also provides the devices of the monitoring network equipment Embodiment.
The Installation practice that the application monitors the network equipment can be real by way of applying in hardware or software and hardware combining It is existing.For hardware view, as shown in figure 4, being one kind shown in one exemplary embodiment of the application for monitoring the network equipment Device a kind of hardware structure diagram.In addition to processor shown in Fig. 4, network interface, memory and nonvolatile memory it Outside, the equipment in embodiment where device can also include usually other hardware, such as be responsible for the forwarding chip of processing message.
It is a kind of block diagram of the device of monitoring network equipment shown in one exemplary embodiment of the application referring to Fig. 5, it is described It monitors in the application of device 400 monitoring device shown in Fig. 4 of the network equipment, described device 400 may include: the first transmission list First 401, first storage unit 402, the second storage unit 403, detection unit 404, the second transmission unit 405, first update single First 406, second updating unit 407, third storage unit 408 and clearing cell 409.Continuing with referring to Fig. 6, the detection is single Member 404 can also include: the first detection sub-unit 4041 and time-triggered protocol subelement 4042.
Wherein, the first transmission unit 401, for sending Status Enquiry Packet, the status request report to monitored device Identification information corresponding with the monitored device is carried in text;
First storage unit 402, for by the sending time of the Status Enquiry Packet it is corresponding with the identification information protect It is stored in monitoring table;
Second storage unit 403, for after receiving the condition responsive message that the monitored device returns, according to institute The identification information for stating the carrying of condition responsive message, the receiving time of the condition responsive message is saved in the monitoring table;
Detection unit 404, for being based in the monitoring table when traversing the monitoring table according to the preset traversal period Whether the sending time and receiving time of preservation detect corresponding monitored device abnormal;
Second transmission unit 405, for when determining the monitored device exception, again to different within this monitoring period Normal monitored device sends Status Enquiry Packet.
First detection sub-unit 4041, for calculating when receiving time corresponding with the monitored device is not sky The time difference of the receiving time and corresponding sending time, when the time difference is greater than preset difference value, described in determination Monitored device is abnormal;
Time-triggered protocol subelement 4042, for will test when receiving time corresponding with the monitored device is empty Time is saved in the monitoring table as the corresponding receiving time of the monitored device, and notifies the first detection single Member processing.
First updating unit 406, for sending status request report to abnormal monitored device again within this monitoring period After text, with the sending time of the Status Enquiry Packet of retransmission, update extremely monitored described in the monitoring table The corresponding sending time of equipment;
Second updating unit 407, for returning receiving the abnormal monitored device and be based on the Status Enquiry Packet After the condition responsive message returned, with the receiving time of the condition responsive message, updates and supervised extremely described in the monitoring table Control the corresponding receiving time of equipment;
First detection sub-unit 4041 is also used to be later than when receiving time corresponding with the exception monitored device When sending time, the time difference of the receiving time with corresponding sending time is calculated;
The time-triggered protocol subelement 4042, be also used to when receiving time corresponding with the abnormal monitored device earlier than When sending time, the time will test as the corresponding receiving time update of the exception monitored device into the monitoring table, And first detection sub-unit is notified to handle;
First transmission unit 401 is specifically used for successively sending out to all monitored devices according to preset monitoring sequence Send Status Enquiry Packet;
Second transmission unit 402, be specifically used for according to preset monitoring sequence successively to all monitored devices After sending Status Enquiry Packet, Status Enquiry Packet is sent to the abnormal monitored device again;
Third storage unit 408, for being examined described based on the sending time saved in the monitoring table and receiving time Corresponding monitored device is surveyed whether after exception, the equipment state of the monitored device is stored in the monitoring table, The equipment state includes normal, abnormal;
The detection unit 404 is also used to for equipment state be abnormal monitored device, based on saving in monitoring table Sending time and the receiving time detection abnormal monitored device it is whether still abnormal;
Clearing cell 409, for deleting the equipment state recorded in the monitoring table in this monitoring end cycle.
As seen from the above-described embodiment, the application can be according to sending time and the receiving time detection pair of Status Enquiry Packet Whether the monitored device answered is abnormal, when determining monitored device exception, is supervised again to abnormal within this monitoring period It controls equipment and sends Status Enquiry Packet.It, can be within this monitoring period again to exception using technical solution provided by the present application Monitored device is detected, even if in the monitoring period that setting is relatively long, can also find the exception of monitored device in time, So as under the premise of saving monitoring device process resource, it is ensured that the real-time of network equipment monitoring.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, can select according to the actual needs Some or all of the modules therein is selected to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying creation Property labour in the case where, it can understand and implement.

Claims (8)

1. a kind of method for monitoring the network equipment, which is characterized in that the described method includes:
Status Enquiry Packet is sent to monitored device, is carried in the Status Enquiry Packet corresponding with the monitored device Identification information;
It is saved in the sending time of the Status Enquiry Packet is corresponding with the identification information in monitoring table;
After receiving the condition responsive message that the monitored device returns, according to the mark of condition responsive message carrying The receiving time of the condition responsive message is saved in the monitoring table by information;
The monitoring table is traversed according to the preset traversal period, based on the sending time and receiving time saved in the monitoring table Whether abnormal detect corresponding monitored device;
When determining the monitored device exception, status request is sent to abnormal monitored device again within this monitoring period Message;
Wherein, described that whether corresponding monitored device is detected based on the sending time saved in the monitoring table and receiving time It is abnormal, comprising:
When receiving time corresponding with the monitored device is not sky, the receiving time and corresponding sending time are calculated Time difference determine that the monitored device is abnormal when the time difference is greater than preset difference value;
When receiving time corresponding with the monitored device is empty, it is corresponding as the monitored device to will test the time Receiving time is saved in the monitoring table, and is executed and calculated the receiving time and the time difference of corresponding sending time Step.
2. the method according to claim 1, wherein described set to exception is monitored again within this monitoring period Preparation is sent after Status Enquiry Packet, further includes:
With the sending time of the Status Enquiry Packet of retransmission, exception monitored device described in the monitoring table is updated Corresponding sending time;
After receiving the condition responsive message that the abnormal monitored device is returned based on the Status Enquiry Packet, with described The receiving time of condition responsive message updates the corresponding receiving time of exception monitored device described in the monitoring table;
It is described whether abnormal based on the sending time saved in the monitoring table and the corresponding monitored device of receiving time detection, Include:
When receiving time corresponding with the abnormal monitored device is later than sending time, execute calculate the receiving time with The step of time difference of corresponding sending time;
When receiving time corresponding with the exception monitored device is earlier than sending time, the time will test as the exception The corresponding receiving time of monitored device is updated into the monitoring table, when executing the calculating receiving time with corresponding transmission Between time difference the step of.
3. the method according to claim 1, wherein described send Status Enquiry Packet, packet to monitored device It includes:
According to preset monitoring sequence, Status Enquiry Packet successively is sent to all monitored devices;
It is described to send Status Enquiry Packet to abnormal monitored device again within this monitoring period, comprising:
After successively sending Status Enquiry Packet to all monitored devices according to preset monitoring sequence, again to described different Normal monitored device sends Status Enquiry Packet.
4. the method according to claim 1, wherein it is described based on the sending time saved in the monitoring table and Receiving time detects corresponding monitored device whether after exception, comprising:
The equipment state of the monitored device is stored in the monitoring table, the equipment state includes normal, abnormal;
It is described whether abnormal based on the sending time saved in the monitoring table and the corresponding monitored device of receiving time detection, Include:
It is abnormal monitored device for equipment state, institute is detected based on the sending time saved in monitoring table and receiving time Whether still abnormal state abnormal monitored device;
The method also includes:
In this monitoring end cycle, the equipment state recorded in the monitoring table is deleted.
5. a kind of device for monitoring the network equipment, which is characterized in that described device includes:
First transmission unit, for sending Status Enquiry Packet to monitored device, carry in the Status Enquiry Packet with The corresponding identification information of the monitored device;
First storage unit, for being saved in monitoring for the sending time of the Status Enquiry Packet is corresponding with the identification information In table;
Second storage unit, for after receiving the condition responsive message that the monitored device returns, according to the state The identification information that response message carries, the receiving time of the condition responsive message is saved in the monitoring table;
Detection unit is used for when traversing the monitoring table according to the preset traversal period, based on what is saved in the monitoring table Whether sending time and receiving time detect corresponding monitored device abnormal;
Second transmission unit, for being supervised again to exception within this monitoring period when determining the monitored device exception It controls equipment and sends Status Enquiry Packet;
Wherein, the detection unit, comprising:
First detection sub-unit, for calculating the reception when receiving time corresponding with the monitored device is not sky The time difference of time and corresponding sending time determine that described be monitored sets when the time difference is greater than preset difference value It is standby abnormal;
Time-triggered protocol subelement, for will test time conduct when receiving time corresponding with the monitored device is empty The corresponding receiving time of the monitored device is saved in the monitoring table, and first detection sub-unit is notified to handle.
6. device according to claim 5, which is characterized in that described device further include:
First updating unit, after sending Status Enquiry Packet to abnormal monitored device again within this monitoring period, With the sending time of the Status Enquiry Packet of retransmission, it is corresponding to update exception monitored device described in the monitoring table Sending time;
Second updating unit, in the state for receiving the abnormal monitored device and being returned based on the Status Enquiry Packet After response message, with the receiving time of the condition responsive message, exception monitored device pair described in the monitoring table is updated The receiving time answered;
First detection sub-unit is also used to be later than sending time when receiving time corresponding with the exception monitored device When, calculate the time difference of the receiving time with corresponding sending time;
The time-triggered protocol subelement is also used to when receiving time corresponding with the exception monitored device is earlier than sending time When, it will test the time as the corresponding receiving time update of the exception monitored device into the monitoring table, and notify institute State the processing of the first detection sub-unit.
7. device according to claim 5, which is characterized in that
First transmission unit, for successively sending status request to all monitored devices according to preset monitoring sequence Message;
Second transmission unit, for successively sending status request to all monitored devices according to preset monitoring sequence After message, Status Enquiry Packet is sent to the abnormal monitored device again.
8. device according to claim 5, which is characterized in that described device further include:
Third storage unit, for described corresponding based on the sending time saved in the monitoring table and receiving time detection Whether monitored device is stored in the equipment state of the monitored device in the monitoring table, the equipment after exception State includes normal, abnormal;
The detection unit is also used to for equipment state be abnormal monitored device, based on the transmission saved in monitoring table Whether time and the receiving time detection abnormal monitored device are still abnormal;
Clearing cell, for deleting the equipment state recorded in the monitoring table in this monitoring end cycle.
CN201610591223.9A 2016-07-25 2016-07-25 A kind of method and apparatus monitoring the network equipment Active CN106230658B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610591223.9A CN106230658B (en) 2016-07-25 2016-07-25 A kind of method and apparatus monitoring the network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610591223.9A CN106230658B (en) 2016-07-25 2016-07-25 A kind of method and apparatus monitoring the network equipment

Publications (2)

Publication Number Publication Date
CN106230658A CN106230658A (en) 2016-12-14
CN106230658B true CN106230658B (en) 2019-05-07

Family

ID=57533262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610591223.9A Active CN106230658B (en) 2016-07-25 2016-07-25 A kind of method and apparatus monitoring the network equipment

Country Status (1)

Country Link
CN (1) CN106230658B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921539A (en) * 2017-02-06 2017-07-04 上海斐讯数据通信技术有限公司 A kind of key business module monitor method and system based on cloud AC
CN111239584A (en) * 2019-12-31 2020-06-05 视航机器人(佛山)有限公司 Mainboard testing device, system and method applied to unmanned forklift
CN115914038B (en) * 2022-11-11 2024-04-09 中国联合网络通信集团有限公司 Degradation forwarding device detection method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155020A (en) * 2006-09-29 2008-04-02 惠普开发有限公司 Generating an alert to indicate stale data
CN101242618A (en) * 2008-03-04 2008-08-13 中兴通讯股份有限公司 A real time detection method for communication status in communication channel
CN104580409A (en) * 2014-12-24 2015-04-29 广州酷狗计算机科技有限公司 Service request processing method, server and terminal
CN105357069A (en) * 2015-11-04 2016-02-24 浪潮(北京)电子信息产业有限公司 Distributed node service state monitoring method, device and system
CN105490837A (en) * 2015-11-24 2016-04-13 广州市百果园网络科技有限公司 Network monitoring processing method and device
CN105553740A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Data interface monitoring method and device
CN105574624A (en) * 2014-10-09 2016-05-11 阿里巴巴集团控股有限公司 Abnormal data processing method and device and monitoring system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8543868B2 (en) * 2010-12-21 2013-09-24 Guest Tek Interactive Entertainment Ltd. Distributed computing system that monitors client device request time and server servicing time in order to detect performance problems and automatically issue alerts

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155020A (en) * 2006-09-29 2008-04-02 惠普开发有限公司 Generating an alert to indicate stale data
CN101242618A (en) * 2008-03-04 2008-08-13 中兴通讯股份有限公司 A real time detection method for communication status in communication channel
CN105574624A (en) * 2014-10-09 2016-05-11 阿里巴巴集团控股有限公司 Abnormal data processing method and device and monitoring system
CN104580409A (en) * 2014-12-24 2015-04-29 广州酷狗计算机科技有限公司 Service request processing method, server and terminal
CN105357069A (en) * 2015-11-04 2016-02-24 浪潮(北京)电子信息产业有限公司 Distributed node service state monitoring method, device and system
CN105490837A (en) * 2015-11-24 2016-04-13 广州市百果园网络科技有限公司 Network monitoring processing method and device
CN105553740A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Data interface monitoring method and device

Also Published As

Publication number Publication date
CN106230658A (en) 2016-12-14

Similar Documents

Publication Publication Date Title
US10958543B2 (en) Monitoring wireless access point events
US10917322B2 (en) Network traffic tracking using encapsulation protocol
CN104796298B (en) A kind of method and device of SDN network accident analysis
CN101035037B (en) Method, system and related device for detecting the network communication quality
CN105577496B (en) The system that a kind of home gateway identifies access device type using cloud platform
US20130258843A1 (en) Network system and apparatis
US10033602B1 (en) Network health management using metrics from encapsulation protocol endpoints
US20120303790A1 (en) Host Visibility as a Network Service
CN103763121A (en) Method and device for quickly issuing network configuration information
US10243783B2 (en) Method and device for processing communication path
CN106230658B (en) A kind of method and apparatus monitoring the network equipment
KR20190029486A (en) Elastic honeynet system and method for managing the same
CN104283780A (en) Method and device for establishing data transmission route
CN102739462B (en) Test message sending method and device
CN106230667A (en) VTEP keep-alive detection method and device
CN110855566B (en) Method and device for dragging upstream flow
US10103950B2 (en) Hub filtering
US10721145B2 (en) Identification of candidate problem network entities
CN104158735A (en) Network data package distribution method and device
Yamaguchi et al. Monitoring dynamic modification of routing information in openflow networks
CN106937350A (en) Routing method and system based on mobile terminal
WO2016065752A1 (en) Method and device for detecting link state, and storage medium
CN105025028A (en) IP black hole discovering method based on flow analysis
CN111193639A (en) Network quality detection processing method and system
US12052150B2 (en) Monitoring wireless access point events

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant after: Hangzhou Dipu Polytron Technologies Inc

Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant before: Hangzhou Dipu Technology Co., Ltd.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant