Data transmission method and device, equipment, storage medium and vehicle
By real-time perception and dynamic adjustment of the traffic weight of the physical channel, the problem of poor communication quality of the device is solved, and higher stability and bandwidth utilization are achieved.
Patent Information
- Application Number
- CN202311865493.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
Existing equipment has low bandwidth and poor stability during communication, resulting in poor communication quality.
By obtaining the quality parameters of each physical channel in the target virtual channel, the channel quality is calculated, and the transmission task is reassigned in case of a mismatch detected to match the channel quality.
Improves the stability and bandwidth utilization of communication and improves the overall communication quality.
Smart Images

Figure CN120238961A_ABST
Abstract
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 notebook terminal can support access to ETH (Ethernet), WIFI (Wireless Fidelity), and 5G (5th Generation Mobile Networks), a smart phone can simultaneously support access to WIFI and 5G, and an in-vehicle infotainment system can also simultaneously support access to WIFI, 4G (4th Generation Mobile Networks), and 5G dual-mode network (i.e., dual SIM and dual standby).
[0003] However, although these devices can already support multiple communication links, the communication of current devices basically depends on a single communication link at the same time, and the quality of service of each communication link (such as bandwidth, latency, and packet loss rate, etc.) is in dynamic change, which results in a relatively low bandwidth that can be simultaneously applied during the communication process of the device and poor communication stability, thus leading to poor communication quality. Summary of the Invention
[0004] Embodiments of this application provide a data transmission method, apparatus, device, storage medium, and vehicle, which can solve the problem of poor communication quality of existing devices.
[0005] In a first aspect, embodiments of this application provide a data transmission method, the method including:
[0006] Obtain quality parameters of each physical channel in a target virtual channel, where the target virtual channel is aggregated by a plurality of physical channels;
[0007] Calculate the current channel quality of each physical channel based on the quality parameters corresponding to each physical channel;
[0008] In the case where it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocate a transmission task that matches the current channel quality of the physical channel according to the current channel quality of the physical channel.
[0009] In some embodiments, when it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating, according to the current channel quality of the physical channel, a transmission task that matches the current channel quality of the physical channel includes:
[0010] When it is detected that there is a physical channel whose channel quality is less than a first quality threshold but not less than a second quality threshold, determining that the physical channel is a first physical channel; the first quality threshold is greater than the second quality threshold;
[0011] Judging whether the current transmission task of the first physical channel is a first transmission task that matches the first physical channel, the first transmission task being to stop allocating data to the first physical channel from the moment when the first physical channel is detected;
[0012] If not, reallocating the transmission task of the first physical channel to the first transmission task.
[0013] In some embodiments, when it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating, according to the current channel quality of the physical channel, a transmission task that matches the current channel quality of the physical channel includes:
[0014] When it is detected that there is a physical channel whose channel quality is less than the second quality threshold, determining that the physical channel is a second physical channel;
[0015] Judging whether the current transmission task of the second physical channel is a second transmission task that matches the second physical channel, the second transmission task being to interrupt the current data transmission of the second physical channel and stop allocating data to the second physical channel from the moment when the second physical channel is detected;
[0016] If not, reallocating the transmission task of the second physical channel to the second transmission task.
[0017] In some embodiments, after reallocating the transmission task of the second physical channel to the second transmission task, the method further includes:
[0018] Obtaining a data identifier of the lost data generated by interrupting the current data transmission of the second physical channel;
[0019] Generating retransmission data that matches the lost data based on the data identifier and allocating the retransmission data to a physical channel other than the second physical channel among the plurality of physical channels.
[0020] In some embodiments, when it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating a transmission task that matches the current channel quality of the physical channel to the physical channel according to the current channel quality of the physical channel includes:
[0021] When it is detected that there is a third physical channel whose channel quality is not less than a first quality threshold, determining whether the round-trip delay corresponding to the third physical channel is within a preset delay interval;
[0022] If the round-trip delay corresponding to the third physical channel is greater than the maximum value of the preset delay interval, determining that the third physical channel is in a congested state, and reallocating the transmission task corresponding to the third physical channel according to a third transmission task matching the congested state, where the third transmission task is to reduce the data volume assigned to the third physical channel each time by a preset proportion.
[0023] In some embodiments, after determining whether the round-trip delay corresponding to the third physical channel is within a preset delay interval, it further includes:
[0024] If the round-trip delay corresponding to the third physical channel is less than the minimum value of the preset delay interval, determining that the third physical channel is in an uncongested state, and reallocating the transmission task corresponding to the third physical channel according to a fourth transmission task matching the uncongested state, where the fourth transmission task is to increase the data volume assigned to the third physical channel each time by a preset amount.
[0025] In some embodiments, when it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating a transmission task that matches the current channel quality of the physical channel to the physical channel according to the current channel quality of the physical channel includes:
[0026] If it is detected that there is a fourth physical channel whose priority of the transmitted data does not match the level corresponding to the channel quality, reallocating the transmission task of the fourth physical channel to the fifth transmission task, where the fifth transmission task is to assign data whose priority matches the level corresponding to the channel quality of the fourth physical channel to the fourth physical channel.
[0027] In some embodiments, before reallocating a transmission task that matches the current channel quality of the physical channel to the physical channel according to the current channel quality of the physical channel, the method further includes:
[0028] Obtaining multiple server delays between the current device and multiple aggregation servers, where each aggregation server corresponds to a server delay;
[0029] Determine at least one candidate aggregation server for which at least one corresponding server delay is greater than the delay threshold;
[0030] Select the target aggregation server from the at least one candidate aggregation server.
[0031] In a second aspect, an embodiment of the present application provides a data transmission device, which includes:
[0032] An acquisition module, configured to acquire quality parameters of each physical channel in a target virtual channel, where the target virtual channel is aggregated by a plurality of physical channels;
[0033] A calculation module, configured to calculate the current channel quality of each physical channel through the quality parameters corresponding to each physical channel;
[0034] An allocation module, configured to, when it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, re-allocate a transmission task that matches the current channel quality of the physical channel according to the current channel quality of the physical channel.
[0035] 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;
[0036] When the processor executes the computer program instructions, the above data transmission method is implemented.
[0037] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the above data transmission method is implemented.
[0038] In a fifth aspect, an embodiment of the present application provides a vehicle, which includes the data transmission device, the data transmission device, and the computer storage medium.
[0039] In the embodiments of the present application, the quality parameters of each physical channel in the target virtual channel can be acquired, and then the current channel quality of each physical channel can be determined based on the quality parameters. If it is detected that there is a physical channel in the target virtual channel whose channel quality does not match the transmission task, the data of the physical channel can be re-allocated so that the transmission task of the physical channel matches the channel quality. In this way, the change of the channel quality of the physical channel can be sensed in real time, and the device can dynamically adjust the traffic weights of each physical channel according to the channel quality, so as to ensure the transmission stability of the overall channel and maximize the bandwidth utilization rate, thereby improving the communication quality. Description of the Drawings
[0040] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the accompanying drawings required for use in the embodiments of the present application. Obviously, the accompanying drawings described below 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.
[0041] Figure 1 It is a schematic flowchart of a data transmission method provided by an embodiment of the present application;
[0042] Figure 2 It is a schematic structural diagram of a data transmission device provided by an embodiment of the present application;
[0043] Figure 3 It is a schematic hardware structure diagram of a data transmission device provided by an embodiment of the present application. Detailed implementation manners
[0044] The following will describe in detail the features and exemplary embodiments of various aspects of the present application. To make the purpose, technical solutions and advantages of the present application more clear and understandable, 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 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.
[0045] It should be noted that in this article, 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 term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, the elements defined by the statement "including..." do not exclude the existence of additional identical elements in the process, method, article or device including the elements.
[0046] 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 following will describe the embodiments in detail in conjunction with the accompanying drawings.
[0047] Specifically, to solve the problems of the prior art, the embodiments of the present application provide a data transmission method, apparatus, device, storage medium, and vehicle. First, the data transmission method provided by the embodiments of the present application will be introduced below.
[0048] 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:
[0049] S110, obtain the quality parameters of each physical channel in the target virtual channel, where the target virtual channel is aggregated by multiple physical channels;
[0050] In this embodiment, the target virtual channel is a logical channel aggregated by multiple physical channels for realizing data transmission between the current device and the target aggregation server.
[0051] For each physical channel in the target virtual channel, due to the limitation of the mobile network signal quality and the change of the resources allocated by the base station, the quality of service of the physical channel is in a dynamic change state, and the quality parameter can be used to characterize the quality of service of the physical channel. Among them, the quality parameter may include indicators such as round-trip delay, bandwidth, and packet loss rate.
[0052] Among them, the round-trip delay is the time from sending a data packet to receiving its response. A lower round-trip delay indicates better channel quality. A high round-trip delay may indicate that the signal takes longer to transmit.
[0053] Exemplarily, the round-trip delay of the physical channel can be detected by a network probe. Generate a network probe data packet at the current device end, and then send the network probe data packet to the target aggregation server through the physical channel. After receiving the network probe data packet, the target aggregation server will generate a response data packet and send the response data packet back to the current device.
[0054] And a transmission timestamp will be included in the network probe data packet for recording the sending moment of the network probe data packet; a reception timestamp will also be included in the response data packet for the device to record the reception moment of the response data packet.
[0055] In addition, in order to obtain a more accurate round-trip delay, multiple first interval durations can be obtained based on multiple network probes, and the average value of the multiple first interval durations can be determined as the round-trip delay of the first physical channel.
[0056] Then, the device can compare the transmission timestamp and the reception timestamp to calculate the round-trip delay. In this way, the round-trip delay of the first physical channel can be accurately calculated through the network probe.
[0057] The packet loss rate represents the percentage or ratio of packets lost during data transmission over the physical channel. It indicates the reliability and integrity of data during transmission. A lower packet loss rate means fewer packets are lost during channel transmission, and the communication is more reliable. A high packet loss rate may cause packet retransmission, affecting the quality and performance of communication.
[0058] Specifically, the packet loss rate of the physical channel can be determined by passively receiving the feedback of N packets transmitted over the physical channel before the current moment. Since every time the target aggregation server successfully receives a packet sent by the device, it will send an acknowledgment message for that packet to the device to confirm the receipt of the packet.
[0059] Therefore, after sending N packets from the current device to the target aggregation server through the physical channel, if M acknowledgment messages corresponding to the N packets are received, it means that the device has sent N packets through the physical channel, while the first aggregation server has only received M packets. The packet loss rate is the first ratio of N divided by M.
[0060] In this way, the real-time packet loss rate of the physical channel can be determined by passively receiving feedback.
[0061] Bandwidth represents the rate at which data is instantaneously transmitted over the physical channel. Bandwidth determines the amount of data that can be transmitted simultaneously over the physical channel. A higher bandwidth means the channel can transmit more data and provide a faster data transmission speed.
[0062] Specifically, the bandwidth of the physical channel can be determined by passively receiving the feedback of P packets transmitted over the physical channel before the current moment. The device can obtain the total data volume of the P packets, then determine the second interval duration obtained by subtracting the reception time of the first packet from the reception time of the last packet among the P packets, and determine the second ratio of dividing the total data volume by the second interval duration as the bandwidth of the first physical channel.
[0063] In this way, the real-time bandwidth of the first physical channel can be determined by passively receiving feedback.
[0064] S120, calculate the current channel quality of each physical channel through the quality parameters corresponding to each physical channel;
[0065] In this embodiment, the quality parameters may include indicators such as round-trip delay, bandwidth, and packet loss rate. The current channel quality of each physical channel can be calculated based on these quality parameters. The channel quality can characterize the performance of its corresponding physical channel.
[0066] Specifically, a weight coefficient can be defined for each quality parameter. For each physical channel, the sum of the products of each quality parameter and its corresponding weight coefficient can be determined as the channel quality of the physical channel. Additionally, the quality parameters of all physical channels can be input into a pre-trained quality assessment model, and the quality assessment model can output the channel quality of the physical channel.
[0067] S130, in the case where it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocate a transmission task that matches the current channel quality of the physical channel according to the current channel quality of the physical channel.
[0068] In this embodiment, since the change of the physical channel has a great impact on the traffic allocation strategy, during the data transmission process, the change of the channel quality of the physical channel can be sensed in real time, and the device can be made to dynamically adjust the traffic weights of each physical channel according to the channel quality, so as to ensure the transmission stability of the overall channel and maximize the bandwidth utilization rate.
[0069] Then, in the case where the channel qualities of the physical channels are different, different transmission tasks need to be assigned to the physical channel, and the transmission task and the channel quality need to match. Therefore, taking the physical channel among multiple physical channels as an example, based on the real-time channel quality of the physical channel, it can be judged whether the channel quality of the physical channel matches its corresponding transmission task. If the transmission task and the channel quality match, the current transmission task of the physical channel is continued; if the transmission task and the channel quality do not match, a transmission task that matches the current channel quality of the physical channel can be reallocated according to the current channel quality of the physical channel, so as to ensure that the traffic on the physical channel matches the channel quality of the physical channel.
[0070] In the embodiment of the present application, the channel quality of each physical channel in the target virtual channel can be obtained, and then the current channel quality of each physical channel can be determined based on the quality parameters. If it is detected that there is a physical channel in the target virtual channel whose channel quality does not match the transmission task, the data of the physical channel can be reallocated so that the transmission task of the physical channel matches the channel quality. In this way, the change of the channel quality of the physical channel can be sensed in real time, and the device can be made to dynamically adjust the traffic weights of each physical channel according to the channel quality, so as to ensure the transmission stability of the overall channel and maximize the bandwidth utilization rate, thereby improving the communication quality.
[0071] As an optional embodiment, the step of, in the case where it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating a transmission task that matches the current channel quality of the physical channel according to the current channel quality of the physical channel includes:
[0072] In the case where a physical channel with a channel quality less than a first quality threshold but not less than a second quality threshold is detected, determine that the physical channel is a first physical channel; the first quality threshold is greater than the second quality threshold;
[0073] Judge whether the current transmission task of the first physical channel is a first transmission task matching the first physical channel, and the first transmission task is to stop allocating data to the first physical channel from the moment when the first physical channel is detected;
[0074] If not, re-allocate the transmission task of the first physical channel to the first transmission task.
[0075] In this embodiment, if the channel quality of a physical channel is less than the first quality threshold but not less than the second quality threshold, it can be considered that the channel quality of the physical channel is low and data transmission cannot continue. Then, the physical channel can be set as the first physical channel, and the transmission task matching the first physical channel is the first transmission task. The first transmission task is to stop allocating data to the first physical channel from the current moment.
[0076] Therefore, it is necessary to judge whether the transmission task corresponding to the first physical channel is the first transmission task. If the transmission task corresponding to the first physical channel is the first transmission task, the current first transmission task of the first physical channel can be maintained; if the transmission task corresponding to the first physical channel is not the first transmission task, it is necessary to re-adjust the transmission task of the first physical channel to the first transmission task.
[0077] In this way, by adjusting the real-time traffic weight, data allocation to physical channels with low channel quality can be stopped to avoid data loss and improve the transmission rate.
[0078] As an optional embodiment, in the case where it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, re-allocate a transmission task matching the current channel quality of the physical channel according to the current channel quality of the physical channel, including:
[0079] In the case where a physical channel with a channel quality less than a second quality threshold is detected, determine that the physical channel is a second physical channel;
[0080] Judge whether the current transmission task of the second physical channel is a second transmission task matching the second physical channel, and the second transmission task is to interrupt the current data transmission of the second physical channel and stop allocating data to the second physical channel from the moment when the second physical channel is detected;
[0081] If not, re - allocate the transmission task of the second physical channel as the second transmission task.
[0082] In this embodiment, if the channel quality of a physical channel is less than a second quality threshold, it can be considered that the channel quality of this physical channel is extremely low. This physical channel can not only no longer continue data transmission, but also it is difficult for the channel quality of this physical channel to recover to a normal state. Then, this physical channel can be set as the second physical channel, and the transmission task matching the second physical channel is the second transmission task. The second transmission task is to interrupt the data transmission of the second physical channel from the current moment and stop allocating data to the second physical channel.
[0083] Therefore, it is necessary to determine whether the transmission task corresponding to the second physical channel is the second transmission task. If the transmission task corresponding to the second physical channel is the second transmission task, the current second transmission task of the second physical channel can be maintained; if the transmission task corresponding to the second physical channel is not the second transmission task, it is necessary to re - adjust the transmission task of the second physical channel to the second transmission task.
[0084] In this way, by interrupting the physical channel with extremely low channel quality, the power consumption of the target virtual channel can be reduced.
[0085] As an optional embodiment, after re - allocating the transmission task of the second physical channel as the second transmission task, the method further includes:
[0086] Obtain the data identifier of the lost data generated by interrupting the current data transmission of the second physical channel;
[0087] Generate re - transmission data that matches the lost data based on the data identifier, and allocate the re - transmission data to the physical channels other than the second physical channel among the multiple physical channels.
[0088] In this embodiment, since the channel quality of the second physical channel is less than the second quality threshold, it can be considered that the channel quality of this physical channel is extremely low. This physical channel can not only no longer continue data transmission, but also cannot complete the transmission of the data that has been allocated to this second physical channel.
[0089] Therefore, at the moment of interrupting the second physical channel, the data that has been allocated to the second physical channel and has not completed transmission can be determined as lost data, and the data identifiers of these lost data can be obtained in batches. Then, in the current device, re - transmission data that is consistent with the data characteristics of these lost data is regenerated based on the data identifiers of the lost data, and the re - transmission data is allocated to the physical channels other than the second physical channel in the target virtual channel, and the data re - transmission is realized by the other physical channels.
[0090] In this way, it is possible to interrupt a physical channel with extremely low channel quality while avoiding data loss.
[0091] As an optional embodiment, when it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating a transmission task that matches the current channel quality of the physical channel to the physical channel according to the current channel quality of the physical channel includes:
[0092] When it is detected that there is a third physical channel whose channel quality is not less than a first quality threshold, determining whether the round-trip delay corresponding to the third physical channel is within a preset delay interval;
[0093] If the round-trip delay corresponding to the third physical channel is greater than the maximum value of the preset delay interval, it is determined that the third physical channel is in a congested state, and reallocating the transmission task corresponding to the third physical channel according to a third transmission task matching the congested state, where the third transmission task is to reduce the amount of data assigned to the third physical channel each time by a preset proportion.
[0094] In this embodiment, if the channel quality of a physical channel is not less than the first quality threshold, then the physical channel can be determined as the third physical channel, and the third physical channel is a physical channel with relatively high channel quality. Therefore, the third physical channel can be used for data transmission.
[0095] However, since the channel quality of a physical channel is jointly determined by multiple metrics such as round-trip delay, bandwidth, and packet loss rate. To more accurately evaluate the state of the channel quality, after determining that the physical channel is the third physical channel with a channel quality not less than the first quality threshold, it is further possible to separately analyze each quality parameter of the third physical channel.
[0096] Specifically, the time interval between the sending time of a data packet in the third physical channel and the receiving time of the response message corresponding to the data packet can be determined as the round-trip delay of the third physical channel.
[0097] The round-trip delay corresponding to the third physical channel can be analyzed. Since the round-trip delay is the time from sending a data packet to receiving its response, a high round-trip delay may indicate that the signal takes a longer time to transmit. By setting a delay interval and then comparing the round-trip delay corresponding to the third physical channel with the delay interval, the data allocation in the third physical channel can be adjusted based on the comparison result.
[0098] If the round-trip delay corresponding to the third physical channel is greater than the maximum value of the delay interval, it can be considered that the delay of the third physical channel is relatively high, the signal transmission is slow, and the third physical channel is in a congested state. In this congested state, it can be considered that the amount of data allocated to the third physical channel is too large. The transmission task corresponding to the third physical channel can be set as the third transmission task matching the congested state, that is, on the basis of the current data allocation, the amount of data allocated to the third physical channel each time is reduced according to a preset ratio until the round-trip delay of the third physical channel is reduced to the preset delay interval. For example, the preset ratio can be 20% or 50%.
[0099] In addition, if there are out-of-order or packet loss situations for the data packets transmitted in the third physical channel, it can also be considered that the round-trip delay in the third physical channel is greater than the maximum value of the preset delay interval, and the data allocation to the third physical channel is reduced proportionally.
[0100] As an optional embodiment, after determining whether the round-trip delay corresponding to the third physical channel is within the preset delay interval, it further includes:
[0101] If the round-trip delay corresponding to the third physical channel is less than the minimum value of the preset delay interval, it is determined that the third physical channel is in an uncongested state, and the transmission task corresponding to the third physical channel is reallocated according to the fourth transmission task matching the uncongested state. The fourth transmission task is to increase the amount of data allocated to the third physical channel by a preset amount each time.
[0102] In this embodiment, if the round-trip delay corresponding to the third physical channel is within the preset delay interval, it can be considered that the data transmission capacity of the third physical channel exactly matches the data transmission task of the third physical channel. Therefore, there is no need to reallocate the data, and the current data allocation method of the third physical channel can be maintained.
[0103] If the round-trip delay corresponding to the third physical channel is less than the minimum value of the preset delay interval, it can be considered that the data transmission capacity of the third physical channel is higher than the data transmission task of the third physical channel, and more data can be allocated to the third physical channel. Therefore, the third physical channel can be determined to be in an uncongested state, and the transmission task corresponding to the third physical channel is reallocated according to the fourth transmission task, that is, each time data is allocated, the amount of data of the third physical channel is increased on the basis of the existing allocation method until the round-trip delay of the third physical channel is increased to the preset delay interval. For example, one data packet can be added each time, or two data packets can be added each time.
[0104] As an optional embodiment, in the case where it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating a transmission task that matches the current channel quality of the physical channel to the physical channel according to the current channel quality of the physical channel includes:
[0105] If it is detected that there is a fourth physical channel whose priority of the transmitted data does not match the level corresponding to the channel quality, reallocate the transmission task of the fourth physical channel to the fifth transmission task, where the fifth transmission task is to allocate data whose priority matches the level corresponding to the channel quality of the fourth physical channel to the fourth physical channel.
[0106] In this embodiment, the channel quality of each channel can be determined, and multiple physical channels in the target virtual channel can be sorted in descending order of channel quality. Different types of data can also be sorted in descending order of the priority of different types of data in the data to be transmitted. Then, data is allocated according to the sorting of data priorities and the sorting of physical channels, and the data is allocated to physical channels with the same sorting positions.
[0107] After the data allocation is completed, it can be detected in real time whether the priority of the data matches the level of the channel quality of the physical channel. If there is a fourth physical channel with a mismatch, the transmission task of the fourth physical channel can be reallocated, and the data whose level matches the channel quality of the fourth physical channel is allocated to the fourth physical channel.
[0108] As an optional embodiment, before reallocating a transmission task that matches the current channel quality of the physical channel to the physical channel according to the current channel quality of the physical channel, the method further includes:
[0109] Obtain multiple server delays between the current device and multiple aggregation servers, where each aggregation server corresponds to a server delay;
[0110] Determine at least one candidate aggregation server from at least one aggregation server whose corresponding server delay is greater than the delay threshold;
[0111] Select the target aggregation server from the at least one candidate aggregation server.
[0112] In this embodiment, during the communication between the current device and the target server, the aggregation server can be an intermediate server deployed between the current device and the target server, and is used to transfer the data that needs to be transmitted between the device and the target server. Specifically, multiple aggregation servers can be deployed between the device and the target server. And the aggregation server can be selected in real time based on the server delay of each aggregation server, and the aggregation server can be set near the vehicle driving road, so as to reduce the intermediate routing nodes and reduce the delay. Among them, the current device can be a vehicle, and the target server can be a cloud server communicatively connected to the vehicle.
[0113] Specifically, the server delay of each aggregation server can be obtained, and the aggregation servers with server delay greater than the delay threshold are determined as at least one candidate aggregation server, and then the target aggregation server for application is selected from the at least one candidate aggregation server.
[0114] Among them, the candidate aggregation server with the lowest server delay can be determined as the target aggregation server, or the target aggregation server can be randomly selected from the at least one candidate aggregation server.
[0115] If a link failure occurs in the target aggregation server, the target aggregation server can be reselected from multiple aggregation servers.
[0116] Exemplarily, multiple aggregation servers include Server1, Server2, and Server3. First, Server1 with the lowest server delay can be determined as the target aggregation server. If the link of Server1 sends an exception, Server2 with the second lowest server delay can be automatically replaced as the target aggregation server.
[0117] In this way, it is possible to ensure that the aggregation server with better channel quality is selected as the first aggregation server for transferring data.
[0118] Based on the data transmission method provided in the above embodiment, correspondingly, the present application also provides a specific implementation manner of the data transmission device. Please refer to the following embodiment.
[0119] First, refer to Figure 2 , the data transmission device 200 provided in the embodiment of the present application includes the following modules:
[0120] An acquisition module 201, configured to acquire quality parameters of each physical channel in the target virtual channel, where the target virtual channel is aggregated by multiple physical channels;
[0121] A calculation module 202, configured to calculate the current channel quality of each physical channel through the quality parameters corresponding to each physical channel;
[0122] The allocation module 203 is configured to, when it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, re-allocate a transmission task that matches the current channel quality of the physical channel to the physical channel according to the current channel quality of the physical channel.
[0123] The device can obtain the quality parameters of each physical channel in the target virtual channel, and then determine the current channel quality of each physical channel based on the quality parameters. If it is detected that there is a physical channel in the target virtual channel whose channel quality does not match the transmission task, the data of the physical channel can be re-allocated so that the transmission task of the physical channel matches the channel quality. In this way, the change of the channel quality of the physical channel can be sensed in real time, and the device can dynamically adjust the traffic weights of each physical channel according to the channel quality, so as to ensure the transmission stability of the overall channel and maximize the bandwidth utilization rate, thereby improving the communication quality.
[0124] As an implementation manner of the present application, the above-mentioned allocation module 203 may further include:
[0125] The first determination unit is configured to, when it is detected that there is a physical channel whose channel quality is less than the first quality threshold but not less than the second quality threshold, determine that the physical channel is the first physical channel; the first quality threshold is greater than the second quality threshold;
[0126] The first judgment unit is configured to judge whether the current transmission task of the first physical channel is the first transmission task that matches the first physical channel, and the first transmission task is to stop allocating data to the first physical channel from the moment when the first physical channel is detected;
[0127] The first allocation unit is configured to, if not, re-allocate the transmission task of the first physical channel as the first transmission task.
[0128] As an implementation manner of the present application, the above-mentioned allocation module 203 may further include:
[0129] The second determination unit is configured to, when it is detected that there is a physical channel whose channel quality is less than the second quality threshold, determine that the physical channel is the second physical channel;
[0130] The second judgment unit is configured to judge whether the current transmission task of the second physical channel is the second transmission task that matches the second physical channel, and the second transmission task is to interrupt the current data transmission of the second physical channel and stop allocating data to the second physical channel from the moment when the second physical channel is detected;
[0131] A second allocation unit, configured to, if the answer is no, re-allocate the transmission task of the second physical channel as the second transmission task.
[0132] As an implementation manner of the present application, the above data transmission device 200 may further include:
[0133] An identification acquisition module, configured to acquire a data identifier of lost data generated by interrupting the current data transmission of the second physical channel;
[0134] A retransmission module, configured to generate retransmission data matching the lost data based on the data identifier, and allocate the retransmission data to a physical channel other than the second physical channel among the plurality of physical channels.
[0135] As an implementation manner of the present application, the above allocation module 203 may further include:
[0136] A third determination unit, configured to, when detecting that there is a third physical channel whose channel quality is not less than a first quality threshold, determine whether the round-trip delay corresponding to the third physical channel is within a preset delay interval;
[0137] A third allocation unit, configured to, if the round-trip delay corresponding to the third physical channel is greater than the maximum value of the preset delay interval, determine that the third physical channel is in a congested state, and re-allocate the transmission task corresponding to the third physical channel according to a third transmission task matching the congested state, where the third transmission task is to reduce the data volume allocated to the third physical channel each time by a preset ratio.
[0138] As an implementation manner of the present application, the above allocation module 203 may further include:
[0139] A fourth allocation unit, configured to, if the round-trip delay corresponding to the third physical channel is less than the minimum value of the preset delay interval, determine that the third physical channel is in an uncongested state, and re-allocate the transmission task corresponding to the third physical channel according to a fourth transmission task matching the uncongested state, where the fourth transmission task is to increase the data volume allocated to the third physical channel each time by a preset amount.
[0140] As an implementation manner of the present application, the above allocation module 203 may further include:
[0141] A fifth allocation unit, configured to, if it is detected that there is a fourth physical channel whose priority of the transmitted data does not match the level corresponding to the channel quality, re-allocate the transmission task of the fourth physical channel as the fifth transmission task, where the fifth transmission task is to allocate data whose priority matches the level corresponding to the channel quality of the fourth physical channel to the fourth physical channel.
[0142] As an implementation manner of the present application, the above data transmission device 200 can also be used for:
[0143] Obtain multiple server delays between the current device and multiple aggregation servers, where each aggregation server corresponds to a server delay;
[0144] Determine at least one aggregation server with a corresponding server delay greater than the delay threshold as at least one candidate aggregation server;
[0145] Select the target aggregation server from the at least one candidate aggregation server.
[0146] The data transmission device provided by the embodiments of the present invention can implement each step in the above method embodiments. To avoid repetition, it will not be elaborated here.
[0147] Figure 3 FIG. shows a schematic hardware structure diagram of a data transmission device provided by an embodiment of the present application.
[0148] The data transmission device may include a processor 301 and a memory 302 storing computer program instructions.
[0149] Specifically, the above processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.
[0150] The memory 302 may include a mass storage 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. In a suitable case, the memory 302 may include a removable or non-removable (or fixed) medium. In a suitable case, the memory 302 may be internal or external to the integrated gateway disaster recovery device. In a specific embodiment, the memory 302 is a non-volatile solid state memory.
[0151] 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.
[0152] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement any one of the data transmission methods in the above embodiments.
[0153] 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 and complete communication with each other.
[0154] The communication interface 303 is mainly used to implement communication between various modules, devices, units, and / or devices in the embodiments of the present application.
[0155] The bus 310 includes hardware, software, or both, and couples the 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. In a suitable case, the bus 310 may include one or more buses. Although the embodiments of the present application describe and illustrate specific buses, the present application contemplates any suitable bus or interconnect.
[0156] The data transmission device may be based on the above embodiments, thereby implementing the data transmission method and apparatus in combination with the above.
[0157] In addition, in combination with the data transmission method in the above embodiments, an embodiment of the present application can be implemented by providing a computer storage medium. 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 above embodiments is implemented, and the same technical effects can be achieved. To avoid repetition, details are not described here again. Among them, the above 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 here.
[0158] In addition, an embodiment of the present application also provides a vehicle, including computer program instructions, which can implement the steps and corresponding content of the foregoing method embodiment when executed by a processor.
[0159] 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, the detailed description of known methods 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. 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.
[0160] The functional blocks shown in the above block diagrams 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 on a transmission medium or a communication link. A "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 or an intranet.
[0161] It should also be noted that the exemplary embodiments mentioned in the present application describe some methods or systems 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.
[0162] Aspects of the present disclosure have been 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 combinations 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 apparatus to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing apparatus enable the implementation of the functions / operations 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 should also be understood that each block in the block diagram and / or flowchart, and the combinations of blocks in the block diagram and / or flowchart, can also be implemented by dedicated hardware that performs the specified functions or operations, or by a combination of dedicated hardware and computer instructions.
[0163] The above are only specific embodiments 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 can easily think of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and these modifications or substitutions should all be covered by the protection scope of the present application.
Claims
1. A data transmission method, characterized in that, The method includes: Obtaining quality parameters of each physical channel in a target virtual channel, where the target virtual channel is aggregated by a plurality of physical channels; Calculating the current channel quality of each physical channel based on the quality parameters corresponding to each physical channel; When it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating a transmission task that matches the current channel quality of the physical channel to the physical channel according to the current channel quality of the physical channel.
2. The data transmission method according to claim 1, wherein The step of, when it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating a transmission task that matches the current channel quality of the physical channel to the physical channel according to the current channel quality of the physical channel includes: When it is detected that there is a physical channel whose channel quality is less than a first quality threshold but not less than a second quality threshold, determining the physical channel as a first physical channel; the first quality threshold is greater than the second quality threshold; Judging whether the current transmission task of the first physical channel is a first transmission task that matches the first physical channel, where the first transmission task is to stop allocating data to the first physical channel from the moment when the first physical channel is detected; If not, reallocating the transmission task of the first physical channel as the first transmission task.
3. The data transmission method according to claim 1, wherein The step of, when it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating a transmission task that matches the current channel quality of the physical channel to the physical channel according to the current channel quality of the physical channel includes: When it is detected that there is a physical channel whose channel quality is less than the second quality threshold, determining the physical channel as a second physical channel; Judging whether the current transmission task of the second physical channel is a second transmission task that matches the second physical channel, where the second transmission task is to interrupt the current data transmission of the second physical channel and stop allocating data to the second physical channel from the moment when the second physical channel is detected; If not, reallocating the transmission task of the second physical channel as the second transmission task.
4. The data transmission method according to claim 3, wherein After reallocating the transmission task of the second physical channel as the second transmission task, the method further includes: Obtaining a data identifier of lost data generated by interrupting the current data transmission of the second physical channel; Generating retransmission data that matches the lost data based on the data identifier and allocating the retransmission data to a physical channel other than the second physical channel among the plurality of physical channels.
5. The data transmission method according to claim 1, wherein The step of, when it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating a transmission task that matches the current channel quality of the physical channel to the physical channel according to the current channel quality of the physical channel includes: When it is detected that there is a third physical channel whose channel quality is not less than the first quality threshold, determine whether the round-trip delay corresponding to the third physical channel is within a preset delay interval; If the round-trip delay corresponding to the third physical channel is greater than the maximum value of the preset delay interval, determine that the third physical channel is in a congested state, and reallocate the transmission task corresponding to the third physical channel according to the third transmission task matched to the congested state, where the third transmission task is to reduce the amount of data allocated to the third physical channel each time by a preset proportion.
6. The data transmission method according to claim 5, characterized in that After determining whether the round-trip delay corresponding to the third physical channel is within the preset delay interval, it further includes: If the round-trip delay corresponding to the third physical channel is less than the minimum value of the preset delay interval, determine that the third physical channel is in an uncongested state, and reallocate the transmission task corresponding to the third physical channel according to the fourth transmission task matched to the uncongested state, where the fourth transmission task is to increase the amount of data allocated to the third physical channel each time by a preset amount.
7. The data transmission method according to claim 1, wherein When it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocating the transmission task of the physical channel according to the current channel quality of the physical channel to match the transmission task that matches the current channel quality of the physical channel includes: If it is detected that there is a fourth physical channel where the priority of the transmitted data does not match the level corresponding to the channel quality, reallocate the transmission task of the fourth physical channel to the fifth transmission task, where the fifth transmission task is to allocate the data whose priority matches the level corresponding to the channel quality of the fourth physical channel to the fourth physical channel.
8. The data transmission method according to claim 1, characterized in that Before reallocating the transmission task of the physical channel according to the current channel quality of the physical channel to match the transmission task that matches the current channel quality of the physical channel, the method further includes: Obtain multiple server delays between the current device and multiple aggregation servers, where each aggregation server corresponds to a server delay; Determine at least one candidate aggregation server whose corresponding server delay is greater than the delay threshold; Select the target aggregation server from the at least one candidate aggregation server; Connect the target aggregation server and the current device through the target virtual channel.
9. A data transmission device, characterized in that, The device includes: An acquisition module, configured to acquire the quality parameters of each physical channel in the target virtual channel, where the target virtual channel is aggregated by multiple physical channels; A calculation module, configured to calculate the current channel quality of each physical channel through the quality parameters corresponding to each physical channel; An allocation module, configured to, when it is detected that the current channel quality of any one of the physical channels does not match the current transmission task of the physical channel, reallocate the transmission task of the physical channel according to the current channel quality of the physical channel to match the transmission task that matches the current channel quality of the physical channel.
10. 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, it implements the data transmission method according to any one of claims 1-8.
11. 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, they implement the data transmission method according to any one of claims 1-8.
12. A vehicle, characterized in that, The vehicle includes a data transmission device, a data transmission equipment, and a computer storage medium.
