Performance test method and device, test equipment and readable storage medium
By running performance test scenarios and adjusting traffic priority, the problem of high threshold for use of TSN testers is solved, the test accuracy is improved, and the performance and congestion control capabilities of TSN switches are verified.
Patent Information
- Application Number
- CN202410975398.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-11-19
AI Technical Summary
The current time-sensitive network (TSN) protocol-related network testers have a high threshold for use, and testers need to manually configure multiple parameters, resulting in low test accuracy.
Provide a performance testing method, by running the performance testing scenario, determine whether the traffic traffic transmitted by the switch meets the network performance threshold, and adjust the traffic priority according to the target traffic value and network performance threshold to ensure the first traffic and the second traffic transmitted by the switch. Network performance of service traffic to achieve accuracy of performance testing of TSN switches.
By simulating the transmission service traffic of the switch during actual use, the test accuracy is improved, the congestion control ability of the TSN switch to forward multiple priority messages is verified, and the maximum forwarding capacity of the TSN switch is accurately measured to meet the deterministic transmission requirements. .
Smart Images

Figure CN118984292A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a performance testing method, apparatus, testing equipment and readable storage medium. Background Art
[0002] Time-Sensitive Networking (TSN) technology is a new generation of Ethernet technology. It complies with the standard Ethernet architecture, has precise traffic scheduling capabilities, and can ensure high-quality transmission of multiple business traffic on the same network. It has technical and cost advantages. It is considered to be one of the evolution directions of the next generation of network bearer technology in many fields such as audio and video transmission, mobile bearer, and in-vehicle network.
[0003] TSN achieves zero congestion and packet loss transmission through a series of protocol standards (IEEE 802.1Qbv, IEEE 802.1Qci, IEEE 802.1Qbu, etc.), provides low latency and jitter with upper bound guarantees, and provides deterministic transmission guarantees for latency-sensitive traffic. At present, the time-sensitive network protocol cluster is basically complete, the technology is becoming mature, and mainstream chip manufacturers, communication equipment manufacturers, and automation manufacturers have released time-sensitive network-related products. At present, the industry's network testers already support the test functions of some TSN protocols, and are mainly designed for industrial network multi-switch interconnection scenarios.
[0004] However, the current TSN protocol-related network testers have a high threshold for use. Testers need to manually configure multiple TSN protocol parameters during the test process, relying on manual experience, and have not formed standardized test logic, resulting in low test accuracy. Summary of the invention
[0005] Based on this, it is necessary to provide a performance testing method, device, testing equipment and readable storage medium that can improve the accuracy of performance testing in response to the above technical problems.
[0006] In a first aspect, the present application provides a performance testing method, comprising:
[0007] According to the test instruction, run the performance test scenario so that the switch in the performance test scenario transmits a first service flow of a target flow value;
[0008] Determine whether the network transmission performance of the switch for transmitting the first service flow meets a first network performance threshold;
[0009] If the requirements are met, then when the switch transmits the first service flow with the target flow value, the flow value of the second service flow transmitted by the switch is adjusted to obtain the flow upper limit value of the second service flow that meets the transmission requirements; the transmission priority of the first service flow is higher than the transmission priority of the second service flow;
[0010] The transmission performance data of the switch is determined according to the target flow value, the first network performance threshold, the flow upper limit value and the second network performance threshold.
[0011] In one embodiment, the transmission requirement includes that the network transmission performance of the switch transmitting the first service traffic meets a first network performance threshold, and the network transmission performance of the switch transmitting the second service traffic meets a second network performance threshold.
[0012] In one embodiment, adjusting the flow value of the second service flow transmitted by the switch to obtain the flow upper limit value of the second service flow that meets the transmission requirement includes:
[0013] Control the switch to transmit a flow value equal to the initial value of the second business flow;
[0014] When the switch transmits the initial value of the second service traffic, determining whether the network transmission performance of the switch transmitting the first service traffic meets the first network performance threshold;
[0015] If not, the initial value is reduced to obtain a new initial value, and the execution control switch is returned to transmit the second service flow with the traffic value of the initial value;
[0016] If so, the initial value is processed according to whether the network transmission performance of the switch for transmitting the second service traffic meets the second network performance threshold to obtain the traffic upper limit value of the second service traffic.
[0017] In one embodiment, the initial value is reduced to obtain a new initial value, including:
[0018] Reduce the initial value by half to get a new initial value.
[0019] In one embodiment, the initial value is processed according to whether the network transmission performance of the switch transmitting the second service traffic meets the second network performance threshold to obtain the traffic upper limit value of the second service traffic, including:
[0020] If the network transmission performance of the switch for transmitting the second service traffic meets the second network performance threshold, the initial value is used as the traffic upper limit value of the second service traffic.
[0021] In one embodiment, the initial value is processed according to whether the network transmission performance of the switch transmitting the second service traffic meets the second network performance threshold to obtain the traffic upper limit value of the second service traffic, including:
[0022] If the network transmission performance of the switch for transmitting the second service traffic does not meet the second network performance threshold, the initial value is adjusted to obtain the traffic upper limit value of the second service traffic.
[0023] In one embodiment, adjusting the initial value to obtain the flow upper limit value of the second service flow includes:
[0024] Reduce the initial value to obtain the test value;
[0025] Control the switch to transmit a flow rate value equal to the test value of the second business flow;
[0026] In the case where the switch transmits the test value of the second service traffic, determining whether the network transmission performance of the switch transmitting the second service traffic meets the second network performance threshold;
[0027] If yes, then when the number of test value adjustments reaches the set threshold, the test value is used as the flow upper limit of the second service flow; when the number of test value adjustments does not reach the set threshold, the test value is increased to obtain a new test value, and the execution control switch transmission flow value is returned to be the test value second service flow;
[0028] If not, the test value is reduced to obtain a new test value, and the execution control switch transmission flow value is returned to be the test value of the second business flow.
[0029] In one of the embodiments, the method further includes: determining a flow sending end and a flow receiving end corresponding to the switch according to an actual usage scenario of the switch;
[0030] A performance test scenario is constructed based on the traffic sender, traffic receiver, and switch; the switch is used to transmit business traffic between the traffic sender and the traffic receiver.
[0031] In one of the embodiments, both the traffic sending end and the traffic receiving end are vehicle-mounted subsystems.
[0032] In a second aspect, the present application also provides a performance testing device, including:
[0033] An operation module is used to run a performance test scenario according to a test instruction, so that the switch in the performance test scenario transmits a first business flow of a target flow value;
[0034] A verification module, used to determine whether the network transmission performance of the switch for transmitting the first service traffic meets a first network performance threshold;
[0035] The adjustment module is used to adjust the flow value of the second business flow transmitted by the switch when the switch transmits the first business flow of the target flow value if the requirement is met, so as to obtain the flow upper limit value of the second business flow under the transmission requirement; the transmission priority of the first business flow is higher than the transmission priority of the second business flow;
[0036] The test module is used to determine the transmission performance data of the switch according to the target flow value, the first network performance threshold, the flow upper limit value and the second network performance threshold.
[0037] In a third aspect, the present application further provides a testing device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0038] According to the test instruction, run the performance test scenario so that the switch in the performance test scenario transmits a first service flow of a target flow value;
[0039] Determine whether the network transmission performance of the switch for transmitting the first service flow meets a first network performance threshold;
[0040] If the requirements are met, then when the switch transmits the first service flow with the target flow value, the flow value of the second service flow transmitted by the switch is adjusted to obtain the flow upper limit value of the second service flow that meets the transmission requirements; the transmission priority of the first service flow is higher than the transmission priority of the second service flow;
[0041] The transmission performance data of the switch is determined according to the target flow value, the first network performance threshold, the flow upper limit value and the second network performance threshold.
[0042] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:
[0043] According to the test instruction, run the performance test scenario so that the switch in the performance test scenario transmits a first service flow of a target flow value;
[0044] Determine whether the network transmission performance of the switch for transmitting the first service flow meets a first network performance threshold;
[0045] If the requirements are met, then when the switch transmits the first service flow with the target flow value, the flow value of the second service flow transmitted by the switch is adjusted to obtain the flow upper limit value of the second service flow that meets the transmission requirements; the transmission priority of the first service flow is higher than the transmission priority of the second service flow;
[0046] The transmission performance data of the switch is determined according to the target flow value, the first network performance threshold, the flow upper limit value and the second network performance threshold.
[0047] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0048] According to the test instruction, run the performance test scenario so that the switch in the performance test scenario transmits a first service flow of a target flow value;
[0049] Determine whether the network transmission performance of the switch for transmitting the first service flow meets a first network performance threshold;
[0050] If the requirements are met, then when the switch transmits the first service flow with the target flow value, the flow value of the second service flow transmitted by the switch is adjusted to obtain the flow upper limit value of the second service flow that meets the transmission requirements; the transmission priority of the first service flow is higher than the transmission priority of the second service flow;
[0051] The transmission performance data of the switch is determined according to the target flow value, the first network performance threshold, the flow upper limit value and the second network performance threshold.
[0052] The above-mentioned performance testing method, device, testing equipment and readable storage medium simulate the working performance of the switch in transmitting business traffic during actual use, provide a testing basis for subsequent performance testing, and improve the test accuracy through the simulation environment; in addition, in the performance test scenario, the switch transmits the first business traffic of the target traffic value, and when the switch transmits the first business traffic of the target traffic value, the traffic value of the second business traffic transmitted by the switch is adjusted, firstly, the switch ensures the network transmission performance and transmission traffic of the first business traffic, and then on this basis, the traffic value of the second business traffic transmitted by the switch is adjusted to determine the traffic upper limit value of the second business traffic under the transmission requirements, verify the congestion control capability of the TSN switch to forward multiple priority messages, and can more accurately measure the maximum forwarding capacity of the TSN switch under the deterministic transmission requirements, thereby achieving the accuracy of the switch performance test. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0054] FIG1 is an application environment diagram of a performance testing method in one embodiment;
[0055] Figure 2A schematic diagram of a performance testing method in one embodiment;
[0056] Figure 3 A schematic diagram of a process for constructing a performance test scenario in an embodiment;
[0057] Figure 4 is a schematic diagram of a performance test scenario in an embodiment;
[0058] Figure 5 A schematic flow chart of a step of obtaining a flow upper limit value of a second service flow that meets a transmission requirement in an embodiment;
[0059] Figure 6 A schematic flow chart of a step of processing an initial value to obtain a flow upper limit value of a second service flow in an embodiment;
[0060] Figure 7 A schematic flow chart of a step of adjusting the initial value to obtain the flow upper limit value of the second service flow in another embodiment;
[0061] FIG8 is a schematic diagram of a flow chart of a test cycle A in one embodiment;
[0062] FIG9 is a schematic diagram of a flow chart of a test cycle B in one embodiment;
[0063] FIG10 is a block diagram of a performance testing device in one embodiment;
[0064] FIG. 11 is a diagram showing the internal structure of a testing device in one embodiment. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0066] The performance testing method provided in the embodiment of the present application can be applied to the application environment as shown in Figure 1, including a test device 102 and a switch 104 that communicate with each other; wherein the switch can be a vehicle-mounted switch.
[0067] In an exemplary embodiment, Figure 2 As shown, a performance testing method is provided, and the method is applied to the test device 102 in FIG. 1 as an example for description, including S201 to S204; wherein:
[0068] S201, running a performance test scenario according to a test instruction, so that a switch in the performance test scenario transmits a first service flow of a target flow value.
[0069] Optionally, the switch in this embodiment is a vehicle-mounted switch, which is an Ethernet switching device designed specifically for vehicle-mounted network environments. It uses Ethernet technology to achieve data exchange and communication between nodes through the vehicle-mounted switch, and supports real-time Ethernet data transmission in complex industrial environments.
[0070] Specifically, the automotive Ethernet onboard switch supports the TSN protocol. TSN (Time Sensitive Network) is a new generation of network technology based on standard Ethernet, designed to provide deterministic, low-latency and high-reliability data transmission capabilities. With the rapid development of electric, intelligent and networked vehicles, the scale and complexity of in-vehicle electronic systems are increasing, which puts higher requirements on the real-time, bandwidth and reliability of vehicle networks. As a key device in the vehicle network, the automotive Ethernet onboard switch needs to support the TSN protocol to meet these requirements.
[0071] The test equipment in this embodiment is a TSN protocol automated test equipment, which is designed for the specific test requirements of the vehicle Ethernet vehicle switch and can automatically perform a series of test tasks to verify the vehicle switch's support for the TSN protocol and its performance. The device usually includes multiple functional modules such as test traffic generation, network monitoring, data analysis and reporting. It can simulate the actual network environment, generate test traffic that complies with the TSN protocol specification, and monitor the processing of the vehicle switch in real time, and finally generate a detailed test report to help evaluate the performance and quality of the vehicle switch.
[0072] Specifically, the TSN protocol automated test equipment pre-builds a performance test scenario for the vehicle switch; in this scenario, the vehicle switch is responsible for connecting multiple sensors (such as lidar, millimeter-wave radar), actuators (such as braking system, steering system) and computing platforms (such as autonomous driving controllers) inside the vehicle. By simulating sensors to send data to the computing platform in real time and receiving control commands from the computing platform, the real-time, reliability and security of the vehicle switch under the support of the TSN protocol are verified. At the same time, the test equipment is used to monitor the processing of the vehicle switch in real time and generate a detailed test report for subsequent analysis and improvement.
[0073] It is understandable that in the automotive Ethernet environment, due to the support of the TSN (Time Sensitive Network) protocol, business traffic can be clearly distinguished into first business traffic and second business traffic. This distinction is mainly based on the different requirements of the business for time sensitivity.
[0074] The first service traffic, also known as time-sensitive service traffic, has strict requirements on transmission delay and jitter. This type of service usually involves key control functions of the vehicle, such as real-time sensor data in autonomous driving, vehicle status information, and control commands that require fast response. In order to ensure the real-time and reliability of these services, the on-board switch needs to give priority to the first service traffic and use the time synchronization and traffic scheduling mechanism provided by the TSN protocol to reduce delay and jitter.
[0075] Secondary service traffic, i.e., non-time-sensitive service traffic, has a higher tolerance for transmission delay and jitter. Such services may include in-vehicle entertainment systems, navigation system updates, vehicle diagnostic data, etc. Although these services have lower real-time requirements, they still require the on-board switch to provide stable transmission services. When processing secondary service traffic, the on-board switch can use a standard Ethernet transmission mechanism without strictly following the time synchronization and traffic scheduling requirements of the TSN protocol.
[0076] Specifically, the TSN protocol automated test device is given a test instruction, wherein the test instruction includes a flow value of the first business flow; and the performance test scenario is driven to run according to the test instruction, so that the on-board switch in the performance test scenario transmits the first business flow of the target flow value.
[0077] S202: Determine whether the network transmission performance of the switch for transmitting the first service flow meets a first network performance threshold.
[0078] Among them, the network transmission performance of the vehicle switch transmitting the first service traffic (i.e., time-sensitive service traffic) refers to the comprehensive reflection of the key performance indicators exhibited by the vehicle switch when processing this type of service traffic. These performance indicators directly reflect the capabilities of the vehicle switch in terms of real-time, reliability, and efficiency, and are crucial to ensuring the stable operation of time-sensitive services. Optionally, network performance indicators may include:
[0079] Latency: Latency refers to the time required for a data packet to be transmitted from the sender to the receiver. Low latency is a basic requirement for time-sensitive services. The onboard switch needs to forward these data packets quickly and accurately to ensure the real-time nature of the service. The quality of latency performance directly affects the response speed of the service and the user experience.
[0080] Jitter: Jitter refers to the instability of data packet transmission time, that is, the difference in delay between adjacent data packets. Jitter can disrupt the continuity of data streams, which is particularly critical for services that require precise time synchronization. The vehicle-mounted switch needs to control jitter within an acceptable range to ensure the continuity and stability of service data.
[0081] Packet Loss Rate: Packet loss rate refers to the proportion of data packets lost during transmission. Packet loss can lead to incomplete data or invalid control commands, which can have a serious impact on time-sensitive services. The onboard switch needs to ensure that packet loss is minimized during transmission to maintain data integrity and accuracy.
[0082] The first network performance threshold refers to whether the performance indicators of the on-board switch reach or exceed the preset threshold standard when transmitting time-sensitive service traffic (i.e., the first service traffic). These performance indicators usually include but are not limited to delay, jitter, packet loss rate, etc. These indicators are crucial to ensure the real-time and reliability of time-sensitive services.
[0083] Accordingly, the first network performance threshold may include the following aspects:
[0084] Delay threshold: The maximum allowable delay when the vehicle switch processes the first service traffic. Delay refers to the time required for a data packet to travel from the sender to the receiver. For time-sensitive services, low latency is a basic requirement. The vehicle switch needs to ensure that the delay does not exceed the preset threshold when processing these service traffic.
[0085] Jitter threshold: Jitter refers to the instability of data packet transmission time, that is, the delay difference between adjacent data packets. For services that require precise time synchronization, jitter is also an important indicator. The vehicle-mounted switch needs to control jitter within an acceptable range to ensure service continuity and stability.
[0086] Packet loss rate threshold: Packet loss rate refers to the proportion of data packets lost during transmission. For time-sensitive services, packet loss may result in incomplete data or invalid control commands, so the vehicle switch needs to ensure that the packet loss rate is lower than the preset threshold.
[0087] Specifically, determining whether the network transmission performance of the on-board switch for transmitting the first business traffic meets the first network performance threshold means comparing the network transmission performance of the first business traffic with the first network performance threshold. If the network transmission performance of the first business traffic falls within the threshold interval corresponding to the first network performance threshold, then it is determined that the network transmission performance of the on-board switch for transmitting the first business traffic meets the first network performance threshold; otherwise, it is determined that the network transmission performance of the on-board switch for transmitting the first business traffic does not meet the first network performance threshold.
[0088] S203, if the requirement is met, then when the switch transmits the first service flow of the target flow value, the flow value of the second service flow transmitted by the switch is adjusted to obtain the flow upper limit value of the second service flow that meets the transmission requirement.
[0089] Among them, the transmission priority of the first business traffic is higher than the transmission priority of the second business traffic.
[0090] In this embodiment, priority is given to ensuring that the vehicle-mounted switch can transmit the first business flow of the target flow value, and then the flow value of the second business flow is adjusted to obtain the flow upper limit value of the second business flow that meets the transmission requirements; in order to verify that the vehicle-mounted switch can simultaneously process the flow values of business flows of different priorities while ensuring the transmission quality.
[0091] S204: Determine the transmission performance data of the switch according to the target flow value, the first network performance threshold, the flow upper limit value, and the second network performance threshold.
[0092] Specifically, the target flow value and the flow upper limit value represent the flow value of the vehicle switch processing business flows of different priorities at the same time, and the first network performance threshold and the second network performance threshold represent the performance of the vehicle switch when processing the above flow values.
[0093] Specifically, based on the above four parameters, the transmission performance of the vehicle-mounted switch can be comprehensively evaluated.
[0094] It is understandable that the performance of the vehicle switch under different traffic loads (from the target traffic value to the traffic upper limit value) is examined to see whether it is stable and whether it can meet the preset network performance standards (i.e., the first network performance threshold and the second network performance threshold). If the vehicle switch can maintain stable performance under all considered traffic loads and meet the preset network performance standards, then it can be considered that the transmission performance of the vehicle switch is good. On the contrary, if the performance of the vehicle switch degrades under certain traffic loads or fails to meet the preset network performance standards, then it is necessary to further optimize or adjust the configuration of the vehicle switch.
[0095] The above performance test method runs the performance test scenario to simulate the working performance of the vehicle-mounted switch in transmitting business traffic during actual use, provides a test basis for subsequent performance tests, and improves the test accuracy through the simulation environment; in addition, in the performance test scenario, the vehicle-mounted switch transmits the first business traffic of the target traffic value, and when the vehicle-mounted switch transmits the first business traffic of the target traffic value, the traffic value of the second business traffic transmitted by the vehicle-mounted switch is adjusted, firstly, the vehicle-mounted switch guarantees the network transmission performance and transmission traffic of the first business traffic, and then on this basis, the traffic value of the second business traffic transmitted by the vehicle-mounted switch is adjusted to determine the traffic upper limit value of the second business traffic under the transmission requirements, verify the congestion control capability of the TSN vehicle-mounted switch to forward multiple priority messages, and can more accurately measure the maximum forwarding capacity of the TSN vehicle-mounted switch under the deterministic transmission requirements, thereby achieving the accuracy of the performance test of the vehicle-mounted switch.
[0096] In an exemplary embodiment, Figure 3 As shown, build a performance test scenario, including:
[0097] S301, determining a traffic sending end and a traffic receiving end corresponding to the switch according to an actual usage scenario of the switch.
[0098] It is understandable that the actual use scenario of the vehicle switch refers to the topological connection relationship when the vehicle switch interacts with other devices in the vehicle environment. Specifically, in the actual use scenario, the vehicle switch will receive data packets from various sensors and controllers inside the vehicle and external devices (such as smartphones, Internet services, etc.) through its various ports.
[0099] Specifically, the traffic sending end and the traffic receiving end corresponding to the vehicle-mounted switch refer to devices that perform business interaction with the vehicle-mounted switch.
[0100] S302, construct a performance test scenario based on the traffic sending end, the traffic receiving end and the switch.
[0101] Specifically, according to the topological relationship between the traffic sending end, the traffic receiving end and the vehicle-mounted switch in the actual scenario, a communication connection is established between the traffic sending end, the traffic receiving end and the vehicle-mounted switch to obtain a performance test scenario.
[0102] Among them, the on-board switch is used to transmit business traffic between the traffic sending end and the traffic receiving end.
[0103] Specifically, the traffic sending end and the traffic receiving end are both vehicle-mounted subsystems.
[0104] Among them, the vehicle subsystem is a general term for a series of devices and systems used for monitoring, control, communication and passenger services on the vehicle. It usually includes multiple submodules or subsystems, such as the vehicle signal system, the vehicle passenger information system (PIS), the vehicle wireless communication subsystem, the vehicle network system, etc.
[0105] For example, in an autonomous driving scenario, a vehicle switch supporting the TSN protocol connects multiple vehicle subsystems. The vehicle subsystems can be various sensors, cameras, central consoles, vehicle control systems, 5G communication modules, and WiFi modules. When building a performance test scenario, it is necessary to configure the parameters of the above vehicle subsystems. Specific parameter types may include the priority of sending messages, message length, and traffic bandwidth. After the configuration is completed, the corresponding test instructions are sent to the performance test scenario, and simulated traffic (i.e., the first business traffic and the second business traffic mentioned above) can be created in the performance test scenario.
[0106] The following describes in detail the communication relationship between the various vehicle-mounted subsystems and the traffic transmission characteristics:
[0107] 1) If the on-board subsystem is a vehicle speed (accelerator / brake) sensor, the typical sampling frequency of the on-board subsystem is 1kHz, and the data characteristics are high-frequency small packet length, 1k messages per second, and each message length is fixed, that is, 2 512kbps data streams are simulated for each sensor, and the packet length is 64 bytes. When the on-board subsystem is the traffic sender, the corresponding traffic receivers are the vehicle control system and the intelligent central control system. The traffic sent to the vehicle control system has the highest priority P0, which is used for vehicle posture judgment and emergency control; the traffic sent to the intelligent central control system has a priority of P1, which is used for autonomous driving vehicle information collection.
[0108] 2) If the vehicle-mounted subsystem is a lidar sensor, the typical sampling frequency of the vehicle-mounted subsystem is 10kHz, simulating a 10Mbps data stream, with a packet length of 128 bytes and a priority of P1. When the vehicle-mounted subsystem is the traffic sender, the corresponding traffic receiver is sent to the intelligent central control system for autonomous driving to identify the surrounding environment;
[0109] 3) If the on-board subsystem is an intelligent central control system and a vehicle control system, the intelligent central control system and the vehicle control system send a 5Mbps data stream in both directions, with a packet length of 64 bytes and a priority of P0, which is used to send autonomous driving commands and status reports.
[0110] 4) If the vehicle-mounted subsystem is a vehicle-mounted camera, the typical traffic of the vehicle-mounted subsystem is a 5Mbps data stream with a packet length of 1518 bytes and a priority of P2. The simulated compressed video data is transmitted to the intelligent central control system for driving records and real-time 3D rendering of autonomous driving.
[0111] 5) Create bidirectional traffic between the intelligent central control system and the 5G communication module. The traffic bandwidth is random traffic between 1Kbps and 1Mbps, the message length is random between 64 and 1518 bytes, the priority is P3, and the upload and download of data such as voice recognition and navigation road conditions of the central control are simulated.
[0112] 6) Create two-way traffic between the vehicle-mounted WiFi module and the 5G communication module. The upload traffic bandwidth is random traffic between 1Kbps and 1Mbps, and the download traffic bandwidth is random traffic between 1Kbps and 100Mbps. The message length is IMIX and the priority is P4, simulating background traffic such as video playback and games.
[0113] In the above performance test scenario, the sensor continuously sends data to the vehicle control system and the intelligent central control system, the vehicle control system continuously monitors the sensor information, and the intelligent central control system issues operation instructions to the vehicle control system and obtains feedback based on the received information. In addition, according to their own test scenarios, users can modify the traffic bandwidth, packet length, priority and transmission destination address (the address of the traffic receiving end) between different preset devices, and manually add and delete simulated devices to create a data flow that meets their own test environment.
[0114] In this embodiment, test traffic that meets the requirements is automatically constructed based on the simulated performance test scenario, eliminating the need for testers to manually configure subsystem parameters and traffic characteristics, thereby simplifying the test operation.
[0115] It is understandable that in the process of adjusting the second service flow, the network transmission performance of the first service flow may be affected due to the change of the second service flow. Therefore, the transmission requirements in this embodiment may include the following two situations:
[0116] In one achievable method (method 1), the transmission requirements include that the network transmission performance of the on-board switch for transmitting the first service traffic meets the first network performance threshold within an error range, and the network transmission performance of the on-board switch for transmitting the second service traffic meets the second network performance threshold.
[0117] In another possible implementation manner (method 2), the transmission requirements include that the network transmission performance of the on-board switch for transmitting the first service traffic meets the first network performance threshold, and the network transmission performance of the on-board switch for transmitting the second service traffic meets the second network performance threshold.
[0118] In the case of the above-mentioned method 2, the flow value of the first business flow is set to the target value, and the network transmission performance of the vehicle-mounted switch transmitting the first business flow meets the first network performance threshold, then the first test process of adjusting the flow value of the second business flow transmitted by the vehicle-mounted switch is entered, which is recorded as "test cycle A".
[0119] like Figure 5 As shown, in test cycle A, the flow value of the second service flow transmitted by the on-board switch is adjusted to obtain the flow upper limit value of the second service flow that meets the transmission requirements, including:
[0120] S501, controlling the switch to transmit a second service flow with a flow value equal to an initial value.
[0121] In the test cycle A, N rounds of testing are first performed (N is a positive integer greater than 0), and in each round of testing, Continue to increase the flow rate of the second service flow until the flow rate value of the second service flow corresponding to the vehicle switch reaches the initial value (ie, the initial value N ).
[0122] S502: When the switch transmits an initial value of second service flows, determine whether the network transmission performance of the switch transmitting the first service flow meets a first network performance threshold.
[0123] Specifically, in test cycle A, starting from the N+1th round of testing, it is determined whether the network transmission performance of the switch for transmitting the first service traffic meets the first network performance threshold.
[0124] S503, if not, then reduce the initial value to obtain a new initial value, and return the execution control switch transmission flow value to be the initial value of the second business flow.
[0125] It can be understood that if the network transmission performance of the switch transmitting the first service traffic does not meet the first network performance threshold, it means that the increase of the second service traffic affects the network transmission performance of the first service traffic.
[0126] In this case, based on the premise of ensuring the transmission quality of the first service flow, the initial value needs to be reduced. After the reduction, the execution returns to implement the loop S501, S502 and S503.
[0127] Optionally, the initial value is reduced to obtain a new initial value, including: reducing the initial value by half to obtain a new initial value.
[0128] For example, in the N+1 round of testing, Reduce the flow rate of each second service flow, wherein .
[0129] At the end of the N+1 round of testing, determine whether the network transmission performance of the switch transmitting the first service flow meets the first network performance threshold. If the network transmission performance of the switch transmitting the first service flow does not meet the first network performance threshold, the flow size of the second service flow in the N+2 round of testing will continue to decrease. ;
[0130] ;
[0131] Among them, X is the round value calculated from round N+1 (X=N+1-N).
[0132] S504: If yes, the initial value is processed according to whether the network transmission performance of the switch for transmitting the second service flow meets the second network performance threshold to obtain the flow upper limit value of the second service flow.
[0133] It can be understood that if the network transmission performance of the switch transmitting the first service traffic meets the first network performance threshold, it means that the increase of the second service traffic does not affect the network transmission performance of the first service traffic at this time;
[0134] In this case, the second business traffic value is adjusted upward, and after the adjustment, the initial value is processed according to whether the network transmission performance of the on-board switch for transmitting the second business traffic meets the second network performance threshold to obtain the traffic upper limit value of the second business traffic.
[0135] For example, at the end of the N+1 round of testing, it is determined whether the network transmission performance of the switch transmitting the first service flow meets the first network performance threshold. If the network transmission performance of the switch transmitting the first service flow meets the first network performance threshold, the flow size of the second service flow in the N+2 round of testing is increased. .
[0136] Specifically, according to whether the network transmission performance of the on-board switch for transmitting the second service traffic meets the second network performance threshold, the initial value is processed to obtain the traffic upper limit value of the second service traffic, including:
[0137] Verify whether the network transmission performance of the on-board switch for transmitting the second business traffic meets the second network performance threshold. If so, the initial value can be directly used as the traffic upper limit value of the second business traffic. If not, the traffic value of the second business traffic can be reduced to obtain a traffic upper limit value that meets the second network performance threshold.
[0138] Furthermore, the round value X in the test loop A corresponds to a first preset number of times. When X≥the first preset number of times and the network transmission performance of the on-board switch for transmitting the first business traffic meets the first network performance threshold, and the network transmission performance of the on-board switch for transmitting the second business traffic meets the second network performance threshold, the upper limit value of the second business traffic is determined and the test ends; when X≥the first preset number of times and the network transmission performance of the on-board switch for transmitting the first business traffic meets the first network performance threshold, and the network transmission performance of the on-board switch for transmitting the second business traffic does not meet the second network performance threshold, further debugging of the second business traffic is performed.
[0139] Enter into further debugging of the second service flow, that is, Figure 6 As shown, according to whether the network transmission performance of the on-board switch for transmitting the second service flow meets the second network performance threshold, the initial value is processed to obtain the flow upper limit value of the second service flow, including:
[0140] S601: If the network transmission performance of the switch for transmitting the second service traffic meets the second network performance threshold, the initial value is used as the traffic upper limit of the second service traffic.
[0141] S602: If the network transmission performance of the switch for transmitting the second service flow does not meet the second network performance threshold, the initial value is adjusted to obtain a flow upper limit value of the second service flow.
[0142] In this embodiment, the process of adjusting the initial value to obtain the flow upper limit value of the second service flow is recorded as "test cycle B".
[0143] Specifically, Figure 7 As shown, in "test cycle B", the initial value is adjusted to obtain the flow upper limit value of the second service flow, including:
[0144] S701, reduce the initial value to obtain a test value.
[0145] Specifically, in "Test Cycle B", in the first N rounds of testing, each round of testing is performed according to Continue to reduce the flow value of the second service flow to obtain the test value (test value = initial value - N ).
[0146] S702, controlling the switch to transmit a second service flow with a flow value equal to a test value.
[0147] S703: When the switch transmits a test value of second service traffic, determine whether the network transmission performance of the switch transmitting the second service traffic meets a second network performance threshold.
[0148] Specifically, at the end of the Nth round of testing, it is determined whether the network transmission performance of the switch for transmitting the second service traffic meets the second network performance threshold.
[0149] S704, if yes, then when the test value adjustment times reaches the set threshold, the test value is used as the traffic upper limit value of the second business traffic; when the test value adjustment times does not reach the set threshold, the test value is increased to obtain a new test value, and the execution control switch transmission traffic value is returned to be the test value of the second business traffic.
[0150] Specifically, if the network transmission performance of the switch transmitting the second business traffic meets the second network performance threshold, it means that the test value may be adjusted too much downward from the initial value, causing the test value at this time to meet the second network performance threshold. In this case, you can try to continue to increase the test value to verify whether the increased test value can meet the second network performance threshold to approach the upper limit of the second business traffic.
[0151] For example, the N+1 round of testing is changed to Increase the flow value of each second service flow to obtain an updated test value; wherein, .
[0152] When the vehicle-mounted switch transmits the increased test value of the second service flow, the process returns to the execution again to determine whether the network transmission performance of the switch transmitting the second service flow meets the second network performance threshold.
[0153] Specifically, at the end of the N+1th round of testing, it is determined whether the network transmission performance of the switch for transmitting the second service traffic meets the second network performance threshold.
[0154] S705, if not, then reduce the test value to obtain an updated test value, and return the execution control switch transmission flow value to be the test value of the second business flow.
[0155] It can be understood that if the network transmission performance of the switch transmitting the second business traffic does not meet the second network performance threshold, it means that the above-mentioned increase in processing may be too large, and the substantial increase in the transmitted second business traffic has affected the transmission quality of the second business traffic. At this time, the test value needs to be reduced again.
[0156] For example, the N+2 round of testing reduces the flow rate of the second service flow.
[0157] ;
[0158] Among them, X is the round value calculated from round N+1 (X=N+1-N).
[0159] In addition, if the network transmission performance of the switch for transmitting the second service traffic meets the second network performance threshold, it means that there is still room for increasing the increase in the above-mentioned processing, and the process returns to execute S702, S703 and S704.
[0160] It can be understood that the round value Y in the test loop B corresponds to a second preset number of times. When Y ≥ the second preset number of times (and the "set threshold" in S704) and the network transmission performance of the on-board switch for transmitting the second business traffic meets the second network performance threshold, the increased test value will be used as the traffic upper limit value of the second business traffic, the test loop B will be exited, and the test will be ended.
[0161] In this embodiment, at the end of the above-mentioned test cycle A and test cycle B, the target traffic value, the first network performance threshold, the traffic upper limit value and the second network performance threshold are used as indicators for evaluating the deterministic transmission capability of the TSN vehicle-mounted switch in a multi-priority service mixed scenario.
[0162] The above performance test method is applicable to mixed scenarios involving multi-priority vehicle network services. It verifies the congestion control capability of TSN vehicle switches in forwarding messages of various priorities. For the deterministic transmission capability of time-sensitive services, by introducing test loop A and test loop B, the increase and decrease step size of the test traffic is adjusted in real time according to the results of each cycle, so as to more accurately measure the maximum forwarding capacity of TSN vehicle switches while meeting the deterministic transmission requirements.
[0163] In an exemplary embodiment, as shown in FIG8 , the execution process of the test cycle A is as follows:
[0164] When the flow value of the first service flow is the target value, and the network transmission performance of the vehicle switch for transmitting the first service flow meets the first network performance threshold, enter loop test A:
[0165] In test cycle A, the on-board switch is controlled to transmit a flow value of the initial value of the second service flow; wherein the initial value is STEP A ;
[0166] Determine whether the network transmission performance of the switch for transmitting the first service flow meets a first network performance threshold;
[0167] If not, then according to STEP A The initial value is reduced by half to obtain the updated initial value, and X=X+1 is updated;
[0168] After the update, based on the updated initial value, determining whether the network transmission performance of the switch for transmitting the first service traffic meets the first network performance threshold;
[0169] If so, and X is less than the first preset number, then according to the updated STEP A Half of the value, determine the upward adjustment amplitude, obtain the updated initial value, and update X=X+1;
[0170] If X is greater than or equal to the first preset number of times, and the network transmission performance of the on-board switch for transmitting the second business traffic meets the second network performance threshold, the test ends; otherwise, enter test loop B.
[0171] In an exemplary embodiment, as shown in FIG9 , the execution process of the test cycle B is as follows:
[0172] In test cycle B, the on-board switch is controlled to transmit a flow value of the test value of the second service flow; wherein the initial value is STEP B ;
[0173] Determine whether the network transmission performance of the switch for transmitting the second service traffic meets a second network performance threshold;
[0174] If not, then according to STEP B The test value is adjusted downward to obtain the updated test value, and Y= Y=+1 is updated;
[0175] After the update, based on the updated test value, determining whether the network transmission performance of the switch for transmitting the second service traffic meets the second network performance threshold;
[0176] If Y is less than the second preset number, then according to the updated STEP B half of the value, determine the upward adjustment amplitude, obtain the updated test value again, and update Y=Y+1;
[0177] If Y is greater than or equal to the second preset number, the test ends.
[0178] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0179] Based on the same inventive concept, the embodiment of the present application also provides a performance testing device for implementing the performance testing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more performance testing device embodiments provided below can refer to the limitations on the performance testing method above, and will not be repeated here.
[0180] In an exemplary embodiment, as shown in FIG10 , a performance testing device is provided, including: an operation module 11, a verification module 12, an adjustment module 13 and a test module 14, wherein:
[0181] An operation module 11 is used to run a performance test scenario according to a test instruction, so that the switch in the performance test scenario transmits a first service flow of a target flow value;
[0182] A verification module 12, used to determine whether the network transmission performance of the switch transmitting the first service traffic meets a first network performance threshold;
[0183] The adjustment module 13 is used to adjust the flow value of the second business flow transmitted by the switch when the switch transmits the first business flow of the target flow value, so as to obtain the flow upper limit value of the second business flow under the transmission requirement; the transmission priority of the first business flow is higher than the transmission priority of the second business flow;
[0184] The testing module 14 is used to determine the transmission performance data of the switch according to the target flow value, the first network performance threshold, the flow upper limit value and the second network performance threshold.
[0185] In one embodiment, the transmission requirement includes that the network transmission performance of the switch transmitting the first service traffic meets a first network performance threshold, and the network transmission performance of the switch transmitting the second service traffic meets a second network performance threshold.
[0186] In one embodiment, the adjustment module 12 is further used to: control the switch to transmit a flow value of an initial value of a second service flow;
[0187] When the switch transmits the initial value of the second service traffic, determining whether the network transmission performance of the switch transmitting the first service traffic meets the first network performance threshold;
[0188] If not, the initial value is reduced to obtain a new initial value, and the execution control switch is returned to transmit the second service flow with the traffic value of the initial value;
[0189] If so, the initial value is processed according to whether the network transmission performance of the switch for transmitting the second service traffic meets the second network performance threshold to obtain the traffic upper limit value of the second service traffic.
[0190] In one embodiment, the adjustment module 12 is further used to reduce the initial value by half to obtain a new initial value.
[0191] In one embodiment, the adjustment module 12 is further configured to: if the network transmission performance of the switch for transmitting the second service traffic meets the second network performance threshold, use the initial value as the traffic upper limit of the second service traffic.
[0192] In one embodiment, the adjustment module 12 is further used to: if the network transmission performance of the switch for transmitting the second service traffic does not meet the second network performance threshold, adjust the initial value to obtain the traffic upper limit value of the second service traffic.
[0193] In one embodiment, the adjustment module 12 is further used to: reduce the initial value to obtain a test value;
[0194] Control the switch to transmit a flow rate value equal to the test value of the second business flow;
[0195] In the case where the switch transmits the test value of the second service traffic, determining whether the network transmission performance of the switch transmitting the second service traffic meets the second network performance threshold;
[0196] If yes, the test value is increased to obtain the increased test value;
[0197] When the switch transmits the increased test value of the second service flow, determining whether the network transmission performance of the switch transmitting the second service flow meets the second network performance threshold;
[0198] If not, the increased test value is reduced to obtain an updated test value, and the execution control switch transmission flow value is returned to be the test value times the second service flow;
[0199] If so, the increased test value will be used as the traffic upper limit of the second service traffic.
[0200] In one of the embodiments, the device further includes a construction module, which is used to: determine a flow sending end and a flow receiving end corresponding to the switch according to an actual usage scenario of the switch;
[0201] A performance test scenario is constructed based on the traffic sender, traffic receiver, and switch; the switch is used to transmit business traffic between the traffic sender and the traffic receiver.
[0202] In one of the embodiments, both the traffic sending end and the traffic receiving end are vehicle-mounted subsystems.
[0203] Each module in the above performance test equipment can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the test equipment in the form of hardware, or can be stored in the memory in the test equipment in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0204] In an exemplary embodiment, a test device is provided, which can be a server, and its internal structure diagram can be shown in Figure 11. The test device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the test device is used to provide computing and control capabilities. The memory of the test device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the test device is used to store data of the performance test method. The input / output interface of the test device is used to exchange information between the processor and the external device. The communication interface of the test device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a performance test method is implemented.
[0205] Those skilled in the art will understand that the structure shown in FIG. 11 is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the test equipment to which the scheme of the present application is applied. The specific test equipment may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0206] In an exemplary embodiment, a test device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0207] According to the test instruction, run the performance test scenario so that the switch in the performance test scenario transmits a first service flow of a target flow value;
[0208] Determine whether the network transmission performance of the switch for transmitting the first service flow meets a first network performance threshold;
[0209] If the requirements are met, then when the switch transmits the first service flow with the target flow value, the flow value of the second service flow transmitted by the switch is adjusted to obtain the flow upper limit value of the second service flow that meets the transmission requirements; the transmission priority of the first service flow is higher than the transmission priority of the second service flow;
[0210] The transmission performance data of the switch is determined according to the target flow value, the first network performance threshold, the flow upper limit value and the second network performance threshold.
[0211] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0212] According to the test instruction, run the performance test scenario so that the switch in the performance test scenario transmits a first service flow of a target flow value;
[0213] Determine whether the network transmission performance of the switch for transmitting the first service flow meets a first network performance threshold;
[0214] If the requirements are met, then when the switch transmits the first service flow with the target flow value, the flow value of the second service flow transmitted by the switch is adjusted to obtain the flow upper limit value of the second service flow that meets the transmission requirements; the transmission priority of the first service flow is higher than the transmission priority of the second service flow;
[0215] The transmission performance data of the switch is determined according to the target flow value, the first network performance threshold, the flow upper limit value and the second network performance threshold.
[0216] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0217] According to the test instruction, run the performance test scenario so that the switch in the performance test scenario transmits a first service flow of a target flow value;
[0218] Determine whether the network transmission performance of the switch for transmitting the first service flow meets a first network performance threshold;
[0219] If the requirements are met, then when the switch transmits the first service flow with the target flow value, the flow value of the second service flow transmitted by the switch is adjusted to obtain the flow upper limit value of the second service flow that meets the transmission requirements; the transmission priority of the first service flow is higher than the transmission priority of the second service flow;
[0220] The transmission performance data of the switch is determined according to the target flow value, the first network performance threshold, the flow upper limit value and the second network performance threshold.
[0221] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0222] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0223] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A performance testing method, characterized in that: The method comprises: According to the test instruction, run the performance test scenario so that the switch in the performance test scenario transmits a first service flow of a target flow value; Determine whether the network transmission performance of the switch transmitting the first service flow meets a first network performance threshold; If the requirement is met, then when the switch transmits the first service flow of the target flow value, the flow value of the second service flow transmitted by the switch is adjusted to obtain the flow upper limit value of the second service flow that meets the transmission requirement; the transmission priority of the first service flow is higher than the transmission priority of the second service flow; The transmission performance data of the switch is determined according to the target flow value, the first network performance threshold and the flow upper limit value.
2. The method according to claim 1, characterized in that The transmission requirement includes that the network transmission performance of the switch for transmitting the first service flow meets the first network performance threshold, and the network transmission performance of the switch for transmitting the second service flow meets the second network performance threshold.
3. The method according to claim 2, characterized in that The adjusting the flow value of the second service flow transmitted by the switch to obtain the flow upper limit value of the second service flow that meets the transmission requirement includes: Control the switch to transmit a flow value equal to an initial value of a second service flow; In a case where the switch transmits the initial value of the second service traffic, determining whether the network transmission performance of the switch transmitting the first service traffic meets the first network performance threshold; If not, the initial value is reduced to obtain a new initial value, and the control is returned to execute the second service flow of controlling the switch to transmit a flow value of the initial value; If so, the initial value is processed according to whether the network transmission performance of the switch for transmitting the second service flow meets the second network performance threshold to obtain the flow upper limit value of the second service flow.
4. The method according to claim 3, characterized in that The reducing process of the initial value to obtain a new initial value includes: Half of the initial value is used as the new initial value.
5. The method according to claim 3, characterized in that: The processing of the initial value to obtain the flow upper limit value of the second service flow according to whether the network transmission performance of the switch transmitting the second service flow meets the second network performance threshold value includes: If the network transmission performance of the switch for transmitting the second service flow meets the second network performance threshold, the initial value is used as the flow upper limit value of the second service flow.
6. The method according to claim 3, characterized in that The processing of the initial value to obtain the flow upper limit value of the second service flow according to whether the network transmission performance of the switch transmitting the second service flow meets the second network performance threshold value includes: If the network transmission performance of the switch for transmitting the second service flow does not meet the second network performance threshold, the initial value is adjusted to obtain a flow upper limit value of the second service flow.
7. The method according to claim 6, characterized in that The adjusting the initial value to obtain the flow upper limit value of the second service flow includes: Performing reduction processing on the initial value to obtain a test value; Control the switch to transmit a flow value equal to the test value of the second service flow; In a case where the switch transmits the test value of the second service traffic, determining whether the network transmission performance of the switch transmitting the second service traffic meets the second network performance threshold; If so, when the number of test value adjustments reaches the set threshold, the test value is used as the flow upper limit value of the second service flow; when the number of test value adjustments does not reach the set threshold, the test value is increased to obtain a new test value, and the control of the switch transmission flow value is returned to the second service flow of the test value; If not, the test value is reduced to obtain a new test value, and the control is returned to execute the control of the switch to transmit a flow value equal to the test value times the second business flow.
8. The method according to claim 1, characterized in that The method further comprises: According to the actual usage scenario of the switch, determine the flow sending end and the flow receiving end corresponding to the switch; The performance test scenario is constructed based on the traffic sending end, the traffic receiving end and the switch; wherein the switch is used to transmit business traffic between the traffic sending end and the traffic receiving end.
9. The method according to claim 8, characterized in that The switch is a vehicle-mounted switch, and the traffic sending end and the traffic receiving end are both vehicle-mounted subsystems.
10. A performance testing device, characterized in that: The device comprises: An operation module, used to operate a performance test scenario according to a test instruction, so that the switch in the performance test scenario transmits a first service flow of a target flow value; A verification module, used to determine whether the network transmission performance of the switch transmitting the first service flow meets a first network performance threshold; an adjustment module, configured to adjust the flow value of the second business flow transmitted by the switch when the switch transmits the first business flow of the target flow value, so as to obtain a flow upper limit value of the second business flow under the transmission requirement; the transmission priority of the first business flow is higher than the transmission priority of the second business flow; The test module is used to determine the transmission performance data of the switch according to the target flow value, the first network performance threshold and the flow upper limit value.
11. A test device, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
