AIoT-oriented high-speed network switch testing method

CN118890294APending Publication Date: 2024-11-01CHINA ACADEMY OF INFORMATION & COMM
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411011502.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

[0005]针对现有技术的不足,本发明提供了一种面向AIoT的高速网络交换机测试方法,解决了上述背景技术中提出的现有的测试方法侧重于交换机的常规性能测试,如吞吐量、延迟等,这是其基本的测试范畴,然而,这种常规测试方法忽视了AIoT场景的特殊需求,在AIoT场景下,交换机不仅需要处理大量的数据流量,还需要应对复杂多变的设备连接和智能化任务处理,这种特殊性导致传统测试方法无法全面评估交换机在AIoT环境中的实际性能,形成了技术上的盲点的问题

Benefits of technology

[0030] 1. Taking into account the characteristics of the AIoT scenario, in the AIoT environment, the number of device connections is huge, the data transmission speed is fast, and the processing tasks are complex. The test method of the present invention is specially designed for these characteristics, which means that it can more accurately simulate and evaluate the performance of the switch in a real AIoT environment.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention discloses an AIoT-oriented high-speed network switch testing method, which relates to the technical field of switch testing, and comprises the following steps: connector information writing and reading capability testing: establishing a testing environment according to connector type configuration, and reading connector information by a switch to obtain a connector management interface, manufacturer information, a connector model and receiving and transmitting light power; checking the state of the connector from the switch to obtain a corresponding port LinkUP of the switch; connector information is read from the test instrument, and a connector management interface, manufacturer information, a connector model, module working voltage and module working power are obtained. According to the AIoT-oriented high-speed network switch test method, the performance of the switch in a real AIoT environment can be simulated and evaluated more accurately, and a test scheme which is universal, flexible in design and configurable is provided so as to adapt to continuously emerging new equipment and application scenes in an AIoT scene, and it is ensured that the test method can be continuously updated and perfected along with technology development.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of switch testing, and in particular to a high-speed network switch testing method for AIoT. Background Art

[0002] With the rapid development of artificial intelligence (AI) and Internet of Things (IoT) technologies, network devices are facing increasing demands for data transmission and processing. Especially in AIoT scenarios, a large number of device connections, high-speed data transmission, and real-time data processing requirements have posed unprecedented challenges to the performance of network devices. As a new generation of high-performance network equipment, high-speed network switches have the characteristics of large bandwidth, low latency, and high reliability, making them a key infrastructure to support AIoT scenarios. However, how to ensure that high-speed network switches operate stably and efficiently in the complex and changeable AIoT environment has become a problem that needs to be solved urgently. Therefore, the test method for high-speed network switches is particularly important.

[0003] Existing switch testing methods mainly focus on functional verification and basic performance testing, and lack in-depth consideration of the specific needs of AIoT scenarios. For example, traditional testing methods often ignore the performance of switches under extreme conditions such as high load and multiple concurrent connections. In addition, with the integration of AI technology, the performance of switches when processing intelligent tasks has also become one of the important indicators for evaluating their performance.

[0004] Therefore, in view of this, the existing structure and deficiencies are studied and improved, and a high-speed network switch testing method for AIoT is proposed. Summary of the invention

[0005] In view of the shortcomings of the prior art, the present invention provides a high-speed network switch testing method for AIoT, which solves the problem that the existing testing method proposed in the above background technology focuses on conventional performance testing of switches, such as throughput, latency, etc., which is its basic testing scope. However, this conventional testing method ignores the special needs of AIoT scenarios. In AIoT scenarios, switches not only need to process a large amount of data traffic, but also need to deal with complex and changeable device connections and intelligent task processing. This particularity makes it impossible for traditional testing methods to comprehensively evaluate the actual performance of switches in AIoT environments, forming a technical blind spot problem.

[0006] To achieve the above objectives, the present invention is implemented through the following technical solutions: A high-speed network switch testing method for AIoT, comprising:

[0007] Connector information writing and reading capability test: Establish a test environment according to the connector type configuration, and the switch reads the connector information to obtain the connector management interface, manufacturer information, connector model, and transmit and receive optical power; check the connector status from the switch to obtain the LinkUP of the corresponding switch port; read the connector information from the test instrument to obtain the connector management interface, manufacturer information, connector model, module operating voltage, and power;

[0008] PRBS forwarding capability test of the connector: The environment is set up according to the test topology required by the test. The tester port is set to send PRBS code stream. The PRBS statistics are checked at the receiving port of the test instrument. The receiving port receives the PRBS code stream, the PRBS type is correct, and the PRBSerror is less than 9.2x10–13; the tester port injects PRBSerror, the receiving port checks PRBS statistics, the receiving port receives PRBS code stream and PRBS error, and the number of errors is equal to the number of injections; the tester port injects reverse PRBS, the receiving port checks PRBS statistics, and the receiving port receives the reverse PRBS code stream;

[0009] Post-correction bit error rate test: Select the switch or connector test topology to build the environment according to the test requirements. Set the switch and test instrument ports to single 112G channel mode. For connector testing, directly set the single-channel 112G mode on the test instrument port. Clear the statistics of the tester port. Configure the tester traffic and start sending bidirectional traffic. Wait for 5 minutes and check the pre-correction bit error rate and the proportion of signal errors that cannot be corrected after correction on the tester port.

[0010] Switch frequency deviation tolerance test: Select the switch test topology according to the test requirements to build the environment, set the switch and test instrument ports to single 112G channel mode, configure a fixed length frame of 64Bytes on the tester, send 100% traffic on port 1, check that there is no packet loss on the tester receiving port, set the maximum positive frequency deviation, send traffic again, check that there is no packet loss on the tester receiving port, set the maximum negative frequency deviation, send traffic again, check that there is no packet loss on the tester receiving port;

[0011] The switch layer 2 and layer 3 forwarding function support test: select the switch test topology according to the test requirements to build the environment, configure the switch to layer 2 forwarding mode, set the test instrument port to the same network segment, configure bidirectional layer 2 traffic between the two ports, and the two ports of the test instrument send traffic to each other. The expected result is that the switch layer 2 traffic forwarding is normal, there is no packet loss, and the switch layer 2 forwarding function is normal. The test instrument port is set to the same network segment as the switch interconnection port, and the gateway points to the corresponding switch port. Bidirectional layer 3 traffic is configured between the two ports. The two ports of the test instrument send traffic to each other. The expected result is that the switch layer 3 traffic forwarding is normal, there is no packet loss, and the switch layer 3 forwarding function is normal;

[0012] Error frame processing capability test: Select the switch test topology according to the test requirements to build the environment, configure the switch to Layer 2 forwarding mode, configure the test instrument to have normal Layer 2 forwarding services, send traffic to confirm that forwarding is normal, set the test instrument, insert error frames in a certain proportion into the normal data stream, including: CRC error, overshort frame, overlong frame abnormal frames and send them to the device under test, check the instrument receiving port, and get the expected results;

[0013] Behavior test of switch DUT in head-of-line blocking scenario: Select switch test topology to build environment according to test requirements. All ports of the switch are configured in Layer 2 forwarding mode. Test 8 ports, divided into two groups, four ports in each group. Instrument port 1 sends 50% of the traffic, destination port 3, and port 1 sends 50% of the traffic, destination port 4. Instrument port 2 sends 100% rate, destination port 4. Test the packet loss of traffic from port 1 to port 3. Instrument port 5 sends 50% of the traffic, destination port 7, and port 5 sends 50 % of the traffic, destination port 8, instrument port 6 sends 100% rate, destination port 8, test the packet loss of the traffic from port 5 to port 7, and get the expected result that the traffic from port 1 to 3 has no packet loss, and the traffic from port 5 to 7 has no packet loss. All ports are moved from X to X+1, and tested again. The expected result is that the traffic from port X to X+2 has no packet loss, and the traffic from port X+4 to X+6 has no packet loss. The last group of ports is combined with 1-7 and N. Test again, and the expected result is that the traffic from port X to 2 has no packet loss, and the traffic from port 4 to 6 has no packet loss.

[0014] Switch BGP routing basic function test: Select the switch test topology to build the environment according to the test requirements, configure the switch to Layer 3 forwarding mode, enable the BGP routing protocol, establish E-BGP neighbor relationships between the two ports 1 and 2 and the two ports of the tester, and the expected result is that the switch and the tester port BGP routing neighbors are in the established state. The two ports of the tester publish a certain number of routes to the switch, check the routing information on the switch, and the expected result is that the switch can check the received routing entries and they are consistent with the content published by the instrument. The two ports of the tester establish bidirectional traffic, with the source address and destination address being the addresses of the published routing entries, send traffic, check the statistics of sending and receiving packets, and the expected result is that there is no packet loss in both directions of traffic;

[0015] Switch VXLAN basic function test: Select the switch test topology according to the test requirements to build the environment, enable the VXLAN function in the switch configuration, connect switch port 1 to tester port 1 as the VXLAN host side, connect switch port 2 to tester port 2, create a VXLAN tunnel with tester port 2, tester port 2 simulates the VXLAN gateway and host, send bidirectional traffic between tester ports 1 and 2, perform traffic statistics and message inspection, and obtain the expected result that the bidirectional traffic is consistent with each other without packet loss;

[0016] Switch EVPN / VXLAN basic function test: Select the switch test topology according to the test requirements to build the environment, enable the EVPN and VXLAN functions in the switch configuration, connect switch port 1 to tester port 1 as the VXLAN host side, connect switch port 2 to tester port 2, create an EVPN neighbor with tester port 2, and the expected result is that the switch and the tester EVPN neighbor are in the established state, and the tester port 2 publishes EVPN and VXLAN routing information. Check on the switch that EVPN and VXLAN information can be received. The expected result is that the switch can receive EVPN routing information and successfully create a VXLAN tunnel. Bidirectional traffic is sent between tester ports 1 and 2, and traffic statistics and message inspection are performed. The expected result is that the bidirectional traffic is sent and received consistently without packet loss.

[0017] Switch Layer 2 and Layer 3 forwarding performance test: Select the switch test topology according to the test requirements to build the environment. The switch is configured in Layer 2 forwarding mode. The test instrument is configured to run the RFC2544 Layer 2 throughput test. The frame lengths are: 64, 128, 256, 512, 1024, 1518 bytes. More bytes are added as needed for testing. It is recommended to test the traffic mode in one-to-one or full connection mode to obtain the switch Layer 2 throughput. The results are the switch Layer 2 forwarding throughput and Layer 2 forwarding delay. The switch is configured in Layer 3 forwarding mode. The test instrument is configured to run the RFC2544 Layer 3 throughput test. The frame lengths are: 64, 128, 256, 512, 1024, 1518 bytes. More bytes are added as needed for testing. It is recommended to test the traffic mode in one-to-one or full connection mode to obtain the switch Layer 3 throughput. The results are the switch Layer 3 forwarding throughput and Layer 3 forwarding delay.

[0018] Test the switch's maximum frame length at Layer 2 and Layer 3 line speed forwarding: Select the switch or connector test topology to build the environment according to the test requirements. The switch is configured in Layer 2 forwarding mode. The test instrument is configured to run the RFC2544 Layer 2 packet loss rate test, traversing bytes between 64 and 1518. Increase bytes as needed for testing to obtain the maximum frame length that the switch can forward at line speed. The result is the minimum frame length that the switch can forward at Layer 2 line speed. The switch is configured in Layer 3 forwarding mode. The test instrument is configured to run the RFC2544 Layer 3 packet loss rate test, traversing bytes between 64 and 1518. Increase bytes as needed for testing to obtain the maximum frame length that the switch can forward at line speed. The result is the minimum frame length that the switch can forward at Layer 2 line speed.

[0019] Cache capacity test of the switch under different conditions: select the switch test topology according to the test requirements to build the environment, tester port 1 sends 100% traffic to destination port 2, with a frame length of 64 bytes; tester port 3 sends excess traffic to destination port 2, and the maximum delay begins to increase. At the time when packet loss begins, record the number of messages sent by port 3, and the expected result is the switch 64-byte cache size: 64x8x Number of messages sent by port 2: 64-byte cache size, increase the sending frame length, repeat step 2 until the frame length B is found, and the calculated cache size is the maximum, the expected result is the switch highest efficiency cache size: Bx8x Number of messages sent by port 2: switch highest efficiency cache size, move the sending ports backward one by one, with a frame length of B bytes, port X sends 100% traffic to port X+1, port X+2 sends excess traffic to port X+1, starting from the maximum delay Starts to increase, until the time when packet loss starts, record the number of messages sent by port X+1, and get the test port cache. The expected result is the maximum port cache: Bx8x port X sends 100% of the traffic to destination port 2, and the tester 3 port sends 100% of the traffic to destination port 4. Except for ports N-1 and N, all port pairs send 100% of the traffic. Ports N-1 and port N send 1% of excess traffic to ports 2 and 3 respectively. The expected result is the cache size in the case of the first port pair, Bx8x port N and N-1 send 1% of the excess traffic: cache size, move the excess traffic destination port backward by two, such as: destination port 4, port 5, repeat step 5 until the end, and get the expected result is the cache size in the case of the maximum port pair, Bx8x port N and N-1 send 1% of the excess traffic: get the maximum cache;

[0020] Test of the maximum number of burst frames supported by the switch: 1. Select the switch test topology according to the test requirements to build the environment. When the switch has N ports, ports 1 to N-1 send burst frames to port N at the maximum port rate, and record the maximum number of burst frames without packet loss. The expected result is the number of burst frames in the many-to-1 situation. Ports 1 to N-2 send burst frames to ports N and N-1 at the maximum port rate, and record the maximum number of burst frames without packet loss. The expected result is the number of burst frames in the many-to-2 situation. The sending ports are reduced one by one, and the receiving ports are increased until ports 1 to 2 send burst frames to ports 3 to N at the maximum port rate. The number of burst frames without packet loss is recorded. The expected result is the number of burst frames in the many-to-many situation.

[0021] Furthermore, it also includes a performance test of a mixed scenario of stateful and stateless traffic on the switch: select a switch test topology according to the test requirements to build an environment, test instrument ports 1 to N-1 are sending ports, port N is a receiving port, a two-on-one scenario, port 1 sends stateless traffic, the destination port is N, port N-1 sends stateful traffic, the destination port is N, and the test results are recorded: stateless traffic bandwidth, latency, stateful traffic bandwidth, N-on-one scenario, gradually increase the number of stateless ports until the number of stateless ports is N-2, the destination port is N, port N-1 sends stateful traffic, the destination port is N, and the test results are recorded: stateless traffic bandwidth, latency, stateful traffic bandwidth, swap the stateful traffic and stateless traffic sending ports, and repeat the steps.

[0022] Furthermore, it also includes a switch BGP routing capacity test: according to the test requirements, a switch test topology is selected to build the environment, the switch is configured to a three-layer forwarding mode, the switch configuration enables the BGP routing protocol, and two ports 1 and 2 respectively establish E-BGP neighbor relationships with the two ports of the tester. The expected result is that the BGP routing neighbor relationship between the switch and the tester port is in an established state. The test instrument port 2 publishes a certain number of routes to the switch, and the number is determined by the switch performance. The routing information is checked on the switch. The expected result is that the switch can check the received routing entries and they are consistent with the content published by the instrument. The test instrument port 1 establishes traffic, and the destination address is the routing entry address published by port 2. Traffic is sent, and the statistics of sending and receiving packets are checked. The expected result is that there is no packet loss in both directions of the traffic. The maximum routing capacity of the switch is recorded, the number of routing entries published by port 2 and the number of ports participating in the test are increased, and the steps are repeated to find the maximum routing capacity of the switch.

[0023] Furthermore, it also includes a switch VXLAN performance test: 1. According to the test requirements, select a switch or connector test topology to build the environment, configure the switch to enable the VXLAN function, connect switch port 1 to tester port 1 as the VXLAN host side, connect switch port 2 to tester port 2, create a VXLAN tunnel with tester port 2, tester port 2 simulates the VXLAN gateway and host, send bidirectional traffic between tester ports 1 and 2, perform traffic statistics and message inspection, increase bidirectional traffic, find the maximum rate without packet loss, record the switch VXLAN forwarding bandwidth and delay, increase the number of ports as needed to obtain the maximum VXLAN bandwidth and delay of the switch, increase the number of VXLAN tunnels configured on port 2, repeat the steps to obtain the maximum number of VXLAN tunnels on the switch, increase the number of VXLAN hosts configured on port 1, repeat the steps to obtain the maximum number of VXLAN hosts on the switch.

[0024] Furthermore, it also includes the switch load balancing capability test: 1. According to the test requirements, select the switch test topology to build the environment, configure the switch networking, build a BGP neighbor between the LEAF switch and the instrument, and test the instrument to inject a certain number of routes into the network under test. The bidirectional traffic is normal without packet loss. Check the traffic ratio between LEAF1 and LEAF2 to SPINE1 and SPINE2. According to the test conditions, the scale of SPINE and LEAF switches can be expanded, and the load balancing ratio is tested. The number of load balancing paths is expanded by simulating the SPINE switch through the instrument, and the load balancing ratio is tested.

[0025] Furthermore, it also includes a convergence performance test under switch networking: select a switch test topology according to the test requirements to build the environment, configure the switch networking, the protocol between the switches is normal, establish two-way traffic between the ports of the test instrument, all traffic has no packet loss and can be evenly distributed to each link, clear the traffic results, send all traffic at a fixed rate, cut off the link between TOR1 and LEAF1, record the packet loss of all traffic, calculate the convergence time of the TOR to LEAF link, restore all links, clear the traffic results, send all traffic at a fixed rate, cut off one of the other links between TOR and LEAF, record the packet loss of all traffic, calculate the convergence time of the TOR to LEAF link, repeat this step, record all switching results, restore all links, clear the traffic results, send all traffic at a fixed rate, cut off the link between LEAF1 and SPINE1, record the packet loss of all traffic, calculate the convergence time of the SPINE to LEAF link, restore all links, clear the traffic results, send all traffic at a fixed rate, cut off one of the other links between LEAF and SPINE, record the packet loss of all traffic, calculate the convergence time of the SPINE to LEAF link, repeat this step, and record all switching results.

[0026] Furthermore, it also includes a working status test when an attack message is received: 1. Select the switch test topology according to the test requirements to build the environment, configure switch ports 1 and 2 as business VLANs, and port 3 is configured in the management VLAN. Ports 1 and 2 of the tester send 100% traffic in both directions to confirm that there is no packet loss. A broadcast frame of ARP request is sent from port 3 of the tester to the switch network management address, and the switch CPU utilization rate, whether there is packet loss in the business traffic between ports 1 and 2, and the business delay change are recorded. ICMP request is sent from port 3 of the tester to the switch network management address, and the switch CPU utilization rate, whether there is packet loss in the business traffic between ports 1 and 2, and the business delay change are recorded. BPDU is sent from port 3 of the tester to the switch network management address, and the switch CPU utilization rate, whether there is packet loss in the business traffic between ports 1 and 2, and the business delay change are recorded. Port 3 can be added to send other types of attack messages for testing as needed.

[0027] Furthermore, it also includes the test of the working status of the switch when it receives a half-link attack: select the switch test topology to build the environment according to the test requirements, configure switch ports 1 and 2 as business VLANs, and port 3 in the management VLAN. The tester ports 1 and 2 send 100% traffic in both directions to confirm that there is no packet loss. N TCPSYN packets are sent from port 3 of the tester to the switch management address, and the number of TCP resources is checked on the switch. At the same time, it is verified whether the host can normally access the switch through telnet / ssh, and the switch CPU occupancy, business traffic packet loss rate and latency are recorded.

[0028] Furthermore, it also includes the energy consumption test of the switch at full load forwarding: select the switch test topology to build the environment according to the test requirements, fully configure the switch with optical modules or cable connectors, configure the switch to Layer 2 or Layer 3 forwarding mode, and the tester sends traffic to the switch at 100% of the interface rate to allow the switch traffic to reach full load, and use a power meter to record the switch energy consumption.

[0029] The present invention provides a high-speed network switch testing method for AIoT, which has the following beneficial effects:

[0030] 1. Taking into account the characteristics of the AIoT scenario, in the AIoT environment, the number of device connections is huge, the data transmission speed is fast, and the processing tasks are complex. The test method of the present invention is specially designed for these characteristics, which means that it can more accurately simulate and evaluate the performance of the switch in the real AIoT environment.

[0031] 2. Considering the characteristics of the AIoT scenario, in the AIoT environment, the number of device connections is huge, the data transmission speed is fast, and the processing tasks are complex. The test method of the present invention is specially designed for these characteristics, which means that it can more accurately simulate and evaluate the performance of the switch in the real AIoT environment.

[0032] 3. Be universal and design flexible and configurable test solutions to adapt to the emergence of new devices and application scenarios in AIoT scenarios, ensuring that the test methods can be continuously updated and improved with the development of technology. DETAILED DESCRIPTION

[0033] The following examples are used to illustrate the present invention, but they are not intended to limit the scope of the present invention.

[0034] The present invention provides a technical solution: a high-speed network switch testing method for AIoT, comprising:

[0035] Connector information writing and reading capability test: Establish a test environment according to the connector type configuration. The switch reads the connector information to obtain the connector management interface, manufacturer information, connector model, and transmit and receive optical power. Check the connector status from the switch to obtain the LinkUP of the corresponding switch port. Read the connector information from the test instrument to obtain the connector management interface, manufacturer information, connector model, module operating voltage, and power. At this stage, the connector and the switch need to be fully adapted. The switch host side uses the connector information to optimize the connector configuration to ensure that the high-level protocol works normally.

[0036] PRBS forwarding capability test of the connector: The environment is set up according to the test topology required by the test. The tester port is set to send PRBS code stream. The PRBS statistics are checked at the receiving port of the test instrument. The receiving port receives the PRBS code stream, the PRBS type is correct, and the PRBSerror is less than 9.2x10–13; the tester port injects PRBSerror, the receiving port checks PRBS statistics, the receiving port receives PRBS code stream and PRBS error, and the number of errors is equal to the number of injections; the tester port injects reverse PRBS, the receiving port checks PRBS statistics, and the receiving port receives reverse PRBS code stream. The test environment needs to be configured according to the connector type. If the connector is an optical module and the interface is LC, a single port is tested for self-looping; if the connector is an optical module and the interface is MPO, the fan-out line is used for self-looping, or the two interfaces of the switch are interconnected for testing, and the test instrument is the same. If the test module is a DAC or AOC cable, the two ports of the switch are used for interconnection testing, and the test instrument is the same;

[0037] Post-correction bit error rate test: Select the switch or connector test topology to build the environment according to the test requirements. Set the switch and test instrument ports to single 112G channel mode. For connector testing, directly set the single-channel 112G mode on the test instrument port, clear the statistics of the tester port, configure the tester traffic, start sending bidirectional traffic, wait for 5 minutes, check the pre-correction bit error rate on the tester port, and the proportion of signal errors that cannot be corrected after correction. The test environment needs to be configured according to the connector type. If the connector is an optical module and the interface is LC, a single port is tested for self-loop; if the connector is an optical module and the interface is MPO, the fan-out line is used for self-loop, or the two interfaces of the switch are interconnected for testing. The same is true for the test instrument. If the test module is a DAC or AOC cable, use the two ports of the switch to interconnect for testing. The same is true for the test instrument. 800GFEC refers to 802.3ck. It is more important for interfaces with channel rates increased from 56G to 112G and needs to be tested.

[0038] Switch frequency deviation tolerance test: Select the switch test topology according to the test requirements to build the environment, set the switch and test instrument ports to single 112G channel mode, configure a fixed length frame of 64Bytes on the tester, send 100% traffic on port 1, check that there is no packet loss on the tester receiving port, set the maximum positive frequency deviation, send traffic again, check that there is no packet loss on the tester receiving port, set the maximum negative frequency deviation, send traffic again, check that there is no packet loss on the tester receiving port. Frequency deviation will cause rate deviation of upper-layer traffic. A frequency deviation of positive or negative 100ppm causes a traffic change of 80M per second on the 800G interface. This has a relatively large impact on the switch's cache processing and traffic scheduling. The frequency deviation test can provide an in-depth understanding of the impact of frequency deviation on switch traffic forwarding.

[0039] The switch layer 2 and layer 3 forwarding function support test: select the switch test topology to build the environment according to the test requirements, configure the switch to layer 2 forwarding mode, set the test instrument port to the same network segment, configure bidirectional layer 2 traffic between the two ports, and the two ports of the test instrument send traffic to each other. The expected result is that the switch layer 2 traffic forwarding is normal, there is no packet loss, and the switch layer 2 forwarding function is normal. The test instrument port is set to the same network segment as the switch interconnection port, and the gateway points to the corresponding switch port. Bidirectional layer 3 traffic is configured between the two ports. The two ports of the test instrument send traffic to each other. The expected result is that the switch layer 3 traffic forwarding is normal, there is no packet loss, and the switch layer 3 forwarding function is normal. According to the test requirements, two or more switch ports can be selected for testing;

[0040] Error frame processing capability test: Select the switch test topology to build the environment according to the test requirements, configure the switch to Layer 2 forwarding mode, configure the test instrument to have normal Layer 2 forwarding services, send traffic to confirm that forwarding is normal, set up the test instrument, insert error frames in a certain proportion into the normal data stream, including: CRC error, overshort frame, overlong frame abnormal frames and send them to the device under test, check the instrument receiving port, and get the expected results. According to the test requirements, select two or more switch ports for testing;

[0041] Behavior test of switch DUT in head-of-line blocking scenario: Select switch test topology to build environment according to test requirements. All ports of the switch are configured as Layer 2 forwarding mode. Test 8 ports, divided into two groups, four ports in each group. Instrument port 1 sends 50% of the traffic, destination port 3, and port 1 sends 50% of the traffic, destination port 4. Instrument port 2 sends 100% rate, destination port 4. Test the packet loss of traffic from port 1 to port 3. Instrument port 5 sends 50% of the traffic, destination port 7. At the same time, port 5 sends 50% of the traffic, destination port 8, instrument port 6 sends Send 100% rate, destination port 8, test the packet loss of traffic from port 5 to port 7, and get the expected result that there is no packet loss for traffic from port 1 to 3, and no packet loss for traffic from port 5 to 7. Move all ports from X to X+1, test again, and get the expected result that there is no packet loss for traffic from port X to X+2, and no packet loss for traffic from port X+4 to X+6. The last group of ports is combined with 1-7 and N, and tested again, and the expected result is that there is no packet loss for traffic from port X to 2, and no packet loss for traffic from port 4 to 6. HOLB is an extension of congestion control and plays an important role in the verification of new switching chips. Traverse more ports at the same time to maintain the consistency of high-density switch port operation;

[0042] Switch BGP routing basic function test: Select the switch test topology to build the environment according to the test requirements, configure the switch to Layer 3 forwarding mode, enable the BGP routing protocol, establish E-BGP neighbor relationships between the two ports 1 and 2 and the two ports of the tester, and the expected result is that the switch and the tester port BGP routing neighbors are in the established state. The two ports of the tester publish a certain number of routes to the switch, and check the routing information on the switch. The expected result is that the switch can check the received routing entries and they are consistent with the content published by the instrument. The two ports of the tester establish bidirectional traffic, with the source address and destination address being the addresses of the published routing entries, send traffic, and check the statistics of sending and receiving packets. The expected result is that there is no packet loss in both directions of traffic. BGP is the main routing protocol for the data center network.

[0043] Switch VXLAN basic function test: Select the switch test topology to build the environment according to the test requirements, enable the VXLAN function in the switch configuration, connect switch port 1 to tester port 1 as the VXLAN host side, connect switch port 2 to tester port 2, create a VXLAN tunnel with tester port 2, tester port 2 simulates the VXLAN gateway and host, send bidirectional traffic between tester ports 1 and 2, perform traffic statistics and message inspection, and the expected result is that the bidirectional traffic is consistent with each other without packet loss. The 800G port switch will be used for DCI network construction, and VXLAN is a basic requirement;

[0044] Switch EVPN / VXLAN basic function test: Select the switch test topology according to the test requirements to build the environment, enable the EVPN and VXLAN functions in the switch configuration, connect switch port 1 to tester port 1 as the VXLAN host side, connect switch port 2 to tester port 2, create an EVPN neighbor with tester port 2, and the expected result is that the switch and the tester EVPN neighbor are in the established state, and the tester port 2 publishes EVPN and VXLAN routing information. Check on the switch that EVPN and VXLAN information can be received. The expected result is that the switch can receive EVPN routing information and successfully create a VXLAN tunnel. Bidirectional traffic is sent between tester ports 1 and 2, and traffic statistics and message inspection are performed. The expected result is that the bidirectional traffic is sent and received consistently without packet loss. The 800G port switch will be used for DCI network construction, and VXLAN / EVPN is a basic requirement.

[0045] Layer 2 and Layer 3 forwarding performance test of the switch: select the switch test topology to build the environment according to the test requirements, configure the switch to Layer 2 forwarding mode, configure the test instrument to run the RFC2544 Layer 2 throughput test, and traverse the frame length: 64, 128, 256, 512, 1024, 1518 bytes. Add more bytes for testing as needed. It is recommended to test the traffic mode as one-to-one or full connection mode to obtain the switch Layer 2 throughput, the results of the switch Layer 2 forwarding throughput and Layer 2 forwarding delay. The switch is configured to Layer 3 forwarding mode, and the test instrument is configured to run the RFC2544 Layer 3 throughput test. The frame length is 64, 128, 256, 512, 1024, 1518 bytes. Add more bytes for testing as needed. It is recommended to test the traffic mode as one-to-one or full connection mode to obtain the switch Layer 3 throughput, the results of the switch Layer 3 forwarding throughput and Layer 3 forwarding delay. According to the test requirements, two or more switch ports can be selected for testing. The maximum performance requires all switch ports to participate in the test. All switch ports are interconnected with the test instrument ports, or some ports are connected in a serpentine manner;

[0046] Test the switch's maximum frame length for Layer 2 and Layer 3 line-speed forwarding: Select the switch or connector test topology according to the test requirements to build the environment. The switch is configured in Layer 2 forwarding mode. The test instrument is configured to run the RFC2544 Layer 2 packet loss rate test, traversing bytes between 64 and 1518, and increasing bytes as needed for testing to obtain the maximum frame length that the switch can forward at line speed. The result is the minimum frame length for Layer 2 line speed forwarding of the switch. The switch is configured in Layer 3 forwarding mode. The test instrument is configured to run the RFC2544 Layer 3 packet loss rate test, traversing bytes between 64 and 1518, and increasing bytes as needed for testing to obtain the maximum frame length that the switch can forward at line speed. The result is the minimum frame length for Layer 2 line speed forwarding of the switch. The basic items of 800G switch forwarding performance test. Small byte frame length has a great impact on the performance of network equipment. For Ethernet forwarding chips, obtaining the minimum forwarding frame length is more important for evaluating the forwarding performance of switches;

[0047] Cache capacity test of the switch under different conditions: select the switch test topology according to the test requirements to build the environment, tester port 1 sends 100% traffic to destination port 2, with a frame length of 64 bytes; tester port 3 sends excess traffic to destination port 2, and the maximum delay begins to increase. When the packet loss starts, the number of messages sent by port 3 is recorded, and the expected result is the switch 64-byte cache size: 64x8x. The number of messages sent by port 2: the cache size under 64 bytes, increase the sending frame length, and repeat step 2 until the frame length B is found. When the calculated cache size is the maximum, the expected result is the switch's highest efficiency cache size: Bx8x. The number of messages sent by port 2: the switch's highest efficiency cache size, move the sending ports backward one by one, with a frame length of B bytes, port X sends 100% traffic to port X+1, and port X+2 sends excess traffic to port X+1. From the maximum delay, the number of messages sent by port X+1 is recorded when the packet loss starts. , get the test port cache, the expected result is the maximum port cache: Bx8x port X sends the number of messages: get the maximum cache a group of ports, tester port 1 sends 100% traffic to destination port 2, tester port 3 sends 100% traffic to destination port 4, except N-1 and N ports, all port pairs send 100% traffic, port N-1 and port N send 1% excess traffic to port 2 and port 3 respectively, and the expected result is the cache size in the first port pair case, Bx8x port N and N-1 send the number of messages: cache size, move the excess traffic destination port backward by two, such as: destination port 4, port 5, repeat step 5 until the end, and get the expected result is the cache size in the maximum port pair case, Bx8x port N and N-1 send the number of messages: get the maximum cache, for 800G switches, the switching chip capacity has doubled, but the cache has not doubled, and the port cache size has a great impact on forwarding and latency. If the cache capacity is 128MB, the time to cache a packet for an 800G port is about 0.00128 seconds. It is very important to use the cache reasonably and evaluate the use of the cache in many aspects.

[0048] Test of the maximum number of burst frames supported by the switch: 1. Select the switch test topology according to the test requirements to build the environment. When the switch has N ports, ports 1 to N-1 send burst frames to port N at the maximum port rate, and record the number of burst frames without packet loss. The expected result is the number of burst frames in the case of many to 1. Ports 1 to N-2 send burst frames to ports N and N-1 at the maximum port rate, and record the number of burst frames without packet loss. The expected result is the number of burst frames in the case of many to 2. The sending ports are reduced one by one, and the receiving ports are increased until ports 1 to 2 send burst frames to ports 3 to N at the maximum port rate, and record the number of burst frames without packet loss. The expected result is the number of burst frames in the case of many to many. For 800G switches, the exponential increase in the capacity of the switching chip does not increase the cache exponentially. The port cache size has a great impact on forwarding and latency. If the cache capacity is 128MB, the time to cache data packets for 800G ports is about 0.00128 seconds. It is very important to use the cache reasonably and evaluate the use of the cache in many aspects.

[0049] It also includes the performance test of the switch stateful and stateless traffic mixed scenario: select the switch test topology according to the test requirements to build the environment, test instrument ports 1 to N-1 are sending ports, port N is the receiving port, two-on-one scenario, port 1 sends stateless traffic, the destination port is N, port N-1 sends stateful traffic, the destination port is N, test results record: stateless traffic bandwidth, latency, stateful traffic bandwidth, N-on-one scenario, gradually increase the number of stateless ports until the number of stateless ports is N-2, the destination port is N, port N-1 sends stateful traffic, the destination port is N, test results record: stateless traffic bandwidth, latency, stateful traffic bandwidth, exchange stateful traffic and stateless traffic sending ports, repeat the steps, simulate the real scenario, and do mixed traffic test.

[0050] It also includes the switch BGP routing capacity test: select the switch test topology according to the test requirements to build the environment, configure the switch to three-layer forwarding mode, enable the switch configuration BGP routing protocol, and establish E-BGP neighbor relationships with the two ports of the tester. The expected result is that the switch and the tester port BGP routing neighbors are in the established state. The test instrument port 2 publishes a certain number of routes to the switch, and the number is determined by the switch performance. Check the routing information on the switch. The expected result is that the switch can check the received routing entries and they are consistent with the content published by the instrument. Test instrument port 1 establishes traffic, and the destination address is the routing entry address published by port 2. Send traffic, check the statistics of sending and receiving packets, and the expected result is that there is no packet loss in both directions of the traffic. Record the maximum routing capacity of the switch, increase the number of routing entries published by port 2 and the number of ports participating in the test, repeat the steps, and find the maximum routing capacity of the switch. BGP is the main routing protocol for data center networks. Performance evaluation is important.

[0051] It also includes the VXLAN performance test of the switch: 1. According to the test requirements, select the switch or connector test topology to build the environment, configure the switch to enable the VXLAN function, connect switch port 1 to tester port 1 as the VXLAN host side, connect switch port 2 to tester port 2, create a VXLAN tunnel with tester port 2, tester port 2 simulates the VXLAN gateway and host, send bidirectional traffic between tester ports 1 and 2, perform traffic statistics and message inspection, increase bidirectional traffic, find the maximum rate without packet loss, record the switch VXLAN forwarding bandwidth and latency, increase the number of ports as needed to obtain the maximum VXLAN bandwidth and latency of the switch, increase the number of VXLAN tunnels configured on port 2, repeat the steps to obtain the maximum number of VXLAN tunnels on the switch, increase the number of VXLAN hosts configured on port 1, repeat the steps to obtain the maximum number of VXLAN hosts on the switch, 800G port switches will be used for DCI network construction, and VXLAN performance testing is important.

[0052] It also includes the switch load balancing capability test: 1. According to the test requirements, select the switch test topology to build the environment, configure the switch networking, build BGP neighbors between the LEAF switch and the instrument, and test the instrument to inject a certain number of routes into the network under test. The traffic in both directions is normal without packet loss. Check the traffic ratio between LEAF1 and LEAF2 to SPINE1 and SPINE2. According to the test conditions, the scale of SPINE and LEAF switches can be expanded, and the load balancing ratio is tested. The number of load balancing paths is expanded by simulating the SPINE switch through the instrument, and the load balancing ratio is tested. The load balancing of traffic in the data center networking of the SPINE-LEAF architecture is an important reflection of network utilization, and load balancing is an important evaluation item.

[0053] It also includes the convergence performance test under the switch networking condition: select the switch test topology according to the test requirements to build the environment, configure the switch networking, the protocol between the switches is normal, establish two-way traffic between the ports of the test instrument, all traffic has no packet loss and can be evenly distributed to each link, clear the traffic results, send all traffic at a fixed rate, cut off the link between TOR1 and LEAF1, record the packet loss of all traffic, calculate the convergence time of the TOR to LEAF link, restore all links, clear the traffic results, send all traffic at a fixed rate, cut off one of the other links between TOR and LEAF, record the packet loss of all traffic, and calculate the convergence time of the TOR to LEAF link time, repeat this step, record all switching results, restore all links, clear traffic results, send all traffic at a fixed rate, cut off the link between LEAF1 and SPINE1, record the packet loss of all traffic, calculate the convergence time of the SPINE to LEAF link, restore all links, clear traffic results, send all traffic at a fixed rate, cut off one of the links between other LEAF and SPINE, record the packet loss of all traffic, calculate the convergence time of the SPINE to LEAF link, repeat this step, record all switching results, the network of the data center has a large number of network ports, connectors, cables and optical fibers, etc., and the probability of failure is low, but it occurs frequently. The faster the convergence processing of the fault, the better, and the smaller the impact range, the better. Convergence testing is very important for 800G switches.

[0054] It also includes the working status test when receiving an attack message: 1. Select the switch test topology according to the test requirements to build the environment. Switch ports 1 and 2 are configured as business VLANs, and port 3 is configured in the management VLAN. The tester sends 100% traffic in both directions on ports 1 and 2 to confirm that there is no packet loss. A broadcast frame of ARP request is sent from port 3 of the tester to the switch network management address, and the switch CPU utilization rate is recorded. Whether there is packet loss in the business traffic between ports 1 and 2, and the change in business delay is recorded. ICMP request is sent from port 3 of the tester to the switch network management address, and the switch CPU utilization rate is recorded. Whether there is packet loss in the business traffic between ports 1 and 2, and the change in business delay is recorded. BPDU is sent from port 3 of the tester to the switch network management address, and the switch CPU utilization rate is recorded. Whether there is packet loss in the business traffic between ports 1 and 2, and the change in business delay is recorded. Port 3 can be added to send other types of attack messages for testing as needed. The application of data centers is becoming more and more complex. The anti-attack performance of data center switches has an important impact on the stability of data center networks. While 800G switches are introducing new switching chips and NOS at the same time, security tests such as anti-attack are required.

[0055] It also includes the test of the working status of the switch when it receives a half-link attack: select the switch test topology according to the test requirements to build the environment, configure switch ports 1 and 2 as business VLANs, and port 3 in the management VLAN. The tester sends 100% traffic in both directions on ports 1 and 2 to confirm that there is no packet loss. N TCPSYN packets are sent from port 3 of the tester to the switch management address, and the number of TCP resources is checked on the switch. At the same time, it is verified whether the host can access the switch normally through telnet / ssh, and the switch CPU occupancy, business traffic packet loss rate and latency are recorded. The test shows that the application of data centers is becoming more and more complex, and the anti-attack performance of data center switches has an important impact on the stability of data center networks. At the same time, when 800G switches introduce new switching chips and NOS, security tests such as anti-attack are needed.

[0056] It also includes the switch full-load forwarding work energy consumption test: select the switch test topology according to the test requirements to build the environment, the switch is fully equipped with optical modules or cable connectors, the switch is configured in Layer 2 or Layer 3 forwarding mode, the tester sends traffic to the switch at 100% interface rate, the switch traffic reaches full load, and the power meter is used to record the switch energy consumption. Energy consumption is an important technical indicator of data center network and infrastructure settings. 800G switching chips use more advanced chip technology. At the same time, the energy consumption and temperature of the connector have a great impact on the stability of the network. Energy consumption test is an important test for 800G switches.

[0057] The embodiments of the present invention are given for the purpose of illustration and description, and are not intended to be exhaustive or to limit the invention to the disclosed forms. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiments are selected and described in order to better illustrate the principles and practical applications of the present invention and to enable those of ordinary skill in the art to understand the present invention and thereby design various embodiments with various modifications suitable for specific uses.

Claims

1. A high-speed network switch testing method for AIoT, comprising: Connector information writing and reading capability test: Establish a test environment according to the connector type configuration, and the switch reads the connector information to obtain the connector management interface, manufacturer information, connector model, and transmit and receive optical power; check the connector status from the switch to obtain the LinkUP of the corresponding switch port; read the connector information from the test instrument to obtain the connector management interface, manufacturer information, connector model, module operating voltage, and power; PRBS forwarding capability test of the connector: The environment is set up according to the test topology required by the test. The tester port is set to send PRBS code stream. The PRBS statistics are checked at the receiving port of the test instrument. The receiving port receives the PRBS code stream, the PRBS type is correct, and the PRBSerror is less than 9.2x10–13; the tester port injects PRBSerror, the receiving port checks PRBS statistics, the receiving port receives PRBS code stream and PRBS error, and the number of errors is equal to the number of injections; the tester port injects reverse PRBS, the receiving port checks PRBS statistics, and the receiving port receives the reverse PRBS code stream; Post-correction bit error rate test: Select the switch or connector test topology to build the environment according to the test requirements. Set the switch and test instrument ports to single 112G channel mode. For connector testing, directly set the single-channel 112G mode on the test instrument port. Clear the statistics of the tester port. Configure the tester traffic and start sending bidirectional traffic. Wait for 5 minutes and check the pre-correction bit error rate and the proportion of signal errors that cannot be corrected after correction on the tester port. Switch frequency deviation tolerance test: Select the switch test topology according to the test requirements to build the environment, set the switch and test instrument ports to single 112G channel mode, configure a fixed length frame of 64Bytes on the tester, send 100% traffic on port 1, check that there is no packet loss on the tester receiving port, set the maximum positive frequency deviation, send traffic again, check that there is no packet loss on the tester receiving port, set the maximum negative frequency deviation, send traffic again, check that there is no packet loss on the tester receiving port; The switch layer 2 and layer 3 forwarding function support test: select the switch test topology according to the test requirements to build the environment, configure the switch to layer 2 forwarding mode, set the test instrument port to the same network segment, configure bidirectional layer 2 traffic between the two ports, and the two ports of the test instrument send traffic to each other. The expected result is that the switch layer 2 traffic forwarding is normal, there is no packet loss, and the switch layer 2 forwarding function is normal. The test instrument port is set to the same network segment as the switch interconnection port, and the gateway points to the corresponding switch port. Bidirectional layer 3 traffic is configured between the two ports. The two ports of the test instrument send traffic to each other. The expected result is that the switch layer 3 traffic forwarding is normal, there is no packet loss, and the switch layer 3 forwarding function is normal; Error frame processing capability test: Select the switch test topology according to the test requirements to build the environment, configure the switch to Layer 2 forwarding mode, configure the test instrument to have normal Layer 2 forwarding services, send traffic to confirm that forwarding is normal, set the test instrument, insert error frames in a certain proportion into the normal data stream, including: CRC error, overshort frame, overlong frame abnormal frames and send them to the device under test, check the instrument receiving port, and get the expected results; Behavior test of switch DUT in head-of-line blocking scenario: Select switch test topology to build environment according to test requirements. All ports of the switch are configured in Layer 2 forwarding mode. Test 8 ports, divided into two groups, four ports in each group. Instrument port 1 sends 50% of the traffic, destination port 3, and port 1 sends 50% of the traffic, destination port 4. Instrument port 2 sends 100% rate, destination port 4. Test the packet loss of traffic from port 1 to port 3. Instrument port 5 sends 50% of the traffic, destination port 7, and port 5 sends 50 % of the traffic, destination port 8, instrument port 6 sends 100% rate, destination port 8, test the packet loss of the traffic from port 5 to port 7, and get the expected result that the traffic from port 1 to 3 has no packet loss, and the traffic from port 5 to 7 has no packet loss. All ports are moved from X to X+1, and tested again. The expected result is that the traffic from port X to X+2 has no packet loss, and the traffic from port X+4 to X+6 has no packet loss. The last group of ports is combined with 1-7 and N. Test again, and the expected result is that the traffic from port X to 2 has no packet loss, and the traffic from port 4 to 6 has no packet loss. Switch BGP routing basic function test: Select the switch test topology to build the environment according to the test requirements, configure the switch to Layer 3 forwarding mode, enable the BGP routing protocol, establish E-BGP neighbor relationships between the two ports 1 and 2 and the two ports of the tester, and the expected result is that the switch and the tester port BGP routing neighbors are in the established state. The two ports of the tester publish a certain number of routes to the switch, check the routing information on the switch, and the expected result is that the switch can check the received routing entries and they are consistent with the content published by the instrument. The two ports of the tester establish bidirectional traffic, with the source address and destination address being the addresses of the published routing entries, send traffic, check the statistics of sending and receiving packets, and the expected result is that there is no packet loss in both directions of traffic; Switch VXLAN basic function test: Select the switch test topology according to the test requirements to build the environment, enable the VXLAN function in the switch configuration, connect switch port 1 to tester port 1 as the VXLAN host side, connect switch port 2 to tester port 2, create a VXLAN tunnel with tester port 2, tester port 2 simulates the VXLAN gateway and host, send bidirectional traffic between tester ports 1 and 2, perform traffic statistics and message inspection, and obtain the expected result that the bidirectional traffic is consistent with each other without packet loss; Switch EVPN / VXLAN basic function test: Select the switch test topology according to the test requirements to build the environment, enable the EVPN and VXLAN functions in the switch configuration, connect switch port 1 to tester port 1 as the VXLAN host side, connect switch port 2 to tester port 2, create an EVPN neighbor with tester port 2, and the expected result is that the switch and the tester EVPN neighbor are in the established state, and the tester port 2 publishes EVPN and VXLAN routing information. Check on the switch that EVPN and VXLAN information can be received. The expected result is that the switch can receive EVPN routing information and successfully create a VXLAN tunnel. Bidirectional traffic is sent between tester ports 1 and 2, and traffic statistics and message inspection are performed. The expected result is that the bidirectional traffic is sent and received consistently without packet loss. Switch Layer 2 and Layer 3 forwarding performance test: Select the switch test topology according to the test requirements to build the environment. The switch is configured in Layer 2 forwarding mode. The test instrument is configured to run the RFC2544 Layer 2 throughput test. The frame lengths are: 64, 128, 256, 512, 1024, 1518 bytes. More bytes are added as needed for testing. It is recommended to test the traffic mode in one-to-one or full connection mode to obtain the switch Layer 2 throughput. The results are the switch Layer 2 forwarding throughput and Layer 2 forwarding delay. The switch is configured in Layer 3 forwarding mode. The test instrument is configured to run the RFC2544 Layer 3 throughput test. The frame lengths are: 64, 128, 256, 512, 1024, 1518 bytes. More bytes are added as needed for testing. It is recommended to test the traffic mode in one-to-one or full connection mode to obtain the switch Layer 3 throughput. The results are the switch Layer 3 forwarding throughput and Layer 3 forwarding delay. Test the switch's maximum frame length at Layer 2 and Layer 3 line speed forwarding: Select the switch or connector test topology to build the environment according to the test requirements. The switch is configured in Layer 2 forwarding mode. The test instrument is configured to run the RFC2544 Layer 2 packet loss rate test, traversing bytes between 64 and 1518. Increase bytes as needed for testing to obtain the maximum frame length that the switch can forward at line speed. The result is the minimum frame length that the switch can forward at Layer 2 line speed. The switch is configured in Layer 3 forwarding mode. The test instrument is configured to run the RFC2544 Layer 3 packet loss rate test, traversing bytes between 64 and 1518. Increase bytes as needed for testing to obtain the maximum frame length that the switch can forward at line speed. The result is the minimum frame length that the switch can forward at Layer 2 line speed. Cache capacity test of the switch under different conditions: select the switch test topology according to the test requirements to build the environment, tester port 1 sends 100% traffic to destination port 2, with a frame length of 64 bytes; tester port 3 sends excess traffic to destination port 2, and the maximum delay begins to increase. At the time when packet loss begins, record the number of messages sent by port 3, and the expected result is the switch 64-byte cache size: 64x8x Number of messages sent by port 2: 64-byte cache size, increase the sending frame length, repeat step 2 until the frame length B is found, and the calculated cache size is the maximum, the expected result is the switch highest efficiency cache size: Bx8x Number of messages sent by port 2: switch highest efficiency cache size, move the sending ports backward one by one, with a frame length of B bytes, port X sends 100% traffic to port X+1, port X+2 sends excess traffic to port X+1, starting from the maximum delay Starts to increase, until the time when packet loss starts, record the number of messages sent by port X+1, and get the test port cache. The expected result is the maximum port cache: Bx8x port X sends 100% of the traffic to destination port 2, and the tester 3 port sends 100% of the traffic to destination port 4. Except for ports N-1 and N, all port pairs send 100% of the traffic. Ports N-1 and port N send 1% of excess traffic to ports 2 and 3 respectively. The expected result is the cache size in the case of the first port pair, Bx8x port N and N-1 send 1% of the excess traffic: cache size, move the excess traffic destination port backward by two, such as: destination port 4, port 5, repeat step 5 until the end, and get the expected result is the cache size in the case of the maximum port pair, Bx8x port N and N-1 send 1% of the excess traffic: get the maximum cache; Test of the maximum number of burst frames supported by the switch:

1. Select the switch test topology according to the test requirements to build the environment. When the switch has N ports, ports 1 to N-1 send burst frames to port N at the maximum port rate, and record the number of burst frames without packet loss. The expected result is the number of burst frames in the many-to-1 case. Ports 1 to N-2 send burst frames to ports N and N-1 at the maximum port rate, and record the number of burst frames without packet loss. The expected result is the number of burst frames in the many-to-2 case. The sending ports are reduced one by one, and the receiving ports are increased until ports 1 to 2 send burst frames to ports 3 to N at the maximum port rate. The number of burst frames without packet loss is recorded. The expected result is the number of burst frames in the many-to-many case.

2. The AIoT-oriented high-speed network switch testing method according to claim 1, characterized in that: It also includes the performance test of the switch stateful and stateless traffic mixed scenario: select the switch test topology according to the test requirements to build the environment, test instrument ports 1 to N-1 are sending ports, port N is the receiving port, two-on-one scenario, port 1 sends stateless traffic, the destination port is N, port N-1 sends stateful traffic, the destination port is N, the test results are recorded: stateless traffic bandwidth, latency, stateful traffic bandwidth, N-on-one scenario, gradually increase the number of stateless ports until the number of stateless ports is N-2, the destination port is N, port N-1 sends stateful traffic, the destination port is N, the test results are recorded: stateless traffic bandwidth, latency, stateful traffic bandwidth, swap the stateful traffic and stateless traffic sending ports, and repeat the steps.

3. The AIoT-oriented high-speed network switch testing method according to claim 1, characterized in that: It also includes the switch BGP routing capacity test: select the switch test topology according to the test requirements to build the environment, configure the switch to three-layer forwarding mode, enable the BGP routing protocol in the switch configuration, and establish E-BGP neighbor relationships with the two ports of the tester respectively. The expected result is that the switch and the tester port BGP routing neighbors are in an established state. The test instrument port 2 publishes a certain number of routes to the switch, and the number is determined by the switch performance. The routing information is checked on the switch. The expected result is that the switch can check the received routing entries and they are consistent with the content published by the instrument. The test instrument port 1 establishes traffic, and the destination address is the routing entry address published by port 2. Traffic is sent, and the statistics of sending and receiving packets are checked. The expected result is that there is no packet loss in both directions of the traffic. The maximum routing capacity of the switch is recorded, the number of routing entries published by port 2 and the number of ports participating in the test are increased, and the steps are repeated to find the maximum routing capacity of the switch.

4. The AIoT-oriented high-speed network switch testing method according to claim 1, characterized in that: It also includes the following VXLAN performance tests:

1. Select the switch or connector test topology according to the test requirements to build the environment, enable the VXLAN function in the switch configuration, connect switch port 1 to tester port 1 as the VXLAN host side, connect switch port 2 to tester port 2, create a VXLAN tunnel with tester port 2, tester port 2 simulates the VXLAN gateway and host, send bidirectional traffic between tester ports 1 and 2, perform traffic statistics and message inspection, increase bidirectional traffic, find the maximum rate without packet loss, record the switch VXLAN forwarding bandwidth and latency, increase the number of ports as needed to obtain the maximum VXLAN bandwidth and latency of the switch, increase the number of VXLAN tunnels configured on port 2, repeat the steps to obtain the maximum number of VXLAN tunnels on the switch, increase the number of VXLAN hosts configured on port 1, repeat the steps to obtain the maximum number of VXLAN hosts on the switch.

5. The AIoT-oriented high-speed network switch testing method according to claim 1, characterized in that: It also includes the switch load balancing capability test:

1. Select the switch test topology according to the test requirements to build the environment, configure the switch networking, build BGP neighbors between the LEAF switch and the instrument, and test that the instrument injects a certain number of routes into the network under test. The bidirectional traffic is normal without packet loss. Check the traffic ratio between LEAF1 and LEAF2 to SPINE1 and SPINE2. According to the test conditions, the scale of SPINE and LEAF switches can be expanded, and the load balancing ratio is tested. The number of load balancing paths is expanded by simulating the SPINE switch through the instrument, and the load balancing ratio is tested.

6. The AIoT-oriented high-speed network switch testing method according to claim 1, characterized in that: It also includes the convergence performance test under the switch networking condition: select the switch test topology according to the test requirements to build the environment, configure the switch networking, the protocol between the switches is normal, establish two-way traffic between the ports of the test instrument, all traffic has no packet loss and can be evenly distributed to each link, clear the traffic results, send all traffic at a fixed rate, cut off the link between TOR1 and LEAF1, record the packet loss of all traffic, calculate the convergence time of the TOR to LEAF link, restore all links, clear the traffic results, send all traffic at a fixed rate, cut off one of the other links between TOR and LEAF, record the packet loss of all traffic, calculate the convergence time of the TOR to LEAF link, repeat this step, record all switching results, restore all links, clear the traffic results, send all traffic at a fixed rate, cut off the link between LEAF1 and SPINE1, record the packet loss of all traffic, calculate the convergence time of the SPINE to LEAF link, restore all links, clear the traffic results, send all traffic at a fixed rate, cut off one of the other links between LEAF and SPINE, record the packet loss of all traffic, calculate the convergence time of the SPINE to LEAF link, repeat this step, record all switching results.

7. The AIoT-oriented high-speed network switch testing method according to claim 1, characterized in that: It also includes the working status test when receiving attack messages:

1. Select the switch test topology according to the test requirements to build the environment. Configure switch ports 1 and 2 as business VLANs, and port 3 as management VLAN. Ports 1 and 2 of the tester send 100% traffic in both directions to confirm that there is no packet loss. Send ARP request broadcast frames from port 3 of the tester to the switch network management address, record the switch CPU utilization, whether there is packet loss in the business traffic between ports 1 and 2, and record the change in business delay. Send ICMP requests from port 3 of the tester to the switch network management address, record the switch CPU utilization, whether there is packet loss in the business traffic between ports 1 and 2, and record the change in business delay. Send BPDU from port 3 of the tester to the switch network management address, record the switch CPU utilization, whether there is packet loss in the business traffic between ports 1 and 2, and record the change in business delay. Port 3 can be added to send other types of attack packets for testing as needed.

8. The AIoT-oriented high-speed network switch testing method according to claim 1, characterized in that: It also includes the test of the working status of the switch when it receives a half-link attack: select the switch test topology according to the test requirements to build the environment, configure switch ports 1 and 2 as business VLANs, and port 3 in the management VLAN. The tester sends 100% traffic in both directions on ports 1 and 2 to confirm that there is no packet loss. N TCPSYN packets are sent from port 3 of the tester to the switch management address, and the number of TCP resources is checked on the switch. At the same time, it is verified whether the host can normally access the switch through telnet / ssh, and the switch CPU occupancy, business traffic packet loss rate and latency are recorded.

9. The AIoT-oriented high-speed network switch testing method according to claim 1, characterized in that: It also includes the switch full-load forwarding working energy consumption test: select the switch test topology according to the test requirements to build the environment, the switch is fully equipped with optical modules or cable connectors, the switch is configured in Layer 2 or Layer 3 forwarding mode, the tester sends traffic to the switch at 100% of the interface rate, the switch traffic reaches full load, and the power meter is used to record the switch energy consumption.

Citation Information

Cited By

  • Link aggregation control protocol function test method and device, equipment and storage medium

    CN120658653A