CN107483287A - A kind of Auto Observation System mouth data pack receiving and transmitting failure system and method - Google Patents

A kind of Auto Observation System mouth data pack receiving and transmitting failure system and method Download PDF

Info

Publication number
CN107483287A
CN107483287A CN201710707108.8A CN201710707108A CN107483287A CN 107483287 A CN107483287 A CN 107483287A CN 201710707108 A CN201710707108 A CN 201710707108A CN 107483287 A CN107483287 A CN 107483287A
Authority
CN
China
Prior art keywords
network interface
data packets
packet
state
state 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.)
Granted
Application number
CN201710707108.8A
Other languages
Chinese (zh)
Other versions
CN107483287B (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

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 present invention provides a kind of Auto Observation System mouth data pack receiving and transmitting failure system and method, kernel events generation module is by changing system network interface version kernel code, the packet of each network interface transmitting-receiving of acquisition system, the state data packets of packet, and the quantity of each state data packets, the packet that event control center module receives and dispatches network interface, state data packets corresponding with the packet, and the quantity of state data packets is packaged, by packet encapsulation information transfer to user terminal and fault detection module after encapsulation;Fault detection module parses to the packet encapsulation information that event control center is sent, and judges whether the quantity of each state data packets exceeds threshold value, and will determine that result log.System solves the alarm prompt of network packet transmitting-receiving failure, realizes kernel actively monitoring network interface data pack receiving and transmitting failure, and log, while is sent in the form of mail to user, and user can check that daily record positions network interface, confirm network problem.

Description

A kind of Auto Observation System mouth data pack receiving and transmitting failure system and method
Technical field
The present invention relates to network interface malfunction monitoring field, more particularly to a kind of Auto Observation System mouth data pack receiving and transmitting failure system And method.
Background technology
In linux system, user can check the data transmit-receive statistics of each network interface by shell-command, such as Ifconfig, ethtool etc., the traffic statistics of each network interface, such as/proc/ can also be obtained by checking the method for file All types of data statistics files under net/dev files and/sys/class/net/ network interfaces/statistics/ catalogues.These sides Method all actively is gone to call by user, and judges whether network breaks down by analyzing these statistics.
/ proc/net/dev files are the modes for most intuitively reflecting each network interface flow of server, and user passes through order " watch cat/proc/net/dev " can intuitively see the change of all types of packet numerical value.But when network occurs During data pack receiving and transmitting failure ,/proc/net/dev files actively can not prompt user network there is a problem, can only wait stand-by This document is checked at family, can just know fault details.
The content of the invention
In order to overcome above-mentioned deficiency of the prior art, the present invention provides a kind of Auto Observation System mouth data pack receiving and transmitting failure System, including:Kernel events generation module, event control center module, fault detection module;
Kernel events generation module is used to, by changing system network interface version kernel code, obtain each network interface transmitting-receiving of system Packet, state data packets of packet, and the quantity of each state data packets, and the data that each network interface is received and dispatched Bag, the state of packet, and the quantity of each state data packets are sent to event control center module;
Event control center module is used for the packet for each network interface transmitting-receiving for receiving the transmission of kernel events generation module, number According to the state data packets of bag, and the quantity of each packet state, the packet that network interface is received and dispatched is corresponding with the packet State data packets, and the quantity of state data packets is packaged, by packet encapsulation information transfer to user terminal after encapsulation And fault detection module;
Fault detection module is used to parse the packet encapsulation information that event control center is sent, and judges each shape Whether the quantity of state packet exceeds threshold value, and will determine that result log.
Preferably, kernel events generation module includes:Kernel source code processing module;
Kernel source code processing module is used for the data structure for defining system network interface packet statistics information;Definition is to the number According to the transmission function of structure;In kernel source code in the function body of network interface statistics transceiving data bag, addition network interface data bag statistics The data structure of information, assignment and call definition send function, are sent to event control center module.
Preferably, kernel events generation module also includes:Network interface name definition module, kernel chained list module;
Network interface name definition module is used to be named system network interface;
Kernel chained list module is used to establish system each network interface network interface data transmitting-receiving chained list, the number that each network interface is received and dispatched According to bag, the quantity of the state data packets of packet and each state data packets is added in network interface data transmitting-receiving chained list.
Preferably, event control center module is additionally operable to the network interface data transmitting-receiving chained list of each network interface of acquisition system, passes through The packet of each network interface transmitting-receiving of network interface data transmitting-receiving chained list acquisition, the state data packets of packet and each state data packets Quantity;Preset when the quantity of the data packet number that network interface is received and dispatched in a certain network interface data transmitting-receiving chained list, or state data packets exceeds During threshold value, transmit queue is waken up, network interface data transmitting-receiving chained list is sent to fault detect mould with netlink communication modes Block;
Fault detection module is additionally operable to receive the network interface data transmitting-receiving chained list that event control center module is sent, and parses network interface Data message in data transmit-receive chained list, the state data packets parsed are compared with the default state data packets that compare, Whether the state data packets for judging to parse are consistent with the default state data packets that compare;
When the state data packets parsed with it is default compare state data packets and be consistent when, state data packets will be parsed Quantity is contrasted with default state data packets amount threshold, sees if fall out threshold value;When beyond threshold value, the net is judged The data transfer of mouth breaks down, and sends prompt message.
Preferably, state data packets include:It is normal to connect bag-like state, reception frame state is normal, and reception verification state is normal, hair Bag-like state is normal, and transmission frame state is normal, and transmission verification state is normal, receives packet loss state, receives erroneous packets state, receives Fifo erroneous packets state, receiving frame erroneous packets state, receive check errors bag-like state, error of transmission bag-like state, transmission packet loss shape State, transmission fifo erroneous packets states.
A kind of Auto Observation System mouth data pack receiving and transmitting fault method, method include:
Step 1, kernel events generation module obtain each network interface of system by changing system network interface version kernel code The packet of transmitting-receiving, the state data packets of packet, and the quantity of each state data packets, and the number that each network interface is received and dispatched According to bag, the quantity of the state of packet, and each state data packets is sent to event control center module;
Step 2, event control center module receive the data for each network interface transmitting-receiving that kernel events generation module is sent Bag, the state data packets of packet, and the quantity of each packet state, the packet that network interface is received and dispatched, with the data State data packets corresponding to bag, and the quantity of state data packets are packaged, and arrive packet encapsulation information transfer after encapsulation User terminal and fault detection module;
Step 3, fault detection module parse to the packet encapsulation information that event control center is sent, and judge every Whether the quantity of individual state data packets exceeds threshold value, and will determine that result log.
Preferably, step 1 also includes:
Kernel source code processing module defines the data structure of system network interface packet statistics information;
Define the transmission function to the data structure;
In kernel source code in the function body of network interface statistics transceiving data bag, the data of network interface data bag statistical information are added Structure, assignment and call definition send function, are sent to event control center module.
Preferably, step 1 also includes:
Kernel chained list module establishes network interface data transmitting-receiving chained list, the data that each network interface is received and dispatched to each network interface of system The quantity of bag, the state data packets of packet and each state data packets is added in network interface data transmitting-receiving chained list.
Preferably, event control center module obtains the network interface data transmitting-receiving chained list of each network interface of system, passes through network interface number The quantity of the packet of each network interface transmitting-receiving, the state data packets of packet and each state data packets is obtained according to transmitting-receiving chained list; When the data packet number that network interface is received and dispatched in a certain network interface data transmitting-receiving chained list, or the quantity of state data packets exceed predetermined threshold value When, transmit queue is waken up, network interface data transmitting-receiving chained list is sent to fault detection module with netlink communication modes;
Fault detection module receives the network interface data transmitting-receiving chained list that event control center module is sent, and parsing network interface data is received The data message in chained list is sent out, the state data packets parsed are compared with the default state data packets that compare, judge to solve Whether the state data packets of precipitation are consistent with the default state data packets that compare;
When the state data packets parsed with it is default compare state data packets and be consistent when, state data packets will be parsed Quantity is contrasted with default state data packets amount threshold, sees if fall out threshold value;When beyond threshold value, the net is judged The data transfer of mouth breaks down, and sends prompt message.
Preferably, when the state data packets that parse with it is default compare state data packets and be not inconsistent when, judge that storage is default Compare in the storage module of state data packets with the presence or absence of the state data packets parsed;
When the storage module store it is described parse state data packets when, the state data packets institute parsed The data transfer of corresponding network interface is normal;
When the storage module do not store it is described parse state data packets when, prompt the state parsed described in user Packet is not stored in storage module.
As can be seen from the above technical solutions, the present invention has advantages below:
Auto Observation System mouth data pack receiving and transmitting failure system solves the alarm prompt of network data pack receiving and transmitting failure, realizes Kernel actively monitoring network interface data pack receiving and transmitting failure, and log, being sent in the form of mail to user, user to check Daily record positions network interface, confirms network problem.The present invention is not recompilating the situation of kernel, changes kernel source code, addition monitoring Network interface, and the failed transmission detected to user terminal for customer analysis Network Details and is recorded with netlink communication modes.
System is based on kernel state, and network data pack receiving and transmitting statistical information is obtained by way of dynamic load patch, then It is delivered under User space and judges whether network failure occur, realizes the auto-alarming function of network failure.
Brief description of the drawings
In order to illustrate more clearly of technical scheme, the required accompanying drawing used in description will be made below simple Ground introduction, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ordinary skill For personnel, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is Auto Observation System mouth data pack receiving and transmitting failure system overall schematic;
Fig. 2 is Auto Observation System mouth data pack receiving and transmitting fault method flow chart;
Fig. 3 is Auto Observation System mouth data pack receiving and transmitting fault method embodiment flow chart.
Embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, will use below specific Embodiment and accompanying drawing, the technical scheme protected to the present invention are clearly and completely described, it is clear that implementation disclosed below Example is only part of the embodiment of the present invention, and not all embodiment.Based on the embodiment in this patent, the common skill in this area All other embodiment that art personnel are obtained under the premise of creative work is not made, belong to the model of this patent protection Enclose.
The present embodiment provides a kind of Auto Observation System mouth data pack receiving and transmitting failure system, as shown in figure 1, including:Kernel thing Part generation module 1, event control center module 2, fault detection module 3;
Kernel events generation module 1 is used to, by changing system network interface version kernel code, obtain each network interface of system and receive The packet of hair, the state data packets of packet, and the quantity of each state data packets, and the data that each network interface is received and dispatched Bag, the state of packet, and the quantity of each state data packets are sent to event control center module;Event control center die The packet of each network interface transmitting-receiving of the block 2 for receiving the transmission of kernel events generation module, the state data packets of packet, and The quantity of each packet state, the packet that network interface is received and dispatched, state data packets corresponding with the packet, and state The quantity of packet is packaged, by packet encapsulation information transfer to user terminal and fault detection module after encapsulation;Failure is examined Survey module 3 to be used to parse the packet encapsulation information that event control center is sent, judge the number of each state data packets Whether amount exceeds threshold value, and will determine that result log.
State data packets include:It is normal to connect bag-like state, reception frame state is normal, and reception verification state is normal, state of giving out a contract for a project Normally, transmission frame state is normal, and transmission verification state is normal, receives packet loss state, receives erroneous packets state, receives fifo mistakes Bag-like state, receiving frame erroneous packets state, receive check errors bag-like state, error of transmission bag-like state, transmission packet loss state, transmission Fifo erroneous packets states.
Be not limited to above-mentioned several reiving/transmitting state packets in the present invention, also receive and dispatch normal state data packets and Except the counting of normal transceiving data bag, also comprising reception packet loss rx_dropped, erroneous packets rx_errors, reception are received Fifo erroneous packets rx_fifo_errors, receiving frame erroneous packets rx_frame_errors, receive check errors bag rx_crc_ Errors, error of transmission bag tx_errors, transmission packet loss tx_dropped, transmission fifo erroneous packets tx_fifo_errors etc. Receive and dispatch the counting of failure bag.In the case where network is good, these transmitting-receiving failure classes offsets are zero.Allow packet loss or mistake in network The appearance of bag by mistake, but when the packet numerical value of fault type is incremented by, show that failure occurs in network.
The network equipment in linux kernel source code for each registration provides the function interface dev_ of data pack receiving and transmitting statistics Get_stats, by calling the function, the packet statistics since the network equipment self-operating time/proc/ can be mapped to In net/dev files, user checks that file can obtain the transceiving data bag statistical conditions of each network interface.
Wherein, kernel events generation module 1 is realized by changing corresponding version kernel code and obtains network interface transceiving data bag Statistics function, pass through kpatch-build orders generate kernel kpatch patches.
Here kernel events generation module includes:Kernel source code is changed, realizes the work(for obtaining network interface data bag statistical information Energy;Patch files are generated by contrasting the front and rear kernel source code of modification;Kpatch patches are generated by kpatch-build.Its Middle core is modification kernel code, realizes the function of obtaining network interface data bag statistical information.
Kernel events generation module is loaded into kernel by the way of kpatch dynamic patch, in the situation that machine is not restarted Under can run, it is portable high;The event of addition sends function, can be called with the calling of kernel, main without triggering manually Dynamic property is high.
In the present embodiment, kernel events generation module includes:Kernel source code processing module;Kernel source code processing module is used for The data structure of definition system network interface packet statistics information;Define the transmission function to the data structure;In kernel source code In the function body of middle network interface statistics transceiving data bag, the data structure of network interface data bag statistical information is added, assignment is simultaneously called calmly Justice sends function, is sent to event control center module.
In the present embodiment, kernel events generation module 1 also includes:Network interface name definition module, kernel chained list module;Network interface Name definition module is used to be named system network interface;Specifically, it can be obtained by kernel function netdev_name ().
Kernel chained list module is used to establish system each network interface network interface data transmitting-receiving chained list, the number that each network interface is received and dispatched According to bag, the quantity of the state data packets of packet and each state data packets is added in network interface data transmitting-receiving chained list.Kernel chain Table structure is all network interface data bag statistical informations, and network interface data package informatin is all concluded by kernel chained list is unified.
In the present embodiment, event control center module 2 is additionally operable to the network interface data transmitting-receiving chained list of each network interface of acquisition system, The packet of each network interface transmitting-receiving of chained list acquisition, the state data packets of packet and each status data are received and dispatched by network interface data The quantity of bag;When the data packet number that network interface is received and dispatched in a certain network interface data transmitting-receiving chained list, or the quantity of state data packets exceed During predetermined threshold value, transmit queue is waken up, network interface data transmitting-receiving chained list is sent to fault detect with netlink communication modes Module;
Fault detection module 3 is additionally operable to receive the network interface data transmitting-receiving chained list that event control center module is sent, and parses net Data message in mouth data transmit-receive chained list, the state data packets parsed and the default state data packets that compare are compared Right, whether the state data packets for judging to parse are consistent with the default state data packets that compare;When the state data packets parsed With it is default compare state data packets and be consistent when, by the quantity for parsing state data packets and default state data packets quantity threshold Value is contrasted, and sees if fall out threshold value;When beyond threshold value, judge that the data transfer of the network interface breaks down, and send Prompt message.
The definition of event control center module 2 sends function net_post_error (), encapsulates network interface data bag statistical framework Body, structure is added in data transmit-receive chained list, event control center module can obtain net by the data transmit-receive chained list Mouth packet statistics event.Kernel source code /net/core/net-proc.c files in, find dev_seq_printf_ Stats () function, valuation structure body structpkt_evt, call transmission function net_post_error () that pkt_evt is sent out Deliver to the reception of event control center module.
Event control center module, after module loading, when event number increase on chained list, wake module transmit queue, Call function kfm_net_evt_post2user (), event is sent to by netlink communication modes by fault detection module.
The present invention also provides a kind of Auto Observation System mouth data pack receiving and transmitting fault method, as shown in Fig. 2 method includes:
S1, kernel events generation module obtain each network interface transmitting-receiving of system by changing system network interface version kernel code Packet, state data packets of packet, and the quantity of each state data packets, and the data that each network interface is received and dispatched Bag, the state of packet, and the quantity of each state data packets are sent to event control center module;
S2, event control center module receive the packet for each network interface transmitting-receiving that kernel events generation module is sent, number According to the state data packets of bag, and the quantity of each packet state, the packet that network interface is received and dispatched is corresponding with the packet State data packets, and the quantity of state data packets is packaged, by packet encapsulation information transfer to user terminal after encapsulation And fault detection module;
S3, fault detection module parse to the packet encapsulation information that event control center is sent, and judge each shape Whether the quantity of state packet exceeds threshold value, and will determine that result log.
In the present embodiment, step S1 also includes:Kernel source code processing module defines system network interface packet statistics information Data structure;Define the transmission function to the data structure;The function body of network interface statistics transceiving data bag in kernel source code It is interior, the data structure of network interface data bag statistical information, assignment and call definition transmission function are added, is sent to event control center Module.
Step S1 also includes:Kernel chained list module establishes network interface data transmitting-receiving chained list to each network interface of system, by each net The quantity of the packet of mouth transmitting-receiving, the state data packets of packet and each state data packets is added to network interface data transmitting-receiving chained list In.
In the present embodiment, method also includes:As shown in figure 3,
S11, event control center module obtain the network interface data transmitting-receiving chained list of each network interface of system, received by network interface data Send out the quantity of the packet that chained list obtains each network interface transmitting-receiving, the state data packets of packet and each state data packets;When certain The data packet number that network interface is received and dispatched in one network interface data transmitting-receiving chained list, or when the quantity of state data packets exceeds predetermined threshold value, call out Awake transmit queue, network interface data transmitting-receiving chained list is sent to fault detection module with netlink communication modes;
S12, fault detection module receive the network interface data transmitting-receiving chained list that event control center module is sent, parse network interface number According to the data message in transmitting-receiving chained list, the state data packets parsed are compared with the default state data packets that compare, sentenced Whether the disconnected state data packets parsed are consistent with the default state data packets that compare;
The default state data packets that compare are mainly to set the comparison state data packets with malfunction property.Pass through reality Now compare state data packets whether be malfunction packet come obtain network interface data transmission state.Certainly if network State data packets under normal circumstances, it can also be provided that needing the state data packets compared.Which specific state data packets need To be used as and compare object, by user according to setting is actually needed, not limit here.
S121, when the state data packets parsed with it is default compare state data packets and be consistent when, status number will be parsed Contrasted according to the quantity and default state data packets amount threshold of bag, see if fall out threshold value;When beyond threshold value, sentence The data transfer of the disconnected network interface breaks down, and sends prompt message.The state data packets namely currently compared are failure shape The state data packets of state property matter are, it is necessary to compare quantity information.
S122, when the state data packets that parse with it is default compare state data packets and be not inconsistent when, judge to store default ratio To whether there is the state data packets parsed in the storage module of state data packets;Some fault state data bags and just Normal state data packets are not stored into storage module, and so in prior compare, system can not find the object of comparison, cause to occur The state data packets parsed and the default situation for comparing state data packets and not being inconsistent, in order to avoid this situation occurs, system Voluntarily judge whether state data packets are stored in storage module.
S131, when the storage module store it is described parse state data packets when, the status number parsed Data transfer according to the corresponding network interface of bag is normal;
S132, when the storage module do not store it is described parse state data packets when, prompt to parse described in user State data packets be not stored in storage module.
User checks whether the state data packets need to be added in storage module, so as to follow-up right according to prompt message Than using.Or there is new malfunction again in network, then new state data packets can be found by this method, and will be new State data packets be added in storage module, so as to subsequent contrast use.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, identical similar portion refers to mutually between each embodiment.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

  1. A kind of 1. Auto Observation System mouth data pack receiving and transmitting failure system, it is characterised in that including:Kernel events generation module, thing Part control centre module, fault detection module;
    Kernel events generation module is used to, by changing system network interface version kernel code, obtain the number of each network interface transmitting-receiving of system According to bag, the state data packets of packet, and the quantity of each state data packets, and the packet that each network interface is received and dispatched, number Sent according to the quantity of the state of bag, and each state data packets to event control center module;
    Event control center module is used for the packet for each network interface transmitting-receiving for receiving the transmission of kernel events generation module, packet State data packets, and the quantity of each packet state, the packet that network interface is received and dispatched, shape corresponding with the packet State packet, and the quantity of state data packets are packaged, by packet encapsulation information transfer to user terminal and event after encapsulation Hinder detection module;
    Fault detection module is used to parse the packet encapsulation information that event control center is sent, and judges each status number Whether exceed threshold value according to the quantity of bag, and will determine that result log.
  2. 2. Auto Observation System mouth data pack receiving and transmitting failure system according to claim 1, it is characterised in that
    Kernel events generation module includes:Kernel source code processing module;
    Kernel source code processing module is used for the data structure for defining system network interface packet statistics information;Definition is to the data knot The transmission function of structure;In kernel source code in the function body of network interface statistics transceiving data bag, network interface data bag statistical information is added Data structure, assignment and call definition send function, are sent to event control center module.
  3. 3. Auto Observation System mouth data pack receiving and transmitting failure system according to claim 1, it is characterised in that
    Kernel events generation module also includes:Network interface name definition module, kernel chained list module;
    Network interface name definition module is used to be named system network interface;
    Kernel chained list module is used to establish system each network interface network interface data transmitting-receiving chained list, the data that each network interface is received and dispatched The quantity of bag, the state data packets of packet and each state data packets is added in network interface data transmitting-receiving chained list.
  4. 4. Auto Observation System mouth data pack receiving and transmitting failure system according to claim 3, it is characterised in that
    Event control center module is additionally operable to the network interface data transmitting-receiving chained list of each network interface of acquisition system, is received and dispatched by network interface data Chained list obtains the quantity of the packet of each network interface transmitting-receiving, the state data packets of packet and each state data packets;When a certain The data packet number that network interface is received and dispatched in network interface data transmitting-receiving chained list, or when the quantity of state data packets exceed predetermined threshold value, wake-up Transmit queue, network interface data transmitting-receiving chained list is sent to fault detection module with netlink communication modes;
    Fault detection module is additionally operable to receive the network interface data transmitting-receiving chained list that event control center module is sent, and parses network interface data The data message in chained list is received and dispatched, the state data packets parsed are compared with the default state data packets that compare, is judged Whether the state data packets parsed are consistent with the default state data packets that compare;
    When the state data packets parsed with it is default compare state data packets and be consistent when, the quantity of state data packets will be parsed Contrasted with default state data packets amount threshold, see if fall out threshold value;When beyond threshold value, the network interface is judged Data transfer breaks down, and sends prompt message.
  5. 5. Auto Observation System mouth data pack receiving and transmitting failure system according to claim 1, it is characterised in that
    State data packets include:It is normal to connect bag-like state, reception frame state is normal, and reception verification state is normal, and state of giving out a contract for a project is normal, It is normal to send frame state, transmission verification state is normal, receives packet loss state, receives erroneous packets state, receives fifo mistake bag-like State, receiving frame erroneous packets state, receive check errors bag-like state, error of transmission bag-like state, transmission packet loss state, transmission fifo mistakes Bag-like state by mistake.
  6. 6. a kind of Auto Observation System mouth data pack receiving and transmitting fault method, it is characterised in that method includes:
    Step 1, kernel events generation module obtain each network interface transmitting-receiving of system by changing system network interface version kernel code Packet, state data packets of packet, and the quantity of each state data packets, and the data that each network interface is received and dispatched Bag, the state of packet, and the quantity of each state data packets are sent to event control center module;
    Step 2, event control center module receive the packet for each network interface transmitting-receiving that kernel events generation module is sent, number According to the state data packets of bag, and the quantity of each packet state, the packet that network interface is received and dispatched is corresponding with the packet State data packets, and the quantity of state data packets is packaged, by packet encapsulation information transfer to user terminal after encapsulation And fault detection module;
    Step 3, fault detection module parse to the packet encapsulation information that event control center is sent, and judge each shape Whether the quantity of state packet exceeds threshold value, and will determine that result log.
  7. 7. Auto Observation System mouth data pack receiving and transmitting fault method according to claim 6, it is characterised in that
    Step 1 also includes:
    Kernel source code processing module defines the data structure of system network interface packet statistics information;
    Define the transmission function to the data structure;
    In kernel source code in the function body of network interface statistics transceiving data bag, the data knot of network interface data bag statistical information is added Structure, assignment and call definition send function, are sent to event control center module.
  8. 8. Auto Observation System mouth data pack receiving and transmitting fault method according to claim 6, it is characterised in that
    Step 1 also includes:
    Kernel chained list module establishes network interface data transmitting-receiving chained list, the packet that each network interface is received and dispatched, number to each network interface of system It is added to according to the state data packets of bag and the quantity of each state data packets in network interface data transmitting-receiving chained list.
  9. 9. Auto Observation System mouth data pack receiving and transmitting fault method according to claim 8, it is characterised in that method is also wrapped Include:
    Event control center module obtains the network interface data transmitting-receiving chained list of each network interface of system, receives and dispatches chained list by network interface data and obtains Take the quantity of the packet of each network interface transmitting-receiving, the state data packets of packet and each state data packets;When a certain network interface number When exceeding predetermined threshold value according to the quantity of the data packet number of network interface transmitting-receiving in transmitting-receiving chained list, or state data packets, wake up and send team Row, network interface data transmitting-receiving chained list is sent to fault detection module with netlink communication modes;
    Fault detection module receives the network interface data transmitting-receiving chained list that event control center module is sent, parsing network interface data transmitting-receiving chain Data message in table, the state data packets parsed are compared with the default state data packets that compare, judge to parse State data packets whether be consistent with the default state data packets that compare;
    When the state data packets parsed with it is default compare state data packets and be consistent when, the quantity of state data packets will be parsed Contrasted with default state data packets amount threshold, see if fall out threshold value;When beyond threshold value, the network interface is judged Data transfer breaks down, and sends prompt message.
  10. 10. Auto Observation System mouth data pack receiving and transmitting fault method according to claim 9, it is characterised in that method is also wrapped Include:
    When the state data packets that parse with it is default compare state data packets and be not inconsistent when, judge to store and default compare status data With the presence or absence of the state data packets parsed in the storage module of bag;
    When the storage module store it is described parse state data packets when, corresponding to the state data packets parsed Network interface data transfer it is normal;
    When the storage module do not store it is described parse state data packets when, prompt the status data parsed described in user Bag is not stored in storage module.
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 true CN107483287A (en) 2017-12-15
CN107483287B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110752967A (en) * 2019-10-14 2020-02-04 杭州迪普科技股份有限公司 Interface fault detection method, device, equipment and storage medium
CN110838949A (en) * 2018-08-16 2020-02-25 阿里巴巴集团控股有限公司 Network flow log recording method and device
CN111145405A (en) * 2019-12-31 2020-05-12 上海申铁信息工程有限公司 High-speed railway station gate machine management system
CN112787883A (en) * 2020-12-26 2021-05-11 中国农业银行股份有限公司 Method, device and equipment for detecting NAT (network Address translation) fault of equipment

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 core
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 core
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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110838949A (en) * 2018-08-16 2020-02-25 阿里巴巴集团控股有限公司 Network flow log recording method and device
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
CN112787883A (en) * 2020-12-26 2021-05-11 中国农业银行股份有限公司 Method, device and equipment for detecting NAT (network Address translation) fault of equipment

Also Published As

Publication number Publication date
CN107483287B (en) 2021-07-20

Similar Documents

Publication Publication Date Title
CN107483287A (en) A kind of Auto Observation System mouth data pack receiving and transmitting failure system and method
CN110224858B (en) Log-based alarm method and related device
US11315182B2 (en) Validation engine with dual processing capacity
CN101252532B (en) Equipment and method for collocating Ethernet link polymerization terminal port
CN106878064A (en) Data monitoring method and device
CN100365994C (en) Method and system for regulating ethernet
US8539509B2 (en) Event queue managing device and event queue managing method
CN104778042B (en) A kind of stream data processing method based on event stream processing and plug-in type Development Framework
CN106254172A (en) Heterogeneous applications collecting method and device
CA2588007A1 (en) System and method for monitoring mobile units in a wireless network
TW201121264A (en) Loop detection method and network device applying the same
CN107729209A (en) For the information monitoring method of server, device, equipment and storage medium
CN107729221A (en) Cross-thread message monitoring method, device, computer equipment and storage medium
Evers et al. Sensorscheme: Supply chain management automation using wireless sensor networks
CN101540722A (en) Method and device for configuring Ethernet trunk aggregation port
CN104780123B (en) A kind of network pack receiving and transmitting processing unit and its design method
CN105281927A (en) Method and device for multilink protection switching
CN103067184A (en) Exception handling method of offline charging and system
KR101139888B1 (en) ???? middleware system for use in Container Security Device
US8930604B2 (en) Reliable notification of interrupts in a network processor by prioritization and policing of interrupts
CN106534399A (en) Virtual switch matrix (VSM) splitting detection methods and apparatuses
CN101305389A (en) Independent message stores and message transport agents
US20080301506A1 (en) system diagnostics with dynamic contextual information of events
CN109245927A (en) Warning system and method in cloud data system
CN112671587A (en) Alarm method for failure of equipment issuing configuration

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