Vehicle-mounted network simulation test method, device, equipment, storage medium and program product
By creating a topology model of the vehicle network and conducting simulation tests of the traffic shaping mechanism, the problem of communication quality optimization and utilization improvement in vehicle network design is solved, efficient network design and development is achieved, and costs and time expenditures are reduced.
Patent Information
- Application Number
- CN202410741191.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-23
Smart Images

Figure CN118540256A
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a vehicle network simulation test method, device, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] With the development of technologies such as intelligent driving and vehicle safety, the complexity of vehicle electronic systems continues to increase. At the network level, as the load rate of traditional networks (such as CAN) continues to increase and the application of new buses (such as CANFD and Ethernet) becomes more and more popular, how to analyze, evaluate and optimize various vehicle networks, while ensuring the communication quality of the vehicle network and improving the bus utilization rate, has become an issue of increasing concern to major vehicle companies. In addition, the design requirements of vehicle networks of different models are different. How to make full use of relevant network design and analysis tools to form an automated tool chain from design to simulation to optimization, thereby effectively improving network design work efficiency and saving project time has gradually attracted attention. Summary of the invention
[0003] Based on this, it is necessary to provide a vehicle network simulation test method, device, computer equipment, computer readable storage medium and computer program product to address the above technical problems, which can simulate the operation of the vehicle Ethernet network and obtain reliable results, thus saving manpower, time and testing costs for vehicle model development.
[0004] In a first aspect, the present application provides a vehicle network simulation test method, comprising:
[0005] Create a topology model corresponding to the vehicle Ethernet network; the topology model includes device nodes and switches;
[0006] Add data flows to nodes that communicate with each other, analyze the transmission path of each data flow in the topology model, and assign priority information to each data flow;
[0007] Generate shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and priority information;
[0008] According to the topology model, shaping configuration information and simulation configuration parameters, the operation of the vehicle Ethernet network is simulated and tested to obtain simulation test results;
[0009] Analyze the simulation test results and output the simulation analysis results.
[0010] In one embodiment, the simulation test results include simulation trace information, end-to-end delay data, link bandwidth usage information, and switch memory information.
[0011] In one embodiment, the simulation analysis results include delay analysis results, high latency analysis results, bandwidth analysis results, and memory analysis results; the simulation test results are analyzed and the simulation analysis results are output, including:
[0012] According to the simulation tracking information and end-to-end delay data, the delay impact information of the current traffic shaping mechanism is analyzed to obtain the delay analysis results;
[0013] Based on the end-to-end delay data, the end-to-end information with delay greater than the set threshold is analyzed to obtain high delay analysis results;
[0014] According to the link bandwidth usage information, analyzing the link information exceeding the preset bandwidth limit to obtain the bandwidth analysis result;
[0015] According to the switch memory information, it is analyzed whether the used memory of each switch in the topology model exceeds the preset memory threshold, and the memory analysis result is obtained.
[0016] In one of the embodiments, after allocating priority information to each data stream, the method further includes:
[0017] Identify various traffic shaping mechanisms;
[0018] For each traffic shaping mechanism, the shaping configuration information corresponding to the traffic shaping mechanism is generated according to the transmission path and priority information. According to the topology model, the generated shaping configuration information and the simulation configuration parameters, the operation of the vehicle Ethernet network is simulated and tested to obtain the simulation test results corresponding to each traffic shaping mechanism.
[0019] The simulation test results corresponding to various traffic shaping mechanisms are analyzed, and a target traffic shaping mechanism that meets the preset delay requirements is selected from the various traffic shaping mechanisms.
[0020] In one of the embodiments, the current traffic shaping mechanism includes a time-aware shaping mechanism; generating shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and priority information includes:
[0021] A gating list corresponding to the time-aware shaping mechanism is generated according to the transmission path and priority information; the gating list is used to control the data stream with high priority to be transmitted preferentially in the topology model.
[0022] In one embodiment, the data flow includes command and control traffic, audio traffic, video traffic and data traffic, and the command and control traffic has the highest priority in the priority information.
[0023] In a second aspect, the present application also provides a vehicle network simulation test device, comprising:
[0024] A creation module is used to create a topology model corresponding to the vehicle Ethernet network; the topology model includes device nodes and switches;
[0025] An adding module, used for adding data streams for nodes communicating with each other, analyzing the transmission path of each data stream in the topology model, and assigning priority information to each data stream;
[0026] A configuration module, used to generate shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and priority information;
[0027] The simulation module is used to simulate the operation of the vehicle Ethernet network according to the topology model, shaping configuration information and simulation configuration parameters to obtain simulation test results;
[0028] The analysis module is used to analyze the simulation test results and output the simulation analysis results.
[0029] In a third aspect, the present application further provides a computer 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:
[0030] Create a topology model corresponding to the vehicle Ethernet network; the topology model includes device nodes and switches;
[0031] Add data flows to nodes that communicate with each other, analyze the transmission path of each data flow in the topology model, and assign priority information to each data flow;
[0032] Generate shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and priority information;
[0033] According to the topology model, shaping configuration information and simulation configuration parameters, the operation of the vehicle Ethernet network is simulated and tested to obtain simulation test results;
[0034] Analyze the simulation test results and output the simulation analysis results.
[0035] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0036] Create a topology model corresponding to the vehicle Ethernet network; the topology model includes device nodes and switches;
[0037] Add data flows to nodes that communicate with each other, analyze the transmission path of each data flow in the topology model, and assign priority information to each data flow;
[0038] Generate shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and priority information;
[0039] According to the topology model, shaping configuration information and simulation configuration parameters, the operation of the vehicle Ethernet network is simulated and tested to obtain simulation test results;
[0040] Analyze the simulation test results and output the simulation analysis results.
[0041] 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:
[0042] Create a topology model corresponding to the vehicle Ethernet network; the topology model includes device nodes and switches;
[0043] Add data flows to nodes that communicate with each other, analyze the transmission path of each data flow in the topology model, and assign priority information to each data flow;
[0044] Generate shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and priority information;
[0045] According to the topology model, shaping configuration information and simulation configuration parameters, the operation of the vehicle Ethernet network is simulated and tested to obtain simulation test results;
[0046] Analyze the simulation test results and output the simulation analysis results.
[0047] The above-mentioned vehicle network simulation test method, device, computer equipment, computer-readable storage medium and computer program product create a topology model corresponding to the vehicle Ethernet network; the topology model includes device nodes and switches; add data streams for nodes that communicate with each other, analyze the transmission path of each data stream in the topology model, and assign priority information to each data stream; generate shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and priority information; simulate and test the operation of the vehicle Ethernet network according to the topology model, shaping configuration information and simulation configuration parameters to obtain simulation test results; analyze the simulation test results and output simulation analysis results. Through the above-mentioned method, the operation of the vehicle Ethernet network can be simulated and tested to obtain reliable results; by analyzing the simulation test results, network problems can be discovered and optimized, saving manpower, time and testing costs for vehicle model development. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments of the present application or the 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.
[0049] Figure 1 A schematic diagram of a process flow of a vehicle network simulation test method in one embodiment;
[0050] Figure 2 A schematic diagram of a flow chart of a vehicle network simulation test method in another embodiment;
[0051] Figure 3 is a schematic diagram of a topology model in an embodiment;
[0052] Figure 4 is a schematic diagram of a gating list in one embodiment;
[0053] Figure 5 is a structural block diagram of a vehicle network simulation test device in an embodiment;
[0054] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0055] 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.
[0056] In an exemplary embodiment, Figure 1 As shown, a vehicle network simulation test method is provided. This embodiment uses the method applied to a computer as an example for illustration. It can be understood that the method can also be applied to a server, and can also be applied to a system including a computer and a server, and is implemented through the interaction between the computer and the server. In this embodiment, the method includes the following steps:
[0057] Step 102, creating a topology model corresponding to the vehicle Ethernet network; the topology model includes device nodes and switches.
[0058] Among them, the vehicle Ethernet network refers to the Ethernet network designed in advance by developers for one or some vehicle models. The vehicle Ethernet network is used to connect multiple electrical devices on the vehicle.
[0059] In one implementation, multiple device node models corresponding to the vehicle Ethernet network are created (each device node model corresponds to an electrical device in the vehicle, such as an ECU, audio and video system, etc.), and basic options are configured for each device node model, such as the transmission stack configuration (TxStackConfigurations) using the Queue option, the clock drift (ClockDriftConfigs) is set to 2ppm, and the node start offset configuration (NodeStartOffsetConfigs) uses a random startup time difference of 10ms, etc. Switches are deployed according to the vehicle Ethernet network, and multiple device nodes are connected through the switches to obtain a topology model.
[0060] Step 104, adding data flows for the nodes that communicate with each other, analyzing the transmission path of each data flow in the topology model, and assigning priority information to each data flow.
[0061] Among them, according to the pre-set data flow information (including data flow identification, data flow direction, data flow type, etc.), add data flow (FrameFlow) for the nodes that communicate with each other, create a path (Routing) corresponding to each data flow in the topology model, and assign priority information to each data flow according to the data flow type. It can be understood that different data flow types have different corresponding priorities, and the higher the criticality of the data flow, the higher its corresponding priority.
[0062] In one implementation, a preset optimal routing plug-in is used to analyze the optimal paths of all data flows in the topology model, and the optimal paths obtained by the analysis are used as the transmission paths of each data flow in the topology model.
[0063] Step 106: Generate shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and priority information.
[0064] Among them, the current traffic shaping mechanism can be the traffic shaping mechanism involved in AVB (audio / video bridging) and TSN (time-sensitive network), specifically, it can be any one of the CBS (credit-based) shaping mechanism, TAS (time-aware) shaping mechanism, frame preemption mechanism, CQF (cyclic queuing and forwarding) shaping mechanism, and ATS (asynchronous traffic) shaping mechanism.
[0065] In one implementation, a priority plug-in and a shaping plug-in are used to simulate data frames carrying virtual LAN tags (VLAN-Tags), and according to the priority information, the current traffic shaping mechanism is used to configure shaping configuration information for all queues in the topology model (using a FIFO data structure), so that the switches in the topology model have a traffic shaping function, ensuring that the data stream can be transmitted in accordance with the priority information and the traffic shaping mechanism in the transmission path. Optionally, the data stream supports TSN AS, Qci, and CB protocols.
[0066] Step 108, performing a simulation test on the operation of the vehicle Ethernet network according to the topology model, shaping configuration information and simulation configuration parameters to obtain a simulation test result.
[0067] The simulation configuration parameters (SystemConfig) are parameters required for the simulation configured in advance, such as clock drift, data stream transmission protocol (eg, TCP, TFTP, etc.), simulation duration, etc.
[0068] In one implementation, a simulation environment is provided for simulation testing based on simulation configuration parameters, and the operation of the vehicle Ethernet network over a period of time is simulated based on the topology model. Each device node and switch transmits data streams according to the traffic shaping function configured by the shaping configuration information. After the simulation test is completed, the simulation test results are output based on the simulation software.
[0069] Optionally, the simulation test result includes simulation tracking information, specifically, displaying the data frame sending time point and queue waiting status in the form of a Gantt chart.
[0070] Step 110, analyzing the simulation test results and outputting the simulation analysis results.
[0071] Among them, by analyzing the simulation test results, the problems existing in the vehicle Ethernet network are determined, providing data support for subsequent actual vehicle testing and vehicle model development.
[0072] In the above-mentioned vehicle network simulation test method, a topology model corresponding to the vehicle Ethernet network is created; the topology model includes device nodes and switches; data streams are added to the nodes that communicate with each other, the transmission path of each data stream in the topology model is analyzed, and priority information is assigned to each data stream; shaping configuration information corresponding to the current traffic shaping mechanism is generated according to the transmission path and priority information; the operation of the vehicle Ethernet network is simulated and tested according to the topology model, shaping configuration information and simulation configuration parameters to obtain simulation test results; the simulation test results are analyzed and the simulation analysis results are output. Through the above-mentioned method, the operation of the vehicle Ethernet network can be simulated and tested to obtain reliable results; by analyzing the simulation test results, network problems can be discovered and optimized, saving manpower, time and testing costs for vehicle model development.
[0073] In an exemplary embodiment, the simulation test results include simulation trace information, end-to-end delay data, link bandwidth usage information, and switch memory information.
[0074] Among them, simulation tracking information (Traces) is used to indicate the time point of data frame transmission and the queuing waiting situation. Optionally, the simulation tracking information is displayed in the form of a Gantt chart. End-to-end delay data refers to the total time parameter experienced by the data flow from the source node to the destination node. Optionally, according to the probability of occurrence of each end-to-end delay data, the average delay, maximum delay and other information can be determined. Statistics on link bandwidth usage information and switch memory information can analyze the link bandwidth occupancy rate and switch memory occupancy, providing data guidance for network extension.
[0075] In an exemplary embodiment, the simulation analysis results include delay analysis results, high delay analysis results, bandwidth analysis results and memory analysis results; step 110 includes: analyzing the delay impact information of the current traffic shaping mechanism according to the simulation tracking information and the end-to-end delay data to obtain the delay analysis result; analyzing the end-to-end information with a delay greater than a set threshold according to the end-to-end delay data to obtain the high delay analysis result; analyzing the link information that exceeds the preset bandwidth limit according to the link bandwidth usage information to obtain the bandwidth analysis result; analyzing whether the used memory of each switch in the topology model exceeds the preset memory threshold according to the switch memory information to obtain the memory analysis result.
[0076] Among them, the simulation test results are analyzed, including the following contents:
[0077] 1. Analyze the impact of various traffic shaping mechanisms on latency based on simulation tracking information and end-to-end latency data, obtain latency impact information, and record it as latency analysis results. For example, using the TAS mechanism, the latency of a queue is greatly shortened and jitter is reduced. For another example, using CBS audio and video streams can reduce queuing time and latency for low-priority data.
[0078] 2. Based on the end-to-end delay data, on the one hand, it is possible to analyze whether the maximum delay meets the preset delay requirements; on the other hand, it is possible to analyze the scenarios and causes of higher delays (i.e., delays greater than the set threshold), and record end-to-end information with delays greater than the set threshold.
[0079] 3. Based on the link bandwidth usage information, determine whether the bandwidth usage of each network link exceeds the preset bandwidth limit (the preset bandwidth limit, such as 100M or 1000M, can be set according to the actual situation), determine the link information that exceeds the preset bandwidth limit, and obtain the bandwidth analysis result. The bandwidth analysis result can indicate which links still have room for improving bandwidth utilization, providing data support for network scalability.
[0080] 4. According to the switch memory information, analyze whether the used memory of each switch in the topology model exceeds the preset memory threshold (the preset memory threshold can be the maximum cache limit of the switch) to obtain the memory analysis result. The memory analysis result can provide data support for the switch memory expansion, and can ensure that the switch memory capacity is large enough, so that frame loss will not occur due to insufficient switch memory in the most congested network environment.
[0081] In this embodiment, by modeling the electrical equipment involved in the vehicle Ethernet network communication, the vehicle communication model can be simulated and calculated, and the end-to-end delay in the design scheme, the worst delay with an extremely small probability, the bandwidth usage load on each link, and the switch memory usage can be accurately analyzed. This can provide data support and lay a theoretical foundation for subsequent actual vehicle testing and vehicle model development, effectively improve the scalability and pressure-bearing capacity of the vehicle network architecture, and can effectively deal with the problem of incompatibility of the current vehicle topology caused by the addition of new electrical equipment.
[0082] In an exemplary embodiment, Figure 2 As shown, after step 104, the method further includes:
[0083] Step 202, determining multiple traffic shaping mechanisms.
[0084] Among them, the multiple traffic shaping mechanisms can be at least two of the CBS (credit-based) shaping mechanism, TAS (time-aware) shaping mechanism, frame preemption mechanism, CQF (cyclic queuing and forwarding) shaping mechanism, and ATS (asynchronous traffic) shaping mechanism.
[0085] Step 204, for each traffic shaping mechanism, generate shaping configuration information corresponding to the traffic shaping mechanism according to the transmission path and priority information, perform simulation test on the operation of the vehicle Ethernet network according to the topology model, the generated shaping configuration information and the simulation configuration parameters, and obtain the simulation test results corresponding to each traffic shaping mechanism.
[0086] Among them, each traffic shaping mechanism corresponds to different shaping configuration information. Based on multiple traffic shaping mechanisms, multiple shaping configuration information can be configured for all queues in the topology model, so that the switches in the topology model have different traffic shaping functions. In the specific implementation, a simulation environment is provided for the simulation test based on the simulation configuration parameters. Based on the topology model, the operation of the vehicle Ethernet network over a period of time is simulated and tested. Each device node and switch transmits the data stream according to the traffic shaping function configured by the multiple shaping configuration information, and outputs the simulation test results corresponding to each traffic shaping mechanism.
[0087] In one implementation, the multiple traffic shaping mechanisms are selected by the user according to actual needs. Optionally, a ZeroConfig module is used to select multiple traffic shaping mechanisms with one click.
[0088] Step 206: Analyze the simulation test results corresponding to the various traffic shaping mechanisms, and select a target traffic shaping mechanism that meets the preset delay requirement from the various traffic shaping mechanisms.
[0089] Among them, under the premise of given preset delay requirements, the delay of all traffic shaping mechanisms is calculated, and a shaping solution that meets the requirements is given.
[0090] In this embodiment, the vehicle Ethernet network is simulated and tested according to a variety of traffic shaping mechanisms, which can help users quickly determine the traffic shaping scheme that meets the latency requirements, thereby improving the efficiency of vehicle model development.
[0091] In an exemplary embodiment, the current traffic shaping mechanism includes a time-aware shaping mechanism; step 106 includes: generating a gating list corresponding to the time-aware shaping mechanism based on the transmission path and priority information; the gating list is used to control high-priority data streams to be transmitted preferentially in the topology model.
[0092] Among them, shaping configuration information is automatically configured for each queue in the topology model according to the transmission path and priority information. Specifically, a gating list corresponding to each queue is set so that the switch in the topology model has a traffic shaping function. Through the gating list corresponding to each queue, high-priority data flows are controlled to be transmitted first in the topology model. When the high-priority data flow is completed, the low-priority data flow is allowed to start transmission. In this way, the end-to-end delay of key data flows can be reduced and transmission jitter can be reduced.
[0093] In an exemplary embodiment, the data flow includes command and control traffic, audio traffic, video traffic, and data traffic, and the command and control traffic has the highest priority in the priority information.
[0094] Among them, four types of data flows are defined in the embodiment of the present application, namely command and control (C&C) flow, audio (Audio) flow, video (Video) flow and data (Data) flow. Since the delay and jitter requirements of C&C flow are the highest, the priority of command and control flow is set to the highest, so as to verify the delay of C&C flow.
[0095] In an exemplary embodiment, the vehicle network simulation test method includes the following steps:
[0096] 1. Establish a device node model and configure parameters, and configure basic options, such as using the Queue option for the transmission stack configuration (TxStackConfigurations), setting the clock drift (ClockDriftConfigs) to 2ppm, and using a random start time difference of 10ms for the node start offset configuration (NodeStartOffsetConfigs).
[0097] 2. Deploy switches according to the vehicle Ethernet network, and connect multiple device nodes through switches to obtain a topology model. Figure 3 , Figure 3 A topology model is shown, which includes two switch nodes (R1 and R2) and eight device nodes (ES_1 to ES_8). The switch provides communication channels for multiple device nodes to form the vehicle Ethernet network topology.
[0098] 3. Four types of traffic are used in the simulation test, namely C&C control traffic, Audio traffic, Video traffic and Data traffic. Since the latency and jitter requirements of C&C control traffic are the highest, the command and control traffic is given the highest priority to verify the latency of C&C control traffic.
[0099] Configure related parameters, including: define traffic type, define send and receive MAP (sender, receiver, etc. of data flow), configure target C&C queue TAS gating list, and execute simulation steps. Figure 3 , you can view the transmission path of data flow in the topology model. Figure 4 , Figure 4 A gating list is shown, which is intelligently generated according to priority ranking. Figure 4 The gating list corresponding to port 5 in switch R1 is shown. In a specific implementation, the gating list of each device node or port of the switch can be configured to control the transmission of the data stream.
[0100] 4. Set the simulation duration, for example 15 minutes, to simulate 15 minutes of data operation.
[0101] 5. Output simulation results. Referring to Table 1, Table 1 shows the comparison results of TAS shaping mechanisms.
[0102] Table 1:
[0103]
[0104]
[0105]
[0106] Among them, according to Table 1, it can be determined that after processing based on the TAS shaping mechanism, the delay of C&C control traffic is reduced by more than 0.3ms compared with the strict priority method, such as Frame_CC_3, Frame_CC_4, etc. in Table 1. Using the TAS shaping mechanism can greatly reduce the transmission delay of key data and ensure the reliability of data transmission.
[0107] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned 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 does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can 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 to be 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.
[0108] Based on the same inventive concept, the embodiment of the present application also provides a vehicle network simulation test device for implementing the vehicle network simulation test 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 one or more vehicle network simulation test device embodiments provided below can refer to the limitations of the vehicle network simulation test method above, and will not be repeated here.
[0109] In an exemplary embodiment, Figure 5 As shown, a vehicle network simulation test device is provided, comprising:
[0110] The creation module 502 is used to create a topology model corresponding to the vehicle Ethernet network; the topology model includes device nodes and switches.
[0111] The adding module 504 is used to add data flows for the nodes that communicate with each other, analyze the transmission path of each data flow in the topology model, and assign priority information to each data flow.
[0112] The configuration module 506 is used to generate shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and priority information.
[0113] The simulation module 508 is used to perform simulation test on the operation of the vehicle Ethernet network according to the topology model, shaping configuration information and simulation configuration parameters to obtain simulation test results.
[0114] The analysis module 510 is used to analyze the simulation test results and output the simulation analysis results.
[0115] In the above-mentioned vehicle network simulation test device, a topology model corresponding to the vehicle Ethernet network is created; the topology model includes device nodes and switches; data streams are added to the nodes that communicate with each other, the transmission path of each data stream in the topology model is analyzed, and priority information is assigned to each data stream; shaping configuration information corresponding to the current traffic shaping mechanism is generated according to the transmission path and priority information; the operation of the vehicle Ethernet network is simulated and tested according to the topology model, shaping configuration information and simulation configuration parameters to obtain simulation test results; the simulation test results are analyzed and the simulation analysis results are output. Through the above-mentioned method, the operation of the vehicle Ethernet network can be simulated and tested to obtain reliable results; by analyzing the simulation test results, network problems can be discovered and optimized, saving manpower, time and testing costs for vehicle model development.
[0116] In an exemplary embodiment, the simulation test results include simulation trace information, end-to-end delay data, link bandwidth usage information, and switch memory information.
[0117] In an exemplary embodiment, the simulation analysis results include delay analysis results, high delay analysis results, bandwidth analysis results and memory analysis results; the analysis module 510 is also used to analyze the delay impact information of the current traffic shaping mechanism based on the simulation tracking information and the end-to-end delay data to obtain the delay analysis result; based on the end-to-end delay data, analyze the end-to-end information with a delay greater than a set threshold to obtain the high delay analysis result; based on the link bandwidth usage information, analyze the link information that exceeds the preset bandwidth limit to obtain the bandwidth analysis result; based on the switch memory information, analyze whether the used memory of each switch in the topology model exceeds the preset memory threshold to obtain the memory analysis result.
[0118] In an exemplary embodiment, the simulation module 508 is further used to determine a plurality of traffic shaping mechanisms; for each traffic shaping mechanism, shaping configuration information corresponding to the traffic shaping mechanism is generated according to the transmission path and priority information; and according to the topology model, the generated shaping configuration information and the simulation configuration parameters, the operation of the vehicle Ethernet network is simulated and tested to obtain the simulation test results corresponding to each traffic shaping mechanism;
[0119] The analysis module 510 is further used to analyze the simulation test results corresponding to the various traffic shaping mechanisms, and select a target traffic shaping mechanism that meets the preset delay requirement from the various traffic shaping mechanisms.
[0120] In an exemplary embodiment, the current traffic shaping mechanism includes a time-aware shaping mechanism; the configuration module 506 is also used to generate a gating list corresponding to the time-aware shaping mechanism based on the transmission path and priority information; the gating list is used to control high-priority data streams to be transmitted preferentially in the topology model.
[0121] In an exemplary embodiment, the data flow includes command and control traffic, audio traffic, video traffic, and data traffic, and the command and control traffic has the highest priority in the priority information.
[0122] Each module in the above-mentioned vehicle network simulation test device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0123] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer 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 computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a vehicle network simulation test method is implemented.
[0124] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0125] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: creating a topology model corresponding to the vehicle Ethernet network; the topology model includes device nodes and switches; adding data streams for nodes that communicate with each other, analyzing the transmission path of each data stream in the topology model, and assigning priority information to each data stream; generating shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and priority information; performing simulation testing on the operation of the vehicle Ethernet network according to the topology model, the shaping configuration information and the simulation configuration parameters to obtain simulation test results; analyzing the simulation test results and outputting the simulation analysis results.
[0126] In one embodiment, when the processor executes the computer program, the following steps are also implemented: according to the simulation tracking information and the end-to-end delay data, the delay impact information of the current traffic shaping mechanism is analyzed to obtain the delay analysis result; according to the end-to-end delay data, the end-to-end information with a delay greater than a set threshold is analyzed to obtain the high delay analysis result; according to the link bandwidth usage information, the link information exceeding the preset bandwidth limit is analyzed to obtain the bandwidth analysis result; according to the switch memory information, the used memory of each switch in the topology model is analyzed to determine whether it exceeds the preset memory threshold to obtain the memory analysis result.
[0127] In one embodiment, when the processor executes the computer program, the following steps are also implemented: determining multiple traffic shaping mechanisms; for each traffic shaping mechanism, generating shaping configuration information corresponding to the traffic shaping mechanism according to the transmission path and priority information, and performing simulation tests on the operation of the vehicle Ethernet network according to the topology model, the generated shaping configuration information and the simulation configuration parameters to obtain simulation test results corresponding to each traffic shaping mechanism; analyzing the simulation test results corresponding to the multiple traffic shaping mechanisms, and selecting a target traffic shaping mechanism that meets the preset delay requirements from the multiple traffic shaping mechanisms.
[0128] In one embodiment, when the processor executes the computer program, the following steps are also implemented: generating a gating list corresponding to the time-aware shaping mechanism according to the transmission path and priority information; the gating list is used to control the data stream with high priority to be transmitted preferentially in the topology model.
[0129] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: creating a topology model corresponding to the entire vehicle Ethernet network; the topology model includes device nodes and switches; adding data streams for nodes that communicate with each other, analyzing the transmission path of each data stream in the topology model, and assigning priority information to each data stream; generating shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and priority information; performing simulation testing on the operation of the entire vehicle Ethernet network according to the topology model, the shaping configuration information and the simulation configuration parameters to obtain simulation test results; analyzing the simulation test results and outputting the simulation analysis results.
[0130] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: according to the simulation tracking information and the end-to-end delay data, the delay impact information of the current traffic shaping mechanism is analyzed to obtain the delay analysis result; according to the end-to-end delay data, the end-to-end information with a delay greater than a set threshold is analyzed to obtain the high delay analysis result; according to the link bandwidth usage information, the link information exceeding the preset bandwidth limit is analyzed to obtain the bandwidth analysis result; according to the switch memory information, the used memory of each switch in the topology model is analyzed to determine whether it exceeds the preset memory threshold to obtain the memory analysis result.
[0131] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining multiple traffic shaping mechanisms; for each traffic shaping mechanism, generating shaping configuration information corresponding to the traffic shaping mechanism according to the transmission path and priority information, and performing simulation tests on the operation of the vehicle Ethernet network according to the topology model, the generated shaping configuration information and the simulation configuration parameters to obtain simulation test results corresponding to each traffic shaping mechanism; analyzing the simulation test results corresponding to the multiple traffic shaping mechanisms, and selecting a target traffic shaping mechanism that meets the preset delay requirements from the multiple traffic shaping mechanisms.
[0132] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: a gating list corresponding to the time-aware shaping mechanism is generated according to the transmission path and priority information; the gating list is used to control the transmission of high-priority data streams in the topology model first.
[0133] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: creating a topology model corresponding to a vehicle Ethernet network; including device nodes and switches in the topology model; adding data streams for nodes that communicate with each other, analyzing the transmission path of each data stream in the topology model, and assigning priority information to each data stream; generating shaping configuration information corresponding to a current traffic shaping mechanism according to the transmission path and priority information; performing simulation testing on the operation of the vehicle Ethernet network according to the topology model, the shaping configuration information and the simulation configuration parameters to obtain simulation test results; analyzing the simulation test results and outputting the simulation analysis results.
[0134] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: according to the simulation tracking information and the end-to-end delay data, the delay impact information of the current traffic shaping mechanism is analyzed to obtain the delay analysis result; according to the end-to-end delay data, the end-to-end information with a delay greater than a set threshold is analyzed to obtain the high delay analysis result; according to the link bandwidth usage information, the link information exceeding the preset bandwidth limit is analyzed to obtain the bandwidth analysis result; according to the switch memory information, the used memory of each switch in the topology model is analyzed to determine whether it exceeds the preset memory threshold to obtain the memory analysis result.
[0135] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: determining multiple traffic shaping mechanisms; for each traffic shaping mechanism, generating shaping configuration information corresponding to the traffic shaping mechanism according to the transmission path and priority information, and performing simulation tests on the operation of the vehicle Ethernet network according to the topology model, the generated shaping configuration information and the simulation configuration parameters to obtain simulation test results corresponding to each traffic shaping mechanism; analyzing the simulation test results corresponding to the multiple traffic shaping mechanisms, and selecting a target traffic shaping mechanism that meets the preset delay requirements from the multiple traffic shaping mechanisms.
[0136] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: a gating list corresponding to the time-aware shaping mechanism is generated according to the transmission path and priority information; the gating list is used to control the transmission of high-priority data streams in the topology model first.
[0137] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0138] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods 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.
[0139] 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.
[0140] 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 vehicle network simulation test method, characterized in that: The method comprises: Creating a topology model corresponding to the vehicle Ethernet network; the topology model includes device nodes and switches; adding data flows for nodes that communicate with each other, analyzing a transmission path of each data flow in the topology model, and assigning priority information to each data flow; Generate shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and the priority information; According to the topology model, the shaping configuration information and the simulation configuration parameters, a simulation test is performed on the operation of the vehicle Ethernet network to obtain a simulation test result; The simulation test results are analyzed and the simulation analysis results are output.
2. The method according to claim 1, characterized in that: The simulation test results include simulation tracking information, end-to-end delay data, link bandwidth usage information, and switch memory information.
3. The method according to claim 2, characterized in that The simulation analysis results include delay analysis results, high delay analysis results, bandwidth analysis results and memory analysis results; The step of analyzing the simulation test results and outputting the simulation analysis results includes: Analyze the delay impact information of the current traffic shaping mechanism according to the simulation tracking information and the end-to-end delay data to obtain a delay analysis result; According to the end-to-end delay data, analyzing the end-to-end information whose delay is greater than a set threshold, and obtaining a high delay analysis result; Analyze the link information exceeding the preset bandwidth limit according to the link bandwidth usage information to obtain a bandwidth analysis result; According to the switch memory information, it is analyzed whether the used memory of each switch in the topology model exceeds a preset memory threshold to obtain a memory analysis result.
4. The method according to claim 1, characterized in that After allocating priority information to each data stream, the method further includes: Identify various traffic shaping mechanisms; For each traffic shaping mechanism, shaping configuration information corresponding to the traffic shaping mechanism is generated according to the transmission path and the priority information, and the operation of the vehicle Ethernet network is simulated and tested according to the topology model, the generated shaping configuration information and the simulation configuration parameters to obtain the simulation test results corresponding to each traffic shaping mechanism; The simulation test results corresponding to the multiple traffic shaping mechanisms are analyzed, and a target traffic shaping mechanism that meets the preset delay requirement is selected from the multiple traffic shaping mechanisms.
5. The method according to any one of claims 1 to 4, characterized in that: The current traffic shaping mechanism includes a time-aware shaping mechanism; The generating, according to the transmission path and the priority information, shaping configuration information corresponding to the current traffic shaping mechanism includes: Generate a gating list corresponding to a time-aware shaping mechanism according to the transmission path and the priority information; The gating list is used to control data streams with high priority to be transmitted preferentially in the topology model.
6. The method according to claim 5, characterized in that The data flow includes command and control traffic, audio traffic, video traffic and data traffic, and the command and control traffic has the highest priority in the priority information.
7. A vehicle network simulation test device, characterized in that: The device comprises: A creation module is used to create a topology model corresponding to the vehicle Ethernet network; the topology model includes device nodes and switches; An adding module, used for adding data streams for mutually communicating nodes, analyzing a transmission path of each data stream in the topology model, and assigning priority information to each data stream; A configuration module, configured to generate shaping configuration information corresponding to the current traffic shaping mechanism according to the transmission path and the priority information; A simulation module, used to perform a simulation test on the operation of the vehicle Ethernet network according to the topology model, the shaping configuration information and the simulation configuration parameters, and obtain a simulation test result; The analysis module is used to analyze the simulation test results and output the simulation analysis results.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. 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 6 are implemented.
10. 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 6 are implemented.
Citation Information
Cited By
Vehicle-mounted Ethernet time sensitive traffic planning method based on TSN
CN119561883A
Vehicle-mounted Ethernet automatic test platform and test method thereof
CN121262130A
