CN111049703A - Network equipment detection method and system - Google Patents
Network equipment detection method and system Download PDFInfo
- Publication number
- CN111049703A CN111049703A CN201911311130.6A CN201911311130A CN111049703A CN 111049703 A CN111049703 A CN 111049703A CN 201911311130 A CN201911311130 A CN 201911311130A CN 111049703 A CN111049703 A CN 111049703A
- Authority
- CN
- China
- Prior art keywords
- network device
- polling
- network equipment
- module
- network
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
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
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- 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
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a network equipment detection method and a system, comprising the following steps: timing according to the preset waiting time; polling each network device to obtain a polling result; judging whether the network equipment responds normally according to the polling result, and if the network equipment responds abnormally, marking the polling failure times and adding 1; and traversing the polling records, judging whether the polling failure times in the polling records are more than or equal to the preset times, if so, generating a fault work order corresponding to the state of the network equipment and reporting the fault work order. The invention has the beneficial effects that: the method can effectively distinguish whether the network equipment in the network works normally or not through multiple polling, and can report the state of the network equipment with problems to the background in time, so that a user can find and process the fault network equipment in time, inconvenience brought to an owner due to the fact that equipment faults cannot be found in time and contact is avoided, and meanwhile labor cost is greatly reduced.
Description
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and a system for detecting a network device.
Background
The community has many devices such as a monitoring camera, an entrance guard and the like, the quality of the devices relates to the normal development of community services, and if the device failure cannot be found in time and maintained, for example, if the monitoring camera fails to record a video, the security or the community can not call the monitoring video because the video needs to be called for safety or other services, the legal risk exists; or the network access control fails, the owner may not enter or exit normally, thereby affecting the satisfaction degree of the resident on the community.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: a method and system for determining the connection status of a network device are provided.
In order to solve the technical problems, the invention adopts the technical scheme that: a network device detection method includes:
s1, timing according to the preset waiting time, and entering the step S2 after timing is finished;
s2, performing polling processing on each network device according to the network device list to obtain a polling result;
s3, judging whether the response of the network equipment is normal according to the polling result, and if the response is not normal, entering the step S4;
s4, marking the polling failure times plus 1 in the polling records of the corresponding network equipment;
s5, traversing the polling records of each network device, judging whether the polling failure times in the polling records are more than or equal to the preset times, if so, entering the step S6;
and S6, resetting the polling failure record of the corresponding network equipment to 0, and generating and reporting a fault work order of the state of the corresponding network equipment.
Further, in step S2, the method further includes:
s21, performing ping processing on each network device in the network device list according to the preset times to obtain a ping result;
and S22, judging whether the corresponding network equipment responds normally according to the ping result, and if not, marking that the response is abnormal in the polling result.
Further, in step S2, the method further includes the steps of: and judging whether the network equipment can actively report the state, and if not, performing polling processing on the equipment.
Further, in step S5, a step of obtaining the number of times of active reporting of the network device is further included.
Further, after the step of obtaining the active reporting times of the network device, the method further includes the step of judging whether the active reporting times of the network device is 0 within a preset time, if so, resetting the active reporting times of the corresponding network device, and generating and reporting a fault work order of the state of the corresponding network device.
The invention also relates to a network equipment detection system, which comprises a timing module, a polling module, a judgment module and a communication module,
the timing module is used for timing according to preset waiting time;
the polling module is used for polling each network device according to the network device list to obtain a polling result;
the judging module is used for judging whether the network equipment responds according to the polling result, judging whether the polling failure times in the polling record are greater than or equal to the preset times, and generating a fault work order;
the communication module is used for connecting with the network equipment and reporting the fault work order of the corresponding network equipment to the background server.
The device further comprises a ping detection module, wherein the ping detection module is used for performing ping processing on each network device in the network device list according to preset times to obtain a ping result, judging whether the corresponding network device responds normally and recording the ping result.
The system further comprises a network equipment screening module, wherein the network equipment screening module is used for judging whether the network equipment actively reports the state.
The system further comprises a reporting frequency counting module, wherein the reporting frequency counting module is used for acquiring the active reporting frequency of the network equipment.
Further, the determining module is further configured to determine whether the number of times that the network device actively reports is 0 within a preset time.
The invention has the beneficial effects that: the method can effectively distinguish whether the network equipment in the network works normally or not through multiple polling, and can report the state of the network equipment with problems to the background in time, so that a user can find and process the fault network equipment in time, inconvenience brought to an owner due to the fact that equipment faults cannot be found in time and contact is avoided, and meanwhile labor cost is greatly reduced.
Drawings
The specific process and structure of the present invention are detailed below with reference to the accompanying drawings:
FIG. 1 is a flow chart illustrating a network device detection method according to the present invention;
fig. 2 is a block diagram of a network device detection system according to the present invention.
Detailed Description
In order to explain technical contents, structural features, and objects and effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Example 1
Referring to fig. 1, a network device detecting method includes:
s1, timing according to the preset waiting time, and entering the step S2 after timing is finished;
the polling waiting time is set on the system, and in order to balance the occupation of network resources and timely discovery of the fault equipment, the polling time interval is set to be 5-10 minutes.
S2, performing polling processing on each network device according to the network device list to obtain a polling result;
when the time interval meets the preset duration, the system sends polling information to each registered network device in the network device list, if the network device responds normally, if the network device does not respond normally, the network device responds abnormally, and the network device which responds abnormally is recorded in a record to form polling result information.
S3, judging whether the response of the network equipment is normal according to the polling result, and if the response is not normal, entering the step S4;
s4, marking the polling failure times plus 1 in the polling records of the corresponding network equipment;
and adding 1 to the polling failure times marked by the network equipment in the polling records of the corresponding network equipment of the system according to the polling result information, and returning to the step S1 to wait for the next polling if the response is normal.
S5, traversing the polling records of each network device, judging whether the polling failure times in the polling records are more than or equal to the preset times, if so, entering the step S6;
the system monitors the polling records of each network device in real time, and when the polling failure times in the polling records of a certain network device are found to be larger than the preset times, the next step of processing is carried out on the network device. If the request is not found, the process returns to step S1 to wait for the next polling process.
And S6, resetting the polling failure record of the corresponding network equipment to 0, and generating and reporting a fault work order of the state of the corresponding network equipment.
The system resets the polling failure times in the polling records corresponding to the network equipment to 0, generates a fault work order according to the state of the network equipment and sends the fault work order to the background server.
In this embodiment, information of the network device needs to be entered into a network device list, the network device list supports incremental addition of information, that is, new network devices can be added at any time in a later period, the information of the network device includes names, positions, network addresses, and the like of the network devices, and the network device list is stored in a background server.
From the above description, the beneficial effects of the present invention are: the method can effectively distinguish whether the network equipment in the network works normally or not through multiple polling, and can report the state of the network equipment with problems to the background in time, so that a user can find and process the fault network equipment in time, inconvenience brought to an owner due to the fact that equipment faults cannot be found in time and contact is avoided, and meanwhile labor cost is greatly reduced.
Example 2
In addition to embodiment 1, in step S2, the method further includes:
s21, performing ping processing on each network device in the network device list according to the preset times to obtain a ping result;
and S22, judging whether the corresponding network equipment responds normally according to the ping result, and if not, marking that the response is abnormal in the polling result.
In this embodiment, the system opens an independent thread for each network device according to the network device list, and pings all the network devices at the same time, so that the process of ping each network device is not affected by other network devices, and as long as a return value of ping is not received, it can be determined that the corresponding network device responds abnormally. Preferably, each network device is ping4 times, so that the accuracy of system judgment can be ensured.
Example 3
On the basis of embodiment 2, in step S2, the method further includes the steps of: and judging whether the network equipment can actively report the state, and if not, performing polling processing on the equipment.
The new network device can report the state to the system independently, so that the network device corresponding to the active ping of the system is not needed, and when the network device is recorded into the network device list, whether the network device can report the state independently can be marked, thereby reducing the occupation of system resources and saving the network bandwidth.
Example 4
On the basis of embodiment 3, in step S5, the method further includes a step of acquiring the number of times of active reporting of the network device.
In this embodiment, since the new network device can report the state autonomously, the system can know the state of the network device only by using the counting resource to count the number of reporting times for the new network device.
For a new network device, it is preferable to set that heartbeat information is sent once in 5 minutes, and if the heartbeat information is not received for 15 minutes continuously, the network device is considered to have a problem.
Example 5
On the basis of embodiment 4, after the step of obtaining the active reporting times of the network device, the method further includes a step of judging whether the active reporting times of the network device is 0 within a preset time, and if so, resetting the active reporting times of the corresponding network device, and generating and reporting a fault work order corresponding to the state of the network device.
In this embodiment, since the network device actively reporting the status sends the reported status information at intervals, when the system does not receive the reported status information from the network device within a period of time, it may be considered that the network device has a fault, and the system generates a fault work order from the status information of the network device and sends the fault work order to the background server.
Example 6
Referring to fig. 2, the present invention further relates to a network device detecting system, which includes a timing module, a polling module, a determining module and a communication module,
the timing module is used for timing according to preset waiting time, and when countdown is finished, the timing module sends a polling signal to the polling module and starts a new round of timing;
the polling module is used for polling each network device according to the network device list to obtain a polling result, reading the network device list in the storage module after receiving a polling signal, sending the polling signal according to each network device address recorded in the network device list, and generating the polling result according to the polling condition after receiving a polling feedback signal in a specified time period;
the judging module is used for judging whether the network equipment responds according to the polling result, judging whether the polling failure times in the polling record are greater than or equal to the preset times, and clearing the polling failure times of the corresponding network equipment in the polling record and generating a fault work order according to the state of the network equipment when the judging module finds that the polling failure times of the network equipment exceed the preset value;
the communication module is used for connecting with the network equipment and reporting the fault work order of the corresponding network equipment to the background server.
In this embodiment, the system further includes a storage module, where information of the network device needs to be recorded into a network device list and stored in the storage module, the network device list supports incremental addition of information, that is, new network devices can be added at any time in a later period, and the information of the network device includes names, locations, network addresses, and the like of the network devices.
Example 7
On the basis of the embodiment 6, the network device further comprises a ping detection module, wherein the ping detection module is used for performing ping processing on each network device in the network device list according to preset times to obtain a ping result, judging whether the corresponding network device responds normally and recording the ping result.
In this embodiment, the system detects each network device in the network device list through the ping detection module, and when a ping action is executed, the system opens a thread for each network device separately and pings all the network devices at the same time, so that each network device is not affected by other network devices when the ping detection module pings the network devices.
Preferably, each network device is ping4 times, and if the return value of ping cannot be received 4 times, the corresponding network device is considered to be failed.
Example 8
On the basis of embodiment 7, the system further includes a network device screening module, where the network device screening module is configured to determine whether the network device actively reports the status.
In this embodiment, the new network device may report the status autonomously, that is, the new network device may send heartbeat information to the system itself, and such products do not need the system to ping the new network device, so that the network device screening module reads the network device list in advance and informs the polling module which network devices do not need to activate dedicated threads for ping, and resources occupied by the system may be effectively saved.
Example 9
On the basis of the embodiment 8, the network device further includes a reporting frequency counting module, where the reporting frequency counting module is configured to obtain the active reporting frequency of the network device.
In this embodiment, the reporting number counting module may obtain active reporting information of the network device, and determine the working state of the network device that will actively report the state in the network device list according to the active reporting information.
Example 10
On the basis of embodiment 9, the determining module is further configured to determine whether the number of times that the network device actively reports is 0 within a preset time.
In this embodiment, since the network device that actively reports the status sends the reporting status information at intervals, when the system does not receive the reporting status information from the network device within a period of time, it may be considered that the network device has a fault, and the system generates a fault work order from the status information of the network device and sends the fault work order to the background server.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (10)
1. A network device detection method includes:
s1, timing according to the preset waiting time, and entering the step S2 after timing is finished;
s2, performing polling processing on each network device according to the network device list to obtain a polling result;
s3, judging whether the response of the network equipment is normal according to the polling result, and if the response is not normal, entering the step S4;
s4, marking the polling failure times plus 1 in the polling records of the corresponding network equipment;
s5, traversing the polling records of each network device, and judging whether the polling failure times in the polling records are more than or equal to the preset times, then entering the step S6;
and S6, resetting the polling failure record of the corresponding network equipment to 0, and generating and reporting a fault work order of the state of the corresponding network equipment.
2. The network device detection method of claim 1, wherein: in step S2, the method further includes:
s21, performing ping processing on each network device in the network device list according to the preset times to obtain a ping result;
and S22, judging whether the corresponding network equipment responds normally according to the ping result, and if not, marking that the response is abnormal in the polling result.
3. The network device detection method of claim 2, wherein: in step S2, the method further includes the steps of: and judging whether the network equipment can actively report the state, and if not, performing polling processing on the equipment.
4. The network device detection method of claim 3, wherein: in step S5, the method further includes a step of obtaining the number of times of active reporting of the network device.
5. The network device detection method of claim 4, wherein: after the step of obtaining the active reporting times of the network equipment, the method also comprises the step of judging whether the active reporting times of the network equipment is 0 within the preset time, if so, the active reporting times of the corresponding network equipment are cleared, the state of the corresponding network equipment is reported, and a fault work order is generated.
6. A network device detection system, characterized by: comprises a timing module, a polling module, a judging module and a communication module,
the timing module is used for timing according to preset waiting time;
the polling module is used for polling each network device according to the network device list to obtain a polling result;
the judging module is used for judging whether the network equipment responds according to the polling result, judging whether the polling failure times in the polling record are greater than or equal to the preset times, and generating a fault work order;
the communication module is used for connecting with the network equipment and reporting the fault work order of the corresponding network equipment to the background server.
7. The network device detection system of claim 6, wherein: the device also comprises a ping detection module, wherein the ping detection module is used for carrying out ping processing on each network device in the network device list according to preset times to obtain a ping result, judging whether the corresponding network device responds normally and recording the ping result.
8. The network device detection system of claim 7, wherein: the network equipment screening module is used for judging whether the network equipment can actively report the state.
9. The network device detection system of claim 8, wherein: the system also comprises a reporting frequency counting module, wherein the reporting frequency counting module is used for acquiring the active reporting frequency of the network equipment.
10. The network device detection system of claim 9, wherein: the judging module is further configured to judge whether the number of times that the network device actively reports is 0 within a preset time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911311130.6A CN111049703A (en) | 2019-12-18 | 2019-12-18 | Network equipment detection method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911311130.6A CN111049703A (en) | 2019-12-18 | 2019-12-18 | Network equipment detection method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111049703A true CN111049703A (en) | 2020-04-21 |
Family
ID=70237166
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911311130.6A Pending CN111049703A (en) | 2019-12-18 | 2019-12-18 | Network equipment detection method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111049703A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113595808A (en) * | 2020-04-30 | 2021-11-02 | 中国移动通信集团广东有限公司 | Work order quality inspection method, system and server |
CN114180065A (en) * | 2020-11-05 | 2022-03-15 | 北星空间信息技术研究院(南京)有限公司 | Method for throwing plug-in accessories of plant protection type unmanned aerial vehicle |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104394009A (en) * | 2014-10-29 | 2015-03-04 | 中国建设银行股份有限公司 | Fault information processing method and device |
CN106411655A (en) * | 2016-11-04 | 2017-02-15 | 合肥工业大学 | Communication processing method based on state diagnosis of serial communication equipment |
CN106817280A (en) * | 2017-01-20 | 2017-06-09 | 山东大学 | The control end clocking method and system of a kind of internet of things equipment |
CN107171900A (en) * | 2017-07-25 | 2017-09-15 | 郑州云海信息技术有限公司 | The acquisition methods and system of a kind of node running status |
-
2019
- 2019-12-18 CN CN201911311130.6A patent/CN111049703A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104394009A (en) * | 2014-10-29 | 2015-03-04 | 中国建设银行股份有限公司 | Fault information processing method and device |
CN106411655A (en) * | 2016-11-04 | 2017-02-15 | 合肥工业大学 | Communication processing method based on state diagnosis of serial communication equipment |
CN106817280A (en) * | 2017-01-20 | 2017-06-09 | 山东大学 | The control end clocking method and system of a kind of internet of things equipment |
CN107171900A (en) * | 2017-07-25 | 2017-09-15 | 郑州云海信息技术有限公司 | The acquisition methods and system of a kind of node running status |
Non-Patent Citations (1)
Title |
---|
程晓军 等: "轮询与主动上报混合的网络管理通信系统设计与实现", 《微计算机信息》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113595808A (en) * | 2020-04-30 | 2021-11-02 | 中国移动通信集团广东有限公司 | Work order quality inspection method, system and server |
CN113595808B (en) * | 2020-04-30 | 2023-07-11 | 中国移动通信集团广东有限公司 | Work order quality inspection method, system and server |
CN114180065A (en) * | 2020-11-05 | 2022-03-15 | 北星空间信息技术研究院(南京)有限公司 | Method for throwing plug-in accessories of plant protection type unmanned aerial vehicle |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100536403C (en) | Method and equipment of intelligent patrol detection for communication network | |
CN101800675B (en) | Failure monitoring method, monitoring equipment and communication system | |
US20080104285A1 (en) | Method and system for monitoring device port | |
CN102740112B (en) | Method for controlling equipment polling based on video monitoring system | |
CN106789445B (en) | Status polling method and system for network equipment in broadcast television network | |
CN111049703A (en) | Network equipment detection method and system | |
CN107294767B (en) | Live broadcast network transmission fault monitoring method and system | |
CN107426051B (en) | The monitoring method of the working condition of distributed cluster system interior joint, apparatus and system | |
US10033807B2 (en) | Method and M2M gateway for managing data of terminal peripheral | |
CN114118991A (en) | Third-party system monitoring system, method, device, equipment and storage medium | |
CN113783749A (en) | Method for detecting equipment fault based on network port | |
GB2452025A (en) | Alarm event management for a network with alarm event storm detection and management mode | |
CN108234658B (en) | Method and device for sensing health condition of server cluster and server | |
US10674337B2 (en) | Method and device for processing operation for device peripheral | |
CN111181763A (en) | Network fault reporting method and device | |
CN110521233B (en) | Method for identifying interrupt, access point, method for remote configuration, system and medium | |
CN110294382A (en) | Fault handling method and relevant device based on elevator call plate | |
CN114500178B (en) | Self-operation intelligent Internet of things gateway | |
CN113727210B (en) | Equipment information management method, system, storage medium and equipment | |
CN115495309A (en) | Database server IO processing method and device sharing storage server | |
KR100500836B1 (en) | Fault management system of metro ethernet network and method thereof | |
US20100153543A1 (en) | Method and System for Intelligent Management of Performance Measurements In Communication Networks | |
CN114090293A (en) | Service providing method and electronic equipment | |
CN110365936B (en) | Code stream obtaining method, device and system | |
CN107864057B (en) | Online automatic checking and alarming method based on networking state |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200421 |