CN107483287B - System and method for automatically monitoring network port data packet receiving and sending faults - Google Patents

System and method for automatically monitoring network port data packet receiving and sending faults Download PDF

Info

Publication number
CN107483287B
CN107483287B CN201710707108.8A CN201710707108A CN107483287B CN 107483287 B CN107483287 B CN 107483287B CN 201710707108 A CN201710707108 A CN 201710707108A CN 107483287 B CN107483287 B CN 107483287B
Authority
CN
China
Prior art keywords
network port
state
data packets
data packet
data
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.)
Active
Application number
CN201710707108.8A
Other languages
Chinese (zh)
Other versions
CN107483287A (en
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710707108.8A priority Critical patent/CN107483287B/en
Publication of CN107483287A publication Critical patent/CN107483287A/en
Application granted granted Critical
Publication of CN107483287B publication Critical patent/CN107483287B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0681Configuration of triggering conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a system and a method for automatically monitoring network port data packet receiving and sending faults, wherein a kernel event generating module obtains data packets received and sent by each network port of a system, state data packets of the data packets and the number of the state data packets by modifying a kernel code of a system network port version, an event control center module encapsulates the data packets received and sent by the network port, the state data packets corresponding to the data packets and the number of the state data packets, and data packet encapsulation information is transmitted to a user terminal and a fault detection module after encapsulation; and the fault detection module analyzes the data packet packaging information sent by the event control center, judges whether the number of each state data packet exceeds a threshold value, and records the judgment result into a log. The system solves the alarm prompt of the network data packet receiving and sending faults, realizes that the kernel actively monitors the network port data packet receiving and sending faults, records logs, and simultaneously sends the logs to a user in a mail mode, so that the user can check the logs to position the network port and confirm the network problems.

Description

System and method for automatically monitoring network port data packet receiving and sending faults
Technical Field
The invention relates to the field of network port fault monitoring, in particular to a system and a method for automatically monitoring network port data packet receiving and sending faults.
Background
In the Linux system, a user can view data transceiving statistics of each internet access through a shell command, such as ifconfig, ethtolol and the like, and can also obtain flow statistics of each internet access through a file viewing method, such as/proc/net/dev files and/sys/class/net/internet/statistics/various types of data statistics files under a directory. These methods are invoked actively by the user and determine whether the network is malfunctioning by analyzing these statistics.
The/proc/net/dev file is the most intuitive way to reflect the traffic of each network interface of the server, and the user can intuitively see the change of the number of each type of data packet through the command 'watch cat/proc/net/dev'. However, when a data packet transceiving fault occurs in the network, the/proc/net/dev file cannot actively prompt a user that a problem occurs in the network, and only the user can wait for checking the file to obtain fault details.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a system for automatically monitoring the receiving and sending faults of an internet access data packet, which comprises: the system comprises a kernel event generating module, an event control center module and a fault detection module;
the kernel event generation module is used for acquiring data packets sent and received by each network port of the system, state data packets of the data packets and the quantity of each state data packet by modifying the kernel code of the version of the network port of the system, and sending the data packets sent and received by each network port, the state of the data packets and the quantity of each state data packet to the event control center module;
the event control center module is used for receiving data packets sent and received by each network port, state data packets of the data packets and the number of states of each data packet, which are sent by the kernel event generating module, packaging the data packets sent and received by the network port, the state data packets corresponding to the data packets and the number of the state data packets, and transmitting data packet packaging information to the user side and the fault detection module after packaging;
the fault detection module is used for analyzing the data packet encapsulation information sent by the event control center, judging whether the number of each state data packet exceeds a threshold value or not and recording the judgment result into a log.
Preferably, the kernel event generating module includes: a kernel source code processing module;
the kernel source code processing module is used for defining a data structure of statistical information of the system network port data packet; defining a send function for the data structure; and in a function body of the network port statistic transceiving data packet in the kernel source code, adding a data structure of network port data packet statistic information, assigning values, calling a definition sending function, and sending the definition sending function to the event control center module.
Preferably, the kernel event generating module further comprises: the network port name definition module and the kernel linked list module;
the network port name definition module is used for naming the network port of the system;
the kernel chain table module is used for establishing a network port data transceiving chain table for each network port of the system, and adding the data packets which are transmitted and received by each network port, the state data packets of the data packets and the quantity of each state data packet into the network port data transceiving chain table.
Preferably, the event control center module is further configured to obtain a port data transceiving linked list of each port of the system, and obtain data packets, status data packets of the data packets, and the number of the status data packets, which are received and transmitted by each port, through the port data transceiving linked list; when the number of data packets transmitted and received by a network port in a certain network port data transmitting and receiving chain table or the number of state data packets exceeds a preset threshold value, awakening a transmitting queue and transmitting the network port data transmitting and receiving chain table to a fault detection module in a netlink communication mode;
the fault detection module is also used for receiving the network port data receiving and transmitting linked list sent by the event control center module, analyzing data information in the network port data receiving and transmitting linked list, comparing the analyzed state data packet with a preset comparison state data packet, and judging whether the analyzed state data packet is consistent with the preset comparison state data packet or not;
when the analyzed state data packets are consistent with the preset comparison state data packets, comparing the number of the analyzed state data packets with a preset state data packet number threshold value, and judging whether the number exceeds the threshold value; and when the threshold value is exceeded, judging that the data transmission of the network port fails, and sending prompt information.
Preferably, the status packet comprises: the packet receiving state is normal, the frame receiving state is normal, the receiving verification state is normal, the packet sending state is normal, the frame sending state is normal, the sending verification state is normal, the packet receiving packet loss state, the error packet receiving state, the fifo error packet receiving state, the frame receiving error packet state, the fifo error packet receiving verification state, the fifo error packet transmitting state, the packet loss transmitting state and the fifo error packet transmitting state.
A method for automatically monitoring network port data packet receiving and sending faults includes:
step one, a kernel event generation module acquires data packets sent and received by each network port of a system, state data packets of the data packets and the number of the state data packets by modifying a kernel code of a system network port version, and sends the data packets sent and received by each network port, the state of the data packets and the number of the state data packets to an event control center module;
step two, the event control center module receives data packets sent and received by each network port, state data packets of the data packets and the number of states of each data packet, which are sent by the kernel event generation module, encapsulates the data packets sent and received by the network port, the state data packets corresponding to the data packets and the number of the state data packets, and transmits encapsulation information of the data packets to the user side and the fault detection module after encapsulation;
and step three, the fault detection module analyzes the data packet encapsulation information sent by the event control center, judges whether the number of each state data packet exceeds a threshold value, and records the judgment result into a log.
Preferably, the first step further comprises:
the kernel source code processing module defines a data structure of statistical information of a system network port data packet;
defining a send function for the data structure;
and in a function body of the network port statistic transceiving data packet in the kernel source code, adding a data structure of network port data packet statistic information, assigning values, calling a definition sending function, and sending the definition sending function to the event control center module.
Preferably, the first step further comprises:
the kernel chain table module establishes a network port data transceiving chain table for each network port of the system, and adds the data packets which are transmitted and received by each network port, the state data packets of the data packets and the quantity of each state data packet into the network port data transceiving chain table.
Preferably, the event control center module acquires a port data transceiving linked list of each port of the system, and acquires data packets transceived by each port, state data packets of the data packets and the number of each state data packet through the port data transceiving linked list; when the number of data packets transmitted and received by a network port in a certain network port data transmitting and receiving chain table or the number of state data packets exceeds a preset threshold value, awakening a transmitting queue and transmitting the network port data transmitting and receiving chain table to a fault detection module in a netlink communication mode;
the fault detection module receives the network port data receiving and transmitting linked list sent by the event control center module, analyzes data information in the network port data receiving and transmitting linked list, compares the analyzed state data packet with a preset comparison state data packet, and judges whether the analyzed state data packet is consistent with the preset comparison state data packet or not;
when the analyzed state data packets are consistent with the preset comparison state data packets, comparing the number of the analyzed state data packets with a preset state data packet number threshold value, and judging whether the number exceeds the threshold value; and when the threshold value is exceeded, judging that the data transmission of the network port fails, and sending prompt information.
Preferably, when the parsed state data packet does not conform to the preset comparison state data packet, determining whether the parsed state data packet exists in a storage module storing the preset comparison state data packet;
when the storage module stores the analyzed state data packet, the data transmission of the network port corresponding to the analyzed state data packet is normal;
and when the storage module does not store the analyzed state data packet, prompting a user that the analyzed state data packet is not stored in the storage module.
According to the technical scheme, the invention has the following advantages:
the system for automatically monitoring the receiving and sending faults of the internet access data packet solves the alarm prompt of the receiving and sending faults of the network data packet, realizes that the kernel actively monitors the receiving and sending faults of the internet access data packet, records logs and sends the logs to a user in the form of mails, and the user can check the logs to position the internet access and confirm network problems. According to the invention, under the condition that the kernel is not recompiled, the kernel source code is modified, the monitoring network port is added, and the detected fault is transmitted to the user terminal in a netlink communication mode, so that the user can analyze and record the network details.
The system acquires the statistical information of the network data packet receiving and sending through a dynamic patch loading mode based on the kernel state, and then transmits the statistical information to the user state to judge whether the network fault occurs, so that the automatic alarm function of the network fault is realized.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings used in the description will be briefly introduced, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an automatic monitoring system for network port data packet transceiving failure;
FIG. 2 is a flow chart of a method for automatically monitoring the transceiving faults of a network port data packet;
fig. 3 is a flowchart of an embodiment of a method for automatically monitoring a failure in receiving and sending data packets of an internet access.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions of the present invention will be clearly and completely described below with reference to specific embodiments and drawings. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the scope of protection of this patent.
The embodiment provides a system for automatically monitoring network port data packet transceiving faults, as shown in fig. 1, including: the system comprises a kernel event generating module 1, an event control center module 2 and a fault detecting module 3;
the kernel event generating module 1 is configured to obtain data packets, status data packets of the data packets, and the number of the status data packets, which are received and transmitted by each network port of the system, by modifying the kernel code of the version of the network port of the system, and send the data packets, the status of the data packets, and the number of the status data packets, which are received and transmitted by each network port, to the event control center module; the event control center module 2 is used for receiving data packets sent and received by each network port, state data packets of the data packets and the number of states of each data packet, which are sent by the kernel event generating module, encapsulating the data packets sent and received by the network port, the state data packets corresponding to the data packets and the number of the state data packets, and transmitting encapsulation information of the data packets to the user side and the fault detection module after encapsulation; the fault detection module 3 is used for analyzing the data packet encapsulation information sent by the event control center, judging whether the number of each state data packet exceeds a threshold value, and recording the judgment result into a log.
The status packet includes: the packet receiving state is normal, the frame receiving state is normal, the receiving verification state is normal, the packet sending state is normal, the frame sending state is normal, the sending verification state is normal, the packet receiving packet loss state, the error packet receiving state, the fifo error packet receiving state, the frame receiving error packet state, the fifo error packet receiving verification state, the fifo error packet transmitting state, the packet loss transmitting state and the fifo error packet transmitting state.
The present invention is not limited to the above-mentioned several kinds of transceiving status data packets, and also includes the counts of transceiving failure packets such as receiving packet loss rx _ dropped, receiving error packet rx _ errors, receiving fifo error packet rx _ fifo _ errors, receiving frame error packet rx _ frame _ errors, receiving check error packet rx _ crc _ errors, transmitting error packet tx _ errors, transmitting packet loss tx _ dropped, transmitting fifo error packet tx _ fifo _ errors, and the like, in addition to the normal transceiving data packets. In the case of a good network, these transmission/reception failure type values are zero. The network is allowed to have packet loss or error packets, but when the data packet value of the fault type is increased, the network is indicated to have faults.
The Linux kernel source code provides a function interface dev _ get _ states for data packet transceiving statistics for each registered network device, the function is called, the data packet statistics from the running time of the network device can be mapped into/proc/net/dev files, and a user can obtain the transceiving data packet statistics of each network port by checking the files.
The kernel event generation module 1 realizes the function of obtaining statistics of the network port transceiving data packets by modifying the corresponding version kernel code, and generates a kernel kpatch patch through a kpatch-build command.
Here, the kernel event generating module includes: modifying the kernel source code to realize the function of acquiring the statistical information of the internet access data packet; generating a patch file by comparing the kernel source codes before and after modification; and generating a kpatch patch through the kpatch-build. The core part is to modify the kernel code to realize the function of obtaining the statistical information of the network port data packet.
The kernel event generation module is loaded to the kernel in a way of a kpatch dynamic patch, can run under the condition that the machine is not restarted, and has high portability; the added event sending function can be called along with the calling of the kernel, manual triggering is not needed, and the initiative is high.
In this embodiment, the kernel event generating module includes: a kernel source code processing module; the kernel source code processing module is used for defining a data structure of statistical information of the system network port data packet; defining a send function for the data structure; and in a function body of the network port statistic transceiving data packet in the kernel source code, adding a data structure of network port data packet statistic information, assigning values, calling a definition sending function, and sending the definition sending function to the event control center module.
In this embodiment, the kernel event generating module 1 further includes: the network port name definition module and the kernel linked list module; the network port name definition module is used for naming the network port of the system; specifically, it can be obtained by a kernel function netdev _ name ().
The kernel chain table module is used for establishing a network port data transceiving chain table for each network port of the system, and adding the data packets which are transmitted and received by each network port, the state data packets of the data packets and the quantity of each state data packet into the network port data transceiving chain table. The kernel chain table structure is statistical information of all network port data packets, and the network port data packet information is uniformly summarized by the kernel chain table.
In this embodiment, the event control center module 2 is further configured to obtain an internet access data transceiving linked list of each internet access of the system, and obtain data packets, status data packets of the data packets, and the number of the status data packets, which are received and transmitted by each internet access, through the internet access data transceiving linked list; when the number of data packets transmitted and received by a network port in a certain network port data transmitting and receiving chain table or the number of state data packets exceeds a preset threshold value, awakening a transmitting queue and transmitting the network port data transmitting and receiving chain table to a fault detection module in a netlink communication mode;
the fault detection module 3 is also used for receiving the network port data receiving and transmitting linked list sent by the event control center module, analyzing data information in the network port data receiving and transmitting linked list, comparing the analyzed state data packet with a preset comparison state data packet, and judging whether the analyzed state data packet is consistent with the preset comparison state data packet or not; when the analyzed state data packets are consistent with the preset comparison state data packets, comparing the number of the analyzed state data packets with a preset state data packet number threshold value, and judging whether the number exceeds the threshold value; and when the threshold value is exceeded, judging that the data transmission of the network port fails, and sending prompt information.
The event control center module 2 defines a sending function net _ post _ error (), encapsulates the network port data packet statistical structure, adds the structure to the data receiving and sending linked list, and can obtain the network port data packet statistical event through the data receiving and sending linked list. Finding a dev _ seq _ printf _ stats () function in a/net/core/net-proc.c file of kernel source code, assigning a structure structpkt _ evt, and calling a sending function net _ post _ error () to send the pkt _ evt to an event control center module for receiving.
And after the event control center module is loaded, when the number of events on the linked list is increased, the module is awakened to send a queue, a function kfm _ net _ evt _ post2user () is called, and the events are sent to the fault detection module in a netlink communication mode.
The invention also provides a method for automatically monitoring the receiving and sending faults of the network port data packet, as shown in fig. 2, the method comprises the following steps:
s1, the kernel event generating module obtains the data packets sent and received by each network port of the system, the state data packets of the data packets and the number of each state data packet by modifying the kernel code of the version of the network port of the system, and sends the data packets sent and received by each network port, the state of the data packets and the number of each state data packet to the event control center module;
s2, the event control center module receives the data packets sent and received by each network port, the state data packets of the data packets and the number of the states of each data packet sent by the kernel event generating module, encapsulates the data packets sent and received by the network port, the state data packets corresponding to the data packets and the number of the state data packets, and transmits the encapsulated information of the data packets to the user side and the fault detection module after encapsulation;
s3, the failure detection module analyzes the data package packaging information sent by the event control center, judges whether the number of each state data package exceeds a threshold value, and records the judgment result into a log.
In this embodiment, step S1 further includes: the kernel source code processing module defines a data structure of statistical information of a system network port data packet; defining a send function for the data structure; and in a function body of the network port statistic transceiving data packet in the kernel source code, adding a data structure of network port data packet statistic information, assigning values, calling a definition sending function, and sending the definition sending function to the event control center module.
Step S1 further includes: the kernel chain table module establishes a network port data transceiving chain table for each network port of the system, and adds the data packets which are transmitted and received by each network port, the state data packets of the data packets and the quantity of each state data packet into the network port data transceiving chain table.
In this embodiment, the method further includes: as shown in figure 3 of the drawings,
s11, the event control center module obtains the network port data receiving and sending chain table of each network port of the system, and obtains the data packets received and sent by each network port, the state data packets of the data packets and the number of each state data packet through the network port data receiving and sending chain table; when the number of data packets transmitted and received by a network port in a certain network port data transmitting and receiving chain table or the number of state data packets exceeds a preset threshold value, awakening a transmitting queue and transmitting the network port data transmitting and receiving chain table to a fault detection module in a netlink communication mode;
s12, the fault detection module receives the network port data receiving and sending chain table sent by the event control center module, analyzes the data information in the network port data receiving and sending chain table, compares the analyzed state data packet with a preset comparison state data packet, and judges whether the analyzed state data packet is consistent with the preset comparison state data packet or not;
the preset comparison state data packet is mainly a comparison state data packet with fault state property. And acquiring the state of the internet access data transmission by comparing whether the state data packet is a data packet in a fault state. Of course, if the status data packet is the status data packet under the normal condition of the network, the status data packet can also be set as the status data packet needing comparison. The specific status data packets need to be set as comparison objects according to actual needs by the user, which is not limited herein.
S121, comparing the number of the analyzed state data packets with a preset state data packet number threshold value when the analyzed state data packets are consistent with the preset comparison state data packets, and judging whether the number of the analyzed state data packets exceeds the threshold value; and when the threshold value is exceeded, judging that the data transmission of the network port fails, and sending prompt information. That is, the currently compared status data packets are status data packets of the nature of the fault status, and the comparison quantity information is required.
S122, when the analyzed state data packet does not accord with the preset comparison state data packet, judging whether the analyzed state data packet exists in a storage module for storing the preset comparison state data packet or not; some fault state data packets and normal state data packets are not stored in the storage module, so that the system cannot find a comparison object in the comparison in advance, the situation that the analyzed state data packets are inconsistent with the preset comparison state data packets is caused, and in order to avoid the situation, the system automatically judges whether the state data packets are stored in the storage module.
S131, when the storage module stores the analyzed state data packet, the data transmission of the network port corresponding to the analyzed state data packet is normal;
s132, when the storage module does not store the analyzed state data packet, prompting a user that the analyzed state data packet is not stored in the storage module.
And the user checks whether the state data packet needs to be added into the storage module according to the prompt information so as to be used for subsequent comparison. Or a new fault state occurs in the network, the new state data packet can be found through the method, and the new state data packet is added into the storage module for subsequent comparison and use.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (3)

1. A system for automatically monitoring network port data packet receiving and transmitting faults is characterized by comprising: the system comprises a kernel event generating module, an event control center module and a fault detection module;
the kernel event generation module is used for acquiring data packets sent and received by each network port of the system, state data packets of the data packets and the quantity of each state data packet by modifying the kernel code of the version of the network port of the system, and sending the data packets sent and received by each network port, the state of the data packets and the quantity of each state data packet to the event control center module;
the kernel event generation module comprises: the network port name definition module and the kernel linked list module; the network port name definition module is used for naming the network port of the system;
the kernel chain table module is used for establishing a network port data transceiving chain table for each network port of the system, and adding data packets to be transmitted and received by each network port, state data packets of the data packets and the quantity of each state data packet into the network port data transceiving chain table;
the event control center module is used for receiving data packets sent and received by each network port, state data packets of the data packets and the number of states of each data packet, which are sent by the kernel event generating module, packaging the data packets sent and received by the network port, the state data packets corresponding to the data packets and the number of the state data packets, and transmitting data packet packaging information to the user side and the fault detection module after packaging;
the event control center module is also used for acquiring a network port data receiving and transmitting chain table of each network port of the system, and acquiring data packets received and transmitted by each network port, state data packets of the data packets and the number of each state data packet through the network port data receiving and transmitting chain table; when the number of data packets transmitted and received by a network port in a certain network port data transmitting and receiving chain table or the number of state data packets exceeds a preset threshold value, awakening a transmitting queue and transmitting the network port data transmitting and receiving chain table to a fault detection module in a netlink communication mode;
the fault detection module is used for analyzing the data packet encapsulation information sent by the event control center, judging whether the number of each state data packet exceeds a threshold value or not and recording the judgment result into a log;
the fault detection module is also used for receiving the network port data receiving and transmitting linked list sent by the event control center module, analyzing data information in the network port data receiving and transmitting linked list, comparing the analyzed state data packet with a preset comparison state data packet, and judging whether the analyzed state data packet is consistent with the preset comparison state data packet or not; when the analyzed state data packets are consistent with the preset comparison state data packets, comparing the number of the analyzed state data packets with a preset state data packet number threshold value, and judging whether the number exceeds the threshold value; and when the threshold value is exceeded, judging that the data transmission of the network port fails, and sending prompt information.
2. The system for automatically monitoring network port data packet transceiving failure according to claim 1, wherein the kernel event generating module comprises: a kernel source code processing module; the kernel source code processing module is used for defining a data structure of statistical information of the system network port data packet; defining a send function for the data structure; and in a function body of the network port statistic transceiving data packet in the kernel source code, adding a data structure of network port data packet statistic information, assigning values, calling a defined sending function, and sending the function to the event control center module.
3. The system for automatically monitoring network port data packet transceiving failure according to claim 1, wherein the status data packet comprises: the packet receiving state is normal, the frame receiving state is normal, the receiving verification state is normal, the packet sending state is normal, the frame sending state is normal, the sending verification state is normal, the packet receiving packet loss state, the error packet receiving state, the fifo error packet receiving state, the frame receiving error packet state, the fifo error packet receiving verification state, the fifo error packet transmitting state, the packet loss transmitting state and the fifo error packet transmitting state.
CN201710707108.8A 2017-08-17 2017-08-17 System and method for automatically monitoring network port data packet receiving and sending faults Active CN107483287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710707108.8A CN107483287B (en) 2017-08-17 2017-08-17 System and method for automatically monitoring network port data packet receiving and sending faults

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710707108.8A CN107483287B (en) 2017-08-17 2017-08-17 System and method for automatically monitoring network port data packet receiving and sending faults

Publications (2)

Publication Number Publication Date
CN107483287A CN107483287A (en) 2017-12-15
CN107483287B true CN107483287B (en) 2021-07-20

Family

ID=60600888

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710707108.8A Active CN107483287B (en) 2017-08-17 2017-08-17 System and method for automatically monitoring network port data packet receiving and sending faults

Country Status (1)

Country Link
CN (1) CN107483287B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110838949B (en) * 2018-08-16 2023-09-29 阿里巴巴集团控股有限公司 Network traffic log recording method and device
CN110752967A (en) * 2019-10-14 2020-02-04 杭州迪普科技股份有限公司 Interface fault detection method, device, equipment and storage medium
CN111145405A (en) * 2019-12-31 2020-05-12 上海申铁信息工程有限公司 High-speed railway station gate machine management system
CN112787883B (en) * 2020-12-26 2022-07-12 中国农业银行股份有限公司 Method, device and equipment for detecting NAT (network Address translation) fault of equipment
CN118740768B (en) * 2024-09-04 2025-01-24 浙江国利信安科技有限公司 Network communication system, communication method, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633110A (en) * 2005-01-14 2005-06-29 中国科学院计算技术研究所 Flow Analysis Method Based on Linux Kernel
CN104023034A (en) * 2014-06-25 2014-09-03 武汉大学 Security defensive system and defensive method based on software-defined network
CN106096455A (en) * 2016-08-08 2016-11-09 王波 A kind of main frame kernel data reduction protection method
CN106209456A (en) * 2016-07-13 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of kernel state lower network fault detection method and device
CN106792712A (en) * 2017-02-26 2017-05-31 上海交通大学 For the automatic monitoring framework system of the Session Initiation Protocol of VoLTE equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1633110A (en) * 2005-01-14 2005-06-29 中国科学院计算技术研究所 Flow Analysis Method Based on Linux Kernel
CN104023034A (en) * 2014-06-25 2014-09-03 武汉大学 Security defensive system and defensive method based on software-defined network
CN106209456A (en) * 2016-07-13 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of kernel state lower network fault detection method and device
CN106096455A (en) * 2016-08-08 2016-11-09 王波 A kind of main frame kernel data reduction protection method
CN106792712A (en) * 2017-02-26 2017-05-31 上海交通大学 For the automatic monitoring framework system of the Session Initiation Protocol of VoLTE equipment

Also Published As

Publication number Publication date
CN107483287A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN107483287B (en) System and method for automatically monitoring network port data packet receiving and sending faults
CN110224858B (en) Log-based alarm method and related device
US9432389B1 (en) System, apparatus and method for detecting a malicious attack based on static analysis of a multi-flow object
US9798680B2 (en) Policy control method and apparatus for terminal peripheral
CN110719199B (en) Network automatic testing and fault positioning method and device
US20040103412A1 (en) Software self-repair toolkit for electronic devices
US20080274716A1 (en) Application logging interface for a mobile device
CN102214140B (en) Method and system for automatic software testing
US9854069B2 (en) Network security agent
CA2605849A1 (en) Wireless data device performance monitor
CN114237498B (en) Snapshot generation method and system for cloud primary storage data volume
CN108111328B (en) Exception handling method and device
US10296746B2 (en) Information processing device, filtering system, and filtering method
CN110908910B (en) Block chain-based test monitoring method and device and readable storage medium
US20150215333A1 (en) Network filtering apparatus and filtering method
CN106254445A (en) Message sending method and server
US20120066305A1 (en) Transmitting system and method thereof
US8818432B2 (en) Method and integrated routing device for controlling remote systems via short messages
CN109240844B (en) Log obtaining method and system
CN114915555B (en) Gateway drive communication method, device, equipment and storage medium
CN114090293B (en) Service providing method and electronic equipment
CN117271054A (en) Container kernel fault processing method, system, storage medium and electronic equipment
WO2018171287A1 (en) Remote invoking method and remote invoking apparatus
CN113472583B (en) Fault cause identification method, device and system
CN111770093A (en) Transaction monitoring decision-making method, apparatus, device and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant