[go: up one dir, main page]

CN102811143A - Method and device for monitoring failure of data link layer, and network equipment - Google Patents

Method and device for monitoring failure of data link layer, and network equipment Download PDF

Info

Publication number
CN102811143A
CN102811143A CN2012102607664A CN201210260766A CN102811143A CN 102811143 A CN102811143 A CN 102811143A CN 2012102607664 A CN2012102607664 A CN 2012102607664A CN 201210260766 A CN201210260766 A CN 201210260766A CN 102811143 A CN102811143 A CN 102811143A
Authority
CN
China
Prior art keywords
monitoring
interface
legitimacy
message
information
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
Application number
CN2012102607664A
Other languages
Chinese (zh)
Inventor
郑德辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2012102607664A priority Critical patent/CN102811143A/en
Publication of CN102811143A publication Critical patent/CN102811143A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention discloses a method and a device for monitoring a failure of a data link layer, and network equipment. According to the embodiment of the invention, a monitoring result is obtained by monitoring the legality and operation process of service operation in the data link layer, and is compared with a preset operation rule to obtain failure information, namely the failure of the data link layer is positioned by monitoring the legality and operation process of the service operation in the data link layer, so that failure positioning efficiency and accuracy can be improved to solve the problem of low processing efficiency of the failure of the data link layer in the prior art.

Description

Data link layer fault monitoring method and device, the network equipment
Technical field
The present invention relates to data communication field, particularly, relate to a kind of data link layer fault monitoring method and device, the network equipment.
Background technology
At present, to the user diversified service is provided, will have related to the many levels among the OSI when realizing these services based on the communication system of the Internet.For example, when the user provided data exchange service, the process of exchanges data will relate to through application layer and obtain the data that the user provides, and carries out protocol analysis through network layer based on the communication system of the Internet, realized transfer of data through link layer.
Link layer is in the procotol bottom, generally includes in the operating system NIC corresponding in the device driver and computer.But link layer is pressed business dividing data link layer and driving/switch software support (SSP, Switch Software Support) layer again, and concrete structure is as shown in Figure 1.
As shown in Figure 1, in communication process, data link layer 11 can be carried out with driving/SSP layer 12, operating system platform 13 and network layer 14 alternately.The business module of data link layer 11 itself is more; Inner interactive maintenance is also complicated; Integral body is divided into service quality (QOS; Quality of Service) module 111, bridge module 112, controller management module 113, interface management module 114, link protocol module 115; Main interface comprises: switch virtual interface (SVI; Switch Virtual Interface) mouthful eat dishes without rice or wine (NULL mouth), local loopback interface (Loopback mouth), link (Tunnel) mouthful, exchange mouthful,, mouth, asynchronous serial interface, Ethernet interface, gigabit mouth, 10,000,000,000 mouthfuls or the like synchronously; The main agreement that data link layer relates to comprises: the point-to-point protocol of the Internet (PPP, Point-to-Point Protocol), SLIP (SLIP, Serial Line Internet Protocol), X.25, integrated services digital network (ISDN; Integrated Services Digital Network), 802.1d/802.1q, High-Level Data Link Control (HDLC, High-Level Data Link Contro) or the like.
When data link layer 11 breaks down, need usually to coordinate in many ways finally to orient the fault point.The conventional fault location technology is: according to the Debugging message that is provided by operating system platform 13; The technical staff confirms the compilation address that possibly make mistakes and the function that possibly make mistakes; Judge through many wheels to above-mentioned information; After coordinating the location, just now can problem identificatioin possibly be that which business module in the data link layer 11 causes.The developer makes a concrete analysis of this business module more then, sets Debugging message layer by layer, rule of thumb judges the place of makeing mistakes not to be to come from this business module if testing result is a problem, then need position analysis again.
Example 1: data link layer is responsible for the establishment of various interface; Transmit with the reception of message; Mechanism down at present; Establishment, revision, deletion, the state variation of each class interface (SVI mouth, NULL mouth, Loopback mouth, Tunnel mouth, exchange mouthful, mouth, asynchronous serial interface, Ethernet interface, gigabit mouth, 10,000,000,000 mouthfuls etc.) are synchronously all handled by each business module of data link layer.When a physical interface occurs can only following the tracks of judgement layer by layer through concrete service code through the developer when unusual, can't judge fast that interface creates success or not.
Example 2: data link layer is responsible for the reception and the forwarding of all kinds of messages; Comprise the message that is uploaded to the SSP layer in these messages altogether, be forwarded to the message of transport network layer, message that directly is forwarded to link layer or the like is also arranged; At present whether message correctly arrives, or the validity of message, all relevant with the concrete business module of data link layer; When a concrete professional appearance is unusual; Can only follow the tracks of judgement layer by layer through concrete service code through the developer, can't judge the packet sending and receiving success or not fast, and reason that goes wrong and node.
It is thus clear that at present conventional data link layer FLT is bound with concrete business, the technical staff who needs related service when solving fault is according to concrete service logic or business processing flow, progressively or the localization of faults successively.The obvious inefficiency of this fault handling method.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of data link layer fault monitoring method and device, the network equipment, in order to solve the problem of deal with data link layer fault inefficiency in the prior art.
Embodiment of the invention technical scheme is following:
A kind of data link layer fault monitoring method comprises: the legitimacy of business operation and operating process in the Monitoring Data link layer, obtain monitoring result, and said monitoring result comprises operation types sign of being monitored and the object information of operating; Corresponding operation rules in said monitoring result and the predetermined operations database is compared, obtain fault message; Wherein, comprise many operation ruless in the said operating database, every operation rules comprises the normal object information and the abnormal results information of a kind of operation types sign and this operation.
A kind of data link layer fault monitoring device comprises: monitoring modular, be used for the legitimacy and the operating process of Monitoring Data link layer business operation, and obtain monitoring result, said monitoring result comprises operation types sign of being monitored and the object information of operating; Operating database is used to store many operation ruless, and wherein, every operation rules comprises the normal object information and the abnormal results information of a kind of operation types sign and this operation; The contrast module, the monitoring result and the corresponding operation rules of predetermined operations database that are used for said monitoring modular is obtained compare, and obtain fault message.
A kind of network equipment comprises aforesaid data link layer fault monitoring device.
The embodiment of the invention is through the legitimacy and the operating process of business operation in the Monitoring Data link layer; Obtain monitoring result, monitoring result and predetermined operations rule are compared, obtain fault message; Also promptly pass through the legitimacy and the operating process of business operation in the Monitoring Data link layer; Realization can improve the efficient and the accuracy of fault location to the fault location of data link layer, thereby can solve the problem of deal with data link layer fault inefficiency in the prior art.
Other features and advantages of the present invention will be set forth in specification subsequently, and, partly from specification, become obvious, perhaps understand through embodiment of the present invention.The object of the invention can be realized through the structure that in the specification of being write, claims and accompanying drawing, is particularly pointed out and obtained with other advantages.
Description of drawings
Fig. 1 is the structured flowchart of data link layer in the prior art;
The workflow diagram of the data link layer fault monitoring method that Fig. 2 provides for the embodiment of the invention;
The structured flowchart of the data link layer fault monitoring device that Fig. 3 provides for the embodiment of the invention;
The preferred structure block diagram of the data link layer fault monitoring device that Fig. 4 provides for the embodiment of the invention;
The data structure sketch map of the operation rules that Fig. 5 provides for the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing embodiments of the invention are described, should be appreciated that embodiment described herein only is used for explanation and explains the present invention, and be not used in qualification the present invention.
The embodiment of the invention has proposed a kind of data link layer malfunction monitoring scheme, in order to address this problem to the problem of deal with data link layer fault inefficiency in the prior art.
In the technical scheme that the embodiment of the invention provides; Legitimacy and operating process through business operation in the Monitoring Data link layer; Obtain monitoring result, monitoring result and predetermined operations rule are compared, obtain fault message; Also promptly pass through the legitimacy and the operating process of business operation in the Monitoring Data link layer; Realization can improve the efficient and the accuracy of fault location to the fault location of data link layer, thereby can solve the problem of deal with data link layer fault inefficiency in the prior art.
Be elaborated in the face of the embodiment of the invention down.
The embodiment of the invention at first provides a kind of data link layer fault monitoring method, and is as shown in Figure 2, and the handling process of this method comprises:
The legitimacy and the operating process of business operation obtain monitoring result in step 21, the Monitoring Data link layer, and monitoring result comprises operation types sign of being monitored and the object information of operating;
Particularly, when business operation is triggered, start monitoring to business operation; Business operation comprises: to the operation of interface or the operation of message transmission;
Particularly, monitoring specifically comprises to the operation of interface: monitoring is to establishment, revision or the deletion action of the interface in the data link layer; The operation of monitoring message transmission specifically comprises: the Monitoring Data link layer sends message or receives the operation of message;
More specifically, the legitimacy of monitoring interface operation comprises: the legitimacy of the interface that the legitimacy of the action type of monitoring interface operation and/or monitoring operation are directed against; Then, monitoring result also comprises: the object information of the legitimacy of the object information of the legitimacy of the action type of monitoring interface operation and/or monitoring interface;
The legitimacy of the operation of monitoring message transmission comprises: the legitimacy of the action type of monitoring message transmission and/or the legitimacy of message attribute; Then, monitoring result also comprises: the object information of the object information of the legitimacy of the action type of monitoring message transmission and/or the legitimacy of message attribute;
Monitoring comprises to the process of the operation of interface: whether have abnormal conditions in beginning, end and the operating process of monitoring interface operation, and obtain abnormal conditions information when in the interface operation process, having abnormal conditions; Then, monitoring result also comprises: the beginning of interface operation identifies, the abnormal conditions information in the end of interface operation sign or the interface operation process;
Monitoring comprises to the process of the operation of message transmission: whether have abnormal conditions in beginning, end and the operating process of the operation of monitoring message transmission, and obtain abnormal conditions information when in the operating process of message transmission, having abnormal conditions; Then, monitoring result also comprises: the beginning of the operation of message transmission identifies, the abnormal conditions information in the operating process of the end of the operation of message transmission sign or message transmission;
Step 22, corresponding operation rules in monitoring result and the predetermined operations database is compared, obtain fault message; Wherein, comprise many operation ruless in the operating database, every operation rules comprises a kind of sign of operation and the normal object information and the abnormal results information of this operation;
Particularly, operation rules also comprises: the object information of the legitimacy of the object information of the legitimacy of the action type of monitoring interface operation and/or monitoring interface, the abnormal conditions information in the interface operation process; Perhaps comprise: the object information of the object information of the legitimacy of the action type of monitoring message transmission and/or the legitimacy of message attribute, the abnormal conditions information in the operating process of message transmission.
Through above-mentioned processing procedure, legitimacy and operating process through business operation in the Monitoring Data link layer obtain monitoring result; Monitoring result and predetermined operations rule are compared; Obtain fault message, also, realize fault location the data link layer promptly through the legitimacy and the operating process of business operation in the Monitoring Data link layer; The efficient and the accuracy of fault location can be improved, thereby the problem of deal with data link layer fault inefficiency in the prior art can be solved.
Preferably, the embodiment of the invention can also be according to the Query Information of user input, in above-mentioned monitoring result and fault message, inquires about to obtain the monitoring result or the fault message that are complementary with said Query Information.
Based on identical inventive concept, the embodiment of the invention has also proposed a kind of data link layer fault monitoring device.
Fig. 3 shows the structured flowchart of the data link layer fault monitoring device that the embodiment of the invention provides, and as shown in Figure 3, this device comprises:
Monitoring modular 31 is used for the legitimacy and the operating process of Monitoring Data link layer business operation, obtains monitoring result, and monitoring result comprises operation types sign of being monitored and the object information of operating;
Operating database 32 is used to store many operation ruless, and wherein, every operation rules comprises the normal object information and the abnormal results information of a kind of operation types sign and this operation;
Contrast module 33 is connected to monitoring modular 31 and operating database 32, and the monitoring result and the predetermined operations database 32 corresponding operation ruless that are used for monitoring modular 31 is obtained compare, and obtain fault message.
The preferred structure of device shown in Figure 3 is as shown in Figure 4, and particularly, monitoring modular 31 comprises: interface monitoring modular 311, be used to monitor the legitimacy and the operating process of interface operation, and obtain monitoring result; Message monitoring modular 312 is used to monitor the legitimacy and the operating process of the operation of message transmission, obtains monitoring result;
More specifically, interface monitoring modular 311 is used for: monitoring is to establishment, revision or the deletion action of the interface of data link layer; Detect the legitimacy of interface operation and/or the legitimacy of the interface that operation was directed against; Whether there are abnormal conditions in beginning, end and the operating process of monitoring interface operation, and obtain abnormal conditions information when in the interface operation process, having abnormal conditions; Then, monitoring result also comprises: the object information of the legitimacy of the object information of the legitimacy of the action type of monitoring interface operation and/or monitoring interface; The beginning of interface operation identifies, the abnormal conditions information in the end of interface operation sign or the interface operation process;
Message monitoring modular 312 specifically is used for: the Monitoring Data link layer sends message or receives the operation of message; The legitimacy of the action type of detection messages transmission and/or the legitimacy of message attribute; Whether there are abnormal conditions in beginning, end and the operating process of operation of monitoring message transmission, and obtain abnormal conditions information when in the operating process of message transmission, having abnormal conditions; Then, monitoring result also comprises: the object information of the object information of the legitimacy of the action type of monitoring message transmission and/or the legitimacy of message attribute; The beginning of the operation of message transmission identifies, the abnormal conditions information in the operating process of the end of the operation of message transmission sign or message transmission;
Then; The operation rules of storage also comprises in the operating database 32: the object information of the legitimacy of the object information of the legitimacy of the action type of monitoring interface operation and/or monitoring interface; The object information of the object information of the legitimacy of the action type of monitoring message transmission and/or the legitimacy of message attribute; Abnormal conditions information in the interface operation process, the abnormal conditions information in the operating process of message transmission;
Device shown in Figure 4 also comprises enquiry module 34, and enquiry module 34 can be according to the querying condition of user's input, the record that inquiry and keyword are complementary in monitoring result that contrasts module 33 records or fault message.Particularly, querying condition can comprise operation types sign, file format or other with operating database 32 in operation rules in the keyword that conforms to of field.
Through Fig. 3 or device shown in Figure 4; Operating process concrete in also can the Monitoring Data link layer realizes the fault location to the data link layer; The fault location of data link layer can be carried out efficiently and accurately, thereby the problem of deal with data link layer fault inefficiency in the prior art can be solved.
The situation of embodiment of the invention practical implementation is described below.
The embodiment of the invention can be applied in the miscellaneous service operation of monitor data link layer, only operates the situation that embodiment of the invention practical implementation is described through interface operation and message transmissions below.
Before the technical scheme that the practical implementation embodiment of the invention provides; Increase monitoring submodule (not shown) earlier in the business module that relates to interface operation and message transmissions in data link layer; For example in interface management module 114 as shown in Figure 1, the monitoring submodule is set; When the operation of operation that is directed against interface or message transmissions was triggered, the monitoring submodule started the monitoring to operation, particularly; When each related service module is sent corresponding interface operation or message transmissions request, monitor by monitoring submodule trigger interface monitoring modular 311 or message monitoring modular 312 in the related service module.The monitoring submodule can be the one section code that is encapsulated on original interface operation function or the message transmissions function, also can be the trigger equipment of being realized by hardware configuration.
In embodiments of the present invention; Also defined the data structure of the operation rules in the operating database 32; As shown in Figure 5; The data structure of operation rules comprises following field: the 0th to 1 bit is that the object information field of operation (has been enumerated the sign of object information in this field; For example 11 expressions operates successfully, 00 expression operation failure, 10 representes that operation exceptions, 01 represent the unreasonable mistake that occurs in the operating process); The the 2nd to 7 bit is the type identification field (having enumerated the sign of legal interface type in this field) of interface; The the 8th to 15 bit is operation types identification field (having enumerated the sign of legal action type in this field); The the 16th to 17 bit be the operating process field (this field record the beginning or the end of operating procedure; For example 00 expression beginning, 11 expressions finish), the 18th to 24 bit is interface identifier field (this field has been enumerated the sign of legal interface), the 25th to 31 bit is that (this field has been enumerated the concrete failure situations or the sign of abnormal case to the fault information field; Concrete failure situations comprises: internal memory application failure, internal memory leakage, Array Bound, null pointer, wild pointer, character cross the border, type is crossed the border or the like; The abnormal results information of legitimacy that also comprises abnormal results information, monitoring operand and the attribute thereof of the legitimacy of monitoring action type), the 32nd to 55 bit is type of message field (this field has been enumerated the sign of legal type of message), and the 56th is type of message fields (this field has been enumerated the sign of the type of message of forbidding) of restriction to 63 bits.Preferably, the field of operation rules is not limited to said circumstances, can also come the field of extended operation rule according to concrete needs.
Correspondingly, interface monitoring modular 311 or message monitoring modular 312 can carry out record to monitoring result according to data structure as shown in Figure 5, so that contrast module 33 compares matching operation, perhaps carry out follow-up query manipulation.
(1), is directed against the detection of interface operation
Operation to the interface in the data link layer comprises three aspects: creates, revision and deletion, according to method as shown in Figure 2 flow process to handling to the monitoring of the operation of the interface in the data link layer, as follows:
The legitimacy of step 1, detecting operation;
When the operation to the interface in the data link layer is triggered, start the monitoring of docking port operation, also be the monitoring submodule trigger interface monitoring modular 311 in the interface management module 114; Interface monitoring modular 311 obtains the type identification (for example creating the type identification of interface operation, the type identification or the delete interface operation types sign of revision interface operation) of interface operation requested operation; And the type is identified at operating database 32 matees (the action type sign that is about to enumerate in the action type field in operation types sign and the operating database 32 compares coupling); If comprise this operation types sign in the operating database 32; Explain that then this operation is legal operation; Create a new record as operation note according to data structure as shown in Figure 5; This operation types sign of the 8th to 15 bit record in operation note handles proceeding to step 2; If do not comprise this operation types sign in the operating database 32; Explain that then this operation is illegal operation; Create a new record as operation note according to data structure as shown in Figure 5 equally; At the 0th to the 1st of operation note record 00 expression operation failure, this operation types sign of the 8th to 15 bit record and at the unusual object information (being specially the illegal information of action type) of the legitimacy of the 25th to 31 bit record record monitoring operation, handle proceeding to step 4;
The legitimacy of step 2, detecting operation object
Whether the legitimacy of the interface that detecting operation was directed against comprises two aspects, comprise that the type that detects interface is whether legal and detect interface to exist;
At first, the legitimacy of the type of the interface that is directed against of interface monitoring modular 311 detecting operations; Interface monitoring modular 311 obtains the type identification of the interface that operation is directed against; And the type identification of this interface mated in operating database 32; The interface type sign of soon enumerating in the type identification of interface and the interface type field in the operating database 32 compares coupling; If comprise the type identification of this interface in the operating database 32, the type that this interface is described is legal, and the 2nd to 7 bit in the operation note of having created continues the type identification of record interface; If do not comprise the type identification of this interface in the operating database 32; Explain that this interface is illegal; In the operation note of having created the 0th to the 1st record 00 expression operation failure, continue the type identification of record interface and, handle proceeding to step 4 in the abnormal results information (being specially the illegal information of type of interface) of the legitimacy of the 25th to 31 bit record monitoring operand at the 2nd to 7 bit;
Secondly, under the legal situation of the type of interface, whether the interface that interface monitoring modular 311 detects solicit operation exists; Interface monitoring modular 311 obtains the sign of the interface of solicit operation, this interface identifier is mated in operating database 32, if comprise the interface identifier of solicit operation in the operating database 32; Show that this interface is already present interface, then for the operation of revision interface and delete interface, this interface is legal; For the operation of creating interface, this interface is illegal, if do not comprise the interface identifier of solicit operation in the operating database 32; Show that this interface is not already present interface, for the operation of creating interface, this interface is legal; For the operation of revising interface and the operation of delete interface, this interface is illegal; For legal interface; The sign of the 18th to 24 bit record interface in the operation note of having created; Processing proceeds to step 3; For illegal interface, the sign of the 0th to 1 bit in the operation note of having created record 00 expression operation failure, the 18th to 24 bit record interface, in the abnormal results information (be specially interface and have the illegal information of situation) of the legitimacy of the 25th to 31 bit record monitoring operand handles proceeding to step 4;
The process of step 3, monitoring operation
Docking port carries out concrete operations to be carried out by the corresponding business module; For example carry out by interface management module 114; The process of interface monitoring modular 311 monitoring business module executable operations; Also be the process point that the record traffic module begins executable operations and end operation, so that reference is provided for fault location information;
Particularly, in beginning during executable operations, the 16th to 17 information that recording operation begins 00 in the above-mentioned operation note of having created, when end operation, the information 11 that finishes at the 16th to 17 recording operation of operation note;
And; When the operation appearance is unusual in the process of operation; Business module produces abnormal information (form of abnormal information is predefined) according to concrete abnormal case; Business module sends to interface monitoring modular 311 with abnormal information, abnormal conditions (according to confirming to be specially 10 or 01 from the abnormal information of business module) occur in the 0th to 1 bit the record 10 or 01 expression operating process of interface monitoring modular 311 in the operation note of having created, writes down the abnormal information from business module at the 25th to 31 bit;
In the process of operation, do not occur under the unusual situation, 0th to 1 bit record 11 expressions of interface monitoring modular 311 in the operation note of having created are operated successfully;
Step 4, comparative analysis obtain fault message
Interface monitoring modular 311 with operation note as monitoring result; And monitoring result sent to contrast module 33, contrast module 33 can be carried out buffer memory or export in the storage device with concrete file format form (for example log file, XML file) to monitoring result;
Contrast module 33 compares coupling with corresponding operation rules in monitoring result and the predetermined operations database 32, obtains fault message; Particularly, if the 0th to 1 bit is the concrete information (i.e. failure or unusual specifying information) that records in 00,10 or 01, the 25 to 31 bit in the monitoring result, then with this monitoring result as fault message; Preferably, contrast module 33 can compare coupling to the monitoring result that receives in real time, can obtain fault message in time like this, also can compare coupling to the monitoring result that writes down in the concentrated area, can practice thrift the processing resource like this; Contrast module 33 can also write down or export the fault message that obtains.
Through above-mentioned processing procedure; Can obtain monitoring result to monitoring to the legitimacy of the operation of interface and operating process in the data link layer; Monitoring result and predetermined operations rule compared obtain fault message, thereby can position to high efficient and reliable the fault in the data link layer.
(2), be directed against the detection of message transmissions
The legitimacy of step 1, detecting operation;
When the operation to the data link layer message transmission is triggered; Startup is to the monitoring of the operation of data link layer message transmission; Message monitoring modular 312 obtains the type identification (for example send message identification or receive message identification) of interface operation requested operation; And the type is identified at operating database 32 matees (the action type sign that is about to enumerate in the action type field in operation types sign and the operating database 32 compares coupling); If comprise this operation types sign in the operating database 32, explain that then this operation is legal operation, create a new record as operation note according to data structure as shown in Figure 5; This operation types sign of the 8th to 15 bit record in operation note handles proceeding to step 2; If do not comprise this operation types sign in the operating database 32; Explain that then this operation is illegal operation; Create a new record as operation note according to data structure as shown in Figure 5 equally; At the 0th to the 1st of operation note record 00 expression operation failure, this operation types sign of the 8th to 15 bit record, in the abnormal results information (being specially the illegal information of action type) of the legitimacy of the 25th to 31 bit record monitoring operation, handle proceeding to step 4;
The legitimacy of step 2, detecting operation object
Whether legal the legitimacy of detection messages attribute comprises two aspects, comprise the consistency of the type of detection messages and detection messages self information;
At first; Message monitoring modular 312 obtains the type identification of message from the message of transmission; The type identification of the message that obtains is mated in operating database 32; The type of message sign of enumerating in the type identification that is about to message and the type of message field in the operating database 32 compares coupling, and with the type of message field that limits in the sign of the type of message of forbidding enumerated compare coupling, if the type of message field comprises the type identification of this message in the operating database 32; The type that this message is described is legal; The the 32nd to 55 bit in the operation note of having created continues the type identification of recorded message, otherwise the type of message is illegal;
Secondly, under the legal situation of the type of message, the consistency of detection messages self information; Particularly; From message, resolve length information and the address information (comprising source IP address, source MAC, purpose IP address and target MAC (Media Access Control) address) of obtaining message; Actual length and the address information of the length information of the message that parsing is obtained and address information and message compares, at this two all under situation of unanimity, the self information that message is described is consistent; If there is inconsistent situation in the two, explain that the message self information is inconsistent;
Under the consistent situation of legal and message self information, handle proceeding to step 3 in the type of message; Under the illegal perhaps inconsistent situation of message self information of the type of message; The the 0th to the 1st record 00 in the operation note of having created represented operation failure, write down the abnormal results information (being specially the illegal information or the inconsistent information of message self information of type of message) of the legitimacy of monitoring operand and the type identification that the 32nd to 55 bit continues recorded message at the 25th to 31 bit, handles proceeding to step 4;
The process of step 3, monitoring operation
The operating process of message monitoring modular 312 Monitoring Data link layer message transmissions; Particularly; Beginning message transmission when (comprise and begin to send message and begin to receive message); The the 16th to 17 sign that recording operation begins 00 in the above-mentioned operation note of having created, when finishing (comprise and finish to send message and finish to receive message) at message transmission, the sign 11 that finishes at the 16th to 17 recording operation of operation note.
And; Whether there are abnormal conditions in the process of message monitoring modular 312 monitoring message transmissions; When appearance is unusual in message transmission procedure; Message monitoring modular 312 obtains the abnormal information that business module produces according to concrete abnormal case, the abnormal information of obtaining is recorded in the 25th to 31 bit in the operation note of having created, and writes down 10 or 01 at the 0th to 1 bit of operation note;
For occurring when unusual, 0th to 1 bit record 11 signs of message monitoring modular 312 in the operation note of having created are operated successfully in message transmission procedure;
Step 4, comparative analysis obtain fault message
Message monitoring modular 312 as monitoring result, and sends to contrast module 33 with monitoring result with operation note;
Contrast module 33 compares coupling with corresponding operation rules in monitoring result and the predetermined operations database, obtains fault message; Particularly, if the 0th to 1 bit is the concrete information (i.e. failure or unusual specifying information) that records in 00,10 or 01, the 25 to 31 bit in the monitoring result, then with this monitoring result as fault message.
Through above-mentioned processing procedure; Can monitor the legitimacy of the operation of data link layer message transmission and operating process and obtain monitoring result; Monitoring result and predetermined operations rule are compared the fault message that obtains in the message transmissions, thereby can position to high efficient and reliable the fault in the data link layer.
In sum, the embodiment of the invention obtains monitoring result through the legitimacy and the operating process of business operation in the Monitoring Data link layer; Monitoring result and predetermined operations rule are compared; Obtain fault message, also, realize fault location the data link layer promptly through the legitimacy and the operating process of business operation in the Monitoring Data link layer; The efficient and the accuracy of fault location can be improved, thereby the problem of deal with data link layer fault inefficiency in the prior art can be solved.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (20)

1. a data link layer fault monitoring method is characterized in that, comprising:
The legitimacy of business operation and operating process obtain monitoring result in the Monitoring Data link layer, and said monitoring result comprises operation types sign of being monitored and the object information of operating;
Corresponding operation rules in said monitoring result and the predetermined operations database is compared, obtain fault message; Wherein, comprise many operation ruless in the said operating database, every operation rules comprises the normal object information and the abnormal results information of a kind of operation types sign and this operation.
2. method according to claim 1 is characterized in that, said method also comprises:
When said business operation is triggered, start monitoring to said business operation.
3. method according to claim 1 is characterized in that, said business operation comprises:
To the operation of interface or the operation of message transmission.
4. method according to claim 3 is characterized in that, monitoring specifically comprises to the operation of interface:
Monitoring is to establishment, revision or the deletion action of the interface in the data link layer.
5. method according to claim 3 is characterized in that, the operation of monitoring message transmission specifically comprises:
The Monitoring Data link layer sends message or receives the operation of message.
6. method according to claim 3 is characterized in that, the legitimacy of monitoring interface operation comprises: the legitimacy of the interface that the legitimacy of the action type of monitoring interface operation and/or monitoring operation are directed against; Then,
Said monitoring result also comprises: the object information of the legitimacy of the object information of the legitimacy of the action type of monitoring interface operation and/or monitoring interface;
Said operation rules also comprises: the object information of the legitimacy of the object information of the legitimacy of the action type of monitoring interface operation and/or monitoring interface.
7. method according to claim 3 is characterized in that, the legitimacy of the operation of monitoring message transmission comprises: the legitimacy of the action type of monitoring message transmission and/or the legitimacy of message attribute; Then,
Said monitoring result also comprises: the object information of the object information of the legitimacy of the action type of monitoring message transmission and/or the legitimacy of message attribute;
Said operation rules also comprises: the object information of the object information of the legitimacy of the action type of monitoring message transmission and/or the legitimacy of message attribute.
8. method according to claim 3; It is characterized in that; Monitoring comprises to the process of the operation of interface: whether have abnormal conditions in beginning, end and the operating process of monitoring interface operation, and obtain abnormal conditions information when in the interface operation process, having abnormal conditions; Then,
Said monitoring result also comprises: the beginning of interface operation identifies, the abnormal conditions information in the end of interface operation sign or the interface operation process;
Said operation rules also comprises: the abnormal conditions information in the interface operation process.
9. method according to claim 3; It is characterized in that; Monitoring comprises to the process of the operation of message transmission: whether have abnormal conditions in beginning, end and the operating process of the operation of monitoring message transmission, and obtain abnormal conditions information when in the operating process of message transmission, having abnormal conditions; Then,
Said monitoring result also comprises: the beginning of the operation of message transmission identifies, the abnormal conditions information in the operating process of the end of the operation of message transmission sign or message transmission;
Said operation rules also comprises: the abnormal conditions information in the operating process of message transmission.
10. method according to claim 1 is characterized in that, said method also comprises:
According to the Query Information of user input, inquiry obtains the monitoring result or the fault message that are complementary with said Query Information in said monitoring result or fault message.
11. a data link layer fault monitoring device is characterized in that, comprising:
Monitoring modular is used for the legitimacy and the operating process of Monitoring Data link layer business operation, obtains monitoring result, and said monitoring result comprises operation types sign of being monitored and the object information of operating;
Operating database is used to store many operation ruless, and wherein, every operation rules comprises the normal object information and the abnormal results information of a kind of operation types sign and this operation;
The contrast module, the monitoring result and the corresponding operation rules of predetermined operations database that are used for said monitoring modular is obtained compare, and obtain fault message.
12. device according to claim 11 is characterized in that, said monitoring modular specifically comprises:
The interface monitoring modular is used to monitor the legitimacy and the operating process of interface operation, obtains said monitoring result;
The message monitoring modular is used to monitor the legitimacy and the operating process of the operation of message transmission, obtains said monitoring result.
13. device according to claim 12 is characterized in that, said interface monitoring modular specifically is used for:
Monitoring is to establishment, revision or the deletion action of the interface in the data link layer.
14. device according to claim 12 is characterized in that, said message monitoring modular specifically is used for:
The Monitoring Data link layer sends message or receives the operation of message.
15. device according to claim 12 is characterized in that, said interface monitoring modular specifically is used for: detect the legitimacy of interface operation and/or the legitimacy of the interface that operation was directed against; Then, said monitoring result also comprises: the object information of the legitimacy of the object information of the legitimacy of the action type of monitoring interface operation and/or monitoring interface;
The operation rules of storing in the said operating database also comprises: the object information of the legitimacy of the object information of the legitimacy of the action type of monitoring interface operation and/or monitoring interface.
16. device according to claim 12 is characterized in that, said message monitoring modular specifically is used for: the legitimacy of the action type of detection messages transmission and/or the legitimacy of message attribute; Then, said monitoring result also comprises: the object information of the object information of the legitimacy of the action type of monitoring message transmission and/or the legitimacy of message attribute;
The operation rules of storing in the said operating database also comprises: the object information of the object information of the legitimacy of the action type of monitoring message transmission and/or the legitimacy of message attribute.
17. device according to claim 12; It is characterized in that; Said interface monitoring modular specifically is used for: whether beginning, end and the operating process of monitoring interface operation exist abnormal conditions, and obtain abnormal conditions information when in the interface operation process, having abnormal conditions; Then, said monitoring result also comprises: the beginning of interface operation identifies, the abnormal conditions information in the end of interface operation sign or the interface operation process;
The operation rules of storing in the said operating database also comprises: the abnormal conditions information in the interface operation process.
18. device according to claim 12; It is characterized in that; Said message monitoring modular; Specifically be used for: whether beginning, end and the operating process of operation of monitoring message transmission exists abnormal conditions, and obtains abnormal conditions information when in the operating process of message transmission, having abnormal conditions; Then, said monitoring result also comprises: the beginning of the operation of message transmission identifies, the abnormal conditions information in the operating process of the end of the operation of message transmission sign or message transmission;
The operation rules of storing in the said operating database also comprises: the abnormal conditions information in the operating process of message transmission.
19. device according to claim 11 is characterized in that, said device also comprises:
Enquiry module is used for the Query Information according to user input, and inquiry obtains the monitoring result or the fault message that are complementary with said Query Information in said monitoring result or fault message.
20. a network equipment is characterized in that, comprises like each described data link layer fault monitoring device in the claim 11 to 19.
CN2012102607664A 2012-07-25 2012-07-25 Method and device for monitoring failure of data link layer, and network equipment Pending CN102811143A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102607664A CN102811143A (en) 2012-07-25 2012-07-25 Method and device for monitoring failure of data link layer, and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102607664A CN102811143A (en) 2012-07-25 2012-07-25 Method and device for monitoring failure of data link layer, and network equipment

Publications (1)

Publication Number Publication Date
CN102811143A true CN102811143A (en) 2012-12-05

Family

ID=47234730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102607664A Pending CN102811143A (en) 2012-07-25 2012-07-25 Method and device for monitoring failure of data link layer, and network equipment

Country Status (1)

Country Link
CN (1) CN102811143A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105636100A (en) * 2015-12-31 2016-06-01 京信通信系统(中国)有限公司 Data link monitoring method and device
CN107005430A (en) * 2015-07-22 2017-08-01 华为技术有限公司 A kind of communication means based on data link layer, equipment and system
CN108009036A (en) * 2017-11-17 2018-05-08 亚信科技(中国)有限公司 A kind of method and server for positioning the operation for causing data exception
CN110162440A (en) * 2019-04-12 2019-08-23 平安普惠企业管理有限公司 Method, electronic device and the computer readable storage medium of fault location
CN115707153A (en) * 2021-08-09 2023-02-17 北京小米移动软件有限公司 Network control method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114879A (en) * 2007-08-22 2008-01-30 沈成彬 Link failure diagnosis device of hand-hold passive optical network
CN101610428A (en) * 2009-07-13 2009-12-23 厦门敏讯信息技术股份有限公司 Digital exchange test system, digital switch and computer
CN101907868A (en) * 2010-08-05 2010-12-08 暨南大学珠海学院 Intelligent trouble diagnosis method for tractive power supply system and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114879A (en) * 2007-08-22 2008-01-30 沈成彬 Link failure diagnosis device of hand-hold passive optical network
CN101610428A (en) * 2009-07-13 2009-12-23 厦门敏讯信息技术股份有限公司 Digital exchange test system, digital switch and computer
CN101907868A (en) * 2010-08-05 2010-12-08 暨南大学珠海学院 Intelligent trouble diagnosis method for tractive power supply system and system thereof

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107005430A (en) * 2015-07-22 2017-08-01 华为技术有限公司 A kind of communication means based on data link layer, equipment and system
US10560378B2 (en) 2015-07-22 2020-02-11 Huawei Technologies Co., Ltd. Data link layer-based communication method, device, and system
CN107005430B (en) * 2015-07-22 2020-03-31 华为技术有限公司 Communication method, device and system based on data link layer
US11153207B2 (en) 2015-07-22 2021-10-19 Huawei Technologies Co., Ltd. Data link layer-based communication method, device, and system
CN105636100A (en) * 2015-12-31 2016-06-01 京信通信系统(中国)有限公司 Data link monitoring method and device
CN105636100B (en) * 2015-12-31 2019-01-18 京信通信系统(中国)有限公司 A kind of data link monitoring method and device
CN108009036A (en) * 2017-11-17 2018-05-08 亚信科技(中国)有限公司 A kind of method and server for positioning the operation for causing data exception
CN108009036B (en) * 2017-11-17 2021-10-01 亚信科技(中国)有限公司 Method for positioning operation causing data abnormity and server
CN110162440A (en) * 2019-04-12 2019-08-23 平安普惠企业管理有限公司 Method, electronic device and the computer readable storage medium of fault location
CN115707153A (en) * 2021-08-09 2023-02-17 北京小米移动软件有限公司 Network control method, device and storage medium

Similar Documents

Publication Publication Date Title
CN104965700B (en) The method and system of driving SPI equipment is realized under vxworks operating system
CN100556036C (en) Carry out method, the system and program of data transmission requests
US8332542B2 (en) Communication with input/output system devices
CN102811143A (en) Method and device for monitoring failure of data link layer, and network equipment
CN104169899A (en) System and method for transferring states between electronic devices
CN102541606A (en) Method and device for remote management of BIOS (basic input/output system) configuration based on UEFI (unified extensible firmware interface
CN104765621A (en) Method and system for deploying program on cluster node
CN105162673A (en) Data transmission interface and method
CN105162732A (en) Method and device for creating extended port
CN111181769B (en) Network topological graph drawing method, system, device and computer readable storage medium
CN100367253C (en) Method and system for expanding peripherals
CN104348888A (en) Content routing delivery method, content delivery network node and system
EP1296220A2 (en) Buffer partitioning for managing multiple data streams
CN104753746B (en) The method and control server of a kind of access device
CN102707974A (en) POS (Point Of Sale) terminal program package downloading method and system
CN102571474B (en) Virtualized Radius test macro and method
CN101699416B (en) Communication method and system between host computer and card reader with multiple card holders
CN107391672A (en) The reading/writing method of data and the distributed file system of message
CN101719212A (en) Identification method and device of serial-port card reader
CN113193981B (en) Configuration issuing method and device and network system
CN101060683B (en) Method and device for generating alarm information in communication system
CN113342456B (en) A connection method, device, equipment and storage medium
CN109194513A (en) A kind of method of API gateway Intellisense cluster
CN111404719B (en) Network topology information acquisition method and system
WO2006051599A1 (en) Resource management program, resource management method, and resource management device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C05 Deemed withdrawal (patent law before 1993)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121205