Data transmission detection method and device and vehicle

By introducing data monitoring equipment into the vehicle data transmission link and using detection methods such as serial numbers and synchronization source identifiers, the problem of difficulty in locating lost messages between vehicle modules was solved, enabling rapid and accurate location of the cause of data packet loss and improving testing efficiency and data transmission reliability.

CN120880947APending Publication Date: 2025-10-31AVATR CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510941488.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-08
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

In existing technologies, when image loss and screen distortion occur due to packet loss during data transmission between vehicle modules, it is difficult to quickly pinpoint whether the packet loss is occurring at the data sender, the transmission link, or the data receiver.

Method used

By introducing data monitoring equipment into the data transmission link, message data is acquired and detected using sequence numbers, synchronization source identifiers, and protocol information to determine whether packet loss exists at the data sender, data relay, and data receiver.

Benefits of technology

It enables rapid and accurate location of the cause of data packet loss, improves testing efficiency, reduces the complexity of manual operations, and ensures the reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120880947A_ABST
    Figure CN120880947A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of vehicles, and discloses a data transmission detection method and device and a vehicle, and the method comprises the steps: obtaining message data; if the message data is first message data obtained through a first Ethernet link, whether data packet loss exists at the data sending end is determined according to the first message data, and the first Ethernet link is used for the data sending end to transmit data to a data relay end; if the message data is second message data obtained through a second Ethernet link, whether data packet loss exists in the data relay end or not is determined according to the first message data and the second message data, and the second Ethernet link is used for the data relay end to forward data transmitted by the data transmitting end to a data receiving end. By applying the technical scheme of the invention, if the message is lost in the transmission process, the message which is specifically caused by the data sending end, the data transmission link or the data receiving end can be quickly positioned.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle technology, specifically to a data transmission detection method, device, and vehicle. Background Technology

[0002] The various modules of a vehicle need to use data transmission links to complete data transmission. During the data transmission process, message loss may occur, which may cause the reversing camera image to be lost, the display screen to be distorted, etc., affecting the user's experience. Therefore, when message loss occurs, it is necessary to locate whether the packet loss occurred at the data sending end, the transmission link, or the data receiving end.

[0003] Currently, problem localization mainly relies on manual methods, which involve replacing old data transmitters, transmission links, or data receivers with new products, and then checking each item one by one to eventually locate the problem.

[0004] However, the existing method involves a complex manual process and has low testing efficiency. Summary of the Invention

[0005] In view of the above problems, embodiments of the present invention provide a data transmission detection method, device and vehicle to solve the problem in the prior art that it is impossible to quickly locate whether data packet loss occurred at the data sending end, the transmission link or the data receiving end.

[0006] According to one aspect of the present invention, a data transmission detection method is provided, the method comprising:

[0007] Obtain message data;

[0008] If the message data is obtained through the first Ethernet link, then based on the first message data, it is determined whether there is data packet loss at the data sending end. The first Ethernet link is used by the data sending end to transmit data to the data relay end.

[0009] If the message data is second message data obtained through the second Ethernet link, then based on the first message data and the second message data, it is determined whether there is data packet loss at the data relay end. The second Ethernet link is used by the data relay end to forward the data transmitted by the data sender to the data receiver.

[0010] In one optional approach, determining whether there is data packet loss at the data sender based on the first message data includes:

[0011] Obtain the first and second messages continuously sent by the data sending end from the first message data;

[0012] Extract the first sequence number and the first synchronization source identifier from the first message, and the second sequence number and the second synchronization source identifier from the second message;

[0013] If the first sequence number and the second sequence number are consecutive, and the first synchronization source identifier and the second synchronization source identifier are the same, it is determined that there is no data packet loss at the data sending end;

[0014] If the first sequence number and the second sequence number are not consecutive and / or the first synchronization source identifier and the second synchronization source identifier are different, it is determined that there is data packet loss at the data sending end.

[0015] In one optional approach, determining whether there is data packet loss at the data sender based on the first message data includes:

[0016] Obtain the first protocol information carried in the first message and the second protocol information carried in the second message;

[0017] If the protocol address, port identifier, protocol identifier, and header checksum in the first protocol information are all the same as those in the second protocol information, it is determined that there is no data packet loss at the data sending end.

[0018] If at least one of the protocol address, port identifier, protocol identifier, and header checksum is different, it is determined that the data sending end has experienced data packet loss.

[0019] In an optional embodiment, when the message data is first message data obtained through a first Ethernet link and there is no data loss at the data sending end, the method further includes:

[0020] Send the first message data to the data relay terminal;

[0021] The data relay terminal obtains the second message data output from the second Ethernet link based on the first message data.

[0022] In one optional approach, determining whether there is packet loss at the data relay station based on the first message data and the second message data includes:

[0023] Obtain the third sequence number and the third synchronization source identifier from the first message data, and the fourth sequence number and the fourth synchronization source identifier from the second message data;

[0024] If the third sequence number is the same as the fourth sequence number, and the third synchronization source identifier is the same as the fourth synchronization source identifier, it is determined that there is no data packet loss at the data relay end.

[0025] If the third sequence number is different from the fourth sequence number, and / or the third synchronization source identifier is different from the fourth synchronization source identifier, it is determined that there is data packet loss at the data relay end.

[0026] In one optional embodiment, the data relay includes at least two switches, wherein the first Ethernet link is used by the data sender to transmit data to the first switch, and the second Ethernet link is used by the last switch to forward the data transmitted by the data sender to the data receiver; the acquisition of message data includes:

[0027] Obtain the Nth packet data output by the Nth switch, wherein the first packet data is the data output by the first switch after the first packet data is input to the first switch;

[0028] The message data output by the Nth switch is input to the (N+1)th switch to obtain the (N+1)th message data output by the (N+1)th switch. The data output by the last switch is the second message data, and N is a positive integer less than the total number of switches.

[0029] In an alternative approach, the method further includes:

[0030] If the message data is the first message data output by the first switch, then based on the first message data output by the data sending end and the first message data output by the first switch, it is determined whether the first switch has data packet loss.

[0031] If the message data is the N+1th message data output by the N+1th switch, then based on the Nth message data output by the Nth switch and the N+1th message data, it is determined whether the N+1th switch has data packet loss.

[0032] In an alternative approach, the method further includes:

[0033] If there is no data packet loss at both the data sending end and the data relay end, send the first message data or the second message data to the data receiving end;

[0034] Based on the first message data or the second message data, detect whether there is data packet loss at the data receiving end.

[0035] According to another aspect of the present invention, a data monitoring device is provided, comprising:

[0036] The data acquisition module is used to acquire message data;

[0037] The first detection module is used to determine whether there is data packet loss at the data sending end if the message data is obtained through the first Ethernet link. The first Ethernet link is used by the data sending end to transmit data to the data relay end.

[0038] The second detection module is used to determine whether there is data packet loss at the data relay end if the message data is obtained through the second Ethernet link. The second Ethernet link is used by the data relay end to forward the data transmitted by the data sender to the data receiver.

[0039] According to another aspect of the present invention, a vehicle is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;

[0040] The memory is used to store at least one executable instruction that causes the processor to perform the operation described above.

[0041] The data transmission detection method, apparatus, and vehicle provided in this invention connect data monitoring equipment in series on each Ethernet link to acquire the packets received on each Ethernet link from the sending end to the receiving end. This allows for separate packet loss detection of the data sending end, data transmission link, and data receiving end, quickly locating the cause of packet loss and determining whether the packet loss is occurring at the data sending end, data transmission link, or data receiving end.

[0042] The above description is merely an overview of the technical solutions of the embodiments of the present invention. In order to better understand the technical means of the embodiments of the present invention and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0043] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0044] Figure 1 This is a schematic diagram of a real vehicle Ethernet transmission link provided in an embodiment of this application;

[0045] Figure 2 This is a schematic diagram of the data transmission process provided in an embodiment of this application;

[0046] Figure 3This is a structural diagram of the message loss detection system provided in the embodiments of this application;

[0047] Figure 4 This is a schematic diagram of the data transmission detection method provided in the embodiments of this application;

[0048] Figure 5 This is a schematic diagram of a data packet loss detection structure for multiple switches provided in an embodiment of this application;

[0049] Figure 6 This is a schematic diagram of the data packet loss detection process provided in the embodiments of this application;

[0050] Figure 7 This is a schematic diagram of the structure of the data monitoring device provided in the embodiments of this application;

[0051] Figure 8 This is a schematic diagram of the vehicle structure provided in an embodiment of this application. Detailed Implementation

[0052] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0053] In scenarios such as vehicle reversing cameras, 360-degree surround view systems, and dashcam video transmission, the Real-time Transport Protocol (RTP) is typically used. RTP is based on the User Datagram Protocol (UDP) and lacks a reliable transmission mechanism. This makes it prone to message loss during data transmission between various modules in the vehicle. Message loss can cause issues such as missing video feeds or screen tearing, affecting user experience. Currently, at the communication level, it's difficult to quickly and effectively pinpoint whether the problem lies with the data sender, the data transmission link, or the data receiver.

[0054] To address the above situation, this application provides a data transmission detection scheme, which uses a data monitoring device to access the data transmission link and acquire message data, enabling it to quickly pinpoint whether the message loss problem is occurring at the data sender, the data transmission link, or the data receiver.

[0055] For example, in one scenario, Figure 1 This is a schematic diagram of a real vehicle Ethernet transmission link provided in an embodiment of this application, as shown below. Figure 1As shown, one electronic control unit (ECU) 11 of the car is used as the data sending end, and another electronic control unit 12 is used as the data receiving end. They are connected by multiple switches and multiple Ethernet links to form a data transmission link 13. When the electronic control unit 11 sends a message data in the RTP protocol, the first message data is first transferred through the data transmission link 13 before finally flowing to the data receiving end.

[0056] For example, in another scenario, Figure 2 This is a schematic diagram of the data transmission process provided in an embodiment of this application, such as... Figure 2 As shown, the data sending end 21 transmits message data to the data relay end 22 via the first Ethernet link, and the data relay end 22 continues to transmit the message data to the data receiving end 23 via the second Ethernet link. At this time... Figure 2 The first Ethernet link, data relay 22, and second Ethernet link in the above can be equivalent to the above. Figure 1 Data transmission link 13 in the middle.

[0057] Based on the above Figure 2 In the data transmission scenario shown, this application provides a method for detecting message loss using a data monitoring device. Figure 3 This is a structural diagram of the message loss detection system provided in the embodiments of this application, such as... Figure 3 As shown, one end of the data monitoring device 30 is connected to the data sending end 21 through the first Ethernet link 1 to obtain the data sent by the data sending end 21; the data monitoring device 30 is also connected to the data relay end 22 through the second Ethernet link 1 to obtain the data sent by the data relay end 22.

[0058] based on Figure 3 The following describes in detail how a message loss detection system can locate message loss problems through some embodiments. For example, Figure 4 This is a schematic flowchart of the data transmission detection method provided in an embodiment of this application. This method can be applied to the above... Figure 3 The data monitoring equipment or the host computer connected to the data monitoring equipment, such as Figure 4 As shown, it specifically includes the following steps:

[0059] S410, Obtain message data;

[0060] S420. If the message data is obtained through the first Ethernet link, then determine whether there is data packet loss at the data sending end based on the first message data.

[0061] The first Ethernet link is used to transmit data from the data sending end to the data relay end;

[0062] S430. If the message data is second message data obtained through the second Ethernet link, then determine whether there is data packet loss at the data relay end based on the first message data and the second message data.

[0063] The second Ethernet link is used by the data relay end to forward the data transmitted by the data sender to the data receiver.

[0064] In this embodiment of the application, by connecting the data monitoring device in series on each Ethernet link, the data is obtained from the sending end to the receiving end of each Ethernet link. This allows for separate packet loss detection of the data sending end, data transmission link, and data receiving end, quickly locating the cause of packet loss and determining whether the packet loss is occurring at the data sending end, data transmission link, or data receiving end.

[0065] In this embodiment, for step S410, refer to the above description. Figure 2 The first Ethernet link is used by the data sender 21 to send data to the data relay 22, while the second Ethernet link is used by the data relay 22 to send data to the data receiver. Figure 3 In this configuration, the data monitoring device 30 connects to the data sending end 21 via the first Ethernet link 1 and to the data relay end 22 via the second Ethernet link 1, thus directly acquiring the first message data sent by the data sending end 21. Furthermore, after the data monitoring device 30 transmits the first message data sent by the data sending end 21 to the data relay end 22 via the first Ethernet link 2, it can also obtain the second message data output by the data relay end 22 based on that service message from the second Ethernet link 1.

[0066] For step S420 above, continue to refer to... Figure 3 After the data monitoring device 30 acquires the message data, it first needs to identify the source of the message data (in order to facilitate subsequent data loss checks and location of packet loss problems). Specifically, after the data monitoring device 30 detects that the message data was sent by the data sender 21 through the first Ethernet link 1, it determines whether the messages sent by the data sender 21 are continuous based on the first message data. If the sent messages are not continuous, it can be determined that the data sender 21 has a data loss problem.

[0067] Specifically, messages are usually numbered sequentially according to the sending order. For example, the first message frame is numbered 1 and the second message frame is numbered 2. If the data monitoring device 30 monitors two consecutive messages sent from the data sending end, with sequence numbers 1 and 3 respectively, it means that the data sending end lost the message with sequence number 2 during the data transmission process, that is, there is data packet loss.

[0068] For example, in other embodiments, data packet loss at the data sender can also be detected by the following steps:

[0069] (1) Based on the first message data, obtain the first and second messages continuously sent by the data sender;

[0070] (2) Extract the first sequence number and the first synchronization source identifier from the first message, and the second sequence number and the second synchronization source identifier from the second message;

[0071] (3) If the first sequence number and the second sequence number are consecutive and the first synchronization source identifier and the second synchronization source identifier are the same, it is determined that there is no data packet loss at the data sending end;

[0072] (4) If the first sequence number and the second sequence number are not consecutive and / or the first synchronization source identifier and the second synchronization source identifier are different, it is determined that there is data packet loss at the data sending end.

[0073] In scenarios involving vehicle reversing cameras, 360-degree surround view systems, and dashcam video transmission, the RTP protocol is used. When transmitting messages using the RTP protocol at the data sending end, each RTP message carries a Synchronization Source Identifier (SSRC) and a Sequence Number (SN). Based on this, the data monitoring equipment can acquire two consecutively transmitted message frames (i.e., the first message and the second message) from the data sending end, extract the first SSRC and the first sequence number from the first message, and extract the second SSRC and the second sequence number from the second message. Then, it compares the first SSRC with the second SSRC, and also compares the first sequence number with the second sequence number.

[0074] Specifically, when the first SSRC and the second SSRC are the same, it indicates that the first and second messages were sent by the same data transmitter, ruling out the possibility that the first message was sent by Electronic Control Unit A and the second message by Electronic Control Unit B. Furthermore, if the first sequence number and the second sequence number are adjacent, it means that the two message frames are consecutive, meaning there are no other messages in between, thus confirming that no data loss occurred during message transmission. If the first sequence number and the second sequence number are not adjacent, for example, if the first sequence number is 1 and the second sequence number is 3, with a sequence number 2 in between, it means that the data transmitter lost the message carrying the second sequence number 2 during transmission.

[0075] Furthermore, when the first message is sent first and the second message is sent later, the size of the first sequence number and the second sequence number can be compared. If the second sequence number is greater than the first sequence number and is adjacent to the first sequence number, then it means that there is no data loss at the data sending end, which can improve the accuracy of data loss detection.

[0076] Regarding step S430 above, the function of the data relay is to relay data, that is, to ensure that the data sent by the data sender is transmitted intact to the data receiver. To this end, after the data monitoring device obtains the second message data, it can directly compare whether the first message data and the second message data are the same. If they are the same, it means that there is no data loss at the data relay. If they are different, it means that there is data loss.

[0077] Specifically, in some embodiments, to more accurately detect whether data packet loss exists at the data relay end, the following methods can also be used to detect whether data packet loss exists at the data relay end. The specific steps are as follows:

[0078] (1) Obtain the third sequence number and the third synchronization source identifier in the first message data, and the fourth sequence number and the fourth synchronization source identifier in the second message data;

[0079] (2) If the third sequence number and the fourth sequence number are the same, and the third synchronization source identifier and the fourth synchronization source identifier are the same, it is determined that there is no data packet loss at the data relay end.

[0080] (3) If the third sequence number is different from the fourth sequence number, and / or the third synchronization source identifier is different from the fourth synchronization source identifier, it is determined that there is data packet loss at the data relay end.

[0081] In this embodiment, the same method can also be applied to scenarios such as reversing camera, 360-degree surround view system, and dashcam video transmission in vehicles. The third sequence number is the Sequence Number in the first message data, the third synchronization source identifier is the SSRC in the first message data, the fourth sequence number is the Sequence Number in the second message data, and the fourth synchronization source identifier is the SSRC in the second message data.

[0082] In this embodiment, by comparing the third sequence number with the fourth sequence number, and the third synchronization source identifier with the fourth synchronization source identifier, it is possible to more accurately determine whether there is data packet loss at the data relay end, thus avoiding problems such as video loss and screen tearing caused by RTP packets in the vehicle being lost in multiple Ethernet transmission links.

[0083] Furthermore, in some embodiments, such as reversing cameras, 360-degree surround view systems, and dashcam video transmission in vehicles, RTP packets are transmitted based on UDP and the Internet Protocol (IP). Therefore, it is possible to determine whether a packet is lost by checking the IP address, port number, and identifiers and header checksums in the IP header to identify if they are from the same RTP frame.

[0084] Specifically, the first protocol information carried in the first message and the second protocol information carried in the second message can be obtained. Specifically, if the protocol address, port identifier, protocol identifier, and header checksum in the first protocol information are all the same as those in the second protocol information, it is determined that there is no data loss at the data sending end; otherwise, if at least one of the protocol address, port identifier, protocol identifier, and header checksum is different, it is determined that there is data loss at the data sending end.

[0085] In this embodiment of the application, by continuing to compare whether the protocol information carried in the two messages output by the data sender is the same, based on the use of sequence number and synchronization source identifier to determine whether there is data packet loss at the data sender, it is possible to further determine more accurately whether there is data packet loss at the data sender.

[0086] In some embodiments, if it is determined that there is no data loss at the data sender, the data monitoring device can input the first message data obtained from the data sender to the data relay terminal, thereby triggering the data relay terminal to perform its data relay function. In this way, the data monitoring device can collect the second message data output by the data relay terminal, and then, based on the first message data input to the data relay terminal and the second message data output by the data relay terminal, determine whether there is data loss at the data relay terminal.

[0087] In scenarios such as reversing cameras, 360-degree surround view systems, and dashcam video transmission in vehicles, the protocol information carried in the first message data input to the data relay terminal and the protocol information carried in the second message data output by the data relay terminal can be compared. If the two are the same, it is determined that there is no data packet loss at the data relay terminal; if they are different, it is determined that there is data packet loss at the data relay terminal.

[0088] In this embodiment, when there is no data packet loss at the data sending end, the first message data sent by the data sending end is input to the data relay end. This allows the data relay end to directly execute the data relay function to obtain the second message data, eliminating the need to configure additional test data for packet loss testing of the data relay end, thereby improving the efficiency of data packet loss detection.

[0089] In addition, in some embodiments, to facilitate subsequent testers in quickly resolving data packet loss issues, if data packet loss is confirmed at the data sending end, the first target packet lost at the data sending end can be determined based on the first packet data; while if data packet loss is confirmed at the data relay end, the second target packet lost at the data relay end can be determined based on the first packet data and the second packet data.

[0090] In this embodiment, in scenarios such as reversing camera, 360-degree surround view system, and dashcam video transmission in vehicles, since RTP packets carry SSRC and sequence number, if the SSRC in the first packet sent by the data sender is not continuous with the SSRC in the second packet, then the missing SSRC can be directly recorded. This allows the location of which packet (i.e., the first target packet) the data sender has lost. Based on the lost first target packet, the data packet loss problem of the data sender can be more easily and quickly identified, enabling efficient maintenance of the data sender and resolution of the data packet loss problem.

[0091] Additionally, if the SSRC carried in the first message data sent to the data relay end is different from the SSRC carried in the second message data output by the data relay end, then the missing SSRC can be recorded. This allows the data relay end to pinpoint which specific message (i.e., the second destination message) was lost during message relay. Based on the lost second destination message, the data packet loss problem of the data relay end can be identified more conveniently and quickly, enabling efficient maintenance of the data relay end and resolution of the data packet loss problem.

[0092] In some embodiments, a data relay end may include multiple relay devices for data relay, where one relay device connects to the next to form a whole, serving as a data relay segment. For example, a data relay end may include multiple switches, with each switch connected to the next via a data transmission link. The first switch is connected to the data sender, and the last switch is connected to the data receiver. For instance, assuming there are N+1 switches, where N is a positive integer less than the total number of switches, the data sender transmits data to the first switch via a first Ethernet link, while the last switch receives the data output from the previous switch and forwards it to the data receiver.

[0093] In this scenario, to verify whether there is packet loss at the data relay end, it is necessary to test each of the N+1 switches to determine if any switch is experiencing packet loss. Therefore, the data monitoring device needs to interact with each switch, inputting packet data to each switch and simultaneously acquiring the packet data output by each switch. Specifically, the data monitoring device needs to acquire the Nth packet data output by the Nth switch, then input the Nth packet data to the N+1th switch, and acquire the N+1th packet data output by the N+1th switch.

[0094] In the first switch, the data monitoring device obtains the first message data from the data sending end and then inputs it to the first switch. At this time, the first switch outputs the first message data based on the first message data input by the data monitoring device. For the last switch, the last message data it outputs is the second message data.

[0095] For example, taking a data relay terminal comprising three switches, in a data transmission scenario, the first electronic control unit acts as the data sender, and the second electronic control unit acts as the data receiver. The first electronic control unit can send a first packet to switch 1 via Ethernet link 1. Then, switch 1 forwards the packet to switch 2 via Ethernet link 2. Switch 2 then forwards the packet to switch 3 via Ethernet link 3. Finally, switch 3 transmits the packet to the second electronic control unit via Ethernet link 4. In a data packet loss detection scenario... Figure 5 This is a schematic diagram of a data packet loss detection structure for multiple switches provided in an embodiment of this application, as shown below. Figure 5 As shown, Ethernet link 1 is divided into Ethernet link 1-in and Ethernet link 1-out, Ethernet link 2 is divided into Ethernet link 2-in and Ethernet link 2-out, Ethernet link 3 is divided into Ethernet link 3-in and Ethernet link 3-out, and Ethernet link 4 is divided into Ethernet link 4-in and Ethernet link 4-out.

[0096] In this process, after the data monitoring device 30 obtains the first message data sent by the first electronic control unit 11 (i.e., the data sender) through Ethernet link 1-in, it can input it into the switch 1 through Ethernet link 1-out, and obtain the first message data output by the switch 1 through Ethernet link 2-in. Then, the data monitoring device inputs the first message data into the switch 2 through Ethernet link 2-out. Based on the input first message data, the switch 2 outputs the second message data to the data monitoring device through Ethernet link 3-in. The data monitoring device then inputs the second message data into the switch 3 through Ethernet link 3-out. Based on the second message data, the switch 3 outputs the third message data to the data monitoring device through Ethernet link 4-in. At this time, the third message data is the second message data mentioned above, which is finally transmitted by the data monitoring device to the second electronic control unit 12 (i.e., the data receiver) through Ethernet link 4-out.

[0097] In this embodiment, data monitoring equipment interacts with each switch, inputting the packet data output by the previous switch to the next switch and obtaining the packet data output by the next switch. This achieves data isolation between switches, avoiding data confusion that could prevent subsequent identification of which switch is experiencing packet loss. Furthermore, only the first service packet output by the data sending end is needed to obtain test data for packet loss testing on each switch, eliminating the need to configure separate test packets for each switch. This improves the efficiency of packet loss detection on each switch.

[0098] Furthermore, in the above Figure 5 Based on this, in some embodiments, if the packet data is the first packet data output by the first switch, then the existence of data packet loss in the first switch is determined based on the first packet data output by the data sender and the first packet data output by the first switch; if the packet data is the N+1th packet data output by the N+1th switch, then the existence of data packet loss in the N+1th switch is determined based on the Nth packet data output by the Nth switch and the N+1th packet data.

[0099] In this embodiment, for the first switch, refer to the above. Figure 5 Since the data monitoring equipment inputs the first message data output by the data sending end into the first switch, it can compare the first message data output by the data sending end with the first message data output by the first switch. If the first message data output by the data sending end is the same as the first message data output by the first switch, then the first switch does not have data packet loss. If they are different, it means that the first switch has data packet loss.

[0100] Furthermore, for other switches after the first switch, such as the (N+1)th switch (where N is a positive integer less than the total number of switches), it is necessary to compare the (N+1)th packet data output by the (N+1)th switch with the Nth packet data output by the Nth switch. Refer to the above. Figure 5 Since the data monitoring equipment will input the Nth packet data output by the Nth switch to the N+1th switch, the N+1th packet data output by the N+1th switch should be the same as the Nth packet data. If they are not the same, it is determined that the N+1th switch has lost packets.

[0101] Specifically, it can be compared whether the protocol information in the (N+1)th message data is the same as the protocol information in the Nth message data. If they are the same, it is determined that the (N+1)th message data is the same as the Nth message data.

[0102] In this embodiment of the application, by comparing whether the packet data input to the Nth switch and the packet data output by the Nth switch are the same, it can be determined whether the Nth switch has data packet loss. In this way, in a scenario where the data exchange end includes multiple relay devices, the purpose of individually detecting data packet loss for each relay device is achieved, thereby locating a target relay device with data packet loss from among multiple relay devices, and realizing accurate location of data packet loss.

[0103] Furthermore, Figure 6 This is a schematic diagram of the data packet loss detection process provided in the embodiments of this application, such as... Figure 6As shown, in conjunction with the above Figure 5 It includes the following steps:

[0104] S610, Receive a message from the Ethernet link; S620, Check if the message was received on Ethernet link 1-IN; S630, If received on Ethernet link 1-IN, record the synchronization source identifier and corresponding sequence number of the received message; S640, Check if the sequence numbers of two messages with the same synchronization source identifier are consecutive; S650, No packet loss at the data sender; S660, Packet loss at the data sender; S670, Record any missing sequence numbers; S680, Check if the message was received on Ethernet link 2-IN; S690, If received on Ethernet link 2-IN, record the synchronization source identifier and corresponding sequence number of the received message; S6100, Compare the message received with the message received on Ethernet link 1-IN; S6110, No packet loss on switch 1; S6120, Packet loss on switch 1. Packet issues; S6130, Record missing sequence numbers; S6140, Whether received on Ethernet link 3-in; S6150, If received on Ethernet link 3-in, record the synchronization source identifier and corresponding sequence number of the received packet; S6160, Compare with packets received on Ethernet link 2-in; S6170, Switch 2 has no packet loss issues; S6180, Switch 2 has packet loss issues; S6190, Record missing sequence numbers; S6200, If received on Ethernet link 4-in, record the synchronization source identifier and corresponding sequence number of the received packet; S6210, Compare with packets received on Ethernet link 3-in; S6220, Switch 3 has no packet loss issues; S6230, Switch 3 has packet loss issues; S6240, Record missing sequence numbers.

[0105] In this embodiment, reference is made to the above. Figure 5 In scenarios such as reversing cameras, 360-degree surround view systems, and dashcam video transmission in vehicles, taking the transmission of RTP packets from the data sender to the data receiver as an example, packet loss problem judgment can be mainly summarized into the following five steps:

[0106] Step 1: Determine which Ethernet link the RTP packet was received on;

[0107] Step 2: If receiving data via Ethernet link 1-in, the data monitoring device records the packets sent by the data sender. It reads the SSRC and corresponding Sequence Number of the packet and checks if the Sequence Number of two consecutive packets with the same SSRC is incremented by 1. If the Sequence Number of two consecutive packets with the same SSRC is incremented by 1, the RTP packets sent by the data sender are without problems; otherwise, the RTP packets sent by the data sender are lost, and the missing Sequence Number corresponding to the SSRC of the RTP packet is recorded.

[0108] Step 3: If the packet is received on Ethernet link 2-in, the data monitoring device records the packet sent by switch 1, reads the SSRC and corresponding Sequence Number of the packet, and compares it with the RTP packet received on Ethernet link 1-in. If it is the same as the RTP packet received on Ethernet link 1-in, then the RTP packet forwarded by switch 1 was not lost, and switch 1 has no problem; otherwise, the RTP packet forwarded by switch 1 was lost, and the missing Sequence Number of the corresponding SSRC of the RTP packet is recorded.

[0109] Step 4: If the packet is received at Ethernet link 3-in, the data monitoring device records the packet sent by switch 2, reads the SSRC and corresponding Sequence Number of the packet, and compares it with the RTP packet received at Ethernet link 2-in. If it is the same as the RTP packet received at Ethernet link 2-in, then the RTP packet forwarded by switch 2 was not lost, and switch 2 has no problem; otherwise, the RTP packet forwarded by switch 2 was lost, and the missing Sequence Number of the corresponding SSRC of the RTP packet is recorded.

[0110] Step 5: If the packet is received at Ethernet link 4-in, the data monitoring device records the packet sent by switch 3, reads the SSRC and corresponding Sequence Number of the packet, and compares it with the RTP packet received at Ethernet link 3-in. If it is the same as the RTP packet received at Ethernet link 3-in, then the RTP packet forwarded by switch 3 was not lost, and switch 3 has no problem; otherwise, the RTP packet forwarded by switch 3 was lost, and the missing Sequence Number of the corresponding SSRC of the RTP packet is recorded.

[0111] Step 6: If the above checks show that there are no problems with the data sender, switch 1, switch 2, and switch 3, then the RTP packets received by the data receiver are not lost. At this time, send the first packet data sent by the data sender or the second packet data output by switch 3 to the data receiver to detect whether there is data packet loss at the data receiver.

[0112] Specifically, it can be checked whether there are any problems with the underlying message reception and application layer message processing at the data receiving end. If there are problems, it can be determined that there is a packet loss problem at the data receiving end, thereby achieving precise location of the data packet loss problem.

[0113] In this embodiment, when RTP packets are lost in multiple Ethernet transmission links, resulting in video loss or screen tearing, the above steps can accurately pinpoint whether the packet loss problem occurs at the sending end, the transmission link, or the receiving end.

[0114] Figure 7 This is a schematic diagram of the structure of the data monitoring device provided in the embodiments of this application, such as... Figure 7 As shown, the data monitoring device 700 includes:

[0115] The data acquisition module 710 is used to acquire message data.

[0116] The first detection module 720 is used to determine whether there is data packet loss at the data sending end if the message data is obtained through the first Ethernet link.

[0117] The first Ethernet link is used by the data sending end to transmit data to the data relay end.

[0118] The second detection module 730 is used to determine whether there is data packet loss at the data relay end based on the first and second message data if the message data is obtained through the second Ethernet link.

[0119] The second Ethernet link is used by the data relay end to forward the data transmitted by the data sender to the data receiver.

[0120] This application embodiment connects a data monitoring device in series with each Ethernet link to acquire the packets received on each Ethernet link from the sending end to the receiving end. This allows for separate packet loss detection at the data sending end, data transmission link, and data receiving end, quickly locating the cause of packet loss and determining whether the packet loss is occurring at the data sending end, data transmission link, or data receiving end.

[0121] Optionally, the first detection module is also used for:

[0122] Obtain the first and second messages continuously sent by the data sender from the first message data;

[0123] Extract the first sequence number and the first synchronization source identifier from the first message, and the second sequence number and the second synchronization source identifier from the second message;

[0124] If the first sequence number and the second sequence number are consecutive, and the first synchronization source identifier and the second synchronization source identifier are the same, it is determined that there is no data packet loss at the data sending end;

[0125] If the first sequence number and the second sequence number are not consecutive and / or the first synchronization source identifier and the second synchronization source identifier are different, it is determined that there is data packet loss at the data sending end.

[0126] Optionally, the first detection module is also used for:

[0127] Obtain the first protocol information carried in the first message and the second protocol information carried in the second message;

[0128] If the protocol address, port identifier, protocol identifier, and header checksum in the first protocol information are all the same as those in the second protocol information, it is determined that there is no data packet loss at the data sending end.

[0129] If at least one of the protocol address, port identifier, protocol identifier, and header checksum is different, it is determined that there is data packet loss at the data sender.

[0130] Optionally, if the message data is obtained through the first Ethernet link and there is no data loss at the data sending end, a transmission module is also included, used for:

[0131] Send the first message data to the data relay station;

[0132] The data relay end acquires the second message data output from the second Ethernet link based on the first message data.

[0133] Optionally, the second detection module is also used for:

[0134] Obtain the third sequence number and the third synchronization source identifier from the first message data, and the fourth sequence number and the fourth synchronization source identifier from the second message data;

[0135] If the third sequence number and the fourth sequence number are the same, and the third synchronization source identifier and the fourth synchronization source identifier are the same, it is determined that there is no data packet loss at the data relay end.

[0136] If the third sequence number and the fourth sequence number are different, and / or the third synchronization source identifier and the fourth synchronization source identifier are different, it is determined that there is data packet loss at the data relay end.

[0137] Optionally, a message determination module may also be included, for:

[0138] If it is determined that there is data packet loss at the data sending end, the first target packet lost by the data sending end is determined based on the data of the first message;

[0139] In the event of data packet loss at the data relay end, the second target packet lost at the data relay end is determined based on the data of the first packet and the data of the second packet.

[0140] Optionally, the data relay includes at least two switches. A first Ethernet link is used by the data sender to transmit data to the first switch, and a second Ethernet link is used by the last switch to forward the data transmitted by the data sender to the data receiver. The data acquisition module is specifically used for:

[0141] Obtain the Nth packet data output by the Nth switch, where the first packet data is the data output by the first switch after the first packet data is input to the first switch;

[0142] Input the message data output by the Nth switch to the (N+1)th switch, and obtain the (N+1)th message data output by the (N+1)th switch. The data output by the last switch is the second message data. N is a positive integer and less than the total number of switches.

[0143] Optionally, it also includes a switch detection module for:

[0144] If the message data is the first message data output by the first switch, then based on the first message data output by the data sender and the first message data output by the first switch, determine whether the first switch has lost data packets;

[0145] If the packet data is the N+1th packet data output by the N+1th switch, then based on the Nth packet data output by the Nth switch and the N+1th packet data, determine whether the N+1th switch has packet loss.

[0146] Optionally, a receiver detection module may also be included, for:

[0147] If there is no data packet loss at both the data sending end and the data relay end, send the first message data or the second message data to the data receiving end;

[0148] Based on the first or second message data, detect whether there is data packet loss at the data receiving end.

[0149] Figure 8 This is a schematic diagram of a vehicle structure provided in an embodiment of this application. The specific embodiments of this invention do not limit the specific implementation of the vehicle. Figure 8 As shown, the vehicle may include one or more processors 801 and a communication interface 803; the processor 801 is used to perform the steps in the above method embodiments.

[0150] The vehicle may also include a memory 802 and a communication bus 804.

[0151] The processor 801, communication interface 803, and memory 802 communicate with each other via communication bus 804. Communication interface 803 is used for communication with other network elements such as clients or other servers. The processor 801 executes program 805, specifically performing the relevant steps in the above method embodiments.

[0152] Specifically, program 805 may include program code comprising computer-executable instructions. Processor 801 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The vehicle may include one or more processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0153] Memory 802 is used to store program 805. Memory 802 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0154] Specifically, program 805 can be called by processor 801 to cause the vehicle to perform the following operations:

[0155] Obtain message data;

[0156] If the message data is obtained through the first Ethernet link, then based on the first message data, it is determined whether there is data packet loss at the data sending end. The first Ethernet link is used by the data sending end to transmit data to the data relay end.

[0157] If the message data is obtained through the second Ethernet link, then based on the first and second message data, it is determined whether there is data packet loss at the data relay end. The second Ethernet link is used by the data relay end to forward the data transmitted by the data sender to the data receiver.

[0158] This embodiment connects the data monitoring device in series with each Ethernet link to acquire the packets sent from the sending end to the receiving end of each Ethernet link. This allows for separate packet loss detection at the data sending end, data transmission link, and data receiving end, quickly locating the cause of packet loss and determining whether the packet loss is occurring at the data sending end, data transmission link, or data receiving end.

[0159] This invention provides a computer-readable storage medium storing at least one executable instruction that, when executed on a vehicle or data monitoring device, causes the vehicle or data monitoring device to perform the method described in any of the above-described method embodiments. The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Furthermore, this invention is not directed to any particular programming language.

[0160] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Furthermore, the embodiments of this invention are not directed to any particular programming language.

[0161] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. Similarly, for the sake of brevity and to aid in understanding one or more aspects of the invention, in the description of exemplary embodiments of the invention above, various features of the embodiments are sometimes grouped together in a single embodiment, figure, or description thereof. The claims, which follow the detailed description, are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of the invention.

[0162] Those skilled in the art will understand that the modules in the device of the embodiment can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiment can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components, except that at least some of such features and / or processes or units are mutually exclusive.

[0163] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.

Claims

1. A data transmission detection method, characterized in that, The method includes: Obtain message data; If the message data is obtained through the first Ethernet link, then based on the first message data, it is determined whether there is data packet loss at the data sending end. The first Ethernet link is used by the data sending end to transmit data to the data relay end. If the message data is second message data obtained through the second Ethernet link, then based on the first message data and the second message data, it is determined whether there is data packet loss at the data relay end. The second Ethernet link is used by the data relay end to forward the data transmitted by the data sender to the data receiver.

2. The method according to claim 1, characterized in that, The step of determining whether there is data packet loss at the data sending end based on the first message data includes: Obtain the first and second messages continuously sent by the data sending end from the first message data; Extract the first sequence number and the first synchronization source identifier from the first message, and the second sequence number and the second synchronization source identifier from the second message; If the first sequence number and the second sequence number are consecutive, and the first synchronization source identifier and the second synchronization source identifier are the same, it is determined that there is no data packet loss at the data sending end; If the first sequence number and the second sequence number are not consecutive and / or the first synchronization source identifier and the second synchronization source identifier are different, it is determined that there is data packet loss at the data sending end.

3. The method according to claim 2, characterized in that, The step of determining whether there is data packet loss at the data sending end based on the first message data includes: Obtain the first protocol information carried in the first message and the second protocol information carried in the second message; If the protocol address, port identifier, protocol identifier, and header checksum in the first protocol information are all the same as those in the second protocol information, it is determined that there is no data packet loss at the data sending end. If at least one of the protocol address, port identifier, protocol identifier, and header checksum is different, it is determined that the data sending end has experienced data packet loss.

4. The method according to claim 1, characterized in that, If the message data is first message data obtained through a first Ethernet link, and there is no data loss at the data sending end, the method further includes: Send the first message data to the data relay terminal; The data relay terminal obtains the second message data output from the second Ethernet link based on the first message data.

5. The method according to claim 4, characterized in that, The step of determining whether there is data packet loss at the data relay end based on the first message data and the second message data includes: Obtain the third sequence number and the third synchronization source identifier from the first message data, and the fourth sequence number and the fourth synchronization source identifier from the second message data; If the third sequence number is the same as the fourth sequence number, and the third synchronization source identifier is the same as the fourth synchronization source identifier, it is determined that there is no data packet loss at the data relay end. If the third sequence number is different from the fourth sequence number, and / or the third synchronization source identifier is different from the fourth synchronization source identifier, it is determined that there is data packet loss at the data relay end.

6. The method according to claim 1, characterized in that, The data relay includes at least two switches. The first Ethernet link is used by the data sending end to transmit data to the first switch, and the second Ethernet link is used by the last switch to forward the data transmitted by the data sending end to the data receiving end. The acquisition of message data includes: Obtain the Nth packet data output by the Nth switch, wherein the first packet data is the data output by the first switch after the first packet data is input to the first switch; The message data output by the Nth switch is input to the (N+1)th switch to obtain the (N+1)th message data output by the (N+1)th switch. The data output by the last switch is the second message data, and N is a positive integer less than the total number of switches.

7. The method according to claim 6, characterized in that, The method further includes: If the message data is the first message data output by the first switch, then based on the first message data output by the data sending end and the first message data output by the first switch, it is determined whether the first switch has data packet loss. If the message data is the N+1th message data output by the N+1th switch, then based on the Nth message data output by the Nth switch and the N+1th message data, it is determined whether the N+1th switch has data packet loss.

8. The method according to any one of claims 1-7, characterized in that, The method further includes: If there is no data packet loss at both the data sending end and the data relay end, send the first message data or the second message data to the data receiving end; Based on the first message data or the second message data, detect whether there is data packet loss at the data receiving end.

9. A data monitoring device, characterized in that, include: The data acquisition module is used to acquire message data; The first detection module is used to determine whether there is data packet loss at the data sending end if the message data is obtained through the first Ethernet link. The first Ethernet link is used by the data sending end to transmit data to the data relay end. The second detection module is used to determine whether there is data packet loss at the data relay end if the message data is obtained through the second Ethernet link. The second Ethernet link is used by the data relay end to forward the data transmitted by the data sender to the data receiver.

10. A vehicle, characterized in that, include: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform the operation of the method as described in any one of claims 1-8.

Citation Information

Cited By

  • Automatic driving reversing data automatic extraction method based on gear triggering

    CN121256307A