Vehicle-mounted Ethernet full-load test system and method based on intelligent gateway
Through the combination solution of intelligent gateway, vehicle-mounted switch and test host, a virtual LAN is constructed to conduct vehicle-mounted Ethernet full-load testing, which solves the problems of low data observability, high equipment cost and functional redundancy in the existing technology, and achieves a more efficient and More accurate testing.
Patent Information
- Application Number
- CN202410762930.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing in-vehicle Ethernet full-load test methods have problems such as low data observability, high equipment cost, and functional redundancy. Especially when the number of in-vehicle Ethernet ports increases, software development and maintenance costs and equipment requirements increase significantly, resulting in test efficiency. and decreased accuracy.
Using a combination of intelligent gateway, vehicle-mounted switch and test host, the microprocessing unit and routing chip are used to realize signal routing and forwarding management between non-Ethernet protocols and Ethernet protocols, and a virtual LAN is constructed for data transmission and reception testing to improve data observability. and reduce equipment and labor maintenance costs.
It improves the data observability of the vehicle Ethernet full-load test, reduces equipment and software maintenance costs, avoids functional redundancy, and improves test efficiency and accuracy.
Smart Images

Figure CN118714035A
Abstract
Description
Technical Field
[0001] The present application relates to the field of new energy vehicle technology, and in particular to a vehicle Ethernet full-load test system and method based on an intelligent gateway. Background Art
[0002] As the vehicle's electronic and electrical architecture develops towards distributed control, regional control and central control, the use of in-vehicle Ethernet in the vehicle architecture is becoming increasingly widespread. Compared with the traditional vehicle architecture communication network, in-vehicle Ethernet has a higher data transmission rate, lower transmission delay and stronger anti-interference ability to adapt to the development trend of intelligent, electrified and networked vehicles. As the data communication exchange hub of the in-vehicle Ethernet system in the vehicle architecture, it is particularly important for the in-vehicle intelligent gateway to provide stable, secure and reliable communication quality assurance.
[0003] During the hardware development phase of the in-vehicle intelligent gateway, hardware testers need to conduct full-load communication data tests (Ethernet throughput tests) on all in-vehicle Ethernet ports on the sample to verify whether the maximum data throughput of the in-vehicle Ethernet hardware port meets the standards of the hardware physical characteristics, or whether its throughput error is within the reasonable range of product functional requirements. Therefore, during sample hardware testing or EMC testing, hardware testers usually use the following two test methods to implement full-load testing of in-vehicle Ethernet.
[0004] The first method is to connect the vehicle Ethernet port of the smart gateway with other vehicle ECU products (counterparts) with the same specification of vehicle Ethernet ports. Multiple counterparts and the smart gateway together constitute a vehicle Ethernet test system. In this system, counterparts periodically access and communicate with other counterparts in the form of fixed large data packets to test performance such as physical bandwidth rate, packet loss rate and number of error frames.
[0005] The second method is to connect the vehicle Ethernet port of the smart gateway to a professional throughput test device (traffic meter). The device is connected to every two vehicle Ethernet ports of the smart gateway to form a loop, and a full load test is performed in each loop.
[0006] As the functional architecture of the vehicle becomes increasingly complex, the number of in-vehicle Ethernet 100M and 1000M ports required by the smart gateway continues to increase. Although the above two test methods can quickly meet the needs of hardware testers, the following problems still exist:
[0007] In the first method, as the number of in-vehicle Ethernet ports increases, the number of counterparts also needs to increase, resulting in an exponential increase in software development and maintenance costs and complexity. The test is similar to a black box test, and hardware testers cannot observe various indicator data information during full load testing in real time.
[0008] In the second method, as the number of in-vehicle Ethernet ports increases, the number of professional flow meter devices required may also increase, and the equipment is expensive and the equipment cost is high. The full load test of in-vehicle Ethernet is only one of the functions of the flow meter device. If the device is used without other test requirements, it will cause huge redundancy of the device function. Summary of the invention
[0009] In view of this, an embodiment of the present application provides a vehicle Ethernet full-load test system and method based on an intelligent gateway to solve the problems of low data observability, high equipment cost and functional redundancy of traditional test methods in the prior art.
[0010] According to a first aspect of an embodiment of the present application, a vehicle-mounted Ethernet full-load test system based on an intelligent gateway is provided, comprising: an intelligent gateway, an on-board switch and a test host; the intelligent gateway comprises a microprocessor unit and a routing chip, the microprocessor unit is used for signal routing and forwarding management between non-Ethernet protocols and Ethernet protocols inside the intelligent gateway, and the routing chip comprises an Ethernet interface with at least one bandwidth specification; the on-board switch comprises an Ethernet interface connected to the Ethernet interface of the routing chip through a physical path, and the on-board switch is also configured with a network port connected to the test host; the test host is used to construct a test communication link between the test host and the microprocessor unit according to a test program, and to construct a virtual local area network on each test communication link, each virtual local area network corresponds to a network protocol address, and data transmission and reception tests are performed through the virtual local area network and the corresponding network protocol address to test the bandwidth performance of each Ethernet interface in the intelligent gateway.
[0011] According to a second aspect of an embodiment of the present application, a method for full-load testing of an in-vehicle Ethernet based on an intelligent gateway is provided, comprising: in response to a test request, constructing a test communication link between a test host and a microprocessor unit according to a predetermined test program; constructing a virtual local area network on each test communication link, each virtual local area network corresponding to a network protocol address; performing a data transmission and reception test through the virtual local area network and the corresponding network protocol address to test the bandwidth performance of each Ethernet interface in the intelligent gateway; wherein the intelligent gateway comprises a microprocessor unit and a routing chip, the microprocessor unit being used for signal routing and forwarding management between a non-Ethernet protocol and an Ethernet protocol inside the intelligent gateway, the routing chip comprising an Ethernet interface with at least one bandwidth specification; the in-vehicle switch comprising an Ethernet interface correspondingly connected to the Ethernet interface of the routing chip through a physical path, and the in-vehicle switch is also provided with a network port connected to the test host.
[0012] According to a third aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the computer program.
[0013] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0014] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:
[0015] Through the intelligent gateway, the vehicle switch and the test host; the intelligent gateway includes a microprocessor unit and a routing chip, the microprocessor unit is used for the signal routing and forwarding management between the non-Ethernet protocol and the Ethernet protocol inside the intelligent gateway, and the routing chip includes an Ethernet interface with at least one bandwidth specification; the vehicle switch includes an Ethernet interface corresponding to the Ethernet interface of the routing chip through a physical path, and the vehicle switch is also configured with a network port connected to the test host; the test host is used to build a test communication link between the test host and the microprocessor unit according to the test program, and build a virtual local area network on each test communication link, each virtual local area network corresponds to a network protocol address, and data transmission and reception tests are performed through the virtual local area network and the corresponding network protocol address to test the bandwidth performance of each Ethernet interface in the intelligent gateway. The present application can improve the data observability of the full-load test of the vehicle Ethernet, reduce the equipment cost and the human maintenance cost of the software, and avoid functional redundancy. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art 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 drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 It is a schematic diagram of the framework of the first vehicle Ethernet full-load test system in the prior art provided by an embodiment of the present application;
[0018] Figure 2 It is a schematic diagram of the framework of a second vehicle Ethernet full-load test system in the prior art provided by an embodiment of the present application;
[0019] Figure 3 It is a schematic diagram of the framework of a vehicle Ethernet full-load test system based on an intelligent gateway provided in an embodiment of the present application;
[0020] Figure 4 It is a flowchart of a vehicle Ethernet full load test method based on a smart gateway provided in an embodiment of the present application;
[0021] Figure 5It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0023] As the vehicle's electronic and electrical architecture develops towards distributed control, regional control, and central control, the use of in-vehicle Ethernet in the vehicle architecture is becoming more extensive. Compared with the traditional vehicle architecture communication network, in-vehicle Ethernet has a higher data transmission rate, lower transmission delay, and stronger anti-interference ability to adapt to the development trend of intelligent, electrified, and networked vehicles. As the data communication exchange hub of the in-vehicle Ethernet system in the vehicle architecture, the in-vehicle intelligent gateway needs to provide stable, secure, and reliable communication quality assurance, which is particularly important.
[0024] During the hardware development phase of the in-vehicle intelligent gateway, hardware testers need to perform full-load communication data testing (also known as Ethernet throughput testing) on all in-vehicle Ethernet ports on the sample in an Ethernet communication environment to verify whether the maximum data throughput of the developed and designed in-vehicle Ethernet hardware port can meet the standards of the hardware physical characteristics, or whether the throughput error is within a reasonable range of product functional requirements. Therefore, during sample hardware testing or EMC testing, hardware testers usually use the following two test methods to implement the test items required for the in-vehicle Ethernet full-load test. The following is an explanation of the content and principles of the existing in-vehicle Ethernet full-load test system in conjunction with the accompanying drawings. The traditional in-vehicle Ethernet full-load test system includes the following two architectures:
[0025] The first architecture, such as Figure 1 As shown, Figure 1 It is a schematic diagram of the framework of the first in-vehicle Ethernet full-load test system in the prior art provided by the embodiment of the present application. The in-vehicle Ethernet ports of the intelligent gateway sample are all connected to other in-vehicle ECU products (here referred to as counterparts relative to the gateway) with in-vehicle Ethernet ports of the same specifications. Multiple counterparts and the intelligent gateway together constitute the in-vehicle Ethernet test system. In the test system, the counterparts and other counterparts access and communicate data with each other periodically in the form of fixed large data packets to test the performance of physical bandwidth rate, packet loss rate and number of error frames.
[0026] The second architecture, such as Figure 2 As shown, Figure 2This is a schematic diagram of the framework of the second vehicle Ethernet full-load test system in the prior art provided by the embodiment of the present application. The vehicle Ethernet port of the smart gateway is connected to a professional throughput test device (the device is commonly known as a flow meter), and the device is connected to every two vehicle Ethernet ports on the smart gateway to form a loop, and a full-load test is performed in each loop.
[0027] As the functional architecture of the whole vehicle becomes more and more complex, the number of 100M and 1000M ports of the smart gateway vehicle Ethernet that needs to be used is also increasing. Based on the above rapidly changing external needs, although the above two test methods can quickly meet the hardware testers' full-load test needs for the vehicle smart gateway Ethernet, they also derive the following disadvantages. Among them, the first test system solution has the following disadvantages: 1. As the number of vehicle Ethernet ports used by the gateway increases, the number of counterparts required will also increase. Since the product function positioning of each counterpart is different, the software development and maintenance costs and complexity of all counterparts will increase exponentially. 2. This test is more like a black box test, and the hardware testers cannot observe the various indicator data information during the full load test in real time. The second test system solution has the following disadvantages: 1. As the number of vehicle Ethernet ports used increases, the number of professional flow meter equipment required may also increase. The equipment is expensive, and its equipment cost budget considerations cannot meet the equipment requirements for the full-load test of the smart gateway vehicle Ethernet. 2. The full-load test of the vehicle Ethernet is only one of the functions of the flow meter equipment. If the equipment is used without other test requirements, it will cause huge redundancy of the equipment function.
[0028] Therefore, considering data observability, low equipment cost, and low functional redundancy, the above two test system solutions are not the best choice for full-load testing of smart gateway vehicle Ethernet ports. In view of this, this application proposes a test solution based on vehicle Ethernet switches and self-developed full-load test programs, which can effectively solve the drawbacks of low data observability, high equipment cost, and functional redundancy.
[0029] The contents of the technical solution of the present application are described in detail below with reference to the accompanying drawings and specific embodiments.
[0030] Figure 3 Schematic diagram of the framework of the vehicle Ethernet full load test system based on the intelligent gateway provided in the embodiment of the present application. Figure 3 As shown, the vehicle Ethernet full-load test system based on the intelligent gateway may specifically include: an intelligent gateway, a vehicle switch and a test host;
[0031] The intelligent gateway includes a microprocessing unit and a routing chip. The microprocessing unit is used for signal routing and forwarding management between the non-Ethernet protocol and the Ethernet protocol inside the intelligent gateway. The routing chip includes an Ethernet interface with at least one bandwidth specification.
[0032] The vehicle-mounted switch includes an Ethernet interface connected to the Ethernet interface of the routing chip via a physical path, and the vehicle-mounted switch is also configured with a network port connected to the test host;
[0033] The test host is used to build a test communication link between the test host and the microprocessor unit according to the test program, and to build a virtual local area network on each test communication link. Each virtual local area network corresponds to a network protocol address. Data sending and receiving tests are performed through the virtual local area network and the corresponding network protocol address to test the bandwidth performance of each Ethernet interface in the intelligent gateway.
[0034] The vehicle Ethernet full-load test system based on the intelligent gateway proposed in this application adopts the architecture of "intelligent gateway + vehicle switch + test host". Among them, the intelligent gateway part is mainly composed of MPU (microprocessing unit) + Switch (routing chip), and the MPU is responsible for the routing and forwarding management of signals between non-Ethernet protocols and Ethernet protocols in the intelligent gateway. Switch has multiple Ethernet interfaces with specifications of 100BaseT1 and 1000BaseT1 to the outside, and a high-speed bus PCIE interface to the inside, which is responsible for building multiple vehicle domain controllers and MPUs into a vehicle Ethernet star LAN. In the vehicle Ethernet star LAN, different controllers achieve mutual access and data transmission through Ethernet links, so the MPU and other Ethernet devices can jointly build a path for Ethernet transceiver testing. At the same time, the MPU is also responsible for more abstract application processing of Ethernet forwarding data, so that the gateway has the hardware foundation to realize more advanced application functions.
[0035] In some embodiments, the routing chip is used to:
[0036] An Ethernet interface with at least one bandwidth specification is provided to the external vehicle switch, and is internally connected to the microprocessor unit through a high-speed bus interface, so as to build a vehicle Ethernet star LAN between the vehicle switch and the microprocessor unit, wherein the devices in the vehicle Ethernet star LAN communicate with each other through a routing chip.
[0037] Specifically, the Switch (routing chip) includes an external interface and an internal interface. Among them, the external interface means that the Switch provides multiple Ethernet interfaces with specifications of 100Base-T1 (i.e., the first specification Ethernet interface) and 1000Base-T1 (i.e., the second specification Ethernet interface) to the outside, which are used to connect the vehicle domain controller and other Ethernet devices. The internal interface means that the Switch is connected to the MPU internally through the high-speed bus PCIE interface. The PCIE interface is a high-speed data transmission interface that ensures the efficiency and stability of data transmission within the intelligent gateway.
[0038] Furthermore, the Switch connects the vehicle domain controller and the MPU through multiple first-specification Ethernet interfaces (such as 100Base-T1 interfaces) and second-specification Ethernet interfaces (such as 1000Base-T1 interfaces) to form a star-shaped local area network (LAN). In this network topology, all devices communicate through the Switch, and each device can directly exchange data with other devices.
[0039] Furthermore, in this star-shaped LAN, different controllers can access each other and transmit data through Ethernet. The MPU is responsible for managing the signal routing and forwarding during these data transmission processes, ensuring that data of different protocols can be uniformly transmitted on Ethernet.
[0040] Furthermore, during the test of the intelligent gateway, the MPU and other Ethernet devices (such as PC) jointly build a data transmission and reception test channel. In this way, the bandwidth performance, packet loss rate, and error frame number of each Ethernet port on the Switch can be verified.
[0041] It should be noted that in addition to basic data routing and forwarding, the MPU also performs more abstract application processing on the forwarded data. For example, the MPU can pre-process, filter or convert data according to specific application requirements to provide more advanced functional support.
[0042] Through the intelligent gateway of the above embodiment, the intelligent gateway can efficiently manage and forward various vehicle communication data, ensure stable and reliable data exchange between different controllers, and improve the accuracy and data observability of the test through self-developed test programs. This design solves many problems existing in traditional testing methods, such as low data observability, high equipment cost and functional redundancy, and provides a more optimized vehicle Ethernet test solution.
[0043] In some embodiments, the routing chip and the vehicle switch both include a first-specification Ethernet interface and a second-specification Ethernet interface, and the vehicle switch is used to:
[0044] The first-specification Ethernet interface in the vehicle switch is connected to the first-specification Ethernet interface in the routing chip in sequence, and the second-specification Ethernet interface in the vehicle switch is connected to the second-specification Ethernet interface in the routing chip in sequence.
[0045] Specifically, according to the specific vehicle Ethernet full-load test plan, the Ethernet interface of the vehicle switch and the Ethernet interface of the Switch are physically connected in different connection modes. The PC (test host) is connected to the TX (network port) on the vehicle switch, and the PC can have interfaces that connect to both 100BsseTX and 1000BaseTX rules through a USB network card.
[0046] Furthermore, the Ethernet port of the vehicle switch is physically connected to the Ethernet interface of the Switch, wherein: the 100Base-T1 interface (first specification Ethernet interface) of the Switch is connected to the corresponding 100Base-T1 interface (first specification Ethernet interface) of the vehicle switch; the 1000Base-T1 interface (second specification Ethernet interface) of the Switch is connected to the corresponding 1000Base-T1 interface (second specification Ethernet interface) of the vehicle switch.
[0047] In one example, the Ethernet port of the vehicle switch and the Ethernet interface of the Switch are physically connected in different connection modes, for example, the following connection modes may be used:
[0048] 100Base-T1 (first specification Ethernet interface) connection: All 100Base-T1 interfaces of the Switch are connected to the corresponding 100Base-T1 interfaces on the vehicle switch respectively, and all 100Base-T1 interfaces of the vehicle switch are forwarded to the TX1 port (first network port), forming n communication links with a bandwidth of 100M.
[0049] 1000Base-T1 (second specification Ethernet interface) connection: All 1000Base-T1 interfaces of the Switch are connected to the corresponding 1000Base-T1 interfaces on the vehicle switch. Inside the vehicle switch, every two 1000Base-T1 are set to be interconnected, and the extra one is interconnected with the TX2 port (the second network port) to form a physical link that can send and receive data to each other.
[0050] In actual applications, the PC is connected to the TX port of the vehicle switch through a USB network card, which has 100Base-TX and 1000Base-TX interfaces.
[0051] In some embodiments, the network port includes a first network port and a second network port, and a test communication link between the test host and the micro-processing unit is established according to the test program, including:
[0052] Forward the data of all first-specification Ethernet interfaces in the vehicle switch to the first network port in the vehicle switch to form a first test communication link corresponding to the first-specification Ethernet interface; interconnect the second-specification Ethernet interfaces in the vehicle switch in sequence, and connect the last second-specification Ethernet interface to the second network port in the vehicle switch to form a second test communication link corresponding to the second-specification Ethernet interface.
[0053] Specifically, the relevant self-developed test program can be run on the PC (test host) to perform data transmission and reception tests with the MPU to verify the bandwidth performance of each Ethernet port on the Switch. The physical connection method used in the test scheme of this embodiment is as follows: All 100BaseT1 (first specification Ethernet interface) of the Switch are respectively connected to the 100BaseT1 (first specification Ethernet interface) of the same order on the switch, and all 100BaseT1 of the vehicle-mounted switch are forwarded to the TX1 port respectively. There are n 100M bandwidth communication links between the MPU and the PC. All 1000BaseT1 (second specification Ethernet interface) of the Switch are respectively connected to the 1000BaseT1 (second specification Ethernet interface) on the switch. Every two 1000BaseT1 in the switch are set to be interconnected and the extra one is interconnected with the TX2 port. In this way, all the vehicle-mounted 1000BaseT1 ports between the MPU and the PC are jointly constructed as a physical link that can transmit and receive data to each other.
[0054] For example, in a specific example, this embodiment builds a test communication link between a test host and a microprocessing unit (MPU) according to a test program, and the specific implementation process is as follows:
[0055] 1. Test communication link construction of the first specification Ethernet interface (100Base-T1)
[0056] Physical connection: All 100Base-T1 interfaces (first specification Ethernet interfaces) of the Switch are connected to the corresponding 100Base-T1 interfaces on the vehicle switch to form a preliminary physical connection path. Inside the vehicle switch, the data of these 100Base-T1 interfaces will be uniformly forwarded to the first network port (TX1 port) of the vehicle switch.
[0057] Communication link construction: All data from the 100Base-T1 interfaces in the vehicle switch are forwarded to the TX1 port through internal routing to form n first test communication links with a bandwidth of 100M.
[0058] Data transmission and reception test: Run the self-developed test program on the PC (test host) and connect to the TX1 port of the vehicle switch through the USB network card. Perform data transmission and reception tests with the MPU through these physical links to verify the bandwidth performance of each 100Base-T1 interface on the Switch.
[0059] 2. Test communication link construction of the second specification Ethernet interface (1000Base-T1)
[0060] Physical connection: All 1000Base-T1 interfaces (second-specification Ethernet interfaces) of the Switch are connected to the corresponding 1000Base-T1 interfaces on the vehicle switch to form a preliminary physical connection path.
[0061] Inside the vehicle switch, every two 1000Base-T1 interfaces are set to be interconnected, and the extra interface is interconnected with the second network port (TX2 port) of the vehicle switch.
[0062] Communication link construction: All 1000Base-T1 interfaces in the vehicle switch are interconnected in sequence, and the data of the last 1000Base-T1 interface is forwarded to the TX2 port through internal routing to form a second test communication link that can send and receive data to each other.
[0063] Data transmission and reception test: Run the self-developed test program on the PC (test host) and connect to the TX2 port of the vehicle switch through the USB network card. Perform data transmission and reception tests with the MPU through these physical links to verify the bandwidth performance of each 1000Base-T1 interface on the Switch.
[0064] In actual applications, all physical connections are achieved through standard Ethernet cables to ensure the stability and reliability of the connection. The use of USB network cards ensures that the PC can adapt to Ethernet interfaces of different specifications, with high flexibility. The self-developed test program of this embodiment runs on the Linux system, and uses the script developed by the iperf3 tool to generate data packets of various sizes and perform bandwidth tests. The program contains a detailed logging function to facilitate data analysis after the test is completed.
[0065] Through the system architecture of the above embodiment, a test communication link between the test host and the MPU can be effectively constructed, and the bandwidth performance of each Ethernet interface can be verified. This method solves the problems of low data observability, high equipment cost, and functional redundancy in existing test solutions, and improves the test efficiency and accuracy of the vehicle Ethernet system.
[0066] In some embodiments, a virtual local area network is constructed on each test communication link, and each virtual local area network corresponds to a network protocol address, including:
[0067] On the first test communication link, multiple virtual local area networks are constructed between the test host and the microprocessor unit using virtual local area network technology, wherein each first test communication link corresponds to a virtual local area network, and each virtual local area network corresponds to a network protocol address.
[0068] Specifically, in order to build a virtual local area network (VLAN) on each test communication link, first build a virtual local area network on the first test communication link. Determine the physical connection path for the first test communication link. All 100Base-T1 interfaces (first specification Ethernet interfaces) of the switch are respectively connected to the corresponding 100Base-T1 interfaces on the vehicle switch. The data of all 100Base-T1 interfaces of the vehicle switch are forwarded to the TX1 port (first network port) through internal routing, forming n communication links with a bandwidth of 100M.
[0069] Furthermore, VLAN is configured on the Switch: On the Switch, each 100Base-T1 interface corresponds to a VLAN. Each VLAN communicates data through a different network protocol address (IP segment). During the configuration process, a unique IP segment is assigned to each VLAN to ensure that each VLAN can independently perform data transmission and reception tests.
[0070] Furthermore, configure VLAN on the PC (test host): Connect the PC to the TX1 port of the vehicle switch via a USB network card. Use the VLAN configuration tool (such as the vconfig command in Linux) on the PC to create multiple VLAN interfaces. Each VLAN interface corresponds to an independent IP segment, which corresponds to the VLAN configured on the Switch.
[0071] Further, data transmission and reception test: run the self-developed test program on the PC, the program runs on the Linux system, and uses the script developed by the iperf3 tool to generate test data packets and perform bandwidth tests. In the test program, data packets are sent and received to the corresponding VLAN through each VLAN interface to verify the bandwidth performance of each 100Base-T1 interface.
[0072] In an example, the data transmission and reception test process is as follows: first, create a VLAN interface, then use the command to create an interface with VLAN ID 10; then, use the command to assign an IP address to the VLAN interface; finally, run the iperf3 test, start the iperf3 server, and start the iperf3 client for testing.
[0073] In actual applications, all physical connections are made through standard Ethernet cables to ensure the stability and reliability of the connection. The use of USB network cards ensures that the PC can flexibly adapt to Ethernet interfaces of different specifications. The self-developed test program of this embodiment includes a detailed logging function to facilitate data analysis after the test is completed. The program can adjust the size of the data packet and the data display items that need to be observed according to the specific needs of the full load test to ensure the flexibility and accuracy of the test.
[0074] Through the system solution of the present embodiment, a test communication link between the test host and the microprocessor unit can be effectively constructed, and multiple virtual local area networks (VLANs) can be constructed on each communication link. This method ensures the accuracy and reliability of the bandwidth performance test of each 100Base-T1 interface, solves the problems of low data observability, high equipment cost, and functional redundancy in the existing test solution, and improves the test efficiency and accuracy of the vehicle Ethernet system.
[0075] In some embodiments, the data transmission and reception test is performed through a virtual local area network and a corresponding network protocol address, including:
[0076] On the first test communication link, a data transmission and reception test is performed between the test host and the microprocessor unit through the network protocol addresses corresponding to the multiple virtual local area networks, so as to verify the bandwidth performance of each first specification Ethernet interface in the intelligent gateway according to the test results;
[0077] On the second test communication link, a data transmission and reception test is performed between the test host and the microprocessor unit through a preset single network protocol address, so as to verify the bandwidth performance of each second specification Ethernet interface in the intelligent gateway according to the test results.
[0078] Specifically, on the determined 100Base-T1 physical link (i.e., the first test communication link), multiple VLANs are constructed between the PC and the MPU through the VLAN method, and each VLAN corresponds to an IP segment. Through the virtual local area network (VLAN) technology, the physical link is divided into multiple virtual networks, so that each network has an independent IP segment. Each VLAN has an independent IP segment, so that each 100Base-T1 port on the Switch corresponds to an IP segment. Data transmission and reception tests are performed through different IP segment addresses to verify the bandwidth performance of each port.
[0079] Furthermore, on the determined 1000BaseT1 physical link (i.e., the second test communication link), since only one physical link is constructed for interconnection, there is no need to use the VLAN method, and there is only one IP segment between the MPU and the PC in the 1000Base test. Therefore, when full-load data transmission and reception tests are performed simultaneously between the MPU and the PC under multiple IP segments, there will be no access conflict. Test programs that meet the requirements of the full-load test of automotive Ethernet need to be run on both the MPU and the PC. The two test programs need to perform corresponding data transmission and reception on the multiple IP segments determined in the above description to verify the performance of the current Switch port, such as the physical bandwidth rate, packet loss rate, and number of error frames.
[0080] For example, in a specific example, this embodiment performs a data transmission and reception test through a virtual local area network (VLAN) and a corresponding network protocol address, including the following detailed process:
[0081] 1. Data transmission and reception test of the first test communication link
[0082] Build VLAN and allocate IP segments: On the determined 100Base-T1 physical link (i.e., the first test communication link), use VLAN technology to divide the physical link into multiple virtual LANs, each VLAN corresponds to an independent IP segment. Configure multiple VLANs between the PC (test host) and the microprocessor unit (MPU), and allocate an independent IP address segment to each VLAN.
[0083] Configure VLAN: On the Switch, assign each 100Base-T1 port to a different VLAN, and each VLAN has a unique IP segment. On the PC, create the corresponding VLAN interface through the USB network card, and use the command to create an interface with VLAN ID 10. Use the command to assign an IP address to the VLAN interface.
[0084] Run iperf3 test: Start the iperf3 server and start the iperf3 client for testing.
[0085] Verify bandwidth performance: Perform data transmission and reception tests using IP segment addresses corresponding to multiple VLANs, and test each VLAN between the PC and the MPU separately. Record and analyze performance data such as the physical bandwidth rate, packet loss rate, and number of error frames of each 100Base-T1 port.
[0086] 2. Data transmission and reception test of the second test communication link
[0087] Single IP segment configuration: On the determined 1000Base-T1 physical link (i.e., the second test communication link), since only one physical link is built for interconnection, there is no need to use VLAN mode. Data transmission and reception tests are performed between the PC and the MPU through a single IP segment.
[0088] Configure a single IP segment: On the PC, assign an IP address to the 1000Base-T1 interface, such as 192.168.20.1 / 24. On the MPU, assign a corresponding IP address to the corresponding 1000Base-T1 interface, such as 192.168.20.2 / 24.
[0089] Run iperf3 test: Start the iperf3 server and start the iperf3 client for testing.
[0090] Verify bandwidth performance: Perform data transmission and reception tests through a single IP segment address, and perform full-link bandwidth performance tests between the PC and the MPU. Record and analyze performance data such as the physical bandwidth rate, packet loss rate, and error frame number of each 1000Base-T1 port.
[0091] 3. Real-time monitoring and data analysis
[0092] Real-time monitoring: During the test, the PC displays the test status and data information in real time, and the hardware tester can monitor the data transmission performance on each VLAN and a single IP segment in real time.
[0093] Data analysis: The test program runs on the Linux system and uses scripts developed using the iperf3 tool to generate data packets of various sizes and perform bandwidth tests.
[0094] After the test is completed, the recorded test data is analyzed to evaluate the physical bandwidth rate, packet loss rate, and number of error frames for each Ethernet interface.
[0095] In actual applications, packets of different sizes and types can be introduced during the test to simulate various network load conditions in real application environments, thereby comprehensively evaluating the performance of the Ethernet interface. The test program can include detailed logging functions to facilitate more comprehensive data analysis after the test is completed.
[0096] Through the solution of the present embodiment described above, the bandwidth performance of each 100Base-T1 and 1000Base-T1 Ethernet port in the intelligent gateway can be effectively verified to ensure the accuracy and reliability of the test. This method solves the problems of low data observability, high equipment cost, and functional redundancy in existing test solutions, and improves the test efficiency and accuracy of the vehicle Ethernet system.
[0097] In some embodiments, the test host is also used to:
[0098] When running the test program, the pre-developed test tool script is used to execute data sending and receiving test operations, and the test status and data information are displayed in real time on the test host, so as to observe the data full load test process and adjust the test data packets and observed data display items according to the data full load test requirements.
[0099] Specifically, the test programs on the MPU and PC sides are all run based on the Linux system. The current test status and data information can be displayed in real time on the PC, which is convenient for hardware testers to conduct real-time data observation and post-test data statistical analysis. The test programs are all scripted based on the iperf3 tool. In the test program, the size of the test data packet and the data display items that need to be observed can be adjusted in time according to the specific needs of the full-load test. Therefore, the test solution with the architecture of smart gateway + vehicle-mounted switch + PC can effectively solve the disadvantages of low data observability, high equipment cost, and high functional redundancy caused by the use of traditional test solutions in the full-load test of smart gateway vehicle-mounted Ethernet.
[0100] Based on the vehicle Ethernet full load test system based on the intelligent gateway provided in the above embodiment, the embodiment of the present application also provides a vehicle Ethernet full load test method corresponding to the vehicle Ethernet full load test system based on the intelligent gateway. The implementation process of the vehicle Ethernet full load test method of the embodiment of the present application is described below in conjunction with the accompanying drawings and specific embodiments. Figure 4 FIG. 1 is a flow chart of a vehicle Ethernet full load test method based on an intelligent gateway provided in an embodiment of the present application. Figure 4 As shown, the vehicle Ethernet full load test method based on the intelligent gateway may include the following contents:
[0101] S401, in response to a test request, establishing a test communication link between a test host and a microprocessor unit according to a predetermined test program;
[0102] S402, constructing a virtual local area network on each test communication link, each virtual local area network corresponding to a network protocol address;
[0103] S403, performing a data transmission and reception test through a virtual local area network and a corresponding network protocol address to test the bandwidth performance of each Ethernet interface in the intelligent gateway;
[0104] The intelligent gateway includes a microprocessing unit and a routing chip. The microprocessing unit is used for signal routing and forwarding management between the non-Ethernet protocol and the Ethernet protocol inside the intelligent gateway. The routing chip includes an Ethernet interface with at least one bandwidth specification.
[0105] The on-board switch includes an Ethernet interface correspondingly connected to the Ethernet interface of the routing chip through a physical path, and the on-board switch is also configured with a network port connected to the test host.
[0106] In a specific example, this embodiment provides a vehicle Ethernet full load test method based on an intelligent gateway. The following specific embodiment describes the implementation process of the vehicle Ethernet full load test method. The vehicle Ethernet full load test method based on an intelligent gateway includes the following steps:
[0107] First, respond to the test request:
[0108] After receiving the test request, a test communication link is established between the test host (PC) and the microprocessor unit (MPU) according to a predetermined test program.
[0109] The routing chip includes an Ethernet interface with at least one bandwidth specification, and is correspondingly connected to the Ethernet interface of the vehicle-mounted switch through a physical path.
[0110] First test communication link (100Base-T1 physical link):
[0111] All 100Base-T1 interfaces (first specification Ethernet interfaces) of the Switch are connected to the corresponding 100Base-T1 interfaces on the vehicle switch.
[0112] The data of all 100Base-T1 interfaces of the vehicle switch are forwarded to the TX2 port (the first network port) through internal routing, forming n communication links with a bandwidth of 100M.
[0113] Second test communication link (1000Base-T1 physical link):
[0114] All 1000Base-T1 interfaces (second specification Ethernet interfaces) of the switch are connected to the corresponding 1000Base-T1 interfaces on the vehicle switch.
[0115] Inside the vehicle switch, every two 1000Base-T1 interfaces are set to be interconnected, and the last interface is interconnected with the TX1 port (the second network port) of the vehicle switch to form a physical link that can send and receive data to each other.
[0116] Next, build a virtual local area network (VLAN):
[0117] Build a virtual LAN on each test communication link:
[0118] On the first test communication link, VLAN technology is used to build multiple VLANs between the PC (test host) and the MPU, and each VLAN corresponds to an independent network protocol address (IP segment).
[0119] Configure VLANs:
[0120] On the Switch, assign each 100Base-T1 port to a different VLAN, and each VLAN has a unique IP segment.
[0121] On the PC, create the corresponding VLAN interface through the USB network card. For example, use the command to create an interface with VLAN ID 10, and use the command to assign an IP address to the VLAN interface.
[0122] Second test communication link (1000Base-T1 physical link):
[0123] Between the PC and the MPU, data transmission and reception tests are performed through a single IP segment without the need to use VLAN technology.
[0124] Then, perform data transmission and reception tests on the virtual LAN and the corresponding network protocol addresses:
[0125] Run a test program that meets the requirements of full-load testing of automotive Ethernet on the PC and MPU. The test program runs on the Linux system and uses scripts developed with the iperf3 tool.
[0126] Run iperf3 test:
[0127] Start the iperf3 server and the iperf3 client.
[0128] Verify bandwidth performance:
[0129] Through the IP segment address corresponding to the VLAN, a data transmission and reception test is performed between the PC and the MPU on the first test communication link to verify the bandwidth performance of each 100Base-T1 port.
[0130] On the second test communication link, a data transmission and reception test is performed through a single IP segment address to verify the bandwidth performance of the 1000Base-T1 port.
[0131] Real-time display of test status:
[0132] During the test, the PC displays the test status and data information in real time, making it easy for hardware testers to conduct real-time observation and post-test data statistical analysis.
[0133] Adjust the test parameters:
[0134] Adjust the size of the test data packet and the observed data display items according to test requirements to ensure the flexibility and accuracy of the test.
[0135] In actual applications, all physical connections are made through standard Ethernet cables to ensure the stability and reliability of the connection. The use of USB network cards ensures that the PC can adapt to Ethernet interfaces of different specifications, which is highly flexible. The test program includes detailed logging functions to enable more comprehensive data analysis after the test is completed. Data packets of different sizes and types can be introduced during the test to simulate various network load conditions in real application environments, thereby comprehensively evaluating the performance of the Ethernet interface.
[0136] Through the method of the above-mentioned embodiment, the bandwidth performance of each 100Base-T1 and 1000Base-T1 Ethernet port in the intelligent gateway can be effectively verified to ensure the accuracy and reliability of the test. This method solves the problems of low data observability, high equipment cost, and functional redundancy in existing test schemes, and improves the test efficiency and accuracy of the vehicle Ethernet system. The technical solution of the present application can greatly reduce the equipment cost required for the test scheme and the human maintenance cost of the software; it can reasonably increase the observability of the test data according to the test requirements; it can reduce the functional redundancy caused by the use of professional equipment and increase the efficiency of the use of existing equipment.
[0137] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. 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 embodiments of the present application.
[0138] Figure 5 Schematic diagram of the structure of the electronic device 5 provided in the embodiment of the present application. Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program 503, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 501 executes the computer program 503, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0139] Exemplarily, the computer program 503 may be divided into one or more modules / units, which are stored in the memory 502 and executed by the processor 501 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 503 in the electronic device 5.
[0140] The electronic device 5 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 It is only an example of the electronic device 5 and does not constitute a limitation of the electronic device 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.
[0141] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0142] The memory 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. Further, the memory 502 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the electronic device. The memory 502 may also be used to temporarily store data that has been output or is to be output.
[0143] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0144] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0145] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0146] In the embodiments provided in the present application, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. Multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0147] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, 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 solution of this embodiment.
[0148] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0149] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, which may be in source code form, object code form, executable file or some intermediate form. Computer-readable media may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0150] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A vehicle Ethernet full-load test system based on intelligent gateway, characterized in that: include: Intelligent gateway, vehicle switch and test host; The intelligent gateway includes a microprocessing unit and a routing chip. The microprocessing unit is used for signal routing and forwarding management between the non-Ethernet protocol and the Ethernet protocol inside the intelligent gateway. The routing chip includes an Ethernet interface with at least one bandwidth specification. The on-board switch includes an Ethernet interface correspondingly connected to the Ethernet interface of the routing chip through a physical path, and the on-board switch is also configured with a network port connected to the test host; The test host is used to build a test communication link between the test host and the microprocessor unit according to the test program, and to build a virtual local area network on each of the test communication links. Each of the virtual local area networks corresponds to a network protocol address. Data sending and receiving tests are performed through the virtual local area networks and the corresponding network protocol addresses to test the bandwidth performance of each Ethernet interface in the intelligent gateway.
2. The system according to claim 1, characterized in that The routing chip is used for: An Ethernet interface with at least one bandwidth specification is provided to the vehicle-mounted switch externally, and is connected to the micro-processing unit internally through a high-speed bus interface, so as to construct a vehicle-mounted Ethernet star LAN between the vehicle-mounted switch and the micro-processing unit, wherein the devices in the vehicle-mounted Ethernet star LAN communicate with each other through the routing chip.
3. The system according to claim 1, characterized in that The routing chip and the on-board switch both include a first-specification Ethernet interface and a second-specification Ethernet interface, and the on-board switch is used for: The first-specification Ethernet interface in the on-board switch is connected to the first-specification Ethernet interface in the routing chip in sequence, and the second-specification Ethernet interface in the on-board switch is connected to the second-specification Ethernet interface in the routing chip in sequence.
4. The system according to claim 3, characterized in that The network port includes a first network port and a second network port, and the test communication link between the test host and the micro-processing unit is established according to the test program, including: Forward the data of all first-specification Ethernet interfaces in the vehicle switch to the first network port in the vehicle switch to form a first test communication link corresponding to the first-specification Ethernet interface; interconnect the second-specification Ethernet interfaces in the vehicle switch in sequence, and connect the last second-specification Ethernet interface to the second network port in the vehicle switch to form a second test communication link corresponding to the second-specification Ethernet interface.
5. The system according to claim 4, characterized in that The step of constructing a virtual local area network on each of the test communication links, each of the virtual local area networks corresponding to a network protocol address, includes: On the first test communication link, multiple virtual LANs are constructed between the test host and the microprocessor unit using virtual LAN technology, wherein each of the first test communication links corresponds to one virtual LAN, and each of the virtual LANs corresponds to one network protocol address.
6. The system according to claim 4, characterized in that The data transmission and reception test is performed through the virtual local area network and the corresponding network protocol address, including: On the first test communication link, a data transmission and reception test is performed between the test host and the microprocessor unit through network protocol addresses corresponding to a plurality of virtual local area networks, so as to verify the bandwidth performance of each first specification Ethernet interface in the intelligent gateway according to the test results; On the second test communication link, a data transmission and reception test is performed between the test host and the microprocessor unit through a preset single network protocol address, so as to verify the bandwidth performance of each second specification Ethernet interface in the intelligent gateway according to the test results.
7. The system according to claim 1, characterized in that The test host is also used to: When running the test program, a pre-developed test tool script is used to perform data sending and receiving test operations, and the test status and data information are displayed in real time on the test host to observe the data full load test process and adjust the test data packets and observed data display items according to the data full load test requirements.
8. A vehicle Ethernet full load test method based on intelligent gateway, characterized in that: include: In response to the test request, a test communication link is established between the test host and the microprocessor unit according to a predetermined test program; Building a virtual local area network on each of the test communication links, each of the virtual local area networks corresponding to a network protocol address; Performing data transmission and reception testing through the virtual local area network and the corresponding network protocol address to test the bandwidth performance of each Ethernet interface in the intelligent gateway; The intelligent gateway includes a microprocessing unit and a routing chip, wherein the microprocessing unit is used for signal routing and forwarding management between the non-Ethernet protocol and the Ethernet protocol inside the intelligent gateway, and the routing chip includes an Ethernet interface with at least one bandwidth specification; The on-board switch includes an Ethernet interface correspondingly connected to the Ethernet interface of the routing chip through a physical path, and the on-board switch is also configured with a network port connected to the test host.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to claim 8 is implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to claim 8 is implemented.
Citation Information
Patent Citations
Method and device for testing vehicle-mounted Ethernet
CN115129021A
Interface testing system and method
CN115333987A
Ethernet pressure test method and device of vehicle-mounted controller, and electronic equipment
CN118138488A
Ethernet testing device and Ethernet testing system
CN220511133U
Systems and methods for providing VLAN-independent gateways in a network virtualization overlay implementation
US20140372582A1
Cited By
Switch performance test method and device, storage medium and processor
CN120474969A
