Method, apparatus, system, device, medium and product for testing device forwarding performance

By constructing bidirectional and unidirectional traffic in SRv6 TE service equipment, obtaining packet loss detection results, and dynamically adjusting traffic to test maximum forwarding capacity, the problem of inaccurate testing and complex tunnel control in existing technologies is solved, enabling accurate evaluation of equipment forwarding performance and adaptation to asymmetric services.

CN118802656BActive Publication Date: 2026-01-16CHINA MOBILE COMM LTD RES INST +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410224959.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-28
Publication Date
2026-01-16
Estimated Expiration
2044-02-28

AI Technical Summary

Technical Problem

Existing technologies cannot accurately reflect the device's maximum processing capacity under no packet loss conditions when testing the device forwarding performance of SRv6 TE services. They also cannot accurately evaluate asymmetric services. The test results are inaccurate, and the routing topology and tunnel paths differ greatly from the actual network application scenarios. Tunnel control and traffic generation are also cumbersome.

Method used

By establishing bidirectional SRv6 TE traffic between the user-side board and the network-side board, and establishing unidirectional IPv6 traffic between auxiliary boards, packet loss detection results are obtained to identify the target board causing packet loss. The traffic size is dynamically adjusted to test the maximum forwarding traffic. Auxiliary boards are used to compensate for performance deficiencies, and reasonable SRv6 TE bidirectional traffic is established to accurately test the forwarding performance of the boards.

Benefits of technology

It enables accurate testing of the forwarding performance of SRv6 TE service equipment, can identify forwarding performance bottlenecks and maximize forwarding capacity through supplementary performance testing, adapts to asymmetric service scenarios, and simplifies tunnel control and traffic generation processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802656B_ABST
    Figure CN118802656B_ABST
Patent Text Reader

Abstract

The embodiment discloses a device forwarding performance test method, device, system, equipment, medium and product. The method comprises the following steps: obtaining a first IPv6 one-way traffic packet loss detection result; obtaining a second IPv6 one-way traffic packet loss detection result; determining a first target board card in the user side board card and the network side board card which causes the SRv6TE bidirectional traffic packet loss according to the first IPv6 one-way traffic packet loss detection result and the second IPv6 one-way traffic packet loss detection result; constructing the SRv6TE bidirectional traffic between the first target board card and the second target board card, and testing the maximum forwarding traffic size of the second target board card under the condition that the SRv6TE bidirectional traffic is constructed between the target auxiliary board card and the second target board card.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the field of communication services, and particularly relates to a method, device, system, equipment, medium and product for testing forwarding performance of equipment. BACKGROUND

[0002] Segment Routing support for IPv6 (SRv6) Traffic Engineering (TE) service is a typical asymmetric service. For a SRv6 domain boundary device, compared with a received packet of a user side board card of the device, a received packet of a network side board card of the device is additionally encapsulated with a Segment Routing Header (SRH), which increases the length of the packet and causes the traffic of the user side board card to be different from the traffic of the network side board card. In the related art, the forwarding performance of the device can be tested under the assumption that the traffic of the user side board card is basically the same as the traffic of the network side board card. For a device processing the SRv6 TE service, the forwarding performance of the device cannot be accurately tested. SUMMARY

[0003] The present application provides a method, device, system, equipment, medium and product for testing forwarding performance of equipment.

[0004] The present application provides a method for testing forwarding performance of equipment, which comprises the following steps.

[0005] In a case where SRv6 TE bidirectional traffic is constructed between a user side board card and a network side board card, and a first IPv6 unidirectional traffic is constructed between the user side board card and a first auxiliary board card, a packet loss detection result of the first IPv6 unidirectional traffic is acquired; in a case where SRv6 TE bidirectional traffic is constructed between the user side board card and the network side board card, and a second IPv6 unidirectional traffic is constructed between a second auxiliary board card and the network side board card, a packet loss detection result of the second IPv6 unidirectional traffic is acquired.

[0006] According to the packet loss detection result of the first IPv6 unidirectional traffic and the packet loss detection result of the second IPv6 unidirectional traffic, a first target board card causing packet loss of the SRv6 TE bidirectional traffic in the user side board card and the network side board card is determined.

[0007] In a case that the SRv6 TE bidirectional traffic is constructed between the first target board card and the second target board card, and the SRv6 TE bidirectional traffic is constructed between the target auxiliary board card and the second target board card, the size of the maximum forwarding traffic of the second target board card is tested, wherein the second target board card represents another board card of the user-side board card and the network-side board card except the first target board card, and the target auxiliary board card represents a board card of the first auxiliary board card and the second auxiliary board card which forms a direct communication connection with the second target board card.

[0008] In some embodiments, before the size of the maximum forwarding traffic of the second target board card is tested, the method further comprises: determining the size of a first traffic sent by the first target board card to the second target board card according to the size of the maximum forwarding traffic of the first target board card determined in advance; determining the size of a second traffic sent by the second target board card to the first target board card according to the size of the first traffic; constructing the SRv6 TE bidirectional traffic between the first target board card and the second target board card according to the first traffic and the second traffic; determining the size of a third traffic sent by the second target board card to the target auxiliary board card according to the size of the maximum forwarding traffic of the second target board card set initially and the size of the second traffic; determining the size of a fourth traffic sent by the target auxiliary board card to the second target board card according to the size of the third traffic sent by the second target board card to the target auxiliary board card; and constructing the SRv6 TE bidirectional traffic between the target auxiliary board card and the second target board card according to the third traffic and the fourth traffic.

[0009] It can be seen that the embodiments of the present application can construct the SRv6 TE bidirectional traffic between the first target board card and the second target board card according to the size of the maximum forwarding traffic of the first target board card determined in advance, and can also construct the SRv6 TE bidirectional traffic between the target auxiliary board card and the second target board card according to the size of the maximum forwarding traffic of the second target board card set initially and the size of the second traffic sent by the second target board card to the first target board card, thereby facilitating to test the size of the maximum forwarding traffic of the second target board card more accurately according to the constructed SRv6 TE bidirectional traffic.

[0010] In some embodiments, the determining the size of the second traffic sent by the second target board card to the first target board card according to the size of the first traffic comprises: determining the size of the second traffic sent by the second target board card to the first target board card according to a product of the size of the first traffic and a first ratio, the first ratio representing a ratio of an amount of data that the second target board card needs to forward to an amount of data that the first target board card needs to forward; and the determining the size of the fourth traffic sent by the target auxiliary board card to the second target board card according to the size of the third traffic sent by the second target board card to the target auxiliary board card comprises: determining the size of the fourth traffic sent by the target auxiliary board card to the second target board card according to a product of the size of the third traffic and a second ratio, the second ratio being an inverse of the first ratio.

[0011] It can be seen that in the embodiments of the present application, the size of the second traffic sent by the second target board card to the first target board card can be reasonably determined according to the ratio of the amount of data that the second target board card needs to forward to the amount of data that the first target board card needs to forward, on the basis of the size of the first traffic; and the size of the fourth traffic sent by the target auxiliary board card to the second target board card can be reasonably determined according to the inverse of the ratio of the amount of data that the second target board card needs to forward to the amount of data that the first target board card needs to forward, on the basis of the size of the third traffic. Since the ratio of the amount of data that the second target board card needs to forward to the amount of data that the first target board card needs to forward can reflect the forwarding processing situation of asymmetric services, the embodiments of the present application can reasonably determine the size of the second traffic sent by the second target board card to the first target board card and the size of the fourth traffic sent by the target auxiliary board card to the second target board card for the scene of processing asymmetric services.

[0012] In some embodiments, the determining the size of the third traffic sent by the second target board card to the target auxiliary board card according to the initially set size of the maximum forwarding traffic of the second target board card and the size of the second traffic comprises: subtracting the size of the second traffic from the initially set size of the maximum forwarding traffic of the second target board card to obtain the size of the third traffic sent by the second target board card to the target auxiliary board card.

[0013] It can be seen that the embodiments of the present application can reasonably determine the size of the third traffic sent by the second target board card to the target auxiliary board card according to the initially set size of the maximum forwarding traffic of the second target board card and the size of the second traffic sent by the second target board card to the first target board card.

[0014] In some embodiments, before testing the size of the maximum forwarding traffic of the second target board card, the method further comprises: determining the size of the fifth traffic sent by the first target board card to the second target board card according to the size of the maximum forwarding traffic of the first target board card initially set; determining the size of the sixth traffic sent by the second target board card to the first target board card according to the size of the fifth traffic sent by the first target board card to the second target board card, and constructing the SRv6 TE bidirectional traffic between the first target board card and the second target board card according to the fifth traffic and the sixth traffic; and testing the size of the maximum forwarding traffic of the first target board card in response to the SRv6 TE bidirectional traffic being constructed between the first target board card and the second target board card according to the fifth traffic and the sixth traffic.

[0015] It can be seen that the embodiments of the present application can construct the SRv6 TE bidirectional traffic between the first target board card and the second target board card more reasonably according to the size of the maximum forwarding traffic of the first target board card initially set, so as to facilitate testing the size of the maximum forwarding traffic of the first target board card more accurately according to the constructed SRv6 TE bidirectional traffic.

[0016] In some embodiments, the determining the size of the sixth traffic sent by the second target board card to the first target board card according to the size of the fifth traffic sent by the first target board card to the second target board card comprises: determining the size of the sixth traffic sent by the second target board card to the first target board card according to the product of the size of the fifth traffic and a first ratio, the first ratio representing the ratio of the amount of data required to be forwarded by the second target board card to the amount of data required to be forwarded by the first target board card for the SRv6 TE bidirectional traffic.

[0017] It can be seen that in the embodiments of the present application, the size of the sixth traffic sent by the second target board card to the first target board card can be determined more reasonably according to the ratio of the amount of data required to be forwarded by the second target board card to the amount of data required to be forwarded by the first target board card, on the basis of the size of the fifth traffic. Since the ratio of the amount of data required to be forwarded by the second target board card to the amount of data required to be forwarded by the first target board card can reflect the forwarding processing situation of the asymmetric service, the embodiments of the present application can reasonably determine the size of the traffic sent by the second target board card to the first target board card for the scene of processing the asymmetric service.

[0018] In some embodiments, in the case that the SRv6 TE bidirectional traffic is constructed between the user-side board card and the network-side board card, and the first IPv6 unidirectional traffic is constructed between the user-side board card and the first auxiliary board card, the packet loss detection result of the first IPv6 unidirectional traffic is obtained, including: constructing the SRv6 TE bidirectional traffic between the user-side board card and the network-side board card, and gradually increasing the size of the SRv6 TE bidirectional traffic; when the SRv6 TE bidirectional traffic has packet loss, constructing the first IPv6 unidirectional traffic between the user-side board card and the first auxiliary board card; obtaining the packet loss detection result of the first IPv6 unidirectional traffic by sending the first IPv6 unidirectional traffic; in the case that the SRv6 TE bidirectional traffic is constructed between the user-side board card and the network-side board card, and the second IPv6 unidirectional traffic is constructed between the second auxiliary board card and the network-side board card, the packet loss detection result of the second IPv6 unidirectional traffic is obtained, including: constructing the SRv6 TE bidirectional traffic between the user-side board card and the network-side board card, and gradually increasing the size of the SRv6 TE bidirectional traffic; when the SRv6 TE bidirectional traffic has packet loss, constructing the second IPv6 unidirectional traffic between the second auxiliary board card and the network-side board card; obtaining the packet loss detection result of the second IPv6 unidirectional traffic by sending the second IPv6 unidirectional traffic.

[0019] Understandably, when the SRv6 TE bidirectional traffic has packet loss, it can be determined that the user-side board card or the network-side board card has a bottleneck in forwarding performance, at this time, by sending the first IPv6 unidirectional traffic or the second IPv6 unidirectional traffic, the packet loss detection result of the first IPv6 unidirectional traffic or the packet loss detection result of the second IPv6 unidirectional traffic can be simply and easily determined, thereby facilitating more accurate determination of the board card causing the SRv6 TE bidirectional traffic to have packet loss in the network-side board card and the user-side board card.

[0020] The embodiment of the present application further provides a device forwarding performance testing apparatus, the apparatus comprising:

[0021] The obtaining module is configured to: in the case that the SRv6 TE bidirectional traffic is constructed between the user-side board card and the network-side board card, and the first IPv6 unidirectional traffic is constructed between the user-side board card and the first auxiliary board card, obtain the packet loss detection result of the first IPv6 unidirectional traffic; in the case that the SRv6 TE bidirectional traffic is constructed between the user-side board card and the network-side board card, and the second IPv6 unidirectional traffic is constructed between the second auxiliary board card and the network-side board card, obtain the packet loss detection result of the second IPv6 unidirectional traffic.

[0022] a first processing module, configured to determine, according to the packet loss detection result of the first IPv6 unidirectional traffic and the packet loss detection result of the second IPv6 unidirectional traffic, a first target board card causing packet loss of the SRv6 TE bidirectional traffic from among the user-side board card and the network-side board card;

[0023] a second processing module, configured to construct SRv6 TE bidirectional traffic between the first target board card and a second target board card, and test a maximum forwarding traffic size of the second target board card in a case where SRv6 TE bidirectional traffic is constructed between the target auxiliary board card and the second target board card, wherein the second target board card represents another board card from among the user-side board card and the network-side board card other than the first target board card, and the target auxiliary board card represents a board card from among the first auxiliary board card and the second auxiliary board card that forms a direct communication connection with the second target board card.

[0024] Embodiments of the present application further provide a test system connected with the user-side board card, the network-side board card, the first auxiliary board card, and the second auxiliary board card respectively; wherein

[0025] the test system is configured to, in a case where SRv6 TE bidirectional traffic is constructed between the user-side board card and the network-side board card and first IPv6 unidirectional traffic is constructed between the user-side board card and the first auxiliary board card, acquire a packet loss detection result of the first IPv6 unidirectional traffic; and in a case where SRv6 TE bidirectional traffic is constructed between the user-side board card and the network-side board card and second IPv6 unidirectional traffic is constructed between the second auxiliary board card and the network-side board card, acquire a packet loss detection result of the second IPv6 unidirectional traffic.

[0026] the test system is further configured to determine, according to the packet loss detection result of the first IPv6 unidirectional traffic and the packet loss detection result of the second IPv6 unidirectional traffic, a first target board card causing packet loss of the SRv6 TE bidirectional traffic from among the user-side board card and the network-side board card.

[0027] the test system is further configured to construct SRv6 TE bidirectional traffic between the first target board card and a second target board card, and test a maximum forwarding traffic size of the second target board card in a case where SRv6 TE bidirectional traffic is constructed between the target auxiliary board card and the second target board card, wherein the second target board card represents another board card from among the user-side board card and the network-side board card other than the first target board card, and the target auxiliary board card represents a board card from among the first auxiliary board card and the second auxiliary board card that forms a direct communication connection with the second target board card.

[0028] In some embodiments, the test system is further configured to send routing information of the SRv6 service to the user-side board card, the network-side board card, the first auxiliary board card and the second auxiliary board card respectively; the test system is connected with a control board card, and the test system is further configured to send parameters of an SRv6 tunnel to the control board card; the routing information of the SRv6 service and the parameters of the SRv6 tunnel are used to implement construction of the SRv6 TE bidirectional flow.

[0029] The embodiments of the present application also provide an electronic device, which comprises a processor and a memory for storing a computer program capable of running on the processor; wherein the processor is configured to run the computer program to perform any of the device forwarding performance test methods described above.

[0030] The embodiments of the present application also provide a computer storage medium, which stores a computer program, and the computer program is executed by a processor to implement any of the device forwarding performance test methods described above.

[0031] The embodiments of the present application also provide a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement any of the device forwarding performance test methods described above.

[0032] It can be seen that, in the scenario that the user-side board card and the network-side board card process the SRv6 TE service, the first IPv6 unidirectional flow is constructed between the user-side board card and the first auxiliary board card, and the second IPv6 unidirectional flow is constructed between the second auxiliary board card and the network-side board card, while the SRv6 TE bidirectional flow is constructed between the user-side board card and the network-side board card; by analyzing the packet loss detection result of the first IPv6 unidirectional flow and the packet loss detection result of the second IPv6 unidirectional flow, the first target board card that causes the SRv6 TE bidirectional flow to have packet loss can be determined more accurately, that is, the board card that first enters the forwarding performance bottleneck among the user-side board card and the network-side board card can be determined; further, by compensating for the insufficient performance of the board card that first enters the forwarding performance bottleneck through the target auxiliary board card, the maximum forwarding flow of the second target board card can be tested more accurately, that is, the maximum forwarding capability of the board card that later enters the forwarding performance bottleneck among the user-side board card and the network-side board card can be tested. Therefore, for the scenario that the user-side board card and the network-side board card process the SRv6 TE service, the forwarding performance of the board card that first enters the forwarding performance bottleneck and the board card that later enters the forwarding performance bottleneck among the user-side board card and the network-side board card can be tested more accurately in turn. BRIEF DESCRIPTION OF DRAWINGS

[0033] Figure 1 A flowchart of a device forwarding performance test method according to an embodiment of the present application;

[0034] Figure 2 A topology diagram for implementing device forwarding performance testing according to an embodiment of the present application;

[0035] Figure 3 A flowchart of a device forwarding performance testing method implemented by a testing system according to an embodiment of the present application;

[0036] Figure 4 A schematic diagram of data processing by a board card of a device under test according to a communication protocol according to an embodiment of the present application;

[0037] Figure 5 A structural schematic diagram of a testing system according to an embodiment of the present application;

[0038] Figure 6 A structural schematic diagram of a device forwarding performance testing apparatus according to an embodiment of the present application;

[0039] Figure 7 A structural schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0040] With the development of Software Defined Network (SDN) and SRv6 technology, Internet Protocol (IP) network path control gradually changes from past distributed path calculation relying on network elements to centralized path calculation by controllers. The controller issues the calculated path to the first network element in the SRv6 domain. The path information is superimposed on the original packet in the form of SRH, and the network elements in the domain guide the traffic forwarding by checking the path information contained in the SRH until the SRH is stripped when leaving the SRv6 domain.

[0041] SRv6 TE service is a typical asymmetric service. Compared with the received packet of the user side board card of the device, the received packet of the network side board card of the device additionally encapsulates a Segment Routing Header (SRH), which increases the length of the packet and causes the asymmetric bandwidth of the traffic flowing into and out of the device. In addition, the operations of encapsulating SRH and looking up SRv6 path table greatly increase the device forwarding performance overhead, and based on the implementation of different devices, the above operations may be processed on the user side board card or the network side board card of the device, causing the asymmetric decline of the forwarding performance of the single side board card of the device.

[0042] In the related art, the device forwarding performance test can be performed under the assumption that the traffic of the user-side board card and the network-side board card is basically the same. Understandably, under the condition that the traffic of the user-side board card and the network-side board card is basically the same, the service processing pressure of the user-side and network-side board cards of the device is also basically symmetrical. In the device forwarding performance test scheme in the related art, two same board cards are generally selected as the user-side and network-side board cards, and the ports of all the board cards are connected with the test system. The test system and each port of the user-side board card and the network-side board card of the device establish a routing protocol, advertise network routing, and send 100% line speed traffic matching the routing, so that the maximum service throughput that can be processed by the device can be measured. When the device for processing asymmetric services is tested for forwarding performance, only the overall forwarding throughput of the device after reaching the service processing bottleneck can be roughly calculated, and the limit forwarding performance of the user-side board card and the network-side board card of the device under the condition of no packet loss cannot be accurately measured. In addition, for the tunnel path information required for SRv6 TE service forwarding, a controller needs to be additionally introduced to cooperate with the path distribution or a static tunnel path needs to be configured on the device, which is also not involved in the test scheme proposed in the related art.

[0043] The test scheme in the related art has the following disadvantages:

[0044] 1) The test result is inaccurate, mainly reflected in: first, the forwarding throughput is obtained according to the traffic sent at the line speed after exceeding the service processing bottleneck, and cannot accurately reflect the limit processing capability of the device under the condition of no packet loss. Second, the characteristics of asymmetric services and the differences in device implementation are not considered, only the overall forwarding of the device can be roughly calculated, the maximum forwarding capability of the user-side board card and the network-side board card of the device cannot be accurately evaluated, and the test result cannot guide the planning and deployment of the device in the actual network.

[0045] 2) The routing topology and the tunnel path are too simple, mainly reflected in: the routing topology is simple, the number of tunnels is insufficient, the length of the tunnel label is single, and the deviation from the actual application scenario in the actual network is large.

[0046] 3) The tunnel control and the traffic generation are complicated, mainly reflected in: whether the controller is introduced to distribute the path or the path is manually configured on the device, the label information of the path needs to be manually collected and arranged in the traffic. That is, whether the tunnel is distributed or the traffic is generated, a large amount of manual processing is required.

[0047] In view of the above technical problems, the technical scheme of the embodiments of the present application is proposed.

[0048] The embodiments of the present application will be further described in conjunction with the accompanying drawings and embodiments. It is to be understood that the embodiments provided herein are only used to explain the embodiments of the present application and should not be used to limit the embodiments of the present application. In addition, the embodiments provided below are used to implement some embodiments of the present application, and the technical solutions described in the embodiments of the present application can be combined in any manner without conflict.

[0049] It should be noted that in the embodiments of the present application, the terms "comprising", "containing" or any other variants thereof are intended to cover non-exclusive containing, so that the method or device comprising a series of elements not only includes the elements explicitly described, but also includes other elements not explicitly listed, or includes elements inherent in the implementation of the method or device. Without more limitations, the element defined by the sentence "comprising a" does not exclude the presence of other related elements (such as steps in the method or units in the device, for example, the unit can be part of the circuit, part of the processor, part of the program or software, etc.) in the method or device comprising the element.

[0050] The device forwarding performance test method provided by the embodiments of the present application includes a series of steps, but the device forwarding performance test method provided by the embodiments of the present application is not limited to the steps described. Similarly, the device forwarding performance test device provided by the embodiments of the present application includes a series of modules, but the device provided by the embodiments of the present application is not limited to including the modules explicitly described, and can also include modules required to be set when obtaining relevant information or processing based on information.

[0051] Figure 1 The flow chart of a device forwarding performance test method according to an embodiment of the present application is shown in Figure 1 The flow chart can include:

[0052] Step 101: In the case of constructing SRv6 TE bidirectional traffic between the user side board card and the network side board card, and constructing the first IPv6 unidirectional traffic between the user side board card and the first auxiliary board card, obtaining the packet loss detection result of the first IPv6 unidirectional traffic; in the case of constructing SRv6 TE bidirectional traffic between the user side board card and the network side board card, and constructing the second IPv6 unidirectional traffic between the second auxiliary board card and the network side board card, obtaining the packet loss detection result of the second IPv6 unidirectional traffic.

[0053] In the embodiments of the present application, the user-side board card, the network-side board card, the first auxiliary board card, and the second auxiliary board card are board cards of the same device, and the board cards of the device are used at least to implement traffic receiving and forwarding. For the SRv6 TE service, the data to be forwarded by the user-side board card is the packet before the SRH is added, and the data to be forwarded by the network-side board card is the packet after the SRH is added. Exemplarily, the user-side board card, the network-side board card, the first auxiliary board card, and the second auxiliary board card can be board cards of the same model.

[0054] Exemplarily, the user-side board card can be denoted as board card A, the network-side board card can be denoted as board card B, the first auxiliary board card can be denoted as board card D, and the second auxiliary board card can be denoted as board card C. In the case that the SRv6 TE bidirectional traffic is constructed between the board card A and the board card B, the first IPv6 unidirectional traffic is constructed between the board card A and the board card D. Here, the data packet of the SRv6 TE bidirectional traffic can be a non-line-speed small packet, so as to more easily trigger the occurrence of a forwarding performance bottleneck of the board card of the device on one side. This is because the smaller each data packet to be forwarded is, the greater the forwarding pressure is. For example, the length of the packet of the SRv6 TE bidirectional traffic is 128 bytes.

[0055] The first IPv6 unidirectional traffic represents the traffic from the board card A to the board card D, and the first IPv6 unidirectional traffic serves as probe traffic 1 and is used to judge whether the bottleneck causing the device to have packet loss is in the board card A. Exemplarily, the data packet in the first IPv6 unidirectional traffic can be a line-speed large packet. For example, the size of the data packet in the first IPv6 unidirectional traffic is 512 bytes, and the size of the first IPv6 unidirectional traffic can be set to 1% of the line speed of the corresponding port, so as to reduce the consumption of the probe traffic 1 on the forwarding performance of the device.

[0056] Exemplarily, the second IPv6 unidirectional traffic can be constructed between the board card C and the board card B in the case that the SRv6 TE bidirectional traffic is constructed between the board card A and the board card B. The second IPv6 unidirectional traffic represents the traffic from the board card C to the board card B, and the second IPv6 unidirectional traffic serves as probe traffic 2 and is used to judge whether the bottleneck causing the device to have packet loss is in the board card B. Exemplarily, the data packet in the second IPv6 unidirectional traffic can be a line-speed large packet. For example, the size of the data packet in the second IPv6 unidirectional traffic is 512 bytes, and the size of the second IPv6 unidirectional traffic can be set to 1% of the line speed of the corresponding port, so as to reduce the consumption of the probe traffic 2 on the forwarding performance of the device.

[0057] In some embodiments of the present application, the process of obtaining the packet loss detection result of the first IPv6 unidirectional traffic can include: constructing an SRv6 TE bidirectional traffic between the user-side board card and the network-side board card, gradually increasing the size of the SRv6 TE bidirectional traffic; when the SRv6 TE bidirectional traffic has packet loss, constructing a first IPv6 unidirectional traffic between the user-side board card and the first auxiliary board card; and obtaining the packet loss detection result of the first IPv6 unidirectional traffic by sending the first IPv6 unidirectional traffic.

[0058] The process of obtaining the packet loss detection result of the second IPv6 unidirectional traffic can include:

[0059] The process of obtaining the packet loss detection result of the second IPv6 unidirectional traffic can include:

[0060] Here, the packet loss detection result of the first IPv6 unidirectional traffic can be no packet loss or packet loss; and the packet loss detection result of the second IPv6 unidirectional traffic can be no packet loss or packet loss.

[0061] It can be understood that when the SRv6 TE bidirectional traffic has packet loss, it can be determined that the user-side board card or the network-side board card has a bottleneck in forwarding performance. At this time, by sending the first IPv6 unidirectional traffic or the second IPv6 unidirectional traffic, the packet loss detection result of the first IPv6 unidirectional traffic or the packet loss detection result of the second IPv6 unidirectional traffic can be simply and easily determined, thereby facilitating the more accurate determination of the board card causing the SRv6 TE bidirectional traffic to have packet loss in the network-side board card and the user-side board card.

[0062] Step 102: determining a first target board card causing the SRv6 TE bidirectional traffic to have packet loss in the user-side board card and the network-side board card according to the packet loss detection result of the first IPv6 unidirectional traffic and the packet loss detection result of the second IPv6 unidirectional traffic.

[0063] Exemplarily, if the packet loss detection result of the probe traffic 1 is no packet loss, and the packet loss detection result of the probe traffic 2 is packet loss, it indicates that the first target board card is the board card B, and the board card B has a bottleneck in forwarding performance first; the subsequent forwarding performance test needs to be completed by using the board card A, the board card B and the board card D, and the performance deficiency of the board card B is supplemented by additionally increasing the board card D, thereby facilitating the test of the maximum forwarding capacity of the board card A.

[0064] Exemplarily, if the packet loss detection result of the probe traffic 1 is that packet loss occurs, and the packet loss detection result of the probe traffic 2 is that packet loss does not occur, it indicates that the first target board card is the board card A, and the board card A first occurs the forwarding performance bottleneck; the subsequent forwarding performance test needs to be completed by using the board card A, the board card B and the board card C, and the performance deficiency of the board card A is made up by additionally adding the board card C, so as to facilitate the test of the maximum forwarding capacity of the board card B.

[0065] Step 103: In the case that the SRv6 TE bidirectional traffic is constructed between the first target board card and the second target board card, and the SRv6 TE bidirectional traffic is constructed between the target auxiliary board card and the second target board card, the size of the maximum forwarding traffic of the second target board card is tested, wherein the second target board card represents another board card in the user side board card and the network side board card except the first target board card, and the target auxiliary board card represents the board card which forms a direct communication connection with the second target board card among the first auxiliary board card and the second auxiliary board card.

[0066] Exemplarily, when the first target board card is the board card B, the second target board card is the board card A, and the target auxiliary board card is the board card D; in the case that the first target board card is the board card B, the SRv6 TE bidirectional traffic can be constructed between the board card A and the board card B at the same time, and the SRv6 TE bidirectional traffic is constructed between the board card D and the board card A, so as to test the size of the maximum forwarding traffic of the board card A.

[0067] Exemplarily, when the first target board card is the board card A, the second target board card is the board card B, and the target auxiliary board card is the board card C; in the case that the first target board card is the board card A, the SRv6 TE bidirectional traffic can be constructed between the board card A and the board card B at the same time, and the SRv6 TE bidirectional traffic is constructed between the board card B and the board card C, so as to test the size of the maximum forwarding traffic of the board card B.

[0068] In actual application, the steps 101 to 103 can be realized based on a processor, and the processor can be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor.

[0069] It can be seen that, in the scenario that the user-side board card and the network-side board card process the SRv6 TE service, the first IPv6 unidirectional flow is constructed between the user-side board card and the first auxiliary board card, and the second IPv6 unidirectional flow is constructed between the second auxiliary board card and the network-side board card, while the SRv6 TE bidirectional flow is constructed between the user-side board card and the network-side board card. By analyzing the packet loss detection result of the first IPv6 unidirectional flow and the packet loss detection result of the second IPv6 unidirectional flow, the first target board card that causes the SRv6 TE bidirectional flow to have packet loss can be determined more accurately, that is, the board card that first enters the forwarding performance bottleneck among the user-side board card and the network-side board card can be determined. Further, by compensating for the insufficient performance of the board card that first enters the forwarding performance bottleneck through the target auxiliary board card, the maximum forwarding flow of the second target board card can be tested more accurately, that is, the maximum forwarding capability of the board card that later enters the forwarding performance bottleneck among the user-side board card and the network-side board card can be tested. Therefore, for the scenario that the user-side board card and the network-side board card process the SRv6 TE service, the forwarding performance of the board card that first enters the forwarding performance bottleneck and the board card that later enters the forwarding performance bottleneck among the user-side board card and the network-side board card can be tested more accurately in turn.

[0070] In some embodiments of the present application, before testing the size of the maximum forwarding flow of the second target board card, the method further comprises:

[0071] According to the size of the maximum forwarding flow of the first target board card set initially, the size of the fifth flow sent by the first target board card to the second target board card is determined; according to the size of the fifth flow sent by the first target board card to the second target board card, the size of the sixth flow sent by the second target board card to the first target board card is determined, and the SRv6 TE bidirectional flow is constructed between the first target board card and the second target board card according to the fifth flow and the sixth flow;

[0072] In response to constructing the SRv6 TE bidirectional flow between the first target board card and the second target board card according to the fifth flow and the sixth flow, the size of the maximum forwarding flow of the first target board card is tested.

[0073] In the embodiments of the present application, the size of the maximum forwarding flow of the first target board card can be an empirical value; after the size of the maximum forwarding flow of the first target board card is initially set, the size of the maximum forwarding flow of the first target board card can be dynamically changed. In some embodiments, the size of the fifth flow is the size of the maximum forwarding flow of the first target board card.

[0074] For example, when the first target board card is board card B, the size of the maximum forwarding flow of the first target board card can be recorded as a fifth traffic sent by the board card A to the board card B is determined as Then, a sixth traffic sent by the board card B to the board card A can be determined according to the size of the fifth traffic.

[0075] Exemplarily, when the first target board card is the board card A, the size of the maximum forwarding traffic of the first target board card can be recorded as a fifth traffic sent by the board card A to the board card B is determined as Then, a sixth traffic sent by the board card B to the board card A can be determined according to the size of the fifth traffic.

[0076] In response to the SRv6 TE bidirectional traffic being constructed between the first target board card and the second target board card according to the fifth traffic and the sixth traffic, the size of the maximum forwarding traffic of the first target board card can be tested by dynamically adjusting the size of the maximum forwarding traffic of the first target board card. For example, the size of the maximum forwarding traffic of the first target board card can be gradually increased until the SRv6 TE bidirectional traffic constructed between the first target board card and the second target board card has packet loss, and then the size of the maximum forwarding traffic of the first target board card when the SRv6 TE bidirectional traffic has no packet loss can be recorded.

[0077] Exemplarily, when the first target board card is the board card B, the size of the maximum forwarding traffic of the board card B can be tested by dynamically adjusting , and the size of the maximum forwarding traffic of the board card B can be recorded as When the first target board card is the board card A, the size of the maximum forwarding traffic of the board card A can be tested by dynamically adjusting , and the size of the maximum forwarding traffic of the board card A can be recorded as .

[0078] It can be seen that the embodiments of the present application can construct the SRv6 TE bidirectional traffic between the first target board card and the second target board card according to the size of the maximum forwarding traffic of the first target board card initially set, so as to facilitate testing the size of the maximum forwarding traffic of the first target board card according to the SRv6 TE bidirectional traffic constructed.

[0079] In some embodiments of the present application, the process of determining the size of the sixth traffic sent by the second target board card to the first target board card according to the size of the fifth traffic sent by the first target board card to the second target board card can include: determining the size of the sixth traffic sent by the second target board card to the first target board card according to the product of the size of the fifth traffic and a first ratio, the first ratio representing the ratio of the amount of data that the second target board card needs to forward to the amount of data that the first target board card needs to forward for the SRv6 TE bidirectional traffic.

[0080] Here, the size of the sixth traffic sent by the second target board card to the first target board card is a product of the size of the fifth traffic and the first proportion.

[0081] Exemplarily, when the first target board card is the board card B, the size of the fifth traffic is ; the first proportion represents a ratio of the data amount required to be forwarded by the board card A to the data amount required to be forwarded by the board card B. For example, assuming that the length of the performance test message before adding the SRH is bytes, the length of the message after adding the SRH and encapsulating is bytes, and the sum of the traffic frame gap and the preamble length is 20 bytes, the ratio of the data amount required to be forwarded by the board card A to the data amount required to be forwarded by the board card B is , and the size of the sixth traffic is .

[0082] When the first target board card is the board card A, the size of the fifth traffic is ; the first proportion represents a ratio of the data amount required to be forwarded by the board card B to the data amount required to be forwarded by the board card A. For example, assuming that the length of the performance test message before adding the SRH is bytes, the length of the message after adding the SRH and encapsulating is bytes, and the sum of the traffic frame gap and the preamble length is 20 bytes, the ratio of the data amount required to be forwarded by the board card B to the data amount required to be forwarded by the board card A is , and the size of the sixth traffic is .

[0083] It can be seen that in the embodiments of the present application, the size of the sixth traffic sent by the second target board card to the first target board card can be reasonably determined according to the ratio of the data amount required to be forwarded by the second target board card to the data amount required to be forwarded by the first target board card, on the basis of the size of the fifth traffic. Since the ratio of the data amount required to be forwarded by the second target board card to the data amount required to be forwarded by the first target board card can reflect the forwarding processing situation of the asymmetric service, the embodiments of the present application can reasonably determine the size of the traffic sent by the second target board card to the first target board card for the scene of processing the asymmetric service.

[0084] In some embodiments of the present application, after the size of the maximum forwarding traffic of the first target board card is determined, the method further comprises:

[0085] determine a size of the first traffic sent by the first target board card to a second target board card according to the size of the maximum forwarding traffic of the first target board card, determine a size of second traffic sent by the second target board card to the first target board card according to the size of the first traffic, and construct SRv6 TE bidirectional traffic between the first target board card and the second target board card according to the first traffic and the second traffic;

[0086] determine a size of third traffic sent by the second target board card to a target auxiliary board card according to the size of the maximum forwarding traffic of the second target board card and the size of the second traffic, determine a size of fourth traffic sent by the target auxiliary board card to the second target board card according to the size of the third traffic sent by the second target board card to the target auxiliary board card, and construct SRv6 TE bidirectional traffic between the target auxiliary board card and the second target board card according to the third traffic and the fourth traffic.

[0087] In the embodiments of the present application, the size of the first traffic can be the size of the maximum forwarding traffic of the first target board card, and the size of the maximum forwarding traffic of the second target board card can be an empirical value. After the size of the maximum forwarding traffic of the second target board card is initially set, the size of the maximum forwarding traffic of the second target board card can be dynamically changed.

[0088] For example, when the first target board card is board card B, the size of the first traffic sent by board card B to board card A can be determined according to the size of the maximum forwarding traffic of board card B, which is determined in advance. Then, the size of the second traffic sent by board card A to board card B can be determined according to the size of the first traffic. The size of the maximum forwarding traffic of board card A, which is initially set, can be denoted as According to the size of and the size of the second traffic, the size of the third traffic sent by board card A to board card D can be determined. According to the size of the third traffic sent by board card A to board card D, the size of the fourth traffic sent by board card D to board card A can be determined.

[0089] For example, when the first target board card is board card A, the size of the first traffic sent by board card A to board card B can be determined according to the size of the maximum forwarding traffic of board card A, which is determined in advance. Then, the size of the second traffic sent by board card B to board card A can be determined according to the size of the first traffic. The size of the maximum forwarding traffic of board card B, which is initially set, can be denoted as According to the size of and the size of the second traffic, the size of the third traffic sent by board card B to board card C can be determined. According to the size of the third traffic sent by board card B to board card C, the size of the fourth traffic sent by board card C to board card B can be determined.

[0090] In the embodiments of the present application, in response to the SRv6 TE bidirectional traffic being constructed between the first target board card and the second target board card, and the SRv6 TE bidirectional traffic being constructed between the target auxiliary board card and the second target board card, the size of the maximum forwarding traffic of the second target board card can also be tested by dynamically adjusting the size of the maximum forwarding traffic of the second target board card. For example, the size of the maximum forwarding traffic of the second target board card can be gradually increased until the SRv6 TE bidirectional traffic constructed between the first target board card and the second target board card has packet loss, or the SRv6 TE bidirectional traffic constructed between the target auxiliary board card and the second target board card has packet loss, and then the size of the maximum forwarding traffic of the second target board card when the SRv6 TE bidirectional traffic has no packet loss can be recorded. Here, the size of the maximum forwarding traffic of the second target board card can be the sum of the size of the second traffic and the size of the third traffic.

[0091] Exemplarily, when the first target board card is the board card B, the size of the maximum forwarding traffic of the board card A can be tested by dynamically adjusting the size of the maximum forwarding traffic of the board card A in the manner of , and the size of the maximum forwarding traffic of the board card A can be recorded as . When the first target board card is the board card A, the size of the maximum forwarding traffic of the board card B can be tested by dynamically adjusting the size of the maximum forwarding traffic of the board card B in the manner of , and the size of the maximum forwarding traffic of the board card B can be recorded as .

[0092] It can be seen that the embodiments of the present application can more reasonably construct the SRv6 TE bidirectional traffic between the first target board card and the second target board card according to the size of the maximum forwarding traffic of the first target board card determined in advance, and can also more reasonably construct the SRv6 TE bidirectional traffic between the target auxiliary board card and the second target board card according to the size of the maximum forwarding traffic of the second target board card initially set and the size of the second traffic sent by the second target board card to the first target board card, thereby facilitating more accurately testing the size of the maximum forwarding traffic of the second target board card according to the constructed SRv6 TE bidirectional traffic.

[0093] In some embodiments of the present application, the process of determining the size of the second traffic sent by the second target board card to the first target board card according to the size of the first traffic can include:

[0094] determining the size of the second traffic sent by the second target board card to the first target board card according to the product of the size of the first traffic and a first ratio, the first ratio representing the ratio of the amount of data that the second target board card needs to forward to the amount of data that the first target board card needs to forward for the SRv6 TE bidirectional traffic;

[0095] The process of determining the size of the fourth traffic sent by the target auxiliary board card to the second target board card according to the size of the third traffic sent by the second target board card to the target auxiliary board card can comprise:

[0096] The size of the fourth traffic sent by the target auxiliary board card to the second target board card is determined according to the product of the size of the third traffic and a second ratio, the second ratio being the inverse of the first ratio.

[0097] Here, the size of the second traffic sent by the second target board card to the first target board card is the product of the size of the first traffic and the first ratio, and the size of the fourth traffic sent by the target auxiliary board card to the second target board card is the product of the size of the third traffic and the second ratio.

[0098] It can be seen that in the embodiments of the present application, the size of the second traffic sent by the second target board card to the first target board card can be reasonably determined according to the ratio of the data amount to be forwarded by the second target board card to the data amount to be forwarded by the first target board card, on the basis of the size of the first traffic; and the size of the fourth traffic sent by the target auxiliary board card to the second target board card can be reasonably determined according to the inverse of the ratio of the data amount to be forwarded by the second target board card to the data amount to be forwarded by the first target board card, on the basis of the size of the third traffic; since the ratio of the data amount to be forwarded by the second target board card to the data amount to be forwarded by the first target board card can reflect the forwarding processing situation of the asymmetric service, the embodiments of the present application can reasonably determine the size of the second traffic sent by the second target board card to the first target board card and the size of the fourth traffic sent by the target auxiliary board card to the second target board card, for the scene of processing the asymmetric service.

[0099] In some embodiments of the present application, determining the size of the third traffic sent by the second target board card to the target auxiliary board card according to the size of the initially set maximum forwarding traffic of the second target board card and the size of the second traffic can comprise:

[0100] Subtracting the size of the second traffic from the size of the initially set maximum forwarding traffic of the second target board card, the size of the third traffic sent by the second target board card to the target auxiliary board card is obtained.

[0101] Exemplarily, when the first target board card is board card B, the size of the first traffic is , the first ratio is , and the size of the second traffic is . The size of the maximum forwarding traffic of board card A is , and the size of the third traffic sent by board card A to board card D is . The second ratio is , and the size of the fourth traffic sent by board card D to board card A is .

[0102] When the first target board card is board card A, the size of the first flow is , the first ratio is , and the size of the second flow is . The size of the maximum forwarding flow of the board card B is , the size of the third flow sent by the board card B to the board card C is . The second ratio is , and the size of the fourth flow sent by the board card C to the board card B is .

[0103] It can be seen that the embodiment of the application can reasonably determine the size of the third flow sent by the second target board card to the target auxiliary board card according to the size of the maximum forwarding flow of the second target board card initially set and the size of the second flow sent by the second target board card to the first target board card.

[0104] The embodiment of the application can be applied in the fields of infrastructure and information technology (IT) support, and the technical solution of the embodiment of the application can obtain a forwarding performance test result closer to the actual use of the network in the scene of processing asymmetric services represented by SRv6 TE services, which can more truly and accurately reflect the forwarding performance of the device. The embodiment of the application can realize accurate testing of network device performance under an asymmetric service model, and the test result has important guiding significance for the selection of operator device sets, the opening of the network service, and the like.

[0105] SRv6 / G-SRv6 as a new generation of IP network basic protocol is a key technology to meet the needs of network intelligentization and future service development. Under this background, IP device and network testing verification and related key technology research are carried out, aiming to research and develop the testing methods and testing tools for new technologies and new scenes of IP devices. The embodiment of the application is theoretically guided by the collection and selection of network testing specifications, fully combines the actual service model and flow model of the network, and verifies the device forwarding performance of various IP devices including high-end routers under the asymmetric service model such as SRv6 or G-SRv6, so as to provide test data support for device evaluation, selection and procurement.

[0106] The embodiment of the application further provides a test system, which is connected with a user side board card, a network side board card, a first auxiliary board card and a second auxiliary board card respectively.

[0107] The test system is configured to construct SRv6 TE bidirectional traffic between the user-side board card and the network-side board card, and obtain a packet loss detection result of the first IPv6 unidirectional traffic in a case that the first IPv6 unidirectional traffic is constructed between the user-side board card and the first auxiliary board card; construct SRv6 TE bidirectional traffic between the user-side board card and the network-side board card, and obtain a packet loss detection result of the second IPv6 unidirectional traffic in a case that the second IPv6 unidirectional traffic is constructed between the second auxiliary board card and the network-side board card;

[0108] The test system is further configured to determine, according to the packet loss detection result of the first IPv6 unidirectional traffic and the packet loss detection result of the second IPv6 unidirectional traffic, a first target board card in the user-side board card and the network-side board card that causes packet loss of the SRv6 TE bidirectional traffic.

[0109] The test system is further configured to construct SRv6 TE bidirectional traffic between the first target board card and the second target board card, and test a maximum forwarding traffic size of the second target board card in a case that SRv6 TE bidirectional traffic is constructed between the target auxiliary board card and the second target board card.

[0110] In some embodiments of the present application, the test system is further configured to send routing information of SRv6 service to the user-side board card, the network-side board card, the first auxiliary board card and the second auxiliary board card respectively.

[0111] The test system is connected with a control board card, and the test system is further configured to issue parameters of an SRv6 tunnel to the control board card; the routing information of the SRv6 service and the parameters of the SRv6 tunnel are used to implement construction of the SRv6 TE bidirectional traffic.

[0112] It can be seen that, in the embodiments of the present application, the routing information of the SRv6 service can be sent to the user-side board card, the network-side board card, the first auxiliary board card and the second auxiliary board card, and the parameters of the SRv6 tunnel can be issued to the control board card; according to the routing information of the SRv6 service and the parameters of the SRv6 tunnel, the construction of the SRv6 TE bidirectional traffic can be reasonably implemented.

[0113] Figure 2 A topology structure diagram for implementing device forwarding performance testing is provided for the embodiments of the present application, as shown in Figure 2 The test system 201 is in communication connection with the measured device 202, and the measured device 202 is provided with a board card A, a board card B, a board card C, a board card D and a board card E, wherein the board card A and the board card C are two different user-side board cards, the board card B and the board card D are two different network-side board cards, and the board card E is a control board card. The test system 201 can send test traffic to the board card A, the board card B, the board card C and the board card D, and can also issue an SRv6 tunnel path to the board card.

[0114] Figure 3 This is a flowchart of a device forwarding performance testing method implemented using a testing system in an embodiment of this application, as shown below. Figure 3 As shown, the process includes:

[0115] Step S1: Test environment setup and connection.

[0116] In this step, the device under test can be configured with identical boards A, B, C, D, and E. All ports on each of boards A, B, C, and D are interconnected with the test system 201. One port on board E is arbitrarily selected and connected to the test system 201 to facilitate the transmission of SRv6 tunnel paths from the test system 201 to board E. Boards A and B are the primary test boards, while boards C and D are auxiliary boards. For example, according to steps S4-S6, one of boards C and D can be selected to supplement the transmission of performance test traffic.

[0117] Step S2: The test system announces the service route to the device under test.

[0118] In this step, SRv6 TE services can be configured between the device under test 202 and the test system 201: the device under test 202 acts as an SRv6 domain border router, the test system ports connected to board A and board C simulate access-side routers, and the test system ports connected to board B and board D simulate the network topology of the operator's backbone routers.

[0119] For example, refer to Figure 4 The test system 201 advertises private network routes to the user-side card of the device under test via the Open Shortest Path First (OSPF) protocol, and backbone internal gateway protocol (IGP) routes and private virtual private network (VPN) routes to the network-side card via the Intermediate System to Intermediate System (IS-IS) protocol and the Internal / Interior Border Gateway Protocol (IBGP). The scale of the backbone network nodes simulated by the test system 201 can be flexibly adjusted and is linked to the number of SRv6 SID label layers issued in step S3. Figure 4In the embodiment, OSPFv2 and OSPFv3 represent two OSPF protocols, ISISv6 represents the IS-IS protocol, the Multiprotocol Internal / Interior Border Gateway Protocol (MP-IBGP) is a protocol used by the test system 201 to communicate with the network-side board card, P1.1 to P1.m, P2 to Pn, and PE are nodes in a routing topology corresponding to the network-side board card, and m and n are integers greater than 1.

[0120] Step S3: The test system issues a tunnel path to the device under test.

[0121] In this step, the test system 201 is used to test the system simulation controller, the test system 201 establishes a BGP SRv6 policy neighbor relationship with the board card E, issues an SRv6 tunnel path to the board card E, and the number of tunnels is the maximum specification supported by the whole machine. Exemplarily, the tunnels are uniformly distributed on all ports of the network-side board card according to different network-side out interfaces of the device under test 202, and the number of SRv6 label layers of each port can be flexibly configured and kept associated with the number of nodes in the ISIS routing topology in step S2.

[0122] Step S4: Determine whether the board card that first appears the forwarding performance bottleneck is the board card B. If yes, steps S5-1 to S6-1 are performed. If no, steps S5-2 to S6-2 are performed.

[0123] Here, the implementation of determining the board card that first appears the forwarding performance bottleneck has been described in the foregoing description. If the board card that first appears the forwarding performance bottleneck is not the board card B, it is indicated that the board card that first appears the forwarding performance bottleneck is the board card A.

[0124] Step S5-1: Test the size of the maximum forwarding traffic of the board card B.

[0125] Step S6-1: Test the size of the maximum forwarding traffic of the board card A, and then perform step S7.

[0126] Step S5-2: Test the size of the maximum forwarding traffic of the board card A.

[0127] Step S6-2: Test the size of the maximum forwarding traffic of the board card B, and then perform step S7.

[0128] Step S7: Perform packet capturing and analysis comparison on the network-side board card.

[0129] In this step, packet capturing can be performed in the port entry direction of the network-side board card, SRH information carried by the packet after forwarding by the device is analyzed, and the SRv6 path issued by the test system 201 is compared and verified.

[0130] Step S8: modify the length of the traffic message, return to step S5-1 and step S5-2.

[0131] In this step, the length of the message of the bidirectional traffic constructed in step S5-1, step S6-1, step S5-2 and step S6-2 can be modified, and then returned to step S5-1 and step S5-2. By re-executing step S5-1, step S6-1, step S5-2 and step S6-2, the maximum forwarding throughput of the user side board card and the network side board card when processing messages of different message lengths can be determined under the condition that the device under test forwards SRv6 TE service without packet loss.

[0132] In the embodiments of the present application, the verification method of the forwarding performance test includes: the service model design method shown in steps S2 to S3, the method of detecting device forwarding bottleneck shown in step S4, and the method of supplementing the performance of the traffic test device and verifying whether it meets the expectation shown in steps S5 to S8.

[0133] The embodiments of the present application also propose a test system for an asymmetric service model, with reference to Figure 5 The test system 201 includes a test logic control module 501, a routing protocol module 502, a tunnel path module 503 and a service traffic module 504.

[0134] The test logic control module 501 is used to schedule the routing protocol module 502, the tunnel path module 503 and the service traffic module 504 through an internal Application Programming Interface (API), to complete the logic control of the entire forwarding performance test.

[0135] The routing protocol module 502 is used to establish and maintain the routing protocol neighbor relationship between the test system 201 and the device under test 202, to complete the generation and announcement of the test routing topology. Illustratively, the routing protocol module 502 needs to be linked with the tunnel path module 503. After the preset completion of the tunnel path length range during the test, the ISIS routing topology matching the tunnel SID list length will be automatically generated. In addition, the routing protocol module 502 also needs to deliver the results of the test routing selection to the service traffic module 504 in the form of internal messages.

[0136] The tunnel path module 503 is configured to arrange a label path of each SRv6 TE tunnel, and deliver the label path to the device under test 202 through a BGP SRv6Policy protocol. The path SID information is consistent with the SRv6 route tlv attribute announced by the route protocol module 502. In addition, the path label generation needs to be transmitted to the service traffic module 504 in the form of an internal message.

[0137] The service traffic module 504 is configured to automatically construct corresponding SRv6 TE verification traffic according to the test route and tunnel label generation, and send the verification traffic to the device under test 202. In addition, the service traffic module 504 is also configured to count the traffic reception on each test interface, judge whether the device correctly forwards the verification traffic, and notify the test logic control module 501 of the verification result in the form of an internal message.

[0138] In the embodiment of the application, the tunnel path module 503 is added to the test system 201 to realize automatic arrangement and delivery of the tunnel path, and automatic association and generation of the service traffic. Through linkage with the route protocol module 502, the route topology scale can be automatically adjusted according to the tunnel length range; through linkage with the service traffic module 504, the SRv6 TE traffic can be automatically generated.

[0139] As can be seen from the foregoing description, the forwarding performance test result obtained by the embodiment of the application is more accurate. Compared with the test scheme of configuring only two boards in the related art, the embodiment of the application can accurately test the respective limit forwarding capabilities of the uplink and downlink boards of the device when the device faces asymmetric service traffic by configuring more boards and detecting the performance bottleneck of the device. The messages received by the test system are analyzed, and the path delivered by the system is compared and analyzed to ensure the correctness of the device forwarding behavior.

[0140] The test system efficiency is significantly improved, and the service model is more complex. Compared with the scheme of introducing an additional controller or configuring a static path in the related art, the path information generated by the test system can be directly associated with the route topology and the service traffic by integrating the tunnel path module, and the route topology and the service traffic can be automatically generated without manual analysis and processing of a large amount of path information. The scheme can support large-scale deployment of a large number of tunnels and flexible setting of the tunnel label depth.

[0141] Those skilled in the art can understand that the sequence of writing each step in the foregoing method of the specific embodiment does not mean a strict execution sequence and does not constitute any limitation on the implementation process. The specific execution sequence of each step should be determined by its function and possible internal logic.

[0142] Figure 6 A structural schematic diagram of a device forwarding performance test device according to an embodiment of the application is shown inFigure 6 The apparatus includes:

[0143] The acquisition module 601 is configured to, in a case where SRv6 TE bidirectional traffic is constructed between a user-side board card and a network-side board card, and first IPv6 unidirectional traffic is constructed between the user-side board card and a first auxiliary board card, acquire a packet loss detection result of the first IPv6 unidirectional traffic; in a case where SRv6 TE bidirectional traffic is constructed between a user-side board card and a network-side board card, and second IPv6 unidirectional traffic is constructed between a second auxiliary board card and the network-side board card, acquire a packet loss detection result of the second IPv6 unidirectional traffic.

[0144] The first processing module 602 is configured to determine, according to the packet loss detection result of the first IPv6 unidirectional traffic and the packet loss detection result of the second IPv6 unidirectional traffic, a first target board card in the user-side board card and the network-side board card that causes packet loss of the SRv6 TE bidirectional traffic.

[0145] The second processing module 603 is configured to, in a case where SRv6 TE bidirectional traffic is constructed between the first target board card and a second target board card, and SRv6 TE bidirectional traffic is constructed between a target auxiliary board card and the second target board card, test a size of maximum forwarding traffic of the second target board card, wherein the second target board card represents another board card in the user-side board card and the network-side board card other than the first target board card, and the target auxiliary board card represents a board card in the first auxiliary board card and the second auxiliary board card that forms a direct communication connection with the second target board card.

[0146] In some embodiments, the second processing module 603 is further configured to, before testing the size of the maximum forwarding traffic of the second target board card, determine, according to a predetermined size of the maximum forwarding traffic of the first target board card, a size of first traffic sent by the first target board card to the second target board card; determine, according to the size of the first traffic, a size of second traffic sent by the second target board card to the first target board card; and construct SRv6 TE bidirectional traffic between the first target board card and the second target board card according to the first traffic and the second traffic.

[0147] The second processing module 603 is further configured to: determine a size of third traffic sent by the second target board card to the target auxiliary board card according to the size of the maximum forwarding traffic of the second target board card initially set and the size of the second traffic; determine a size of fourth traffic sent by the target auxiliary board card to the second target board card according to the size of the third traffic sent by the second target board card to the target auxiliary board card; and construct SRv6 TE bidirectional traffic between the target auxiliary board card and the second target board card according to the third traffic and the fourth traffic.

[0148] In some embodiments, the second processing module 603 is configured to determine the size of the second traffic sent by the second target board card to the first target board card according to the size of the first traffic, including:

[0149] determining the size of the second traffic sent by the second target board card to the first target board card according to a product of the size of the first traffic and a first ratio, the first ratio representing a ratio of an amount of data required to be forwarded by the second target board card to an amount of data required to be forwarded by the first target board card for the SRv6 TE bidirectional traffic;

[0150] The determining the size of the fourth traffic sent by the target auxiliary board card to the second target board card according to the size of the third traffic sent by the second target board card to the target auxiliary board card includes:

[0151] determining the size of the fourth traffic sent by the target auxiliary board card to the second target board card according to a product of the size of the third traffic and a second ratio, the second ratio being an inverse of the first ratio.

[0152] In some embodiments, the second processing module 603 is configured to determine the size of the third traffic sent by the second target board card to the target auxiliary board card according to the size of the maximum forwarding traffic of the second target board card initially set and the size of the second traffic, including:

[0153] subtracting the size of the second traffic from the size of the maximum forwarding traffic of the second target board card initially set to obtain the size of the third traffic sent by the second target board card to the target auxiliary board card.

[0154] In some embodiments, the second processing module 603 is further configured to, before testing the maximum forwarding traffic size of the first target board card, determine a fifth traffic size sent by the first target board card to the second target board card according to the maximum forwarding traffic size of the first target board card set initially; determine a sixth traffic size sent by the second target board card to the first target board card according to the fifth traffic size sent by the first target board card to the second target board card, and construct SRv6 TE bidirectional traffic between the first target board card and the second target board card according to the fifth traffic and the sixth traffic.

[0155] The second processing module 603 is further configured to, in response to constructing SRv6 TE bidirectional traffic between the first target board card and the second target board card according to the fifth traffic and the sixth traffic, test the maximum forwarding traffic size of the first target board card.

[0156] In some embodiments, the second processing module 603 is configured to determine the sixth traffic size sent by the second target board card to the first target board card according to the fifth traffic size sent by the first target board card to the second target board card, including:

[0157] determining the sixth traffic size sent by the second target board card to the first target board card according to a product of the fifth traffic size and a first ratio, the first ratio representing a ratio of an amount of data required to be forwarded by the second target board card to an amount of data required to be forwarded by the first target board card for SRv6 TE bidirectional traffic.

[0158] In some embodiments, the acquisition module 601 is specifically configured to construct SRv6 TE bidirectional traffic between the user-side board card and the network-side board card, gradually increase the size of the SRv6 TE bidirectional traffic, construct first IPv6 unidirectional traffic between the user-side board card and a first auxiliary board card when the SRv6 TE bidirectional traffic has packet loss, and acquire a packet loss detection result of the first IPv6 unidirectional traffic by sending the first IPv6 unidirectional traffic.

[0159] The acquisition module 601 is specifically configured to construct SRv6 TE bidirectional traffic between the user-side board card and the network-side board card, gradually increase the size of the SRv6 TE bidirectional traffic, construct second IPv6 unidirectional traffic between the second auxiliary board card and the network-side board card when the SRv6 TE bidirectional traffic has packet loss, and acquire a packet loss detection result of the second IPv6 unidirectional traffic by sending the second IPv6 unidirectional traffic.

[0160] In actual application, the acquisition module 601, the first processing module 602 and the second processing module 603 can be implemented based on a processor.

[0161] It should be noted that the above description of the device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects to the method embodiments. For technical details not disclosed in the device embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.

[0162] It should be noted that in the embodiments of the present application, if the above-mentioned method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a plurality of instructions for causing a computer device (which can be a terminal, a server, etc.) to execute all or part of the methods described in the embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk, and various media that can store program codes. Thus, the embodiments of the present application are not limited to any specific hardware and software combination.

[0163] Correspondingly, the embodiments of the present application further provide a computer program product, which includes computer executable instructions for implementing any one of the device forwarding performance test methods provided by the embodiments of the present application.

[0164] Correspondingly, the embodiments of the present application further provide a computer storage medium, which stores computer executable instructions for implementing any one of the device forwarding performance test methods provided by the above embodiments.

[0165] The embodiments of the present application also provide an electronic device. Figure 7 As shown in FIG. 7, the electronic device 70 can include: Figure 7

[0166] The memory 701 is configured to store executable instructions.

[0167] The processor 702 is configured to execute the executable instructions stored in the memory 701, and implement any one of the device forwarding performance test methods.

[0168] The processor 702 can be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor.​

[0169] The computer readable storage medium, the memory 702 can be a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Ferromagnetic Random Access Memory (FRAM), a Flash Memory, a magnetic surface memory, an optical disc, or a Compact Disc Read-Only Memory (CD-ROM), etc. The computer readable storage medium can also be various terminals including one or any combination of the above memories, such as a mobile phone, a computer, a tablet device, a personal digital assistant, etc.

[0170] In some embodiments, the apparatus provided by the embodiments of the present application has functions or includes modules that can be used to execute the methods described in the above method embodiments, and the specific implementation can refer to the description of the above method embodiments. For brevity, it will not be repeated here.

[0171] The above description of various embodiments tends to emphasize the differences between various embodiments, and the same or similar parts can be mutually referred to. For brevity, it will not be repeated here.

[0172] The methods disclosed in the various method embodiments provided by the present application can be combined arbitrarily to obtain new method embodiments, without conflict.

[0173] The features disclosed in the various product embodiments provided by the present application can be combined arbitrarily to obtain new product embodiments, without conflict.

[0174] The features disclosed in the various method or device embodiments provided by the present application can be combined arbitrarily to obtain new method or device embodiments, without conflict.

[0175] Those skilled in the art can clearly understand the above-mentioned embodiment method can be realized by means of software and the necessary general hardware platform, of course, also can be through hardware, but many cases the former is the better embodiment. Based on such understanding, the technical solutions of the present application essentially or say the part of the contribution to the prior art can be embodied in the form of software products, the computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), including a number of instructions to make a terminal (may be a mobile phone, computer, server, air conditioner, or network equipment, etc.) executes the method described in various embodiments of the present application.

[0176] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, the above-mentioned specific embodiments are only illustrative, but not limited, those skilled in the art can make many forms without departing from the purpose of the present application and the scope protected by the claims under the inspiration of the present application, which all belong to the protection of the present application.

Claims

1. A method of testing device forwarding performance, characterized in that, The method comprises: In the case that SRv6 TE bidirectional traffic is constructed between the user-side board card and the network-side board card, and first IPv6 unidirectional traffic is constructed between the user-side board card and the first auxiliary board card, a packet loss detection result of the first IPv6 unidirectional traffic is obtained; in the case that SRv6 TE bidirectional traffic is constructed between the user-side board card and the network-side board card, and second IPv6 unidirectional traffic is constructed between the second auxiliary board card and the network-side board card, a packet loss detection result of the second IPv6 unidirectional traffic is obtained; According to the packet loss detection result of the first IPv6 unidirectional traffic and the packet loss detection result of the second IPv6 unidirectional traffic, a first target board card causing packet loss of the SRv6 TE bidirectional traffic in the user-side board card and the network-side board card is determined; In the case that SRv6 TE bidirectional traffic is constructed between the first target board card and the second target board card, and SRv6 TE bidirectional traffic is constructed between the target auxiliary board card and the second target board card, a size of maximum forwarding traffic of the second target board card is tested, wherein the second target board card represents another board card in the user-side board card and the network-side board card except the first target board card, and the target auxiliary board card represents a board card in the first auxiliary board card and the second auxiliary board card which forms a direct communication connection with the second target board card.

2. The method of claim 1, wherein, Before the size of the maximum forwarding traffic of the second target board card is tested, the method further comprises: According to a size of the maximum forwarding traffic of the first target board card determined in advance, a size of first traffic sent by the first target board card to the second target board card is determined; according to the size of the first traffic, a size of second traffic sent by the second target board card to the first target board card is determined; according to the first traffic and the second traffic, SRv6 TE bidirectional traffic is constructed between the first target board card and the second target board card; According to an initially set size of the maximum forwarding traffic of the second target board card and the size of the second traffic, a size of third traffic sent by the second target board card to the target auxiliary board card is determined; according to the size of the third traffic sent by the second target board card to the target auxiliary board card, a size of fourth traffic sent by the target auxiliary board card to the second target board card is determined; according to the third traffic and the fourth traffic, SRv6 TE bidirectional traffic is constructed between the target auxiliary board card and the second target board card.

3. The method of claim 2, wherein, The determination of the size of the second traffic sent by the second target board card to the first target board card according to the size of the first traffic comprises: The size of the second traffic sent by the second target board card to the first target board card is determined according to a product of the size of the first traffic and a first ratio, wherein the first ratio represents a ratio of an amount of data required to be forwarded by the second target board card to an amount of data required to be forwarded by the first target board card for SRv6 TE bidirectional traffic; The size of the second traffic sent by the second target board card to the first target board card is determined according to a product of the size of the first traffic and a first ratio, wherein the first ratio represents a ratio of an amount of data required to be forwarded by the second target board card to an amount of data required to be forwarded by the first target board card for SRv6 TE bidirectional traffic; The method further comprises: The method further comprises:

4. The method of claim 2, wherein, The method further comprises: The method further comprises:

5. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: The method further comprises: The method further comprises:

6. The method of claim 5, wherein, The method further comprises: The method further comprises:

7. The method according to any one of claims 1 to 4, characterized in that, The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further The SRv6 TE bidirectional flow is constructed between the user-side board card and the network-side board card, and in the case that the second IPv6 unidirectional flow is constructed between the second auxiliary board card and the network-side board card, a packet loss detection result of the second IPv6 unidirectional flow is obtained, comprising: The SRv6 TE bidirectional flow is constructed between the user-side board card and the network-side board card, and the size of the SRv6 TE bidirectional flow is gradually increased; in the case that the SRv6 TE bidirectional flow has packet loss, the second IPv6 unidirectional flow is constructed between the second auxiliary board card and the network-side board card; The second IPv6 unidirectional flow is transmitted to obtain a packet loss detection result of the second IPv6 unidirectional flow.

8. A device forwarding performance testing apparatus, characterized by, The device comprises: The device comprises: The device comprises: The device comprises:

9. A test system, characterized by The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The device comprises: The The test system is further configured to determine a first target board card causing packet loss of the SRv6 TE bidirectional traffic from among the user-side board card and the network-side board card according to the packet loss detection result of the first IPv6 unidirectional traffic and the packet loss detection result of the second IPv6 unidirectional traffic. The test system is further configured to construct SRv6 TE bidirectional traffic between the first target board card and a second target board card, and test a maximum forwarding traffic size of the second target board card in a case where SRv6 TE bidirectional traffic is constructed between the second target board card and a target auxiliary board card, wherein the second target board card represents another board card from among the user-side board card and the network-side board card except for the first target board card, and the target auxiliary board card represents a board card from among the first auxiliary board card and the second auxiliary board card that forms a direct communication connection with the second target board card.

10. The test system of claim 9, wherein, The test system is further configured to send routing information of SRv6 service to the user-side board card, the network-side board card, the first auxiliary board card, and the second auxiliary board card respectively. The test system is connected with a control board card, and the test system is further configured to issue parameters of an SRv6 tunnel to the control board card; the routing information of the SRv6 service and the parameters of the SRv6 tunnel are used to implement construction of the SRv6 TE bidirectional traffic.

11. An electronic device, comprising: The electronic device comprises a processor and a memory for storing a computer program capable of running on the processor; wherein, The processor is configured to run the computer program to perform the method of any one of claims 1 to 7.

12. A computer storage medium having stored thereon a computer program, characterized in that The computer program, when executed by the processor, implements the method of any one of claims 1 to 7.

13. A computer program product comprising a computer program, characterized in that, The computer program, when executed by the processor, implements the method of any one of claims 1 to 7. The computer program, when executed by the processor, implements the method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Traffic simulation method and device

    CN115842766A

  • Service measurement method of SRv6 network and SRv6 network

    CN117478564A