CN111263402B - Data transmission method and device and electronic equipment - Google Patents

Data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN111263402B
CN111263402B CN202010057210.XA CN202010057210A CN111263402B CN 111263402 B CN111263402 B CN 111263402B CN 202010057210 A CN202010057210 A CN 202010057210A CN 111263402 B CN111263402 B CN 111263402B
Authority
CN
China
Prior art keywords
transmission
link
sub
packet
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010057210.XA
Other languages
Chinese (zh)
Other versions
CN111263402A (en
Inventor
陈嘉峰
周志雄
谢大雄
余世清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Zhongxing Newstart Technology Co ltd
Original Assignee
Guangdong Zhongxing Newstart Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Zhongxing Newstart Technology Co ltd filed Critical Guangdong Zhongxing Newstart Technology Co ltd
Priority to CN202010057210.XA priority Critical patent/CN111263402B/en
Publication of CN111263402A publication Critical patent/CN111263402A/en
Application granted granted Critical
Publication of CN111263402B publication Critical patent/CN111263402B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/082Load balancing or load distribution among bearers or channels

Abstract

The invention provides a data transmission method, a data transmission device and electronic equipment, and relates to the technical field of communication, wherein the method comprises the following steps: acquiring a data packet to be transmitted and transmission delay of a transmission link corresponding to the data packet to be transmitted; calculating the segmentation proportion of the data packet to be transmitted according to the transmission delay; segmenting the data packet to be transmitted according to the segmentation proportion to obtain a sub-packet corresponding to each transmission link; and transmitting the corresponding sub-packets through the transmission link so as to obtain the data packets to be transmitted according to the recovery of the sub-packets after the receiving end receives the sub-packets. The embodiment of the invention segments the data packet to the corresponding link at the sending end according to the transmission delay of each link, and recombines the link data at the receiving end, because the data packet is sent and received by a plurality of links at the same time, the bandwidth superposition effect is achieved; moreover, all sub-packets can be successfully recombined after reaching the receiving end, the sequence is preserved theoretically, and extra data cache sequencing time is not needed to be added, so that the overall transmission delay of data transmission is reduced.

Description

Data transmission method and device and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission method and apparatus, and an electronic device.
Background
With the rapid development of internet technology, the demand of various applications (especially video related services) for bandwidth is higher and higher. In order to adapt to mobility, the demand for aggregation on wireless multi-links is more obvious, and especially in the fields of video conferences, unmanned aerial vehicles, automatic driving, robot surgery and the like, the real-time demand of a network is more prominent.
Currently, existing aggregation network technologies typically distribute data packets to different links to a receiving end, which then forwards the data packets to a final destination address. Because different links have different time delays, the arrival time of the data packets is sequential, and therefore, a receiving end needs to add a sequencing module to sequence the outlet data. This data transmission method can aggregate bandwidth, but the overall transmission delay is large.
Disclosure of Invention
In view of this, the present invention provides a data transmission method, an apparatus and an electronic device, which can implement aggregation of multilink bandwidths and reduce the overall time delay of data transmission.
In a first aspect, an embodiment of the present invention provides a data transmission method, which is applied to a sending end, and the method includes: acquiring a data packet to be transmitted and transmission delay of a transmission link corresponding to the data packet to be transmitted; calculating the segmentation proportion of the data packet to be transmitted according to the transmission delay; segmenting the data packet to be transmitted according to the segmentation proportion to obtain sub-packets corresponding to each transmission link; and transmitting the corresponding sub-packets through the transmission link, so that the data packets to be transmitted are obtained according to the sub-packets recovery after the receiving end receives the sub-packets.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the step of calculating a slicing ratio of the data packet to be transmitted according to the transmission delay includes: taking reciprocal of the transmission delay value to obtain a reciprocal value corresponding to the transmission link; and normalizing the reciprocal values corresponding to all the transmission links to obtain the segmentation proportion of the data packet to be transmitted corresponding to each transmission link.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the step of calculating a slicing ratio of the to-be-transmitted data packet according to the transmission delay includes: taking a negative number for the value of the transmission delay to obtain a negative value corresponding to the transmission link; for each transmission link, the negative value corresponding to the transmission link is added with the sum of the transmission delays of all the transmission links to obtain a positive value corresponding to the transmission link; and normalizing the positive values corresponding to all the transmission links to obtain the segmentation proportion of the data packet to be transmitted corresponding to each transmission link.
With reference to the first aspect or the first or second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the step of segmenting the data packet to be transmitted according to the segmentation ratio to obtain the sub-packet corresponding to each transmission link includes: sorting the ratios in the segmentation proportion in a descending order; sequentially extracting a target ratio from the arranged ratios to calculate the initial packet length of a sub-packet of the transmission link corresponding to the target ratio according to the target ratio; if the initial packet length is not an integer, rounding up the initial packet length to obtain a final packet length; and segmenting the data packet to be transmitted according to the final packet length to obtain a sub-packet of the transmission link corresponding to the target ratio.
With reference to the third possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the method further includes: and if the length of the residual packet of the data packet to be transmitted is zero, ending the step of segmenting the data packet to be transmitted according to the segmentation proportion to obtain the sub-packet corresponding to each transmission link.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where before the step of transmitting the corresponding sub-packet through the transmission link, the method further includes: configuring the same and unique identification code for the sub-packets corresponding to each transmission link, and recording the in-packet sequence of the sub-packets in the sub-packets.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where a transmission link corresponding to the data packet to be transmitted is determined in the following manner: acquiring transmission time delay of a preset link; if the transmission delay of the link is less than or equal to a preset delay threshold, determining the transmission delay as qualified transmission delay; and determining the link corresponding to the qualified transmission delay as a transmission link corresponding to the data packet to be transmitted.
With reference to the sixth possible implementation manner of the first aspect, an embodiment of the present invention provides a seventh possible implementation manner of the first aspect, where before the step of determining, if the transmission delay of the link is smaller than or equal to the preset delay threshold, that the transmission delay is an eligible transmission delay, the method further includes: determining the minimum transmission delay in the transmission delays of the preset links; and multiplying the value of the minimum transmission delay by a preset proportionality coefficient to obtain a delay threshold value.
In a second aspect, an embodiment of the present invention further provides a data transmission apparatus, including: the data acquisition module is used for acquiring a data packet to be transmitted and the transmission delay of a transmission link corresponding to the data packet to be transmitted; the segmentation proportion calculation module is used for calculating the segmentation proportion of the data packet to be transmitted according to the transmission delay; the data packet segmentation module is used for segmenting the data packet to be transmitted according to the segmentation proportion to obtain a sub-packet corresponding to each transmission link; and the sub-packet transmission module is used for transmitting the corresponding sub-packets through the transmission link so as to recover and obtain the data packets to be transmitted according to the sub-packets after the receiving end receives the sub-packets.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the data transmission method.
The embodiment of the invention brings the following beneficial effects:
the data transmission method, the data transmission device and the electronic equipment provided by the embodiment of the invention are characterized in that firstly, a data packet to be transmitted and transmission delay of a transmission link corresponding to the data packet to be transmitted are obtained; then, calculating the segmentation proportion of the data packet to be transmitted according to the transmission delay; then segmenting the data packet to be transmitted according to the segmentation proportion to obtain a sub-packet corresponding to each transmission link; and transmitting the corresponding sub-packets through the transmission link so as to obtain the data packets to be transmitted according to the recovery of the sub-packets after the receiving end receives the sub-packets. In the method, the received data packets are segmented to the corresponding links at the sending end according to the transmission delay of each link, and the link data is recombined at the receiving end, so that the bandwidth superposition effect is achieved as the data packets are sent and received by a plurality of links simultaneously; moreover, all sub-packets can be successfully recombined after reaching the receiving end, the sequence is preserved theoretically, and extra data cache sequencing time is not needed to be added, so that the overall transmission delay of data transmission is reduced.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flow chart of a data transmission method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a data packet being divided into sub-packets according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating another example of dividing a data packet into sub-packets according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
An icon: 41-a data acquisition module; 42-a segmentation proportion calculation module; 43-data package cutting module to be transmitted; 44-a sub-packet transmission module; 51-a processor; 52-a memory; 53-bus; 54-communication interface.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
A link refers to a passive point-to-point physical connection. In wired communication, a link refers to a physical line, such as a cable or fiber, between two nodes; in radio communication, a link refers to a path space for propagating electromagnetic waves between a base station and a terminal. The wireless link has the following characteristics:
1. the bandwidth of each link is not balanced, and some links are wide and narrow.
2. The bandwidth of each link is dynamically changed and is changed more quickly in a vehicle moving state.
3. The delay of each link is different and also dynamically variable, and the delay variation is caused by the traffic variation.
In view of the problem that the overall transmission delay is long due to the fact that a sequencing module needs to be added at a receiving end to sequence outlet data in the existing data transmission mode, embodiments of the present invention provide a data transmission method, an apparatus and an electronic device. To facilitate understanding of the embodiment, a detailed description will be given first of all of a data transmission method disclosed in the embodiment of the present invention.
Referring to fig. 1, a schematic flow chart of a data transmission method according to an embodiment of the present invention is shown, where the method is applied to a data sending end, and as can be seen from fig. 1, the method includes the following steps:
step S102: and acquiring the data packet to be transmitted and the transmission delay of the transmission link corresponding to the data packet to be transmitted.
In this embodiment, the data packets to be transmitted are transmitted simultaneously through a plurality of links. In one possible embodiment, the transmission link corresponding to the data packet to be transmitted may be determined through the following steps 21 to 23:
(21) And acquiring the transmission time delay of the preset link.
(22) And if the transmission delay of the link is less than or equal to a preset delay threshold value, determining the transmission delay as qualified transmission delay.
And periodically acquiring the transmission delay of each of a plurality of preset links, comparing the acquired transmission delay with a preset delay threshold, if the transmission delay of the link is less than the delay threshold, determining the link as qualified transmission delay, indicating that the link is available, and otherwise, indicating that the link is unavailable.
In actual operation, an independent delay detection module may be provided for detecting the transmission delay of each link. Each link independently detects time delay in a packet inclusion mode so as to improve real-time performance and accuracy. The specific way of interleaving packets is to send every M packets, i.e. 1 delay detection packet, to the link. And when the link does not send the data packet in the idle load period T, actively sending 1 time delay monitoring packet. The default value of the number M of the inclusion packets is 50, and the default value can be adjusted according to the actual situation; the default value of the idle period T is 1 second, which can be adjusted, but is not limited herein.
In addition, when determining the delay threshold of the link, the following steps may be performed: firstly, determining the minimum transmission delay in the transmission delays of the preset link; and then multiplying the value of the minimum transmission delay by a preset proportionality coefficient to obtain a delay threshold value. Here, with the link with the lowest delay as a reference, the link with the delay lower than the cooperative threshold ratio (i.e. the preset scaling factor) of the reference is marked as an available link, and the remaining links are marked as unavailable links. The default value of the cooperative threshold ratio is 150%, and the cooperative threshold ratio can be adjusted according to actual conditions.
Because the transmission delay of each link can be changed, according to the delay detection method, the delay value of each link can be obtained circularly, and the available link corresponding to the qualified transmission delay can be determined in real time.
(23) And determining the link corresponding to the qualified transmission delay as a transmission link corresponding to the data packet to be transmitted.
Here, the link meeting the preset requirement, which has been determined in the above step, that is, the link with the qualified transmission delay is determined as the transmission link for transmitting the data packet to be transmitted. It can be known that when the transmission delay of each link changes, the transmission link for transmitting the data packet also changes.
Step S104: and calculating the segmentation proportion of the data packet to be transmitted according to the transmission delay.
In this embodiment, a segmentation form of the equipartition data packet is different from that of the conventional equipartition data packet, and in this embodiment, the data packet to be transmitted is segmented according to the transmission delay of each determined transmission link, so as to obtain a segmentation proportion of the data packet corresponding to each link.
In one possible embodiment, the cut ratio may be calculated as follows in steps 31-32:
(31) Taking the reciprocal of the value of the transmission delay to obtain the reciprocal value corresponding to the transmission link;
(32) And normalizing the reciprocal values corresponding to all the transmission links to obtain the segmentation proportion of the data packet to be transmitted corresponding to each transmission link.
Here, assuming that there are 4 links PATH1, PATH2, PATH3, and PATH4, the corresponding transmission delays are RTT1=120ms, RTT2=100ms, RTT3=150ms, and RTT4=180ms, respectively.
First, PATH2 with the lowest delay is obtained, and its transmission delay is used as a reference, that is, RTTmin =100ms. Assuming that the preset proportionality coefficient is 150%, the delay threshold is calculated as follows:
RTTmin*THREHOLD=100ms*150%=150ms。
the corresponding transmission delay RTT4 of the link PATH4 exceeds the delay threshold, so that the link PATH4 is an unavailable link, and the PATHs 1, PATH2, and PATH3 are available links and determined as transmission links for transmitting the data packet.
The obtained segmentation proportion corresponding to each available link is as follows:
RATIO1:RATIO2:RATIO3=1/RTT1:1/RTT2:1/RTT3
=1/120:1/100:1/150=5/60:6/60:4/60=5:6:4。
then, normalization processing is performed, where the SUM of the ratios is calculated as SUM =5+6+4=15, and:
RATIO1:RATIO2:RATIO3=RATIO1/SUM:RATIO2/SUM:RATIO3/SUM=5/15:6/15:4/15=0.33:0.4:0.27。
therefore, the data packets to be transmitted are segmented according to the proportion of 33%, 40% and 27% of the data packets corresponding to the link PATH1, the link PATH2 and the link PATH3 respectively.
In another possible embodiment, the cut ratio may be calculated as follows in steps 41-43:
(41) Taking a negative number for the value of the transmission delay to obtain a negative value corresponding to the transmission link;
(42) For each transmission link, the negative value corresponding to the transmission link is added with the sum of the transmission delays of all the transmission links to obtain a positive value corresponding to the transmission link;
(43) And normalizing the positive values corresponding to all the transmission links to obtain the segmentation proportion of the data packet to be transmitted corresponding to each transmission link.
Here, it is assumed that the transmission links satisfying the delay requirement are link a, link B, and link C, and the corresponding transmission delays are 100ms, 120ms, and 160ms, respectively. Taking a negative value for the time delay value of each link to obtain-100, -120, -160; calculating the sum of the transmission time delays of all transmission links to be 380; and respectively obtaining the positive values corresponding to each transmission link by summing the sum and the negative value of each link as follows: 280. 260, 220; the three positive values are normalized, that is, each positive value is divided by the sum 760 of the positive values, so that the slicing proportion of the data packet to be transmitted corresponding to each transmission link is 36.84%, 34.21% and 28.95%.
Step S106: and segmenting the data packet to be transmitted according to the segmentation proportion to obtain a sub-packet corresponding to each transmission link.
In one possible implementation, the transmission data packet may be segmented to obtain sub-packets corresponding to each transmission link through the following steps 51 to 54:
(51) Sorting the ratio in the segmentation proportion in a descending order;
(52) Sequentially extracting a target ratio from the arranged ratios to calculate the initial packet length of a sub-packet of the transmission link corresponding to the target ratio according to the target ratio;
(53) If the initial packet length is not an integer, rounding up the initial packet length to obtain a final packet length;
(54) And segmenting the data packet to be transmitted according to the final packet length to obtain a sub-packet of the transmission link corresponding to the target ratio.
And when the data packet to be transmitted is segmented, calculating the length of the residual packet of the data packet to be transmitted, and if the length of the residual packet of the data packet to be transmitted is zero, ending the step of segmenting the data packet to be transmitted according to the segmentation proportion to obtain the sub-packet corresponding to each transmission link.
In the method, a sending end receives 1 data packet each time, the packet content of the total load length is segmented into the data packets according to the segmentation mode and the normalized continuous ratio, segmentation calculation is carried out according to the sequence of transmission delay from small to large, the length of a corresponding sub-packet of a link with smaller delay is longer, and the sub-packet corresponding to the link with smaller delay is obtained by preferential segmentation. Meanwhile, the starting position and the length of the sub-packet are also recorded, and the length of the sub-packet allocated to each link is rounded up after the floating point calculation. If the packet length of the data packet has been allocated, the subsequent available links will not be assigned to the packet contents, and the last assigned data sub-packet is marked with an end-of-line flag.
Here, referring to fig. 2, a schematic diagram of a data packet being divided into sub-packets according to an embodiment of the present invention is shown, and in the implementation shown in fig. 2, the link PATH1, the link PATH2, and the link PATH3 correspond to the division ratios of 33%, 40%, and 27% of the data packet, respectively. Wherein, the packet length of the data packet is 1200 bytes, the sub-packet lengths obtained by sequentially distributing the link proportion from high to low are obtained:
the starting position of the sub-packet of the link PATH2 is 0, and the length of the sub-packet is as follows:
LENGTH × RATIO2=1200 × 0.4=480 bytes;
the starting position of the sub-packet of the link PATH1 is 480, and the length of the sub-packet is:
LENGTH × RATIO1=1200 × 0.33=396 bytes;
the starting position of the sub-packet of the link PATH3 is 876, and the length of the sub-packet is:
LENGTH × RATIO3=1200 × 0.27=324 bytes.
Here, assuming that the packet length of the data packet is 4 bytes, the sub-packet length after segmentation corresponding to each link is:
the starting position of the sub-packet of the link PATH2 is 0, and the length of the sub-packet is as follows:
LENGTH × RATIO2=4 × 0.4=1.6, rounded to 2 bytes;
the starting position of the sub-packet of the link PATH1 is 2, and the length of the sub-packet is as follows:
LENGTH × RATIO1=4 × 0.33=1.32, and integer =2 bytes;
the link PATH3 has no remaining packet length, so the link PATH3 is not started.
Therefore, a schematic diagram of the data packet into sub-packets is shown in fig. 3.
Step S108: and transmitting the corresponding sub-packets through the transmission link so as to obtain the data packets to be transmitted according to the recovery of the sub-packets after the receiving end receives the sub-packets.
In one possible embodiment, before the step of transmitting the corresponding sub-packet through the transmission link, the same and unique identification code is configured for the sub-packet corresponding to each transmission link, and the in-packet sequence of the sub-packet is recorded in the sub-packet. And, the sub-packet with the largest sequence number has a tail end flag recorded therein.
Therefore, after receiving the sub-packets of each link, the receiving end recombines each sub-packet according to the identification code of the sub-packet and the sequence in the packet. And once all sub-packets of the same identification code are received, all loads of the packets are spliced, so that the data packets to be transmitted are recovered.
In the mode, each data packet is sent and received by a plurality of links at the same time, and the plurality of links transmit data at the same time, so that the bandwidth superposition effect is achieved. In addition, because all sub-packets can be successfully recombined only after reaching the receiving end, the sequence is theoretically preserved, so that additional data cache sequencing time is not needed to be added, the utilization rate of each link bandwidth is improved, and the overall transmission delay of data transmission is reduced. The method is suitable for services which need bandwidth superposition and high real-time performance.
The data transmission method provided by the embodiment of the invention comprises the steps of firstly obtaining a data packet to be transmitted and transmission time delay of a transmission link corresponding to the data packet to be transmitted; then, calculating the segmentation proportion of the data packet to be transmitted according to the transmission delay; segmenting the data packet to be transmitted according to the segmentation proportion to obtain a sub-packet corresponding to each transmission link; and transmitting the corresponding sub-packets through the transmission link so as to obtain the data packets to be transmitted according to the recovery of the sub-packets after the receiving end receives the sub-packets. In the mode, the received data packets are segmented to the corresponding links at the sending end according to the transmission delay of each link, and the link data is recombined at the receiving end, so that the bandwidth superposition effect is achieved as the data packets are sent and received by a plurality of links simultaneously; moreover, all sub-packets can be successfully recombined after arriving at a receiving end, the sequence is kept theoretically, and extra data buffer sorting time is not needed to be added, so that the overall transmission delay of data transmission is reduced.
Corresponding to the above data transmission method, an embodiment of the present invention further provides a data transmission device, referring to fig. 4, which is a schematic structural diagram of the data transmission device, as can be seen from fig. 4, the device includes a data obtaining module 41, a segmentation ratio calculating module 42, a to-be-transmitted data packet segmentation module 43, and a sub-packet transmission module 44, which are connected in sequence, where functions of each module are as follows:
a data obtaining module 41, configured to obtain a data packet to be transmitted and a transmission delay of a transmission link corresponding to the data packet to be transmitted;
a segmentation ratio calculation module 42, configured to calculate a segmentation ratio of the data packet to be transmitted according to the transmission delay;
the data packet segmentation module 43 is configured to segment the data packet to be transmitted according to the segmentation ratio to obtain a sub-packet corresponding to each transmission link;
and the sub-packet transmission module 44 is configured to transmit a corresponding sub-packet through the transmission link, so that after the receiving end receives the sub-packet, the data packet to be transmitted is obtained according to the sub-packet recovery.
The data transmission device provided by the embodiment of the invention firstly obtains a data packet to be transmitted and a transmission delay of a transmission link corresponding to the data packet to be transmitted; then, calculating the segmentation proportion of the data packet to be transmitted according to the transmission delay; then segmenting the data packet to be transmitted according to the segmentation proportion to obtain a sub-packet corresponding to each transmission link; and transmitting the corresponding sub-packets through the transmission link, so that the data packets to be transmitted are obtained according to the sub-packets recovery after the receiving end receives the sub-packets. In the device, the received data packets are segmented to the corresponding links at the sending end according to the transmission delay of each link, and the link data is recombined at the receiving end, so that the bandwidth superposition effect is achieved as the data packets are sent and received by a plurality of links simultaneously; moreover, all sub-packets can be successfully recombined after reaching the receiving end, the sequence is preserved theoretically, and extra data cache sequencing time is not needed to be added, so that the overall transmission delay of data transmission is reduced.
In one possible implementation, the segmentation ratio calculation module 42 is further configured to: taking reciprocal of the transmission delay value to obtain a reciprocal value corresponding to the transmission link; and normalizing the reciprocal values corresponding to all the transmission links to obtain the segmentation proportion of the data packet to be transmitted corresponding to each transmission link.
In another possible embodiment, the segmentation ratio calculation module 42 is further configured to: taking a negative number for the value of the transmission delay to obtain a negative value corresponding to the transmission link; for each transmission link, the negative value corresponding to the transmission link is added with the sum of the transmission delays of all the transmission links to obtain a positive value corresponding to the transmission link; and normalizing the positive values corresponding to all the transmission links to obtain the segmentation proportion of the data packet to be transmitted corresponding to each transmission link.
In another possible embodiment, the above-mentioned data packet cutting module 43 is further configured to: sorting the ratios in the segmentation proportion in a descending order; sequentially extracting a target ratio from the arranged ratios to calculate the initial packet length of a sub-packet of the transmission link corresponding to the target ratio according to the target ratio; if the initial packet length is not an integer, rounding up the initial packet length to obtain a final packet length; and segmenting the data packet to be transmitted according to the final packet length to obtain a sub-packet of the transmission link corresponding to the target ratio.
In another possible embodiment, the above-mentioned data packet cutting module 43 is further configured to: and if the residual packet length of the data packet to be transmitted is zero, ending the step of segmenting the data packet to be transmitted according to the segmentation proportion to obtain the sub-packet corresponding to each transmission link.
In another possible implementation, the sub-packet transmission module 44 is further configured to: and configuring the same and unique identification codes for sub-packets corresponding to each transmission link, and recording the in-packet sequence of the sub-packets in the sub-packets.
In another possible embodiment, the data obtaining module 41 is further configured to: acquiring transmission time delay of a preset link; if the transmission delay of the link is less than or equal to a preset delay threshold, determining the transmission delay as qualified transmission delay; and determining the link corresponding to the qualified transmission delay as a transmission link corresponding to the data packet to be transmitted.
In another possible embodiment, the data obtaining module 41 is further configured to: determining the minimum transmission delay in the transmission delays of the preset links; and multiplying the value of the minimum transmission delay by a preset proportionality coefficient to obtain a delay threshold value.
The data transmission device provided in the embodiment of the present invention has the same implementation principle and technical effect as those of the foregoing data transmission method embodiment, and for brief description, reference may be made to corresponding contents in the foregoing data transmission method embodiment for the part of the embodiment of the data transmission device that is not mentioned.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, which is a schematic structural diagram of the electronic device, where the electronic device includes a processor 51 and a memory 52, the memory 52 stores machine executable instructions capable of being executed by the processor 51, and the processor 51 executes the machine executable instructions to implement the data transmission method.
In the embodiment shown in fig. 5, the electronic device further comprises a bus 53 and a communication interface 54, wherein the processor 51, the communication interface 54 and the memory 52 are connected by the bus.
The Memory 52 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 54 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
The processor 51 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 51. The Processor 51 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory, and the processor 51 reads the information in the memory 52, and completes the steps of the data transmission method of the foregoing embodiment in combination with the hardware thereof.
The embodiment of the present invention further provides a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions cause the processor to implement the data transmission method, and specific implementation may refer to the foregoing method embodiment, and is not described herein again.
The data transmission method, the data transmission apparatus, and the computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the data transmission method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
The functions, if implemented in software functional units and sold or used as a stand-alone product, may be stored in a non-transitory computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplification of description, but do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those skilled in the art that the following descriptions are only illustrative and not restrictive, and that the scope of the present invention is not limited to the above embodiments: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (8)

1. A data transmission method, applied to a transmitting end, the method comprising:
acquiring a data packet to be transmitted and transmission delay of a transmission link corresponding to the data packet to be transmitted;
calculating the segmentation proportion of the data packet to be transmitted according to the transmission delay;
segmenting the data packet to be transmitted according to the segmentation proportion to obtain a sub-packet corresponding to each transmission link;
transmitting the corresponding sub-packets through the transmission link, so that after receiving the sub-packets at a receiving end, recovering to obtain the data packets to be transmitted according to the sub-packets;
the step of calculating the segmentation proportion of the data packet to be transmitted according to the transmission delay comprises the following steps:
taking the reciprocal of the value of the transmission delay to obtain a reciprocal value corresponding to the transmission link;
normalizing the reciprocal values corresponding to all the transmission links to obtain the segmentation proportion of the data packet to be transmitted corresponding to each transmission link;
the step of calculating the segmentation proportion of the data packet to be transmitted according to the transmission delay further comprises:
taking a negative number for the value of the transmission delay to obtain a negative value corresponding to the transmission link;
for each transmission link, adding the negative value corresponding to the transmission link to the sum of the transmission delays of all the transmission links to obtain a positive value corresponding to the transmission link;
and normalizing the positive values corresponding to all the transmission links to obtain the segmentation proportion of the data packet to be transmitted corresponding to each transmission link.
2. The data transmission method according to claim 1, wherein the step of segmenting the data packets to be transmitted according to the segmentation ratio to obtain sub-packets corresponding to each transmission link comprises:
sorting the ratio values in the segmentation proportion in a descending order;
sequentially extracting a target ratio from the arranged ratios to calculate the initial packet length of a sub-packet of the transmission link corresponding to the target ratio according to the target ratio;
if the initial packet length is not an integer, rounding up the initial packet length to obtain a final packet length;
and segmenting the data packet to be transmitted according to the final packet length to obtain a sub-packet of the transmission link corresponding to the target ratio.
3. The method of claim 2, further comprising:
and if the residual packet length of the data packet to be transmitted is zero, ending the step of segmenting the data packet to be transmitted according to the segmentation proportion to obtain the sub-packet corresponding to each transmission link.
4. The data transmission method of claim 1, wherein prior to the step of transmitting the corresponding sub-packet over the transmission link, the method further comprises:
configuring the same and unique identification code for the sub-packets corresponding to each transmission link, and recording the in-packet sequence of the sub-packets in the sub-packets.
5. The data transmission method according to claim 1, wherein the transmission link corresponding to the data packet to be transmitted is determined by:
acquiring transmission time delay of a preset link;
if the transmission delay of the link is less than or equal to a preset delay threshold, determining the transmission delay as qualified transmission delay;
and determining the link corresponding to the qualified transmission delay as a transmission link corresponding to the data packet to be transmitted.
6. The data transmission method according to claim 5, wherein before the step of determining the transmission delay as the qualified transmission delay if the transmission delay of the link is less than or equal to a preset delay threshold, the method further comprises:
determining the minimum transmission delay in the transmission delays of the preset links;
and multiplying the value of the minimum transmission delay by a preset proportionality coefficient to obtain a delay threshold value.
7. A data transmission apparatus, comprising:
the data acquisition module is used for acquiring a data packet to be transmitted and the transmission delay of a transmission link corresponding to the data packet to be transmitted;
the segmentation proportion calculation module is used for calculating the segmentation proportion of the data packet to be transmitted according to the transmission delay;
the data packet segmentation module is used for segmenting the data packet to be transmitted according to the segmentation proportion to obtain sub-packets corresponding to each transmission link;
the sub-packet transmission module is used for transmitting the corresponding sub-packets through the transmission link so as to obtain the data packet to be transmitted according to the recovery of the sub-packets after the receiving end receives the sub-packets;
the segmentation proportion calculation module is further configured to reciprocal the transmission delay value to obtain a reciprocal value corresponding to the transmission link;
normalizing the reciprocal values corresponding to all the transmission links to obtain the segmentation proportion of the data packet to be transmitted corresponding to each transmission link;
the segmentation proportion calculation module is also used for taking a negative number for the value of the transmission delay to obtain a negative value corresponding to the transmission link;
for each transmission link, adding the negative value corresponding to the transmission link to the sum of the transmission delays of all the transmission links to obtain a positive value corresponding to the transmission link;
and normalizing the positive values corresponding to all the transmission links to obtain the segmentation proportion of the data packet to be transmitted corresponding to each transmission link.
8. An electronic device, comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the data transmission method of any one of claims 1 to 6.
CN202010057210.XA 2020-01-17 2020-01-17 Data transmission method and device and electronic equipment Active CN111263402B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010057210.XA CN111263402B (en) 2020-01-17 2020-01-17 Data transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010057210.XA CN111263402B (en) 2020-01-17 2020-01-17 Data transmission method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111263402A CN111263402A (en) 2020-06-09
CN111263402B true CN111263402B (en) 2023-04-07

Family

ID=70950759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010057210.XA Active CN111263402B (en) 2020-01-17 2020-01-17 Data transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111263402B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113595685A (en) * 2021-07-15 2021-11-02 上海晶赞融宣科技有限公司 Data transmission method and device, storage medium and terminal
CN114401277A (en) * 2021-12-31 2022-04-26 格美安(北京)信息技术有限公司 Data dynamic distribution method, storage medium and system based on hybrid network
CN116527510A (en) * 2022-01-20 2023-08-01 北京邮电大学 Model transmission method, device, electronic equipment and readable storage medium
CN114679407A (en) * 2022-05-06 2022-06-28 杭州安恒信息技术股份有限公司 Link aggregation method, device, equipment and storage medium
CN116915767B (en) * 2023-09-13 2024-03-29 重庆华悦生态环境工程研究院有限公司深圳分公司 Document transmission method and device
CN117579134B (en) * 2024-01-16 2024-05-03 广东世炬网络科技股份有限公司 Data transmission method, device, equipment and storage medium in multilink connection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841041B (en) * 2012-11-23 2018-12-28 中兴通讯股份有限公司 A kind of multi-stream service concurrent transmission control method and device
WO2014101068A1 (en) * 2012-12-27 2014-07-03 华为技术有限公司 Method for realizing multi-wireless-mode communication and user equipment
CN107277853A (en) * 2016-04-07 2017-10-20 华为技术有限公司 A kind of data transmission method and device

Also Published As

Publication number Publication date
CN111263402A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN111263402B (en) Data transmission method and device and electronic equipment
CN109691039B (en) Message transmission method and device
CN109391560B (en) Network congestion notification method, proxy node and computer equipment
CN108023758B (en) Method and network equipment for processing message in hybrid access network
CN107295036B (en) Data sending method and data merging equipment
US20170359131A1 (en) Wireless Communication Terminal, Wireless Communication System, and Communication Control Method
EP3531637B1 (en) Techniques for efficient reordering of data packets in multipath scenarios
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
CN110944358B (en) Data transmission method and device
CN109688063B (en) Method and device for setting large receiving and unloading function
CN108234320B (en) Message transmission method and switch
US20130279339A1 (en) Communication device and method
US20170064489A1 (en) Network system, method for determining communication quality, and analysis apparatus
CN111641565B (en) Method, device and system for transmitting Ethernet message
CN110750486A (en) RDMA data stream control method, system, electronic device and readable storage medium
US11303552B2 (en) Receiver, communication system, available bandwidth estimation method, and storage medium in which program is stored
CN111314961A (en) TCP transmission method, device and system
CN104038307A (en) Data stream transmission system and method
CN111740919B (en) Load reporting and sharing method and network equipment
CN108322402B (en) Message processing method, device and system
CN111510394A (en) Message scheduling method, related equipment and computer storage medium
CN113453285A (en) Resource adjusting method, device and storage medium
CN110855575B (en) TCP message scheduling method and device and communication equipment
CN110704361A (en) RDMA (remote direct memory Access) data transmitting and receiving method, electronic equipment and readable storage medium
US9843655B1 (en) Method and apparatus for packet data unit processing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant