Method and system for automated testing of ethernet switch timestamp synchronization

The automated testing system solved the coverage and consistency issues of Ethernet switch timestamp synchronization testing, enabling efficient test execution and result determination.

CN116743638BActive Publication Date: 2026-03-20FAW CAR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-16
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

Existing technologies for Ethernet switch timestamp synchronization testing have limited coverage, poor test result consistency, and difficulty in locating functional defects.

Method used

An automated testing system is adopted, including a PC host computer, a power control module, an interference flow generation module, a time synchronization module, and a bus communication module. By coordinating these modules, automated testing of Ethernet switch timestamps is achieved, and data is recorded and analyzed to generate test reports.

Benefits of technology

It enables automated testing of Ethernet switch timestamp synchronization, improving test quality and coverage, and ensuring the consistency of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116743638B_ABST
    Figure CN116743638B_ABST
Patent Text Reader

Abstract

The application relates to a test method and system for Ethernet switch timestamp synchronization, which is composed of a PC host computer, a power control module, a program-controlled power supply, an interference flow generation module, a time synchronization module, a bus communication module and a measured controller DUT; the PC host computer can control and coordinate the power control module, the interference flow generation module, the time synchronization monitoring module and the bus communication module, realize automatic execution of capturing and comparing Ethernet system timestamps, record data sent and received by the bus communication module, compare and monitor the timestamps of the messages, judge whether the test result is correct, and generate a webpage version test report; the test system can automatically test and execute and has automatic result judgment, realizes automatic test of Ethernet switch timestamp synchronization, can completely cover development demand specifications by configuring the system, improves test quality and coverage, and guarantees consistency of test results.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of whole vehicle testing, and particularly relates to a test method and system for automatically detecting timestamp synchronization of an Ethernet switch. BACKGROUND

[0002] The synchronization test of the timestamp of the switch is a test that must be performed by the switch in the vehicle-mounted Ethernet, and is an important test link for ensuring normal communication of the related nodes of the whole vehicle Ethernet.

[0003] At present, a commonly used mode is to manually simulate interference traffic to evaluate whether the test of the timestamp synchronization of the controller switch is correct. This mode has low coverage and poor consistency of the test results. When a functional defect problem occurs in the test and verification process of the timestamp synchronization of the Ethernet switch of the controller or a problem occurs in the joint test of the whole vehicle, it is difficult to locate the problem reason, which is not conducive to problem troubleshooting or reproduction. SUMMARY

[0004] The application aims to provide a test method and system for automatically detecting timestamp synchronization of an Ethernet switch, so as to solve the problem of automatic test of the timestamp synchronization of the Ethernet switch, improve the test quality and coverage, and ensure the consistency of the test results.

[0005] The application is achieved by the following technical scheme:

[0006] A test system for timestamp synchronization of an Ethernet switch is composed of a PC host computer, a power control module, a program-controlled power supply, an interference traffic generation module, a time synchronization module, a bus communication module, and a measured controller DUT.

[0007] The PC host computer is connected with the power control module, the interference traffic generation module, the time synchronization module, and the bus communication module, can control and coordinate the power control module, the interference traffic generation module, the time synchronization monitoring module, and the bus communication module, realize automatic execution of capturing and comparing the timestamp of the Ethernet system, record the data sent and received by the bus communication module, compare and monitor the timestamp of the message, judge whether the test result is correct, and generate a web version test report.

[0008] The power control module is connected with the program-controlled power supply and controls the program-controlled power supply according to the instruction of the PC host computer.

[0009] The interference traffic generation module sends an effective FollowUp tracking message according to the instruction of the PC host computer and sends the message to the bus communication module.

[0010] The time synchronization module is connected with the bus communication module, and can send valid Sync synchronization message according to PC host computer instruction, and send the message to the bus communication module;

[0011] The bus communication module is connected with the measured controller DUT, simulates valid load message according to PC host computer instruction, and injects the Sync synchronization message and the FollowUp tracking message received from the interference traffic generation module and the time synchronization module into the simulated valid load message, and then sends the message to the port CH-1 of the measured controller DUT through the IPV4 bidirectional Ethernet port CH-A.

[0012] Further, the PC host computer and the program-controlled power supply are powered by external 220V three-phase power supply.

[0013] Further, the PC host computer and the interference traffic generation module are connected by USB data line, and the FollowUp tracking message is sent by the interference traffic generation module under the control of the PC host computer.

[0014] Further, the PC host computer and the time synchronization module are connected by USB data line, and the Sync synchronization message is sent by the time synchronization module under the control of the PC host computer.

[0015] Further, the PC host computer and the power supply control module are connected by RJ45 data line, and the power supply mode in the power supply control module is controlled by the PC host computer.

[0016] Further, the power supply control module and the program-controlled power supply are connected by USB data line, and the output voltage of the program-controlled power supply is controlled by the power supply control module according to the power supply mode controlled by the PC host computer.

[0017] Further, the PC host computer and the bus communication module are connected by DB9 line. The PC host computer controls the bus communication module to simulate valid load message, and the bus communication module transmits the signal message on the Ethernet line to the PC host computer, and the PC host computer records the message and analyzes and judges the message data;

[0018] The interference traffic generation module and the bus communication module are connected by DB9 line, and the FollowUp tracking message is sent by the interference traffic generation module and transmitted to the bus communication module;

[0019] The time synchronization module and the bus communication module are connected by DB9 line, and the Sync synchronization message is sent by the time synchronization module and transmitted to the bus communication module.

[0020] Further, the program-controlled power supply is connected with the measured controller DUT by using a matched power line, a standard plug-in port is reserved in the test system, the program-controlled power supply provides 12V power KL30, IG power KL15 and ground terminal GND for the measured controller DUT, the program-controlled power supply has three independent adjustable voltage output channels, and power supply is provided for the measured controller DUT, so that the on-off control of the KL30 port of the measured controller DUT and the switching of the power supply state IG On and IG Off of the KL15 port can be realized.

[0021] Further, the bus communication module is connected with the measured controller DUT by using an IPV4 standard bidirectional Ethernet connection line, and bidirectional data interaction is realized.

[0022] A kind of automatic detection Ethernet switch timestamp synchronization test method, comprising the following steps:

[0023] A, interference flow generation module and time synchronization module send effective Sync synchronization message and FollowUp tracking message by bus communication module;

[0024] B, bus communication module sends effective load, and the effective load size is 1500 bytes;

[0025] C, bus communication module captures 350 seconds of Ethernet channel synchronization flow each time and captures its timestamp;

[0026] D, on DUT port CH-1, wait for 60 seconds, and calculate protocol time, and the protocol time is the protocol time reconstructed by the timestamp field of each step Sync synchronization message and each two steps of message pair received from DUT, which is composed of Sync synchronization message and FollowUp tracking message;

[0027] E, for each synchronization message, calculate the difference between the entry timestamp captured in step C and the time in step D, and check whether the difference calculated in step E is within + / - 200ns.

[0028] Compared with the prior art, the beneficial effects of the present application are:

[0029] The automatic detection Ethernet switch timestamp synchronization test method and system of the present application can automatically test and execute and have automatic result determination, the present application realizes the automatic test of Ethernet switch timestamp synchronization, and the system can be configured to completely cover the development requirement specification, so that the test quality and coverage degree are improved, and the consistency of test results is guaranteed. BRIEF DESCRIPTION OF DRAWINGS

[0030] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be regarded as a limitation on the scope, and for those of ordinary skill in the art, other related drawings can also be obtained without creative labor on the basis of these drawings.

[0031] Figure 1 The structural diagram of the test system for automatically detecting the timestamp synchronization of the Ethernet switch according to the present application. DETAILED DESCRIPTION

[0032] The present application will be further described in combination with the embodiments as follows:

[0033] Embodiment 1

[0034] As shown in the figure, the test system for the timestamp synchronization of the Ethernet switch according to the present application is composed of a PC host computer, a power control module, a program-controlled power supply, an interference flow generation module, a time synchronization module, a bus communication module and a measured controller DUT. Figure 1 The PC host computer can realize the control and coordination of the power control module, the interference flow generation module, the time synchronization monitoring module and the bus communication module, realize the automatic execution of capturing and comparing the timestamp of the Ethernet system. And record the data sent and received by the bus communication module, compare and monitor the timestamp of the message, judge whether the test result is correct and generate a web version test report.

[0035] The power control module controls the program-controlled power supply according to the instruction of the PC host computer. The program-controlled power supply has three independent adjustable voltage output channels, which provides power supply for the measured controller DUT. It can realize the on-off control of the KL30 port of the measured controller DUT and the switching of the power supply state IG On and IG Off of the KL15 port.

[0036] The interference flow generation module sends effective FollowUp tracking messages according to the instruction node and the instruction of the PC host computer, and sends the messages to the bus communication module.

[0037] The time synchronization module sends effective Sync synchronization messages according to the instruction node and the instruction of the PC host computer, and sends the messages to the bus communication module.

[0038] The time synchronization module sends effective Sync synchronization messages according to the instruction node and the instruction of the PC host computer, and sends the messages to the bus communication module.

[0039] The bus communication module simulates the effective load message according to the PC host computer instruction, injects the Sync synchronization message and the FollowUp tracking message received from the interference traffic generation module and the time synchronization module into the simulated effective load message, and then sends the message to the port CH-1 of the measured controller DUT through the IPV4 bidirectional Ethernet port CH-A.

[0040] The PC host computer and the program-controlled power supply are powered by an external 220V three-phase power supply.

[0041] The PC host computer and the interference traffic generation module are connected by a USB data line. The PC host computer controls the interference traffic generation module to send the FollowUp tracking message.

[0042] The PC host computer and the time synchronization module are connected by a USB data line. The PC host computer controls the time synchronization module to send the Sync synchronization message.

[0043] The PC host computer and the power supply control module are connected by an RJ45 data line. The PC host computer controls the power supply mode in the power supply control module.

[0044] The power supply control module and the program-controlled power supply are connected by a USB data line. The power supply control module controls the output voltage of the program-controlled power supply according to the power supply mode controlled by the PC host computer.

[0045] The PC host computer and the bus communication module are connected by a DB9 line. The PC host computer controls the bus communication module to simulate the effective load message. The bus communication module transmits the signal message on the Ethernet line to the PC host computer, and the PC host computer records the message and analyzes the message data.

[0046] The interference traffic generation module and the bus communication module are connected by a DB9 line. The interference traffic generation module sends the FollowUp tracking message to the bus communication module.

[0047] The time synchronization module and the bus communication module are connected by a DB9 line. The time synchronization module sends the Sync synchronization message to the bus communication module.

[0048] The program-controlled power supply and the measured controller DUT are connected by a matching power supply line, and a standard plug-in port is reserved in the test system. The program-controlled power supply provides 12V power KL30, IG power KL15, and ground GND for the measured controller DUT.

[0049] The bus communication module and the measured controller DUT are connected by an IPV4 standard bidirectional Ethernet connection line to realize bidirectional data interaction.

[0050] Example 2

[0051] The test method for automatically detecting Ethernet switch timestamp synchronization of the application comprises the following steps:

[0052] 1. The interference traffic generation module and the time synchronization module send valid Sync synchronization messages and FollowUp tracking messages through the bus communication module.

[0053] 2. The bus communication module sends a valid payload, and the size of the valid payload is 1500 bytes.

[0054] 3. The bus communication module captures 350 seconds of Ethernet channel synchronization traffic each time and captures the timestamp thereof.

[0055] 4. On the DUT port CH-1, wait for 60 seconds, and calculate the protocol time, which is the protocol time reconstructed from the timestamp field of each Sync synchronization message and each pair of messages composed of a Sync synchronization message and a FollowUp tracking message received from the DUT.

[0056] 5. For each synchronization message, calculate the difference between the entry timestamp captured in step 3 and the time in step 4, and check whether the differences calculated in step 5 are all within + / - 200ns.

[0057] Note that the above is only the preferred embodiment of the application and the technical principle applied. Those skilled in the art will understand that the application is not limited to the specific embodiments described herein, and those skilled in the art can make various obvious changes, readjustments and substitutions without departing from the scope of the application. Therefore, although the application has been described in more detail through the above embodiments, the application is not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the application, and the scope of the application is determined by the scope of the appended claims.

Claims

1. A test system for Ethernet switch timestamp synchronization, characterized in that: It consists of a PC host computer, a power control module, a programmable power supply, an interference flow generation module, a time synchronization module, a bus communication module, and a controller under test (DUT). The PC host computer is connected to the power control module, the interference flow generation module, the time synchronization module, and the bus communication module, respectively. It can control and coordinate the power control module, the interference flow generation module, the time synchronization monitoring module, and the bus communication module, realize the automated execution of capturing and comparing Ethernet system timestamps, record the data sent and received by the bus communication module, compare and monitor the timestamps of the messages, determine whether the test results are correct, and generate a web-based test report. The power control module is connected to the programmable power supply and controls the programmable power supply according to the instructions of the PC host computer. The interference flow generation module sends valid FollowUp tracking messages according to the instructions of the PC host computer, and sends the FollowUp tracking messages to the bus communication module. The time synchronization module is connected to the main communication module and can send valid Sync messages according to the instructions of the PC host computer and send the Sync messages to the main communication module. The bus communication module is connected to the controller under test (DUT). According to the instructions of the PC host computer, it simulates the payload message and injects the Sync synchronization message and FollowUp tracking message received from the interference traffic generation module and the time synchronization module into the simulated payload message. Then, it sends the message to the port CH-1 of the controller under test (DUT) through the IPv4 bidirectional Ethernet port CH-A.

2. The test system for Ethernet switch timestamp synchronization according to claim 1, characterized in that: The PC host computer and programmable power supply are powered by an external 220V three-phase power supply.

3. The test system for Ethernet switch timestamp synchronization according to claim 1, characterized in that: The PC host computer and the interference flow generation module are connected via a USB data cable. The PC host computer controls the interference flow generation module to send FollowUp tracking messages.

4. The test system for Ethernet switch timestamp synchronization according to claim 1, characterized in that: The PC host computer and the time synchronization module are connected via a USB data cable, and the PC host computer controls the time synchronization module to send Sync synchronization messages.

5. The test system for Ethernet switch timestamp synchronization according to claim 1, characterized in that: The PC host computer and the power control module are connected via an RJ45 data cable, and the PC host computer performs program control on the power mode within the power control module.

6. The test system for Ethernet switch timestamp synchronization according to claim 1, characterized in that: The power control module and the programmable power supply are connected via a USB data cable. The power control module controls the output voltage of the programmable power supply according to the power mode controlled by the PC host computer program.

7. The test system for Ethernet switch timestamp synchronization according to claim 1, characterized in that: The PC host computer and the main communication module are connected via a DB9 cable; The PC host computer controls the bus communication module to simulate payload messages. The bus control module transmits the signal packets on the Ethernet line to the PC host computer, and the PC host computer records the packets and analyzes and judges the packet data. The interference flow generation module and the bus communication module are connected via a DB9 line. The interference flow generation module sends a FollowUp tracking message to the bus communication module. The time synchronization module and the bus communication module are connected via a DB9 line. The time synchronization module sends a Sync message and transmits it to the bus communication module.

8. The test system for Ethernet switch timestamp synchronization according to claim 1, characterized in that: The programmable power supply is connected to the controller under test (DUT) using a matching power cord. The test system has a reserved standard connector. The programmable power supply provides 12V power to the DUT's KL30 port, IG power to the KL15 port, and ground power to the GND port. The programmable power supply has three independent adjustable voltage output channels to provide power to the DUT and can control the on / off state of the DUT's KL30 port and switch the power supply status of the KL15 port between IG On and IG Off.

9. The test system for Ethernet switch timestamp synchronization according to claim 1, characterized in that: The bus communication module is connected to the controller under test (DUT) via an IPv4 standard bidirectional Ethernet cable to achieve bidirectional data interaction.

10. A test method for a test system for Ethernet switch timestamp synchronization according to claim 1, characterized in that, Includes the following steps: A. The interference flow generation module and the time synchronization module send valid Sync and FollowUp messages through the bus communication module. B. The bus communication module sends a payload, the size of which is 1500 bytes; C. The bus communication module captures 350 seconds of Ethernet channel synchronization traffic each time and captures its timestamp; D. On DUT port CH-1, wait for 60 seconds and calculate the protocol time; E. For each Sync message, calculate the difference between the entry timestamp captured in step C and the protocol time in step D, and check whether the difference calculated in step E is within + / -200ns.

Citation Information

Patent Citations

  • IEEE (Institute of Electrical and Electronics Engineers) 1588 protocol negative test method

    CN102420715A

  • TTE network switch clock synchronization test method

    CN114006853A