CN106209456A - A kind of kernel state lower network fault detection method and device - Google Patents
A kind of kernel state lower network fault detection method and device Download PDFInfo
- Publication number
- CN106209456A CN106209456A CN201610551725.9A CN201610551725A CN106209456A CN 106209456 A CN106209456 A CN 106209456A CN 201610551725 A CN201610551725 A CN 201610551725A CN 106209456 A CN106209456 A CN 106209456A
- Authority
- CN
- China
- Prior art keywords
- event
- fault
- failure
- error message
- message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- 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/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明公开了一种内核态下网络故障检测方法及装置。该方法包括以下步骤:通过协议层事件收集模块在检测到故障收集函数中存在差错报文时,根据差错报文,生成故障事件,差错报文为数据包传输过程中的差错报文;通过事件发送模块对故障事件进行封装,并将封装后的故障事件添加到故障事件列表中;通过事件接收模块监听故障事件列表,并对故障事件列表中的故障事件进行解析,获得故障详情,输出故障信息给系统用户,故障信息中携带故障详情。应用本发明实施例所提供的技术方案,实现了内核态下数据包传输出错自动检测,方便系统用户及时了解网络出错详情。
The invention discloses a network fault detection method and device in a kernel state. The method comprises the following steps: when an error message is detected in the fault collection function by the protocol layer event collection module, a fault event is generated according to the error message, and the error message is an error message in the data packet transmission process; The sending module encapsulates the fault events, and adds the encapsulated fault events to the fault event list; monitors the fault event list through the event receiving module, and analyzes the fault events in the fault event list to obtain fault details and output fault information For system users, the fault information carries fault details. By applying the technical solutions provided by the embodiments of the present invention, the automatic detection of data packet transmission errors in the kernel state is realized, and it is convenient for system users to know the details of network errors in time.
Description
技术领域technical field
本发明涉及操作系统技术领域,特别是涉及一种内核态下网络故障检测方法及装置。The invention relates to the technical field of operating systems, in particular to a network fault detection method and device in a kernel state.
背景技术Background technique
在信息化时代,网络显现出非常重要的作用。无论是在个人主机还是在服务器中,网络的可用性和可靠性都直接影响着系统性能,决定主机之间通信的质量好坏。In the information age, the network plays a very important role. Whether in a personal host or in a server, the availability and reliability of the network directly affect the system performance and determine the quality of communication between hosts.
当计算机系统出现网络故障时,用户通常会借助外部的网络管理工具来检测网络问题,常用的网络管理工具,如ping、netstat、ip等,都是从用户态的角度出发对网络问题进行检测,需要用户熟悉相应的网络管理工具才能进行网络问题的检测,操作比较被动,不方便用户及时了解网络出错详情。When a network failure occurs in a computer system, users usually use external network management tools to detect network problems. Commonly used network management tools, such as ping, netstat, ip, etc., all detect network problems from the perspective of user mode. Users need to be familiar with the corresponding network management tools to detect network problems. The operation is relatively passive, and it is not convenient for users to know the details of network errors in a timely manner.
发明内容Contents of the invention
为解决上述技术问题,本发明提供一种内核态下网络故障检测方法及装置。In order to solve the above technical problems, the present invention provides a network fault detection method and device in a kernel state.
一种内核态下网络故障检测方法,包括:A network fault detection method in a kernel state, comprising:
通过协议层事件收集模块在检测到故障收集函数中存在差错报文时,根据所述差错报文,生成故障事件,所述差错报文为数据包传输过程中的差错报文;When detecting that there is an error message in the fault collection function by the protocol layer event collection module, according to the error message, a fault event is generated, and the error message is an error message in the data packet transmission process;
通过事件发送模块对所述故障事件进行封装,并将封装后的故障事件添加到故障事件列表中;Encapsulate the fault event through the event sending module, and add the encapsulated fault event to the fault event list;
通过事件接收模块监听所述故障事件列表,并对所述故障事件列表中的故障事件进行解析,获得故障详情,输出故障信息给系统用户,所述故障信息中携带所述故障详情。The event receiving module monitors the fault event list, and analyzes the fault events in the fault event list to obtain fault details, and outputs fault information to system users, and the fault information carries the fault details.
在本发明的一种具体实施方式中,所述根据所述差错报文,生成故障事件,包括:In a specific implementation manner of the present invention, said generating a fault event according to said error message includes:
利用错误处理函数对所述差错报文进行解析;Analyzing the error message by using an error handling function;
根据所述差错报文的头部信息,生成故障事件。A fault event is generated according to the header information of the error message.
在本发明的一种具体实施方式中,所述将封装后的故障事件添加到故障事件列表中,包括:In a specific implementation manner of the present invention, adding the encapsulated fault event to the fault event list includes:
调用已注册的事件发送函数将封装后的故障事件添加到故障事件列表中,所述事件发送函数为所述事件接收模块注册以供所述事件发送模块调用的。The encapsulated fault event is added to the fault event list by calling the registered event sending function, which is registered by the event receiving module for the event sending module to call.
在本发明的一种具体实施方式中,所述故障事件中包含故障事件链表指针信息、IP版本号信息、报文类型信息、报文类型子码信息、错误码信息和差错报文的严重程度信息。In a specific embodiment of the present invention, the fault event includes fault event linked list pointer information, IP version number information, message type information, message type subcode information, error code information, and the severity of the error message information.
一种内核态下网络故障检测装置,包括:A network fault detection device in a kernel state, comprising:
协议层事件收集模块,用于在检测到故障收集函数中存在差错报文时,根据所述差错报文,生成故障事件,所述差错报文为数据包传输过程中的差错报文;The protocol layer event collection module is used to generate a fault event according to the error message when detecting that there is an error message in the fault collection function, and the error message is an error message in the data packet transmission process;
事件发送模块,用于对所述故障事件进行封装,并将封装后的故障事件添加到故障事件列表中;An event sending module, configured to encapsulate the fault event, and add the encapsulated fault event to the fault event list;
事件接收模块,用于监听所述故障事件列表,并对所述故障事件列表中的故障事件进行解析,获得故障详情,输出故障信息给系统用户,所述故障信息中携带所述故障详情。The event receiving module is configured to monitor the fault event list, analyze the fault events in the fault event list, obtain fault details, and output fault information to system users, and the fault information carries the fault details.
在本发明的一种具体实施方式中,所述协议层事件收集模块,具体用于:In a specific implementation manner of the present invention, the protocol layer event collection module is specifically used for:
利用错误处理函数对所述差错报文进行解析;Analyzing the error message by using an error handling function;
根据所述差错报文的头部信息,生成故障事件。A fault event is generated according to the header information of the error message.
在本发明的一种具体实施方式中,所述事件发送模块,具体用于:In a specific implementation manner of the present invention, the event sending module is specifically used for:
调用已注册的事件发送函数将封装后的故障事件添加到故障事件列表中,所述事件发送函数为所述事件接收模块注册以供所述事件发送模块调用的。The encapsulated fault event is added to the fault event list by calling the registered event sending function, which is registered by the event receiving module for the event sending module to call.
在本发明的一种具体实施方式中,所述故障事件中包含故障事件链表指针信息、IP版本号信息、报文类型信息、报文类型子码信息、错误码信息和差错报文的严重程度信息。In a specific embodiment of the present invention, the fault event includes fault event linked list pointer information, IP version number information, message type information, message type subcode information, error code information, and the severity of the error message information.
应用本发明实施例所提供的技术方案,通过协议层事件收集模块可以检测故障收集函数中是否存在差错报文,当存在差错报文时,可以根据差错报文,生成故障事件,通过事件发送模块可以对故障事件进行封装,并将封装后的故障事件添加到故障事件列表中,通过事件接收模块可以监听故障事件列表,并对监听到的故障事件进行解析,获得故障详情,向系统用户输出故障信息。实现了内核态下数据包传输出错自动检测,方便系统用户及时了解网络出错详情。Application of the technical solution provided by the embodiment of the present invention can detect whether there is an error message in the fault collection function through the protocol layer event collection module. Fault events can be encapsulated, and the encapsulated fault events can be added to the fault event list. The event receiving module can monitor the fault event list, analyze the monitored fault events, obtain fault details, and output faults to system users information. The automatic detection of data packet transmission errors in the kernel mode is realized, which is convenient for system users to know the details of network errors in time.
附图说明Description of drawings
为了更清楚的说明本发明实施例或现有技术的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例中一种内核态下网络故障检测方法的实施流程图;Fig. 1 is the implementation flow chart of a kind of network fault detection method under kernel state in the embodiment of the present invention;
图2为本发明实施例中一种内核态下网络故障检测装置的结构示意图。FIG. 2 is a schematic structural diagram of a network fault detection device in a kernel state in an embodiment of the present invention.
具体实施方式detailed description
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
参见图1所示,为本发明实施例所提供的一种内核态下网络故障检测方法的实施流程图,该方法可以包括以下步骤:Referring to Fig. 1, it is an implementation flowchart of a network fault detection method in a kernel mode provided by an embodiment of the present invention, the method may include the following steps:
S110:通过协议层事件收集模块在检测到故障收集函数中存在差错报文时,根据差错报文,生成故障事件。S110: When an error packet is detected in the fault collection function by the protocol layer event collection module, a fault event is generated according to the error packet.
差错报文为数据包传输过程中的差错报文。The error message is an error message in the process of data packet transmission.
在本发明实施例中,可以通过修改错误处理函数err_handler,修改Linux原始内核协议层中各协议的错误处理方法。具体的,可以在错误处理函数添加故障收集函数,使之具有故障收集功能。In the embodiment of the present invention, the error handling method of each protocol in the original Linux kernel protocol layer can be modified by modifying the error handling function err_handler. Specifically, a fault collection function can be added to the error handling function so that it has a fault collection function.
在数据包传输过程中,如果遇到问题,将调用协议结构net_protocol的错误处理函数err_handler,在错误处理函数的故障收集函数中可以记录差错报文,该差错报文即为数据包传输过程中的差错报文。In the process of data packet transmission, if there is a problem, the error handling function err_handler of the protocol structure net_protocol will be called, and the error message can be recorded in the fault collection function of the error handling function, and the error message is the error message in the process of data packet transmission error message.
通过协议层事件收集模块可以检测故障收集函数中是否存在差错报文,如果存在,则协议层事件收集模块可以根据该差错报文,生成故障事件。The protocol layer event collection module can detect whether there is an error message in the fault collection function, and if there is, the protocol layer event collection module can generate a fault event according to the error message.
在本发明的一种具体实施方式中,根据差错报文,生成故障事件的步骤具体可以包括以下步骤:In a specific embodiment of the present invention, according to the error message, the step of generating a fault event may specifically include the following steps:
步骤一:利用错误处理函数对差错报文进行解析;Step 1: Use the error handling function to analyze the error message;
步骤二:根据差错报文的头部信息,生成故障事件。Step 2: Generate a fault event according to the header information of the error message.
为便于描述,将上述两个步骤结合起来进行说明。For ease of description, the above two steps are combined for description.
在实际应用中,当协议层事件收集模块检测到故障收集函数中存在差错报文时,可以基于内核代码中结构体struct net_protocol,利用其成员错误处理函数err_handler,对差错报文进行解析,即对差错报文数据包进行分析,获得该差错报文的头部信息。根据差错报文的头部信息,可以生成故障事件。In practical applications, when the protocol layer event collection module detects that there is an error message in the fault collection function, it can analyze the error message by using its member error handling function err_handler based on the structure struct net_protocol in the kernel code, that is, to The error message data packet is analyzed to obtain the header information of the error message. According to the header information of the error message, a fault event can be generated.
在本发明实施例中,故障事件中包含故障事件链表指针信息、IP版本号信息、报文类型信息、报文类型子码信息、错误码信息和差错报文的严重程度信息。In the embodiment of the present invention, the fault event includes fault event linked list pointer information, IP version number information, message type information, message type subcode information, error code information, and error message severity information.
故障事件结构体定义如下:The fault event structure is defined as follows:
在该故障事件结构体中,list为故障事件链表指针;ipv代表IP版本号;type为报文类型,其中,在ipv4中,ICMP_TIME_EXCEEDED、ICMP_SOURCE_QUENCH、ICMP_PARAMETERPROB、ICMP_DEST_UNREACH为差错报文,在ipv6中,ICMPV6_DEST_UNREACH、ICMPV6_PKT_TOOBIG、ICMPV6_TIME_EXCEED、ICMPV6_PARAMPROB为差错报文;code为报文类型子码,通过该信息可以进一步确定错误类型;err为错误码,不同种类的差错报文的错误码不同,说明故障类型不同;harderr表示差错报文的严重程度,是否可修复。In the fault event structure, list is the fault event linked list pointer; ipv represents the IP version number; type is the message type, among them, in ipv4, ICMP_TIME_EXCEEDED, ICMP_SOURCE_QUENCH, ICMP_PARAMETERPROB, ICMP_DEST_UNREACH are error messages, in ipv6, ICMPV6_DEST_UNREACH , ICMPV6_PKT_TOOBIG, ICMPV6_TIME_EXCEED, and ICMPV6_PARAMPROB are error messages; code is the subcode of the message type, and the error type can be further determined through this information; err is the error code, and the error codes of different types of error messages are different, indicating that the fault type is different; harderr Indicates the severity of the error message and whether it can be repaired.
协议层事件收集模块对差错报文进行解析,获得差错报文的头部信息后,可以根据该差错报文的头部信息,对故障事件结构体protocol_evt中的成员进行赋值,生成故障事件。例如,在UDP中,err_handler被赋值为__udp4_lib_err(),在__udp4_lib_err()中添加相应代码,可以实现对protocol_evt中各成员的赋值。The protocol layer event collection module analyzes the error message, and after obtaining the header information of the error message, it can assign values to the members in the fault event structure protocol_evt according to the header information of the error message to generate a fault event. For example, in UDP, err_handler is assigned as __udp4_lib_err(), and adding corresponding codes in __udp4_lib_err() can realize the assignment of each member in protocol_evt.
通过协议层事件收集模块生成故障事件后,可以继续执行步骤S120的操作。After the fault event is generated by the protocol layer event collection module, the operation of step S120 can be continued.
S120:通过事件发送模块对故障事件进行封装,并将封装后的故障事件添加到故障事件列表中。S120: Encapsulate the fault event through the event sending module, and add the encapsulated fault event to the fault event list.
在步骤S110,通过协议层事件收集模块生成故障事件后,可以进一步通过事件发送模块对故障事件进行封装,并将封装后的故障事件添加到故障事件列表中。In step S110, after the fault event is generated by the protocol layer event collection module, the fault event can be further encapsulated by the event sending module, and the encapsulated fault event can be added to the fault event list.
在本发明的一种具体实施方式中,将封装后的故障事件添加到故障事件列表中的步骤具体可以包括以下步骤:In a specific embodiment of the present invention, the step of adding the encapsulated fault event to the fault event list may specifically include the following steps:
调用已注册的事件发送函数将封装后的故障事件添加到故障事件列表中,事件发送函数为事件接收模块注册以供事件发送模块调用的。The encapsulated fault event is added to the fault event list by calling the registered event sending function, and the event sending function is registered by the event receiving module for the event sending module to call.
事件发送模块调用已注册的事件发送函数将封装后的故障事件添加到故障事件列表中,事件接收模块会对该故障事件列表进行监听。The event sending module calls the registered event sending function to add the encapsulated fault event to the fault event list, and the event receiving module will monitor the fault event list.
举例而言,事件发送函数protocol_post_error可以表示如下:For example, the event sending function protocol_post_error can be expressed as follows:
在上述代码中,protocol_evt_post为具体的发送函数,由外部模块实现。在实际应用中,可以将上述代码以kpatch动态补丁机制加载至内核工作。In the above code, protocol_evt_post is a specific sending function, which is implemented by an external module. In practical applications, the above code can be loaded into the kernel with the kpatch dynamic patch mechanism.
外部模块实现发送故障事件的功能,以ko模块的形式加载工作,具体可以参考以下代码:The external module implements the function of sending fault events and loads the work in the form of ko module. For details, please refer to the following code:
S130:通过事件接收模块监听故障事件列表,并对故障事件列表中的故障事件进行解析,获得故障详情,输出故障信息给系统用户,故障信息中携带故障详情。S130: Monitor the fault event list through the event receiving module, analyze the fault events in the fault event list, obtain fault details, and output the fault information to the system user, and the fault information carries the fault details.
在步骤S110和步骤S120中,通过协议层事件收集模块可以生成故障事件,通过事件发送模块可以对故障事件进行封装,并将封装后的故障事件添加到故障事件列表中。In step S110 and step S120, the fault event can be generated by the protocol layer event collection module, the fault event can be encapsulated by the event sending module, and the encapsulated fault event can be added to the fault event list.
在本发明实施例中,通过事件接收模块可以监听故障事件列表。当监听到故障事件列表中存在故障事件时,可以对故障事件进行解析,获得故障详情,并将故障信息输出给系统用户,在故障信息中携带故障详情。In the embodiment of the present invention, the fault event list can be monitored by the event receiving module. When a fault event is detected in the fault event list, the fault event can be analyzed to obtain fault details, and the fault information is output to the system user, and the fault information carries the fault details.
举例而言,事件接收模块的具体工作过程可以参考以下代码:For example, the specific working process of the event receiving module can refer to the following code:
其中,结构体protocol_evt_u为用户态下的事件结构,errmsg_parse()可以根据故障事件的成员值,解析故障详情,输出故障信息。Among them, the structure protocol_evt_u is the event structure in the user mode, and errmsg_parse() can analyze the fault details and output the fault information according to the member values of the fault event.
在本发明实施例中,利用kpatch动态内核补丁方式,修改Linux原始内核协议层中各协议的错误处理方法,增添了故障收集函数,实现了数据包传输出错检测。In the embodiment of the present invention, the kpatch dynamic kernel patch method is used to modify the error handling method of each protocol in the Linux original kernel protocol layer, and a fault collection function is added to realize the error detection of data packet transmission.
应用本发明实施例所提供的方法,通过协议层事件收集模块可以检测故障收集函数中是否存在差错报文,当存在差错报文时,可以根据差错报文,生成故障事件,通过事件发送模块可以对故障事件进行封装,并将封装后的故障事件添加到故障事件列表中,通过事件接收模块可以监听故障事件列表,并对监听到的故障事件进行解析,获得故障详情,向系统用户输出故障信息。实现了内核态下数据包传输出错自动检测,方便系统用户及时了解网络出错详情。Application of the method provided by the embodiment of the present invention can detect whether there is an error message in the fault collection function through the protocol layer event collection module. When there is an error message, a fault event can be generated according to the error message, and the event sending module can Encapsulate the fault events and add the encapsulated fault events to the fault event list. The event receiving module can monitor the fault event list, analyze the monitored fault events, obtain fault details, and output fault information to system users . The automatic detection of data packet transmission errors in the kernel mode is realized, which is convenient for system users to know the details of network errors in time.
相应于上面的方法实施例,本发明还提供了一种内核态下网络故障检测装置。Corresponding to the above method embodiments, the present invention also provides a network fault detection device in the kernel state.
参见图2所示,该装置可以包括以下模块:Referring to shown in Figure 2, the device can include the following modules:
协议层事件收集模块210,用于在检测到故障收集函数中存在差错报文时,根据差错报文,生成故障事件,差错报文为数据包传输过程中的差错报文;The protocol layer event collection module 210 is used to generate a fault event according to the error message when detecting that there is an error message in the fault collection function, and the error message is an error message in the data packet transmission process;
事件发送模块220,用于对故障事件进行封装,并将封装后的故障事件添加到故障事件列表中;The event sending module 220 is configured to encapsulate the fault event, and add the encapsulated fault event to the fault event list;
事件接收模块230,用于监听故障事件列表,并对故障事件列表中的故障事件进行解析,获得故障详情,输出故障信息给系统用户,故障信息中携带故障详情。The event receiving module 230 is used to monitor the fault event list, analyze the fault events in the fault event list, obtain fault details, and output fault information to system users, and the fault information carries the fault details.
应用本发明实施例所提供的装置,通过协议层事件收集模块可以检测故障收集函数中是否存在差错报文,当存在差错报文时,可以根据差错报文,生成故障事件,通过事件发送模块可以对故障事件进行封装,并将封装后的故障事件添加到故障事件列表中,通过事件接收模块可以监听故障事件列表,并对监听到的故障事件进行解析,获得故障详情,向系统用户输出故障信息。实现了内核态下数据包传输出错自动检测,方便系统用户及时了解网络出错详情。Application of the device provided by the embodiment of the present invention can detect whether there is an error message in the fault collection function through the protocol layer event collection module. When there is an error message, a fault event can be generated according to the error message, and the event sending module can Encapsulate the fault events and add the encapsulated fault events to the fault event list. The event receiving module can monitor the fault event list, analyze the monitored fault events, obtain fault details, and output fault information to system users . The automatic detection of data packet transmission errors in the kernel mode is realized, which is convenient for system users to know the details of network errors in time.
在本发明的一种具体实施方式中,协议层事件收集模块210,具体用于:In a specific implementation manner of the present invention, the protocol layer event collection module 210 is specifically used for:
利用错误处理函数对差错报文进行解析;Use the error handling function to analyze the error message;
根据差错报文的头部信息,生成故障事件。According to the header information of the error message, a fault event is generated.
在本发明的一种具体实施方式中,事件发送模块220,具体用于:In a specific implementation manner of the present invention, the event sending module 220 is specifically used for:
调用已注册的事件发送函数将封装后的故障事件添加到故障事件列表中,事件发送函数为事件接收模块230注册以供事件发送模块220调用的。The encapsulated fault event is added to the fault event list by calling the registered event sending function, and the event sending function is registered by the event receiving module 230 for the event sending module 220 to call.
在本发明的一种具体实施方式中,故障事件中包含故障事件链表指针信息、IP版本号信息、报文类型信息、报文类型子码信息、错误码信息和差错报文的严重程度信息。In a specific embodiment of the present invention, the fault event includes fault event linked list pointer information, IP version number information, message type information, message type subcode information, error code information and error message severity information.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related part, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
以上对本发明所提供的一种内核态下网络故障检测方法及装置进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。A network fault detection method and device in the kernel state provided by the present invention has been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention, and the descriptions of the above embodiments are only used to help understand the method and core idea of the present invention. It should be pointed out that for those skilled in the art, without departing from the principle of the present invention, some improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610551725.9A CN106209456B (en) | 2016-07-13 | 2016-07-13 | A kind of kernel state lower network fault detection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610551725.9A CN106209456B (en) | 2016-07-13 | 2016-07-13 | A kind of kernel state lower network fault detection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106209456A true CN106209456A (en) | 2016-12-07 |
CN106209456B CN106209456B (en) | 2019-08-02 |
Family
ID=57477543
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610551725.9A Active CN106209456B (en) | 2016-07-13 | 2016-07-13 | A kind of kernel state lower network fault detection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106209456B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107483287A (en) * | 2017-08-17 | 2017-12-15 | 郑州云海信息技术有限公司 | A system and method for automatically monitoring network port data packet sending and receiving faults |
CN107766167A (en) * | 2017-10-23 | 2018-03-06 | 郑州云海信息技术有限公司 | A kind of fault log repeats to report an error the method for merger |
CN115396308A (en) * | 2022-07-27 | 2022-11-25 | 阿里巴巴(中国)有限公司 | System, method and device for maintaining network stability of data center |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103001811A (en) * | 2012-12-31 | 2013-03-27 | 北京启明星辰信息技术股份有限公司 | Method and device for fault locating |
CN104993584A (en) * | 2015-06-03 | 2015-10-21 | 广西电网有限责任公司 | Information preserving failure generating method and system |
-
2016
- 2016-07-13 CN CN201610551725.9A patent/CN106209456B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103001811A (en) * | 2012-12-31 | 2013-03-27 | 北京启明星辰信息技术股份有限公司 | Method and device for fault locating |
CN104993584A (en) * | 2015-06-03 | 2015-10-21 | 广西电网有限责任公司 | Information preserving failure generating method and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107483287A (en) * | 2017-08-17 | 2017-12-15 | 郑州云海信息技术有限公司 | A system and method for automatically monitoring network port data packet sending and receiving faults |
CN107483287B (en) * | 2017-08-17 | 2021-07-20 | 郑州云海信息技术有限公司 | A system and method for automatically monitoring network port data packet sending and receiving faults |
CN107766167A (en) * | 2017-10-23 | 2018-03-06 | 郑州云海信息技术有限公司 | A kind of fault log repeats to report an error the method for merger |
CN115396308A (en) * | 2022-07-27 | 2022-11-25 | 阿里巴巴(中国)有限公司 | System, method and device for maintaining network stability of data center |
Also Published As
Publication number | Publication date |
---|---|
CN106209456B (en) | 2019-08-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Burschka et al. | Tranalyzer: Versatile high performance network traffic analyser | |
US8135979B2 (en) | Collecting network-level packets into a data structure in response to an abnormal condition | |
WO2018099249A1 (en) | Method, device and system for detecting fault in nfv system | |
US9015822B2 (en) | Automatic invocation of DTN bundle protocol | |
CN113647060B (en) | Packet drop detection in local networking stack by packet association | |
US7774849B2 (en) | Methods, systems, and computer program products for detecting and mitigating denial of service attacks in a telecommunications signaling network | |
JP4232828B2 (en) | Application classification method, network abnormality detection method, application classification program, network abnormality detection program, application classification apparatus, network abnormality detection apparatus | |
US20170126789A1 (en) | Automatic Software Controller Configuration based on Application and Network Data | |
US11522765B2 (en) | Auto discovery of network proxies | |
CN106209456B (en) | A kind of kernel state lower network fault detection method and device | |
Gad et al. | Employing the CEP paradigm for network analysis and surveillance | |
CN116260643A (en) | Security testing method, device and equipment for web service of Internet of things | |
CN105530137A (en) | Flow data analysis method and flow data analysis system | |
CN113645225A (en) | Network security equipment detection method, device, equipment and readable storage medium | |
CN115086068B (en) | A network intrusion detection method and device | |
CN116980333A (en) | Network detection method and system based on data development plane suite | |
US10237122B2 (en) | Methods, systems, and computer readable media for providing high availability support at a bypass switch | |
CN111953807B (en) | Message identifier processing method and device and storage medium | |
CN114301960A (en) | Processing method and device for asymmetric flow of cluster, electronic equipment and storage medium | |
Kumar et al. | Using jpcap api to monitor, analyze, and report network traffic for ddos attacks | |
CN106330478A (en) | Trap message processing method and device | |
Gad et al. | Bridging the gap between low-level network traffic data acquisition and higher-level frameworks | |
US20240179178A1 (en) | Control method and apparatus, computing device, and computer-readable storage medium | |
CN113242205B (en) | Network traffic classification control method, device, server and storage medium | |
CN114978592B (en) | Modbus vulnerability mining method based on optimized multicomponent subcontracting mechanism |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |