CN114389982B - Network quality assessment method, device, equipment and medium - Google Patents

Network quality assessment method, device, equipment and medium Download PDF

Info

Publication number
CN114389982B
CN114389982B CN202210001542.5A CN202210001542A CN114389982B CN 114389982 B CN114389982 B CN 114389982B CN 202210001542 A CN202210001542 A CN 202210001542A CN 114389982 B CN114389982 B CN 114389982B
Authority
CN
China
Prior art keywords
network
devices
dimension
protocol
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210001542.5A
Other languages
Chinese (zh)
Other versions
CN114389982A (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.)
CRSC Research and Design Institute Group Co Ltd
Original Assignee
CRSC Research and Design Institute Group 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 CRSC Research and Design Institute Group Co Ltd filed Critical CRSC Research and Design Institute Group Co Ltd
Priority to CN202210001542.5A priority Critical patent/CN114389982B/en
Publication of CN114389982A publication Critical patent/CN114389982A/en
Application granted granted Critical
Publication of CN114389982B publication Critical patent/CN114389982B/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/50Testing arrangements
    • 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/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • 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/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks

Abstract

The embodiment of the invention discloses a method, a device, equipment and a medium for evaluating network quality. The method comprises the following steps: determining the connection relation between the devices according to the network attribute information of the devices in the network to be evaluated; wherein the network attribute information comprises medium access control address information, address resolution protocol information and link layer discovery protocol information; and evaluating the network quality of the network to be evaluated according to the connection relation among the devices and the configuration information of the devices. The embodiment of the invention realizes the effect of automatically evaluating the network quality of the network to be evaluated, does not need manual intervention, reduces the labor cost and improves the evaluation efficiency.

Description

Network quality assessment method, device, equipment and medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a network quality evaluation method, device, equipment and medium.
Background
The signal, information and communication professions in the rail transit field are developed towards digitization, networking and intellectualization, the demands of application systems are continuously increased, and most application systems need to be carried by depending on a data communication network.
However, current data communication networks for carrying applications for rail transit lack automatic network quality assessment means.
Disclosure of Invention
The embodiment of the application discloses a method, a device, equipment and a medium for evaluating network quality, which are used for solving the problem that the prior art cannot automatically evaluate the network quality.
In a first aspect, an embodiment of the present invention provides a method for evaluating network quality, where the method includes:
determining the connection relation between the devices according to the network attribute information of the devices in the network to be evaluated; wherein the network attribute information comprises medium access control address information, address resolution protocol information and link layer discovery protocol information;
and evaluating the network quality of the network to be evaluated according to the connection relation among the devices and the configuration information of the devices.
In a second aspect, an embodiment of the present invention provides an apparatus for evaluating network quality, where the apparatus includes:
the connection relation determining module is used for determining the connection relation among the devices according to the network attribute information of the devices in the network to be evaluated; wherein the network attribute information comprises medium access control address information, address resolution protocol information and link layer discovery protocol information;
And the evaluation module is used for evaluating the network quality of the network to be evaluated according to the connection relation among the devices and the configuration information of the devices.
In a third aspect, an embodiment of the present invention provides an apparatus, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method of assessing network quality as described in any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention provide a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a method for evaluating network quality according to any of the embodiments of the present invention.
The embodiment of the invention realizes the effect of automatically evaluating the network quality of the network to be evaluated, does not need manual intervention, reduces the labor cost and improves the evaluation efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for evaluating network quality according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for evaluating network quality according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a network quality evaluation device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and are not limiting of the invention. It should be further noted that, for convenience of description, only the structures related to the embodiments of the present invention, not all the structures, are shown in the drawings.
In the research and development process, the applicant finds that the signal, information and communication professions in the rail transit field are developed towards digitization, networking and intellectualization, the demands of corresponding application systems are continuously increased, and most application systems need to be carried by relying on a data communication network. Because the application systems have different roles and importance in the rail traffic field, the function and performance requirements of the application systems are different, so the network quality requirements on the data communication network carrying the application systems are different, such as whether redundant networking is needed or whether network attack is needed to be resisted.
At present, a data communication network carrying an application system is mainly subjected to scheme design and network planning by an application system manufacturer, the robustness and stability of the network depend on the technical level of planning and configuration personnel, and a unified network quality assessment system is absent. Only if network faults occur in the running process of an application system, the problem of network quality can be found, post analysis is carried out, remedial measures are taken, certain losses possibly occur, network planning and configuration mainly depend on manpower, and the planning and configuration are checked by manual examination, so that omission easily occurs, and whether the requirements of business on the network can be met cannot be determined.
Example 1
Fig. 1 is a flowchart of a method for evaluating network quality according to an embodiment of the present invention. The embodiment is applicable to the situation of automatically evaluating the network quality of the network to be evaluated, and the method can be executed by the network quality evaluation device provided by the embodiment of the invention, and the device can be realized by software and/or hardware. As shown in fig. 1, the method may include:
s101, determining the connection relation between devices according to network attribute information of the devices in a network to be evaluated; wherein the network attribute information includes medium access control address information, address resolution protocol information, and link layer discovery protocol information.
The network to be evaluated represents a data communication network composed of a plurality of devices, wherein the types of the devices in the network to be evaluated include, but are not limited to, network devices, security devices, terminal devices and the like, wherein the network devices are used for guaranteeing that data communication can be carried out among the devices, such as switches, routers and the like, the security devices are used for guaranteeing the security of the data communication, such as firewalls, gatekeepers and the like, and the terminal devices are carrier devices of the data communication, such as servers, workstations or personal computers and the like. The connection relationship between devices is the network communication connection relationship between devices in the network to be evaluated. The media access control address information, MAC address information, is an address for confirming the network location of the device; address resolution protocol information, ARP information, is used to map from IP address information to MAC address information, i.e. to interrogate MAC address information corresponding to the target IP address information; the link layer discovery protocol information, LLDP, is a protocol that enables devices to discover and interact with each other in a network with respect to their own system and configuration information.
In one embodiment, a device for implementing the method for evaluating network quality in this embodiment is accessed into a network to be evaluated in a wired or wireless manner in advance, where specific forms of the device include, but are not limited to, a local server, a workstation, a cloud application, or the like. Traversing each device in the network to be evaluated according to IP (Internet protocol) address information of each device in the network to be evaluated, and acquiring network attribute information of each device through a preset network management protocol, wherein the network attribute information comprises media access control address information, address resolution protocol information and link layer discovery protocol information. Analyzing the network attribute information, determining the connection relation between each device in the network to be evaluated according to the analysis result, specifically, determining the connection relation between the network device and the security device and other devices by analyzing the link layer discovery protocol information, and determining the connection relation between the terminal device and other devices by analyzing the medium access control address information and the address analysis protocol information.
Optionally, before S101, the method includes:
determining the internet protocol address information of each device according to the routing table of the network device in each device; and acquiring network attribute information of each device according to the Internet protocol address information.
Wherein the routing table is a spreadsheet or class database storing paths pointing to specific network addresses. The internet protocol address information is IP address information.
In one implementation manner, according to an IP network segment where a device implementing the network quality evaluation method in this embodiment is located, access a device corresponding to each IP address information of the IP network segment, if the IP address information is reachable, obtain manufacturer information and model information of the device through SNMP (Simple Network Management Protocol ), and determine whether the device type is a network device according to the manufacturer information and the model information, if so, obtain a routing table of the device through SNMP or netcon protocol. And according to other IP network segments recorded in the routing table of the equipment, continuing to access the equipment corresponding to each IP address information in the other IP network segments until all the equipment in the network to be evaluated is traversed. According to the acquired IP address information of all the devices, the access device types are network devices and security devices, and medium access control address information, address resolution protocol information and link layer discovery protocol information of the network devices and the security devices are acquired through SNMP.
Correspondingly, by analyzing the acquired network attribute information of the network equipment and the security equipment, the connection relation among the equipment in the network to be evaluated can be determined, the network attribute information corresponding to the terminal equipment is not required to be acquired, and the efficiency is improved.
The network attribute information of each device is ensured to be obtained through traversing by determining the internet protocol address information of each device according to the routing table of the network device in each device and obtaining the network attribute information of each device according to the internet protocol address information and recording the integrity of the internet protocol address information of each device based on the routing table.
S102, evaluating the network quality of the network to be evaluated according to the connection relation among the devices and the configuration information of the devices.
The configuration information of the device, that is, information recorded in the device configuration table, includes basic information of each device in the network to be evaluated, for example, but not limited to, device name information, protocol parameter information, port information, IP address information, and the like.
In one embodiment, the relevant technician sets at least one evaluation dimension in advance according to the actual requirement of the network to be evaluated, so as to evaluate the network quality of the network to be evaluated in different dimensions based on different evaluation dimensions, for example, the evaluation dimensions may be set as a device redundancy dimension, a link redundancy dimension, a ring network protection dimension, a storm suppression dimension, a security protection dimension, and/or the like. And, a standard connection relationship and standard configuration information are set in advance for each evaluation dimension.
The standard connection relationship specifies that when the corresponding evaluation dimension is satisfied, a connection relationship should be provided between devices in the network to be evaluated, for example, the standard connection relationship of a certain evaluation dimension specifies that at least two reachable links need to exist between any two network devices, and if at least two reachable links exist between any two network devices in the network to be evaluated, the standard connection relationship that the network to be evaluated satisfies the evaluation dimension is represented. The standard configuration information specifies that, when the corresponding evaluation dimension is satisfied, specific content of configuration information of each device in the network to be evaluated, for example, standard configuration information of a certain evaluation dimension specifies that each device should use a protocol a, and if each device in the network to be evaluated uses the protocol a, the standard configuration information that the network to be evaluated satisfies the evaluation dimension is indicated.
According to FTP (File Transfer Protocol ) configuration information of all devices in a network to be evaluated is obtained, at least one target evaluation dimension is determined from the evaluation dimensions, the connection relation between all the devices is matched with the standard connection relation of the target evaluation dimension, and/or the configuration information of all the devices is matched with the standard configuration information of the target evaluation dimension, and if the connection relation between all the devices is successfully matched with the standard connection relation, and/or the configuration information of all the devices is successfully matched with the standard configuration information, the network quality of the network to be evaluated in the target evaluation dimension is determined to be qualified.
According to the technical scheme provided by the embodiment of the invention, the connection relation between the devices is determined according to the network attribute information of the devices in the network to be evaluated; the network attribute information comprises medium access control address information, address analysis protocol information and link layer discovery protocol information, and evaluates the network quality of the network to be evaluated according to the connection relation among the devices and the configuration information of the devices, so that the effect of automatically evaluating the network quality of the network to be evaluated is achieved, manual intervention is not needed, labor cost is reduced, and evaluation efficiency is improved.
Example two
Fig. 2 is a flowchart of a network quality evaluation method according to a second embodiment of the present invention. This embodiment is optimized based on the above-described alternative embodiments, and as shown in fig. 2, the method may include:
s201, determining the connection relation between all the devices according to the network attribute information of all the devices in the network to be evaluated; wherein the network attribute information includes medium access control address information, address resolution protocol information, and link layer discovery protocol information.
S202, acquiring a standard connection relation and standard configuration information corresponding to a target evaluation dimension; the target evaluation dimension comprises at least one of a device redundancy dimension, a link redundancy dimension, a ring network protection dimension, a storm suppression dimension and a safety protection dimension.
The device redundancy dimension is the evaluation of redundancy of the number of safety devices connected with the terminal device or the number of network devices in the network to be evaluated; the link redundancy dimension is an assessment of redundancy of the number of links between security devices or network devices in the network to be assessed; the ring network protection dimension is an evaluation of protocol consistency of devices forming a loop in a network to be evaluated; the storm suppression dimension represents an assessment of storm suppression capability of each device in the network to be assessed; the security dimension represents an assessment of the security of data transmissions of devices in the network under evaluation.
In one embodiment, the standard connection relationship and the standard configuration information corresponding to the target evaluation dimension are determined according to the target evaluation dimension and the association relationship between the evaluation dimension and the standard connection relationship and the standard configuration information. For example, the evaluation dimension a is set to have an association relationship with the standard connection relationship a and the standard configuration information b in advance, and if the evaluation dimension a is set as the target evaluation dimension, the standard connection relationship a and the standard configuration information b are set as the standard connection relationship and the standard configuration information corresponding to the target evaluation dimension.
S203, matching the connection relation between the devices with the standard connection relation and/or matching the configuration information of the devices with the standard configuration information, and evaluating the network quality of the network to be evaluated in the target evaluation dimension according to the matching result.
In one embodiment, the connection relation between the devices is matched with the standard connection relation of the target evaluation dimension, and/or the configuration information of the devices is matched with the standard configuration information of the target evaluation dimension, and if the connection relation between the devices is successfully matched with the standard connection relation, and/or the configuration information of the devices is successfully matched with the standard configuration information, the network quality of the network to be evaluated in the target evaluation dimension is determined to be qualified.
Optionally, for different target evaluation dimensions, S203 includes the following six implementations:
A. in the case where the target evaluation dimension is a device redundancy dimension, S203 includes:
determining whether any one of the devices has a connection relationship with at least two target type devices; the target type equipment is network equipment or safety equipment; if yes, determining gateway information and protocol information according to the configuration information of the terminal equipment; determining whether the gateway information is contained in the at least two target type devices, and whether the protocol information is one of a stacking protocol, a virtual router redundancy protocol and a cross-device link aggregation protocol; if yes, determining that the network quality of the network to be evaluated in the equipment redundancy dimension is qualified.
Wherein, the stacking protocol is a protocol supporting multiple devices to perform logic combination; the Virtual Router Redundancy Protocol (VRRP) is a fault-tolerant protocol, and ensures that when the equipment connected with the current equipment fails, the other equipment replaces the failed equipment to work; the cross-device link aggregation protocol, namely M-LAG, can realize link aggregation among a plurality of devices.
In one embodiment, traversing each terminal device in the network to be evaluated, determining whether each terminal device has a connection relationship with at least two network devices or security devices, if yes, determining whether gateway information of each terminal device is contained in at least two network devices or security devices connected respectively according to configuration information of each terminal device, if yes, determining whether protocol information of each terminal device is one of a stacking protocol, a virtual router redundancy protocol and a cross-device link aggregation protocol according to configuration information of each terminal device, and if yes, determining that network quality of the network to be evaluated in a device redundancy dimension is qualified.
B. In the case where the target evaluation dimension is a link redundancy dimension, S203 includes:
determining whether at least two links exist between any two target type devices in each device; the target type equipment is network equipment or safety equipment; if yes, determining whether a link protocol of any two target type devices adopts one of a stacking protocol or a link aggregation protocol according to configuration information of the any two target type devices; if yes, determining whether the link protocol and the link protocol parameters of any two target type devices are the same according to the configuration information of the any two target type devices; if yes, determining that the network quality of the network to be evaluated in the link redundancy dimension is qualified.
In one embodiment, each network device or each security device in the network to be evaluated is traversed, whether at least two reachable links exist between any two network devices or between any two security devices is determined, if yes, whether link protocols adopted by the two network devices or the security devices are stacking protocols or link aggregation protocols is determined according to configuration information of the two network devices or the security devices with connection relations, if yes, whether link protocols and link protocol parameters of the two network devices or the security devices are the same is determined according to configuration information of the two network devices or the security devices with connection relations, for example, the link protocols and the stacking protocol parameters are the same, and network quality of the network to be evaluated in a link redundancy dimension is determined to be qualified.
C. In the case where the target evaluation dimension is the ring network protection dimension, S203 includes:
determining each target device with loop connection relation in each device, and determining protocol information and parameter information of each target device according to configuration information of each target device; determining whether protocol information of each of the target devices includes one of: spanning tree protocol, fast spanning tree protocol, multiple spanning tree protocol, and ethernet ring protection switching protocol; if yes, determining whether protocol information and parameter information of each target device are the same; if yes, determining that the network quality of the network to be evaluated in the ring network protection dimension is qualified.
The loop connection relationship means that each device has an end-to-end connection relationship, for example, device a is connected with device B, device B is connected with device C, and device C is connected with device a, so that device a, device B and device C have a loop connection relationship. The spanning tree protocol is a communication protocol operating at the data link layer; the rapid spanning tree protocol can converge the network more rapidly when the network changes; the multi-spanning tree protocol can be applied to establishing tree topology in a network and eliminating loops in the network; the Ethernet ring protection switching protocol (ERPS) is used for link backup and improving the reliability of the network.
In one embodiment, each device in the network to be evaluated is traversed, the device with the loop connection relationship is used as a target device, and the protocol information and the parameter information of each target device are determined according to the configuration information of each target device, wherein the parameter information is the parameter of the protocol, such as the instance ID of the multiple spanning tree protocol and the associated virtual local area network, the node role of the Ethernet ring protection switching protocol, and the blocking port in normal state.
Determining whether each target device employs one of the following protocols: and if yes, determining whether protocol information and parameter information of each target device are the same, for example, each target device adopts the fast spanning tree protocol, and parameters of the fast spanning tree protocol are the same, and determining that network quality of the network to be evaluated in ring network protection dimension is qualified.
D. In the case where the target evaluation dimension is the storm-suppression dimension, S203 includes:
determining whether each device starts a storm-suppression protocol according to configuration information of each device; if yes, determining storm-suppressing protocol parameters of the devices according to the configuration information of the devices, and determining whether the storm-suppressing protocol parameters are the same as standard parameters; if yes, determining that the network quality of the network to be evaluated in the storm restraining dimension is qualified.
The storm suppression protocol is a protocol for preventing the number of network broadcast frames from increasing sharply to affect normal network communication.
In one embodiment, each device in the network to be evaluated is traversed, whether each device starts a storm suppressing protocol is determined according to configuration information of each device, if yes, storm suppressing protocol parameters of each device are determined according to configuration information of each device, further the storm suppressing protocol parameters are compared with preset standard parameters, and if the storm suppressing protocol parameters are identical with the standard parameters, network quality of the network to be evaluated in a storm suppressing dimension is determined to be qualified.
E. In the case where the target evaluation dimension is a security dimension, S203 includes:
Under the condition that the security protection level is protection, determining whether the connection mode between the security device and the network device in each device is one of a serial mode and a policy routing bypass mode; if yes, determining whether the safety equipment disables a preset protocol and a preset port according to configuration information of the safety equipment in each piece of equipment; if yes, determining that the network quality of the network to be evaluated in the safety protection dimension is qualified.
The safety protection dimension is classified in advance, and the safety protection dimension is optionally classified into protection and monitoring, wherein the protection is higher in level, and the monitoring is lower in level.
In one embodiment, if the security level of the current security dimension is protection, traversing the security device and the network device in the network to be evaluated, determining whether the connection mode between the security device and the network device is a serial mode or a policy routing bypass mode, if so, determining whether each security device has disabled some preset specific protocols and ports according to the configuration information of each security device, and if so, determining that the network quality of the network to be evaluated in the security dimension is qualified. The preset protocol and the preset port can be adjusted and set according to actual conditions.
F. In the case where the target evaluation dimension is a security dimension, S203 further includes:
under the condition that the security protection level is monitoring, determining whether the connection mode between the security equipment and the network equipment in each equipment is a bypass mode or not; if yes, determining whether the network equipment opens a port mirror strategy according to configuration information of the network equipment in each piece of equipment; if yes, determining that the network quality of the network to be evaluated in the safety protection dimension is qualified.
The port mirroring policy indicates that data traffic of one or more source ports is forwarded to a specific port to realize monitoring of the network.
In one embodiment, if the security level of the current security dimension is monitoring, traversing the security device and the network device in the network to be evaluated, determining whether the connection mode between the security device and the network device is a bypass mode, if yes, determining whether each network device opens a port mirroring policy according to configuration information of the network device connected with the security device, and if yes, determining that the network quality of the network to be evaluated in the security dimension is qualified.
According to the technical scheme provided by the embodiment of the invention, the standard connection relation and the standard configuration information corresponding to the target evaluation dimension are obtained; the target evaluation dimension comprises at least one of a device redundancy dimension, a link redundancy dimension, a ring network protection dimension, a storm suppression dimension and a safety protection dimension, the connection relation between devices is matched with the standard connection relation, or the configuration information of the devices is matched with the standard configuration information, and the network quality of the network to be evaluated in the target evaluation dimension is evaluated according to the matching result, so that the automatic evaluation of the network quality of the five dimensions of the device redundancy dimension, the link redundancy dimension, the ring network protection dimension, the storm suppression dimension and the safety protection dimension is realized, the application range of the method is expanded, manual interference is not required, the labor cost is reduced, and the evaluation efficiency is improved.
Example III
Fig. 3 is a schematic structural diagram of a network quality evaluation device according to a third embodiment of the present invention, which can execute a network quality evaluation method according to any one of the embodiments of the present invention, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 3, the apparatus may include:
a connection relation determining module 31, configured to determine a connection relation between devices in a network to be evaluated according to network attribute information of the devices; wherein the network attribute information comprises medium access control address information, address resolution protocol information and link layer discovery protocol information;
and the evaluation module 32 is configured to evaluate the network quality of the network to be evaluated according to the connection relationship between the devices and the configuration information of the devices.
Based on the above embodiments, the evaluation module 32 is specifically configured to:
obtaining a standard connection relation and standard configuration information corresponding to a target evaluation dimension; the target evaluation dimension comprises at least one of a device redundancy dimension, a link redundancy dimension, a ring network protection dimension, a storm suppression dimension and a safety protection dimension;
And matching the connection relation between the devices with the standard connection relation and/or matching the configuration information of the devices with the standard configuration information, and evaluating the network quality of the network to be evaluated in the target evaluation dimension according to a matching result.
On the basis of the above embodiment, in the case that the target evaluation dimension is a device redundancy dimension, the evaluation module 32 is specifically further configured to:
determining whether any one of the devices has a connection relationship with at least two target type devices; the target type equipment is network equipment or safety equipment;
if yes, determining gateway information and protocol information according to the configuration information of the terminal equipment;
determining whether the gateway information is contained in the at least two target type devices, and whether the protocol information is one of a stacking protocol, a virtual router redundancy protocol and a cross-device link aggregation protocol;
if yes, determining that the network quality of the network to be evaluated in the equipment redundancy dimension is qualified.
On the basis of the above embodiment, in the case that the target evaluation dimension is a link redundancy dimension, the evaluation module 32 is specifically further configured to:
Determining whether at least two links exist between any two target type devices in each device; the target type equipment is network equipment or safety equipment;
if yes, determining whether a link protocol of any two target type devices adopts one of a stacking protocol or a link aggregation protocol according to configuration information of the any two target type devices;
if yes, determining whether the link protocol and the link protocol parameters of any two target type devices are the same according to the configuration information of the any two target type devices;
if yes, determining that the network quality of the network to be evaluated in the link redundancy dimension is qualified.
On the basis of the above embodiment, in the case that the target evaluation dimension is a ring network protection dimension, the evaluation module 32 is specifically further configured to:
determining each target device with loop connection relation in each device, and determining protocol information and parameter information of each target device according to configuration information of each target device;
determining whether protocol information of each of the target devices includes one of: spanning tree protocol, fast spanning tree protocol, multiple spanning tree protocol, and ethernet ring protection switching protocol;
If yes, determining whether protocol information and parameter information of each target device are the same;
if yes, determining that the network quality of the network to be evaluated in the ring network protection dimension is qualified.
On the basis of the above embodiment, in the case that the target evaluation dimension is a storm-suppression dimension, the evaluation module 32 is specifically further configured to:
determining whether each device starts a storm-suppression protocol according to configuration information of each device;
if yes, determining storm-suppressing protocol parameters of the devices according to the configuration information of the devices, and determining whether the storm-suppressing protocol parameters are the same as standard parameters;
if yes, determining that the network quality of the network to be evaluated in the storm restraining dimension is qualified.
On the basis of the above embodiment, in the case that the target evaluation dimension is a safety protection dimension, the evaluation module 32 is specifically further configured to:
under the condition that the security protection level is protection, determining whether the connection mode between the security device and the network device in each device is one of a serial mode and a policy routing bypass mode;
if yes, determining whether the safety equipment disables a preset protocol and a preset port according to configuration information of the safety equipment in each piece of equipment;
If yes, determining that the network quality of the network to be evaluated in the safety protection dimension is qualified.
On the basis of the above embodiment, in the case that the target evaluation dimension is a safety protection dimension, the evaluation module 32 is specifically further configured to:
under the condition that the security protection level is monitoring, determining whether the connection mode between the security equipment and the network equipment in each equipment is a bypass mode or not;
if yes, determining whether the network equipment opens a port mirror strategy according to configuration information of the network equipment in each piece of equipment;
if yes, determining that the network quality of the network to be evaluated in the safety protection dimension is qualified.
On the basis of the above embodiment, the apparatus further includes a network attribute information acquisition module, specifically configured to:
determining the internet protocol address information of each device according to the routing table of the network device in each device;
and acquiring network attribute information of each device according to the Internet protocol address information.
The network quality assessment device provided by the embodiment of the invention can execute the network quality assessment method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Technical details not described in detail in this embodiment may be referred to the method for evaluating network quality provided in any embodiment of the present invention.
Example IV
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. Fig. 4 shows a block diagram of an exemplary device 400 suitable for use in implementing embodiments of the invention. The apparatus 400 shown in fig. 4 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 4, device 400 is in the form of a general purpose computing device. The components of device 400 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, a bus 403 that connects the various system components (including the system memory 402 and the processing units 401).
Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 400 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by device 400 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 404 and/or cache memory 405. Device 400 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 403 through one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored in, for example, memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The device 400 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), one or more devices that enable a user to interact with the device 400, and/or any device (e.g., network card, modem, etc.) that enables the device 400 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 411. Also, device 400 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 412. As shown, network adapter 412 communicates with other modules of device 400 over bus 403. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with device 400, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 401 executes various functional applications and data processing by running a program stored in the system memory 402, for example, implements the network quality evaluation method provided by the embodiment of the present invention, including:
Determining the connection relation between the devices according to the network attribute information of the devices in the network to be evaluated; wherein the network attribute information comprises medium access control address information, address resolution protocol information and link layer discovery protocol information;
and evaluating the network quality of the network to be evaluated according to the connection relation among the devices and the configuration information of the devices.
Example five
A fifth embodiment of the present invention also provides a computer-readable storage medium, which when executed by a computer processor, is configured to perform a method of evaluating network quality, the method comprising:
determining the connection relation between the devices according to the network attribute information of the devices in the network to be evaluated; wherein the network attribute information comprises medium access control address information, address resolution protocol information and link layer discovery protocol information;
and evaluating the network quality of the network to be evaluated according to the connection relation among the devices and the configuration information of the devices.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the above-described method operations, and may also perform the related operations in the network quality assessment method provided in any embodiment of the present invention. The computer-readable storage media of embodiments of the present invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, 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 this document, 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.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either 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 of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer 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.
Computer program code for carrying out operations 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, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (11)

1. A method for evaluating network quality, comprising:
determining the connection relation between the devices according to the network attribute information of the devices in the network to be evaluated; wherein the network attribute information comprises medium access control address information, address resolution protocol information and link layer discovery protocol information;
according to the connection relation between the devices and the configuration information of the devices, evaluating the network quality of the network to be evaluated;
the evaluating the network quality of the network to be evaluated according to the connection relation between the devices and the configuration information of the devices comprises the following steps:
Obtaining a standard connection relation and standard configuration information corresponding to a target evaluation dimension; the target evaluation dimension comprises at least one of a device redundancy dimension, a link redundancy dimension, a ring network protection dimension, a storm suppression dimension and a safety protection dimension;
and matching the connection relation between the devices with the standard connection relation and/or matching the configuration information of the devices with the standard configuration information, and evaluating the network quality of the network to be evaluated in the target evaluation dimension according to a matching result.
2. The method according to claim 1, wherein, in the case that the target evaluation dimension is a device redundancy dimension, the matching the connection relationship between the devices with the standard connection relationship and/or the configuration information of the devices with the standard configuration information, and evaluating the network quality of the network to be evaluated in the target evaluation dimension according to the matching result, includes:
determining whether any one of the devices has a connection relationship with at least two target type devices; the target type equipment is network equipment or safety equipment;
If yes, determining gateway information and protocol information according to the configuration information of the terminal equipment;
determining whether the gateway information is contained in the at least two target type devices, and whether the protocol information is one of a stacking protocol, a virtual router redundancy protocol and a cross-device link aggregation protocol;
if yes, determining that the network quality of the network to be evaluated in the equipment redundancy dimension is qualified.
3. The method according to claim 1, wherein, in the case that the target evaluation dimension is a link redundancy dimension, the matching the connection relationship between the devices with the standard connection relationship and/or the configuration information of the devices with the standard configuration information, and evaluating the network quality of the network to be evaluated in the target evaluation dimension according to the matching result, includes:
determining whether at least two links exist between any two target type devices in each device; the target type equipment is network equipment or safety equipment;
if yes, determining whether a link protocol of any two target type devices adopts one of a stacking protocol or a link aggregation protocol according to configuration information of the any two target type devices;
If yes, determining whether the link protocol and the link protocol parameters of any two target type devices are the same according to the configuration information of the any two target type devices;
if yes, determining that the network quality of the network to be evaluated in the link redundancy dimension is qualified.
4. The method according to claim 1, wherein, in the case that the target evaluation dimension is a ring network protection dimension, the matching the connection relationship between the devices with the standard connection relationship and/or the configuration information of the devices with the standard configuration information, and evaluating the network quality of the network to be evaluated in the target evaluation dimension according to the matching result, includes:
determining each target device with loop connection relation in each device, and determining protocol information and parameter information of each target device according to configuration information of each target device;
determining whether protocol information of each of the target devices includes one of: spanning tree protocol, fast spanning tree protocol, multiple spanning tree protocol, and ethernet ring protection switching protocol;
if yes, determining whether protocol information and parameter information of each target device are the same;
If yes, determining that the network quality of the network to be evaluated in the ring network protection dimension is qualified.
5. The method according to claim 1, wherein, in the case that the target evaluation dimension is a storm-suppressing dimension, the matching the connection relationship between the devices with the standard connection relationship and/or the configuration information of the devices with the standard configuration information, and evaluating the network quality of the network to be evaluated in the target evaluation dimension according to the matching result, includes:
determining whether each device starts a storm-suppression protocol according to configuration information of each device;
if yes, determining storm-suppressing protocol parameters of the devices according to the configuration information of the devices, and determining whether the storm-suppressing protocol parameters are the same as standard parameters;
if yes, determining that the network quality of the network to be evaluated in the storm restraining dimension is qualified.
6. The method according to claim 1, wherein, in the case that the target evaluation dimension is a security dimension, the matching the connection relationship between the devices with the standard connection relationship and/or the configuration information of the devices with the standard configuration information, and evaluating the network quality of the network to be evaluated in the target evaluation dimension according to the matching result, includes:
Under the condition that the security protection level is protection, determining whether the connection mode between the security device and the network device in each device is one of a serial mode and a policy routing bypass mode;
if yes, determining whether the safety equipment disables a preset protocol and a preset port according to configuration information of the safety equipment in each piece of equipment;
if yes, determining that the network quality of the network to be evaluated in the safety protection dimension is qualified.
7. The method according to claim 1, wherein in the case that the target evaluation dimension is a security protection dimension, the matching the connection relationship between the devices with the standard connection relationship and/or the configuration information of the devices with the standard configuration information, and evaluating the network quality of the network to be evaluated in the target evaluation dimension according to the matching result, further includes:
under the condition that the security protection level is monitoring, determining whether the connection mode between the security equipment and the network equipment in each equipment is a bypass mode or not;
if yes, determining whether the network equipment opens a port mirror strategy according to configuration information of the network equipment in each piece of equipment;
If yes, determining that the network quality of the network to be evaluated in the safety protection dimension is qualified.
8. The method of claim 1, further comprising, before determining the connection relationship between the devices according to the network attribute information of the devices in the network to be evaluated:
determining the internet protocol address information of each device according to the routing table of the network device in each device;
and acquiring network attribute information of each device according to the Internet protocol address information.
9. An evaluation device for network quality, comprising:
the connection relation determining module is used for determining the connection relation among the devices according to the network attribute information of the devices in the network to be evaluated; wherein the network attribute information comprises medium access control address information, address resolution protocol information and link layer discovery protocol information;
the evaluation module is used for evaluating the network quality of the network to be evaluated according to the connection relation among the devices and the configuration information of the devices;
the evaluation module is specifically configured to: obtaining a standard connection relation and standard configuration information corresponding to a target evaluation dimension; the target evaluation dimension comprises at least one of a device redundancy dimension, a link redundancy dimension, a ring network protection dimension, a storm suppression dimension and a safety protection dimension;
And matching the connection relation between the devices with the standard connection relation and/or matching the configuration information of the devices with the standard configuration information, and evaluating the network quality of the network to be evaluated in the target evaluation dimension according to a matching result.
10. An electronic device, the electronic device further comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of assessing network quality as recited in any one of claims 1-8.
11. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a method of evaluating network quality according to any of claims 1-8.
CN202210001542.5A 2022-01-04 2022-01-04 Network quality assessment method, device, equipment and medium Active CN114389982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210001542.5A CN114389982B (en) 2022-01-04 2022-01-04 Network quality assessment method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210001542.5A CN114389982B (en) 2022-01-04 2022-01-04 Network quality assessment method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN114389982A CN114389982A (en) 2022-04-22
CN114389982B true CN114389982B (en) 2024-04-09

Family

ID=81199529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210001542.5A Active CN114389982B (en) 2022-01-04 2022-01-04 Network quality assessment method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114389982B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107995030A (en) * 2017-11-28 2018-05-04 车智互联(北京)科技有限公司 A kind of network detection method, network fault detecting method and system
JP2018107757A (en) * 2016-12-28 2018-07-05 富士通株式会社 Network testing program, network testing method, and network testing device
CN110247784A (en) * 2018-03-07 2019-09-17 北京京东尚科信息技术有限公司 The method and apparatus for determining network topology structure
CN111147330A (en) * 2019-12-28 2020-05-12 国铁吉讯科技有限公司 Network quality evaluation method and device, storage medium and processor
CN112566170A (en) * 2020-11-25 2021-03-26 中移(杭州)信息技术有限公司 Network quality evaluation method, device, server and storage medium
CN113098725A (en) * 2021-06-10 2021-07-09 北京全路通信信号研究设计院集团有限公司 Dual-network interweaving abnormity detection method and system
WO2021166228A1 (en) * 2020-02-21 2021-08-26 日本電信電話株式会社 Network management device, method, and program
CN113382387A (en) * 2021-06-16 2021-09-10 上海应用技术大学 Network quality safety assessment method based on rail transit LTE-M system signaling

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018107757A (en) * 2016-12-28 2018-07-05 富士通株式会社 Network testing program, network testing method, and network testing device
CN107995030A (en) * 2017-11-28 2018-05-04 车智互联(北京)科技有限公司 A kind of network detection method, network fault detecting method and system
CN110247784A (en) * 2018-03-07 2019-09-17 北京京东尚科信息技术有限公司 The method and apparatus for determining network topology structure
CN111147330A (en) * 2019-12-28 2020-05-12 国铁吉讯科技有限公司 Network quality evaluation method and device, storage medium and processor
WO2021166228A1 (en) * 2020-02-21 2021-08-26 日本電信電話株式会社 Network management device, method, and program
CN112566170A (en) * 2020-11-25 2021-03-26 中移(杭州)信息技术有限公司 Network quality evaluation method, device, server and storage medium
CN113098725A (en) * 2021-06-10 2021-07-09 北京全路通信信号研究设计院集团有限公司 Dual-network interweaving abnormity detection method and system
CN113382387A (en) * 2021-06-16 2021-09-10 上海应用技术大学 Network quality safety assessment method based on rail transit LTE-M system signaling

Also Published As

Publication number Publication date
CN114389982A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN107317695B (en) Method, system and device for debugging networking faults
US8813209B2 (en) Automating network reconfiguration during migrations
US20230179513A1 (en) Flow tracing operation in container cluster
WO2020242649A1 (en) Leveraging remote direct memory access (rdma) for packet capture
JP2021528749A (en) Automatic packetless network reachability analysis
US20160149754A1 (en) Sample based determination of network policy violations
CN112350918B (en) Service traffic scheduling method, device, equipment and storage medium
CN113810429B (en) Method for opening automatic strategy
CN113542074B (en) Method and system for visually managing east-west network flow of kubernets cluster
US20080267193A1 (en) Technique for enabling network statistics on software partitions
CN111698110B (en) Network equipment performance analysis method, system, equipment and computer medium
US11962623B2 (en) Static analysis techniques for determining reachability properties of network and computing objects
CN107332793A (en) A kind of message forwarding method, relevant device and system
CN114389982B (en) Network quality assessment method, device, equipment and medium
CN114900430B (en) Container network optimization method, device, computer equipment and storage medium
US20180198704A1 (en) Pre-processing of data packets with network switch application -specific integrated circuit
US20160337232A1 (en) Flow-indexing for datapath packet processing
CN113364681B (en) Network path determination method, network path determination device, electronic apparatus, network path determination medium, and program product
CN112395141B (en) Data page management method and device, electronic equipment and storage medium
KR100850629B1 (en) A network interface card for filtering transmitted data packet in a network and a method for filtering
CN111800286A (en) Detection method and device of intranet assets and electronic equipment
US20230318958A1 (en) End-to-end flow visibility in a data network including service appliances
US11928422B1 (en) Explanatory configuration function annotation
CN114338525B (en) Automatic route aggregation method and device, electronic equipment and storage medium
CN114844691B (en) Data processing method and device, electronic equipment and storage medium

Legal Events

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