Data transmission method and device, equipment, storage medium and vehicle

By selecting the appropriate transmission mode and physical channel in the Internet of Vehicles system and dynamically adjusting the link, the problem of poor adaptability of data transmission is solved, and more efficient data transmission and resource utilization is achieved.

CN120238962APending Publication Date: 2025-07-01BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311867405.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-29
Publication Date
2025-07-01

AI Technical Summary

Technical Problem

The existing Internet of Vehicles systems lack flexibility in data transmission and cannot adjust link selection according to the characteristics of different data, resulting in poor adaptability.

Method used

By obtaining the data transmission requirements for the data to be transmitted, selecting the appropriate transmission mode (such as high reliability mode or load balancing mode), and determining the target physical channel from the virtual channel, using multiple physical channels for data transmission, and dynamically adjusting the link to meet the needs of different communication scenarios.

Benefits of technology

It improves the adaptability and efficiency of data transmission, optimizes the utilization of communication resources, reduces the data loss rate and improves the transmission rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238962A_ABST
    Figure CN120238962A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method and device, equipment, a storage medium and a vehicle. The method comprises the following steps: acquiring to-be-transmitted data and a data transmission requirement of the to-be-transmitted data; a target transmission mode corresponding to the data transmission requirement of the to-be-transmitted data is selected from the multiple preset transmission modes, a target physical channel for transmitting the to-be-transmitted data is determined from virtual channels based on the target transmission mode, and the virtual channels comprise multiple physical channels supported by the device and used for communicating with the outside; and distributing the to-be-transmitted data to a target physical channel corresponding to the target transmission mode, and transmitting the to-be-transmitted data through the target physical channel. According to the embodiment of the invention, the resource cost of communication can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technologies, and particularly relates to a data transmission method, apparatus, device, storage medium, and vehicle. Background Art

[0002] With the development of communication technologies, terminal devices that can now perform mobile communications usually have multiple physical network interfaces and support different access technologies for accessing different communication networks. For example, a laptop terminal can support access to ETH (Ethernet), WIFI (Wireless Fidelity), and 5G (5th Generation Mobile Networks), a smart phone can support access to WIFI and 5G simultaneously, and a smart in-vehicle unit can also support access to WIFI, 4G (4th Generation Mobile Networks), and 5G dual-mode networks (i.e., dual SIM and dual standby).

[0003] However, although smart in-vehicle units can already support access to multiple communication links (including communication links such as 4G / 5G cellular networks and WIFI), most of the current vehicle networking systems adopt the following link selection logic: when the connection condition of the WIFI link is met, vehicle-to-vehicle communication connections are only achieved through the WIFI link; when the connection condition of the WIFI link is not met, a qualified cellular network is selected to achieve vehicle-to-vehicle communication connections. That is, only a set of fixed logic is used to select a single link for communication connection in the vehicle networking system.

[0004] Since different data may have different requirements for network performance and quality, and the above link selection method cannot flexibly adjust link selection according to the characteristics of the data to be transmitted, it cannot adapt to diverse communication scenarios, resulting in poor adaptability of data transmission. Summary of the Invention

[0005] Embodiments of this application provide a data transmission method, apparatus, device, storage medium, and vehicle, which can solve the problem of poor adaptability of existing data transmission.

[0006] In a first aspect, embodiments of this application provide a data transmission method, which includes:

[0007] Obtain data to be transmitted and the data transmission requirements of the data to be transmitted;

[0008] Select a target transmission mode corresponding to the data transmission requirement of the data to be transmitted from multiple preset transmission modes, and determine a target physical channel for transmitting the data to be transmitted from the virtual channels based on the target transmission mode, where the virtual channels include multiple physical channels supported by the device for external communication;

[0009] Allocate the data to be transmitted to the target physical channel corresponding to the target transmission mode, and transmit the data to be transmitted through the target physical channel.

[0010] In some embodiments, the target transmission mode at least includes a high-reliability mode and a load-balancing mode. The high-reliability mode is used to transmit data to be transmitted with a high-reliability data transmission requirement, and the load-balancing mode is used to transmit data to be transmitted with a high transmission rate data transmission requirement.

[0011] In some embodiments, the determining a target physical channel for transmitting the data to be transmitted from the virtual channels based on the target transmission mode includes:

[0012] If the target transmission mode is the high-reliability mode, obtain the channel quality corresponding to each physical channel in the virtual channels, and determine the physical channels with channel quality greater than the quality threshold as the target physical channels;

[0013] If the target transmission mode is the load-balancing mode, obtain the channel bandwidth corresponding to each physical channel in the virtual channels, and determine the physical channels with channel bandwidth not less than the bandwidth threshold as the target physical channels.

[0014] In some embodiments, the allocating the data to be transmitted to the target physical channel corresponding to the target transmission mode includes:

[0015] When the target transmission mode is the high-reliability mode, obtain N target physical channels corresponding to the high-reliability mode, where N is a positive integer greater than 1;

[0016] Copy the data to be transmitted to obtain N copies of the same data to be transmitted;

[0017] Allocate each copy of the N copies of the data to be transmitted to one of the N target physical channels, where each of the N target physical channels is allocated one copy of the data to be transmitted.

[0018] In some embodiments, the allocating the data to be transmitted to the target physical channel corresponding to the target transmission mode includes:

[0019] When the target transmission mode is the load balancing mode, obtain P target physical channels corresponding to the load balancing mode, where P is a positive integer greater than 1;

[0020] Perform data segmentation on the data to be transmitted to obtain P sub-data to be transmitted;

[0021] Allocate each of the P sub-data to be transmitted to one of the P target physical channels, where each of the P target physical channels is allocated one of the P sub-data to be transmitted, and the P sub-data to be transmitted allocated to different target physical channels are different.

[0022] In some embodiments, the performing data segmentation on the data to be transmitted to obtain P sub-data to be transmitted includes:

[0023] Perform average segmentation on the data to be transmitted according to the data volume of the data to be transmitted to obtain the P sub-data to be transmitted with the same data volume.

[0024] In some embodiments, the performing data segmentation on the data to be transmitted to obtain P sub-data to be transmitted includes:

[0025] Perform data segmentation on the data to be transmitted based on the data characteristics of the data to be transmitted to obtain P sub-data to be transmitted with different data categories;

[0026] The allocating each of the P sub-data to be transmitted to one of the P target physical channels includes:

[0027] Obtain the transmission priorities of the data categories in the P data categories, and the channel qualities of the target physical channels in the P target physical channels;

[0028] Sort the P sub-data to be transmitted according to the transmission priority and a preset sorting rule, sort the P target physical channels according to the channel quality and the preset sorting rule, and allocate each sub-data to be transmitted to the target physical channel with the same sorting position.

[0029] In some embodiments, the performing data segmentation on the data to be transmitted to obtain P sub-data to be transmitted includes:

[0030] Obtain the channel bandwidths of the physical channels in the P target physical channels to obtain P channel bandwidths;

[0031] Determine the bandwidth ratio between the P channel bandwidths;

[0032] Perform data splitting on the data to be transmitted based on the bandwidth ratio to obtain P sub-data to be transmitted with a data volume ratio matching the bandwidth ratio;

[0033] The step of allocating each of the P sub-data to be transmitted to one of the P target physical channels includes:

[0034] For each sub-data to be transmitted, based on the data volume ratio of each sub-data to be transmitted, allocate the sub-data to be transmitted to a target physical channel whose bandwidth ratio matches the data volume ratio corresponding to the sub-data to be transmitted.

[0035] In some embodiments, after selecting the target transmission mode corresponding to the data transmission requirement of the data to be transmitted, it includes:

[0036] Obtain the channel bandwidths of the multiple physical channels in the virtual channel;

[0037] Determine the physical channels with channel bandwidths less than the bandwidth threshold among the multiple physical channels as standby channels;

[0038] The method further includes:

[0039] In the case of detecting that there is a fault in the channel or port corresponding to the target physical channel, determine the target physical channel as a faulty physical channel;

[0040] Use the standby channel to replace the faulty physical channel.

[0041] In a second aspect, an embodiment of the present application provides a data transmission device, which includes:

[0042] An acquisition module, configured to acquire data to be transmitted and the data transmission requirement of the data to be transmitted;

[0043] A selection module, configured to select a target transmission mode corresponding to the data transmission requirement of the data to be transmitted from multiple preset transmission modes, and determine a target physical channel for transmitting the data to be transmitted from the virtual channel, where the virtual channel includes multiple physical channels supported by the device for external communication;

[0044] An allocation module, configured to allocate the data to be transmitted to the target physical channel corresponding to the target transmission mode, and transmit the data to be transmitted through the target physical channel.

[0045] In a third aspect, an embodiment of the present application provides a data transmission device, which includes: a processor and a memory storing computer program instructions;

[0046] When the processor executes the computer program instructions, the above data transmission method is implemented.

[0047] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the above data transmission method is implemented.

[0048] In a fifth aspect, an embodiment of the present application provides a vehicle, which includes computer program instructions. When the computer program instructions are executed by a processor, the above data transmission method is implemented.

[0049] In the present application, by obtaining the data to be transmitted and selecting the corresponding target transmission mode based on the data transmission requirements of the data to be transmitted, then selecting the target physical channel for transmission based on the target transmission mode, and allocating the data to be transmitted to the target physical channel. In this way, compared with the existing method of using a single link for communication, it is possible to select a suitable data transmission method and data transmission channel based on the different data characteristics, and perform data transmission in parallel using the selected data transmission channel, so as to flexibly select and adjust the link between multiple physical channels in different communication scenarios, make better use of communication resources, and improve the adaptability of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments of the present application. Obviously, the following described drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0051] Figure 1 is a flowchart of the data transmission method provided by an embodiment of the present application;

[0052] Figure 2 is a schematic structural diagram of the data transmission device provided by an embodiment of the present application;

[0053] Figure 3 is a schematic hardware structure diagram of the data transmission device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0054] The features and exemplary embodiments of various aspects of the present application will be described in detail below. To make the objectives, technical solutions, and advantages of the present application more clear, 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 and not to limit the present application. For those skilled in the art, the present application can be implemented without some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by showing examples of the present application.

[0055] It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device including a series of elements not only includes those elements but also includes other elements that are not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without further limitation, an element defined by the statement "including..." does not exclude the existence of additional identical elements in the process, method, article, or device including the element.

[0056] It should be noted that, without conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The embodiments will be described in detail below in conjunction with the accompanying drawings.

[0057] Specifically, to solve the problems of the prior art, the embodiments of the present application provide a data transmission method, device, equipment, storage medium, and vehicle. First, the data transmission method provided by the embodiments of the present application will be introduced below.

[0058] Figure 1 The flowchart of the data transmission method provided by an embodiment of the present application is shown. The method includes the following steps:

[0059] S110, obtain the data to be transmitted and the data transmission requirements of the data to be transmitted;

[0060] In this embodiment, the data to be transmitted is the data that needs to be transmitted from the current device to an external device. Based on the different attribute characteristics of different types of data to be transmitted, their corresponding data transmission requirements are also different.

[0061] Exemplarily, the current device can be a vehicle, the external device can be a cloud server communicatively connected to the vehicle, and the data to be transmitted can be aggregated application data from multiple application programs in the vehicle to obtain aggregated data.

[0062] For example, if the data to be transmitted is relatively important, then the reliability required for this type of data to be transmitted is relatively high; for some data to be transmitted, the data volume is large, or the requirement for real-time performance is high, then this type of data to be transmitted needs to be transmitted at a relatively fast speed.

[0063] S120, select the target transmission mode corresponding to the data transmission requirement of the data to be transmitted from multiple preset transmission modes, and determine the target physical channel for transmitting the data to be transmitted from the virtual channels based on the target transmission mode, where the virtual channels include multiple physical channels supported by the device for external communication;

[0064] In this embodiment, the virtual channel is used to connect the current device and an external device to implement data exchange between the current device and the external device. The virtual channel is aggregated by multiple physical channels, so data can be transmitted simultaneously in multiple physical channels.

[0065] Multiple transmission modes can be preset in the current device. When the data transmission requirements of the data to be transmitted are different, different transmission modes are selected as the target transmission mode for data transmission. In addition, the attribute characteristics of different physical channels in the virtual channel are different, so the target physical channels corresponding to different target transmission modes are also different.

[0066] After the target transmission mode is selected, the target physical channel corresponding to the target transmission mode can be further selected. Then, when the data to be transmitted is allocated to multiple target physical channels in the virtual channel, the data to be transmitted can be sent to the external device simultaneously through the multiple target physical channels.

[0067] As an optional embodiment, the target transmission mode at least includes a high-reliability mode and a load-balancing mode. The high-reliability mode is used to transmit data to be transmitted with high-reliability data transmission requirements, and the load-balancing mode is used to transmit data to be transmitted with high-transmission-rate data transmission requirements.

[0068] As an optional embodiment, the determining the target physical channel for transmitting the data to be transmitted from the virtual channel based on the target transmission mode includes:

[0069] If the target transmission mode is the high-reliability mode, obtain the channel quality corresponding to each physical channel in the virtual channel, and determine the physical channels with channel quality greater than the quality threshold as the target physical channels;

[0070] If the target transmission mode is the load-balancing mode, obtain the channel bandwidth corresponding to each physical channel in the virtual channel, and determine the physical channels with channel bandwidth not less than the bandwidth threshold as the target physical channels.

[0071] In this embodiment, the target transmission modes include the high-reliability mode and the load-balancing mode. The high-reliability mode is commonly used in scenarios with high requirements for fault tolerance and reliability; while the load-balancing mode focuses on system performance and resource optimization. Therefore, when the reliability required for the data to be transmitted is high, the high-reliability mode can be applied. When the data to be transmitted is required to be transmitted at a relatively fast speed, the load-balancing mode can be adopted.

[0072] The channel quality refers to the stability and reliability of data transmission over the channel during the communication process. The channel bandwidth refers to the rate or capacity at which the channel can transmit data. Therefore, in the high-reliability mode, a physical channel with relatively high channel quality can be selected as the target physical channel, and in the load-balancing mode, a physical channel with a larger bandwidth can be selected as the target physical channel.

[0073] Specifically, in the load-balancing mode, a physical channel with a channel bandwidth not less than the bandwidth threshold can be determined as the target physical channel, and a physical channel with a channel bandwidth less than the bandwidth threshold can be determined as the backup physical channel; similarly, in the high-reliability mode, a physical channel with a channel quality greater than the quality threshold can be determined as the target physical channel, and a physical channel with a channel quality less than or equal to the quality threshold can be determined as the backup physical channel.

[0074] In this way, the stability of data transmission in the high-reliability mode and the rate of data transmission in the load-balancing mode can be ensured.

[0075] S130, allocate the data to be transmitted to the target physical channel corresponding to the target transmission mode, and transmit the data to be transmitted through the target physical channel.

[0076] In this embodiment, not only are the target physical channels corresponding to different target transmission modes different, but also the allocation methods for allocating the data to be transmitted to each target physical channel are different.

[0077] In this application, by obtaining the data to be transmitted and selecting the corresponding target transmission mode based on the data transmission requirements of the data to be transmitted, then selecting the target physical channel for transmission based on the target transmission mode, and allocating the data to be transmitted to the target physical channel. In this way, compared with the existing method of using a single link for communication, it is possible to select appropriate data transmission methods and data transmission channels based on different data characteristics, and use the selected data transmission channels to perform data transmission in parallel, so as to flexibly select and adjust the links between multiple physical channels in different communication scenarios, make better use of communication resources, and improve the adaptability of data transmission.

[0078] As an optional embodiment, the target transmission mode at least includes a high-reliability mode and a load-balancing mode. The high-reliability mode is used to transmit the data to be transmitted with high-reliability data transmission requirements, and the load-balancing mode is used to transmit the data to be transmitted with high data transmission rate requirements.

[0079] As an optional embodiment, the allocating the data to be transmitted to the target physical channel corresponding to the target transmission mode includes:

[0080] When the target transmission mode is the high-reliability mode, obtain N target physical channels corresponding to the high-reliability mode, where N is a positive integer greater than 1;

[0081] Copy the data to be transmitted to obtain N identical copies of the data to be transmitted;

[0082] Allocate each copy of the N copies of the data to be transmitted to one of the N target physical channels, where each of the N target physical channels is allocated one copy of the data to be transmitted.

[0083] In this embodiment, in the high-reliability mode, a redundant data transmission method can be adopted to ensure that the same data to be transmitted is transmitted simultaneously through multiple target physical channels to reduce the data packet loss rate. If data is lost on one target physical channel, the system can use the redundant data on other target physical channels to recover the lost part and improve the data reliability.

[0084] After the receiving end (such as an aggregation server that establishes communication with the vehicle through a virtual channel, the aggregation server is used to receive aggregated data and send the aggregated data to the application server corresponding to the data characteristics according to the data characteristics in the aggregated data, so that the application server can respond to the application program in the vehicle) receives the data transmitted by multiple physical channels, it can also detect data conflicts through a collision elimination algorithm, detect and correct conflicts or redundancies of the same content to restore the correct data to be transmitted.

[0085] In this way, the data to be transmitted is transmitted multiple times, reducing the possibility of data loss, increasing the data redundancy, and reducing the data packet loss rate.

[0086] As an optional embodiment, the allocating the data to be transmitted to the target physical channel corresponding to the target transmission mode includes:

[0087] When the target transmission mode is the load-balancing mode, obtain P target physical channels corresponding to the load-balancing mode, where P is a positive integer greater than 1;

[0088] Perform data segmentation on the data to be transmitted to obtain P sub-data to be transmitted;

[0089] Allocate each of the P sub-data to be transmitted among the P target physical channels, where each of the P target physical channels is allocated one of the sub-data to be transmitted, and the sub-data to be transmitted allocated to different target physical channels are different.

[0090] In this embodiment, in the load balancing mode, the data to be transmitted needs to be transmitted at a relatively fast speed, or the amount of data to be transmitted is large.

[0091] Load balancing is a strategy for distributing data traffic. By transmitting data in a load balancing manner, it can ensure that each physical channel can evenly bear the data load. In channel aggregation, the system can reasonably allocate traffic data according to the available bandwidth of each physical channel. This can prevent a certain channel from being overloaded while maintaining the utilization balance of each channel to improve the overall performance.

[0092] In the load balancing mode, different target physical channels can transmit different data in the data to be transmitted in parallel to improve the bandwidth utilization rate. Specifically, if there are P target physical channels, the data to be transmitted can be segmented to obtain P sub-data to be transmitted, and then each sub-data to be transmitted is allocated to a different target physical channel. In this way, the P different target physical channels can transmit data simultaneously to improve the data transmission speed.

[0093] Exemplarily, if the data to be transmitted includes three different types of data, namely audio, video, and text, three physical channels are used to transmit these three types of data respectively, and spatial multiplexing is used to ensure that each type of data can obtain sufficient bandwidth allocation.

[0094] Specifically, the allocation strategy of the data to be transmitted can be determined based on the importance of the data to be transmitted. The data to be transmitted is divided into at least one different sub-data to be transmitted, and then at least one target physical channel is selected from multiple physical channels, so that each sub-data to be transmitted corresponds one-to-one to one of the target physical channels in at least one physical channel, and then each sub-data to be transmitted is written into the corresponding physical channel for data transmission.

[0095] In this way, the data transmission speed can be increased, thereby improving the data throughput.

[0096] As an optional embodiment, the performing data segmentation on the data to be transmitted to obtain P sub-data to be transmitted includes:

[0097] The data to be transmitted is evenly divided according to the data volume of the data to be transmitted, so as to obtain the P sub-data to be transmitted with the same data volume size.

[0098] In this embodiment, after determining the P target physical channels, the data to be transmitted can be evenly divided to obtain P sub-data to be transmitted with the same data volume size, and each sub-data to be transmitted is allocated to a different target physical channel, and each target physical channel transmits a sub-data to be transmitted with the same data volume.

[0099] As an optional embodiment, the dividing the data to be transmitted to obtain P sub-data to be transmitted includes:

[0100] The data to be transmitted is divided based on the data characteristics of the data to be transmitted, so as to obtain P sub-data to be transmitted with different data categories;

[0101] The allocating each of the P sub-data to be transmitted to one of the P target physical channels includes:

[0102] Obtain the transmission priorities of each data category among the P data categories, and the channel qualities of each target physical channel among the P target physical channels;

[0103] Sort the P sub-data to be transmitted according to the transmission priority and a preset sorting rule, sort the P target physical channels according to the channel quality and the preset sorting rule, and allocate each sub-data to be transmitted to the target physical channel with the same sorting position.

[0104] In this embodiment, the data can be divided based on the differences in the data categories in the data to be transmitted. Specifically, the data characteristics of each data packet in the data to be transmitted can be obtained, and the data packets with the same or similar data characteristics are determined as a class of sub-data to be transmitted, so as to obtain P sub-data to be transmitted with different data categories. Among them, the importance levels of different sub-data to be transmitted are different, and the higher the importance level of the sub-data to be transmitted, the higher its transmission priority. In addition, after determining the P target physical channels, the channel quality of each target physical channel can also be determined.

[0105] Exemplarily, the quality parameters of each physical channel can be obtained. The quality parameters can include round-trip delay, bandwidth, and packet loss rate, and then the channel quality of each physical channel is calculated based on these quality parameters. The channel quality can characterize the performance of its corresponding physical channel.

[0106] The P target physical channels can be sorted in descending order of channel quality, and at the same time, the P sub-data to be transmitted can be sorted in descending order of transmission priority of the P sub-data to be transmitted. Each sub-data to be transmitted is respectively allocated to the target physical channel with the same sorting position.

[0107] Exemplarily, for example, if the first sub-data to be transmitted includes important real-time information or files, then the first sub-data to be transmitted can be determined as the sub-data with the highest transmission priority, and the target transmission channel with the highest channel quality needs to be selected for data transmission.

[0108] In this way, the sub-data to be transmitted with higher priority can be transmitted through the channels with higher channel quality, which can not only ensure the transmission rate and load balance, but also give priority to ensuring the high-quality transmission of important data.

[0109] As an optional embodiment, the splitting the data to be transmitted into P sub-data to be transmitted includes:

[0110] Obtain the channel bandwidths of the physical channels in the P target physical channels to obtain P channel bandwidths;

[0111] Determine the bandwidth ratios between the P channel bandwidths;

[0112] Based on the bandwidth ratios, split the data to be transmitted to obtain P sub-data to be transmitted with data volume ratios matching the bandwidth ratios;

[0113] The allocating each of the P sub-data to be transmitted to one of the P target physical channels includes:

[0114] For each sub-data to be transmitted, based on the data volume ratio of each sub-data to be transmitted, allocate the sub-data to be transmitted to the target physical channel with a bandwidth ratio matching the data volume ratio of the sub-data to be transmitted.

[0115] In this embodiment, the channel bandwidths between the P target physical channels can be determined in advance, then the bandwidth ratios of the channel bandwidths between the P target physical channels are calculated, and the bandwidth ratios are used as the data volume ratios for splitting the data to be transmitted to split the data to be transmitted.

[0116] After the data splitting is completed, the sub-data to be transmitted can be allocated to the target physical channel corresponding to the bandwidth ratio matching the corresponding data volume ratio.

[0117] Exemplarily, the bandwidth ratio between multiple target physical channels can be calculated, and then multiple different sub-data to be transmitted in the data to be transmitted are correspondingly allocated to the multiple target physical channels for transmission according to the bandwidth ratio. For example, the multiple target physical channels include a first physical channel and a second physical channel. The bandwidth of the first physical channel is 600 Mbps, and the bandwidth of the second physical channel is 400 Mbps. Then the bandwidth ratio between the first physical channel and the second physical channel is 60%:40%. Therefore, the sub-data to be transmitted that occupies 60% of the data volume of the data to be transmitted can be allocated to the first physical channel, and the sub-data to be transmitted that occupies 40% of the data volume of the data to be transmitted can be allocated to the second physical channel.

[0118] This can ensure that the data to be transmitted is evenly distributed on multiple physical channels to improve the overall transmission throughput. When P target physical channels complete data transmission simultaneously, the data transmission efficiency can be maximally improved.

[0119] As an optional embodiment, after selecting the target transmission mode corresponding to the data transmission requirement of the data to be transmitted, it includes:

[0120] Obtain the channel bandwidths of the multiple physical channels in the virtual channel;

[0121] Determine the physical channels with channel bandwidths less than the bandwidth threshold among the multiple physical channels as standby channels;

[0122] The method further includes:

[0123] When it is detected that there is a fault in the channel or port corresponding to a target physical channel, determine the target physical channel as a faulty physical channel;

[0124] Use the standby channel to replace the faulty physical channel.

[0125] In this embodiment, the physical channels with channel bandwidths less than the bandwidth threshold can be determined as standby channels. Then, each target physical channel is monitored in real time. When it is detected that there is a fault in the channel or port corresponding to a target physical channel, determine the target physical channel as a faulty physical channel, interrupt the data transmission of the faulty physical channel, and use the same number of standby channels to replace the faulty physical channel to complete the data transmission.

[0126] Through this dynamic path switching, it is possible to ensure that the data to be transmitted is dynamically adjusted to the optimal transmission channel to ensure high-quality and low-latency data transmission. In addition, since the transfer of the data to be transmitted is an internal data transfer within the virtual channel, neither the device nor the network middleware will perceive this data transfer, and the data transfer process does not require interrupting the network connection and re-establishing the connection. Therefore, the stability and coherence of data transmission can also be guaranteed.

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

[0128] First, refer to Figure 2 , the data transmission device 200 provided in the embodiments of the present application includes the following modules:

[0129] An obtaining module 201, configured to obtain the data to be transmitted and the data transmission requirements of the data to be transmitted;

[0130] A selection module 202, configured to select a target transmission mode corresponding to the data transmission requirements of the data to be transmitted from multiple preset transmission modes, and determine a target physical channel for transmitting the data to be transmitted from the virtual channels, where the virtual channels include multiple physical channels supported by the device for external communication;

[0131] An allocation module 203, configured to allocate the data to be transmitted to the target physical channel corresponding to the target transmission mode, and transmit the data to be transmitted through the target physical channel.

[0132] The device can obtain the data to be transmitted, select a corresponding target transmission mode based on the data transmission requirements of the data to be transmitted, then select a target physical channel for transmission based on the target transmission mode, and allocate the data to be transmitted to the target physical channel. In this way, compared with the existing method of using a single link for communication, it can select a suitable data transmission method and data transmission channel based on different data characteristics, and perform data transmission in parallel using the selected data transmission channel, so as to make better use of communication resources by flexibly and fully utilizing multiple physical channels and save communication costs.

[0133] As an implementation manner of the present application, the above selection module 202 may further include:

[0134] A first obtaining unit, configured to, if the target transmission mode is a high-reliability mode, obtain the channel quality corresponding to each physical channel in the virtual channel, and determine the physical channels with channel quality greater than the quality threshold as the target physical channels;

[0135] A second obtaining unit, configured to, if the target transmission mode is a load balancing mode, obtain the channel bandwidth corresponding to each physical channel in the virtual channel, and determine the physical channels with channel bandwidth not less than the bandwidth threshold as the target physical channels.

[0136] As an implementation manner of the present application, the above allocation module 203 may further include:

[0137] A third obtaining unit, configured to obtain N target physical channels corresponding to the high-reliability mode when the target transmission mode is the high-reliability mode, where N is a positive integer greater than 1;

[0138] A replication unit, configured to replicate the data to be transmitted to obtain N copies of the same data to be transmitted;

[0139] A first allocation unit, configured to allocate each piece of the data to be transmitted among the N pieces of data to be transmitted to one of the N target physical channels, where each of the N target physical channels is allocated one piece of the data to be transmitted.

[0140] As an implementation manner of this application, the above-mentioned allocation module 203 may further include:

[0141] A fourth obtaining unit, configured to obtain P target physical channels corresponding to the load balancing mode when the target transmission mode is the load balancing mode, where P is a positive integer greater than 1;

[0142] A splitting unit, configured to split the data to be transmitted to obtain P pieces of sub-data to be transmitted;

[0143] A second allocation unit, configured to allocate each piece of the sub-data to be transmitted among the P pieces of sub-data to be transmitted to one of the P target physical channels, where each of the P target physical channels is allocated one piece of the sub-data to be transmitted, and the sub-data to be transmitted allocated to different target physical channels is different.

[0144] As an implementation manner of this application, the above-mentioned splitting unit may further include:

[0145] A first splitting sub-unit, configured to evenly split the data to be transmitted according to the data volume of the data to be transmitted to obtain the P pieces of sub-data to be transmitted with the same data volume size.

[0146] As an implementation manner of this application, the above-mentioned splitting unit may further include:

[0147] A second splitting sub-unit, configured to split the data to be transmitted based on the data characteristics of the data to be transmitted to obtain P pieces of sub-data to be transmitted with different data categories;

[0148] The above-mentioned second allocation unit includes:

[0149] A first obtaining sub-unit, configured to obtain the transmission priorities of each data category among the P data categories, and the channel qualities of each target physical channel among the P target physical channels;

[0150] A first allocation subunit, configured to sort the P sub-data to be transmitted according to the transmission priority and a preset sorting rule, sort the P target physical channels according to the channel quality and a preset sorting rule, and respectively allocate each sub-data to be transmitted to a target physical channel with the same sorting position 。

[0151] As an implementation manner of this application, the above splitting unit may further include:

[0152] A second acquisition subunit, configured to acquire the channel bandwidths of the physical channels in the P target physical channels, obtaining P channel bandwidths;

[0153] A determination subunit, configured to determine the bandwidth ratios between the P channel bandwidths;

[0154] A third splitting subunit, configured to perform data splitting on the data to be transmitted based on the bandwidth ratios, obtaining P sub-data to be transmitted with data volume ratios matching the bandwidth ratios;

[0155] The above second allocation unit includes:

[0156] A second allocation subunit, configured to, for each sub-data to be transmitted, based on the data volume ratio of each sub-data to be transmitted, allocate the sub-data to be transmitted to a target physical channel with a bandwidth ratio matching the data volume ratio corresponding to the sub-data to be transmitted.

[0157] As an implementation manner of this application, the above data transmission device 200 may further include:

[0158] A bandwidth acquisition module, configured to acquire the channel bandwidths of the multiple physical channels in the virtual channel;

[0159] A spare channel determination module, configured to determine a physical channel with a channel bandwidth less than a bandwidth threshold among the multiple physical channels as a spare channel;

[0160] A fault determination module, configured to, when detecting that there is a fault in a channel or port corresponding to a target physical channel, determine the target physical channel as a faulty physical channel;

[0161] A replacement module, configured to use the spare channel to replace the faulty physical channel.

[0162] The data transmission device provided by the embodiment of the present invention can implement each step in the above method embodiment. To avoid repetition, it will not be elaborated here.

[0163] Figure 3 Shows a schematic hardware structure diagram of a data transmission device provided by an embodiment of this application.

[0164] The data transmission device may include a processor 301 and a memory 302 storing computer program instructions.

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

[0166] The memory 302 may include a mass 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 disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 302 may include removable or non-removable (or fixed) media. Where appropriate, the memory 302 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, the memory 302 is a non-volatile solid state memory.

[0167] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage media device, an optical storage media device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Thus, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.

[0168] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement any of the data transmission methods in the above embodiments.

[0169] In one example, the data transmission device may further include a communication interface 303 and a bus 310. Among them, as Figure 3 shown, the processor 301, the memory 302, and the communication interface 303 are connected through the bus 310 to complete communication with each other.

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

[0171] The bus 310 includes hardware, software, or both, and couples components of the data transmission device to each other. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus 310 may include one or more buses. Although embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.

[0172] The data transmission device may be based on the foregoing embodiments, so as to implement the data transmission method and apparatus in combination with the above.

[0173] In addition, in combination with the data transmission method in the foregoing embodiments, embodiments of the present application may provide a computer storage medium to implement. Computer program instructions are stored on the computer storage medium; when the computer program instructions are executed by a processor, any one of the data transmission methods in the foregoing embodiments is implemented, and the same technical effects can be achieved. For the sake of brevity, details are not repeated here. Among them, the foregoing computer-readable storage medium may include a non-transitory computer-readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disc, etc., which is not limited herein.

[0174] In addition, embodiments of the present application further provide a vehicle, including computer program instructions, which can implement the steps and corresponding contents of the foregoing method embodiments when executed by a processor.

[0175] It should be clear that the present application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are 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 steps after understanding the spirit of the present application.

[0176] The functional blocks shown in the above structural block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a functional card, and so on. 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 via a data signal carried in a carrier wave over a transmission medium or a communication link. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical discs, hard disks, fiber optic media, radio frequency (RF) links, and so on. The code segment can be downloaded via a computer network such as the Internet, an intranet, and so on.

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

[0178] As described above with reference to the flowcharts and / or block diagrams of methods, apparatuses, and vehicles according to embodiments of the present disclosure. It should be understood that each block in the flowchart and / or block diagram, and the combination of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the functions / actions specified in one or more blocks of the flowchart and / or 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 is also understood that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, can also be implemented by dedicated hardware that performs the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0179] The above is only the specific implementation manner of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules, and units described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein. It should be understood that the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present application.

Claims

1. A data transmission method, characterized in that, The method includes: Obtaining the data to be transmitted and the data transmission requirements of the data to be transmitted; Selecting a target transmission mode corresponding to the data transmission requirements of the data to be transmitted from multiple preset transmission modes, and determining a target physical channel for transmitting the data to be transmitted from the virtual channels based on the target transmission mode, where the virtual channels include multiple physical channels for communicating with the outside; Allocating the data to be transmitted to the target physical channel corresponding to the target transmission mode, and transmitting the data to be transmitted through the target physical channel.

2. The data transmission method according to claim 1, wherein The target transmission mode at least includes a high-reliability mode and a load-balancing mode. The high-reliability mode is used to transmit the data to be transmitted with high-reliability data transmission requirements, and the load-balancing mode is used to transmit the data to be transmitted with high transmission rate data transmission requirements.

3. The data transmission method according to claim 2, characterized in that, The determining the target physical channel for transmitting the data to be transmitted from the virtual channels based on the target transmission mode includes: If the target transmission mode is the high-reliability mode, obtaining the channel quality corresponding to each physical channel in the virtual channels, and determining the physical channels with channel quality greater than the quality threshold as the target physical channels; If the target transmission mode is the load-balancing mode, obtaining the channel bandwidth corresponding to each physical channel in the virtual channels, and determining the physical channels with channel bandwidth not less than the bandwidth threshold as the target physical channels.

4. The data transmission method according to claim 2, characterized in that The allocating the data to be transmitted to the target physical channel corresponding to the target transmission mode includes: In the case where the target transmission mode is the high-reliability mode, obtaining N target physical channels corresponding to the high-reliability mode, where N is a positive integer greater than 1; Copying the data to be transmitted to obtain N identical copies of the data to be transmitted; Allocating each copy of the data to be transmitted among the N copies of the data to be transmitted to one of the N target physical channels, where each of the N target physical channels is allocated one copy of the data to be transmitted.

5. The data transmission method according to claim 2, wherein The allocating the data to be transmitted to the target physical channel corresponding to the target transmission mode includes: In the case where the target transmission mode is the load-balancing mode, obtaining P target physical channels corresponding to the load-balancing mode, where P is a positive integer greater than 1; Splitting the data to be transmitted to obtain P sub-data to be transmitted; Allocating each of the P sub-data to be transmitted among the P target physical channels, where each of the P target physical channels is allocated one of the P sub-data to be transmitted, and the sub-data to be transmitted allocated to different target physical channels are different.

6. The data transmission method according to claim 5, wherein The splitting the data to be transmitted to obtain P sub-data to be transmitted includes: Evenly splitting the data to be transmitted according to the data volume of the data to be transmitted to obtain the P sub-data to be transmitted with the same data volume size.

7. The data transmission method according to claim 5, characterized in that The splitting the data to be transmitted to obtain P sub-data to be transmitted includes: Perform data segmentation on the data to be transmitted based on the data characteristics of the data to be transmitted, to obtain P sub-data to be transmitted with different data categories; The step of allocating each of the P sub-data to be transmitted to one of the P target physical channels includes: Obtain the transmission priorities of the respective data categories among the P data categories, and the channel qualities of the respective target physical channels among the P target physical channels; Sort the P sub-data to be transmitted according to the transmission priority and a preset sorting rule, sort the P target physical channels according to the channel quality and a preset sorting rule, and allocate each sub-data to be transmitted to a target physical channel with the same sorting position.

8. The data transmission method according to claim 5, wherein The step of performing data segmentation on the data to be transmitted to obtain P sub-data to be transmitted includes: Obtain the channel bandwidths of the respective physical channels among the P target physical channels, to obtain P channel bandwidths; Determine the bandwidth ratios among the P channel bandwidths; Perform data segmentation on the data to be transmitted based on the bandwidth ratios, to obtain P sub-data to be transmitted with data volume ratios matching the bandwidth ratios; The step of allocating each of the P sub-data to be transmitted to one of the P target physical channels includes: For each sub-data to be transmitted, based on the data volume ratio of each sub-data to be transmitted, allocate the sub-data to be transmitted to a target physical channel whose bandwidth ratio matches the data volume ratio corresponding to the sub-data to be transmitted.

9. The data transmission method according to any one of claims 1-8, characterized in that, After selecting the target transmission mode corresponding to the data transmission requirement of the data to be transmitted, it includes: Obtain the channel bandwidths of the multiple physical channels in the virtual channel; Determine the physical channels with channel bandwidths less than the bandwidth threshold among the multiple physical channels as standby channels; The method further includes: When it is detected that there is a fault in the channel or port corresponding to a target physical channel, determine the target physical channel as a faulty physical channel; Use the standby channel to replace the faulty physical channel.

10. A data transmission device, characterized in that, The apparatus includes: An acquisition module, configured to acquire the data to be transmitted and the data transmission requirement of the data to be transmitted; A selection module, configured to select, from multiple preset transmission modes, a target transmission mode corresponding to the data transmission requirement of the data to be transmitted, and determine, based on the target transmission mode, a target physical channel for transmitting the data to be transmitted from the virtual channel, where the virtual channel includes multiple physical channels supported by the device for external communication; An allocation module, configured to allocate the data to be transmitted to the target physical channel corresponding to the target transmission mode, and transmit the data to be transmitted through the target physical channel.

11. A data transmission device, characterized in that, The data transmission device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the data transmission method according to any one of claims 1-9 is implemented.

12. A computer storage medium, characterized in that, Computer program instructions are stored on the computer storage medium, and when the computer program instructions are executed by the processor, the data transmission method according to any one of claims 1-9 is implemented.

13. A vehicle, characterized in that, The vehicle includes computer program instructions, and the vehicle includes the above-mentioned data transmission device, data transmission equipment, and computer storage medium.