CN113328885B - Network health degree evaluation method, device, electronic equipment, medium and program product - Google Patents

Network health degree evaluation method, device, electronic equipment, medium and program product Download PDF

Info

Publication number
CN113328885B
CN113328885B CN202110587864.8A CN202110587864A CN113328885B CN 113328885 B CN113328885 B CN 113328885B CN 202110587864 A CN202110587864 A CN 202110587864A CN 113328885 B CN113328885 B CN 113328885B
Authority
CN
China
Prior art keywords
network
determining
monitoring
module
index
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
CN202110587864.8A
Other languages
Chinese (zh)
Other versions
CN113328885A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110587864.8A priority Critical patent/CN113328885B/en
Publication of CN113328885A publication Critical patent/CN113328885A/en
Application granted granted Critical
Publication of CN113328885B publication Critical patent/CN113328885B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • 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/0677Localisation of faults
    • 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/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure provides a network health degree evaluation method, which includes: and responding to a transmission request of the target data, and determining a network transmission path of the network to be evaluated, wherein the network transmission path is used for representing that the target data sequentially flows through a plurality of network levels of the network to be evaluated, and the plurality of network levels comprise a hardware layer, a network card driving layer, a kernel protocol stack layer and a socket layer. And acquiring a network monitoring index corresponding to each network level, wherein the network monitoring index is used as an evaluation basis for evaluating the health degree of the corresponding network level. And determining a health degree evaluation result corresponding to each network level based on the index monitoring data corresponding to the network monitoring index obtained by monitoring. And determining the health degree evaluation result of the network to be evaluated based on the health degree evaluation result corresponding to each network level. The present disclosure also provides a network health assessment apparatus, an electronic device, a medium, and a program product. The method and the device provided by the disclosure can be applied to the financial field or other fields.

Description

Network health degree evaluation method, device, electronic equipment, medium and program product
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to a method, an apparatus, an electronic device, a medium, and a program product for evaluating network health.
Background
This section is intended to provide a background or context to the embodiments of the disclosure recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
Driven by the demands of prevailing network applications, data centers have built up at an unprecedented rate and scale worldwide. A data center is a complex set of facilities that include not only computer systems and other associated equipment, but also redundant data communication connections, environmental control equipment, monitoring equipment, and various security devices. The scale of the data center is larger and larger, the carried services are more and more, and the maintenance of normal network transmission is crucial to the normal operation of the data center. At present, in the field of network fault detection, a data center generally relates to network devices, lines, and the like, and performs anomaly detection on network devices in a whole network by monitoring some key KPIs of the network devices, such as ports, optical modules, single boards, and the like.
However, in the process of implementing the concept of the present disclosure, the inventor finds that although the related art can implement the anomaly detection on the network device, for the network transmission anomaly situation occurring after data enters the server from the network transmission medium, generally, after the fault occurs, the fault is located by manually checking the log item by item, and the details of the fault cannot be predicted and detected, so that the timeliness is not good.
Disclosure of Invention
In view of the above, in order to overcome the above technical problems in the related art, and to accurately find out network transmission abnormal conditions generated during network transmission in time after data flows from a network transmission medium to a server, the present disclosure provides a network health degree evaluation method, a network health degree evaluation device, an electronic device, a medium, and a program product, to which the network health degree evaluation method can be applied.
In order to achieve the above object, one aspect of the present disclosure provides a network health assessment method, which may include: responding to a transmission request of target data, and determining a network transmission path of a network to be evaluated, wherein the network transmission path is used for representing that the target data sequentially flows through a plurality of network levels of the network to be evaluated, and the plurality of network levels comprise a hardware layer, a network card driving layer, a kernel protocol stack layer and a socket layer; acquiring a network monitoring index corresponding to each network level, wherein the network monitoring index is used as an evaluation basis for evaluating the health degree of the corresponding network level; determining a health degree evaluation result corresponding to each network level based on index monitoring data corresponding to the network monitoring index obtained through monitoring; and determining the health degree evaluation result of the network to be evaluated based on the health degree evaluation result corresponding to each network level.
According to an embodiment of the present disclosure, the determining the health assessment result corresponding to each network level based on the monitored index monitoring data corresponding to the network monitoring index may include: determining a first threshold and a second threshold corresponding to the network monitoring index, wherein the first threshold is used for representing a critical value of the network monitoring index in an abnormal state, and the second threshold is used for representing a critical value of the network monitoring index in a fault state; and determining a health degree evaluation result corresponding to each network level based on the monitored index monitoring data corresponding to the network monitoring index, the first threshold value and the second threshold value.
According to an embodiment of the present disclosure, the determining the health assessment result corresponding to each network hierarchy based on the monitored index monitoring data corresponding to the network monitoring index, the first threshold and the second threshold may include at least one of: determining the health degree evaluation result corresponding to each network level as a health state under the condition that the monitored index monitoring data corresponding to the network monitoring index does not exceed the first threshold; determining that the health degree evaluation result corresponding to each network level is in an abnormal state when the monitored index monitoring data corresponding to the network monitoring index exceeds the first threshold and does not exceed the second threshold; and determining that the health degree evaluation result corresponding to each network level is a fault state under the condition that the monitored index monitoring data corresponding to the network monitoring index does not exceed the second threshold.
According to an embodiment of the present disclosure, the determining the health evaluation result of the network to be evaluated based on the health evaluation result corresponding to each network hierarchy may include at least one of: determining the health degree evaluation result of the network to be evaluated as the health state under the condition that the health degree evaluation result corresponding to each network level is the health state; determining the health degree evaluation result of the network to be evaluated as an abnormal state under the condition that the health degree evaluation result corresponding to at least one network level is in the abnormal state; and determining that the health degree evaluation result of the network to be evaluated is in a fault state under the condition that the health degree evaluation result corresponding to at least one network layer is in the fault state.
According to an embodiment of the present disclosure, the hardware layer may include an optical module, and the network monitoring index corresponding to the hardware layer may include at least one of: the receiving optical power of the optical module; the transmission optical power of the optical module; a module temperature of the optical module; a module voltage of the optical module; bias current of the optical module.
According to an embodiment of the present disclosure, the network card driving layer may include a network card buffer, and the network monitoring index corresponding to the network card driving layer may include at least one of the following: the overflow quantity of the data packets in the network card cache region; the number of discarded data packets in the network card cache region; and the error number of the data packets in the network card buffer area.
According to an embodiment of the present disclosure, the network monitoring indicator corresponding to the kernel protocol stack layer may include at least one of: a network monitoring indicator associated with a transmission control protocol; network monitoring metrics related to the internet protocol.
According to an embodiment of the present disclosure, the socket layer may include a socket cache area, and the network monitoring index corresponding to the socket layer may include at least one of: the overflow number of the data packets in the socket buffer area; the number of discarded packets in the socket buffer; the number of invalid packets in the socket buffer.
To achieve the above object, another aspect of the present disclosure provides a network health assessment apparatus, which may include: the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for responding to a transmission request of target data and determining a network transmission path of a network to be evaluated, the network transmission path is used for representing that the target data sequentially flows through a plurality of network levels of the network to be evaluated, and the network levels comprise a hardware layer, a network card driving layer, a kernel protocol stack layer and a socket layer; the system comprises an acquisition module, a judgment module and a display module, wherein the acquisition module is used for acquiring network monitoring indexes corresponding to each network level, and the network monitoring indexes are used as evaluation basis for evaluating the health degree of the corresponding network levels; a second determining module, configured to determine a health degree evaluation result corresponding to each network level based on monitored index monitoring data corresponding to the network monitoring index; and a third determining module, configured to determine a health degree evaluation result of the network to be evaluated based on the health degree evaluation result corresponding to each network level.
According to an embodiment of the present disclosure, the second determining module may include: a first determining submodule, configured to determine a first threshold and a second threshold corresponding to the network monitoring indicator, where the first threshold is a critical value indicating that the network monitoring indicator is in an abnormal state, and the second threshold is a critical value indicating that the network monitoring indicator is in a fault state; and a second determining submodule, configured to determine a health degree evaluation result corresponding to each network level based on the monitored index monitoring data corresponding to the network monitoring index, the first threshold, and the second threshold.
According to an embodiment of the present disclosure, the second determining sub-module may include at least one of: a first determining unit, configured to determine that a health degree evaluation result corresponding to each network hierarchy is a health state when the monitored indicator monitoring data corresponding to the network monitoring indicator does not exceed the first threshold; a second determining unit, configured to determine that a health degree evaluation result corresponding to each network hierarchy is in an abnormal state when the monitored index monitoring data corresponding to the network monitoring index exceeds the first threshold and does not exceed the second threshold; and a third determining unit, configured to determine that the health degree evaluation result corresponding to each network hierarchy is a failure state when the monitored indicator monitoring data corresponding to the network monitoring indicator does not exceed the second threshold.
According to an embodiment of the present disclosure, the third determining module may include at least one of: a third determining submodule, configured to determine that the health degree evaluation result of the network to be evaluated is a health state when the health degree evaluation result corresponding to each network level is a health state; a fourth determining sub-module, configured to determine that the health evaluation result of the network to be evaluated is in an abnormal state when the health evaluation result corresponding to at least one network level is in an abnormal state; and the fifth determining submodule is used for determining the health degree evaluation result of the network to be evaluated as a fault state under the condition that the health degree evaluation result corresponding to at least one network level is in the fault state.
According to an embodiment of the present disclosure, the hardware layer may include an optical module, and the network monitoring index corresponding to the hardware layer may include at least one of: the receiving optical power of the optical module; the transmission optical power of the optical module; a module temperature of the optical module; a module voltage of the optical module; bias current of the optical module.
According to an embodiment of the present disclosure, the network card driving layer may include a network card buffer, and the network monitoring index corresponding to the network card driving layer may include at least one of the following: the overflow quantity of the data packets in the network card cache region; the number of discarded data packets in the network card cache region; and the error number of the data packets in the network card buffer area.
According to an embodiment of the present disclosure, the network monitoring index corresponding to the kernel protocol stack layer may include at least one of the following: a network monitoring indicator associated with a transmission control protocol; network monitoring metrics related to the internet protocol.
According to an embodiment of the present disclosure, the socket layer may include a socket cache area, and the network monitoring index corresponding to the socket layer may include at least one of the following: the overflow number of the data packets in the socket buffer area; the number of discarded packets in the socket buffer; the number of invalid packets in the socket buffer.
In order to achieve the above object, another aspect of the present disclosure provides an electronic device including: one or more processors, a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the network health assessment method as described above.
To achieve the above object, another aspect of the present disclosure provides a computer-readable storage medium storing computer-executable instructions for implementing the network health assessment method as described above when executed.
To achieve the above object, another aspect of the present disclosure provides a computer program including computer executable instructions for implementing the network health assessment method as described above when executed.
According to the network health degree evaluation method based on the network monitoring indexes, the network transmission path of the target data flowing into the to-be-evaluated network of the server is monitored layer by layer according to the network level, the defect that faults are positioned in the related technology in modes of manually checking logs, detecting item by item and the like when network transmission is abnormal at the server side can be at least partially solved, and therefore the technical effects that the network monitoring indexes of each network level are monitored, abnormal conditions can be positioned according to the network level where the abnormal indexes are located, and fault analysis can be carried out by combining specific conditions after the network layer with the faults is positioned are achieved.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 schematically illustrates a system architecture of a network health assessment method, apparatus, electronic device, medium, and program product suitable for use with embodiments of the present disclosure;
FIG. 2 schematically illustrates a network transmission path suitable for use in embodiments of the present disclosure;
FIG. 3 schematically illustrates a flow chart of a network health assessment method according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a block diagram of a network health assessment apparatus according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a schematic diagram of a computer-readable storage medium product suitable for implementing the network health assessment method described above, in accordance with an embodiment of the present disclosure; and
fig. 6 schematically shows a block diagram of an electronic device adapted to implement the network health assessment method described above according to an embodiment of the present disclosure.
In the drawings, like or corresponding reference characters designate like or corresponding parts.
It should be noted that the figures are not drawn to scale and that elements of similar structure or function are generally represented by like reference numerals throughout the figures for illustrative purposes.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components. All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). Where a convention analogous to "A, B or at least one of C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B or C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable network health assessment apparatus such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks. The techniques provided by the present disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques provided by this disclosure may take the form of a computer program product on a computer-readable storage medium having instructions stored thereon for use by or in connection with an instruction execution system.
For a network used for transmitting data, the health degree of the network is crucial to success or failure of data transmission and transmission efficiency, in the related art, if network transmission abnormality occurs at a server side, generally, after a failure occurs, the failure is located by manually checking logs, item-by-item detection and the like, but the location where the failure may occur cannot be known in advance before the failure occurs and details of the failure are detected, so that timeliness is poor when the network transmission failure is checked, and a checking result is obviously delayed.
In order to improve the failure of troubleshooting on network transmission and obtain the position where a failure may occur in advance before the failure occurs, an embodiment of the present disclosure provides a network health degree evaluation method, which includes a network transmission path determining process and a network health degree evaluation process. In the process of determining the network transmission path, firstly, in response to a transmission request of target data, determining the network transmission path of the network to be evaluated, wherein the network transmission path is used for representing that the target data sequentially flows through a plurality of network levels of the network to be evaluated, and the plurality of network levels may include a hardware layer, a network card driver layer, a kernel protocol stack layer, and a socket layer. And then, acquiring a network monitoring index corresponding to each network level, wherein the network monitoring index is used as an evaluation basis for evaluating the health degree of the corresponding network level. And after the network transmission path determination process is completed, entering network health evaluation. Firstly, a health degree evaluation result corresponding to each network level is determined based on index monitoring data corresponding to network monitoring indexes obtained through monitoring. And finally, determining the health degree evaluation result of the network to be evaluated based on the health degree evaluation result corresponding to each network level.
By the method for evaluating the health degree of the network transmission of the server based on the network monitoring indexes, the network transmission path determined by the network transmission process after data flow into the server on the basis of the server side can be monitored in a hierarchical mode, the health degree evaluation result of each network hierarchy can be obtained, the network health degree of the server can be subjected to abnormal analysis and fault location according to the network monitoring indexes with abnormal data in a plurality of network hierarchies, and the method has good timeliness.
It should be noted that the network health degree evaluation method, the network health degree evaluation device to which the network health degree evaluation method can be applied, the electronic device, the medium, and the program product provided by the present disclosure can be used in the financial field, and can also be used in any field other than the financial field. Therefore, the network health degree evaluation method provided by the present disclosure, and the application fields of the network health degree evaluation device, the electronic device, the medium, and the program product to which the network health degree evaluation method can be applied are not particularly limited.
Fig. 1 schematically illustrates a system architecture 100 of a network health assessment method, apparatus, electronic device, medium, and program product suitable for use with embodiments of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
As shown in fig. 1, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the network health assessment method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the network health assessment apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The network health assessment method provided by the embodiment of the present disclosure may also be executed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the network health assessment apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for an implementation.
Fig. 2 schematically illustrates a network transmission path suitable for use in embodiments of the present disclosure.
As shown in fig. 2, after flowing into the server 200, the data flows through a plurality of network layers in sequence before reaching the application 250 to form a network transmission path after the data enters the server 200 from a network transmission medium. In the present disclosure, the server 200 may be a Linux server for performing business processing applications, which has a wide range of applications in networks and computer systems, and can provide contents such as database management and network services, and the Linux server is an open source server with very high performance. The Linux operating system is embedded with a TCP/IP protocol stack, and protocol software has a route forwarding function. The routing forwarding depends on a host which is used as a router and is provided with a plurality of network cards, after a certain network card receives a data packet, a system kernel inquires a routing table according to a destination IP address of the data packet, then sends the data packet to another network card according to an inquiry result, and finally sends the data packet out through the network card. The processing procedure of the host is the core function performed by the router.
According to an embodiment of the present disclosure, the multiple network layers may be described as a hardware layer 210, a network card driver layer 220, a kernel protocol stack layer 230, and a socket layer 240 from bottom to top in sequence. In the present disclosure, the hardware layer 210 is a receiving device for data frames flowing into the server via a transmission medium, and the monitoring object of the hardware layer 210 may be a physical network card. The monitoring object of the network card driving layer 220 may be a Ring Queue (also called Ring Buffer) of the network card, the Ring Buffer is also called Circular Queue (Circular Queue), Circular Buffer (Cyclic Buffer), Circular Buffer (Circular Buffer), and is a data structure for representing a Buffer area with a fixed size and connected end to end, and is suitable for caching data streams. The monitoring objects of the kernel Protocol stack layer 230 may be Transmission Control Protocol (TCP, Transmission Control Protocol 0l) and Internet Protocol (IP, Internet Protocol). The monitoring object of the Socket layer 240 may be a Socket queue (Socket Buffer). The network card driver layer 220, the kernel protocol stack layer 230, and the socket layer 240 form a kernel.
It should be noted that the multiple network layers through which the network transmission path flows in fig. 2 are only examples to help those skilled in the art understand the technical content of the present disclosure, and are not limited to the network layers.
Fig. 3 schematically shows a flow chart of a network health assessment method according to an embodiment of the present disclosure. As shown in fig. 3, the evaluation method 300 may include operations S310 to S340.
In operation S310, in response to a transmission request of target data, a network transmission path of a network to be evaluated is determined, where the network transmission path is used to represent that the target data sequentially flows through a plurality of network levels of the network to be evaluated, and the plurality of network levels include a hardware layer, a network card driver layer, a kernel protocol stack layer, and a socket layer.
According to the embodiment of the disclosure, the target data may be any data transmitted through the network to be evaluated, and a network transmission path after the data flows into the server may be divided into a plurality of network hierarchies according to the network architecture and the hierarchy of the kernel protocol stack of the Linux operating system of the server. Network architecture means the Open Systems Interconnection (OSI) reference model, a protocol specification that defines the set of layers, protocols of each layer, and interfaces between layers of a computer network. The working layer of network communication is divided into 7 levels, namely a physical layer, a data link layer, a network layer, a transmission layer, a session layer, a presentation layer and an application layer from low to high. The hierarchy of the kernel protocol stack may include a system call interface, a protocol independent interface, a network protocol, a driver independent interface, and a device driver.
In operation S320, a network monitoring index corresponding to each network level is obtained, and the network monitoring index is used as an evaluation basis for health evaluation of the corresponding network level.
According to the embodiment of the disclosure, the network monitoring index corresponding to each network level can be obtained through a command line of the Linux operating system, such as a CMD command line. For example, the network monitoring index of the hardware layer can be obtained through an "ethtopool-meth 1" command, and the network monitoring index of the network card driving layer can be obtained through "ifconfig; eththool-meth 1; cat/proc/net/softnet _ stat "command, and the network monitoring index of the socket layer can be obtained through the" cat/proc/net/netstat "command. It should be noted that, the method for acquiring the network monitoring index is not limited in the present disclosure, and those skilled in the art may select the method according to the actual situation.
In operation S330, a health assessment result corresponding to each network level is determined based on monitored index monitoring data corresponding to network monitoring indexes.
According to the embodiment of the disclosure, for different network levels corresponding to different network monitoring indexes, each health index may correspond to respective index monitoring data. The health evaluation result corresponding to each network level may include a normal state, an abnormal state, and a fault state in order of the health from high to low. Where normal refers to the network hierarchy being wholly or partially defect free or having a defect but still having a performance within allowable limits. The abnormal state refers to that the defect of the network layer has been expanded to a certain extent, so that the network monitoring index of the network layer changes to a certain extent, the network performance has been degraded, but the operation can be maintained, and at this time, the development trend of the network performance, that is, the network operates under monitoring, should be particularly noticed. The failure state means that the network monitoring index of the network level has been greatly reduced, the network level cannot maintain normal operation, and the abnormal state is serious. The fault status of the network layer can be divided into the following according to the severity: early faults with the existing faults growing and further developing trend; the degree is not serious, and the network can have general functional faults which operate with diseases; serious failures have developed where the network cannot operate and must be shut down; destructive failures that have resulted in catastrophic accidents; sudden emergency failures that occur instantaneously for some reason.
In operation S340, a health evaluation result of the network to be evaluated is determined based on the health evaluation result corresponding to each network hierarchy.
According to the embodiment of the disclosure, the health evaluation result of the network to be evaluated may include a normal state, an abnormal state, and a fault state.
In the related art, for the abnormal situation occurring after the data enters the server from the network transmission medium, the fault is usually located by manually checking the log item by item after the fault occurs, the timeliness is not good, by the network health degree evaluation method based on the network monitoring index provided by the embodiment of the disclosure, the network transmission path of the target data flowing into the network to be evaluated of the server is monitored layer by layer according to the network level, the defects of positioning faults by manually checking logs, item-by-item detection and the like when network transmission abnormity occurs at the server side in the related art can be at least partially solved, and therefore, the monitoring of network monitoring indexes of each network layer level can be realized, the abnormal condition can be positioned according to the network layer where the abnormal index is located, and the fault analysis can be performed by combining the specific condition after the network layer with the fault is positioned.
As an alternative embodiment, determining the health assessment result corresponding to each network level based on the monitored index monitoring data corresponding to the network monitoring index may include: determining a first threshold and a second threshold corresponding to the network monitoring index, wherein the first threshold is used for representing a critical value of the network monitoring index in an abnormal state, and the second threshold is used for representing a critical value of the network monitoring index in a fault state; and determining a health degree evaluation result corresponding to each network level based on the index monitoring data corresponding to the network monitoring index, the first threshold and the second threshold obtained by monitoring.
According to an embodiment of the present disclosure, the first threshold is also referred to as an anomaly threshold and the second threshold is also referred to as a failure threshold, typically the first threshold is generally less than the second threshold.
Through the embodiment of the disclosure, the indexes of the levels are monitored, and the network transmission health degree of the server can be divided by setting the threshold value and the warning value. And the abnormal condition is obtained within the alarm value outside the threshold value, and the fault condition is judged if the abnormal condition exceeds the alarm value.
As an alternative embodiment, determining the health assessment result corresponding to each network layer based on the monitored index monitoring data corresponding to the network monitoring index, the first threshold value and the second threshold value may include at least one of: determining a health degree evaluation result corresponding to each network level as a health state under the condition that the monitored index monitoring data corresponding to the network monitoring index does not exceed a first threshold value; determining the health degree evaluation result corresponding to each network level as an abnormal state under the condition that the monitored index monitoring data corresponding to the network monitoring index exceeds a first threshold value and does not exceed a second threshold value; and under the condition that the monitored index monitoring data corresponding to the network monitoring indexes do not exceed the second threshold value, determining that the health degree evaluation result corresponding to each network level is in a fault state.
Through the embodiment of the disclosure, by monitoring the network monitoring indexes corresponding to each network level, abnormal conditions can be positioned according to the network level where the network monitoring index with abnormal index monitoring data is located, abnormal conditions can also be positioned according to the network level where the network monitoring index with the fault index monitoring data is located, and fault analysis is carried out by combining specific conditions after the network level with the fault is positioned.
As an alternative embodiment, determining the health evaluation result of the network to be evaluated based on the health evaluation result corresponding to each network hierarchy may include at least one of the following: determining the health degree evaluation result of the network to be evaluated as the health state under the condition that the health degree evaluation result corresponding to each network level is the health state; determining the health degree evaluation result of the network to be evaluated as an abnormal state under the condition that the health degree evaluation result corresponding to at least one network level is in the abnormal state; and under the condition that the health degree evaluation result corresponding to at least one network layer is in a fault state, determining that the health degree evaluation result of the network to be evaluated is in the fault state.
In specific implementation, the network to be evaluated is in a healthy state under the condition that the hardware layer, the network card driving layer, the kernel protocol stack layer and the socket layer are in a healthy state. And under the condition that one network level in the hardware layer, the network card driving layer, the kernel protocol stack layer and the socket layer is in an abnormal state, the network to be evaluated is in the abnormal state. And under the condition that one network layer of the hardware layer, the network card driving layer, the kernel protocol stack layer and the socket layer is in a fault state, the network to be evaluated is in the fault state.
According to the embodiment of the disclosure, the health degree evaluation result of the network to be evaluated can be determined according to the health degree evaluation results of a plurality of network levels included in the network transmission path, and the abnormal network level can be positioned abnormally, and the fault of the network level with the fault can be positioned.
As an alternative embodiment, the hardware layer may include an optical module, and the network monitoring index corresponding to the hardware layer may include at least one of: the receiving optical power of the optical module; the transmitting optical power of the optical module; module temperature of the optical module; module voltage of the optical module; bias current of the optical module.
According to an embodiment of the present disclosure, the hardware layer is a receiving device where data frames flow into the server via a network transmission medium. Optionally, the hardware layer may include an optical module, and the optical module is composed of an optoelectronic device, a functional circuit, and an optical interface, and the optoelectronic device includes a transmitting part and a receiving part. The optical module is an optical device for photoelectric and electro-optical conversion, is used as a carrier for transmission between the switch and the equipment, and has the functions that a sending end converts an electric signal into an optical signal, and after the optical signal is transmitted through an optical fiber, a receiving end converts the optical signal into the electric signal.
According to an embodiment of the present disclosure, relevant monitoring indicators of a light module include, but are not limited to, luminous power, temperature, voltage. Specifically, the network monitoring index may include, but is not limited to, receiving/transmitting optical power (Laser rx/tx power), Module temperature (Module temperature), Module voltage (Module voltage), and bias current (Laser bias current). During specific implementation, a fault threshold value of-11.9 dBm-1 dBm can be set for the network monitoring index of receiving/transmitting optical power, a fault threshold value of 14degrees F-176 degrees F can be set for the network monitoring index of module temperature, a fault threshold value of 2.97V-3.63V can be set for the network monitoring index of module voltage, and a fault threshold value of 1 mA-20 mA can be set for the network monitoring index of bias current.
As an optional embodiment, the network card driver layer may include a network card buffer, and the network monitoring indicator corresponding to the network card driver layer may include at least one of the following: the overflow quantity of the data packets in the network card cache region; the discarded number of the data packets in the network card cache region; the error number of the data packet in the network card buffer area.
According to the embodiment of the disclosure, the network card receives the data and then reaches the Ring Buffer cache region, and queues to wait for the upper layer processing of the system kernel. And monitoring indexes such as overrun, dropped and error (packet loss and the like caused by small buffer parameter setting). The indicator data normally remains at 0 and an abnormal condition will cause the indicator data to increase to a value other than 0.
In the present disclosure, the network monitoring index of the network card driver layer may include a transmission or reception data failure (RX/TX error), which is used to characterize the number of packet receiving errors, including a too-long-frame \ ring buffer overflow, a Cyclic Redundancy Check error (crc), a frame synchronization error, and a fifo error. The network monitoring index of the network card driving layer may include RX/TX dropped, and the index is used to represent that the data packet has entered into the ring buffer, but the data packet is discarded in the process of being copied to the memory due to system reasons such as insufficient memory. The network monitoring index of the network card driver layer may include a softnet stat (CPU backing log), which is used to characterize that the buffer queue overflows before the kernel receives a packet from the NIC and then delivers the packet to the protocol stack for processing. The network monitoring index of the network card driver layer may include rx _ missed _ errors, which is used to characterize that the network card fifo buffer is full to cause data discard before the DMA transfer is finished and the hard interrupt is sent. The network monitoring index of the network card driving layer may include fifo _ error, and the index is used for representing packet loss due to too small overflow of the network card queue setting. The network monitoring index of the network card driving layer may include qdisc _ dropped, and the index is used for representing the number of discarded messages. The network monitoring index of the network card driving layer can comprise qdisc _ overrides, and the index is used for representing the overflow amount exceeding the fifo qdisc queue size.
As an alternative embodiment, the network monitoring index corresponding to the kernel protocol stack layer may include at least one of the following: a network monitoring indicator associated with a transmission control protocol; network monitoring metrics related to the internet protocol.
As an alternative embodiment, the socket layer may include a socket buffer, and the network monitoring index corresponding to the socket layer may include at least one of the following: the overflow number of the data packets of the socket buffer area; the number of discarded packets in the socket buffer; the number of invalidations to the socket cache.
According to an embodiment of the present disclosure, the Socket Buffer may include two queues, a half-connection queue and a full-connection queue. After the TCP connection is established, the data needs to queue and wait for the system to call and complete the request connection with the server. Because the queue has length limitation, the condition of undersized parameter setting and the like can cause the overflow of the queue to cause packet loss. The monitoring indicator is listenoverflow (packet loss due to overflow of the full connection queue). The indicator data normally remains at 0 and an abnormal condition will cause the indicator data to increase to a value other than 0. The network monitoring index corresponding to the socket layer may be an accept queue packet loss (ListenDrops), an accept queue overflow (ListenOverflows), or a received invalid syn cookies number (syncookies failed).
By carrying out layered monitoring on the transmission process of the server network, the server network transmission can be subjected to abnormity analysis and fault location according to the network index of abnormal data on each layer, and compared with the traditional mode that logs are manually checked item by item after a fault occurs and the like, the health condition of the current server network transmission and the possible position of the fault occurrence can be obtained through the abnormal condition of the index, so that the efficiency and the fault elimination accuracy are greatly improved.
It should be noted that network transmission failures at the server side usually occur in the hardware layer, the network card driver layer, and the socket layer, and the failure probability of the TCP/IP stack layer in the kernel protocol stack layer is small, so that the network monitoring indexes corresponding to the three layers can be regarded as important monitoring indexes in specific implementation.
Fig. 4 schematically shows a block diagram of a network health assessment apparatus according to an embodiment of the present disclosure.
As shown in fig. 4, the network health assessment apparatus 400 may include a first determination module 410, an acquisition module 420, a second determination module 430, and a third determination module 440.
The first determining module 410 is configured to determine a network transmission path of a network to be evaluated in response to a transmission request of target data, where the network transmission path is used to represent that the target data sequentially flows through multiple network levels of the network to be evaluated, and the multiple network levels include a hardware layer, a network card driver layer, a kernel protocol stack layer, and a socket layer. Optionally, the first determining module 410 may be configured to perform operation S310 described in fig. 3, for example, and is not described herein again.
The obtaining module 420 is configured to obtain a network monitoring index corresponding to each network tier, where the network monitoring index is used as an evaluation basis for health evaluation of the corresponding network tier. Optionally, the obtaining module 420 may be configured to perform operation S320 described in fig. 3, for example, and is not described herein again.
The second determining module 430 is configured to determine a health degree evaluation result corresponding to each network tier based on the monitored index monitoring data corresponding to the network monitoring index. Optionally, the second determining module 430 may be configured to perform operation S330 described in fig. 3, for example, and is not described herein again.
And a third determining module 440, configured to determine a health degree evaluation result of the network to be evaluated based on the health degree evaluation result corresponding to each network hierarchy. Optionally, the third determining module 440 may be configured to perform operation S340 described in fig. 3, for example, and is not described herein again.
As an alternative embodiment, the second determining module may include: the first determining submodule is used for determining a first threshold and a second threshold corresponding to the network monitoring index, wherein the first threshold is used for representing a critical value of the network monitoring index in an abnormal state, and the second threshold is used for representing a critical value of the network monitoring index in a fault state; and the second determining submodule is used for determining a health degree evaluation result corresponding to each network level based on the index monitoring data corresponding to the network monitoring index, the first threshold and the second threshold which are obtained through monitoring.
As an alternative embodiment, the second determination submodule may include at least one of: the first determining unit is used for determining the health degree evaluation result corresponding to each network level as a health state under the condition that the monitored index monitoring data corresponding to the network monitoring index does not exceed a first threshold value; the second determining unit is used for determining the health degree evaluation result corresponding to each network level to be in an abnormal state under the condition that the monitored index monitoring data corresponding to the network monitoring index exceeds the first threshold value and does not exceed the second threshold value; and the third determining unit is used for determining the health degree evaluation result corresponding to each network level as a fault state under the condition that the monitored index monitoring data corresponding to the network monitoring index does not exceed the second threshold.
As an alternative embodiment, the third determining module may include at least one of: the third determining submodule is used for determining the health degree evaluation result of the network to be evaluated as the health state under the condition that the health degree evaluation result corresponding to each network level is the health state; the fourth determining submodule is used for determining the health degree evaluation result of the network to be evaluated as an abnormal state under the condition that the health degree evaluation result corresponding to at least one network level is in the abnormal state; and the fifth determining submodule is used for determining that the health degree evaluation result of the network to be evaluated is in a fault state under the condition that the health degree evaluation result corresponding to at least one network level is in the fault state.
As an alternative embodiment, the hardware layer may include an optical module, and the network monitoring index corresponding to the hardware layer may include at least one of: the receiving optical power of the optical module; the transmission optical power of the optical module; module temperature of the optical module; module voltage of the optical module; bias current of the optical module.
As an optional embodiment, the network card driver layer may include a network card buffer, and the network monitoring indicator corresponding to the network card driver layer may include at least one of the following: the overflow quantity of the data packets in the network card cache region; the discarded number of the data packets in the network card cache region; the error number of the data packet in the network card buffer area.
As an alternative embodiment, the network monitoring index corresponding to the kernel protocol stack layer may include at least one of the following: a network monitoring indicator associated with a transmission control protocol; network monitoring metrics related to the internet protocol.
As an alternative embodiment, the socket layer may include a socket cache area, and the network monitoring index corresponding to the socket layer may include at least one of: the overflow number of the data packets of the socket buffer area; the number of discarded packets of the socket buffer; the number of invalid packets in the socket cache.
It should be noted that the implementation, solved technical problems, implemented functions, and achieved technical effects of each module in the partial embodiment of the network health degree assessment apparatus are respectively the same as or similar to the implementation, solved technical problems, implemented functions, and achieved technical effects of each corresponding step in the partial embodiment of the network health degree assessment method, and are not described herein again.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a field programmable gate array (FNGA), a programmable logic array (NLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be implemented at least partly as a computer program module, which when executed, may perform a corresponding function.
For example, the first determining module, the obtaining module, the second determining module, the third determining module, the first determining sub-module, the second determining sub-module, the first determining unit, the second determining unit, the third determining sub-module, the fourth determining sub-module, and the fifth determining sub-module may be combined and implemented in one module, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first determining module, the obtaining module, the second determining module, the third determining module, the first determining sub-module, the second determining sub-module, the first determining unit, the second determining unit, the third determining sub-module, the fourth determining sub-module, and the fifth determining sub-module may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FNGA), a programmable logic array (NLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or implemented by any one of three manners of software, hardware, and firmware, or by a suitable combination of any of them. Alternatively, at least one of the first determining module, the obtaining module, the second determining module, the third determining module, the first determining submodule, the second determining submodule, the first determining unit, the second determining unit, the third determining submodule, the fourth determining submodule, and the fifth determining submodule may be at least partially implemented as a computer program module, which may perform a corresponding function when the computer program module is executed.
Fig. 5 schematically illustrates a schematic diagram of a computer-readable storage medium product adapted to implement the network health assessment method described above, according to an embodiment of the present disclosure.
In some possible embodiments, aspects of the present invention may also be implemented in a program product including program code for causing a device to perform the aforementioned operations (or steps) in the network health assessment method according to various exemplary embodiments of the present invention described in the above-mentioned "exemplary method" section of this specification when the program product is run on the device, for example, the electronic device may perform operations S310 to S340 as shown in fig. 3.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (ENROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As shown in fig. 5, a program product 500 for network health assessment according to an embodiment of the present invention is depicted, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a device, such as a personal computer. However, the program product of the present invention is not limited in this respect, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, or device. Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAA) or a wide area network (WAA), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Fig. 6 schematically shows a block diagram of an electronic device adapted to implement the network health assessment method described above according to an embodiment of the present disclosure. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, an electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. Processor 601 may include, for example, a general purpose microprocessor (e.g., a CNU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 601 may also include onboard memory for caching purposes. Processor 601 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are stored. The processor 601, the ROM602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM602 and/or RAM 603. Note that the programs may also be stored in one or more memories other than the ROM602 and RAM 603. The processor 601 may also perform operations S310 through S340 illustrated in fig. 3 according to the embodiment of the present disclosure by executing programs stored in the one or more memories.
Electronic device 600 may also include input/output (I/O) interface 605, input/output (I/O) interface 605 also connected to bus 604, according to an embodiment of the disclosure. The system 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as an LAA card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
According to embodiments of the present disclosure, method flows according to embodiments of the present disclosure may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program, when executed by the processor 601, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium, which may be embodied in the device/apparatus/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement a network health assessment method according to an embodiment of the present disclosure, including operations S310 to S340 shown in fig. 3.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (ENROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include ROM602 and/or RAM 603 and/or one or more memories other than ROM602 and RAM 603 described above.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (7)

1. A network health assessment method comprises the following steps:
responding to a transmission request of target data, and determining a network transmission path of a network to be evaluated, wherein the network transmission path is used for representing that the target data sequentially flows through a plurality of network levels of the network to be evaluated, and the plurality of network levels comprise a hardware layer, a network card driving layer, a kernel protocol stack layer and a socket layer;
acquiring a network monitoring index corresponding to each network level, wherein the network monitoring index is used as an evaluation basis for evaluating the health degree of the corresponding network level;
determining a health degree evaluation result corresponding to each network level based on index monitoring data corresponding to the network monitoring indexes obtained through monitoring;
determining a health evaluation result of the network to be evaluated based on the health evaluation result corresponding to each network level,
the hardware layer comprises an optical module, and the network monitoring index corresponding to the hardware layer comprises at least one of the following:
the receiving optical power of the optical module;
the transmitting optical power of the optical module;
a module temperature of the optical module;
a module voltage of the optical module;
a bias current of the light module is set,
the network card driving layer comprises a network card buffer area, and the network monitoring indexes corresponding to the network card driving layer comprise at least one of the following indexes:
the overflow quantity of the data packets in the network card cache region;
the discarded number of the data packets in the network card cache region;
the number of errors of the data packets in the network card buffer,
wherein the network monitoring index corresponding to the kernel protocol stack layer includes at least one of:
a network monitoring indicator associated with a transmission control protocol;
a network monitoring indicator associated with an internet protocol,
the socket layer comprises a socket cache area, and the network monitoring index corresponding to the socket layer comprises at least one of the following:
the overflow number of the data packets of the socket cache area;
the number of discarded packets of the socket cache area;
the number of invalidations to packets in the socket cache.
2. The method of claim 1, wherein the determining the health assessment result corresponding to each network level based on the monitored index monitoring data corresponding to the network monitoring index comprises:
determining a first threshold and a second threshold corresponding to the network monitoring index, wherein the first threshold is used for representing a critical value of the network monitoring index in an abnormal state, and the second threshold is used for representing a critical value of the network monitoring index in a fault state;
and determining a health degree evaluation result corresponding to each network level based on the index monitoring data corresponding to the network monitoring index, the first threshold and the second threshold obtained by monitoring.
3. The method of claim 2, wherein the determining the health assessment corresponding to each network level based on the monitored indicator monitoring data corresponding to the network monitoring indicator, the first threshold value, and the second threshold value comprises at least one of:
determining that the health degree evaluation result corresponding to each network level is a health state under the condition that the monitored index monitoring data corresponding to the network monitoring index does not exceed the first threshold;
determining that the health degree evaluation result corresponding to each network level is in an abnormal state under the condition that the monitored index monitoring data corresponding to the network monitoring index exceeds the first threshold value and does not exceed the second threshold value;
and determining that the health degree evaluation result corresponding to each network level is a fault state under the condition that the monitored index monitoring data corresponding to the network monitoring index does not exceed the second threshold.
4. The method according to claim 3, wherein the determining the health assessment result of the network to be assessed based on the health assessment result corresponding to each network hierarchy comprises at least one of:
determining that the health degree evaluation result of the network to be evaluated is in a health state under the condition that the health degree evaluation result corresponding to each network level is in the health state;
determining that the health degree evaluation result of the network to be evaluated is in an abnormal state under the condition that the health degree evaluation result corresponding to at least one network level is in the abnormal state;
and under the condition that the health degree evaluation result corresponding to at least one network layer is in a fault state, determining that the health degree evaluation result of the network to be evaluated is in the fault state.
5. A network health assessment apparatus, comprising:
the network evaluation device comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for responding to a transmission request of target data and determining a network transmission path of a network to be evaluated, the network transmission path is used for representing that the target data sequentially flows through a plurality of network levels of the network to be evaluated, and the network levels comprise a hardware layer, a network card driving layer, a kernel protocol stack layer and a socket layer;
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring network monitoring indexes corresponding to each network level, and the network monitoring indexes are used as evaluation basis for evaluating the health degree of the corresponding network levels;
the second determination module is used for determining a health degree evaluation result corresponding to each network level based on the monitored index monitoring data corresponding to the network monitoring index;
a third determining module, configured to determine a health degree evaluation result of the network to be evaluated based on the health degree evaluation result corresponding to each network hierarchy,
the hardware layer comprises an optical module, and the network monitoring index corresponding to the hardware layer comprises at least one of the following:
the receiving optical power of the optical module;
the transmitting optical power of the optical module;
a module temperature of the optical module;
a module voltage of the optical module;
a bias current of the light module is set,
the network card driving layer comprises a network card buffer area, and the network monitoring indexes corresponding to the network card driving layer comprise at least one of the following indexes:
the overflow quantity of the data packets in the network card cache region;
the discarded number of the data packets in the network card cache region;
the number of errors of the data packets in the network card buffer,
wherein the network monitoring index corresponding to the kernel protocol stack layer includes at least one of:
a network monitoring indicator associated with a transmission control protocol;
a network monitoring indicator associated with an internet protocol,
the socket layer comprises a socket cache area, and the network monitoring index corresponding to the socket layer comprises at least one of the following:
the overflow number of the data packets of the socket cache area;
the number of discarded packets of the socket cache area;
the number of invalidations to packets in the socket cache.
6. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-4.
7. A computer-readable storage medium storing computer-executable instructions that, when executed, cause a processor to perform the method of any one of claims 1 to 4.
CN202110587864.8A 2021-05-27 2021-05-27 Network health degree evaluation method, device, electronic equipment, medium and program product Active CN113328885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110587864.8A CN113328885B (en) 2021-05-27 2021-05-27 Network health degree evaluation method, device, electronic equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110587864.8A CN113328885B (en) 2021-05-27 2021-05-27 Network health degree evaluation method, device, electronic equipment, medium and program product

Publications (2)

Publication Number Publication Date
CN113328885A CN113328885A (en) 2021-08-31
CN113328885B true CN113328885B (en) 2022-09-27

Family

ID=77421873

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110587864.8A Active CN113328885B (en) 2021-05-27 2021-05-27 Network health degree evaluation method, device, electronic equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN113328885B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115834437A (en) * 2021-09-15 2023-03-21 中国移动通信集团山东有限公司 Network anomaly evaluation method and device, electronic equipment and storage medium
CN114900421A (en) * 2022-04-08 2022-08-12 深圳绿米联创科技有限公司 Fault detection method and device, electronic equipment and readable storage medium
CN116248545B (en) * 2022-12-28 2024-05-14 中国电信股份有限公司 Fault analysis method and device for network transmission link

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776214A (en) * 2016-12-12 2017-05-31 广州市申迪计算机系统有限公司 A kind of server health degree appraisal procedure
CN109246495A (en) * 2018-11-19 2019-01-18 国网河南省电力公司 A kind of optical network service method for evaluating quality of oriented multilayer, multi objective
CN112187575A (en) * 2020-09-25 2021-01-05 杭州迪普科技股份有限公司 Method and device for monitoring health state of server

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7689702B1 (en) * 2003-10-31 2010-03-30 Sun Microsystems, Inc. Methods and apparatus for coordinating processing of network connections between two network protocol stacks
CN102035667B (en) * 2009-09-27 2012-08-29 华为技术有限公司 Method, device and system for evaluating network reliability
CN102904780B (en) * 2012-10-29 2015-12-16 山石网科通信技术有限公司 The method of Sampling network health degree and device
CN110890972B (en) * 2018-09-07 2022-06-28 中国移动通信集团浙江有限公司 Health degree evaluation method and device of business system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776214A (en) * 2016-12-12 2017-05-31 广州市申迪计算机系统有限公司 A kind of server health degree appraisal procedure
CN109246495A (en) * 2018-11-19 2019-01-18 国网河南省电力公司 A kind of optical network service method for evaluating quality of oriented multilayer, multi objective
CN112187575A (en) * 2020-09-25 2021-01-05 杭州迪普科技股份有限公司 Method and device for monitoring health state of server

Also Published As

Publication number Publication date
CN113328885A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
CN113328885B (en) Network health degree evaluation method, device, electronic equipment, medium and program product
US10284444B2 (en) Visual representation of end user response time in a multi-tiered network application
CN107426022B (en) Security event monitoring method and device, electronic equipment and storage medium
US20220050902A1 (en) Opentelemetry security extensions
US10289522B2 (en) Autonomous information technology diagnostic checks
CN111884866B (en) Network optimization method, network optimization system, computer system, and storage medium
CN111600759B (en) Method and device for positioning deadlock fault in topological structure
CN110620688A (en) Service comprehensive monitoring method, system and device
CN110896362B (en) Fault detection method and device
US11271798B2 (en) Automated network link repair
CN110928940B (en) Data writing method and device based on kafka cluster, electronic equipment and storage medium
CN110875832B (en) Abnormal service monitoring method, device and system and computer readable storage medium
WO2019241199A1 (en) System and method for predictive maintenance of networked devices
CN115202973A (en) Application running state determining method and device, electronic equipment and medium
CN114710400B (en) Fault equipment positioning method, device, electronic equipment and medium
US20200267054A1 (en) Determining the importance of network devices based on discovered topology, managed endpoints, and activity
CN112953783A (en) Satellite link state detection method, device, server and storage medium
CN110852537A (en) Service quality detection method and device
CN115525362B (en) Parameter changing method and device based on kernel parameter adjusting platform of operating system
CN115344330A (en) Data transmission method and device, application processing method and device, and electronic device
US20230049252A1 (en) Method for network transmission, device, and storage medium
CN117992264A (en) Host fault repairing method, device and system, electronic equipment and storage medium
CN117424818A (en) CAN configuration detection method, device, equipment and medium
CN115190008A (en) Fault processing method, fault processing device, electronic device and storage medium
CN116136818A (en) Health inspection method, device, equipment and medium for message queue

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