CN106230658A - A kind of method and apparatus monitoring the network equipment - Google Patents
A kind of method and apparatus monitoring the network equipment Download PDFInfo
- Publication number
- CN106230658A CN106230658A CN201610591223.9A CN201610591223A CN106230658A CN 106230658 A CN106230658 A CN 106230658A CN 201610591223 A CN201610591223 A CN 201610591223A CN 106230658 A CN106230658 A CN 106230658A
- Authority
- CN
- China
- Prior art keywords
- time
- monitored device
- abnormal
- monitoring
- monitoring table
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
Abstract
The application provides a kind of method and apparatus monitoring the network equipment, and described method includes: sends Status Enquiry Packet to monitored device, will carry the identification information corresponding with described monitored device in Status Enquiry Packet;The transmission time of Status Enquiry Packet is corresponding with described identification information to be saved in monitoring table;After receiving the condition responsive message that monitored device returns, the identification information carried according to condition responsive message, the reception time of condition responsive message is saved in monitoring table;Traveling through described monitoring table according to the default traversal cycle, the monitored device corresponding with receiving time detecting based on the time that sends preserved in monitoring table is the most abnormal;When determining monitored device exception, within this monitoring cycle, again send Status Enquiry Packet to abnormal monitored device.The application embodiment of the present invention, detects abnormal monitored device within this monitoring cycle again, thus finds that the abnormal of monitored device guarantees network equipment control real-time with this in time.
Description
Technical field
The application relates to communication technical field, particularly relates to a kind of method and apparatus monitoring the network equipment.
Background technology
Being monitored the network equipment, it will be appreciated that the running status of the network equipment, the connection status such as the network equipment is
No normally, whether chain-circuit time delay in default threshold value etc..If it find that unit exception, sound alarm or mail can be passed through
Alarm notification manager process, thus Logistics networks communication is efficiently carried out.
At present, for guaranteeing the real-time that the network equipment monitors, the monitoring cycle can be shortened, or use parallel form pair
The network equipment is monitored, but so can bring huge processing pressure to monitoring device.Therefore, how the network equipment is being guaranteed
The process resource of monitoring device is saved again, it has also become problem demanding prompt solution at present while control real-time.
Summary of the invention
In view of this, the application provides a kind of method and apparatus monitoring the network equipment, to solve traditional monitoring network
Poor real present in the method for equipment, the problem taking too much Installed System Memory and resource.
First aspect according to the embodiment of the present application, it is provided that a kind of method monitoring the network equipment, described method includes:
Send Status Enquiry Packet to monitored device, described Status Enquiry Packet carries and described monitored device
Corresponding identification information;
It is saved in corresponding with described identification information for the transmission time of described Status Enquiry Packet in monitoring table;
After receiving the condition responsive message that described monitored device returns, carry according to described condition responsive message
Identification information, was saved in the reception time of described condition responsive message in described monitoring table;
Described monitoring table is traveled through, based on the transmission time preserved in described monitoring table and reception according to the default traversal cycle
Monitored device corresponding to time detecting is the most abnormal;
When determining described monitored device exception, within this monitoring cycle, again send state to abnormal monitored device
Request message.
Second aspect according to the embodiment of the present application, it is provided that a kind of device monitoring the network equipment, described device includes:
First transmitting element, for sending Status Enquiry Packet to monitored device, carries in described Status Enquiry Packet
There is the identification information corresponding with described monitored device;
First storage unit, for being saved in corresponding with described identification information for the transmission time of described Status Enquiry Packet
In monitoring table;
Second storage unit, for after receiving the condition responsive message that described monitored device returns, according to described
The identification information that condition responsive message carries, was saved in the reception time of described condition responsive message in described monitoring table;
Detector unit, for when traveling through described monitoring table according to the default traversal cycle, protects based in described monitoring table
The transmission time deposited is with to receive monitored device corresponding to time detecting the most abnormal;
Second transmitting element, for when determining described monitored device exception, again to exception within this monitoring cycle
Monitored device sends Status Enquiry Packet.
In the embodiment of the present application, monitoring device can be according to the transmission time of Status Enquiry Packet and reception time detecting pair
The monitored device answered is the most abnormal, when determining monitored device exception, is again supervised to abnormal within this monitoring cycle
Control equipment sends Status Enquiry Packet.Use the technical scheme that the application provides, can be again to exception within this monitoring cycle
Monitored device detects, even if arranging the relatively long monitoring cycle, it is also possible to find the exception of monitored device in time,
Such that it is able on the premise of saving monitoring device process resource, it is ensured that the real-time of network equipment monitoring.
Accompanying drawing explanation
Fig. 1 is the embodiment flow chart of a kind of method monitoring the network equipment shown in the application one exemplary embodiment;
Fig. 2 be shown in the application one exemplary embodiment a kind of based in monitoring table preserve the transmission time and receive time
Between detect the embodiment flow chart that the monitored device of correspondence is whether abnormal;
Fig. 3 is that the another kind shown in the application one exemplary embodiment is based on the transmission time preserved in monitoring table and reception
The embodiment flow chart that monitored device corresponding to time detecting is the most abnormal;
Fig. 4 is a kind of hardware knot of a kind of device for monitoring the network equipment shown in the application one exemplary embodiment
Composition;
Fig. 5 is the block diagram of a kind of device monitoring the network equipment shown in the application one exemplary embodiment;
Fig. 6 is the frame of detector unit in a kind of device monitoring the network equipment shown in the application one exemplary embodiment
Figure.
Detailed description of the invention
For the technical scheme making those skilled in the art be more fully understood that in the embodiment of the present invention, here will be in conjunction with attached
Embodiment is described in detail by figure.
The way realizing monitoring multiple network equipments under normal circumstances is to use polling mode or parallel multithreading.
Wherein, use polling mode, need to preset a monitoring cycle, if it is desired to more real-time, the monitoring cycle can be shortened;
If it is intended to the system of saving and Internet resources, prolongation that can be suitable detects the cycle.Meanwhile, need within each monitoring cycle really
Which platform monitored device is the monitoring order of fixed all monitored devices, first detect to determine, rear which platform monitored device of detection, with
In ensureing the same cycle, each monitored device is monitored and arrives.But, if using which monitoring cycle the shortest, will
Huge processing pressure can be brought to monitoring device;If the monitoring cycle is oversize, then can affect the real-time of monitoring.Use parallel
Multithreading, be required for opening a thread for every network equipment, be used for perform task;One communication socket
Socket, is used for communicating.But, which is in the case of multiple stage monitored device, it may be desirable to substantial amounts of thread and communication set
Meet word socket, thus take too much Installed System Memory and resource.
For the problems referred to above, this application provides a kind of method and apparatus monitoring the network equipment.
With reference to Fig. 1, it is the embodiment stream of a kind of method monitoring the network equipment shown in the application one exemplary embodiment
Cheng Tu, the method for the described monitoring network equipment is applied in monitoring device, and this monitoring device can be router, three-tier switch
Deng the network equipment, naturally it is also possible to be PC, server etc., this is not done particular restriction by the application.The described monitoring network equipment
Method may comprise steps of:
Step 101: send Status Enquiry Packet to monitored device, carries in this Status Enquiry Packet and sets with monitored
Standby corresponding identification information.
In the present embodiment, monitored device can be the network equipment such as router, three-tier switch.Manager presets
The monitoring cycle, and be that all monitored devices set monitoring order, within a monitoring cycle, can be suitable according to default monitoring
Sequence sends Status Enquiry Packet to each monitored device successively.
In the present embodiment, monitoring device can based on ICMP (Internet Control Message Protocol,
Internet Control Message agreement) the agreement described Status Enquiry Packet of structure, it is of course also possible to use other agreements to construct described shape
State request message, this is not particularly limited by the application.This Status Enquiry Packet carries identification information, described identification information with
Monitored device is corresponding, is used for characterizing described monitored device, and described identification information can be flag based on Digital ID.
For example, the identification information of monitored device A can be set to 1, the identification information of monitored device B is set to 2 etc..
Step 102: be saved in corresponding with identification information for the transmission time of this Status Enquiry Packet in monitoring table.
In the present embodiment, this monitoring table is used for recording receiving and sending messages of each monitored device state message, such as: state please
Ask the reception time etc. of the transmission time of message, condition responsive 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 will send time 8:00:00 and the mark of monitored device A
Knowledge information 1 is corresponding to be preserved to table 1.
Title | The transmission time | Identification information | The reception time |
Monitored device A | 8:00:00 | 1 |
Table 1
Step 103: after receiving the condition responsive message that this monitored device returns, take according to this condition responsive message
The identification information of band, was saved in the reception time of this condition responsive message in this monitoring table.
In the present embodiment, monitoring device, can be according to this state after receiving the condition responsive message of monitored device
The identification information that response message carries finds the monitored device of correspondence from monitoring table, by the reception of this condition responsive message
Time is saved in this monitoring table the position corresponding to the reception time.
For example, monitored device A is after receiving the Status Enquiry Packet that monitoring device sends, to monitoring device
Returning condition responsive message, this condition responsive message carries the identification information 1 of monitored device A.Monitoring device receives this
After condition responsive message, find, by identification information 1, the list item mated with monitored device A in Table 1, and by this state
The reception time 8:00:01 of response message records in the position corresponding to the reception time, as shown in table 2.
Title | The transmission time | Identification information | The reception time |
Monitored device A | 8:00:00 | 1 | 8:00:01 |
Table 2
Step 104: travel through described monitoring table according to default traversal cycle, based on the transmission time preserved in monitoring table and
Receive monitored device corresponding to time detecting the most abnormal.
In the present embodiment, manager presets the traversal cycle, and this traversal cycle typically smaller than monitors the cycle, at each prison
In the control cycle, monitoring device is according to traversal cycle traversal monitoring table.It is assumed that the Administrator monitoring cycle is 1 day, travel through the cycle
Be 30 minutes, then monitoring device can send Status Enquiry Packet, monitoring to all monitored devices successively when the zero of every day
Equipment also can travel through monitoring table for every 30 minutes, according to transmission time and the condition responsive of the Status Enquiry Packet preserved in monitoring table
It is the most abnormal that the end time of message detects monitored device.
Step 105: when determining monitored device exception, sends to abnormal monitored device within this monitoring cycle again
Status Enquiry Packet.
In the present embodiment, when determining monitored device exception, monitoring device can be according in advance within this monitoring cycle
If monitoring order send after Status Enquiry Packet to all monitored devices the most successively, again send out to this exception monitored device
Send Status Enquiry Packet.Optionally, when determining monitored device exception, monitoring device can also be the most again to this exception quilt
Monitoring device sends Status Enquiry Packet, and this is not particularly limited by the application.
By above description it can be seen that the application monitoring device can be according to the transmission time of Status Enquiry Packet and reception
Monitored device corresponding to time detecting is the most abnormal, when determining monitored device exception, within this monitoring cycle again to
Abnormal monitored device sends Status Enquiry Packet.Use the technical scheme that the application provides, can be within this monitoring cycle
Again abnormal monitored device is detected, even if arranging the relatively long monitoring cycle, it is also possible to find monitored in time
The exception of equipment, such that it is able on the premise of saving monitoring device process resource, it is ensured that the real-time of network equipment monitoring.
With reference to Fig. 2, in the application, monitoring device based on the transmission time preserved in described monitoring table and receives time detecting
The embodiment flow chart that corresponding monitored device is the most abnormal, specifically comprises the following steps that
Step 201: according to default traversal cycle traversal monitoring table.
Step 202: judge whether the reception time that in this monitoring table, monitored device is corresponding is empty, if sky, then holds
Row step 203;If not being empty, then perform step 204.
Step 203: the detection time was saved in this monitoring table as the reception time corresponding with monitored device.
In the present embodiment, monitoring device, according to default traversal cycle traversal monitoring table, sets if monitored in monitoring table
Standby reception time one hurdle is empty, then illustrate that this monitored device does not returns condition responsive message to monitoring device, or due to
Network communication failure, monitoring device cannot receive the condition responsive message of monitored device, at this point it is possible to by current detection
Time was saved in this monitoring table as the reception time corresponding with monitored device.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 default traversal cycle, monitoring device is in 8:00:15 traversal prison
During control table, find that reception time corresponding to monitored device B be sky, then can be using current detection time 8:00:15 as connecing
Generation table 4 in monitoring table it is saved between the time receiving.
Title | The transmission time | Identification information | The reception time |
Monitored device A | 8:00:00 | 1 | 8:00:01 |
Monitored device B | 8:00:10 | 2 | \ |
Table 3
Title | The transmission time | Identification information | The reception 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: calculate reception time and the corresponding time difference sending the time.
Judged result based on abovementioned steps 202, when the reception time that monitored device in monitoring table is corresponding is not empty,
Reception time and the corresponding time difference sending the time can be calculated.Additionally, based on abovementioned steps 203, the time will be being detected
After being saved in this monitoring table as the reception time corresponding with monitored device, it is also possible to calculate reception time and corresponding transmission
The time difference of time.
Specifically refer to table 4, in this step, calculate monitored device A, the reception time of B and corresponding transmission time
Time difference is respectively 1 second and 5 seconds.
Step 205: judge that whether this time difference is more than preset difference value.If greater than preset difference value, then perform step
206, if less than or equal to preset difference value, it is determined that monitored device is normal.
In the present embodiment, manager presets " preset difference value ", such as 3 seconds, then and the time difference that monitored device A is corresponding
1 second, less than preset difference value, it may be determined that the equipment state of monitored device A is normal;The time difference that monitored device B is corresponding
It is worth 5 seconds, more than preset difference value, then can perform step 206.
Step 206: determine that this monitored device is abnormal.
Judged result based on abovementioned steps 206, time difference corresponding to monitored device B is more than preset difference value, the most really
Determine the equipment state of monitored device B for abnormal.
In one example, refer to table 5, after determining that equipment state is the most abnormal, can be by monitored device
Equipment state is saved in monitoring table.When next one traversal cycle traversal monitoring table, monitoring device can be for equipment state
For abnormal monitored device, based on the transmission time preserved in monitoring table and reception this exception monitored device of time detecting it is
No the most abnormal.It is normal monitored device for equipment state, it is not necessary to the most again detect, saves the place of monitoring device with this
Reason resource.Additionally, when this monitoring end cycle, monitoring device also needs to empty the equipment state of record in monitoring table.
Title | The transmission time | Identification information | The reception time | Equipment state |
Monitored device A | 8:00:00 | 1 | 8:00:01 | Normally |
Monitored device B | 8:00:10 | 2 | 8:00:15 | Abnormal |
Table 5
As seen from the above-described embodiment, monitoring device can record equipment state in monitoring table, in order to upper once time
When going through monitoring table, the equipment state for the abnormal monitored device in monitoring table detects again, substantially reduces detection
Time, save the process resource of monitoring device, improve detection efficiency, improve the utilization rate of system resource simultaneously.
With reference to Fig. 3, it is another kind of corresponding with receiving time detecting based on the transmission time preserved in monitoring table in the application
The whether abnormal embodiment flow chart of monitored device, specifically comprise the following steps that
Step 301: with the transmission time of the Status Enquiry Packet resend, update abnormal monitored device in monitoring table
The corresponding transmission time.
Step 302: after receiving the condition responsive message that this exception monitored device returns based on Status Enquiry Packet,
With the reception time of this condition responsive message, update the reception time that in this monitoring table, abnormal monitored device is corresponding.
In the present embodiment, within this monitoring cycle, again after abnormal monitored device sends Status Enquiry Packet, use
The transmission time of the Status Enquiry Packet resend, update the transmission time that in monitoring table, abnormal monitored device is corresponding.When
When monitoring device receives condition responsive message, update the reception time corresponding in former monitoring table.
Such as, the time that monitoring device resends Status Enquiry Packet to abnormal monitored device B is 9:00:10, will
The transmission time 8:00:10 that in former monitoring table table 4, monitored device B is corresponding is updated to 9:00:10.With reference to table 6, it is assumed that monitored
Equipment B receives condition responsive message at 9:00:02, then the reception time 8:00:15 of former monitoring table table 4 is updated to 9:00:
12。
Title | The transmission time | Identification information | The reception 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: according to default traversal cycle traversal monitoring table, it is judged that corresponding with this monitored device in monitoring table
Whether the reception time is later than the transmission time, if the reception time corresponding with described abnormal monitored device early than or equal to send
Time, then perform step 304;If the reception time corresponding with abnormal monitored device is later than the transmission time, then perform step
305。
Step 304: the detection time is updated this monitoring table as the reception time corresponding with this exception monitored device
In.
Step 305: calculate reception time and the corresponding time difference sending the time.When this time difference is poor more than presetting
During value, determine that this monitored device is abnormal.When this time difference is less than or equal to preset difference value, just determining this monitored device
Often.
In one example, it is assumed that monitoring device travels through monitoring table, reference table 6, monitored device B again in 9:00:15
Corresponding reception time 9:00:12 is later than transmission time 9:00:10, then when calculating reception time 9:00:12 with corresponding transmission
Between the time difference of 9:00:10 be 2 seconds, less than the time difference preset 3 seconds, it may be determined that the equipment state of monitored device B
The most normal.
Title | The transmission time | Identification information | The reception 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, monitoring device, when 9:00:15 travels through monitoring table again, finds monitored setting
Standby reception time 8:00:15 corresponding for B, early than sending time 9:00:10, illustrates that monitoring device does not receives monitored device B base
In the condition responsive message that the Status Enquiry Packet resend returns, then need first to be made by current detection time 9:00:15
For the reception time corresponding with monitored device B, former reception time 8:00:15 is updated to 9:00:15, generates table 8.The most again
The time difference calculating reception time 9:00:15 and corresponding transmission time 9:00:10 is 5 seconds, still above the default time
Difference 3 seconds, illustrates that monitored device B is the most abnormal.Therefore, it can within this monitoring cycle, can be again to monitored device B
Send Status Enquiry Packet, to determine that monitored device B is the most abnormal.
Title | The transmission time | Identification information | The reception 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, abnormal monitored device is being detected the process of equipment state by monitoring device again, can
Transmission time corresponding with described monitored device in monitoring table and reception time is updated, it is not necessary to increase in the way of using renewal
List item, has saved the storage resource of system.
Corresponding with the embodiment of the method for the aforementioned monitoring network equipment, present invention also provides the device of the monitoring network equipment
Embodiment.
The application monitors the device embodiment of the network equipment can be real by the way of applying at hardware or software and hardware combining
Existing.For hardware view, as shown in Figure 4, for the one shown in the application one exemplary embodiment for monitoring the network equipment
A kind of hardware structure diagram of device.Except the processor shown in Fig. 4, network interface, internal memory and nonvolatile memory it
Outward, in embodiment, the equipment at device place generally can also include other hardware, such as the forwarding chip etc. of responsible process message.
See Fig. 5, for the block diagram of a kind of device monitoring the network equipment shown in the application one exemplary embodiment, described
The device 400 of the monitoring network equipment is applied in the monitoring device shown in Fig. 4, and described device 400 may include that the first transmission list
Unit's 401, first storage unit the 402, second storage unit 403, detector unit the 404, second transmitting element 405, first update single
Unit's the 406, second updating block the 407, the 3rd storage unit 408 and clearing cell 409.Continuing with seeing Fig. 6, described detection list
Unit 404 can also include: the first detection sub-unit 4041 and time-triggered protocol subelement 4042.
Wherein, the first transmitting element 401, for sending Status Enquiry Packet, described status request report to monitored device
Literary composition carries the identification information corresponding with described monitored device;
First storage unit 402, for protecting corresponding with described identification information for the transmission time of described Status Enquiry Packet
It is stored in monitoring table;
Second storage unit 403, for after receiving the condition responsive message that described monitored device returns, according to institute
State the identification information that condition responsive message carries, the reception time of described condition responsive message is saved in described monitoring table;
Detector unit 404, for when traveling through described monitoring table according to the default traversal cycle, based in described monitoring table
The monitored device that the time that sends of preservation is corresponding with receiving time detecting is the most abnormal;
Second transmitting element 405, for when determining described monitored device exception, again to different within this monitoring cycle
Often monitored device sends Status Enquiry Packet.
First detection sub-unit 4041, for when the reception time corresponding with described monitored device is not empty, calculating
Described reception time and the corresponding time difference sending the time, when described time difference is more than preset difference value, determine described
Monitored device is abnormal;
Time-triggered protocol subelement 4042, for when the reception time corresponding with described monitored device is empty, detecting
Time was saved in described monitoring table as the reception time that described monitored device is corresponding, and notified that described first detection is single
Unit processes.
First updating block 406, for again sending status request report to abnormal monitored device within this monitoring cycle
After literary composition, with the transmission time of the described Status Enquiry Packet resend, update described in described monitoring table abnormal monitored
The transmission time that equipment is corresponding;
Second updating block 407, for returning based on described Status Enquiry Packet receiving described abnormal monitored device
After the condition responsive message returned, with the reception time of described condition responsive message, update abnormal described in described monitoring table prison
The reception time that control equipment is corresponding;
Described first detection sub-unit 4041, is additionally operable to be later than when the reception time corresponding with described abnormal monitored device
During the transmission time, calculate described reception time and the corresponding time difference sending the time;
Described time-triggered protocol subelement 4042, be additionally operable to when reception time corresponding with described abnormal monitored device early than
During the transmission time, detection time as the reception time that described abnormal monitored device is corresponding is updated in described monitoring table,
And notify that described first detection sub-unit processes;
Described first transmitting element 401, specifically for according to default monitoring order, sending out to all monitored devices successively
Send Status Enquiry Packet;
Described second transmitting element 402, specifically for according to default monitoring order successively to all monitored devices
After sending Status Enquiry Packet, again send Status Enquiry Packet to described abnormal monitored device;
3rd storage unit 408, for described based on described monitoring table in preserve the transmission time and receive the time inspection
Survey corresponding monitored device the most abnormal after, the equipment state of described monitored device is saved in described monitoring table,
Described equipment state includes normal, abnormal;
Described detector unit 404, being additionally operable to for equipment state is abnormal monitored device, preserves based in monitoring table
The transmission time and to receive abnormal monitored device described in time detecting the most abnormal;
Clearing cell 409, for when this monitoring end cycle, deletes the equipment state of record in described monitoring table.
As seen from the above-described embodiment, the application can be according to the transmission time of Status Enquiry Packet and reception time detecting pair
The monitored device answered is the most abnormal, when determining monitored device exception, is again supervised to abnormal within this monitoring cycle
Control equipment sends Status Enquiry Packet.Use the technical scheme that the application provides, can be again to exception within this monitoring cycle
Monitored device detects, even if arranging the relatively long monitoring cycle, it is also possible to find the exception of monitored device in time,
Such that it is able on the premise of saving monitoring device process resource, it is ensured that the real-time of network equipment monitoring.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method
Realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact
The part executing example illustrates.Device embodiment described above is only schematically, can select according to the actual needs
Select some or all of module therein to realize the purpose of the present invention program.Those of ordinary skill in the art are not paying creation
Property work in the case of, be i.e. appreciated that and implement.
Claims (10)
1. the method monitoring the network equipment, it is characterised in that described method includes:
Send Status Enquiry Packet to monitored device, described Status Enquiry Packet carries corresponding with described monitored device
Identification information;
It is saved in corresponding with described identification information for the transmission time of described Status Enquiry Packet in monitoring table;
After receiving the condition responsive message that described monitored device returns, the mark carried according to described condition responsive message
Information, was saved in the reception time of described condition responsive message in described monitoring table;
Described monitoring table is traveled through, based on the transmission time preserved in described monitoring table and the time of reception according to the default traversal cycle
The monitored device of detection correspondence is the most abnormal;
When determining described monitored device exception, within this monitoring cycle, again send status request to abnormal monitored device
Message.
Method the most according to claim 1, it is characterised in that described based in described monitoring table preserve the transmission time and
Receive monitored device corresponding to time detecting the most abnormal, including:
When the reception time corresponding with described monitored device is not empty, calculate described reception time and corresponding transmission time
Time difference, when described time difference is more than preset difference value, determine that described monitored device is abnormal;
When the reception time corresponding with described monitored device is empty, using corresponding as described monitored device for the detection time
The reception time is saved in described monitoring table, and performs to calculate described reception time and the corresponding time difference sending the time
Step.
Method the most according to claim 2, it is characterised in that described again the most monitored set to abnormal within this monitoring cycle
After preparation send Status Enquiry Packet, also include:
With the transmission time of the described Status Enquiry Packet resend, update abnormal monitored device described in described monitoring table
The corresponding transmission time;
After receiving the condition responsive message that described abnormal monitored device returns based on described Status Enquiry Packet, with described
The reception time of condition responsive message, update the reception time that described in described monitoring table, abnormal monitored device is corresponding;
The described monitored device corresponding with receiving time detecting based on the time that sends preserved in described monitoring table is the most abnormal,
Including:
When the reception time corresponding with described abnormal monitored device is later than the transmission time, perform calculate the described reception time with
The step of the corresponding time difference sending the time;
When the reception time corresponding with described abnormal monitored device early than send the time time, using the detection time as described exception
Reception time corresponding to monitored device updates in described monitoring table, perform to calculate the described reception time with corresponding transmission time
Between the step of time difference.
Method the most according to claim 1, it is characterised in that described to monitored device transmission Status Enquiry Packet, bag
Include:
According to default monitoring order, send Status Enquiry Packet to all monitored devices successively;
Described within this monitoring cycle, again send Status Enquiry Packet to abnormal monitored device, including:
According to default monitoring order the most successively after all monitored devices send Status Enquiry Packet, again to described different
Often monitored device sends Status Enquiry Packet.
Method the most according to claim 1, it is characterised in that described based in described monitoring table preserve the transmission time and
Receive monitored device corresponding to time detecting the most abnormal after, including:
The equipment state of described monitored device being saved in described monitoring table, described equipment state includes normal, abnormal;
The described monitored device corresponding with receiving time detecting based on the time that sends preserved in described monitoring table is the most abnormal,
Including:
It is abnormal monitored device for equipment state, based on the transmission time preserved in monitoring table and reception time detecting institute
State abnormal monitored device the most abnormal;
Described method also includes:
When this monitoring end cycle, delete the equipment state of record in described monitoring table.
6. the device monitoring the network equipment, it is characterised in that described device includes:
First transmitting element, for monitored device send Status Enquiry Packet, described Status Enquiry Packet carries with
The identification information that described monitored device is corresponding;
First storage unit, for being saved in monitoring by corresponding with described identification information for the transmission time of described Status Enquiry Packet
In table;
Second storage unit, for after receiving the condition responsive message that described monitored device returns, according to described state
The identification information that response message carries, was saved in the reception time of described condition responsive message in described monitoring table;
Detector unit, for when traveling through described monitoring table according to the default traversal cycle, based on preserve in described monitoring table
The transmission time is with to receive monitored device corresponding to time detecting the most abnormal;
Second transmitting element, for when determining described monitored device exception, is supervised to abnormal within this monitoring cycle again
Control equipment sends Status Enquiry Packet.
Device the most according to claim 6, it is characterised in that described detector unit, including:
First detection sub-unit, for when the reception time corresponding with described monitored device is not empty, calculating described reception
Time and the corresponding time difference sending the time, when described time difference is more than preset difference value, determine that described being monitored sets
Standby abnormal;
Time-triggered protocol subelement, for when the reception time corresponding with described monitored device be sky time, using the detection time as
Reception time corresponding to described monitored device is saved in described monitoring table, and notifies that described first detection sub-unit processes.
Device the most according to claim 7, it is characterised in that described device also includes:
First updating block, is used within this monitoring cycle again after abnormal monitored device sends Status Enquiry Packet,
With the transmission time of the described Status Enquiry Packet resend, update abnormal monitored device described in described monitoring table corresponding
The transmission time;
Second updating block, for receiving the state that described abnormal monitored device returns based on described Status Enquiry Packet
After response message, with the reception time of described condition responsive message, update abnormal monitored device pair described in described monitoring table
The reception time answered;
Described first detection sub-unit, is additionally operable to be later than the transmission time when the reception time corresponding with described abnormal monitored device
Time, calculate described reception time and the corresponding time difference sending the time;
Described time-triggered protocol subelement, is additionally operable to when the reception time corresponding with described abnormal monitored device is early than the transmission time
Time, the detection time was updated in described monitoring table as the reception time that described abnormal monitored device is corresponding, and notifies institute
State the first detection sub-unit to process.
Device the most according to claim 6, it is characterised in that
Described first transmitting element, for according to default monitoring order, sending status request to all monitored devices successively
Message;
Described second transmitting element, for sending status request to all monitored devices successively according to default monitoring order
After message, again send Status Enquiry Packet to described abnormal monitored device.
Device the most according to claim 6, it is characterised in that described device also includes:
3rd storage unit, for described based on described monitoring table in preserve send the time and reception time detecting corresponding
After monitored device is the most abnormal, the equipment state of described monitored device is saved in described monitoring table, described equipment
State includes normal, abnormal;
Described detector unit, being additionally operable to for equipment state is abnormal monitored device, based on the transmission preserved in monitoring table
Abnormal monitored device described in time and reception time detecting is the most abnormal;
Clearing cell, for when this monitoring end cycle, deletes the equipment state of record in described monitoring table.
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 true CN106230658A (en) | 2016-12-14 |
CN106230658B 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) |
Cited By (3)
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 |
CN115914038A (en) * | 2022-11-11 | 2023-04-04 | 中国联合网络通信集团有限公司 | Degradation forwarding equipment detection method, device, equipment and storage medium |
Citations (8)
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 |
US20120159267A1 (en) * | 2010-12-21 | 2012-06-21 | John Gyorffy | Distributed computing system that monitors client device request time and server servicing time in order to detect performance problems and automatically issue alterts |
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 |
-
2016
- 2016-07-25 CN CN201610591223.9A patent/CN106230658B/en active Active
Patent Citations (8)
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 |
US20120159267A1 (en) * | 2010-12-21 | 2012-06-21 | John Gyorffy | Distributed computing system that monitors client device request time and server servicing time in order to detect performance problems and automatically issue alterts |
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 |
Cited By (4)
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 |
CN115914038A (en) * | 2022-11-11 | 2023-04-04 | 中国联合网络通信集团有限公司 | Degradation forwarding equipment detection method, device, equipment and storage medium |
CN115914038B (en) * | 2022-11-11 | 2024-04-09 | 中国联合网络通信集团有限公司 | Degradation forwarding device detection method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106230658B (en) | 2019-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210176143A1 (en) | Monitoring wireless access point events | |
CN101132320B (en) | Method for detecting interface trouble and network node equipment | |
WO2016041525A1 (en) | Associating vxlans with tunnels | |
US20120303790A1 (en) | Host Visibility as a Network Service | |
CN105991412B (en) | Information push method and device | |
TW201543243A (en) | Capability monitoring in a service oriented architecture | |
US11044184B2 (en) | Data packet loss detection | |
CN103763121A (en) | Method and device for quickly issuing network configuration information | |
WO2016107424A1 (en) | Link state detection method, apparatus and system | |
CN107342809B (en) | Service performance monitoring and fault positioning method and device | |
WO2017045433A1 (en) | Method and device for detecting communication state between stations, and storage medium | |
CN106230658A (en) | A kind of method and apparatus monitoring the network equipment | |
CN104468201A (en) | Automatic deleting method and device for offline network equipment | |
WO2017157318A1 (en) | Link discovery method and apparatus | |
CN104348661B (en) | The upload of network failure data, method of reseptance and equipment and recording method and system | |
CN102739462B (en) | Test message sending method and device | |
US11477098B2 (en) | Identification of candidate problem network entities | |
CN110855566B (en) | Method and device for dragging upstream flow | |
US10674337B2 (en) | Method and device for processing operation for device peripheral | |
CN105122776B (en) | Address acquiring method and network virtualization edge device | |
CN104158735A (en) | Network data package distribution method and device | |
WO2016065752A1 (en) | Method and device for detecting link state, and storage medium | |
WO2015120581A1 (en) | Traffic loop detection in a communication network | |
US20190207804A1 (en) | Node fault isolation | |
CN110309027B (en) | APP fault positioning method and device, server and terminal |
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 |