Time-triggered Ethernet test method, device, equipment, medium and program product

By acquiring the number, sequence number, and timestamp information of data packets obtained by the device in the TTE bus, the gap in TTE bus testing is filled, enabling real-time testing and accurate determination of TTE bus indicators.

CN119030907APending Publication Date: 2024-11-26BEIJING RUNKE GENERAL TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411066991.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

Existing technologies lack testing schemes for Time-Triggered Ethernet (TTE) buses, making it impossible to effectively utilize packet sequence numbers and timestamp information for testing.

Method used

The time-triggered Ethernet acquisition device collects data packets sent and received by the device under test and data packets forwarded by the switch, and obtains the number, sequence number and timestamp information of the data packets. The test indicators, such as link delay time and packet loss, are determined using this information to achieve the test of the TTE bus.

Benefits of technology

It enables real-time testing of the TTE bus without affecting normal device communication, without requiring redesign of the network topology, and can accurately determine test indicators.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030907A_ABST
    Figure CN119030907A_ABST
Patent Text Reader

Abstract

The invention discloses a time-triggered Ethernet test method, a time-triggered Ethernet test device, time-triggered Ethernet test equipment, a medium and a program product. The time-triggered Ethernet acquisition equipment is used for respectively acquiring a time-triggered Ethernet data packet sent by the first tested equipment, a time-triggered Ethernet data packet received by the second tested equipment and a time-triggered Ethernet data packet forwarded by the time-triggered Ethernet switch; a plurality of virtual links are arranged between the first tested equipment and the second tested equipment, the plurality of virtual links comprise a first virtual link, and a plurality of time-triggered Ethernet data packets are transmitted in the first virtual link; the method comprises the step of determining a test index of a time-triggered Ethernet bus for transmitting time-triggered Ethernet data packets according to the number of the acquired time-triggered Ethernet data packets, the serial number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets. Therefore, the test of the time-triggered Ethernet bus is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of time-triggered Ethernet (TTE) bus data communication, and in particular to a time-triggered Ethernet test method, device, equipment, medium and program product. Background Art

[0002] The data processing process of the TTE bus network is complete and complex. It often needs to establish a connection with the upper-layer software through a high-speed interface before communicating with the TTE switch. It also includes a special time-triggered (TT) service, which must strictly complete the corresponding transmission according to the planned time point in the entire network.

[0003] Currently, there is no solution for testing the TTE bus, and therefore a solution for testing the TTE bus is urgently needed. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a time-triggered Ethernet test method, apparatus, device, medium and program product to implement testing of a time-triggered Ethernet bus.

[0005] The technical solution of this application is as follows:

[0006] In a first aspect, a time-triggered Ethernet test method is provided. The method is applied to a time-triggered Ethernet acquisition device, wherein the time-triggered Ethernet acquisition device is respectively connected to a first device under test, a second device under test, and a time-triggered Ethernet switch, and the time-triggered Ethernet acquisition device is used to respectively collect time-triggered Ethernet data packets sent by the first device under test, time-triggered Ethernet data packets received by the second device under test, and time-triggered Ethernet data packets forwarded by the time-triggered Ethernet switch. There are multiple virtual links between the first device under test and the second device under test, and the multiple virtual links include a first virtual link. Multiple time-triggered Ethernet data packets are transmitted in the first virtual link. The method includes:

[0007] Acquire the number of time-triggered Ethernet data packets transmitted in the first virtual link, the sequence number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets;

[0008] According to the number of the time-triggered Ethernet data packets, the sequence number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets, the test index of the time-triggered Ethernet bus transmitting the time-triggered Ethernet data packets is determined.

[0009] In a second aspect, a time-triggered Ethernet test device is provided, which is applied to a time-triggered Ethernet acquisition device, wherein the time-triggered Ethernet acquisition device is respectively connected to a first device under test, a second device under test, and a time-triggered Ethernet switch, and the time-triggered Ethernet acquisition device is used to respectively collect time-triggered Ethernet data packets sent by the first device under test, time-triggered Ethernet data packets received by the second device under test, and time-triggered Ethernet data packets forwarded by the time-triggered Ethernet switch, wherein there are multiple virtual links between the first device under test and the second device under test, wherein the multiple virtual links include a first virtual link, and multiple time-triggered Ethernet data packets are transmitted in the first virtual link, and the device includes:

[0010] A first acquisition module, used to acquire the number of time-triggered Ethernet data packets transmitted in the first virtual link, the sequence number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets;

[0011] The first determination module is used to determine the test index of the time-triggered Ethernet bus that transmits the time-triggered Ethernet data packets according to the number of the time-triggered Ethernet data packets, the serial number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the time-triggered Ethernet test method described in any one of the embodiments of the present application.

[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the time-triggered Ethernet testing method described in any one of the embodiments of the present application are implemented.

[0014] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device can perform the steps of the time-triggered Ethernet testing method described in any one of the embodiments of the present application.

[0015] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:

[0016] In an embodiment of the present application, based on the time-triggered Ethernet acquisition device, time-triggered Ethernet data packets sent by the first device under test, time-triggered Ethernet data packets received by the second device under test, and time-triggered Ethernet data packets forwarded by the time-triggered Ethernet switch are respectively collected. A plurality of time-triggered Ethernet data packets are transmitted in the first virtual link between the first device under test and the second device under test. In this way, the test index of the time-triggered Ethernet bus for transmitting the time-triggered Ethernet data packets can be determined according to the number of time-triggered Ethernet data packets transmitted in the first virtual link, the serial number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets, thereby realizing the test of the time-triggered Ethernet bus. In addition, based on the link connection between the first device under test, the second device under test and the time-triggered Ethernet switch itself, the time-triggered Ethernet acquisition device is used to respectively collect the time-triggered Ethernet data packets sent by the first device under test, the time-triggered Ethernet data packets received by the second device under test and the time-triggered Ethernet data packets forwarded by the time-triggered Ethernet switch. In this way, only bypass acquisition is performed, which does not affect the normal time-triggered Ethernet networking communication of the first device under test, the second device under test and the time-triggered Ethernet switch. There is no need to re-plan the network topology to test the performance of the time-triggered Ethernet network. At the same time, the time-triggered Ethernet data packets transmitted in the first virtual link are obtained in real time, so that the time-triggered Ethernet bus can be tested in real time.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.

[0019] Figure 1 It is a flow chart of a time-triggered Ethernet testing method provided in an embodiment of the present application;

[0020] Figure 2 It is a schematic diagram of the TTE test principle provided in an embodiment of the present application;

[0021] Figure 3 It is a schematic diagram of the principle of calculating the link delay time within a period of time provided by an embodiment of the present application;

[0022] Figure 4 This is a schematic diagram of the principle of calculating the link packet loss amount within a period of time provided by an embodiment of the present application;

[0023] Figure 5It is a schematic diagram of the principle of calculating the forwarding delay time of a TTE switch within a period of time provided by an embodiment of the present application;

[0024] Figure 6 This is a schematic diagram of the principle of calculating the forwarding packet loss amount of a TTE switch within a preset statistical time window provided by an embodiment of the present application;

[0025] Figure 7 It is a schematic diagram of the principle of calculating the TTE bus link jitter time provided in an embodiment of the present application;

[0026] Figure 8 It is a structural diagram of a time-triggered Ethernet test device provided in an embodiment of the present application;

[0027] Fig. 9 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make those of ordinary skill in the art better understand the technical scheme of the present application, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are only examples consistent with some aspects of the present application as detailed in the attached claims.

[0030] Before introducing the technical solution of the embodiment of the present application, the background technology of the embodiment of the present application is first introduced:

[0031] It should be noted that the TTE data packet contains the serial number of the TTE data packet and the timestamp information of the TTE data packet, but the TTE data packet can be transmitted in a conventional Ethernet frame format, so the TTE data packet can be collected through Ethernet using a collection device.

[0032] However, when testing TTE networks, Spirent network testers are usually used. The tester has complete test functions, which solves the problem of low efficiency of manual testing of equipment by network testers and achieves the purpose of fully automatic testing of equipment. It mainly consists of two parts: the control host and the test chassis. Users can use the control host to configure various test parameters for the hardware in the chassis, let the hardware board send or receive traditional Ethernet services, and complete the test of service quantity, bandwidth rate, throughput, etc. Users can monitor the test results in real time through the control host.

[0033] After the TTE data packets were collected through Ethernet using the Sibolent network tester, the subsequent analysis process analyzed the TTE data packets as ordinary Ethernet frames without referring to the sequence number and timestamp information of the TTE data packets.

[0034] Therefore, there is currently no solution for TTE bus testing that refers to the serial number and timestamp information of the TTE data packet.

[0035] The time-triggered Ethernet testing method provided by the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0036] Figure 1 1 is a flow chart of a time-triggered Ethernet test method provided in an embodiment of the present application. The execution subject of the time-triggered Ethernet test method can be a TTE acquisition device, such as Figure 2 As shown, the TTE acquisition device 210 is respectively connected to the first device under test 220, the second device under test 230 and the TTE switch 240. For example, the TTE acquisition device 210 can be respectively connected to the first device under test 220, the second device under test 230 and the TTE switch 240 through a network cable. Specifically, it can be as follows Figure 2 As shown, the first device under test 220, the second device under test 230 and the TTE switch 240 each have a mirror port, which can completely copy the data frames sent and received by the regular service ports of the first device under test 220, the second device under test 230 and the TTE switch 240 and send them to the TTE acquisition device 210 through transmission link 1, transmission link 2 and transmission link 3 in real time. In this way, the TTE acquisition device can respectively collect the TTE data packets sent by the first device under test, the TTE data packets received by the second device under test and the TTE data packets forwarded by the TTE switch.

[0037] It should be noted that the first device under test 220, the second device under test 230 and the TTE switch 240 each have at least one regular service port. The service port of the TTE switch 240 can be connected to the service port of the first device under test 220 and the service port of the second device under test 230 respectively, for forwarding TTE data packets between the first device under test 220 and the second device under test 230.

[0038] In some embodiments of the present application, the TTE acquisition device 210 can be connected to the mirror port of the first device under test 220, the mirror port of the second device under test 230 and the mirror port of the TTE switch 240 through a network cable, respectively. This is equivalent to adding a mirror port on the basis of the original regular service ports of the first device under test 220, the second device under test 230 and the TTE switch 240, respectively, for completely copying the data frames sent and received by the regular service ports of the first device under test 220, the second device under test 230 and the TTE switch 240 and sending them to the TTE acquisition device 210 in real time, that is, the TTE acquisition device 210 only performs bypass collection of TTE data packets, does not affect the TTE networking communication of the normal service ports between the first device under test 220, the second device under test 230 and the TTE switch 240, and there is no need to re-plan the network topology to test the TTE network performance.

[0039] In some embodiments of the present application, the TTE acquisition device 210 may include a multi-channel line-rate acquisition card, such as a four-channel line-rate acquisition card. The multi-channel line-rate acquisition card can recognize timestamps accurately to the nanometer level. Since the accuracy of TTE data is at the nanometer level, such a multi-channel line-rate acquisition card can adapt to the highly time-sensitive characteristics of the TTE bus. The multi-channel line-rate acquisition card can be an existing acquisition card and is not limited in the embodiments of the present application.

[0040] Taking a four-channel line-speed acquisition card as an example, since the acquisition card is a four-channel acquisition card, a single TTE acquisition device can reserve up to 5 card slots for the four-channel line-speed acquisition card. Therefore, the single TTE acquisition device can simultaneously acquire data packets of 20 TTE buses, and the device has a high degree of integration.

[0041] In some embodiments of the present application, multiple TTE acquisition devices 210 can also be used simultaneously to simultaneously distribute the collection of TTE data packets sent by the first device under test 220, the TTE data packets received by the second device under test 230, the TTE switch 240, and even the TTE data packets sent by the subsequent Nth device under test, and then uniformly summarized and analyzed by the host computer, thereby improving the scalability of the device.

[0042] In some embodiments of the present application, there are multiple virtual links between the first device under test 220 and the second device under test 230. Specifically, the physical link between the first device under test 220 and the second device under test 230 may correspond to multiple virtual links, and each virtual link is used to transmit a type of TTE data packet.

[0043] In one example, the first device under test 220 and the second device under test 230 are devices on a spacecraft. Figure 2 For example, the physical link between the first device under test 220 and the second device under test 230 corresponds to three virtual links, namely virtual link 1, virtual link 2 and virtual link 3, where virtual link 1 can be a virtual link for transmitting the speed of the spacecraft, virtual link 2 can be a virtual link for transmitting the flight altitude of the spacecraft, and virtual link 3 can be a virtual link for transmitting the flight angle of the spacecraft.

[0044] In some embodiments of the present application, the multiple virtual links may include a first virtual link, where the first virtual link may be any one or more virtual links among the multiple virtual links, and multiple TTE data packets may be transmitted in the first virtual link.

[0045] like Figure 1 As shown, the time-triggered Ethernet testing method provided in the embodiment of the present application may include steps 110 to 120.

[0046] Step 110: Obtain the number of TTE data packets transmitted in the first virtual link, the sequence number of the TTE data packet and / or the timestamp information of the TTE data packet.

[0047] The TTE data packet may be sent by the first device under test and forwarded to the second device under test via the TTE switch. The first device under test may be a real device under test or a simulated device simulating a real device, and the second device under test may be a real device under test or a simulated device.

[0048] In some embodiments of the present application, each TTE data packet has its corresponding serial number (Serial Number, SN) and its transmission timestamp information during the transmission process. Therefore, when obtaining the serial number of the TTE data packet transmitted in the first virtual link and its transmission timestamp information, the serial number of each TTE data and its transmission timestamp information can be directly obtained, or the TTE data packet can be obtained and then the TTE data packet is parsed to obtain the serial number of each TTE data and its transmission timestamp information. The specific method for obtaining the number of TTE data packets transmitted in the first virtual link, the serial number of the TTE data packet and / or the timestamp information of the TTE data packet can be selected according to user needs and is not limited in the embodiments of the present application.

[0049] Step 120: Determine the test index of the TTE bus for transmitting the TTE data packets according to the number of TTE data packets, the sequence number of the TTE data packets and / or the timestamp information of the TTE data packets.

[0050] Among them, the test indicator can be an indicator used to measure the network instructions of the TTE bus, for example, the test indicator can include but is not limited to link delay time, link packet loss number, forwarding packet loss number, forwarding delay time and link jitter time.

[0051] In some embodiments of the present application, when the test indicator includes link delay time, step 110 may specifically include:

[0052] Acquire first timestamp information of a first target TTE data packet with a first sequence number sent by a first device under test in a first virtual link, and second timestamp information of a first target TTE data packet received by a second device under test;

[0053] Step 120 may specifically include:

[0054] A link delay time of a TTE bus between the first device under test and the second device under test is determined according to the first timestamp information and the second timestamp information.

[0055] The first sequence number may be a sequence number of a certain TTE data packet.

[0056] The first target TTE data packet may be a TTE data packet with a first sequence number sent by a first device under test in a first virtual link.

[0057] The first timestamp information may be timestamp information when the first device under test sends a first target TTE data packet with a first sequence number, and the second timestamp information may be timestamp information when the second device under test receives the first target TTE data packet.

[0058] In some embodiments of the present application, for TTE data packets with the same serial number, first timestamp information of the first device under test sending the TTE data packet and second timestamp information of the second device under test receiving the TTE data packet are obtained. In this way, the link delay time between the first device under test and the second device under test can be determined based on the first timestamp information and the second timestamp information. Specifically, the difference between the second timestamp information and the first timestamp information can be determined as the link delay time between the first device under test and the second device under test.

[0059] In an embodiment of the present application, by obtaining the first timestamp information of the first target TTE data packet with the first sequence number sent by the first device under test in the first virtual link, and the second timestamp information of the first target TTE data packet received by the second device under test, and then determining the link delay time of the TTE bus between the first device under test and the second device under test based on the first timestamp information and the second timestamp information, the link delay time of the TTE bus between the first device under test and the second device under test can be accurately determined.

[0060] In some embodiments of the present application, when the test indicator includes link delay time, step 110 may specifically include:

[0061] For multiple TTE data packets transmitted in a first preset time period in the first virtual link, a second target TTE data packet with the same sequence number is obtained from the multiple TTE data packets, third timestamp information of the second target TTE data packet sent by the first device under test, and fourth timestamp information of the second target TTE data packet received by the second device under test;

[0062] Step 120 may specifically include:

[0063] respectively calculating the difference between the fourth timestamp information and the third timestamp information of each second target TTE data packet to obtain the difference corresponding to each second target TTE data packet in the plurality of TTE data packets;

[0064] Calculate an average value of the difference values ​​corresponding to each second target TTE data packet in the plurality of TTE data packets;

[0065] According to the average value, a link delay time of a TTE bus between the first device under test and the second device under test within a first preset time period is determined.

[0066] Among them, the first preset time period can be a pre-set period of time, and the first preset time period can be set according to user needs and is not limited in the embodiments of the present application.

[0067] The second target TTE data packet may be a TTE data packet with the same sequence number among a plurality of TTE data packets transmitted within a first preset time period in the acquired first virtual link.

[0068] The third timestamp information may be timestamp information when the first device under test sends the second target TTE data packet.

[0069] The fourth timestamp information may be timestamp information when the second device under test receives the second target TTE data packet after the first device under test sends the second target TTE data packet.

[0070] That is, the third timestamp information and the fourth timestamp information are for the TTE data packet with the same sequence number.

[0071] In some embodiments of the present application, for a second target TTE data packet with the same serial number among multiple TTE data packets transmitted in a first virtual link within a first preset time period, third timestamp information of the second target TTE data packet sent by the first device under test and fourth timestamp information of the second target TTE data packet received by the second device under test are obtained, and then the difference between the fourth timestamp information and the third timestamp information is calculated, and then the average value of the difference corresponding to each second target TTE data packet with the same serial number within the first preset time period is calculated, and then based on the average value, the link delay time of the TTE bus between the first device under test and the second device under test within the first preset time period can be determined. Specifically, the average value can be used as the link delay time of the TTE bus between the first device under test and the second device under test within the first preset time period.

[0072] It should be noted that, since the data packets transmitted in this application are TTE data packets, the specifications of the TTE data packets are as follows: the total number of TTE data packets transmitted in one cycle is 256, and each TTE data packet has its corresponding SN.

[0073] In one example, reference Figure 3 , Figure 3 The schematic diagram of the principle of calculating the link delay time within a period of time is as follows: Figure 3There are TTE data packets 1, TTE data packets 2, ..., TTE data packets 256 in the first device under test. After the first device under test sends TTE data packets 1, TTE data packets 2, ..., TTE data packets 256, they are forwarded via the TTE switch. The second device under test receives the forwarded TTE data packets 1, TTE data packets 2, ..., TTE data packets 256 from the TTE switch. The statistical time window (i.e., the first preset time period) is the transmission time of a round of TTE data packets. There are a total of Q pairs of TTE data with the same sequence number in the statistical time window. Then, according to the following formula (1), the link delay time ΔT of the TTE bus between the first device under test and the second device under test in the statistical time window can be obtained: 平均 :

[0074]

[0075] Among them, T 3 is the fourth timestamp information, T 0 It is the third timestamp information.

[0076] In an embodiment of the present application, the link delay time of the TTE bus between the first device under test and the second device under test within the first preset time period can be obtained by using the timestamp information of the second target TTE data packet with the same serial number in multiple TTE data packets transmitted within the first preset time period in the first virtual link. In this way, the link delay time of the TTE bus between the first device under test and the second device under test within the first preset time period can be accurately determined.

[0077] In some embodiments of the present application, when the test indicator includes link packet loss, step 110 may specifically include:

[0078] Acquire a first number of TTE data packets sent by the first device under test in the first virtual link within a second preset time period, and a second number of TTE data packets received by the second device under test within the second preset time period;

[0079] Step 120 may specifically include:

[0080] According to the first quantity and the second quantity, a link packet loss amount of the TTE bus between the first device under test and the second device under test within a second preset time period is determined.

[0081] Among them, the second preset time period can be a pre-set period of time, and the second preset time period can be set according to user needs and is not limited in the embodiments of the present application.

[0082] The first number may be the number of TTE data packets sent by the first device under test within the second preset time period.

[0083] The second number may be the number of TTE data packets received by the second device under test within a second preset time period.

[0084] In some embodiments of the present application, based on a first number of TTE data packets sent by a first device under test in a second preset time period, and a second number of TTE data packets received by a second device under test in a second preset time period, the link packet loss amount of a TTE bus between the first device under test and the second device under test in the second preset time period can be determined based on the first number and the second number. Specifically, the difference between the second number and the first number can be determined as the link packet loss amount of the TTE bus between the first device under test and the second device under test in the second preset time period.

[0085] In one example, reference Figure 4 , Figure 4 The schematic diagram of the principle of calculating the link packet loss in a period of time is as follows: Figure 4 There are TTE data packets 1, TTE data packets 2, ..., TTE data packets 256 in the first tested device. After the first tested device sends TTE data packets 1, TTE data packets 2, ..., TTE data packets 256, they are forwarded via the TTE switch. The second tested device receives the forwarded TTE data packets 1, TTE data packets 2, ..., TTE data packets 256 from the TTE switch. The statistical time window (i.e., the second preset time period) is the transmission time of a round of TTE data packets. In the statistical time window, the first tested device sends a total of M0 TTE data packets, and the second tested device receives a total of M3 TTE data packets. Then, in the statistical time window, the link packet loss amount of the TTE bus between the first tested device and the second tested device = M3-M0. In the statistical time window, the link packet loss rate of the TTE bus between the first tested device and the second tested device is shown in the following formula (2):

[0086]

[0087] In an embodiment of the present application, a first number of TTE data packets sent by the first device under test in a second preset time period and a second number of TTE data packets received by the second device under test in the second preset time period are obtained in the first virtual link, and then based on the first number and the second number, the link packet loss amount of the TTE bus between the first device under test and the second device under test in the second preset time period can be determined, so that the link packet loss amount of the TTE bus between the first device under test and the second device under test in the second preset time period can be accurately determined.

[0088] In some embodiments of the present application, when the test indicator includes the forwarding delay time of the TTE switch, step 110 may specifically include:

[0089] Acquire fifth timestamp information of the TTE switch in the first virtual link receiving the third target TTE data packet with the second sequence number, and sixth timestamp information of the TTE switch forwarding the third target TTE data packet to the second device under test;

[0090] Step 120 may specifically include:

[0091] The forwarding delay time of the TTE switch is determined according to the fifth timestamp information and the sixth timestamp information.

[0092] The second sequence number may be a sequence number of a certain TTE data packet.

[0093] The third target TTE data packet may be a TTE data packet with a second sequence number received by the TTE switch in the first virtual link.

[0094] The fifth timestamp information may be timestamp information when the TTE switch receives the third target TTE data packet. The sixth timestamp information may be timestamp information when the TTE switch forwards the third target TTE data packet.

[0095] In some embodiments of the present application, for a TTE data packet with the same serial number, the fifth timestamp information of the TTE switch receiving the TTE data packet and the sixth timestamp information of the TTE switch forwarding the TTE data packet are obtained. In this way, the forwarding delay time of the TTE switch can be determined based on the fifth timestamp information and the sixth timestamp information. Specifically, the difference between the sixth timestamp information and the fifth timestamp information can be determined as the forwarding delay time of the TTE switch.

[0096] In an embodiment of the present application, by obtaining the fifth timestamp information of the third target TTE data packet with the second sequence number received by the TTE switch in the first virtual link, and the sixth timestamp information of the TTE switch forwarding the third target TTE data packet to the second device under test, and then determining the forwarding delay time of the TTE switch based on the fifth timestamp information and the sixth timestamp information, the forwarding delay time of the TTE switch can be accurately determined.

[0097] In some embodiments of the present application, the forwarding delay time of the TTE switch within a period of time may also be counted. The specific calculation method may be the same as the link delay time of the TTE bus between the first device under test and the second device under test within the first preset time period, which will not be repeated here.

[0098] In one example, reference Figure 5 , Figure 5 The schematic diagram of the principle of calculating the forwarding delay time of the TTE switch within a period of time. Figure 5There are TTE data packets 1, TTE data packets 2, ..., TTE data packets 256 in the first tested device. After the first tested device sends TTE data packets 1, TTE data packets 2, ..., TTE data packets 256, they are forwarded via the TTE switch. The second tested device receives the forwarded TTE data packets 1, TTE data packets 2, ..., TTE data packets 256 from the TTE switch. The statistical time window is the transmission time of a round of TTE data packets. There are N pairs of TTE data with the same sequence number in the statistical time window. The forwarding delay time of the TTE switch in the statistical time window can be obtained according to the following formula (3):

[0099]

[0100] Among them, T 2 is the sixth timestamp information, T 1 It is the fifth timestamp information.

[0101] In some embodiments of the present application, when the test indicator includes the forwarding packet loss of the TTE switch, step 110 may specifically include:

[0102] Acquire a third number of fourth target TTE data packets received by the TTE switch in the first virtual link within a preset statistical time window, and a fourth number of fourth target TTE data packets forwarded by the TTE switch to the second device under test;

[0103] Step 120 may specifically include:

[0104] The forwarding packet loss amount of the TTE switch within the preset statistical time window is determined according to the third amount and the fourth amount.

[0105] Among them, the preset statistical time window can be a pre-set statistical time window, and the preset statistical time window can be set according to user needs and is not limited in the embodiments of the present application.

[0106] It should be noted that the preset statistical time window should be smaller than the reference time window. The reference time window here can be the product of the total number of TTE data packets transmitted in one cycle and the data packet transmission period. The total number of TTE data packets transmitted in one cycle here is 256, and the above-mentioned data packet transmission period is the transmission period between each two adjacent TTE data packets.

[0107] In an example, taking the data packet transmission cycle as T, since the total number of TTE data packets transmitted in one cycle is 256, the preset statistical time window here is 200*T, and the 200 here can also be other values ​​as long as the value is less than 256.

[0108] It should be noted that the transmission period between each two adjacent TTE data packets is fixed, that is, the transmission interval between each two adjacent TTE data packets is consistent. For example, the sending time interval between TTE data packet 1 and TTE data packet 2 is theoretically consistent with the sending time interval between TTE data packet 2 and TTE data packet 3.

[0109] The fourth target TTE data packet may be a TTE data packet received by the TTE switch in the first virtual link within a preset statistical time window.

[0110] The third number may be the number of fourth target TTE data packets received by the TTE switch within a preset statistical time window.

[0111] The fourth number may be the number of fourth target TTE data packets forwarded by the TTE switch to the second device under test within the preset statistical time window, specifically the number of TTE data packets forwarded by the TTE switch to the second device under test and having the same sequence number as the TTE data packet received by the TTE switch.

[0112] It should be noted that if the TTE data packet of the same SN appears twice within the preset statistical time window, it is considered that the TTE switch forwards successfully. Conversely, if it only appears once, it is considered that the TTE switch forwards the packet and loses the packet.

[0113] In some embodiments of the present application, based on the third number of fourth target TTE data packets received by the TTE switch in the first virtual link within the preset statistical time window, and the fourth number of TTE data packets with the same serial number as the fourth target TTE data packets forwarded by the TTE switch to the second tested device, the forwarding packet loss amount of the TTE switch within the preset statistical time window can be determined based on the third number and the fourth number. Specifically, the difference between the fourth number and the third number can be determined as the forwarding packet loss amount of the TTE switch within the preset statistical time window.

[0114] In one example, reference Figure 6 , Figure 6 This is a schematic diagram showing the principle of calculating the packet loss amount of the TTE switch forwarding within the preset statistical time window. Figure 6There are TTE data packets 1, TTE data packets 2, ..., TTE data packets 256 in the first tested device. After sending TTE data packets 1, TTE data packets 2, ..., TTE data packets 256, the first tested device forwards them through the TTE switch. The second tested device receives the forwarded TTE data packets 1, TTE data packets 2, ..., TTE data packets 256 from the TTE switch. The preset statistical time window is the transmission time of a round of TTE data packets. In the preset statistical time window, the TTE switch receives a total of M2 TTE data packets, and the TTE switch forwards a total of M1 TTE data packets. Then, the forwarding packet loss amount of the TTE switch in the preset statistical time window = M2-M1. The forwarding packet loss rate of the TTE switch in the preset statistical time window is shown in the following formula (4):

[0115]

[0116] In an embodiment of the present application, by obtaining the third number of fourth target TTE data packets received by the TTE switch in the first virtual link within the preset statistical time window, and the fourth number of fourth target TTE data packets forwarded by the TTE switch to the second device under test, and then determining the forwarding packet loss amount of the TTE switch within the preset statistical time window based on the third number and the fourth number, the forwarding packet loss amount of the TTE switch within the preset statistical time window can be accurately determined.

[0117] In some embodiments of the present application, when the test indicator includes the jitter time of a TTE bus link for transmitting TTE transmission data, step 110 may specifically include:

[0118] Respectively obtain the seventh timestamp information and the eighth timestamp information of the TTE data packets of two adjacent sequence numbers collected by the TTE collection device in the first virtual link;

[0119] Step 120 may specifically include:

[0120] A TTE bus link jitter time for transmitting TTE transmission data is determined according to the seventh timestamp information, the eighth timestamp information and the data packet transmission period.

[0121] The seventh timestamp information and the eighth timestamp information may be timestamp information of two adjacent TTE data packets with sequence numbers collected by the TTE collection device in the first virtual link.

[0122] In an example, the timestamp information of the TTE data packet with SN=1 collected by the TTE collection device is the seventh timestamp information, and the timestamp information of the TTE data packet with SN=2 collected by the TTE collection device is the eighth timestamp information. Here, the TTE data packet with SN=1 and the TTE data packet with SN=2 are two adjacent TTE data packets collected by the TTE collection device.

[0123] It should be noted that link jitter is when a TTE data packet is not forwarded according to its pre-planned time due to various reasons. The difference between the actual sending time and the time it should be sent according to the plan is the link jitter time.

[0124] In some embodiments of the present application, the seventh timestamp information and the eighth timestamp information of the TTE data packets of two adjacent serial numbers collected by the TTE acquisition device in the first virtual link can be obtained respectively, and then the TTE bus link jitter time of transmitting the TTE transmission data can be determined based on the seventh timestamp information, the eighth timestamp information and the data packet transmission period. Specifically, the difference between the eighth timestamp information and the seventh timestamp information can be calculated, and then the absolute value of the difference between the difference and the data packet transmission period is determined as the TTE bus link jitter time of transmitting the TTE transmission data.

[0125] In one example, reference Figure 7 , Figure 7 The schematic diagram of the principle of calculating the jitter time of the TTE bus link is shown in Figure 7 Take the case where the TTE acquisition device collects TTE data packet 1, TTE data packet 2 and TTE data packet 3 as an example. If the time when the TTE acquisition device collects TTE data packet 1 is Ta, and the time when the TTE data packet 2 is collected is Tb, then calculate the difference between Tb and Ta, subtract the difference from the data packet transmission period T, and calculate the absolute value of the difference to obtain the TTE bus link jitter time.

[0126] In an embodiment of the present application, the seventh timestamp information and the eighth timestamp information of the TTE data packets of two adjacent sequence numbers collected by the TTE acquisition device in the first virtual link are respectively obtained, and then the seventh timestamp information, the eighth timestamp information and the data packet transmission period are used to determine the TTE bus link jitter time of transmitting the TTE transmission data. In this way, the TTE bus link jitter time can be accurately determined.

[0127] It should be noted that the time-triggered Ethernet test method provided in the embodiment of the present application can be executed by a time-triggered Ethernet test device or a processor, or a control module in the time-triggered Ethernet test device for executing the time-triggered Ethernet test method.

[0128] Based on the same inventive concept as the above-mentioned time-triggered Ethernet test method, the present application also provides a time-triggered Ethernet test device. Figure 8 The time-triggered Ethernet testing device provided in the embodiment of the present application is described in detail.

[0129] Figure 8 The schematic diagram of a time-triggered Ethernet test device according to an exemplary embodiment is shown in FIG. 800. The time-triggered Ethernet test device 800 can be applied to a TTE acquisition device, that is, the above-mentioned time-triggered Ethernet test method can be executed by the TTE acquisition device.

[0130] The above-mentioned TTE acquisition device is respectively connected to the first device under test, the second device under test and the TTE switch, and the TTE acquisition device is used to respectively collect TTE data packets sent by the first device under test, TTE data packets received by the second device under test and TTE data packets forwarded by the TTE switch, and there are multiple virtual links between the first device under test and the second device under test, and the multiple virtual links include a first virtual link, and multiple TTE data packets are transmitted in the first virtual link, such as Figure 8 As shown, the TTE testing device 800 may include:

[0131] A first acquisition module 810, configured to acquire the number of TTE data packets transmitted in the first virtual link, the sequence number of the TTE data packet and / or the timestamp information of the TTE data packet;

[0132] The first determination module 820 is used to determine the test index of the TTE bus that transmits the TTE data packet according to the number of the TTE data packets, the sequence number of the TTE data packet and / or the timestamp information of the TTE data packet.

[0133] In the embodiment of the present application, based on the TTE acquisition device respectively collecting the TTE data packets sent by the first device under test, the TTE data packets received by the second device under test and the TTE data packets forwarded by the TTE switch, a plurality of TTE data packets are transmitted in the first virtual link between the first device under test and the second device under test, so that the test index of the TTE bus that transmits the TTE data packets can be determined according to the number of TTE data packets transmitted in the first virtual link, the sequence number of the TTE data packets and / or the timestamp information of the TTE data packets, so as to achieve the test of the TTE bus. In addition, since the TTE data packets sent by the first device under test, the second device under test and the TTE switch are connected on the basis of the link, the TTE acquisition device is used to collect the TTE data packets sent by the first device under test, the TTE data packets received by the second device under test and the TTE data packets forwarded by the TTE switch, so that only bypass acquisition is performed, which does not affect the normal TTE networking communication of the first device under test, the second device under test and the TTE switch, and there is no need to re-plan the network topology in order to test the TTE network performance, and at the same time, the TTE data packets transmitted in the first virtual link are obtained in real time, so that the TTE bus can be tested in real time.

[0134] In some embodiments of the present application, the test indicator includes: link delay time; the first acquisition module 810 is specifically used to:

[0135] Acquire first timestamp information of a first target TTE data packet with a first sequence number sent by the first device under test in the first virtual link, and second timestamp information of a first target TTE data packet received by the second device under test;

[0136] The first determining module 820 is specifically used for:

[0137] A link delay time of a time-triggered Ethernet bus between the first device under test and the second device under test is determined according to the first timestamp information and the second timestamp information.

[0138] In some embodiments of the present application, the first acquisition module 810 is specifically used to:

[0139] For multiple TTE data packets transmitted in the first virtual link within a first preset time period, obtaining a second target TTE data packet with the same sequence number from the multiple TTE data packets, third timestamp information of the second target TTE data packet sent by the first device under test, and fourth timestamp information of the second target TTE data packet received by the second device under test;

[0140] The first determining module 820 is specifically used for:

[0141] Respectively calculating the difference between the fourth timestamp information and the third timestamp information of each second target TTE data packet to obtain the difference corresponding to each second target TTE data packet in the multiple TTE data packets;

[0142] Calculate the average value of the difference corresponding to each second target TTE data packet;

[0143] A link delay time of a time-triggered Ethernet bus between the first device under test and the second device under test within the first preset time period is determined according to the average value.

[0144] In some embodiments of the present application, the test indicator includes: link packet loss; the first acquisition module 810 is specifically used to:

[0145] Acquire a first number of TTE data packets sent by the first device under test in a second preset time period in the first virtual link, and a second number of TTE data packets received by the second device under test in the second preset time period;

[0146] The first determining module 820 is specifically used for:

[0147] According to the first number and the second number, a link packet loss amount of the time-triggered Ethernet bus between the first device under test and the second device under test within the second preset time period is determined.

[0148] In some embodiments of the present application, the test indicator includes: the forwarding delay time of the TTE switch; the first acquisition module 810 is specifically used to:

[0149] Acquire fifth timestamp information of the TTE switch in the first virtual link receiving a third target TTE data packet with a second sequence number, and sixth timestamp information of the TTE switch forwarding the third target TTE data packet to the second device under test;

[0150] The first determining module 820 is specifically used for:

[0151] The forwarding delay time of the time-triggered Ethernet switch is determined according to the fifth timestamp information and the sixth timestamp information.

[0152] In some embodiments of the present application, the test indicator includes: the forwarding packet loss of the TTE switch; the first acquisition module 810 is specifically used to:

[0153] Acquire a third number of fourth target TTE data packets received by the TTE switch in the first virtual link within a preset statistical time window, and a fourth number of fourth target TTE data packets forwarded by the TTE switch to the second device under test;

[0154] The first determining module 820 is specifically used for:

[0155] The forwarding packet loss amount of the time-triggered Ethernet switch within the preset statistical time window is determined according to the third number and the fourth number.

[0156] In some embodiments of the present application, the preset statistical time window is smaller than the reference time window, and the reference time window is the product of the total number of TTE data packets transmitted in one cycle and the data packet transmission period. The total number of TTE data packets transmitted in one cycle is 255, and the data packet transmission period is the transmission period between every two adjacent TTE data packets.

[0157] In some embodiments of the present application, the test indicator includes: a TTE bus link jitter time for transmitting the TTE transmission data; the first acquisition module 810 is specifically used to:

[0158] Respectively obtain seventh timestamp information and eighth timestamp information of TTE data packets of two adjacent sequence numbers collected by the TTE collection device in the first virtual link;

[0159] The first determining module 820 is specifically used for:

[0160] A time-triggered Ethernet bus link jitter time for transmitting the time-triggered Ethernet transmission data is determined according to the seventh timestamp information, the eighth timestamp information and the data packet transmission period.

[0161] In some embodiments of the present application, the first device under test is a real device under test or a simulated device, and the second device under test is a real device under test.

[0162] The TTE testing device provided in the embodiment of the present application can be used to execute the TTE testing methods provided in the above-mentioned method embodiments. The implementation principles and technical effects are similar and will not be described in detail here for the sake of simplicity.

[0163] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.

[0164] Fig. 9 Schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig. 9 As shown, the electronic device may include a processor 901 and a memory 902 storing computer programs or instructions.

[0165] Specifically, the processor 901 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.

[0166] The memory 902 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 902 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 902 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 902 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 902 is a non-volatile solid-state memory. The memory may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described in the TTE testing method provided in the above-mentioned embodiments.

[0167] The processor 901 implements any one of the TTE testing methods in the above embodiments by reading and executing computer program instructions stored in the memory 902 .

[0168] In one example, the electronic device may further include a communication interface 903 and a bus 910. Fig. 9 As shown, the processor 901, the memory 902, and the communication interface 903 are connected via a bus 910 and communicate with each other.

[0169] The communication interface 903 is mainly used to implement the communication between the modules, devices, units and / or devices in the embodiment of the present invention.

[0170] Bus 910 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, information electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 910 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0171] The electronic device can execute the TTE test method in the embodiment of the present invention, thereby achieving Figure 1 Describe the TTE test method.

[0172] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the TTE test method described in any of the above embodiments.

[0173] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0174] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the TTE test method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0175] In addition, in combination with the TTE test method in the above embodiment, an embodiment of the present invention may provide a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes any one of the TTE test methods in the above embodiment.

[0176] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0177] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0178] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.

[0179] The above reference is according to the method of the embodiment of the present application, the flow chart of the device (system) and the computer program product and / or the block diagram described various aspects of the present application.It should be understood that each square box in the flow chart and / or the block diagram and the combination of each square box in the flow chart and / or the block diagram can be realized by computer program instructions.These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the realization of the function / action specified in one or more square boxes of the flow chart and / or the block diagram.Such a processor can be but is not limited to a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.It can also be understood that each square box in the block diagram and / or the flow chart and the combination of the square boxes in the block diagram and / or the flow chart can also be realized by the dedicated hardware that performs the specified function or action, or can be realized by the combination of dedicated hardware and computer instructions.

[0180] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.

Claims

1. A time-triggered Ethernet testing method, characterized in that: The method is applied to a time-triggered Ethernet acquisition device, the time-triggered Ethernet acquisition device is respectively connected to a first device under test, a second device under test and a time-triggered Ethernet switch, the time-triggered Ethernet acquisition device is used to respectively collect time-triggered Ethernet data packets sent by the first device under test, time-triggered Ethernet data packets received by the second device under test and time-triggered Ethernet data packets forwarded by the time-triggered Ethernet switch, there are multiple virtual links between the first device under test and the second device under test, the multiple virtual links include a first virtual link, and multiple time-triggered Ethernet data packets are transmitted in the first virtual link, the method includes: Acquire the number of time-triggered Ethernet data packets transmitted in the first virtual link, the sequence number of the time-triggered Ethernet data packet and / or the timestamp information of the time-triggered Ethernet data packet; According to the number of the time-triggered Ethernet data packets, the sequence number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets, the test index of the time-triggered Ethernet bus transmitting the time-triggered Ethernet data packets is determined.

2. The method according to claim 1, characterized in that The test indicators include: link delay time; The obtaining the number of time-triggered Ethernet data packets transmitted in the first virtual link, the sequence number of the time-triggered Ethernet data packet and / or the timestamp information of the time-triggered Ethernet data packet includes: Acquire first timestamp information of a first target time-triggered Ethernet data packet with a first sequence number sent by the first device under test in the first virtual link, and second timestamp information of a first target time-triggered Ethernet data packet received by the second device under test; Determining the test index of the time-triggered Ethernet bus for transmitting the time-triggered Ethernet data packet according to the number of the time-triggered Ethernet data packet, the sequence number of the time-triggered Ethernet data packet and / or the timestamp information of the time-triggered Ethernet data packet includes: A link delay time of a time-triggered Ethernet bus between the first device under test and the second device under test is determined according to the first timestamp information and the second timestamp information.

3. The method according to claim 2, characterized in that The obtaining the number of time-triggered Ethernet data packets transmitted in the first virtual link, the sequence number of the time-triggered Ethernet data packet and / or the timestamp information of the time-triggered Ethernet data packet includes: For multiple time-triggered Ethernet data packets transmitted within a first preset time period in the first virtual link, obtain a second target time-triggered Ethernet data packet with the same serial number in the multiple time-triggered Ethernet data packets, third timestamp information of the first device under test sending the second target time-triggered Ethernet data packet, and fourth timestamp information of the second device under test receiving the second target time-triggered Ethernet data packet; Determining the test index of the time-triggered Ethernet bus for transmitting the time-triggered Ethernet transmission data according to the number of the time-triggered Ethernet data packets, the sequence number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets includes: Respectively calculating the difference between the fourth timestamp information and the third timestamp information of each second target time-triggered Ethernet data packet, and obtaining the difference corresponding to each second target time-triggered Ethernet data packet in the multiple time-triggered Ethernet data packets; Calculate the average value of the difference corresponding to each of the second time-triggered Ethernet data packets; A link delay time of a time-triggered Ethernet bus between the first device under test and the second device under test within the first preset time period is determined according to the average value.

4. The method according to claim 1, characterized in that: The test indicators include: link packet loss; The obtaining the number of time-triggered Ethernet data packets transmitted in the first virtual link, the sequence number of the time-triggered Ethernet data packet and / or the timestamp information of the time-triggered Ethernet data packet includes: Acquire a first number of time-triggered Ethernet data packets sent by the first device under test in a second preset time period in the first virtual link, and a second number of time-triggered Ethernet data packets received by the second device under test in the second preset time period; Determining the test index of the time-triggered Ethernet bus for transmitting the time-triggered Ethernet transmission data according to the number of the time-triggered Ethernet data packets, the sequence number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets includes: According to the first number and the second number, a link packet loss amount of the time-triggered Ethernet bus between the first device under test and the second device under test within the second preset time period is determined.

5. The method according to claim 1, characterized in that The test indicators include: the forwarding delay time of the time-triggered Ethernet switch; The obtaining the number of time-triggered Ethernet data packets transmitted in the first virtual link, the sequence number of the time-triggered Ethernet data packet and / or the timestamp information of the time-triggered Ethernet data packet includes: Obtaining fifth timestamp information of a third target time-triggered Ethernet data packet with a second sequence number received by the time-triggered Ethernet switch in the first virtual link, and sixth timestamp information of the third target time-triggered Ethernet data packet forwarded by the time-triggered Ethernet switch to the second device under test; Determining the test index of the time-triggered Ethernet bus for transmitting the time-triggered Ethernet transmission data according to the number of the time-triggered Ethernet data packets, the sequence number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets includes: The forwarding delay time of the time-triggered Ethernet switch is determined according to the fifth timestamp information and the sixth timestamp information.

6. The method according to claim 1, characterized in that The test indicators include: the forwarding packet loss of the time-triggered Ethernet switch; The obtaining the number of time-triggered Ethernet data packets transmitted in the first virtual link, the sequence number of the time-triggered Ethernet data packet and / or the timestamp information of the time-triggered Ethernet data packet includes: Obtaining a third number of fourth target time-triggered Ethernet data packets received by the time-triggered Ethernet switch within a preset statistical time window in the first virtual link, and a fourth number of the fourth target time-triggered Ethernet data packets forwarded by the time-triggered Ethernet switch to the second device under test; Determining the test index of the time-triggered Ethernet bus for transmitting the time-triggered Ethernet transmission data according to the number of the time-triggered Ethernet data packets, the sequence number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets includes: The forwarding packet loss amount of the time-triggered Ethernet switch within the preset statistical time window is determined according to the third number and the fourth number.

7. The method according to claim 6, characterized in that The preset statistical time window is smaller than the reference time window. The reference time window is the product of the total number of time-triggered Ethernet data packets in one round of cyclic transmission and the data packet transmission period. The total number of time-triggered Ethernet data packets in one round of cyclic transmission is 256. The data packet transmission period is the transmission period between every two adjacent time-triggered Ethernet data packets.

8. The method according to claim 7, characterized in that The test indicators include: the time-triggered Ethernet bus link jitter time of transmitting the time-triggered Ethernet transmission data; The obtaining the number of time-triggered Ethernet data packets transmitted in the first virtual link, the sequence number of the time-triggered Ethernet data packet and / or the timestamp information of the time-triggered Ethernet data packet includes: Respectively obtaining seventh timestamp information and eighth timestamp information of two adjacent sequence numbers of time-triggered Ethernet data packets collected by the time-triggered Ethernet collection device in the first virtual link; Determining the test index of the time-triggered Ethernet bus for transmitting the time-triggered Ethernet transmission data according to the number of the time-triggered Ethernet data packets, the sequence number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets includes: A time-triggered Ethernet bus link jitter time for transmitting the time-triggered Ethernet transmission data is determined according to the seventh timestamp information, the eighth timestamp information and the data packet transmission period.

9. The method according to any one of claims 1 to 8, characterized in that: The first device under test is a real device under test or a simulated device, and the second device under test is a real device under test or a simulated device.

10. A time-triggered Ethernet test device, characterized in that: The device is applied to a time-triggered Ethernet acquisition device, the time-triggered Ethernet acquisition device is respectively connected to a first device under test, a second device under test and a time-triggered Ethernet switch, the time-triggered Ethernet acquisition device is used to respectively collect time-triggered Ethernet data packets sent by the first device under test, time-triggered Ethernet data packets received by the second device under test and time-triggered Ethernet data packets forwarded by the time-triggered Ethernet switch, there are multiple virtual links between the first device under test and the second device under test, the multiple virtual links include a first virtual link, multiple time-triggered Ethernet data packets are transmitted in the first virtual link, the device includes: A first acquisition module, used to acquire the number of time-triggered Ethernet data packets transmitted in the first virtual link, the sequence number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets; The first determination module is used to determine the test index of the time-triggered Ethernet bus that transmits the time-triggered Ethernet data packets according to the number of the time-triggered Ethernet data packets, the serial number of the time-triggered Ethernet data packets and / or the timestamp information of the time-triggered Ethernet data packets.

11. An electronic device, characterized in that: It includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the time-triggered Ethernet test method as described in any one of claims 1 to 9 are implemented.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the time-triggered Ethernet testing method as described in any one of claims 1-9 are implemented.

13. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the steps of the time-triggered Ethernet testing method as described in any one of claims 1-9.

Citation Information

Cited By

  • Network dynamic parameter resolving method and system based on non-intrusive link

    CN120238451A

  • TTE real-time Ethernet time delay measurement technology

    CN121309419A