A kind of network equipment failure alignment system, method and deviceTechnical field
The present invention relates to communication technical field, more particularly to a kind of network equipment failure alignment system, method and device.
Background technology
In the wireless network, the network equipment in network is it is possible that failure, in order to ensure that wireless network can be normalOperation is, it is necessary to carry out fault detect to the network equipment, the failure of quick locating network device, this is for improving the network equipmentReliability is very important.It is existing mainly to have following two ways to network equipment failure positioning:
First way:By the way of external fault detection and localization.Webmastering software on outside terminal device passes throughSimple Network Management Protocol (SNMP, Simple Network Management Protocol) is communicated with measurement equipment to be checkedConnection, webmastering software can by measurement equipment to be checked send data acquisition request, come collect the abnormal log of measurement equipment to be checked,The information such as CPU, internal memory, interface send and receive packets, and the information being collected into is supplied to webmaster personnel, webmaster personnel enter to these informationRow is analyzed so as to position failure.Failure is positioned due to manually participating in the analysis to bulk information, containing much information to occurThe situation of missing inspection so that the fault message of collection is imperfect so that the reliability and accuracy of fault location are poor.Also, ifWebmaster personnel have found there is warning information in the information being collected into, and corresponding to the warning information be currently running shouldWith webmaster personnel can not further detect to the application being currently running, and can not go deep into detecting system failure.In addition, webmasterThe premise that software treats detection device progress fault detect is that network service is normal, once there is significant trouble in measurement equipment to be checked,System will be caused unavailable, now this positioning method failure.
The second way:By the way of internal fault detection and localization.Increase fault detect mould in device interior to be detectedBlock, internal processes generate corresponding journal file when running, and fault detection module collector journal file is simultaneously quantitatively sent by the cycleJournal file is carried out analysis to journal file by webmaster personnel and determines failure to Network Management Equipment.Due to by fault detection module sheetThe limitation of body performance, the log information that fault detection module is collected is imperfect, and log information analysis also occurs webmaster personnelThe situation of missing inspection, again such that the reliability and accuracy of fault location are poor.
The content of the invention
The embodiment of the present invention provides a kind of network equipment failure alignment system, method and device, to solve prior artPresent in network equipment failure reliability of positioning and the problem of accuracy difference.
The embodiment of the present invention provides a kind of network equipment failure alignment system, including:Detection module, communication module, informationCollection module and signal judgement module, wherein:
Information, the event occur for the detection module, the failure for monitoring and the measurement equipment to be checked for itself establishing connectionInformation occurs for barrier to characterize the information whether measurement equipment to be checked breaks down;Event occurs when listening to the measurement equipment to be checkedDuring barrier, triggering command, the collection module work of instruction described information are sent to described information collection module;
The communication module, for the triggering command for forwarding the detection module to be sent to described information collection module;
Described information collection module, for after the triggering command of the detection module is received, by with multiple networksThe failure relevant information that interface collects the measurement equipment to be checked is collected in the order of level;The failure relevant information that will be collected intoIt is sent to described information judge module;
Described information judge module, for receiving the failure relevant information of described information collection module transmission;By instituteFailure relevant information is stated compared with the default fault location information preserved in the fault detection module;According to defaultFault location information in, contrast obtain fault location information corresponding with the failure relevant information, determine failure problems.
By said system provided in an embodiment of the present invention, received due to collecting interface by the order with multiple network levelsCollect the failure relevant information of measurement equipment to be checked, realize automatically collecting failure relevant information, and realize multiple InternetsOne key of level information is collected, and the information of collection is more complete, without the artificial collection for participating in failure relevant information, avoids informationMissing inspection and fault location erroneous judgement, so as to improve the network equipment positioning reliability and accuracy.
Further, described information judge module, specifically for by the failure relevant information and the fault detectBefore the default fault location information preserved in module is compared, pre-filtering processing is carried out to the failure relevant information.
Further, described information judge module, specifically for it is determined that after failure problems, according to the failure pre-setGrade, it is determined that whether handling the failure problems;The result of determination is sent to the detection module and carries out phaseThe processing answered.
Further, the measurement equipment to be checked is wireless Linux embedded systems.
Further, interface is collected in the order of the multiple network level includes bottom order collection interface, protocol layer lifeInterface is collected in order and interface is collected in system layer order.
The embodiment of the present invention additionally provides a kind of network equipment failure localization method, including:
Information occurs for the failure for monitoring the measurement equipment to be checked with itself establishing connection, and information occurs for the failure to characterize instituteState the information whether measurement equipment to be checked breaks down;
When listening to the device fails to be detected, interface is collected by the order with multiple network levels and collectedThe failure relevant information of the measurement equipment to be checked;
By the failure relevant information compared with default fault location information;
According in default fault location information, contrast obtains fault location letter corresponding with the failure relevant informationBreath, determines failure problems.
By the above method provided in an embodiment of the present invention, received due to collecting interface by the order with multiple network levelsCollect the failure relevant information of measurement equipment to be checked, realize automatically collecting failure relevant information, and realize multiple InternetsOne key of level information is collected, and the information of collection is more complete, without the artificial collection for participating in failure relevant information, avoids informationMissing inspection and fault location erroneous judgement, so as to improve the network equipment positioning reliability and accuracy.
Further, the above method, in addition to:
It is related to the failure to believe before by the failure relevant information compared with default fault location informationBreath carries out pre-filtering processing.
Further, interface is collected in the order of the multiple network level includes bottom order collection interface, protocol layer lifeInterface is collected in order and interface is collected in system layer order.
The embodiment of the present invention additionally provides a kind of network equipment failure positioner, including:
Information, the failure hair occur for monitoring unit, the failure for monitoring the measurement equipment to be checked with itself establishing connectionThe information whether raw information breaks down for the sign measurement equipment to be checked;
Collector unit, for when listening to the device fails to be detected, passing through the life with multiple network levelsThe failure relevant information that interface collects the measurement equipment to be checked is collected in order;
Comparing unit, for by the failure relevant information compared with default fault location information;
Determining unit, for according in default fault location information, contrast to obtain and the failure relevant information pairThe fault location information answered, determines failure problems.
By said apparatus provided in an embodiment of the present invention, received due to collecting interface by the order with multiple network levelsCollect the failure relevant information of measurement equipment to be checked, realize automatically collecting failure relevant information, and realize multiple InternetsOne key of level information is collected, and the information of collection is more complete, without the artificial collection for participating in failure relevant information, avoids informationMissing inspection and fault location erroneous judgement, so as to improve the network equipment positioning reliability and accuracy.
Further, said apparatus, in addition to:
Filter element, it is right for before by the failure relevant information compared with default fault location informationThe failure relevant information carries out pre-filtering processing.
Further, interface is collected in the order of the multiple network level includes bottom order collection interface, protocol layer lifeInterface is collected in order and interface is collected in system layer order.
Other features and advantage will illustrate in the following description, also, partly become from specificationObtain it is clear that or being understood by implementing the application.The purpose of the application and other advantages can be by the explanations writeSpecifically noted structure is realized and obtained in book, claims and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, implements with the present inventionExample is used to explain the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the structural representation of network equipment failure alignment system provided in an embodiment of the present invention;
Fig. 2 is the flow chart for the network equipment failure localization method that the embodiment of the present invention 1 provides;
Fig. 3 is the structural representation for the network equipment failure positioner that the embodiment of the present invention 2 provides.
Embodiment
In order to provide the implementation of the reliability and accuracy that improve network equipment positioning, the embodiments of the invention provideA kind of network equipment failure alignment system, method and device, the preferred embodiments of the present invention are entered below in conjunction with Figure of descriptionRow explanation, it will be appreciated that preferred embodiment described herein is merely to illustrate and explain the present invention, and is not used to limit this hairIt is bright.And in the case where not conflicting, the feature in embodiment and embodiment in the application can be mutually combined.
The embodiment of the present invention provides a kind of network equipment failure alignment system, as shown in figure 1, including:Detection module 101,Communication module 102, information collection module 103 and signal judgement module 104, wherein:
Information, the failure occur for detection module 101, the failure for monitoring the measurement equipment to be checked with itself establishing connectionInformation occurs to characterize the information whether measurement equipment to be checked breaks down;When listening to the device fails to be detectedWhen, send triggering command, the collection module work of instruction described information to described information collection module;
Communication module 102, for the triggering command for forwarding the detection module to be sent to described information collection module;
Information collection module 103, for after the triggering command of the detection module is received, by with multiple InternetsThe failure relevant information that interface collects the measurement equipment to be checked is collected in the order of level;The failure relevant information being collected into is sent outGive described information judge module;
Signal judgement module 104, for receiving the failure relevant information of described information collection module transmission;By described inFailure relevant information is compared with the default fault location information preserved in the fault detection module;According to defaultIn fault location information, contrast obtains fault location information corresponding with the failure relevant information, determines failure problems.
In the embodiment of the present invention, after the startup of network equipment failure alignment system, detection module is loaded automatically, and complete eventThe loading of environmental variance, required environmental variance include needed for barrier detection:TCLSH environmental variances, measurement equipment to be checked environmental variance,The variables such as the information monitoring checkpoint of measurement equipment to be checked.Detection module with measurement equipment each group part internal interface to be checked by being disappearedThe foundation of pipeline is ceased, i.e., establishes and connects with measurement equipment to be checked.Upon establishment of a connection, each component in measurement equipment to be checked is specifically monitoredSituations such as process and system variable.Because detection module is while listening for multiple components of measurement equipment to be checked, do not found monitoringDuring failure, network equipment failure alignment system normal operation.If the component failure of measurement equipment to be checked, the component passes through interiorPortion's interface sends failure to detection module and information occurs, and the failure occurs whether information representation measurement equipment to be checked breaks down.InspectionModule is surveyed after information occurs for the failure for listening to the component, triggering information collection module collects the component associated process and changeInformation is measured, can reflect whether break down by the situation of component associated process and variable information, component is related hereProcess and variable information are failure relevant information.
Further, signal judgement module 104, specifically for by the failure relevant information and the fault detect mouldBefore the default fault location information preserved in block is compared, pre-filtering processing is carried out to the failure relevant information.
Further, signal judgement module 104, specifically for it is determined that after failure problems, according to the failure pre-setProcessing mode corresponding to grade, the failure problems are handled accordingly.
It is to allow model due to there is the problem of some fault levels are relatively low to be handled in the embodiment of the present inventionWithin enclosing, therefore fault level is pre-set, it is relatively low the failure in allowed band can be correspondingly arranged fault level.
Further, the measurement equipment to be checked is wireless Linux embedded systems.
Network equipment failure alignment system in the embodiment of the present invention can be applied in wireless Linux embedded systems, rightEach systemic hierarchial component in wireless Linux embedded systems carries out fault location, because network equipment failure alignment system is realIt is the process of Linux independent operatings on present built-in Linux, independently of system to be detected, therefore even if examining system to be checkedThere is significant trouble, network equipment failure alignment system still can be with independent operating.
Further, interface is collected in the order of the multiple network level includes bottom order collection interface, protocol layer lifeInterface is collected in order and interface is collected in system layer order.
Due to being collected by the failure relevant information from protocol layer to bottom from top to down, go out so as to comprehensively collect failureComplete information in the case of existing so that fault location is more accurate.
By said system provided in an embodiment of the present invention, received due to collecting interface by the order with multiple network levelsCollect the failure relevant information of measurement equipment to be checked, realize automatically collecting failure relevant information, and realize multiple InternetsOne key of level information is collected, and the information of collection is more complete, without the artificial collection for participating in failure relevant information, avoids informationMissing inspection and fault location erroneous judgement, so as to improve the network equipment positioning reliability and accuracy.
Below in conjunction with the accompanying drawings, method and device provided by the invention is described in detail with specific embodiment.
Embodiment 1:
Based on same inventive concept, the network equipment failure alignment system provided according to the above embodiment of the present invention, accordinglyGround, the embodiment of the present invention 1 additionally provides a kind of network equipment failure localization method, with reference to the modules in the system, with thisMethod be applied to wireless Linux embedded systems exemplified by, the embodiment of the present invention 1 provide this method flow chart as shown in Fig. 2Specifically include:
Information occurs for the failure that step 201, detection module monitor the measurement equipment to be checked with itself establishing connection.
In this step, the loading detection module, and environment needed for load fault detection automatically after activation system is positionedVariable, required environmental variance include:TCLSH environmental variances, the environmental variance of measurement equipment to be checked, the information monitoring of measurement equipment to be checkedThe variables such as checkpoint.Detection module is by the foundation with measurement equipment each group part internal interface to be checked progress message pipeline, i.e., with treatingDetection device is established by communication module and connected.
Wherein, whether the failure generation information representation measurement equipment to be checked breaks down.I.e. the failure occur information beFor informing the detection module device fails to be detected, but what specific failure or unknown.
Specifically, with the WAP of the control in wireless Linux embedded systems and configuration protocol (CAPWAP,Control And Provisioning of Wireless Access Points Protocol Specification) groupExemplified by part tunnel abnormal interrupt.When the tunnel abnormal interrupt of CAPWAP components, CAPWAP components are by the interface of inside byDetection module is sent to after disconnected message packing, the message of the terminal is that information occurs for failure.
Step 202, when detection module listens to the device fails to be detected, to information collection module send triggerInstruction.
Specifically, after detection module listens to the fault occurrence message of CAPWAP components transmission, to information collection moduleTriggering command is sent, triggering information collection module is come into force, and the letter of CAPWAP component failures can be carried in triggering commandBreath, configured information collection module collect failure relevant information.The triggering command that detection module is sent to information collection module be byCommunication module forwarding.Wherein, the failure relevant information is the process related to the CAPWAP components and the information of variable, thisA little information can reflect the situation of the CAPWAP component failures.
Step 203, information collection module are collected interface by the order with multiple network levels and received according to the triggering commandCollect the failure relevant information of measurement equipment to be checked.
Wherein, the order of multiple network levels collects interface and collects and connect including bottom order collection interface, protocol layer orderInterface is collected in mouth and system layer order.
Specifically, information collection module collects the related process of CAPWAP components and the information of variable, information mouldThe associated process and variable for the component that block can also be associated to CAPWAP components carry out information.Information collection module passes throughModule configuration information is checked, DHCP table item is checked, checks CAPWAP tunnel state, check Ethernet interface state, check bottomCAPWAP activation bits and bottom packet sending and receiving situation is checked, failure is carried out according to the order of each layer protocol of network from top to downThe collection of relevant information.
Due to being collected by the failure relevant information from protocol layer to bottom from top to down, go out so as to comprehensively collect failureComplete information in the case of existing, enables to fault location more accurate.
The failure relevant information being collected into occurs to signal judgement module for step 204, information collection module.
Step 205, the signal judgement module carry out pre-filtering processing to the failure relevant information received.
In this step, signal judgement module carries out pre-filtering processing to failure relevant information, and it is useless can first to filter someRelevant information.
Step 206, the signal judgement module carry out the failure relevant information after filtering and default fault location informationCompare.
In this step, default fault location information can be configured according to practical experience, specifically, can set notSame fault location information corresponds to different types of failure problems, or the failure problems of corresponding different components.
According in default fault location information, contrast obtains letter related to failure for step 207, the signal judgement moduleFault location information corresponding to breath, determines failure problems.
Further, the signal judgement module determines fault level corresponding to the failure problems it is determined that after failure problems,And the processing mode according to corresponding to the fault level pre-set, the failure problems are handled accordingly.Due to havingThe problem of fault level is relatively low need not be handled, and be within allowed band, therefore pre-set fault level, can be withIt is relatively low that failure in allowed band is correspondingly arranged fault level.
Detection module, information collection module and signal judgement module in the embodiment of the present invention can be operated in TCL scriptsIn running environment, but TCL scripts are not limited to, can also be realized using other such as Python, Perl scripts.
By the above method provided in an embodiment of the present invention, received due to collecting interface by the order with multiple network levelsCollect the failure relevant information of measurement equipment to be checked, realize automatically collecting failure relevant information, and realize multiple InternetsOne key of level information is collected, and the information of collection is more complete, without the artificial collection for participating in failure relevant information, avoids informationMissing inspection and fault location erroneous judgement, so as to improve the network equipment positioning reliability and accuracy.
Embodiment 2:
Based on same inventive concept, the network equipment failure localization method provided according to the above embodiment of the present invention, accordinglyGround, the embodiment of the present invention 2 additionally provide a kind of network equipment failure positioner, and its structural representation is as shown in figure 3, specific bagInclude:
Information, the failure occur for monitoring unit 301, the failure for monitoring the measurement equipment to be checked with itself establishing connectionInformation occurs to characterize the information whether measurement equipment to be checked breaks down;
Collector unit 302, for when listening to the device fails to be detected, by with multiple network levelsThe failure relevant information that interface collects the measurement equipment to be checked is collected in order;
Comparing unit 303, for by the failure relevant information compared with default fault location information;
Determining unit 304, for according in default fault location information, contrast to obtain and the failure relevant informationCorresponding fault location information, determines failure problems.
Further, filter element 305, for being carried out by the failure relevant information and default fault location informationBefore comparing, pre-filtering processing is carried out to the failure relevant information.
Further, interface is collected in the order of the multiple network level includes bottom order collection interface, protocol layer lifeInterface is collected in order and interface is collected in system layer order.
The respective handling step that the function of above-mentioned each unit may correspond in flow shown in Fig. 2, will not be repeated here.
To sum up, scheme provided in an embodiment of the present invention, including:Detection module, communication module, information collection module and informationJudge module, wherein:Information, failure occur for detection module, the failure for monitoring the measurement equipment to be checked with itself establishing connectionInformation occurs to characterize the information whether measurement equipment to be checked breaks down;When listening to device fails to be detected, Xiang XinCease collection module and send triggering command;Communication module, for the triggering command for forwarding detection module to be sent to information collection module;Information collection module, for after the triggering command of detection module is received, being collected and being connect by the order with multiple network levelsMouth collects the failure relevant information of measurement equipment to be checked;The failure relevant information being collected into is sent to signal judgement module;InformationJudge module, the failure relevant information sent for receive information collection module;By failure relevant information and fault detection moduleThe default fault location information of middle preservation is compared;According in default fault location information, contrast obtains and failureFault location information corresponding to relevant information, determines failure problems.Using scheme provided in an embodiment of the present invention, network is improvedThe reliability and accuracy of equipment positioning.
The network equipment failure positioner that embodiments herein is provided can be realized by computer program.This areaTechnical staff is it should be appreciated that above-mentioned Module Division mode is only one kind in numerous Module Division modes, if division, all should be the application's as long as network equipment failure positioner has above-mentioned function for other modules or non-division moduleWithin protection domain.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program productFigure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagramJourney and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be providedThe processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produceA raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for realThe device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spyDetermine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring toMake the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram orThe function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that countedSeries of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer orThe instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram oneThe step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present inventionGod and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologiesWithin, then the present invention is also intended to comprising including these changes and modification.