Data transmission method, device, equipment, medium, program product and vehicle

By obtaining and analyzing the identification information of data frames, redundant backup processing and ring network transmission are performed for high-priority data frames, which solves the problems of bandwidth waste and insufficient identification in the existing technology, and improves network bandwidth utilization and data transmission reliability. sex.

CN118740324APending Publication Date: 2024-10-01BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310334628.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the frame redundant transmission method causes a large amount of bandwidth to be occupied in the Ethernet network, and fails to effectively identify and process the priority of key data flows, resulting in a waste of bandwidth.

Method used

By obtaining the identification information of the data frame to be processed, its data type and priority are determined. If the priority is higher than the preset value, redundant backup processing is performed, N target data frames are generated, and the loop is connected through N communication links. It is sent through the network structure to ensure reliable transmission of high-priority data frames.

Benefits of technology

It saves network link bandwidth, improves network bandwidth usage, and ensures reliable transmission of high-priority data flows.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740324A_ABST
    Figure CN118740324A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method, device and equipment, a medium, a program product and a vehicle. The method comprises the following steps: acquiring identification information of a to-be-processed data frame, wherein the identification information is used for indicating a data type and a priority of the to-be-processed data frame; under the condition that the data type of the to-be-processed data frame is a preset data type and the priority of the to-be-processed data frame is higher than a preset priority, performing redundant backup processing on the to-be-processed data frame to obtain N target data frames; and sending the N target data frames. In the embodiment of the invention, whether to perform redundant backup processing on the to-be-processed data frame or not can be determined according to the data type and the priority of the to-be-processed data frame, and redundant backup processing is performed on the data frame of which the priority is higher than the preset priority, so that the network link bandwidth can be saved, and the network bandwidth use is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and in particular, relates to a data transmission method, device, equipment, medium, program product and vehicle. Background Art

[0002] With the development of intelligent driving cars, more and more sensor data is directly used for vehicle control. This type of data flow is strongly related to functional safety, and the reliability requirements of data transmission need to be considered. In the automotive Ethernet system, the data flow is transmitted through IEEE 802.1CB frame redundancy to ensure high reliability.

[0003] The frame redundant transmission method in the prior art is to identify whether the data frame is a key data frame by the destination MAC address in the data frame, thereby determining whether FRER redundancy control is required. However, in this method, a large number of key data frames need to be copied, resulting in a large amount of bandwidth in the Ethernet network being occupied. Summary of the invention

[0004] Embodiments of the present application provide a data transmission method, apparatus, device, medium, program product, and vehicle to reduce data redundancy and save storage space.

[0005] In a first aspect, an embodiment of the present application provides a data transmission method, the method comprising:

[0006] Acquire identification information of a data frame to be processed, where the identification information is used to indicate a data type and a priority of the data frame to be processed;

[0007] Determining that the data type of the to-be-processed data frame is a preset data type and the priority of the to-be-processed data frame is higher than the preset priority, performing redundant backup processing on the to-be-processed data frame to obtain N target data frames, where N is a positive integer greater than 1;

[0008] The N target data frames are sent.

[0009] In some embodiments, obtaining identification information of the data frame to be processed includes:

[0010] Acquire a TAG field of the data frame to be processed, wherein the TAG field includes a data type tag and a priority tag;

[0011] Parse the TAG field to determine the data type and priority of the data frame to be processed.

[0012] In some embodiments, performing redundant backup processing on the data frame to be processed to obtain N target data frames includes:

[0013] Inserting redundant label information into the data frame to be processed to obtain a first data frame, wherein the redundant label information is data processing information of the data frame to be processed;

[0014] The first data frame is copied to obtain N target data frames.

[0015] In some embodiments, inserting redundant label information into the data frame to be processed to obtain a first data frame includes:

[0016] Create redundant label information;

[0017] The redundant label information is inserted into the frame header of the data frame to be processed to obtain the first data frame, so that the next communication node determines whether to store or discard the first data frame by extracting the redundant label information.

[0018] In some embodiments, the sending of the N target data frames includes:

[0019] Determine N communication links for sending the target data frame, any two communication links among the N communication links form a ring network structure;

[0020] The N target data frames are respectively sent to the next communication node through the N communication links.

[0021] In a second aspect, an embodiment of the present application provides a data transmission device, the device comprising:

[0022] A first acquisition module, used to acquire identification information of a data frame to be processed, wherein the identification information is used to indicate a data type and a priority of the data frame to be processed;

[0023] A backup module, used for performing redundant backup processing on the data frame to be processed to obtain N target data frames, where N is a positive integer greater than 1, when the data type of the data frame to be processed is a preset data type and the priority of the data frame to be processed is higher than the preset priority;

[0024] The transmission module is used to send the N target data frames to the second node device through N communication links respectively.

[0025] In a third aspect, an embodiment of the present application provides a data processing device, the device comprising: a processor and a memory storing program instructions;

[0026] When the processor executes the program instructions, the method of the first aspect as described above is implemented.

[0027] In a fourth aspect, an embodiment of the present application provides a vehicle, comprising: the data transmission device of the second aspect or the data processing equipment of the third aspect.

[0028] In a fifth aspect, an embodiment of the present application provides a storage medium, characterized in that computer program instructions are stored on the storage medium, and when the computer program instructions are executed by a processor, the method of the first aspect described above is implemented.

[0029] The data transmission method, device, equipment, medium, program product and vehicle of the embodiments of the present application can obtain identification information of the data frame to be processed, and the identification information is used to indicate the data type and priority of the data frame to be processed; when the data type of the data frame to be processed is a preset data type and the priority of the data frame to be processed is higher than the preset priority, the data frame to be processed is subjected to redundant backup processing to obtain N target data frames; and N target data frames are sent. Whether to perform redundant backup processing on the data frame to be processed can be determined according to the data type and priority of the data frame to be processed, and redundant backup processing is performed on the data frame with a priority higher than the preset priority, thereby saving network link bandwidth and improving network bandwidth utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0031] Figure 1 A flowchart of a data transmission method provided in an embodiment of the present application;

[0032] Figure 2 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;

[0033] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. 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.

[0035] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0036] The embodiments of the present invention are mainly used in a time-sensitive network, and related terms are briefly introduced.

[0037] Time-Sensitive Networking: Time-Sensitive Networking (TSN) refers to a set of "sub-standards" developed under the IEEE802.1 standard framework based on specific application requirements, aiming to establish a "universal" time-sensitive mechanism for the Ethernet protocol to ensure the time certainty of network data transmission. Since TSN is a protocol standard under IEEE802.1, TSN is a protocol standard for the second layer in the Ethernet communication protocol model, that is, the data link layer (more precisely, the MAC layer).

[0038] The main technical contents involved in the TSN standard include:

[0039] IEEE 802.1CB defines a solution for redundant transmission in automotive Ethernet, including standards for reliable stream replication and frame elimination, namely the Frame Replication and Elimination for Reliability (FRER), which is used to improve network reliability. This standard ensures that copies of critical streams can be transmitted in disjoint paths in the network, and only the packets that arrive at the destination first are retained, thereby achieving seamless redundancy.

[0040] When using FRER to achieve redundancy, the prerequisite is that there is a redundant path for data transmission in the network - an alternative path. This puts forward requirements for the form of network topology: a loop must be formed in the network so that the data on the Talker end can reach the Listener end along different paths. FRER is used in Ethernet topologies that have high reliability requirements for data transmission and the network can provide redundant paths for data transmission.

[0041] In the existing technology, the IEEE 802.1CB protocol is used to achieve redundant transmission of data in the vehicle Ethernet network, and is suitable for applications that require high reliability of data transmission. With the development of smart driving cars, more and more sensor data is directly used for vehicle control. This type of data stream is strongly related to functional safety, and the reliability requirements of data transmission need to be considered. Using Ethernet to transmit sensor data streams and cooperating with the TSN protocol to achieve data transmission reliability requirements, communication QoS and security, can better meet the data transmission needs of smart driving cars.

[0042] In the prior art, according to the TSN flow identification method of TSN standard IEEE802.1CB and IEEE802.1CBdb, four flow identification functions are defined, including empty flow identification, source media access control address (Media Access Control Address, MAC) / virtual local area network (Virtual Local Area Network, VLAN) flow identification, destination MAC / VLAN flow identification, Internet Protocol (Internet Protocol, IP) flow identification, and mask matching flow identification. As shown in Table 1 below:

[0043] Table 1

[0044]

[0045]

[0046] The four flow identification methods in Table 1 above mainly use the source MAC address, destination MAC address, VLANID and other combinations in the Ethernet message to perform TSN flow identification.

[0047] However, the inventors found that the above four flow identification methods have the following defects:

[0048] The existing flow identification scheme does not identify the criticality (priority) of data, which will cause data flows with lower criticality to be transmitted through frame redundancy backup, resulting in a large amount of bandwidth being wasted in the Ethernet network.

[0049] Based on the above research findings, the embodiments of the present application provide a data transmission method, device, equipment, storage medium and vehicle to solve the above technical problems.

[0050] The following first introduces the data transmission method provided in the embodiment of the present application.

[0051] Figure 1 The following is a flow chart of a data transmission method provided in an embodiment of the present application. Figure 1As shown, the method is applied to a first node device and may include the following steps S101 to S103:

[0052] S101, obtaining identification information of a data frame to be processed, where the identification information is used to indicate a data type and a priority of the data frame to be processed.

[0053] S102, when the data type of the data frame to be processed is a preset data type and the priority of the data frame to be processed is higher than the preset priority, perform redundancy backup processing on the data frame to be processed to obtain N target data frames.

[0054] S103, sending N target data frames.

[0055] The specific implementation of the above steps will be described in detail below.

[0056] In an embodiment of the present application, whether to perform redundant backup processing on the data frame to be processed can be determined based on the data type and priority of the data frame to be processed. Redundant backup processing can be performed on data frames with a priority higher than a preset priority, thereby saving network link bandwidth and improving network bandwidth utilization.

[0057] In S101, identification information of a data frame to be processed is obtained, where the identification information is used to indicate the data type and priority of the data frame to be processed.

[0058] The data type of the data frame, namely the attribute information of the data frame, includes at least one of the following: the network type of the data frame, the data source (source address, the last transmission node), the data content, etc.

[0059] For example, the obstacle data in the road condition information collected by the sensor of vehicle A needs to be uploaded to the server. Since the transmission of road condition information requires immediacy, vehicle A transmits it through the vehicle terminal TSN network. Therefore, assuming that the data frame to be processed is an obstacle distance data frame, the data type of the data frame to be processed can be determined to be TSN network data (network type), road condition information data (data content) and data transmitted by the on-board terminal of vehicle A (data source) through the identification information in the obstacle distance data frame, so as to facilitate the subsequent judgment of whether to perform redundant backup processing based on the data type.

[0060] Specifically, when a data frame to be processed is received, the data frame to be processed may be identified to obtain identification information in the data frame to be processed.

[0061] In one example, based on a time-sensitive network, when generating a data frame, the data transmitter may insert 4 bytes into a standard Ethernet frame to define its characteristics, which may include the following identification information:

[0062] Label protocol identification: Network type identification, indicating that this is a TSN network, marked 0X8100;

[0063] The priority code point (PCP) consists of a 3-bit code;

[0064] Canonical Format Indicator (CFI): A 1-bit field. If the value of this field is 1, the MAC address is in a non-standard format; if it is 0, it is in a standard format; in Ethernet switches, it usually defaults to 0.

[0065] VLAN Identifier (VID): A 12-bit field that specifies which VLAN a frame belongs to. When the value is 0, it means that the frame does not belong to any VLAN; in this case, the 802.1q tag represents the priority. The 12-bit values ​​0x000 and 0xFFF are reserved values, and all other values ​​can be used as identifiers for a total of 4094 VLANs.

[0066] Therefore, the data type and priority of the data frame to be processed can be determined by the above identification information.

[0067] In some embodiments, the above S101 may include:

[0068] Acquire a TAG field of a data frame to be processed, wherein the TAG field includes a data type tag and a priority tag;

[0069] According to the TAG field, the data type and priority of the data frame to be processed are determined.

[0070] Specifically, since the TSN data frame does not explicitly carry flow identification information, the node device can identify the TAG field in the data frame when receiving the data frame, thereby determining the data type and priority of the data frame to be processed.

[0071] In some embodiments, the above-mentioned determination that the data type of the to-be-processed data frame is a preset data type and the priority of the to-be-processed data frame is higher than the preset priority includes the following steps:

[0072] Matching the data type of the data frame to be processed with the preset data type to obtain a matching result;

[0073] When the matching result is consistent, determining the data type of the data frame to be processed is a preset data type;

[0074] Comparing the first value of the priority of the data frame to be processed with the second value of the preset priority to obtain a comparison result;

[0075] When the comparison result is that the first value is greater than the second value, it is determined that the priority of the data frame to be processed is higher than the preset priority.

[0076] The preset data type is the data type of the data frame that needs to be processed for redundant backup. The priority value refers to the level value corresponding to each priority. For example, if the priority is level 8, the priority value is 8.

[0077] Specifically, the data type of the data frame to be processed is matched with the preset data type. If the matching result is consistent, it means that the data type of the data frame to be processed is the preset data type; the numerical value (first numerical value) corresponding to the priority of the data frame to be processed is compared with the numerical value (second numerical value) corresponding to the preset priority, that is, the numerical values ​​are compared. If the first numerical value is greater than the second numerical value, it means that the priority of the data frame to be processed is higher than the preset priority.

[0078] In some embodiments, a query table may be constructed according to a preset data type and a preset priority. After the data type and priority of the data frame to be processed are obtained, the preset data type and the preset priority may be obtained from the query table.

[0079] In this embodiment, whether the data to be processed meets the redundant backup condition is determined based on the data type and priority of the data to be processed.

[0080] In S102, when the data type of the data frame to be processed is a preset data type and the priority of the data frame to be processed is higher than the preset priority, redundant backup processing is performed on the data frame to obtain N target data frames.

[0081] In one example, if the Null Stream identification method is used, S102 can be illustrated by the Null Stream identification method, and a query table is pre-set, in which the data type and priority of the data frame that needs to be processed for redundant backup are recorded; then the three fields of destination_address, vlan_identifier, and priority in the data frame to be processed are identified, and the three fields are used as input for the table lookup. If the input matches the table entry in the table lookup unit, it is considered to be a data stream that needs to be processed for redundant backup. If it does not match, it is considered that redundant backup processing is not necessary, and the 802.1CB unit is bypassed.

[0082] In some embodiments, the above S102 may specifically include:

[0083] Inserting redundant label information into the data frame to be processed to obtain a first data frame, wherein the redundant label information is data processing information of the data frame to be processed;

[0084] The first data frame is copied to obtain N target data frames.

[0085] Specifically, after identifying the data type and priority of the data frame to be processed, when the data type of the data frame to be processed is the preset data type and the priority of the data frame to be processed is higher than the preset priority, it indicates that the data frame to be processed needs to be processed for redundant backup. Since the TSN frame does not display the carried stream identification information, but when the node device receives the data frame, a specific stream identification function generates a local Stream Id for it as a stream identifier for local switching and other processing, that is, when the data frame to be processed is processed for redundant backup, a redundant label can be inserted in the data frame to be processed to identify the data frame to be processed as the first data frame obtained by processing at the current node device; then, the first data frame is copied to N identical data frames.

[0086] In some embodiments, the inserting redundant label information into the data frame to be processed to obtain the first data frame includes:

[0087] Create redundant label information;

[0088] The redundant label information is inserted into the frame header of the data frame to be processed to obtain the first data frame, so that the next communication node determines whether to store or discard the first data frame by extracting the redundant label information.

[0089] Here, the data frame includes a frame header, a frame trailer and a data part. The frame header usually includes data such as the source address information, destination address information and protocol information of the data frame. Therefore, inserting the redundant label information into the frame header position can enable the next communication node to receive the target data frame, obtain the redundant label information when reading the frame header data of the target data frame, and determine whether to store or discard the first data frame, i.e., the target data frame, based on the redundant label information.

[0090] Specifically, when performing redundant backup processing on the data frame to be processed, a redundant label can be inserted into the frame header position of the data frame to be processed to identify the data frame to be processed as the first data frame obtained by processing in the current communication node device; then, the first data frame is copied into N identical data frames.

[0091] In S103, N target data frames are sent.

[0092] Specifically, redundant processing is performed on the data frame to be processed, that is, N target data frames are copied and then sent, so that when one target data frame fails to be transmitted, other target data frames are available as backup.

[0093] In some embodiments, sending N target data frames may include:

[0094] Determine N communication links for sending target data frames, and any two communication links among the N communication links form a ring network structure;

[0095] The N target data frames are sent to the next communication node through N communication links respectively.

[0096] Here, N communication links from the current node device to the next communication node device can be determined through the path control and reservation protocol (802.1Qca), where N is an integer greater than 1.

[0097] It should be noted that the basis for realizing frame redundant backup transmission based on time-sensitive network is that there must be at least two communication links between the sending node device and the receiving node device. Any two communication links form a ring network structure. Based on the ring network structure, the stability of data transmission can be ensured. Even if the link is damaged at one end of the ring network, the data frame to be processed can be transmitted normally to the next node device.

[0098] In one example, N target data frames are sent through N communication links respectively, which may include:

[0099] Based on N communication links, the first data frame is copied to obtain N target data frames, and the VLAN field of each target data frame can be set to the next node device in the corresponding communication link.

[0100] In some embodiments, the redundant label information is used to determine whether to store or discard the target data frame based on the redundant label information after the next node device receives the target data frame.

[0101] Specifically, after the above S103, after receiving the target data frame transmitted by any communication link, the next node device can determine whether it has received the same data frame as the target data frame through the redundant label information in the target data frame. If so, the target data frame is discarded; if not, the target data frame is stored.

[0102] In the embodiment of the present application, when the link converges, for example, at the next node device, data verification and comparison can be performed based on the redundant label information on the data frame, and duplicate data frames can be identified and eliminated to ensure the uniqueness of the data frame. It can ensure that the node device only receives different data frames and discards the data frames that have been received, thereby ensuring the reliability of data frame transmission in the ring network.

[0103] In some embodiments, after receiving the target data frame, redundant tag information of the target data frame is obtained;

[0104] Find data frames matching the redundant tag information;

[0105] In the case where a data frame matching the redundant label information is stored, the target data frame is discarded.

[0106] Specifically, after the next device receives the target data frame, it obtains the redundant label information of the target data frame, and then searches in the next device whether a data frame matching the redundant label information has been stored. If a data frame matching the redundant label information is found, it means that the second node device has received the same data frame as the target data frame, that is, the target data frame is a duplicate data frame, so the target data frame can be discarded; if no data frame matching the redundant label information is found, it means that the next device has not received the same data frame as the target data frame, and the target data frame is stored for subsequent processing.

[0107] In this embodiment, the redundant label information of the received target data frame is obtained, and by searching whether a data frame matching the redundant label information is stored, it is determined whether the received target data frame is a duplicate data frame, and whether the received data frame is a duplicate data frame can be accurately identified, and then the duplicate data frame is eliminated to ensure the uniqueness of the data frame. It is ensured that only different data frames are received and the received data frames are discarded, thereby ensuring the reliability of data frame transmission in the ring network.

[0108] In order to facilitate the understanding of the data transmission method provided in this embodiment, a practical application of the above data transmission method is provided here for illustration, and specifically refer to the following example:

[0109] This example proposes a data transmission method. When a data frame arrives at a Tsn network device (i.e., a first node device), it is identified by a "new flow identification scheme". If the filtering rule is matched, the data flow will enter the 802.1CB unit for redundant backup transmission processing. The data flow that does not match the filtering rule will not be processed by the 802.1CB unit.

[0110] The new flow identification scheme is shown in Table 2 below. The table entry information is as follows. Priority information is added to the identification items in the flow identification method of the prior art:

[0111] Table 2

[0112]

[0113]

[0114] According to the corresponding identification items of the four schemes in the new flow identification scheme in Table 2, the data stream (including multiple data frames to be processed) is extracted and input into the new scheme flow identification table lookup unit. The table items in the new scheme flow identification table lookup unit can be loaded statically or dynamically. If the input field information matches the table items in the lookup unit, a match indication (true) is output, and if not, a mismatch indication (false) is output. Only the data stream with the output match indication is processed by the 802.1CB unit for redundant backup transmission, while the data stream with the output mismatch indication bypasses the 802.1CB unit, thereby saving network link bandwidth, thereby improving the network bandwidth utilization rate of key data streams in the network.

[0115] In this embodiment, the criticality (priority) of the data flow can be used as the decision condition for 802.1CB processing, and redundant backup processing can be performed on the data flow with higher high reliability requirements, releasing the network bandwidth occupied by the data flow with low reliability requirements, thereby improving the bandwidth utilization of the data flow with high reliability requirements.

[0116] Based on the data transmission method provided in the above embodiment, the present application also provides a specific implementation of the data transmission device. Please refer to the following embodiment.

[0117] See first Figure 2 The data transmission device 200 provided in the embodiment of the present application may include the following modules:

[0118] A first acquisition module 201 is used to acquire identification information of a data frame to be processed, where the identification information is used to indicate a data type and a priority of the data frame to be processed;

[0119] The backup module 202 is used to determine that the data type of the data frame to be processed is a preset data type and the priority of the data frame to be processed is higher than the preset priority, and perform redundant backup processing on the data frame to be processed to obtain N target data frames, where N is a positive integer greater than 1;

[0120] The transmission module 203 is used to send the N target data frames.

[0121] In some embodiments, the acquisition module 201 may include:

[0122] The acquisition submodule is used to obtain the TAG field of the data frame to be processed;

[0123] The determination submodule is used to determine the data type and priority of the data frame to be processed according to the TAG field.

[0124] In some embodiments, the backup module 202 includes:

[0125] An inserting unit, configured to insert redundant label information into the data frame to be processed to obtain a first data frame, wherein the redundant label information is data processing information of the data frame to be processed;

[0126] The copying unit is used to copy the first data frame to obtain N target data frames.

[0127] In some embodiments, the above-mentioned insertion unit is specifically used for:

[0128] Create redundant label information;

[0129] The redundant label information is inserted into the frame header of the data frame to be processed to obtain the first data frame, so that the next communication node determines whether to store or discard the first data frame by extracting the redundant label information.

[0130] In some embodiments, the transmission module 203 is specifically used to:

[0131] Determine N communication links for sending the target data frame, any two communication links among the N communication links form a ring network structure;

[0132] The N target data frames are respectively sent to the next communication node through the N communication links.

[0133] The above-mentioned embodiment of the present application can obtain the identification information of the data frame to be processed, and the identification information is used to indicate the data type and priority of the data frame to be processed; when the data type of the data frame to be processed is a preset data type and the priority of the data frame to be processed is higher than the preset priority, the data frame to be processed is subjected to redundant backup processing to obtain N target data frames; and N target data frames are sent. Whether to perform redundant backup processing on the data frame to be processed can be determined according to the data type and priority of the data frame to be processed, and redundant backup processing is performed on the data frame with a priority higher than the preset priority, thereby saving network link bandwidth and improving network bandwidth utilization.

[0134] Figure 2 Each module / unit in the device shown has the function of realizing Figure 1 The functions of each step in the process can achieve the corresponding technical effects, which will not be described in detail here for the sake of brevity.

[0135] Based on the data transmission device provided in the above embodiment, the present application also provides a vehicle accordingly, the vehicle includes: the above data transmission device, the data transmission device is used to implement the data transmission method provided in the above embodiment.

[0136] Based on the data transmission method provided in the above embodiment, the present application also provides a specific implementation of the electronic device. Please refer to the following embodiment.

[0137] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0138] The electronic device may include a processor 301 and a memory 302 storing computer program instructions.

[0139] Specifically, the processor 301 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 application.

[0140] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 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 one example, the memory 302 may include a removable or non-removable (or fixed) medium, or the memory 402 is a non-volatile solid-state memory. The memory 302 may be inside or outside the integrated gateway disaster recovery device.

[0141] In one example, the memory 302 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0142] The memory 302 may include a read-only memory (ROM), a random access memory (RAM), a magnetic 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., a memory device) 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 with reference to the method according to any embodiment of the present disclosure.

[0143] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement Figure 1The method / steps S101 to S104 in the embodiment shown in the figure are achieved Figure 1 The corresponding technical effects achieved by executing the methods / steps in the example shown are not repeated here for the sake of brevity.

[0144] In one example, the electronic device may further include a communication interface 303 and a bus 310. Figure 3 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 310 and communicate with each other.

[0145] The communication interface 303 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0146] Bus 310 includes hardware, software or both, and the components of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, front side bus (Front Side Bus, FSB), Hyper Transport (Hyper Transport, HT) interconnection, industry standard architecture (Industry 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, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 310 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0147] Based on the data processing device provided in the above embodiment, the present application also provides a vehicle accordingly, the vehicle includes: the above data processing device, the data processing device is used to implement the data transmission method provided in the above embodiment.

[0148] In addition, in combination with the data transmission method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the data transmission methods in the above embodiment is implemented.

[0149] In summary, the data transmission method, device, vehicle equipment and computer storage medium of the embodiments of the present application can obtain the identification information of the data frame to be processed, and the identification information is used to indicate the data type and priority of the data frame to be processed; when the data type of the data frame to be processed is a preset data type and the priority of the data frame to be processed is higher than the preset priority, the data frame to be processed is subjected to redundant backup processing to obtain N target data frames; and N target data frames are sent. Whether to perform redundant backup processing on the data frame to be processed can be determined based on the data type and priority of the data frame to be processed, and redundant backup processing can be performed on the data frame with a priority higher than the preset priority, thereby saving network link bandwidth and improving network bandwidth utilization.

[0150] It should be clear that the present application 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 application 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 application.

[0151] 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 (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments 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 communication link by a data signal carried in a carrier. "Machine-readable medium" may 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 (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

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

[0153] 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 of the present application. It should be understood that each box in the flow chart and / or the block diagram and the combination of each 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 transmission device to produce a machine so that these instructions executed by the processor of the computer or other programmable data transmission device enable the realization of the function / action specified in one or more 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 box in the block diagram and / or the flow chart and the combination of the 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.

[0154] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application 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 in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A data transmission method, It is characterized in that The method comprises: Acquire identification information of a data frame to be processed, where the identification information is used to indicate a data type and a priority of the data frame to be processed; Determining that the data type of the to-be-processed data frame is a preset data type and the priority of the to-be-processed data frame is higher than the preset priority, performing redundant backup processing on the to-be-processed data frame to obtain N target data frames, where N is a positive integer greater than 1; The N target data frames are sent.

2. The method according to claim 1, It is characterized in that The obtaining identification information of the data frame to be processed includes: Acquire a TAG field of the data frame to be processed, wherein the TAG field includes a data type tag and a priority tag; Parse the TAG field to determine the data type and priority of the data frame to be processed.

3. The method according to claim 1, It is characterized in that The performing redundant backup processing on the data frame to be processed to obtain N target data frames includes: Inserting redundant label information into the data frame to be processed to obtain a first data frame, wherein the redundant label information is data processing information of the data frame to be processed; The first data frame is copied to obtain N target data frames.

4. The method according to claim 3, It is characterized in that Inserting redundant label information into the data frame to be processed to obtain a first data frame includes: Create redundant label information; The redundant label information is inserted into the frame header of the data frame to be processed to obtain the first data frame, so that the next communication node determines whether to store or discard the first data frame by extracting the redundant label information.

5. The method according to claim 1, It is characterized in that The sending of the N target data frames comprises: Determine N communication links for sending the target data frame, any two communication links among the N communication links form a ring network structure; The N target data frames are respectively sent to the next communication node through the N communication links.

6. A data transmission device, It is characterized in that The device comprises: A first acquisition module, used to acquire identification information of a data frame to be processed, wherein the identification information is used to indicate a data type and a priority of the data frame to be processed; A backup module, used for performing redundant backup processing on the data frame to be processed to obtain N target data frames, where N is a positive integer greater than 1, when the data type of the data frame to be processed is a preset data type and the priority of the data frame to be processed is higher than the preset priority; A transmission module is used to send the N target data frames.

7. A data processing device, It is characterized in that The device comprises: a processor and a memory storing program instructions; When the processor executes the program instructions, the method according to any one of claims 1 to 6 is implemented.

8. A storage medium, It is characterized in that The storage medium stores computer program instructions, which, when executed by a processor, implement the method according to any one of claims 1 to 6.

9. A computer program product, It is characterized in that The computer program product comprises computer program instructions, and when the computer program instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A vehicle, It is characterized in that The vehicle comprises: The data transmission device according to claim 6 or the data processing device according to claim 7.