CN118573608B - Switch reliability test method and system - Google Patents
Switch reliability test method and system Download PDFInfo
- Publication number
- CN118573608B CN118573608B CN202411003423.9A CN202411003423A CN118573608B CN 118573608 B CN118573608 B CN 118573608B CN 202411003423 A CN202411003423 A CN 202411003423A CN 118573608 B CN118573608 B CN 118573608B
- Authority
- CN
- China
- Prior art keywords
- bandwidth
- switch
- link
- path
- network
- 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
Links
- 238000010998 test method Methods 0.000 title claims description 16
- 230000005540 biological transmission Effects 0.000 claims abstract description 72
- 238000012360 testing method Methods 0.000 claims abstract description 50
- 238000011084 recovery Methods 0.000 claims abstract description 38
- 238000000034 method Methods 0.000 claims abstract description 21
- 238000011056 performance test Methods 0.000 claims abstract description 19
- 238000004364 calculation method Methods 0.000 claims abstract description 9
- 238000004458 analytical method Methods 0.000 claims description 16
- 238000005206 flow analysis Methods 0.000 claims description 10
- 238000004088 simulation Methods 0.000 claims description 6
- 238000012806 monitoring device Methods 0.000 claims description 4
- 238000011897 real-time detection Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 13
- 238000004891 communication Methods 0.000 description 11
- 238000012544 monitoring process Methods 0.000 description 9
- 238000004422 calculation algorithm Methods 0.000 description 8
- 238000005457 optimization Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 7
- 238000004590 computer program Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 5
- 238000007726 management method Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000013468 resource allocation Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000011835 investigation Methods 0.000 description 3
- BUGBHKTXTAQXES-UHFFFAOYSA-N Selenium Chemical compound [Se] BUGBHKTXTAQXES-UHFFFAOYSA-N 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000002708 enhancing effect Effects 0.000 description 2
- 238000002347 injection Methods 0.000 description 2
- 239000007924 injection Substances 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 229910052711 selenium Inorganic materials 0.000 description 2
- 239000011669 selenium Substances 0.000 description 2
- 238000012384 transportation and delivery Methods 0.000 description 2
- XSQUKJJJFZCRTK-NJFSPNSNSA-N UREA C 14 Chemical compound N[14C](N)=O XSQUKJJJFZCRTK-NJFSPNSNSA-N 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 238000007621 cluster analysis Methods 0.000 description 1
- 238000007405 data analysis Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000000556 factor analysis Methods 0.000 description 1
- 238000009499 grossing Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000012417 linear regression Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000000513 principal component analysis Methods 0.000 description 1
- 239000000700 radioactive tracer Substances 0.000 description 1
- 238000007637 random forest analysis Methods 0.000 description 1
- 238000000611 regression analysis Methods 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 238000012706 support-vector machine Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the field of network engineering, and provides a method and a system for testing the reliability of a switch, wherein the method comprises the following steps: acquiring a switch to be tested, constructing a closed local area network, inquiring network connection equipment, identifying equipment performance indexes, analyzing the topological structure and link weight of the network connection equipment based on the equipment performance indexes, detecting the flow of ports in the local area network in real time to determine a flow path, inquiring transmission delay, determining the information dimension and dimension factor of the switch to be tested according to the transmission delay, calculating the bandwidth inquiry bandwidth fine granularity and the calculation bandwidth utilization rate, determining the load environment and the load state of the switch to be tested, performing fault recovery test and performance test on the basis, acquiring recovery parameters and performance parameters, and generating a test report. The invention can improve the stability of the data transmission of the switch.
Description
Technical Field
The present invention relates to the field of network engineering, and in particular, to a method and a system for testing switch reliability.
Background
A switch refers to a network device for implementing packet exchanges within a Local Area Network (LAN) or with external networks in a computer network, capable of forwarding packets from one port to another according to a destination address to enable communication between devices in the network.
At present, a common switch testing method mainly comprises the traditional technologies of pressure test, redundancy test, fault injection test and the like, wherein the pressure test is to test the performance of the switch when bearing extreme load by simulating network flow under the condition of high load; the redundancy test is to evaluate the automatic switching and recovery capability of the switch when the component fails or the link is interrupted; the fault injection test is to artificially introduce various possible fault conditions and observe countermeasures and system recovery conditions of the switch, however, the test method cannot fully cover various actual fault conditions and performance problems of the switch, so that the test result is insufficient and comprehensive, and the stability of the data transmission of the switch is affected, and therefore, a switch reliability test method is needed to improve the stability of the data transmission of the switch.
Disclosure of Invention
The invention provides a method and a system for testing the reliability of a switch, which mainly aim to improve the stability of data transmission of the switch.
Acquiring a switch to be tested, constructing a closed local area network corresponding to the switch to be tested, inquiring network connection equipment in the closed local area network, and identifying equipment performance indexes in the network connection equipment;
Based on the equipment performance index, analyzing a network topology structure corresponding to the network connection equipment, identifying a topology link in the network topology structure, and calculating a link weight corresponding to the topology link;
Detecting the distributed flow of a port in the closed local area network in real time based on the link weight, determining a flow path corresponding to the distributed flow, inquiring the transmission delay in the flow path, determining the information dimension corresponding to the switch to be tested based on the transmission delay, identifying the dimension factor in the information dimension, and calculating the path bandwidth corresponding to the flow path based on the dimension factor;
Inquiring bandwidth fine granularity corresponding to the path bandwidth, calculating bandwidth utilization rate corresponding to the bandwidth fine granularity, and determining a load environment corresponding to the switch to be tested based on the bandwidth utilization rate;
And identifying a load state in the load environment, performing fault recovery test on the switch to be tested based on the load state to obtain recovery parameters, performing performance test on the switch to be tested based on the recovery parameters to obtain performance parameters, and generating a test report corresponding to the switch to be tested based on the performance parameters.
Optionally, the identifying the device performance index in the network connection device includes:
acquiring an original data packet in the network connection equipment;
performing flow analysis on the original data packet to obtain flow analysis data;
Inquiring the running state of the equipment corresponding to the network connection equipment in real time based on the flow analysis data;
and carrying out link performance test on the running state of the equipment to obtain equipment performance indexes corresponding to the network connection equipment.
Optionally, the analyzing, based on the device performance index, a network topology structure corresponding to the network connection device includes:
identifying performance index parameters in the equipment performance index, and converting the performance index parameters into performance data in a unified format;
inquiring network links between devices in the network connection device based on the performance data;
And analyzing a network topology structure corresponding to the network connection equipment based on the network link.
Optionally, the calculating the link weight corresponding to the topological link includes:
calculating the link weight corresponding to the topological link by using the following formula:
;
Wherein, Indicating the link weight corresponding to the topological link,Representing the index of the links in the topology,Representing the total number of links in the topology,Represent the firstThe bandwidth of the topology link is striped,Represent the firstThe delay of the topology link is striped,Represent the firstPacket loss rate of the topology link is stripped,Represent the firstThe reliability of the topological links is stripped,Represent the firstAnd (5) standardizing the packet loss rate of the topological links.
Optionally, the detecting, in real time, the distributed traffic of the port in the closed lan based on the link weight includes:
Identifying weight real-time data corresponding to the link weight, and analyzing a source port and a destination port corresponding to the weight real-time data in the closed local area network;
Inquiring a port link between the source port and the destination port, and detecting the inbound traffic and the outbound traffic in the port link in real time;
and determining the distribution flow of the ports in the closed local area network based on the inbound flow and the outbound flow.
Optionally, determining, based on the transmission delay, an information dimension corresponding to the switch to be tested includes:
acquiring delay data corresponding to the transmission delay, and identifying a transmission time stamp in the delay data;
Calculating a delay statistic value between ports in the switch to be tested based on the transmission time stamp;
determining a main factor influencing the transmission delay based on the delay statistic;
and determining the information dimension corresponding to the switch to be tested based on the main factors.
Optionally, the calculating, based on the dimension factor, a path bandwidth corresponding to the traffic path includes:
Calculating the path bandwidth corresponding to the flow path by using the following formula:
;
Wherein, Representing the path bandwidth corresponding to the traffic path,Refers to the path length, which represents the distance of the flow path,Refers to a bandwidth factor, representing the bandwidth factor available on the traffic path,Is a data transmission rate, representing the rate at which data is transmitted over the traffic path,Representing the node index to which the traffic path corresponds,Representing the total number of nodes to which the traffic path corresponds,Representing a probability density function corresponding to the flow path,Representing a small increment of the corresponding path length of the traffic path,Represent the firstThe bandwidth factor at the individual nodes is a function of,Represent the firstData transmission rate at the individual nodes.
Optionally, the calculating the bandwidth utilization rate corresponding to the bandwidth fine granularity includes:
calculating the bandwidth utilization rate corresponding to the bandwidth fine granularity by using the following formula:
;
Wherein, Represents the bandwidth utilization corresponding to the bandwidth fine granularity,Representing a sub-divided bandwidth index corresponding to the bandwidth fine granularity,Representing the number of sub-divided bandwidths corresponding to the bandwidth fine granularity,Represent the firstThe bandwidth of each of the sub-divisions,Represent the firstThe amount of data transmission corresponding to the individual sub-divided bandwidths,Representing the total bandwidth corresponding to the bandwidth fine granularity.
Optionally, the determining, based on the bandwidth utilization, a load environment corresponding to the switch to be tested includes:
recording bandwidth utilization rate data of a key time period by using a preset monitoring device;
carrying out fluctuation analysis on the bandwidth utilization rate data to obtain fluctuation data;
Extracting a load factor in the fluctuation data;
and carrying out environment simulation on the switch to be tested based on the load factor to obtain a load environment.
In order to solve the above problems, the present invention also provides a switch reliability test system, the system comprising:
the system comprises an index identification module, a network connection module and a network connection module, wherein the index identification module is used for acquiring a switch to be tested, constructing a closed local area network corresponding to the switch to be tested, inquiring network connection equipment in the closed local area network, and identifying equipment performance indexes in the network connection equipment;
The link weight calculation module is used for analyzing a network topology structure corresponding to the network connection equipment based on the equipment performance index, identifying a topology link in the network topology structure and calculating a link weight corresponding to the topology link;
The path bandwidth calculation module is used for detecting the distributed flow of the port in the closed local area network in real time based on the link weight, determining a flow path corresponding to the distributed flow, inquiring the transmission delay in the flow path, determining the information dimension corresponding to the switch to be tested based on the transmission delay, identifying the dimension factor in the information dimension, and calculating the path bandwidth corresponding to the flow path based on the dimension factor;
The environment determining module is used for inquiring the bandwidth fine granularity corresponding to the path bandwidth, calculating the bandwidth utilization rate corresponding to the bandwidth fine granularity, and determining the load environment corresponding to the switch to be tested based on the bandwidth utilization rate;
The report generating module is used for identifying the load state in the load environment, carrying out fault recovery test on the switch to be tested based on the load state to obtain recovery parameters, carrying out performance test on the switch to be tested based on the recovery parameters to obtain performance parameters, and generating a test report corresponding to the switch to be tested based on the performance parameters.
Firstly, the invention builds a closed local area network corresponding to the switch to be tested by acquiring the switch to be tested, can better simulate the situation under the real working environment, effectively eliminates external interference factors, is convenient for accurately evaluating the performance, stability and recovery capability of the switch, thereby providing powerful support for system optimization and problem investigation, simultaneously, the invention analyzes the network topology structure corresponding to the network connection equipment based on the equipment performance index, can timely find potential performance bottleneck, network congestion point or fault node, further adopts targeted optimization and adjustment measures, improves the availability, stability and efficiency of the network, and detects the distribution flow of ports in the closed local area network in real time based on the link weight, the invention can quickly find abnormal flow or network congestion condition, and timely take measures to adjust and optimize so as to improve the utilization rate of network resources, calculates the utilization rate of bandwidth corresponding to the bandwidth fine granularity by inquiring the bandwidth fine granularity corresponding to the path bandwidth, can better optimize network configuration and resource allocation, the invention can improve the performance and efficiency of the whole network, effectively prevent the occurrence of network congestion and bottleneck problems, thereby reducing the risk of network faults, and further, by identifying the load state in the load environment, the invention can timely know the running condition of the system or equipment, effectively predict the possible problems and take corresponding measures, thereby reducing the fault rate. Therefore, the switch reliability test method and system provided by the invention can improve the stability of switch data transmission.
Drawings
Fig. 1 is a flow chart illustrating a method for testing reliability of a switch according to an embodiment of the present invention;
Fig. 2 is a schematic block diagram of a switch reliability test system according to an embodiment of the present invention;
Fig. 3 is a schematic diagram of an internal structure of an electronic device according to a switch reliability test method according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a switch reliability test method. The execution body of the switch reliability test method includes, but is not limited to, at least one of a server, a terminal and the like capable of being configured to execute the electronic device of the method provided by the embodiment of the application. In other words, the switch reliability test method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Referring to fig. 1, a flow chart of a switch reliability testing method according to an embodiment of the invention is shown. In this embodiment, the switch reliability test method includes:
S1, acquiring a switch to be tested, constructing a closed local area network corresponding to the switch to be tested, inquiring network connection equipment in the closed local area network, and identifying equipment performance indexes in the network connection equipment.
According to the invention, the switch to be tested is obtained, and the closed local area network corresponding to the switch to be tested is constructed, so that the situation under the real working environment can be better simulated, external interference factors are effectively eliminated, and the performance, stability and recovery capability of the switch are conveniently and accurately evaluated, thereby providing powerful support for system optimization and problem investigation.
The closed local area network is a limited access network specially built in a test environment and is used for connecting a switch to be tested and related equipment, and optionally, the closed local area network corresponding to the switch to be tested is built through a virtualization tool, for example: VMware ESXi, virtualBox, KVM, etc.
Further, the invention can effectively evaluate the key performance parameters such as throughput, delay, data packet loss rate and the like of the equipment by inquiring the network connection equipment in the closed local area network and identifying the equipment performance index in the network connection equipment, thereby being beneficial to finding potential problems, optimizing network configuration and improving network performance and stability.
Wherein, the network connection device refers to a hardware device capable of realizing connection and communication in a computer network; the device performance index refers to an index obtained by measuring and evaluating according to a device running state, including a bandwidth utilization rate, a response time, a throughput, a packet loss rate, an error rate, and the like of the device, and optionally, the querying of the network connection device in the closed local area network may be achieved through a network scanning tool, for example: nmap, SNMP tool.
As one embodiment of the present invention, the identifying a device performance index in the network connection device includes: acquiring an original data packet in the network connection equipment; performing flow analysis on the original data packet to obtain flow analysis data; inquiring the running state of the equipment corresponding to the network connection equipment in real time based on the flow analysis data; and carrying out link performance test on the running state of the equipment to obtain equipment performance indexes corresponding to the network connection equipment.
The original data packet is a data packet on the network connection equipment through capturing or monitoring, and comprises information such as a source address, a target address, a protocol type, a data size and the like; the flow analysis data refers to analysis and processing of an original data packet, and useful information such as flow statistics, flow trend, protocol distribution, application program distribution and the like of each device is extracted; the equipment running state refers to the current state of network connection equipment, and comprises the on-line/off-line state of the equipment, the connection speed of the equipment, the load condition of the equipment, the running time delay of the equipment, the packet loss rate of the equipment and the like; the device performance index is an index obtained by measuring and evaluating according to the running state of the device, and comprises the bandwidth utilization rate, response time, throughput, packet loss rate, error rate and the like of the device.
Further, the obtaining the original data packet in the network connection device may be achieved through a network packet capturing tool, for example: WIRESHARK, TCPDUMP, TSHARK, etc.; the traffic analysis of the original data packet may be achieved by a data packet analysis tool, such as: nTop, netFlow Analyzer, etc.; the real-time inquiry of the running state of the device corresponding to the network connection device may be achieved by a monitoring tool, for example: nagios, zabbix or Prometheus, etc.; the link performance test on the running state of the device may be obtained by a performance test tool, for example: iPerf, pingPlotter, JMeter, etc.
S2, analyzing a network topology structure corresponding to the network connection equipment based on the equipment performance index, identifying a topology link in the network topology structure, and calculating a link weight corresponding to the topology link.
Based on the equipment performance index, the network topology structure corresponding to the network connection equipment is analyzed, potential performance bottlenecks, network congestion points or fault nodes can be found in time, and then targeted optimization and adjustment measures are adopted, so that the availability, stability and efficiency of the network are improved.
The network topology structure refers to a structure for describing a connection mode and layout among devices in a network, and comprises a star type, a bus type, a ring type, a tree type and the like.
As an embodiment of the present invention, the analyzing, based on the device performance index, a network topology structure corresponding to the network connection device includes: identifying performance index parameters in the equipment performance index; converting the performance index parameters into performance data in a unified format; inquiring network links between devices in the network connection device based on the performance data; and analyzing a network topology structure corresponding to the network connection equipment based on the network link.
Wherein, the performance index parameter refers to various indexes describing the performance of the network equipment, such as bandwidth, delay, packet loss rate, throughput, CPU utilization rate and the like; the performance data refers to specific performance values obtained from network equipment; the network link refers to a physical or logical link connecting different devices in a network.
Further, the performance index parameter in the performance index of the device can be obtained through a network monitoring system, for example: zabbix, nagios, etc.; the performance data for converting the performance index parameters into the unified format may be obtained through a script programming language implementation, for example: python, shell, etc.; the querying of the network links between the network connection devices may be achieved through a route tracking command, such as: traceroute, tracert command; the analysis of the network topology structure corresponding to the network connection device may be achieved through a graph theory algorithm, for example: shortest path algorithm, minimum spanning tree algorithm.
According to the invention, by identifying the topological links in the network topological structure and calculating the link weights corresponding to the topological links, factors such as reliability, delay and bandwidth of network connection can be better evaluated, intelligent route selection and load balancing are further realized, congestion and single-point faults are effectively avoided, and the throughput and stability of the whole network are improved.
Wherein, the topological link refers to a physical or logical path connecting two devices or nodes in the network; the link weight refers to a numerical value given to each link in the topology structure, and is used for representing a specific attribute or performance index of the link.
As one embodiment of the present invention, the calculating the link weight corresponding to the topology link includes:
calculating the link weight corresponding to the topological link by using the following formula:
;
Wherein, Indicating the link weight corresponding to the topological link,Representing the index of the links in the topology,Representing the total number of links in the topology,Represent the firstThe bandwidth of the topology link is striped,Represent the firstThe delay of the topology link is striped,Represent the firstPacket loss rate of the topology link is stripped,Represent the firstThe reliability of the topological links is stripped,Represent the firstAnd (5) standardizing the packet loss rate of the topological links.
S3, detecting the distributed flow of the port in the closed local area network in real time based on the link weight, determining a flow path corresponding to the distributed flow, inquiring the transmission delay in the flow path, determining the information dimension corresponding to the switch to be tested based on the transmission delay, identifying the dimension factor in the information dimension, and calculating the path bandwidth corresponding to the flow path based on the dimension factor.
Based on the link weight, the invention detects the distributed flow of the port in the closed local area network in real time, can rapidly find abnormal flow or network congestion condition, and timely takes measures to adjust and optimize, thereby improving the utilization rate of network resources.
The distributed traffic refers to traffic distribution among ports in a closed local area network.
As an embodiment of the present invention, the detecting, in real time, the distributed traffic of the port in the closed lan based on the link weight includes: identifying weight real-time data corresponding to the link weight; analyzing the source port and the destination port corresponding to the weight real-time data in the closed local area network; querying a port link between the source port and the destination port; detecting inbound traffic and outbound traffic in the port link in real time; and determining the distribution flow of the ports in the closed local area network based on the inbound flow and the outbound flow.
The weight real-time data refers to real-time data corresponding to a link weight, such as bandwidth utilization rate, traffic size and the like; the source port refers to a port number initiating data transmission in a closed local area network; the destination port refers to a port number for receiving data transmission in the closed local area network; the port link refers to a physical or logical link connecting a source port and a destination port; the ingress traffic refers to data traffic flowing from a source port to a destination port; the outbound traffic refers to data traffic flowing from the destination port to the source port.
Further, the real-time data for identifying the weight corresponding to the link weight may be obtained by a network traffic monitoring tool, for example: WIRESHARK, TCPDUMP, etc.; the analyzing the source port and the destination port corresponding to the weight real-time data in the closed local area network may be achieved by a protocol analyzing tool, for example: scapy, pcap, etc.; the querying of the port link between the source port and the destination port may be achieved by a path computation model implementation, such as: dijkstra algorithm, shortest path tree, etc.; the real-time detection of inbound traffic and outbound traffic in the port link may be achieved by a traffic monitoring tool, such as: netFlow, sFlow, etc.; the determining the distributed traffic of the ports in the closed lan may be achieved by a data analysis tool, such as: ELK Stack, splunk, etc.
The invention can identify potential bottleneck points and delay problems by determining the flow paths corresponding to the distributed flow and inquiring the transmission delay in the flow paths, and timely make adjustment to improve the network efficiency and reduce the data loss rate, thereby enhancing the stability and reliability of the network.
The flow path is a network path through which the data packet passes from the source port, and comprises intermediate equipment and a link until reaching the destination port; the transmission delay is the time delay of sending the data packet from the source port to the destination port, including time consumption in transmission, processing, queuing and the like, and optionally, the determining the traffic path corresponding to the distributed traffic can be achieved through a path inference algorithm; the querying of the transmission delay in the traffic path may be achieved by a network performance monitoring tool, such as: nagios or zalbix tools.
The invention determines the information dimension corresponding to the switch to be tested based on the transmission delay, can know the efficiency and the speed performance of the switch to be tested in the data exchange process, further optimizes the network topology structure, improves the data transmission quality, effectively plans the network resources and ensures the high-efficiency operation and the reliability of the network.
The information dimension refers to the information hierarchy and the feature dimension of the switch to be tested, which are determined by comprehensively considering the time delay data, the main factors and the dimension factors, and reflects the complexity of the system and the association of various indexes.
As an embodiment of the present invention, the determining, based on the transmission delay, an information dimension corresponding to the switch to be tested includes: acquiring delay data corresponding to the transmission delay; identifying a transmission timestamp in the delay data; calculating a delay statistic value between ports in the switch to be tested based on the transmission time stamp; determining a main factor influencing the transmission delay based on the delay statistic; and determining the information dimension corresponding to the switch to be tested based on the main factors.
The time delay data refers to the time elapsed between a data packet or information recorded in network communication from a transmitting end to a receiving end, and comprises the transmission delay and the round trip time of a single data packet; the transmission time stamp is a time stamp for marking the occurrence time of a key event in the transmission process of the data packet, and comprises the sending time, the arrival time and the like of the data packet; the time delay statistic value refers to a count value obtained after analysis and processing of transmission time delay data, such as average time delay, minimum time delay, maximum time delay, time delay distribution and the like; the main factors are key factors influencing transmission delay, including network congestion, link quality, equipment performance, data packet loss rate, data packet retransmission times and the like.
Further, the acquisition of the delay data corresponding to the transmission delay can be achieved through a network delay model; the identifying the transmission time stamp in the time delay data may be achieved through a script programming language, such as: python, MATLAB, etc.; the calculating the time delay statistic value between the ports in the switch to be tested can be achieved through a statistic algorithm, for example: average, median, variance, etc. algorithms; the main factors influencing the transmission delay can be obtained by a regression analysis method, such as: linear regression, multivariate regression, etc.; the determining the information dimension corresponding to the switch to be tested may be achieved by a graph theory analysis method, for example: centering, near centering, etc.
The invention is helpful to simplify complex data structure, reduce difficulty of information processing and promote understanding of interrelation between data by identifying dimension factors in the information dimension, thereby improving accuracy and effectiveness of decision.
The dimension factor refers to a key factor affecting the change of the data feature or attribute in the information dimension, and optionally, the dimension factor identifying in the information dimension may be obtained by a dimension analysis method, for example: principal component analysis, factor analysis, cluster analysis and the like.
As one embodiment of the present invention, the calculating, based on the dimension factor, a path bandwidth corresponding to the traffic path includes:
Calculating the path bandwidth corresponding to the flow path by using the following formula:
;
Wherein, Representing the path bandwidth corresponding to the traffic path,Refers to the path length, which represents the distance of the flow path,Refers to a bandwidth factor, representing the bandwidth factor available on the traffic path,Is a data transmission rate, representing the rate at which data is transmitted over the traffic path,Representing the node index to which the traffic path corresponds,Representing the total number of nodes to which the traffic path corresponds,Representing a probability density function corresponding to the flow path,Representing a small increment of the corresponding path length of the traffic path,Represent the firstThe bandwidth factor at the individual nodes is a function of,Represent the firstData transmission rate at the individual nodes.
S4, inquiring bandwidth fine granularity corresponding to the path bandwidth, calculating bandwidth utilization rate corresponding to the bandwidth fine granularity, and determining a load environment corresponding to the switch to be tested based on the bandwidth utilization rate.
According to the invention, the bandwidth fine granularity corresponding to the path bandwidth is inquired, the bandwidth utilization rate corresponding to the bandwidth fine granularity is calculated, the network configuration and the resource allocation can be better optimized, the overall network performance and the overall network efficiency are improved, the occurrence of network congestion and bottleneck problems is effectively prevented, and the network failure risk is reduced.
Wherein, the bandwidth fine granularity refers to more detailed and accurate monitoring and analysis of bandwidth utilization conditions on a specific path or link in a network to obtain data; the bandwidth utilization rate refers to a utilization degree of network resources, that is, efficiency and load conditions of data transmission in a network, and optionally, bandwidth fine granularity corresponding to the path bandwidth can be obtained through a network monitoring tool, for example: WIRESHARK, NAGIOS, ZABBIX, etc.
As one embodiment of the present invention, the calculating the bandwidth utilization corresponding to the bandwidth fine granularity includes:
calculating the bandwidth utilization rate corresponding to the bandwidth fine granularity by using the following formula:
;
Wherein, Represents the bandwidth utilization corresponding to the bandwidth fine granularity,Representing a sub-divided bandwidth index corresponding to the bandwidth fine granularity,Representing the number of sub-divided bandwidths corresponding to the bandwidth fine granularity,Represent the firstThe bandwidth of each of the sub-divisions,Represent the firstThe amount of data transmission corresponding to the individual sub-divided bandwidths,Representing the total bandwidth corresponding to the bandwidth fine granularity.
Based on the bandwidth utilization ratio, the invention determines the load environment corresponding to the switch to be tested, is beneficial to identifying the bottleneck and performance problems possibly occurring under the condition of high load of the switch, further optimizes network configuration and resource allocation, improves network stability and throughput, and ensures network operation efficiency and reliability.
The load environment is a network environment state obtained by simulation according to a load factor, and comprises a load condition of simulated network equipment, fluctuation conditions of network flow, change of bandwidth requirements and the like.
As an embodiment of the present invention, the determining, based on the bandwidth utilization, a load environment corresponding to the switch to be tested includes: recording bandwidth utilization rate data of a key time period by using a preset monitoring device; carrying out fluctuation analysis on the bandwidth utilization rate data to obtain fluctuation data; extracting a load factor in the fluctuation data; and carrying out environment simulation on the switch to be tested based on the load factor to obtain a load environment.
The bandwidth utilization rate data refers to recorded data of network bandwidth utilization conditions of the switch to be tested in different time periods, and can be expressed as bandwidth consumption in each time period; the fluctuation data is information obtained after the bandwidth utilization rate data is analyzed, and reflects the change condition of the bandwidth utilization rate, and the change condition comprises the contents of a fluctuation range, a fluctuation frequency, a fluctuation mode and the like; the loading factor refers to a specific parameter or characteristic extracted from the fluctuation data.
Further, the bandwidth utilization data of the key time period recorded by the preset monitoring device may be obtained by a network traffic analysis tool, for example: an NTOP tool; the fluctuation analysis of the bandwidth utilization data may be achieved by a smoothing method, such as: moving average, exponentially weighted moving average, etc.; the load factor in the fluctuation data can be extracted by an energy spectrum density analysis method; the environmental simulation of the switch to be tested can be achieved through a network simulation tool, for example: cisco PACKET TRACER, GNS3, and the like.
S5, identifying a load state in the load environment, performing fault recovery test on the switch to be tested based on the load state to obtain recovery parameters, performing performance test on the switch to be tested based on the recovery parameters to obtain performance parameters, and generating a test report corresponding to the switch to be tested based on the performance parameters.
By identifying the load state in the load environment, the running condition of the system or the equipment can be known in time, the possible problems can be effectively predicted, and corresponding measures can be taken, so that the fault rate is reduced.
The load state refers to the change condition of the pressure, the load size and the working state born by the system or the equipment, including but not limited to real-time monitoring and analysis of parameters such as working load quantity, temperature, current, voltage, speed and the like, optionally, the identification of the load state in the load environment can be achieved through a machine learning algorithm, such as: support vector machine, artificial neural network, random forest, etc.
Further, the invention carries out fault recovery test on the switch to be tested based on the load state to obtain recovery parameters, which is helpful for verifying the performance and stability of the equipment under different load conditions, identifying potential fault points in advance and improving the system design, thereby improving the reliability and robustness of the system.
The recovery parameters refer to parameter data collected in a fault recovery test about performance, response time, stability and the like of the device or the system in a recovery process, and optionally, the fault recovery test on the switch to be tested can be achieved through an automatic test tool, such as: selenium, appium, etc.
Based on the recovery parameters, the invention performs performance test on the switch to be tested to obtain the performance parameters, is beneficial to optimizing system design, improving network architecture, enhancing fault tolerance of equipment and improving performance tuning effect, thereby realizing more efficient network operation and maintenance and ensuring long-term stable operation of the system.
The performance parameter refers to a data index about performance of a device or a system, which is collected in a performance test, and is used for evaluating conditions of aspects of throughput, response speed, resource utilization rate, performance stability and the like of the system, and optionally, the performance test of the switch to be tested can be achieved through a performance test tool, such as: JMeter, loadRunner, etc.
Further, the invention generates the test report corresponding to the switch to be tested based on the performance parameters, can provide reliable basis for decision makers, guides subsequent performance optimization work, improves system design and network architecture, improves performance efficiency and operation quality of equipment, and ensures reliability and stability of the system.
The test report refers to a structured document, records data, results and analysis collected after performance test is performed on equipment to be tested (such as an exchanger), and optionally, the test report corresponding to the exchanger to be tested is generated through a report generating tool, for example: pytest, selenium, JUnit, testNG, etc.
Firstly, the invention builds a closed local area network corresponding to the switch to be tested by acquiring the switch to be tested, can better simulate the situation under the real working environment, effectively eliminates external interference factors, is convenient for accurately evaluating the performance, stability and recovery capability of the switch, thereby providing powerful support for system optimization and problem investigation, simultaneously, the invention analyzes the network topology structure corresponding to the network connection equipment based on the equipment performance index, can timely find potential performance bottleneck, network congestion point or fault node, further adopts targeted optimization and adjustment measures, improves the availability, stability and efficiency of the network, and detects the distribution flow of ports in the closed local area network in real time based on the link weight, the invention can quickly find abnormal flow or network congestion condition, and timely take measures to adjust and optimize so as to improve the utilization rate of network resources, calculates the utilization rate of bandwidth corresponding to the bandwidth fine granularity by inquiring the bandwidth fine granularity corresponding to the path bandwidth, can better optimize network configuration and resource allocation, the invention can improve the performance and efficiency of the whole network, effectively prevent the occurrence of network congestion and bottleneck problems, thereby reducing the risk of network faults, and further, by identifying the load state in the load environment, the invention can timely know the running condition of the system or equipment, effectively predict the possible problems and take corresponding measures, thereby reducing the fault rate. Therefore, the switch reliability test method and system provided by the invention can improve the stability of switch data transmission.
Fig. 2 is a functional block diagram of a switch reliability test system according to an embodiment of the present invention.
The switch reliability test system 200 of the present invention may be installed in an electronic device. Depending on the functions implemented, the switch reliability test system 200 may include an index identification module 201, a link weight calculation module 202, a path bandwidth calculation module 203, an environment determination module 204, and a report generation module 205. The module of the invention, which may also be referred to as a unit, refers to a series of computer program segments, which are stored in the memory of the electronic device, capable of being executed by the processor of the electronic device and of performing a fixed function.
In the present embodiment, the functions concerning the respective modules/units are as follows:
The index identification module 201 is configured to obtain a switch to be tested, construct a closed local area network corresponding to the switch to be tested, query network connection equipment in the closed local area network, and identify an equipment performance index in the network connection equipment;
The link weight calculation module 202 is configured to analyze a network topology structure corresponding to the network connection device based on the device performance index, identify a topology link in the network topology structure, and calculate a link weight corresponding to the topology link;
The path bandwidth calculation module 203 is configured to detect, in real time, a distributed flow of a port in the closed lan based on the link weight, determine a flow path corresponding to the distributed flow, query a transmission delay in the flow path, determine an information dimension corresponding to the switch to be tested based on the transmission delay, identify a dimension factor in the information dimension, and calculate, based on the dimension factor, a path bandwidth corresponding to the flow path;
The environment determining module 204 is configured to query a bandwidth fine granularity corresponding to the path bandwidth, calculate a bandwidth utilization rate corresponding to the bandwidth fine granularity, and determine a load environment corresponding to the switch to be tested based on the bandwidth utilization rate;
The report generating module 205 is configured to identify a load state in the load environment, perform a fault recovery test on the switch to be tested based on the load state, obtain a recovery parameter, perform a performance test on the switch to be tested based on the recovery parameter, obtain a performance parameter, and generate a test report corresponding to the switch to be tested based on the performance parameter.
In detail, each module in the switch reliability test system 200 in the embodiment of the present invention adopts the same technical means as the switch reliability test method in the drawings, and can produce the same technical effects, which are not described herein.
Fig. 3 is a schematic structural diagram of an electronic device for implementing the switch reliability test method according to the present invention.
The electronic device may comprise a processor 30, a memory 31, a communication bus 32 and a communication interface 33, and may further comprise a computer program stored in the memory 31 and executable on the processor 30.
The processor 30 may be formed by an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be formed by a plurality of integrated circuits packaged with the same function or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 30 is a Control Unit (Control Unit) of the electronic device, connects various components of the entire electronic device using various interfaces and lines, and executes various functions of the electronic device and processes data by running or executing programs or modules stored in the memory 31 and calling data stored in the memory 31.
The memory 31 includes at least one type of readable storage medium including flash memory, a removable hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 31 may in some embodiments be an internal storage unit of the electronic device, such as a mobile hard disk of the electronic device. The memory 31 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the electronic device. Further, the memory 31 may also include both an internal storage unit and an external storage device of the electronic device. The memory 31 may be used not only for storing application software installed in an electronic device and various types of data, such as codes of a database-configured connection program, but also for temporarily storing data that has been output or is to be output.
The communication bus 32 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus, or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 31 and at least one processor 30 or the like.
The communication interface 33 is used for communication between the electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), or alternatively a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device and for displaying a visual user interface.
Fig. 3 shows only an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 3 is not limiting of the electronic device and may include fewer or more components than shown, or may combine certain components, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power source (such as a battery) for supplying power to the respective components, and preferably, the power source may be logically connected to the at least one processor 30 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device may further include various sensors, bluetooth modules, wi-Fi modules, etc., which are not described herein.
The database-configured connection program stored in the memory 31 in the electronic device is a combination of a plurality of computer programs, which, when run in the processor 30, can implement:
Acquiring a switch to be tested, constructing a closed local area network corresponding to the switch to be tested, inquiring network connection equipment in the closed local area network, and identifying equipment performance indexes in the network connection equipment;
Based on the equipment performance index, analyzing a network topology structure corresponding to the network connection equipment, identifying a topology link in the network topology structure, and calculating a link weight corresponding to the topology link;
Detecting the distributed flow of a port in the closed local area network in real time based on the link weight, determining a flow path corresponding to the distributed flow, inquiring the transmission delay in the flow path, determining the information dimension corresponding to the switch to be tested based on the transmission delay, identifying the dimension factor in the information dimension, and calculating the path bandwidth corresponding to the flow path based on the dimension factor;
Inquiring bandwidth fine granularity corresponding to the path bandwidth, calculating bandwidth utilization rate corresponding to the bandwidth fine granularity, and determining a load environment corresponding to the switch to be tested based on the bandwidth utilization rate;
And identifying a load state in the load environment, performing fault recovery test on the switch to be tested based on the load state to obtain recovery parameters, performing performance test on the switch to be tested based on the recovery parameters to obtain performance parameters, and generating a test report corresponding to the switch to be tested based on the performance parameters.
In particular, the specific implementation method of the processor 30 on the computer program may refer to the description of the relevant steps in the corresponding embodiment of fig. 1, which is not repeated herein.
Further, the electronic device integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a non-volatile computer readable storage medium. The storage medium may be volatile or nonvolatile. For example, the computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
The present invention also provides a storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
Acquiring a switch to be tested, constructing a closed local area network corresponding to the switch to be tested, inquiring network connection equipment in the closed local area network, and identifying equipment performance indexes in the network connection equipment;
Based on the equipment performance index, analyzing a network topology structure corresponding to the network connection equipment, identifying a topology link in the network topology structure, and calculating a link weight corresponding to the topology link;
Detecting the distributed flow of a port in the closed local area network in real time based on the link weight, determining a flow path corresponding to the distributed flow, inquiring the transmission delay in the flow path, determining the information dimension corresponding to the switch to be tested based on the transmission delay, identifying the dimension factor in the information dimension, and calculating the path bandwidth corresponding to the flow path based on the dimension factor;
Inquiring bandwidth fine granularity corresponding to the path bandwidth, calculating bandwidth utilization rate corresponding to the bandwidth fine granularity, and determining a load environment corresponding to the switch to be tested based on the bandwidth utilization rate;
And identifying a load state in the load environment, performing fault recovery test on the switch to be tested based on the load state to obtain recovery parameters, performing performance test on the switch to be tested based on the recovery parameters to obtain performance parameters, and generating a test report corresponding to the switch to be tested based on the performance parameters.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (6)
1. A method for testing reliability of a switch, the method comprising:
Acquiring a switch to be tested, constructing a closed local area network corresponding to the switch to be tested, inquiring network connection equipment in the closed local area network, and identifying equipment performance indexes in the network connection equipment;
Based on the equipment performance index, analyzing a network topology structure corresponding to the network connection equipment, identifying a topology link in the network topology structure, and calculating a link weight corresponding to the topology link;
the calculating the link weight corresponding to the topological link comprises the following steps:
calculating the link weight corresponding to the topological link by using the following formula:
,
Wherein, Indicating the link weight corresponding to the topological link,Representing the index of the links in the topology,Representing the total number of links in the topology,Represent the firstThe bandwidth of the topology link is striped,Represent the firstThe delay of the topology link is striped,Represent the firstPacket loss rate of the topology link is stripped,Represent the firstThe reliability of the topological links is stripped,Represent the firstThe standardized packet loss rate of the topological link is obtained;
based on the link weight, detecting the distributed flow of the port in the closed local area network in real time, and determining a flow path corresponding to the distributed flow;
The real-time detection of the distributed traffic of the port in the closed local area network based on the link weight comprises the following steps:
Identifying weight real-time data corresponding to the link weight, and analyzing a source port and a destination port corresponding to the weight real-time data in the closed local area network;
Inquiring a port link between the source port and the destination port, and detecting the inbound traffic and the outbound traffic in the port link in real time;
Determining a distributed flow of ports in the closed local area network based on the inbound flow and the outbound flow;
Inquiring the transmission delay in the flow path, and determining the information dimension corresponding to the switch to be tested based on the transmission delay;
the determining, based on the transmission delay, the information dimension corresponding to the switch to be tested includes:
acquiring delay data corresponding to the transmission delay, and identifying a transmission time stamp in the delay data;
Calculating a delay statistic value between ports in the switch to be tested based on the transmission time stamp;
determining a main factor influencing the transmission delay based on the delay statistic;
determining the information dimension corresponding to the switch to be tested based on the main factors;
identifying a dimension factor in the information dimension, and calculating a path bandwidth corresponding to the traffic path based on the dimension factor;
the calculating the path bandwidth corresponding to the traffic path based on the dimension factor comprises the following steps:
Calculating the path bandwidth corresponding to the flow path by using the following formula:
,
Wherein, Representing the path bandwidth corresponding to the traffic path,Refers to the path length, which represents the distance of the flow path,Refers to a bandwidth factor, representing the bandwidth factor available on the traffic path,Is a data transmission rate, representing the rate at which data is transmitted over the traffic path,Representing the node index to which the traffic path corresponds,Representing the total number of nodes to which the traffic path corresponds,Representing a probability density function corresponding to the flow path,Representing a small increment of the corresponding path length of the traffic path,Represent the firstThe bandwidth factor at the individual nodes is a function of,Represent the firstData transmission rate at the individual nodes;
Inquiring bandwidth fine granularity corresponding to the path bandwidth, calculating bandwidth utilization rate corresponding to the bandwidth fine granularity, and determining a load environment corresponding to the switch to be tested based on the bandwidth utilization rate;
And identifying a load state in the load environment, performing fault recovery test on the switch to be tested based on the load state to obtain recovery parameters, performing performance test on the switch to be tested based on the recovery parameters to obtain performance parameters, and generating a test report corresponding to the switch to be tested based on the performance parameters.
2. The switch reliability test method of claim 1, wherein said identifying device performance metrics in the network connection device comprises:
acquiring an original data packet in the network connection equipment;
performing flow analysis on the original data packet to obtain flow analysis data;
Inquiring the running state of the equipment corresponding to the network connection equipment in real time based on the flow analysis data;
and carrying out link performance test on the running state of the equipment to obtain equipment performance indexes corresponding to the network connection equipment.
3. The method for testing the reliability of the switch according to claim 1, wherein the analyzing the network topology corresponding to the network connection device based on the device performance index comprises:
identifying performance index parameters in the equipment performance index, and converting the performance index parameters into performance data in a unified format;
inquiring network links between devices in the network connection device based on the performance data;
And analyzing a network topology structure corresponding to the network connection equipment based on the network link.
4. The switch reliability test method of claim 1, wherein said calculating the bandwidth utilization corresponding to the bandwidth fine granularity comprises:
calculating the bandwidth utilization rate corresponding to the bandwidth fine granularity by using the following formula:
,
Wherein, Represents the bandwidth utilization corresponding to the bandwidth fine granularity,Representing a sub-divided bandwidth index corresponding to the bandwidth fine granularity,Representing the number of sub-divided bandwidths corresponding to the bandwidth fine granularity,Represent the firstThe bandwidth of each of the sub-divisions,Represent the firstThe amount of data transmission corresponding to the individual sub-divided bandwidths,Representing the total bandwidth corresponding to the bandwidth fine granularity.
5. The switch reliability testing method according to claim 1, wherein the determining, based on the bandwidth utilization, a load environment corresponding to the switch to be tested includes:
recording bandwidth utilization rate data of a key time period by using a preset monitoring device;
carrying out fluctuation analysis on the bandwidth utilization rate data to obtain fluctuation data;
Extracting a load factor in the fluctuation data;
and carrying out environment simulation on the switch to be tested based on the load factor to obtain a load environment.
6. A switch reliability test system for performing the switch reliability test method according to any of claims 1-5, said system comprising:
the system comprises an index identification module, a network connection module and a network connection module, wherein the index identification module is used for acquiring a switch to be tested, constructing a closed local area network corresponding to the switch to be tested, inquiring network connection equipment in the closed local area network, and identifying equipment performance indexes in the network connection equipment;
The link weight calculation module is used for analyzing a network topology structure corresponding to the network connection equipment based on the equipment performance index, identifying a topology link in the network topology structure and calculating a link weight corresponding to the topology link;
the calculating the link weight corresponding to the topological link comprises the following steps:
calculating the link weight corresponding to the topological link by using the following formula:
,
Wherein, Indicating the link weight corresponding to the topological link,Representing the index of the links in the topology,Representing the total number of links in the topology,Represent the firstThe bandwidth of the topology link is striped,Represent the firstThe delay of the topology link is striped,Represent the firstPacket loss rate of the topology link is stripped,Represent the firstThe reliability of the topological links is stripped,Represent the firstThe standardized packet loss rate of the topological link is obtained;
The path bandwidth calculation module is used for detecting the distributed flow of the port in the closed local area network in real time based on the link weight, determining a flow path corresponding to the distributed flow, inquiring the transmission delay in the flow path, determining the information dimension corresponding to the switch to be tested based on the transmission delay, identifying the dimension factor in the information dimension, and calculating the path bandwidth corresponding to the flow path based on the dimension factor;
The real-time detection of the distributed traffic of the port in the closed local area network based on the link weight comprises the following steps:
Identifying weight real-time data corresponding to the link weight, and analyzing a source port and a destination port corresponding to the weight real-time data in the closed local area network;
Inquiring a port link between the source port and the destination port, and detecting the inbound traffic and the outbound traffic in the port link in real time;
Determining a distributed flow of ports in the closed local area network based on the inbound flow and the outbound flow;
the determining, based on the transmission delay, the information dimension corresponding to the switch to be tested includes:
acquiring delay data corresponding to the transmission delay, and identifying a transmission time stamp in the delay data;
Calculating a delay statistic value between ports in the switch to be tested based on the transmission time stamp;
determining a main factor influencing the transmission delay based on the delay statistic;
determining the information dimension corresponding to the switch to be tested based on the main factors;
the calculating the path bandwidth corresponding to the traffic path based on the dimension factor comprises the following steps:
Calculating the path bandwidth corresponding to the flow path by using the following formula:
,
Wherein, Representing the path bandwidth corresponding to the traffic path,Refers to the path length, which represents the distance of the flow path,Refers to a bandwidth factor, representing the bandwidth factor available on the traffic path,Is a data transmission rate, representing the rate at which data is transmitted over the traffic path,Representing the node index to which the traffic path corresponds,Representing the total number of nodes to which the traffic path corresponds,Representing a probability density function corresponding to the flow path,Representing a small increment of the corresponding path length of the traffic path,Represent the firstThe bandwidth factor at the individual nodes is a function of,Represent the firstData transmission rate at the individual nodes;
The environment determining module is used for inquiring the bandwidth fine granularity corresponding to the path bandwidth, calculating the bandwidth utilization rate corresponding to the bandwidth fine granularity, and determining the load environment corresponding to the switch to be tested based on the bandwidth utilization rate;
The report generating module is used for identifying the load state in the load environment, carrying out fault recovery test on the switch to be tested based on the load state to obtain recovery parameters, carrying out performance test on the switch to be tested based on the recovery parameters to obtain performance parameters, and generating a test report corresponding to the switch to be tested based on the performance parameters.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411003423.9A CN118573608B (en) | 2024-07-25 | 2024-07-25 | Switch reliability test method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411003423.9A CN118573608B (en) | 2024-07-25 | 2024-07-25 | Switch reliability test method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118573608A CN118573608A (en) | 2024-08-30 |
CN118573608B true CN118573608B (en) | 2024-10-18 |
Family
ID=92469439
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411003423.9A Active CN118573608B (en) | 2024-07-25 | 2024-07-25 | Switch reliability test method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118573608B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103701655A (en) * | 2014-01-13 | 2014-04-02 | 加弘科技咨询(上海)有限公司 | Fault self-diagnosis and self-recovery method and system for interchanger |
CN115967644A (en) * | 2022-12-05 | 2023-04-14 | 国家工业信息安全发展研究中心 | Switch security testing method facing time sensitive network |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7430164B2 (en) * | 1998-05-04 | 2008-09-30 | Hewlett-Packard Development Company, L.P. | Path recovery on failure in load balancing switch protocols |
CN112118158B (en) * | 2020-09-23 | 2022-11-08 | 苏州浪潮智能科技有限公司 | Test method, test device, test equipment and storage medium of switch |
-
2024
- 2024-07-25 CN CN202411003423.9A patent/CN118573608B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103701655A (en) * | 2014-01-13 | 2014-04-02 | 加弘科技咨询(上海)有限公司 | Fault self-diagnosis and self-recovery method and system for interchanger |
CN115967644A (en) * | 2022-12-05 | 2023-04-14 | 国家工业信息安全发展研究中心 | Switch security testing method facing time sensitive network |
Also Published As
Publication number | Publication date |
---|---|
CN118573608A (en) | 2024-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Huo et al. | A SDN‐based fine‐grained measurement and modeling approach to vehicular communication network traffic | |
US11425049B2 (en) | Selectively monitoring a network of network function chains based on probability of service level agreement violation | |
CN104584483B (en) | Method and apparatus for automatically determining the reason for service quality degrades | |
EP2894813A1 (en) | Technique for creating a knowledge base for alarm management in a communications network | |
JP6564799B2 (en) | Threshold determination device, threshold determination method and program | |
US8924787B2 (en) | Network debugging | |
CN107872457B (en) | Method and system for network operation based on network flow prediction | |
Cao et al. | {ENVI}: elastic resource flexing for network function virtualization | |
JPWO2016017208A1 (en) | Monitoring system, monitoring device, and inspection device | |
Xu et al. | Lightweight and adaptive service api performance monitoring in highly dynamic cloud environment | |
CN116723136B (en) | Network data detection method applying FCM clustering algorithm | |
CN118509336B (en) | Communication network optimization method, device and equipment considering power consumption | |
Vizarreta et al. | Mining software repositories for predictive modelling of defects in sdn controller | |
CN117560701A (en) | Remote management method and system for wireless router | |
Guo et al. | FullSight: A feasible intelligent and collaborative framework for service function chains failure detection | |
Jurkiewicz | flow-models: A framework for analysis and modeling of IP network flows | |
Zhang et al. | Probabilistic analysis of network availability | |
CN118573608B (en) | Switch reliability test method and system | |
CN104363142A (en) | Automatic data center network performance bottleneck analysis method | |
CN114676157A (en) | Internet access quality monitoring analysis method, system, medium, and program | |
Tajiri et al. | Optimizing edge-cloud cooperation for machine learning accuracy considering transmission latency and bandwidth congestion | |
Devi et al. | Classification of network traffic on isp link and analysis of network bandwidth during covid-19 | |
Fu et al. | A learning-based service function chain early fault diagnosis mechanism based on in-band network telemetry | |
Kilinçer et al. | Automatic fault detection with Bayes method in university campus network | |
CN115348147A (en) | Fault analysis method, apparatus, device, storage medium and program product |
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 |