Stability test method and system for vehicle-mounted Ethernet ring network, and medium

By building different testing environments and performing pre-processing and testing in the on-board Ethernet network, the problem of unstable ERPS function of the on-board Ethernet network is solved, and the test reliability and functional stability are improved.

CN119892702AActive Publication Date: 2025-04-25CHONGQING CHANGAN TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311397282.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-25
Publication Date
2025-04-25
Estimated Expiration
2043-10-25

AI Technical Summary

Technical Problem

The ERPS function of the on-board Ethernet network is not stable enough, resulting in chaotic data flow and affecting the normal operation of the vehicle use process.

Method used

It provides a stability testing method for on-board Ethernet ring networks, and accurately tests the ring protection switching function and ring recovery and back-cut function of on-board Ethernet ring networks by building different testing environments (part-level and system-level) and pre-processing technologies.

Benefits of technology

It improves the stability testing reliability of the ERPS function of the vehicle-mounted Ethernet ring network, ensuring the stability and reliability of the vehicle-mounted Ethernet ring network in different testing environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119892702A_ABST
    Figure CN119892702A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted Ethernet ring network stability test method and system and a medium, the vehicle-mounted Ethernet ring network comprises a master node, an adjacent node and at least one slave node, the master node is connected with the adjacent node through a ring protection link, and the stability test method comprises the following steps: according to a preset test requirement, the slave node is connected with the adjacent node through a ring protection link; establishing a test environment corresponding to the vehicle-mounted Ethernet ring network; wherein the ring network protection switching function of the vehicle-mounted Ethernet ring network in the test environment is normally operated; performing preprocessing matched with a preset test scene on an initial to-be-tested object corresponding to the vehicle-mounted Ethernet ring network in the test environment to obtain a target to-be-tested object in the preset test scene; and testing the looped network protection switching function and the looped network recovery back-switching function in sequence on the target to-be-tested object to obtain a test result. Therefore, the stability test can be carried out on the target to-be-tested object corresponding to the vehicle-mounted Ethernet ring network in the preset test scene more accurately and conveniently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile detection technology, and in particular to a stability testing method, system and medium for an on-vehicle Ethernet ring network. Background Art

[0002] Vehicle-mounted Ethernet ring networks are widely used in vehicle-mounted systems due to their advantages in high bandwidth, high reliability, low electromagnetic radiation, and low power consumption, and they assume the main responsibility for data transmission. At the same time, if the Ethernet Ring Protection Switching (ERPS) function is not stable enough, it will directly lead to the disorder of the data flow on the vehicle-mounted Ethernet ring channel, which will cause the correct implementation of the upper-layer functions that rely on the data flow. In severe cases, it will lead to serious failure problems during the use of the vehicle. Summary of the invention

[0003] The purpose of this application is to provide a stability testing method, system and medium for an on-board Ethernet ring network, which can accurately and conveniently test the target object to be tested corresponding to the on-board Ethernet ring network in a preset test scenario under a relevant test environment (different test environments built based on different test requirements), thereby providing a basis for improving the stability of the on-board Ethernet ring network ERPS and ensuring the reliability of the on-board Ethernet ring network ERPS function.

[0004] The embodiment of the present application provides a stability test method for an in-vehicle Ethernet ring network, wherein the in-vehicle Ethernet ring network includes: a master node, an adjacent node, and at least one slave node, wherein the master node is connected to the adjacent node via a ring protection link, and the stability test method includes:

[0005] According to the preset test requirements, a test environment corresponding to the vehicle-mounted Ethernet ring network is established; wherein the ring network protection switching function of the vehicle-mounted Ethernet ring network located in the test environment operates normally;

[0006] Performing preprocessing to match a preset test scenario on an initial object to be tested corresponding to the vehicle-mounted Ethernet ring network located in the test environment, so as to obtain a target object to be tested in the preset test scenario;

[0007] The ring network protection switching function and the ring network recovery switching function are tested in sequence for the target object to be tested to obtain test results.

[0008] In some embodiments of the present application, the test environment corresponding to the vehicle-mounted Ethernet ring network is built according to preset test requirements, including: when the preset test requirement is to perform system-level testing on the vehicle-mounted Ethernet ring network, a first test device is used to control multiple test units to access the link between any two nodes in the vehicle-mounted Ethernet ring network to obtain a system-level test environment corresponding to the vehicle-mounted Ethernet ring network; wherein the test unit is used to perform data simulation and data collection; when the preset test requirement is to test the node under test, a second test device is used to simulate the control unit of a node directly connected to the node under test in the vehicle-mounted Ethernet ring network to obtain a component-level test environment corresponding to the vehicle-mounted Ethernet ring network; wherein the node under test is any node in the vehicle-mounted Ethernet ring network.

[0009] In this way, by building different test environments (component-level test environment and system-level test environment), a basis is provided for the subsequent stability testing of the vehicle-mounted Ethernet ring network under different test environments, thereby being able to more comprehensively ensure the reliability of the stability testing of the vehicle-mounted Ethernet ring network ERPS.

[0010] In some embodiments of the present application, the initial object to be tested corresponding to the on-board Ethernet ring network located in the test environment is preprocessed to match a preset test scenario to obtain a target object to be tested in the preset test scenario, including: using a preset power supply module to provide a reference power supply voltage to the initial object to be tested to obtain an intermediate object to be tested; and preprocessing the intermediate object to be tested to match the preset test scenario to obtain the target object to be tested.

[0011] In this way, the initial object to be tested corresponding to the on-board Ethernet ring network in the test environment is powered on to ensure the normal operation of the initial object to be tested, and the normally operating initial object to be tested is preprocessed to match the preset test scenario, so that the target object to be tested in the preset test scenario can be obtained, thereby providing a basis for subsequent stability testing of related functions of the target object to be tested.

[0012] In some embodiments of the present application, the test environment includes: a system-level test environment corresponding to the on-board Ethernet ring network, wherein a preset power supply module is used to provide a reference power supply voltage to the initial object to be tested to obtain an intermediate object to be tested, including: using a first power supply module in the system-level test environment to provide a first reference voltage to the initial system to be tested corresponding to the on-board Ethernet ring network to obtain an intermediate system to be tested; and preprocessing the intermediate object to be tested to match the preset test scenario to obtain the target object to be tested, including: preprocessing the intermediate system to be tested to match the preset test scenario to obtain the target system to be tested.

[0013] In this way, in the system-level test environment, the intermediate system under test corresponding to the vehicle-mounted Ethernet ring network is powered on, that is, a reference voltage is provided to the intermediate system under test, thereby providing a basis for subsequent stability testing of the vehicle-mounted Ethernet ring network in multiple different scenarios in the system-level test environment.

[0014] In some embodiments of the present application, the preprocessing of the intermediate system to be tested to match the preset test scenario to obtain the target system to be tested includes: using the programmable power supply module in the system-level test environment to adjust the power supply voltage of the intermediate system to be tested from the first reference voltage to the first intermediate voltage, and then from the first intermediate voltage to the first reference voltage according to a preset voltage adjustment step, to obtain the target system to be tested in a scenario after power supply voltage fluctuation; or, using the test unit in the system-level test environment to send a sleep wake-up condition to each node in the intermediate system to be tested, to obtain the target system to be tested in a scenario after network sleep wake-up; or, using the test unit in the system-level test environment to simulate sending an Ethernet message with a network bus load rate corresponding to the control higher than a first preset value to two ports of each node in the intermediate system to be tested, to obtain the target system to be tested in a scenario corresponding to a high network load; or, using the programmable power supply module in the system-level test environment, power-on each node in the intermediate system to be tested according to a plurality of different node access sequences, to obtain the target system to be tested in a scenario corresponding to the power-on link.

[0015] In this way, by performing different preprocessing on the intermediate system to be tested (such as: in the scenario after the power supply voltage fluctuates, the power supply voltage corresponding to the intermediate system to be tested is adjusted for fluctuations; in the scenario after the network is awakened from sleep, each node in the intermediate system to be tested is put into sleep and awakened; in the scenario corresponding to the high network load, relevant messages are sent to the two ports of each node in the intermediate system to be tested to obtain the target system to be tested in which the relevant network bus load is higher than a certain value; in the scenario corresponding to the power-on link, the relevant power-on sequence and power-on and power-off adjustments are performed on each node in the intermediate system to be tested, etc.), the target object to be tested that can be subjected to subsequent stability testing in different test scenarios can be obtained, that is, the test system corresponding to the vehicle-mounted Ethernet ring network. In this way, the system to be tested corresponding to the vehicle-mounted Ethernet ring network in different test scenarios can be built more accurately and conveniently, thereby providing a basis for the ERPS stability test of the system to be tested corresponding to the vehicle-mounted Ethernet ring network, and thus improving the reliability of the subsequent vehicle-mounted Ethernet ring network ERPS functional test.

[0016] In some embodiments of the present application, the programmable power supply module in the system-level test environment is used to power on each node in the intermediate system to be tested according to a plurality of different node access sequences to obtain the target system to be tested in the scenario corresponding to the power-on link, including: using the programmable power supply module to control each node in the intermediate system to be in a power-off state at the same time point, and after a first preset time period, powering on each node in the intermediate system to be tested in turn according to the plurality of different node access sequences to obtain the target system to be tested in the scenario corresponding to the power-on link; or, using the programmable power supply module, according to the plurality of different node access sequences, powering off each node in the intermediate system to be tested in turn and stabilizing it for a second preset time period, and after the second preset time period, powering on each node in the intermediate system to be tested in turn according to the plurality of different node access sequences to obtain the target system to be tested in the scenario corresponding to the power-on link.

[0017] In this way, the scenarios corresponding to the power-on link are further subdivided, making the system-level test scenarios corresponding to the vehicle Ethernet ring network richer, so that the stability test corresponding to the vehicle Ethernet ring network in the system-level test environment can be more comprehensively realized.

[0018] In some embodiments of the present application, the test environment includes: a component-level test environment corresponding to the vehicle-mounted Ethernet ring network, the use of a preset power supply module to provide a reference power supply voltage to the initial object to be tested to obtain an intermediate object to be tested, including: using a second power supply module in the component-level test environment to provide a second reference voltage to the initial node to be tested in the vehicle-mounted Ethernet ring network to obtain an intermediate node to be tested; the preprocessing of the intermediate object to be tested to match the preset test scenario to obtain the target object to be tested includes: preprocessing the intermediate node to be tested to match the preset test scenario to obtain the target node to be tested.

[0019] In this way, in the component-level test environment, the intermediate nodes to be tested in the vehicle-mounted Ethernet ring network are prepared for power supply, that is, normal voltage is provided to the initial nodes to be tested, thereby providing a basis for subsequent stability testing of the vehicle-mounted Ethernet ring network in multiple different scenarios in the component-level test environment.

[0020] In some embodiments of the present application, the preprocessing of the intermediate node to be tested to match the preset test scenario to obtain the target node to be tested includes: using the programmable power supply module in the component-level test environment to adjust the power supply voltage of the intermediate node to be tested from the second reference voltage to the second intermediate voltage, and then from the second intermediate voltage to the second reference voltage according to the preset voltage adjustment step, to obtain the target node to be tested in the scenario after the power supply voltage fluctuates; or, using the first test device in the component-level test environment to send a network management message for realizing network sleep wake-up to the intermediate node to be tested, to obtain the target node to be tested in the scenario after network sleep wake-up; or, using the first test device in the component-level test environment to simulate sending an Ethernet message with a corresponding link load rate higher than a second preset value to the two ports of the intermediate node to be tested, to obtain the target node to be tested in the scenario corresponding to high network load.

[0021] In this way, by performing different preprocessing on the intermediate node to be tested (such as: in the scenario after the power supply voltage fluctuates, the power supply voltage corresponding to the intermediate node to be tested is adjusted for fluctuation; in the scenario after the network sleep is awakened, the intermediate node to be tested is put into network sleep and awakened; in the test scenario corresponding to the high network load, relevant messages are sent to the two ports of the intermediate node to be tested to obtain the target node to be tested with a relevant network link bus load higher than a certain value), the target node to be tested that can be used for subsequent stability testing in different test scenarios can be obtained, that is, the node to be tested corresponding to the vehicle-mounted Ethernet ring network. In this way, the node to be tested corresponding to the vehicle-mounted Ethernet ring network in different test scenarios can be built more accurately and conveniently, thereby providing a basis for the ERPS stability test of the node to be tested corresponding to the vehicle-mounted Ethernet ring network, and then the reliability of the subsequent vehicle-mounted Ethernet ring network ERPS function test can be improved.

[0022] The embodiment of the present application provides a stability test system for an in-vehicle Ethernet ring network, wherein the in-vehicle Ethernet ring network includes: a master node, an adjacent node, and at least one slave node, wherein the master node is connected to the adjacent node via a ring protection link, and the stability test system includes:

[0023] A building module is configured to build a test environment corresponding to the vehicle-mounted Ethernet ring network according to a preset test requirement; wherein the ring network protection switching function of the vehicle-mounted Ethernet ring network located in the test environment operates normally;

[0024] A preprocessing module is configured to perform preprocessing matching a preset test scenario on an initial object to be tested corresponding to the vehicle-mounted Ethernet ring network located in the test environment, so as to obtain a target object to be tested in the preset test scenario;

[0025] The test module is configured to test the ring network protection switching function and the ring network recovery switching function in sequence on the target object to be tested to obtain a test result.

[0026] An embodiment of the present application provides a computer-readable storage medium, on which computer-executable instructions are stored. After the computer-executable instructions are executed, the stability testing method of the vehicle-mounted Ethernet ring network described in any one of the above claims can be implemented.

[0027] Beneficial effects of this application:

[0028] It can more accurately and conveniently test the target object to be tested corresponding to the vehicle Ethernet ring network in the preset test scenario in the relevant test environment (different test environments built based on different test requirements), thereby providing a basis for improving the stability of the vehicle Ethernet ring network ERPS and ensuring the reliability of the vehicle Ethernet ring network ERPS function.

[0029] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions provided in the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work, among which:

[0031] Figure 1 A schematic diagram of the system composition corresponding to a vehicle-mounted Ethernet ring network in the related art;

[0032] Figure 2 Schematic diagram of the process of stability test of vehicle-mounted Ethernet ring network provided in the embodiment of the present application Figure 1 ;

[0033] Figure 3 Schematic diagram of the process of stability test of vehicle-mounted Ethernet ring network provided in the embodiment of the present application Figure 2 ;

[0034] Figure 4 Schematic diagram of the process of stability test of vehicle-mounted Ethernet ring network provided in the embodiment of the present application Figure 3 ;

[0035] Figure 5 Schematic diagram of the process of stability test of vehicle-mounted Ethernet ring network provided in the embodiment of the present application Figure 4 ;

[0036] Figure 6 Schematic diagram of the process of stability test of vehicle-mounted Ethernet ring network provided in the embodiment of the present application Figure 5 ;

[0037] Figure 7 A schematic diagram of the system composition of a component-level test environment corresponding to an on-board Ethernet ring network provided in an embodiment of the present application;

[0038] Figure 8 A schematic diagram of the system composition of a system-level test environment corresponding to a vehicle-mounted Ethernet ring network provided in an embodiment of the present application;

[0039] Fig. 9 A schematic diagram of the composition structure of a vehicle-mounted Ethernet ring network stability system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.

[0041] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0042] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the technical field of the present application. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the embodiments of the present application.

[0044] In the related art, redundant links (for example, ring networks) are usually used in Ethernet switching networks to perform link backup and improve network reliability. However, the use of redundant links will generate loops on the network, which may cause broadcast storms and instability in the Media Access Control Address (MAC) table, thereby affecting the quality of user communications and even causing communication interruptions. ERPS is a protocol used to break loops at the Ethernet link layer. It uses the ERPS ring as the basic unit and includes several nodes. It blocks the master node port in the Ethernet link layer and controls other ordinary ports so that the port status switches between forwarding and discarding to eliminate loops. At the same time, mechanisms such as controlling virtual local area networks (VLANs), data VLANs, and protection instances can be used to better implement the functions of ERPS. For example, Figure 1 As shown, the system corresponding to the vehicle-mounted Ethernet ring network is usually composed of three nodes, namely 101 to 103, wherein each node is respectively connected to the corresponding switch (the master node of 101 is connected to switch 1 and processor 1, the adjacent node of 102 is connected to switch 2 and processor 2, and the slave node of 103 is connected to switch 3 and processor 3). Here, when the Ethernet ring network link is normal, port 1 of the master node of 101 and port 0 of the adjacent node of 102 are both in a blocking state, that is, the Ring Protection Link (RPL) is not started, and port 0 of the master node of 101, port 1 of the adjacent node of 102, and two ports of the slave node of 103 are all in a forwarding state; wherein, the master node of 101 periodically sends fault detection messages to the slave node of 103.

[0045] In practical applications, when the Ethernet ring network is applied to the vehicle-mounted system, if the ERPS switching function of the vehicle-mounted Ethernet ring network is not stable enough, it will directly lead to the disorder of the relevant data flow, which will cause the correct implementation of the upper layer functions that rely on the data flow, and then make the internal data transmission of the vehicle-mounted system chaotic. Based on this, the embodiment of the present application provides a stability test method for the vehicle-mounted Ethernet ring network, such as Figure 2 FIG. 1 is a flow chart of the stability test of the vehicle-mounted Ethernet ring network provided in the embodiment of the present application. Figure 1 , wherein the vehicle-mounted Ethernet ring network includes: a master node, an adjacent node and at least one slave node, and the master node is connected to the adjacent node via a ring protection link.

[0046] Step S101, building a test environment corresponding to the vehicle-mounted Ethernet ring network according to preset test requirements.

[0047] Among them, the ring network protection switching function of the vehicle-mounted Ethernet ring network located in the test environment operates normally.

[0048] In some embodiments of the present application, the vehicle-mounted Ethernet ring network includes: a master node, an adjacent node, and at least one slave node; wherein the master node can be connected to any execution unit in the vehicle (such as an autonomous driving control unit); correspondingly, the adjacent node and at least one slave node can be connected to other execution units of the vehicle respectively. Here, the vehicle can be any vehicle such as an autonomous driving vehicle.

[0049] In some embodiments of the present application, different test environments can be built for the vehicle-mounted Ethernet ring network based on different test requirements; among them, if a test is performed on any node in the vehicle-mounted Ethernet ring network (any of the master node, adjacent node or slave node), a component-level (node-level) test environment corresponding to the vehicle-mounted Ethernet ring network can be built; if a test is performed on the entire system corresponding to the vehicle-mounted Ethernet ring network, a system-level test environment corresponding to the vehicle-mounted Ethernet ring network can be built.

[0050] It should be noted that in the established test environment, it is necessary to ensure that the ring network protection switching function of the vehicle-mounted Ethernet ring network can operate normally, so as to provide a basis for subsequent stability testing.

[0051] Step S102, preprocessing is performed on the initial object to be tested corresponding to the vehicle-mounted Ethernet ring network located in the test environment to match the preset test scenario, so as to obtain the target object to be tested in the preset test scenario.

[0052] In some embodiments of the present application, the initial object to be tested corresponding to the vehicle-mounted Ethernet ring network is different in different test environments; illustratively, when the test environment is a component-level test environment corresponding to the vehicle-mounted Ethernet ring network, the initial object to be tested may be a node under test in the vehicle-mounted Ethernet ring network; when the test environment is a system-level test environment corresponding to the vehicle-mounted Ethernet ring network, the initial object to be tested may be the entire system corresponding to the vehicle-mounted Ethernet ring network.

[0053] In some embodiments of the present application, the preset test scenarios can be divided into the following categories: test scenarios after power supply voltage fluctuations; test scenarios after network hibernation and awakening; test scenarios corresponding to high network loads, and test scenarios corresponding to the power-on link (test scenarios corresponding to the power-on initialization process, and test scenarios corresponding to powering off and then powering on in sequence after the power-on is stable).

[0054] It should be noted that different preset test scenarios have different corresponding preprocessing, such as: the preset test scenario is a test scenario after power supply voltage fluctuations, which may be a relevant voltage fluctuation adjustment for the power supply voltage of the initial object to be tested; the preset test scenario is a test scenario after network sleep and wake-up, which may be a test scenario for the initial object to be tested that executes network sleep and network wake-up in sequence based on relevant messages or conditions; the preset test scenario is a test scenario corresponding to high network load, which may be a test scenario for message simulation transmission on the two ports of the initial test object to realize that the relevant link or network bus is in a high load state, etc.

[0055] Step S103, testing the ring network protection switching function and the ring network recovery switching function in sequence on the target object to be tested to obtain test results.

[0056] In some embodiments of the present application, the stability test of the target object to be tested includes: testing the ring network protection switching function and the ring network back-switching function of the target object to be tested to obtain the test result of the initial object to be tested corresponding to the vehicle-mounted Ethernet ring network. Here, the test result can be obtained based on the first test sub-result corresponding to the ring network protection switching function and the second test sub-result corresponding to the ring network recovery back-switching function.

[0057] Exemplarily, the first test sub-result corresponding to the ring network protection switching function can be represented by a test pass, a test fail, or a failure, a success, etc.; correspondingly, the second test sub-result corresponding to the ring network recovery and switching function can also be represented by a test pass, a test fail, or a failure, a success, etc. Here, if any of the first test sub-result corresponding to the ring network protection switching function and the second test sub-result corresponding to the ring network recovery and switching function is a test fail or a failure, then the test result is a test fail or a failure; conversely, if both the first test sub-result corresponding to the ring network protection switching function and the second test sub-result corresponding to the ring network recovery and switching function are a test pass or a success, then the test result is considered to be a test pass or a success.

[0058] It should be noted that the test of the ring network protection switching function includes but is not limited to: fault test of link 1 between the master node and the slave node, fault test of link 2 between the slave node and the adjacent node, and fault test of the ring protection link (link between the master node and the adjacent node); wherein, the fault test of link 1 can be implemented by injecting Ethernet link shutdown into the automated test equipment in the component-level test environment, and can be implemented by injecting fault into the board in the system-level test environment. After the fault, the MAC address table corresponding to the target object to be tested can be read to obtain the ring network ERPS related protocol New Radio (NR) protocol message and protection switching mechanism (Ring Auto Protection Switch, RAPS) protocol message or no request ring protection link lock (No Request RPL The ring network ERPS function is judged to be correct in the case of link failure by monitoring the RAPS protocol message (NRRB) and the signal failure (SF) RAPS message, and the direction of data flow; correspondingly, the test of the ring network recovery and switching back function includes but is not limited to: the ordinary link fault recovery between the master node and the slave node, the link fault recovery and switching back test between the slave node and the adjacent node, and the RPL link fault recovery and switching back test; wherein, the ordinary link fault recovery and switching back can be realized by canceling the Ethernet connection of the automated test equipment in the component-level test environment, and can be realized by injecting the equipment fault into the board in the system-level test environment. After the fault is recovered, the ring network ERPS function can be judged to be correct in the case of link failure by reading the layer 2 MAC address table corresponding to the object under test, monitoring the NR RAPS protocol message or the NRRB RAPS protocol message or the link fault SF RAPS message of the ring network ERPS related protocol, and the direction of data flow.

[0059] In this way, first, a test environment corresponding to the vehicle-mounted Ethernet ring network is constructed; secondly, in the test environment, a preprocessing matching the preset test scenario is performed on the initial object to be tested corresponding to the vehicle-mounted Ethernet ring network, so as to obtain the target object to be tested corresponding to the vehicle-mounted Ethernet ring network in the preset test scenario under a certain test environment; finally, the ring network protection switching function and the ring network recovery and switching back function are tested in sequence on the target object to be tested, so as to realize the automated test of the stability of the vehicle-mounted Ethernet ring network ERPS. In this way, it is possible to more accurately and conveniently test the target object to be tested corresponding to the vehicle-mounted Ethernet ring network in the preset test scenario under the relevant test environment (different test environments built based on different test requirements), thereby providing a basis for improving the stability of the vehicle-mounted Ethernet ring network ERPS, so as to ensure the reliability of the vehicle-mounted Ethernet ring network ERPS function.

[0060] In some embodiments of the present application, a corresponding test environment can be built according to different test requirements for the vehicle-mounted Ethernet ring network, that is, step S101 provided in the above embodiment can be implemented in the following two ways: Figure 3 FIG. 1 is a flow chart of the stability test of the vehicle-mounted Ethernet ring network provided in the embodiment of the present application. Figure 2 , combined with Figure 3 The steps shown are explained below:

[0061] Step S201, when the preset test requirement is to perform a system-level test on the vehicle-mounted Ethernet ring network, a first test device is used to control multiple test units to access a link between any two nodes in the vehicle-mounted Ethernet ring network to obtain a system-level test environment corresponding to the vehicle-mounted Ethernet ring network.

[0062] Wherein, the test unit is used for data simulation and data collection.

[0063] In some embodiments of the present application, when the test requirement is to perform system-level testing on the on-board Ethernet ring network, a system test bench corresponding to the on-board Ethernet ring network can be built accordingly; wherein, a corresponding test unit can be connected to the link between any two nodes in the on-board Ethernet ring network, and the test unit is used to perform data simulation and data acquisition, such as: Ethernet ring network ERPS protocol message simulation, ring network fault injection block, status reading of each Ethernet port and automated test execution sequence, etc.

[0064] In some embodiments of the present application, the first test device may include multiple software test modules, and the multiple software test modules may include the following: Ethernet ring network ERPS protocol message simulation module, ring network fault injection module, each Ethernet port status reading module and automatic test execution sequence module, etc.; here, multiple software test modules can be used to test the ring network protection switching function and the ring network recovery and switching function of any node in the vehicle-mounted Ethernet ring network.

[0065] Step S202, when the preset test requirement is to test the node under test, a second test device is used to simulate the control unit of a node directly connected to the node under test in the vehicle-mounted Ethernet ring network to obtain a component-level test environment corresponding to the vehicle-mounted Ethernet ring network.

[0066] Wherein, the node under test is any node in the vehicle-mounted Ethernet ring network.

[0067] In some embodiments of the present application, the node under test is any node in the vehicle-mounted Ethernet ring network, such as any of a master node, an adjacent node or a slave node.

[0068] Exemplarily, when the node under test is a master node in a vehicle-mounted Ethernet ring network, the second test device may be used to simulate control units connected to adjacent nodes and slave nodes, respectively, so as to obtain a component-level test environment corresponding to the master node.

[0069] It should be noted that the component-level test environment can simulate the control unit connected to the neighboring node directly connected to the tested node through dedicated test equipment according to the role of the tested node in the vehicle Ethernet ring network, thereby realizing the stability test of the ERPS switching function corresponding to the relevant nodes in the vehicle Ethernet ring network.

[0070] Among them, if the vehicle Ethernet ring network is composed of: a master node (RPL owner node), a neighbor node (RPL neighbor node), and at least one slave node (ordinary link node); among them, since the RPL owner node plays a master control role in the vehicle Ethernet ring network, its RPL port can be blocked during the initialization process, and non-RPL ports are not blocked. When a fault occurs, the RPL port is opened. After the fault is recovered, its RPL port is blocked; at the same time, since the RPL neighbor node plays a role in assisting the RPLowner node in the ring network, its RPL neighbor port can be blocked during the initialization process. Non-RPL ports are not blocked. When a fault occurs, the RPL port is opened. After the fault is recovered, its RPL port is blocked; in addition, the ordinary link node is controlled by the RPL owner node and the RPL neighbor node, and no port blocking operation can be performed during the initialization process. When a fault occurs, the SF message is sent to notify the RPL owner node and the RPL neighbor node to perform port operations. After the fault is recovered, the NR message is sent to notify the RPL owner node and the RPL neighbor node to perform port operations.

[0071] It should be noted that the first test device and the second test device are different because they are in different test environments and are aimed at different test objects. That is, the test object of the first test device is: the system corresponding to the vehicle-mounted Ethernet ring network, and the test object of the second test device is: the node under test in the vehicle-mounted Ethernet ring network.

[0072] In addition, the ring protection switching functions of the vehicle-mounted Ethernet ring network in the component-level test environment and the vehicle-mounted Ethernet ring network in the system-level test environment can operate normally.

[0073] In this way, by building different test environments (component-level test environment and system-level test environment), a basis is provided for the subsequent stability testing of the vehicle-mounted Ethernet ring network under different test environments, thereby being able to more comprehensively ensure the reliability of the stability testing of the vehicle-mounted Ethernet ring network ERPS.

[0074] In some embodiments of the present application, the initial object to be tested corresponding to the vehicle-mounted Ethernet ring network in the test environment is first powered on to ensure that the initial object to be tested operates normally, so that the normal operating initial object to be tested is preprocessed to match the preset test scenario to obtain the target object to be tested, that is, step S102 provided in the above embodiment can be implemented by the following steps S301 and S302, such as Figure 4 FIG. 1 is a flow chart of the stability test of the vehicle-mounted Ethernet ring network provided in the embodiment of the present application. Figure 3 , combined with Figure 4 The steps shown are explained below:

[0075] Step S301 : using a preset power supply module to provide a reference power supply voltage to the initial object to be tested, so as to obtain an intermediate object to be tested.

[0076] In some embodiments of the present application, a preset power supply module is used to power on the initial object to be tested (provide a reference power supply voltage) to obtain an intermediate object to be tested that can operate normally. Here, the default power supply voltage provided to the initial object to be tested is: under the reference power supply voltage, the initial object to be tested can operate normally, that is, the intermediate object to be tested whose corresponding functions are all operating normally is obtained.

[0077] Exemplarily, if the test environment is a component-level test environment, the corresponding initial object to be tested is the node to be tested in the vehicle-mounted Ethernet ring network. The node to be tested can be powered on to a reference power supply voltage, such as 12V or 6V, to obtain an intermediate node to be tested in which relevant functions can operate normally; if the test environment is a system-level test environment, the corresponding initial object to be tested is the system corresponding to the vehicle-mounted Ethernet ring network. The system can be powered on to a reference power supply voltage, such as 12V or 6V, to obtain an intermediate system to be tested in which relevant functions can operate normally.

[0078] Step S302: pre-process the intermediate object to be tested to match the preset test scenario to obtain the target object to be tested.

[0079] In some embodiments of the present application, relevant preprocessing can be adaptively performed on the intermediate object to be tested based on a preset test scenario to obtain a target object to be tested.

[0080] Continuing with the above description, if the intermediate object to be tested is an intermediate node to be tested (the test environment is a component-level test environment), it can be based on preset test scenarios, such as: the scenario after the power supply voltage fluctuates, that is, the power supply module corresponding to the intermediate node to be tested provides the power supply voltage to the intermediate node to be tested for low voltage fluctuations or high voltage fluctuations to obtain the target node to be tested; the scenario after network sleep awakening, the network management message related to network sleep awakening can be sent to the intermediate node to be tested to obtain the intermediate node to be tested after network sleep awakening, that is, the target node to be tested; the network high load scenario, the two ports of the intermediate node to be tested can be simulated to send Ethernet messages to obtain a bus load rate higher than the preset value (in a network high load scenario).

[0081] If the intermediate object to be tested is an intermediate system to be tested (the test environment is a system-level test environment), it may be preprocessed accordingly based on a preset test scenario. For reference, the above description of the intermediate node to be tested may be used and will not be repeated here.

[0082] In this way, the initial object to be tested corresponding to the on-board Ethernet ring network in the test environment is powered on to ensure the normal operation of the initial object to be tested, and the normally operating initial object to be tested is preprocessed to match the preset test scenario, so that the target object to be tested in the preset test scenario can be obtained, thereby providing a basis for subsequent stability testing of related functions of the target object to be tested.

[0083] In some embodiments of the present application, when the test environment is a system-level test environment corresponding to the vehicle-mounted Ethernet ring network, step S301 provided in the above embodiment can be implemented by the following step S401, such as Figure 5 FIG. 1 is a flow chart of the stability test of the vehicle-mounted Ethernet ring network provided in the embodiment of the present application. Figure 4 , combined with Figure 5 The steps shown are explained below:

[0084] Step S401 : using a first power supply module in the system-level test environment to provide a first reference voltage to an initial system to be tested corresponding to the vehicle-mounted Ethernet ring network, so as to obtain an intermediate system to be tested.

[0085] In some embodiments of the present application, if the test environment is a system-level test environment corresponding to the vehicle-mounted Ethernet ring network, the first power supply module in the system-level test environment can provide a first reference voltage (e.g., 12V) to the initial system to be tested corresponding to the vehicle-mounted Ethernet ring network, thereby obtaining an intermediate system to be tested.

[0086] Correspondingly, step S302 provided in the above embodiment can be implemented by the following step S402:

[0087] Step S402: preprocessing the intermediate system to be tested to match the preset test scenario to obtain a target system to be tested.

[0088] In some embodiments of the present application, relevant preprocessing may be performed on an intermediate system under test whose power supply voltage is the first reference voltage to obtain a target system under test that needs to undergo a subsequent stability test.

[0089] In this way, in the system-level test environment, the intermediate system under test corresponding to the vehicle-mounted Ethernet ring network is powered on, that is, a reference voltage is provided to the intermediate system under test, thereby providing a basis for subsequent stability testing of the vehicle-mounted Ethernet ring network in multiple different scenarios in the system-level test environment.

[0090] Here, the preset test scenarios can be divided into the following four types of test scenarios, that is, step S402 provided in the above embodiment can perform the following four different preprocessing on the intermediate system under test to correspondingly obtain the target system under test in different test scenarios, namely:

[0091] Preprocessing 1: Using the programmable power supply module in the system-level test environment, according to a preset voltage adjustment step, the power supply voltage of the intermediate system to be tested is adjusted from the first reference voltage to the first intermediate voltage, and then from the first intermediate voltage to the first reference voltage, to obtain the target system to be tested in the scenario after the power supply voltage fluctuates.

[0092] Preprocessing 2: Using the test unit in the system-level test environment, sending the sleep and wake-up conditions to each node in the intermediate system to be tested, and obtaining the target system to be tested in the scenario after network sleep and wake-up.

[0093] Preprocessing three: Use the test unit in the system-level test environment to simulate sending Ethernet messages whose network bus load rate corresponding to the control is higher than the first preset value to the two ports of each node in the intermediate system under test, and obtain the target system under test in the scenario corresponding to the high network load.

[0094] Preprocessing four: using the programmable power supply module in the system-level test environment, power on each node in the intermediate system under test according to a plurality of different node access sequences, and obtaining the target system under test in the scenario corresponding to the power-on link.

[0095] In some embodiments of the present application, based on the above-mentioned various preprocessings, a variety of target systems under test in different test scenarios can be obtained; wherein the test scenarios include: scenarios after power supply voltage fluctuations, scenarios after network sleep and wake-up, scenarios corresponding to high network loads, and scenarios corresponding to the power-on link.

[0096] In which, in the scenario after the power supply voltage fluctuates, the first intermediate voltage can be higher than the first reference voltage or lower than the first reference voltage; exemplarily, the first reference voltage is 12V, and the first intermediate voltage can be 6V or 18V; correspondingly, the preset voltage adjustment step can be 0.1V / 100ms.

[0097] In this way, by performing different preprocessing on the intermediate system to be tested (such as: in the scenario after the power supply voltage fluctuates, the power supply voltage corresponding to the intermediate system to be tested is adjusted for fluctuations; in the scenario after the network is awakened from sleep, each node in the intermediate system to be tested is put into sleep and awakened; in the scenario corresponding to the high network load, relevant messages are sent to the two ports of each node in the intermediate system to be tested to obtain the target system to be tested in which the relevant network bus load is higher than a certain value; in the scenario corresponding to the power-on link, the relevant power-on sequence and power-on and power-off adjustments are performed on each node in the intermediate system to be tested, etc.), the target object to be tested that can be subjected to subsequent stability testing in different test scenarios can be obtained, that is, the test system corresponding to the vehicle-mounted Ethernet ring network. In this way, the system to be tested corresponding to the vehicle-mounted Ethernet ring network in different test scenarios can be built more accurately and conveniently, thereby providing a basis for the ERPS stability test of the system to be tested corresponding to the vehicle-mounted Ethernet ring network, and thus improving the reliability of the subsequent vehicle-mounted Ethernet ring network ERPS functional test.

[0098] In some embodiments of the present application, the scenario corresponding to the above power-on link can be further divided into the following two implementation methods, as follows:

[0099] Method 1: using the programmable power supply module to control each node in the intermediate system to be in a power-off state at the same time point, and after a first preset time, powering on each node in the intermediate system to be tested in turn according to the access sequence of the multiple different nodes, to obtain the target system to be tested in the scene corresponding to the power-on link; or,

[0100] Method 2: Using the programmable power supply module, each node in the intermediate system to be tested is powered off in turn according to the access sequence of the multiple different nodes, and then stabilized for a second preset time period; after the second preset time period, each node in the intermediate system to be tested is powered on in turn according to the access sequence of the multiple different nodes, so as to obtain the target system to be tested in the scenario corresponding to the power-on link.

[0101] In some embodiments of the present application, method one may be a test scenario corresponding to the power-on initialization phase of the intermediate system under test, and method two may be a test scenario corresponding to each node in the intermediate system under test being powered off and on in sequence after the power-on is stable.

[0102] Here, the first preset time length may be the same as or different from the second preset time length. For example, the first preset time length is 30 seconds, and the second preset time length is 10 seconds.

[0103] In some embodiments of the present application, an intermediate system to be tested includes at least: an RPL owner node (the master node mentioned above), an RPL neighbor node (the neighboring node mentioned above), and an ordinary link node (at least one slave node mentioned above) as an example for illustration; wherein, a plurality of different node access sequences may at least include: node access sequence 1 (RPLowner node-RPL neighbor node-ordinary link node), node access sequence 2 (RPL owner node-ordinary link node-RPL neighbor node), access sequence 3 (RPL neighbor node-RPL owner node-ordinary link node), node access sequence 4 (RPL neighbor node-ordinary link node-RPL owner node), node access sequence 5 (ordinary link node-RPL neighbor node-RPL owner node), node access sequence 6 (ordinary link node-RPL owner node-RPL neighbor node), etc.

[0104] It should be noted that, when the target object to be tested is the target system to be tested, step S103 provided in the above embodiment can execute the following steps: for the target system to be tested, the ring network protection switching function and the ring network recovery and switching function are tested in turn to obtain the test results; the relevant implementation method can refer to step S103 provided in the above embodiment, which will not be repeated here.

[0105] In this way, the scenarios corresponding to the power-on link are further subdivided, making the system-level test scenarios corresponding to the vehicle Ethernet ring network richer, so that the stability test corresponding to the vehicle Ethernet ring network in the system-level test environment can be more comprehensively realized.

[0106] In some embodiments of the present application, when the test environment is a component-level test environment corresponding to the vehicle-mounted Ethernet ring network, step S301 provided in the above embodiment can be implemented by the following step S501, such as Figure 6 FIG. 1 is a flow chart of the stability test of the vehicle-mounted Ethernet ring network provided in the embodiment of the present application. Figure 5 , combined with Figure 6 The steps shown in the following instructions are:

[0107] Step S501 : using a second power supply module in the component-level test environment to provide a second reference voltage to an initial node to be tested in the vehicle-mounted Ethernet ring network, so as to obtain an intermediate node to be tested.

[0108] In some embodiments of the present application, if the test environment is a component-level test environment corresponding to the vehicle-mounted Ethernet ring network, a second power supply module in the component-level test environment can correspondingly provide a second reference voltage (e.g., 12V) to the initial node to be tested in the vehicle-mounted Ethernet ring network (i.e., the node to be tested mentioned above), thereby obtaining an intermediate node to be tested.

[0109] It should be noted that due to the different test environments of the vehicle-mounted Ethernet ring network, the second power supply module in the component-level test environment is different from the first power supply module in the system-level test environment mentioned above. They respectively provide power to the initial node to be tested (the relevant node in the vehicle-mounted Ethernet ring network) and the initial system to be tested (the system corresponding to the vehicle-mounted Ethernet ring network).

[0110] Correspondingly, step S302 provided in the above embodiment can be implemented by the following step S502:

[0111] Step S502 , preprocessing the intermediate node to be tested to match the preset test scenario to obtain a target node to be tested.

[0112] In some embodiments of the present application, relevant preprocessing may be performed on an intermediate node to be tested whose power supply voltage is the second reference voltage to obtain a target node to be tested that needs to be subjected to a subsequent stability test.

[0113] It should be noted that the first reference voltage and the second reference voltage may be the same or different.

[0114] In this way, in the component-level test environment, the intermediate nodes to be tested in the vehicle-mounted Ethernet ring network are prepared for power supply, that is, normal voltage is provided to the initial nodes to be tested, thereby providing a basis for subsequent stability testing of the vehicle-mounted Ethernet ring network in multiple different scenarios in the component-level test environment.

[0115] Here, the preset test scenarios can be divided into the following three types of test scenarios, that is, step S502 provided in the above embodiment can perform the following three different preprocessing on the intermediate nodes to be tested, so as to correspondingly obtain the target nodes to be tested in different test scenarios, namely:

[0116] Preprocessing 1: Using the programmable power supply module in the component-level test environment, according to the preset voltage adjustment step, the power supply voltage of the intermediate node to be tested is adjusted from the second reference voltage to the second intermediate voltage, and then from the second intermediate voltage to the second reference voltage, to obtain the target node to be tested in the scenario after the power supply voltage fluctuates.

[0117] Preprocessing 2: using the first test device in the component-level test environment, sending a network management message for realizing network sleep awakening to the intermediate node to be tested, and obtaining the target node to be tested in the scenario after network sleep awakening.

[0118] Preprocessing three: Use the first test device in the component-level test environment to simulate sending Ethernet messages with a corresponding link load rate higher than a second preset value to the two ports of the intermediate node to be tested, and obtain the target node to be tested in the scenario corresponding to the high network load.

[0119] In some embodiments of the present application, based on the above-mentioned various preprocessings, a variety of target nodes under test in different test scenarios can be obtained; wherein the test scenarios include: scenarios after power supply voltage fluctuations, scenarios after network sleep and wake-up, and scenarios corresponding to high network loads.

[0120] In which, in the scenario after the power supply voltage fluctuates, the second intermediate voltage can be higher than the second reference voltage or lower than the second reference voltage; exemplarily, the second reference voltage is 12V, and the second intermediate voltage can be 6V or 18V; correspondingly, the preset voltage adjustment step can be 0.1V / 100ms.

[0121] It should be noted that, when the target object to be tested is the target node to be tested, step S103 provided in the above embodiment can execute the following steps: for the target node to be tested, the ring network protection switching function and the ring network recovery and switching function are tested in turn to obtain the test results; the relevant implementation method can refer to step S103 provided in the above embodiment, and will not be repeated here.

[0122] In this way, by performing different preprocessing on the intermediate node to be tested (such as: in the scenario after the power supply voltage fluctuates, the power supply voltage corresponding to the intermediate node to be tested is adjusted for fluctuation; in the scenario after the network sleep is awakened, the intermediate node to be tested is put into network sleep and awakened; in the test scenario corresponding to the high network load, relevant messages are sent to the two ports of the intermediate node to be tested to obtain the target node to be tested with a relevant network link bus load higher than a certain value), the target node to be tested that can be used for subsequent stability testing in different test scenarios can be obtained, that is, the node to be tested corresponding to the vehicle-mounted Ethernet ring network. In this way, the node to be tested corresponding to the vehicle-mounted Ethernet ring network in different test scenarios can be built more accurately and conveniently, thereby providing a basis for the ERPS stability test of the node to be tested corresponding to the vehicle-mounted Ethernet ring network, and then the reliability of the subsequent vehicle-mounted Ethernet ring network ERPS function test can be improved.

[0123] The stability test method of the above-mentioned vehicle-mounted Ethernet ring network is described below in conjunction with a specific embodiment. However, it is worth noting that this specific embodiment is only for better illustrating the embodiment of the present application and does not constitute an improper limitation on the embodiment of the present application.

[0124] In the related art, if the Ethernet ring network is applied to the vehicle-mounted system, the ERPS switching function of the vehicle-mounted Ethernet ring network is not stable enough, which will directly lead to the disorder of the data flow on the Ethernet channel on the vehicle, and will cause the correct implementation of the upper-layer functions that rely on the data flow, thereby causing confusion in the data transmission inside the vehicle-mounted system. Based on this, the embodiment of the present application provides a stability test method for a vehicle-mounted Ethernet ring network, which is mainly used to implement stability tests for a variety of different test scenarios in the following two test environments, namely:

[0125] Step 1: Build a component-level test environment corresponding to the vehicle Ethernet ring network. According to the different roles played by different nodes in the vehicle Ethernet ring network in the vehicle Ethernet ring network ERPS, the control unit of its directly connected neighbor node can be simulated through the corresponding test equipment, and then the stability of the ERPS switching function of the node under test in the vehicle Ethernet ring network can be tested. Here, the test can refer to the following principles for relevant stability tests (here, the vehicle Ethernet ring network includes the following nodes: RPL owner node, RPLneighbour node and ordinary link node as an example): RPL owner node plays the main control role in the vehicle Ethernet ring network. During the initialization process, its RPL port is blocked, and non-RPL ports are not blocked. When a fault occurs, the RPL port is opened, and its RPL port is blocked after the fault is restored; RPL neighbour node plays the role of assisting RPLowner node in the vehicle Ethernet ring network. During the initialization process, its RPL neighbor port is blocked, and non-RPL ports are not blocked. When a fault occurs, the RPL port is opened, and its RPL port is blocked after the fault is restored; ordinary link node is controlled by RPL owner node and RPLneighbour node, and no port blocking operation is performed during the initialization process. When a fault occurs, it cooperates to send SF message to notify RPL owner node and RPL neighbour node to perform port operation. After the fault is restored, NR message is sent to notify RPL owner node and RPL neighbour node to perform port operation.

[0126] It should be noted that if Figure 7As shown, it is a system composition diagram of a component-level test environment corresponding to a vehicle-mounted Ethernet ring network provided in an embodiment of the present application, the system comprising: a programmable power supply module 701, a power supply board 702, a hardware interface board 704 and a first test device 705; here, the power supply board 702 is used to control the programmable power supply module 701 to power on or off the node under test 703; the hardware interface board 704 comprises: a message simulation and acquisition module, a fault injection module, which are hardware-specific devices for simulating ring network ERPS messages and hardware-specific devices for activating the ring network ERPS function respectively; in addition, the first test device 705 also comprises: an Ethernet ring network ERPS protocol message simulation module, a ring network fault injection module, a module for reading the status of each Ethernet port and an automated test execution sequence module. Among them, the Ethernet ring network ERPS protocol message simulation module is a software module used to simulate the ERPS protocol message required by the ring network function; the ring network fault injection module is a software module used to activate the ring network ERPS function; each Ethernet port status reading module is a software module used to read the Ethernet port status when different functions of the ring network are performed; the automated test execution sequence module is a software module used to execute automated test cases.

[0127] Step 2: Build a system-level test environment corresponding to the vehicle-mounted Ethernet ring network, build a system test bench, and complete the stability test verification of the Ethernet ring network ERPS switching function by executing multiple different stability test scenarios. Figure 8 As shown, it is a schematic diagram of the system composition of a system-level test environment corresponding to a vehicle-mounted Ethernet ring network provided in an embodiment of the present application. The system includes: control units 1 to 3 connected to three nodes in the vehicle-mounted Ethernet ring network, that is, Figure 8 As shown in 801 to 803, here, the second test equipment 807 is connected with three control units 1 to 3, namely 801 to 803, based on data acquisition boards 804 to 806 respectively.

[0128] It should be noted that if Figure 8 The test system corresponding to the system test environment shown in the figure also includes a programmable power supply module and a power supply board (not shown in the figure); here, the modules included in the second test device 807 can refer to the above Figure 7 A description of a first test device 705 is shown.

[0129] Here, the test scenarios include: after the relevant power supply voltage fluctuates (the power supply voltage fluctuates within the low voltage range, and / or the power supply voltage fluctuates within the high voltage range), the ERPS functional stability test of the vehicle Ethernet ring network is tested; after the network is awakened from sleep (the component-level test system realizes network awakening from sleep by simulating the sending of network management messages, and the system-level test system realizes network awakening from sleep by injecting sleep awakening conditions); the ERPS functional stability test of the vehicle Ethernet ring network corresponding to the high network load (the two Ethernet ports of the tested node in the component-level test environment simulate Ethernet messages, and each Ethernet port in the system-level test environment simulates Ethernet messages, so that the bus load rate reaches 90% or more); during the power-on initialization process, simulate different node sequences, power on the nodes in the vehicle Ethernet ring network in turn, and test the ERPS functional stability of the vehicle Ethernet ring network after all nodes are powered on; after each node in the vehicle Ethernet ring network is powered on and stable, simulate different node sequences, control the nodes to be powered off and then powered on in turn, simulate different node access sequences, and then test the ERPS functional stability of the vehicle Ethernet ring network.

[0130] Here, different nodes are powered on in the order of: RPL owner node-RPL neighbor node-ordinary link node; or, RPL owner node-ordinary link node-RPL neighbor node; or, RPL neighbor node-RPLowner node-ordinary link node; or, RPL neighbor node-ordinary link node-RPL owner node; or, ordinary link node-RPL neighbor node-RPL owner node; or, ordinary link node-RPL owner node-RPLneighbour node to achieve network access until all control units associated with all nodes in the vehicle Ethernet ring network are working.

[0131] The component-level test environment includes the component nodes under test and their corresponding test equipment (such as Figure 7 The first test device 705 shown in FIG. 1 is used to simulate the control unit under test ( Figure 7ERPS protocol messages of the tested node 703) shown in the figure, such as NR RAPS protocol messages or NRRB RAPS protocol messages or SF RAPS messages, are injected into the Ethernet channel link down or the SF message is simulated to activate the ERPS ring network protection switching function. Alternatively, the Ethernet channel link up is restored or the SF message is stopped from being sent, the ERPS ring network recovery and switching function is activated, and the ERPS messages sent by the tested node 703 and the data flow direction of the two ports of the tested node 703 are synchronously analyzed and collected in real time, and the FDB table is read and compared with the requirements to realize the automatic test of the stability of the component-level ring network function.

[0132] Step 3: Test the ring network ERPS fault protection function (ring network protection switching function and ring network recovery and switching function) in the component-level test environment and the system-level test environment respectively to see whether it is normal, which mainly includes the following two aspects:

[0133] Aspect 1: Fault testing of link 1 between the master node and the slave node, fault testing of link 2 between the slave node and the adjacent node, and fault testing of the ring protection link (the link between the master node and the adjacent node).

[0134] Aspect 2: Normal link failure recovery between the master node and the slave node, link failure recovery switchback test between the slave node and the adjacent node, and RPL link failure recovery switchback test.

[0135] The stability test method of the vehicle Ethernet ring network provided in the embodiment of the present application considers different test environments to design the test scheme, and designs the test scenarios under different test environments to realize the automated test of the stability of the Ethernet ring network ERPS. In this way, the stability test of the vehicle Ethernet ring network ERPS can be quickly carried out under the premise of limited test time requirements to ensure the reliability of the vehicle Ethernet ring network ERPS function.

[0136] The present application embodiment provides a vehicle-mounted Ethernet ring network stability system, such as Fig. 9 FIG. 1 is a schematic diagram of a structure of a vehicle-mounted Ethernet ring network stability system provided in an embodiment of the present application, combined with Fig. 9 The following is an explanation:

[0137] The building module 901 is configured to build a test environment corresponding to the vehicle-mounted Ethernet ring network according to a preset test requirement; wherein the ring network protection switching function of the vehicle-mounted Ethernet ring network located in the test environment operates normally;

[0138] The preprocessing module 902 is configured to perform preprocessing on the initial object to be tested corresponding to the vehicle-mounted Ethernet ring network located in the test environment to match the preset test scenario, so as to obtain the target object to be tested in the preset test scenario;

[0139] The testing module 903 is configured to test the ring network protection switching function and the ring network recovery switching function in sequence on the target object to be tested to obtain a test result.

[0140] It should be noted that the description of the embodiment corresponding to the stability system of the vehicle-mounted Ethernet ring network is similar to the description of the above-mentioned method side embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the system embodiment of this application, please refer to the description of the method side embodiment of this application for understanding.

[0141] Correspondingly, an embodiment of the present application further provides a computer program product, which includes computer executable instructions. After the computer executable instructions are executed, the stability testing method of the vehicle-mounted Ethernet ring network provided in the embodiment of the present application can be implemented.

[0142] Accordingly, an embodiment of the present application further provides a computer storage medium, on which computer executable instructions are stored. When the computer executable instructions are executed by a processor, the stability testing method of the vehicle-mounted Ethernet ring network provided in the above embodiment is implemented.

[0143] The description of the above vehicle-mounted Ethernet ring network stability test system and storage medium embodiment is similar to the description of the above method embodiment, and has similar technical descriptions and beneficial effects as the corresponding system embodiment. Due to space limitations, reference can be made to the records of the above method embodiment, so it will not be repeated here. For technical details not disclosed in the vehicle-mounted Ethernet ring network stability test system and storage medium embodiment provided by this application, please refer to the description of the method embodiment of this application for understanding.

[0144] It should be understood that the "one embodiment" or "one embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the embodiment of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence number of the embodiment of the present application is only for description and does not represent the advantages and disadvantages of the embodiment. It should be noted that in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "include one..." do not exclude the existence of other identical elements in the process, method, article or device including the element.

[0145] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0146] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0147] In addition, all functional units in the embodiments of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units. It can be understood by ordinary technicians in this field that all or part of the steps of the above method embodiments can be completed by hardware related to program instructions, and the above program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; and the above storage medium includes: mobile storage devices, ROM, disks or optical disks and other media that can store program codes.

[0148] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the embodiment of the present application, which should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.

Claims

1. A stability test method for a vehicle-mounted Ethernet ring network, characterized in that: The vehicle-mounted Ethernet ring network includes: a master node, an adjacent node and at least one slave node, the master node and the adjacent node are connected via a ring protection link, and the stability test method includes: According to the preset test requirements, a test environment corresponding to the vehicle-mounted Ethernet ring network is established; wherein the ring network protection switching function of the vehicle-mounted Ethernet ring network located in the test environment operates normally; Performing preprocessing to match a preset test scenario on an initial object to be tested corresponding to the vehicle-mounted Ethernet ring network located in the test environment, so as to obtain a target object to be tested in the preset test scenario; The ring network protection switching function and the ring network recovery switching function are tested in sequence for the target object to be tested to obtain test results.

2. The stability testing method according to claim 1, characterized in that: The test environment corresponding to the vehicle-mounted Ethernet ring network is established according to the preset test requirements, including: In the case where the preset test requirement is to perform a system-level test on the vehicle-mounted Ethernet ring network, a first test device is used to control a plurality of test units to access a link between any two nodes in the vehicle-mounted Ethernet ring network to obtain a system-level test environment corresponding to the vehicle-mounted Ethernet ring network; wherein the test unit is used to perform data simulation and data acquisition; When the preset test requirement is to test the node under test, a second test device is used to simulate the control unit of a node directly connected to the node under test in the vehicle-mounted Ethernet ring network to obtain a component-level test environment corresponding to the vehicle-mounted Ethernet ring network; wherein the node under test is any node in the vehicle-mounted Ethernet ring network.

3. The stability testing method according to claim 1 or 2, characterized in that: The preprocessing of the initial object to be tested corresponding to the vehicle-mounted Ethernet ring network located in the test environment to match the preset test scenario to obtain the target object to be tested in the preset test scenario includes: Using a preset power supply module to provide a reference power supply voltage to the initial object to be tested, thereby obtaining an intermediate object to be tested; The intermediate object to be tested is preprocessed to match the preset test scenario to obtain the target object to be tested.

4. The stability testing method according to claim 3, characterized in that: The test environment includes: a system-level test environment corresponding to the vehicle-mounted Ethernet ring network, the preset power supply module is used to provide a reference power supply voltage to the initial object to be tested, and an intermediate object to be tested is obtained, including: Using a first power supply module in the system-level test environment, providing a first reference voltage to an initial system to be tested corresponding to the vehicle-mounted Ethernet ring network, to obtain an intermediate system to be tested; The preprocessing of the intermediate object to be tested to match the preset test scenario to obtain the target object to be tested includes: The intermediate system to be tested is preprocessed to match the preset test scenario to obtain a target system to be tested.

5. The method according to claim 4, characterized in that The preprocessing of the intermediate system to be tested to match the preset test scenario to obtain the target system to be tested includes: Adopting the programmable power supply module in the system-level test environment, adjusting the power supply voltage of the intermediate system under test from the first reference voltage to the first intermediate voltage, and then adjusting from the first intermediate voltage to the first reference voltage according to a preset voltage adjustment step, to obtain the target system under test in the scenario after the power supply voltage fluctuates; or, Using the test unit in the system-level test environment, sending a sleep-wake-up condition to each node in the intermediate system to be tested, and obtaining the target system to be tested in a scenario after network sleep-wake-up; or, Using the test unit in the system-level test environment, simulating sending an Ethernet message whose network bus load rate corresponding to the control is higher than a first preset value to two ports of each node in the intermediate system to be tested, and obtaining the target system to be tested in a scenario corresponding to a high network load; or, By using the programmable power supply module in the system-level test environment, each node in the intermediate system under test is powered on according to a plurality of different node access sequences, so as to obtain the target system under test in the scenario corresponding to the power-on link.

6. The stability testing method according to claim 5, characterized in that: The programmable power supply module in the system-level test environment is used to power on each node in the intermediate system to be tested according to a plurality of different node access sequences, so as to obtain the target system to be tested in the scenario corresponding to the power-on link, including: The programmable power supply module is used to control each node in the intermediate system to be in a power-off state at the same time point, and after a first preset time, each node in the intermediate system to be tested is powered on in sequence according to the multiple node access sequences, so as to obtain the target system to be tested in the scene corresponding to the power-on link; or, By using the programmable power supply module, each node in the intermediate system to be tested is powered off in turn according to the access sequence of the multiple different nodes and stabilized for a second preset time period. After the second preset time period, each node in the intermediate system to be tested is powered on in turn according to the access sequence of the multiple different nodes, so as to obtain the target system to be tested in the scenario corresponding to the power-on link.

7. The stability testing method according to claim 3, characterized in that: The test environment includes: a component-level test environment corresponding to the vehicle-mounted Ethernet ring network, the use of a preset power supply module to provide a reference power supply voltage to the initial object to be tested, and obtaining an intermediate object to be tested, including: Using a second power supply module in the component-level test environment to provide a second reference voltage to an initial node to be tested in the vehicle-mounted Ethernet ring network to obtain an intermediate node to be tested; The preprocessing of the intermediate object to be tested to match the preset test scenario to obtain the target object to be tested includes: The intermediate node to be tested is preprocessed to match the preset test scenario to obtain a target node to be tested.

8. The stability testing method according to claim 7, characterized in that: The preprocessing of the intermediate node to be tested to match the preset test scenario to obtain the target node to be tested includes: Adopting the programmable power supply module in the component-level test environment, adjusting the power supply voltage of the intermediate node to be tested from the second reference voltage to the second intermediate voltage, and then adjusting from the second intermediate voltage to the second reference voltage according to a preset voltage adjustment step, to obtain the target node to be tested in the scenario after the power supply voltage fluctuates; or, Using the first test device in the component-level test environment, sending a network management message for realizing network dormancy awakening to the intermediate node to be tested, and obtaining the target node to be tested in the scenario after network dormancy awakening; or, The first test device in the component-level test environment is used to simulate sending Ethernet messages with a corresponding link load rate higher than a second preset value to the two ports of the intermediate node to be tested, so as to obtain the target node to be tested in a scenario corresponding to high network load.

9. A vehicle-mounted Ethernet ring network stability test system, characterized in that: The vehicle-mounted Ethernet ring network includes: a master node, an adjacent node and at least one slave node, the master node and the adjacent node are connected via a ring protection link, and the stability test system includes: A building module is configured to build a test environment corresponding to the vehicle-mounted Ethernet ring network according to a preset test requirement; wherein the ring network protection switching function of the vehicle-mounted Ethernet ring network located in the test environment operates normally; A preprocessing module is configured to perform preprocessing matching a preset test scenario on an initial object to be tested corresponding to the vehicle-mounted Ethernet ring network located in the test environment, so as to obtain a target object to be tested in the preset test scenario; The test module is configured to test the ring network protection switching function and the ring network recovery switching function in sequence on the target object to be tested to obtain a test result.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which, after being executed, can implement the stability testing method of the vehicle-mounted Ethernet ring network described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Switch system and execution processing method of switch

    CN113709068A

  • Looped network test method, system and equipment for vehicle-mounted Ethernet

    CN115412459A

  • Ring network communication method and device of vehicle-mounted Ethernet, vehicle and storage medium

    CN115714698A

  • Vehicle-mounted Ethernet ring network link switching method and system, vehicle and storage medium

    CN116455699A

  • Methods and devices of quantum encoding on DWDM (ROADM) network and fiber optic links .

    US20110206204A1