CN109495931B - Data transmission method for link aggregation and related device - Google Patents

Data transmission method for link aggregation and related device Download PDF

Info

Publication number
CN109495931B
CN109495931B CN201811602350.XA CN201811602350A CN109495931B CN 109495931 B CN109495931 B CN 109495931B CN 201811602350 A CN201811602350 A CN 201811602350A CN 109495931 B CN109495931 B CN 109495931B
Authority
CN
China
Prior art keywords
data
link
data link
packet
sub
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
CN201811602350.XA
Other languages
Chinese (zh)
Other versions
CN109495931A (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 Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811602350.XA priority Critical patent/CN109495931B/en
Publication of CN109495931A publication Critical patent/CN109495931A/en
Application granted granted Critical
Publication of CN109495931B publication Critical patent/CN109495931B/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/08Load balancing or load distribution
    • H04W28/082Load balancing or load distribution among bearers or channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • H04W72/542Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality

Abstract

The embodiment of the application discloses a data transmission method for link aggregation and a related device, wherein the method comprises the following steps: detecting a link quality of a first Wi-Fi data link and detecting a link quality of a second Wi-Fi data link; acquiring a data packet to be transmitted, and determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link and the data packet to be transmitted; and transmitting the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information. By adopting the embodiment of the application, the data transmission speed can be improved in a link aggregation state.

Description

Data transmission method for link aggregation and related device
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a data transmission method for link aggregation and a related device.
Background
With the widespread application of mobile terminals (such as smart phones), the applications that the mobile terminals can support are increasing, the functions are becoming more and more powerful, and smart phones are developing towards diversification and personalization, becoming indispensable electronic appliances in user life. At present, Wi-Fi networks are ubiquitous, and a user can only select one Wi-Fi network to surf the internet at the same time.
Disclosure of Invention
The embodiment of the application provides a link aggregation data transmission method and a related device, which are used for improving the data transmission speed in a link aggregation state.
In a first aspect, an embodiment of the present application provides a link aggregation data transmission method, where the method includes:
detecting a link quality of a first Wi-Fi data link and detecting a link quality of a second Wi-Fi data link;
acquiring a data packet to be transmitted, and determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link and the data packet to be transmitted;
and transmitting the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information.
In a second aspect, an embodiment of the present application provides a link aggregated data transmission apparatus, where the apparatus includes:
the link quality detection device comprises a detection unit, a processing unit and a control unit, wherein the detection unit is used for detecting the link quality of a first Wi-Fi data link and detecting the link quality of a second Wi-Fi data link;
the device comprises an acquisition unit, a transmission unit and a transmission unit, wherein the acquisition unit is used for acquiring a data packet to be transmitted;
a determining unit, configured to determine transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted;
a transmission unit, configured to transmit the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in the method according to the first aspect of the embodiment of the present application.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium for storing a computer program, which is executed by a processor to implement some or all of the steps described in the method according to the first aspect of the embodiments of the present application.
In a fifth aspect, the present application provides a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps described in the method according to the first aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, the mobile terminal determines transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, and transmits the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information. Therefore, the data packet to be transmitted can be transmitted by using the first Wi-Fi data link and the second Wi-Fi data link together in the link aggregation state, the data transmission speed is improved, and the internet surfing experience of a user is further improved.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
Fig. 1A is a schematic diagram of a program running space of a smart phone according to an embodiment of the present application;
fig. 1B is a system architecture diagram of an android system provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a data transmission method for link aggregation according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another link aggregation data transmission method according to an embodiment of the present application;
fig. 4 is a block diagram of functional units of a data transmission apparatus for link aggregation according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed descriptions.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal.
As shown in fig. 1A, a current mobile terminal such as a smart phone is generally provided with a program running space, where the program running space includes a user space and an operating system space, where the user space runs one or more application programs, and the one or more application programs are third-party application programs installed on the mobile terminal.
The mobile terminal can specifically run an Android system, a mobile operating system iOS developed by apple Inc., and the like, and the mobile terminal is not limited herein. As shown in fig. 1B, for example, the mobile terminal runs an Android system, the corresponding user space includes an Application layer (Applications) in the Android system, and the operating system space may include an Application Framework layer (Application Framework) in the Android system, a system Runtime library layer (including system Runtime Libraries and Android Runtime runtimes), and a Linux Kernel layer (Linux Kernel). The application layer comprises various application programs which are directly interacted with the user or service programs which are written by Java language and run in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) SMS, phone dialing, picture viewer, calendar, games, maps, World Wide Web (Web) browser, and other applications developed by developers. The application framework layer provides a series of class libraries required by Android application development, can be used for reusing components, and can also realize personalized extension through inheritance. And the system operation library layer is a support of an application program framework and provides services for each component in the Android system. The system operation library layer is composed of a system class library and Android operation. The Android runtime comprises two parts, namely a core library and a Dalvik virtual machine. The Linux kernel layer is used for realizing core functions such as hardware device driving, process and memory management, a network protocol stack, power management, wireless communication and the like.
The following describes embodiments of the present application in detail.
Referring to fig. 2, fig. 2 is a schematic flowchart of a link aggregation data transmission method according to an embodiment of the present application, where the link aggregation data transmission method includes:
step 201: the mobile terminal detects a link quality of the first Wi-Fi data link and detects a link quality of the second Wi-Fi data link.
Among them, Wi-Fi (Wireless-Fidelity, Wi-Fi), which may also be called "WiFi" or "WiFi", is a Wireless connection mode. The mobile terminal includes a Wi-Fi module to enable the mobile terminal to have Wi-Fi functionality. The mobile terminal can comprise a first Wi-Fi module and a second Wi-Fi module and can support simultaneous receiving and transmitting of signals of two Wi-Fi frequency bands. The first Wi-Fi module and the second Wi-Fi module support different frequency bands, for example, the first Wi-Fi module supports a 2.4g (hz) frequency band, and the second Wi-Fi module supports a 5g (hz) frequency band; or the first Wi-Fi module supports a 5G (Hz) frequency band, and the second Wi-Fi module supports a 2.4G (Hz) frequency band.
The first Wi-Fi data link is a data connection path which is established between the mobile terminal and the wireless network and is connected through the first Wi-Fi module interface. The second Wi-Fi data link is a data connection path established between the mobile terminal and the wireless network and connected through the second Wi-Fi module interface. The first Wi-Fi data link supports data receiving and sending of a first Wi-Fi frequency band, and the second Wi-Fi data link supports data receiving and sending of a second Wi-Fi frequency band. The first Wi-Fi band is different from the second Wi-Fi band, for example, the first Wi-Fi band is 2.4g (hz) band, and the second Wi-Fi band is 5g (hz) band.
The link quality of the first Wi-Fi data link can be determined by the uplink and downlink data transmission rate, the round-trip delay, the packet loss rate, the bit error rate and the like of the first Wi-Fi data link. The higher the transmission rate of the uplink and downlink data, the smaller the round-trip delay, the lower the packet loss rate and the bit error rate, and the higher the link quality of the first Wi-Fi data link; the lower the transmission rate of the uplink and downlink data, the larger the round-trip delay, the higher the packet loss rate and the higher the error rate, and the lower the link quality of the first Wi-Fi data link. Similarly, the link quality of the second Wi-Fi data link may be determined by the uplink and downlink data transmission rate, the round trip delay, the packet loss rate, the bit error rate, and the like of the second Wi-Fi data link.
The link quality of the first Wi-Fi data link can be scored based on the uplink and downlink data transmission rate, the round-trip delay, the packet loss rate and the bit error rate of the first Wi-Fi data link, so that the quality score of the first Wi-Fi data link is obtained. Similarly, the link quality of the second Wi-Fi data link may be scored based on the uplink and downlink data transmission rate, the round trip delay, the packet loss rate, and the bit error rate of the second Wi-Fi data link, so as to obtain a quality score of the second Wi-Fi data link.
Wherein the first Wi-Fi data link comprises a first Wi-Fi uplink and a first Wi-Fi downlink. The quality of the first Wi-Fi uplink data link is determined by the uplink data transmission rate, round-trip delay, packet loss rate, bit error rate and the like of the first Wi-Fi uplink data link. The quality of the first Wi-Fi downlink data link is determined by the transmission rate, the round-trip delay, the packet loss rate, the bit error rate and the like of the downlink data of the first Wi-Fi downlink data link. Similarly, the second Wi-Fi data link includes a second Wi-Fi uplink data link and a second Wi-Fi downlink data link.
Before executing step 201, the mobile terminal starts the intelligent link aggregation function and only opens the Wi-Fi connection.
Link aggregation means that a mobile terminal can use two or more network ports to surf the internet at the same time, for example, two Wi-Fi networks can be opened at the same time for network access through link aggregation on a smart phone. The intelligent Link Aggregation (SLA) function refers to intelligently distributing the internet surfing requests of users to different internet surfing interfaces (a first Wi-Fi module interface and a second Wi-Fi module interface).
Specifically, the embodiment of the mobile terminal detecting the link quality of the first Wi-Fi data link may be:
the mobile terminal measures the data transmission rate, the round-trip delay, the packet loss rate and the bit error rate of a first Wi-Fi data link; and determining the link quality of the first Wi-Fi data link based on the data transmission rate, the round trip delay, the packet loss rate and the bit error rate of the first Wi-Fi data link.
Specifically, the embodiment of the mobile terminal detecting the link quality of the second Wi-Fi data link may be as follows:
the mobile terminal measures the data transmission rate, the round-trip delay, the packet loss rate and the bit error rate of the second Wi-Fi data link; determining link quality of the second Wi-Fi data link based on data transmission rate, round-trip delay, packet loss rate and bit error rate of the second Wi-Fi data link;
specifically, the embodiment of the mobile terminal detecting the link quality of the first Wi-Fi data link and detecting the link quality of the second Wi-Fi data link may be as follows:
the mobile terminal measures the maximum data transmission rate of a first Wi-Fi data link and measures the maximum data transmission rate of a second Wi-Fi data link; determining a link quality of the first Wi-Fi data link and a link quality of the second Wi-Fi data link based on the maximum data transmission rate of the first Wi-Fi data link and the maximum data transmission rate of the second Wi-Fi data link.
In the embodiment of the application, the link quality of the first Wi-Fi data link and the link quality of the second Wi-Fi data link are calculated according to the following formulas:
weigh_wi-fi_1=max_speed_wi-fi_1/(max_speed_wi-fi_1+max_speed_wi-fi_2);
weigh_wi-fi_2=max_speed_wi-fi_2/(max_speed_wi-fi_1+max_speed_wi-fi_2);
wherein, weight _ Wi-Fi _1 represents the link quality of the first Wi-Fi data link, weight _ Wi-Fi _2 represents the link quality of the second Wi-Fi data link, max _ speed _ Wi-Fi _1 represents the maximum data transmission rate of the first Wi-Fi data link, and max _ speed _ Wi-Fi _2 represents the maximum data transmission rate of the second Wi-Fi data link. The sum of the link quality of the first Wi-Fi data link and the link quality of the second Wi-Fi data link is equal to 1.
Optionally, the maximum data transmission rate of the first Wi-Fi data link and the maximum data transmission rate of the second Wi-Fi data link may be modified by a data increment calculation rate of a Wi-Fi receive (rx) interface.
For example, data increment calculation rates on a first Wi-Fi receiving (rx) interface and a second Wi-Fi receiving (rx) interface are counted every 1s, and the maximum data transmission rate of the first Wi-Fi data link and the maximum data transmission rate of the second Wi-Fi data link are corrected through the data increment calculation rates.
tmp_speed=(rx_bytes-last_rx_bytes)/1;
The modified max _ speed _ wi-fi _1 is max (max _ speed _ wi-fi _1, tmp _ speed);
the modified max _ speed _ wi-fi _2 is max (max _ speed _ wi-fi _2, tmp _ speed);
wherein rx _ bytes represents the data receiving amount on the first Wi-Fi interface and the second Wi-Fi interface within one second, last _ rx _ bytes represents the data receiving amount on the first Wi-Fi interface and the second Wi-Fi interface within the last second, tmp _ speed represents the data incremental calculation rate, max _ speed _ Wi-Fi _1 represents the maximum data transmission rate of the first Wi-Fi data link, and max _ speed _ Wi-Fi _2 represents the maximum data transmission rate of the second Wi-Fi data link. The modified max _ speed _ wi-fi _1 is the maximum value of the max _ speed _ wi-fi _1 and the tmp _ speed, and the modified max _ speed _ wi-fi _2 is the maximum value of the max _ speed _ wi-fi _2 and the tmp _ speed.
Optionally, the maximum data transmission rate of the first Wi-Fi data link and the maximum data transmission rate of the second Wi-Fi data link may be modified by a statistical Round-Trip Time (rtt).
For example, the mobile terminal may calculate the delay on the two interfaces (the first Wi-Fi module interface and the second Wi-Fi module interface) based on the rtt of the tcp itself, and one data link may calculate only the rtt of the first request after the three-way handshake, such as the rrt of the http get and the http post. The 3-way handshake refers to 3 acknowledgement procedures for TCP to establish a connection. The Transmission Control Protocol (tcp) counts rtt through a tcp _ rtt _ estimator () function to calculate a Retransmission Timeout (RTO), so that the delay calculation is calculated in the tcp _ rtt _ estimator () function.
The mobile terminal respectively determines a current first RTT of a first Wi-Fi data link and a current first RTT of a second Wi-Fi data link, and the method comprises the following steps:
the mobile terminal determines a second RTT for operating a Transmission Control Protocol (TCP);
the mobile terminal respectively acquires a third RTT determined last time by the first Wi-Fi module and the second Wi-Fi module;
and the mobile terminal determines the current first RTT of the first Wi-Fi module and the second Wi-Fi module based on the determined second RTT and the obtained third RTT which is determined last time by the first W-iFi module and the second Wi-Fi module.
Specifically, the following formula can be adopted to calculate the current first RTT of the first Wi-Fi data link and the current first RTT of the second Wi-Fi data link:
rtt_wi-fi_11=(rtt_wi-fi_13+rtt_2)/2
rtt_wi-fi_21=(rtt_wi-fi_23+rtt_2)/2
wherein, RTT _ Wi-Fi _11 represents a current first RTT of the first Wi-Fi data link, RTT _2 represents a second RTT of running a Transmission Control Protocol (TCP), and RTT _ Wi-Fi _13 represents a last determined third RTT of the first Wi-Fi data link; RTT _ Wi-Fi _21 represents a current first RTT of the second Wi-Fi data link, RTT _2 represents a second RTT of the second Wi-Fi data link running a transmission control protocol TCP, and RTT _ Wi-Fi _23 represents a last determined third RTT of the second Wi-Fi data link.
According to the embodiment of the application, the data transmission rate and the round trip delay are considered, and the calculation accuracy of the link quality of the first Wi-Fi data link and the link quality of the second WiFi data link can be improved.
In one possible example, before the mobile terminal detects a link quality of a first Wi-Fi data link and detects a link quality of a second Wi-Fi data link, the method further comprises:
the mobile terminal searches for available Wi-Fi hotspots around;
if the first Wi-Fi hotspot and the second Wi-Fi hotspot are searched to be available Wi-Fi hotspots, the mobile terminal respectively acquires working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot;
if the working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot do not belong to the same frequency band, the mobile terminal is connected with the first Wi-Fi hotspot and the second Wi-Fi hotspot to establish a first Wi-Fi data link and a second Wi-Fi data link.
Wherein, the Wi-Fi hotspot available refers to a hotspot through which a connection to a wireless network is possible.
The available Wi-Fi hotspots generally comprise 2.4G frequency band Wi-Fi hotspots and 5G frequency band Wi-Fi hotspots, and if the working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot do not belong to the same frequency band, one of the first Wi-Fi hotspot and the second Wi-Fi hotspot is the 2.4G frequency band, and the other is the 5G frequency band. Because the mobile terminal comprises the first Wi-Fi module and the second Wi-Fi module, signals in two Wi-Fi frequency bands can be received and transmitted at the same time, the mobile terminal can be connected with two Wi-Fi hot spots in different frequency bands at the same time, and a Wi-Fi data link in the first frequency band and a Wi-Fi data link in the second frequency band are established.
The data packets transmitted in the first Wi-Fi data link need to pass through the first Wi-Fi hotspot, and the data packets transmitted in the second Wi-Fi data link need to pass through the second Wi-Fi hotspot.
Further, the method further comprises:
if the working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot belong to the same frequency band, the mobile terminal determines whether the first Wi-Fi hotspot or the second Wi-Fi hotspot is a dual-frequency-band Wi-Fi hotspot;
if at least one of the first Wi-Fi hotspot and the second Wi-Fi hotspot is a dual-band Wi-Fi hotspot, the mobile terminal sends a frequency band switching instruction to one of the first Wi-Fi hotspot and the second Wi-Fi hotspot, wherein the frequency band switching instruction is used for switching the working frequency band of one of the first Wi-Fi hotspot and the second Wi-Fi hotspot;
and when the working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot do not belong to the same frequency band, connecting the first Wi-Fi hotspot and the second Wi-Fi hotspot, and establishing a first Wi-Fi data link and a second Wi-Fi data link.
The dual-band Wi-Fi hotspot refers to a Wi-Fi hotspot supporting two frequency bands. A dual band Wi-Fi hotspot can switch between the two frequency bands.
Therefore, when the frequency bands of the two Wi-Fi hotspots connected with the mobile terminal belong to the same frequency band, in order to meet the requirement that the mobile terminal supports the function of aggregating the two Wi-Fi links, the working frequency band of one of the two Wi-Fi hotspots supporting the dual-frequency band Wi-Fi hotspot can be switched, the working frequency band of the dual-frequency band Wi-Fi hotspot connected with the mobile terminal can be intelligently switched, so that the requirement that the mobile terminal is connected with the two Wi-Fi hotspots of different frequency bands is met, and the function of aggregating the two Wi-Fi links is realized.
Step 202: the mobile terminal obtains a data packet to be transmitted, and determines transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link and the data packet to be transmitted.
In one possible example, the mobile terminal determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted includes:
the mobile terminal analyzes the data packet to be transmitted to obtain a plurality of first sub data packets;
if the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, the mobile terminal determines that the transmission information is that the first Wi-Fi data link is used for transmitting at least one first sub-packet i in the plurality of first sub-packets, and the second Wi-Fi data link is used for transmitting at least one first sub-packet j in the plurality of first sub-packets, wherein the size of the first sub-packet i is greater than that of the first sub-packet j.
Further, the method further comprises:
if the link quality of the first Wi-Fi data link is smaller than the link quality of the second Wi-Fi data link, the mobile terminal determines that the transmission information is at least one first sub-data packet i in the plurality of first sub-data packets transmitted by using the second Wi-Fi data link, and at least one first sub-data packet j in the plurality of first sub-data packets transmitted by using the first Wi-Fi data link, wherein the size of the first sub-data packet i is larger than that of the first sub-data packet j.
As can be seen, in this example, the mobile terminal transmits at least one first sub-packet i of the plurality of first sub-packets using the second Wi-Fi data link and transmits at least one first sub-packet j of the plurality of first sub-packets using the first Wi-Fi data link, and since the link quality of the second Wi-Fi data link is greater than that of the first Wi-Fi data link and the size of the first sub-packet i is greater than that of the first sub-packet j, the speed of data transmission can be increased.
In one possible example, the mobile terminal determines transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, including:
the mobile terminal analyzes the data packet to be transmitted to obtain a plurality of second sub data packets;
if the link quality of the first Wi-Fi data link is smaller than the link quality of the second Wi-Fi data link, the mobile terminal determines that the transmission information is at least one second sub-packet p of the second sub-packets transmitted by using the second Wi-Fi data link, and at least one second sub-packet q of the second sub-packets transmitted by using the first Wi-Fi data link, where an importance degree of the second sub-packet p is greater than an importance degree of the second sub-packet q.
Further, the method further comprises:
if the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, the mobile terminal determines that the transmission information is at least one second sub-data packet p in the plurality of second sub-data packets transmitted by using the first Wi-Fi data link, and at least one second sub-data packet q in the plurality of second sub-data packets transmitted by using the second Wi-Fi data link, wherein the importance degree of the second sub-data packet p is greater than that of the second sub-data packet q.
As can be seen, in this example, the mobile terminal transmits at least one second subpacket p of the plurality of second subpackets by using the first Wi-Fi data link and transmits at least one second subpacket q of the plurality of second subpackets by using the second Wi-Fi data link, because the link quality of the second Wi-Fi data link is greater than that of the first Wi-Fi data link and the importance degree of the second subpacket p is greater than that of the second subpacket q, the data transmission speed is increased, and meanwhile, the security of important data packet transmission is increased to some extent.
In one possible example, the mobile terminal determines transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, including:
the mobile terminal analyzes the data packet to be transmitted to obtain a plurality of third sub data packets;
if the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, the mobile terminal determines that the transmission information is that the first Wi-Fi data link is used for transmitting at least one third sub-packet m of the third sub-packets, and the second Wi-Fi data link is used for transmitting at least one third sub-packet n of the third sub-packets, wherein the real-time performance of the application corresponding to the third sub-packet m is higher than that of the application corresponding to the third sub-packet n.
Further, the method further comprises:
if the link quality of the first Wi-Fi data link is smaller than the link quality of the second Wi-Fi data link, the mobile terminal determines that the transmission information is that at least one third sub-data packet m in the multiple third sub-data packets is transmitted by using the second Wi-Fi data link, and at least one third sub-data packet n in the multiple third sub-data packets is transmitted by using the first Wi-Fi data link, wherein the real-time performance of the application corresponding to the third sub-data packet m is higher than that of the application corresponding to the third sub-data packet n.
As can be seen, in this example, the mobile terminal transmits at least one third sub-packet m of the plurality of third sub-packets using the first Wi-Fi data link and transmits at least one third sub-packet n of the plurality of third sub-packets using the second Wi-Fi data link, because the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link and the real-time property of the application corresponding to the third sub-packet m is higher than the real-time property of the application corresponding to the third sub-packet n, not only the data transmission speed is increased, but also the internet experience of the user is improved.
In one possible example, the mobile terminal determines transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, including:
if the data packet to be transmitted is a data packet of the video application, the mobile terminal determines a target segmentation proportion corresponding to the size of the data packet to be transmitted based on the mapping relation between the size of the data packet and the segmentation proportion;
the mobile terminal performs data packet segmentation operation on the data packet to be transmitted based on the target segmentation proportion to obtain a first buffer sub data packet and a second buffer sub data packet, wherein the playing time corresponding to the first buffer sub data packet is earlier than the playing time corresponding to the second buffer sub data packet;
if the link quality of the first Wi-Fi data link is smaller than the link quality of the second Wi-Fi data link, the mobile terminal determines that the transmission information is that the first buffer sub-data packet is transmitted by using the second Wi-Fi data link, and the second buffer sub-data packet is transmitted by using the first Wi-Fi data link.
Further, the method further comprises:
and if the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, the mobile terminal determines that the transmission information is that the first buffer sub-data packet is transmitted by using the first Wi-Fi data link and the second buffer sub-data packet is transmitted by using the second Wi-Fi data link.
As can be seen, in this example, the mobile terminal transmits the first buffered sub data packet using the second Wi-Fi data link and transmits the second buffered sub data packet using the first Wi-Fi data link, and since the link quality of the first Wi-Fi data link is smaller than the link quality of the second Wi-Fi data link and the playing time corresponding to the first buffered sub data packet is earlier than the playing time corresponding to the second buffered sub data packet, not only is the data transmission speed increased, but also the video experience of the user is improved.
In one possible example, after the mobile terminal obtains the data packet to be transmitted, the method further includes:
the mobile terminal acquires the current residual electric quantity of the mobile terminal;
the mobile terminal determines transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link and the data packet to be transmitted, and the method comprises the following steps:
the mobile terminal determines an initial data packet distribution ratio between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link and the link quality of the second Wi-Fi data link;
if the residual electric quantity is smaller than a first threshold value, the size of the data packet to be transmitted is larger than or equal to a second threshold value, and the link quality of the first Wi-Fi data link is larger than that of the second Wi-Fi data link, the mobile terminal improves the initial data packet distribution proportion between the first Wi-Fi data link and the second Wi-Fi data link to obtain the data packet distribution proportion between the first Wi-Fi data link and the second Wi-Fi data link;
and the mobile terminal takes the proportion of the data packet distribution between the first Wi-Fi data link and the second Wi-Fi data link as the transmission information.
Further, the method further comprises:
if the residual electric quantity is smaller than a first threshold value, the size of a data packet to be transmitted is larger than or equal to a second threshold value, and the link quality of the first Wi-Fi data link is smaller than that of the second Wi-Fi data link, the mobile terminal reduces the initial data packet distribution proportion between the first Wi-Fi data link and the second Wi-Fi data link to obtain the data packet distribution proportion between the first Wi-Fi data link and the second Wi-Fi data link;
the mobile terminal takes the data packet distribution ratio between the first Wi-Fi data link and the second Wi-Fi data link as transmission information.
As can be seen, in this example, when the remaining power of the mobile terminal is less than the first threshold, the size of the data packet to be transmitted is greater than or equal to the second threshold, and the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, the mobile terminal increases the initial data packet allocation ratio between the first Wi-Fi data link and the second Wi-Fi data link, thereby increasing the data transmission speed and reducing the transmission duration required by the data packet to be transmitted.
Step 203: and the mobile terminal transmits the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information.
The mobile terminal may send an uplink data packet and may also receive a downlink data packet. The data packet to be transmitted may be an uplink data packet or a downlink data packet. For uplink data packets, the mobile terminal may transmit the uplink data packets in the first Wi-Fi uplink and the second Wi-Fi uplink based on the transmission information; for downlink data packets, the mobile terminal may transmit the downlink data packets in the first Wi-Fi downlink and the second Wi-Fi downlink based on the transmission information.
It can be seen that, in the embodiment of the present application, the mobile terminal determines transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, and transmits the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information. Therefore, the data packet to be transmitted can be transmitted by using the first Wi-Fi data link and the second Wi-Fi data link together in the link aggregation state, the data transmission speed is improved, and the internet surfing experience of a user is further improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of another link aggregation data transmission method according to an embodiment of the present application, and fig. 3 is further optimized on the basis of fig. 2, where the link aggregation data transmission method includes:
step 301: the mobile terminal searches for available Wi-Fi hotspots around.
Step 302: if the first Wi-Fi hotspot and the second Wi-Fi hotspot are searched to be available Wi-Fi hotspots, the mobile terminal respectively obtains working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot.
Step 303: if the working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot do not belong to the same frequency band, the mobile terminal is connected with the first Wi-Fi hotspot and the second Wi-Fi hotspot to establish a first Wi-Fi data link and a second Wi-Fi data link.
Step 304: the mobile terminal detects a link quality of the first Wi-Fi data link and detects a link quality of the second Wi-Fi data link.
Step 305: the mobile terminal obtains a data packet to be transmitted.
Step 306: and the mobile terminal analyzes the data packet to be transmitted to obtain a plurality of first sub data packets.
Step 307: if the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, the mobile terminal determines that the transmission information is that the first Wi-Fi data link is used for transmitting at least one first sub-packet i in the plurality of first sub-packets, and the second Wi-Fi data link is used for transmitting at least one first sub-packet j in the plurality of first sub-packets, wherein the size of the first sub-packet i is greater than that of the first sub-packet j.
Step 308: and the mobile terminal transmits the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information.
It should be noted that, the specific implementation of the steps of the method shown in fig. 3 can refer to the specific implementation described in the above method, and will not be described here.
The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the method-side implementation process. It is understood that the mobile terminal includes hardware structures and/or software modules for performing the respective functions in order to realize the functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the mobile terminal may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The following is an embodiment of the apparatus of the present application, which is used to execute the method implemented by the embodiment of the method of the present application. Referring to fig. 4, fig. 4 is a link aggregation data transmission apparatus 400 according to an embodiment of the present application, where the link aggregation data transmission apparatus 400 includes:
a detecting unit 401, configured to detect a link quality of a first Wi-Fi data link, and detect a link quality of a second Wi-Fi data link;
an obtaining unit 402, configured to obtain a data packet to be transmitted;
a determining unit 403, configured to determine transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted;
a transmitting unit 404, configured to transmit the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information.
It can be seen that, in the embodiment of the present application, transmission information between the first Wi-Fi data link and the second Wi-Fi data link is determined based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted is transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information. Therefore, the data packet to be transmitted can be transmitted by using the first Wi-Fi data link and the second Wi-Fi data link together in the link aggregation state, the data transmission speed is improved, and the internet surfing experience of a user is further improved.
In one possible example, the link aggregated data transmission apparatus 400 further includes:
a searching unit 405, configured to search for available Wi-Fi hotspots around;
a first obtaining unit 406, configured to obtain working frequency bands of a first Wi-Fi hotspot and a second Wi-Fi hotspot, respectively, if the first Wi-Fi hotspot and the second Wi-Fi hotspot are found to be available Wi-Fi hotspots;
a connection establishing unit 407, configured to connect the first Wi-Fi hotspot and the second Wi-Fi hotspot if the working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot do not belong to the same frequency band, and establish the first Wi-Fi data link and the second Wi-Fi data link.
In one possible example, in terms of determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, the determining unit 403 is specifically configured to:
analyzing the data packet to be transmitted to obtain a plurality of first sub data packets;
if the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, determining that the transmission information is to transmit at least one first sub-packet i of the plurality of first sub-packets by using the first Wi-Fi data link, and transmit at least one first sub-packet j of the plurality of first sub-packets by using the second Wi-Fi data link, wherein the size of the first sub-packet i is greater than that of the first sub-packet j.
In one possible example, in terms of determining the transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, the determining unit 403 is specifically configured to:
analyzing the data packet to be transmitted to obtain a plurality of second sub data packets;
if the link quality of the first Wi-Fi data link is smaller than the link quality of the second Wi-Fi data link, determining that the transmission information is to transmit at least one second sub-packet p in the plurality of second sub-packets by using the second Wi-Fi data link, and transmit at least one second sub-packet q in the plurality of second sub-packets by using the first Wi-Fi data link, wherein the importance degree of the second sub-packet p is greater than that of the second sub-packet q.
In one possible example, in terms of determining the transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, the determining unit 403 is specifically configured to:
analyzing the data packet to be transmitted to obtain a plurality of third sub data packets;
if the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, determining that the transmission information is that the first Wi-Fi data link is used for transmitting at least one third sub-packet m of the third sub-packets, and the second Wi-Fi data link is used for transmitting at least one third sub-packet n of the third sub-packets, wherein the application real-time performance of the third sub-packet m is higher than that of the third sub-packet n.
In one possible example, in terms of determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, the determining unit 403 is specifically configured to:
if the data packet to be transmitted is a data packet of the video application, determining a target segmentation proportion corresponding to the size of the data packet to be transmitted based on the mapping relation between the size of the data packet and the segmentation proportion;
performing data packet segmentation operation on the data packet to be transmitted based on the target segmentation proportion to obtain a first buffer sub data packet and a second buffer sub data packet, wherein the playing time corresponding to the first buffer sub data packet is earlier than the playing time corresponding to the second buffer sub data packet;
and if the link quality of the first Wi-Fi data link is smaller than the link quality of the second Wi-Fi data link, determining that the transmission information is that the first buffer sub-data packet is transmitted by using the second Wi-Fi data link, and the second buffer sub-data packet is transmitted by using the first Wi-Fi data link.
In one possible example, the link aggregated data transmission apparatus 400 further includes:
a second obtaining unit 408, configured to obtain a current remaining power of the mobile terminal;
in terms of determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, the determining unit 403 is specifically configured to:
determining an initial packet allocation ratio between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link and the link quality of the second Wi-Fi data link;
if the residual electric quantity is smaller than a first threshold value, the size of the data packet to be transmitted is larger than or equal to a second threshold value, the link quality of the first Wi-Fi data link is larger than the link quality of the second Wi-Fi data link, and then the initial data packet distribution proportion between the first Wi-Fi data link and the second Wi-Fi data link is improved, so that the data packet distribution proportion between the first Wi-Fi data link and the second Wi-Fi data link is obtained;
and taking the proportion of data packets between the first Wi-Fi data link and the second Wi-Fi data link as the transmission information.
In accordance with the embodiments shown in fig. 2 and fig. 3, please refer to fig. 5, fig. 5 is a schematic structural diagram of a mobile terminal provided in an embodiment of the present application, where the mobile terminal includes a plurality of wireless network modules, and as shown, the mobile terminal includes a processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps:
detecting a link quality of a first Wi-Fi data link and detecting a link quality of a second Wi-Fi data link;
acquiring a data packet to be transmitted, and determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link and the data packet to be transmitted;
and transmitting the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information.
It can be seen that, in the embodiment of the present application, the mobile terminal determines transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, and transmits the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information. Therefore, the data packet to be transmitted can be transmitted by using the first Wi-Fi data link and the second Wi-Fi data link together in the link aggregation state, the data transmission speed is improved, and the internet surfing experience of a user is improved.
In one possible example, prior to detecting the link quality of the first Wi-Fi data link and detecting the link quality of the second Wi-Fi data link, the program further includes instructions for:
searching for available Wi-Fi hotspots around;
if the first Wi-Fi hotspot and the second Wi-Fi hotspot are searched to be available Wi-Fi hotspots, respectively acquiring working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot;
if the working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot do not belong to the same frequency band, connecting the first Wi-Fi hotspot and the second Wi-Fi hotspot, and establishing the first Wi-Fi data link and the second Wi-Fi data link.
In one possible example, in determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, the program includes instructions specifically for performing the steps of:
analyzing the data packet to be transmitted to obtain a plurality of first sub data packets;
if the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, determining that the transmission information is to transmit at least one first sub-packet i of the plurality of first sub-packets by using the first Wi-Fi data link, and transmit at least one first sub-packet j of the plurality of first sub-packets by using the second Wi-Fi data link, wherein the size of the first sub-packet i is greater than that of the first sub-packet j.
In one possible example, in determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, the program includes instructions specifically for performing the steps of:
analyzing the data packet to be transmitted to obtain a plurality of second sub data packets;
if the link quality of the first Wi-Fi data link is smaller than the link quality of the second Wi-Fi data link, determining that the transmission information is at least one second sub-packet p in the plurality of second sub-packets transmitted by using the second Wi-Fi data link, and at least one second sub-packet q in the plurality of second sub-packets transmitted by using the first Wi-Fi data link, where an importance degree of the second sub-packet p is greater than an importance degree of the second sub-packet q.
In one possible example, in determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, the program includes instructions specifically for performing the steps of:
analyzing the data packet to be transmitted to obtain a plurality of third sub data packets;
if the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, determining that the transmission information is that the first Wi-Fi data link is used for transmitting at least one third sub-packet m of the third sub-packets, and the second Wi-Fi data link is used for transmitting at least one third sub-packet n of the third sub-packets, wherein the application real-time performance of the third sub-packet m is higher than that of the third sub-packet n.
In one possible example, in determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, the program includes instructions specifically for performing the steps of:
if the data packet to be transmitted is a data packet of the video application, determining a target segmentation proportion corresponding to the size of the data packet to be transmitted based on the mapping relation between the size of the data packet and the segmentation proportion;
performing data packet segmentation operation on the data packet to be transmitted based on the target segmentation proportion to obtain a first buffer sub data packet and a second buffer sub data packet, wherein the playing time corresponding to the first buffer sub data packet is earlier than the playing time corresponding to the second buffer sub data packet;
and if the link quality of the first Wi-Fi data link is smaller than the link quality of the second Wi-Fi data link, determining that the transmission information is that the first buffer sub-data packet is transmitted by using the second Wi-Fi data link, and the second buffer sub-data packet is transmitted by using the first Wi-Fi data link.
In one possible example, after obtaining the data packet to be transmitted, the program further includes instructions for performing the following steps:
acquiring the current residual electric quantity of the mobile terminal;
in determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted, the program includes instructions specifically for performing the steps of:
determining an initial packet allocation ratio between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link and the link quality of the second Wi-Fi data link;
if the residual electric quantity is smaller than a first threshold value, the size of the data packet to be transmitted is larger than or equal to a second threshold value, the link quality of the first Wi-Fi data link is larger than the link quality of the second Wi-Fi data link, and then the initial data packet distribution proportion between the first Wi-Fi data link and the second Wi-Fi data link is improved, so that the data packet distribution proportion between the first Wi-Fi data link and the second Wi-Fi data link is obtained;
and taking the distribution ratio of the data packets between the first Wi-Fi data link and the second Wi-Fi data link as the transmission information.
Embodiments of the present application further provide a computer storage medium for storing a computer program, where the computer program is executed by a processor to implement part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the above-described units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several 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 above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method for data transmission with link aggregation, the method comprising:
detecting a link quality of a first Wi-Fi data link and detecting a link quality of a second Wi-Fi data link; wherein a maximum data transmission rate of the first Wi-Fi data link and a maximum data transmission rate of the second Wi-Fi data link are measured; determining link quality of the first Wi-Fi data link and link quality of the second Wi-Fi data link based on the corrected maximum data transmission rate of the first Wi-Fi data link and the corrected maximum data transmission rate of the second Wi-Fi data link; correcting the measured maximum data transmission rate of the first Wi-Fi data link and the measured maximum data transmission rate of the second Wi-Fi data link through a data increment calculation rate of a Wi-Fi receiving interface, wherein the corrected maximum data transmission rate of the first Wi-Fi data link is the maximum value of the measured maximum data transmission rate of the first Wi-Fi data link and the data increment calculation rate, the corrected maximum data transmission rate of the second Wi-Fi data link is the maximum value of the measured maximum data transmission rate of the second Wi-Fi data link and the data increment calculation rate, and the data increment calculation rate is the maximum value of the measured data transmission rate of the second Wi-Fi data link and the data increment calculation rate, wherein the data increment calculation rate is the data receiving amount on the first Wi-Fi interface and the second Wi-Fi interface in one second and the data receiving amount on the first Wi-Fi interface and the second Wi-Fi interface in the last second Difference in yield;
acquiring a data packet to be transmitted, and determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link and the data packet to be transmitted;
and transmitting the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information.
2. The method of claim 1, wherein prior to detecting the link quality of the first Wi-Fi data link and detecting the link quality of the second Wi-Fi data link, the method further comprises:
searching for available Wi-Fi hotspots around;
if the first Wi-Fi hotspot and the second Wi-Fi hotspot are searched to be available Wi-Fi hotspots, respectively acquiring working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot;
if the working frequency bands of the first Wi-Fi hotspot and the second Wi-Fi hotspot do not belong to the same frequency band, connecting the first Wi-Fi hotspot and the second Wi-Fi hotspot, and establishing the first Wi-Fi data link and the second Wi-Fi data link.
3. The method of claim 1 or 2, wherein the determining the transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted comprises:
analyzing the data packet to be transmitted to obtain a plurality of first sub data packets;
if the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, determining that the transmission information is to transmit at least one first sub-packet i of the plurality of first sub-packets by using the first Wi-Fi data link, and transmit at least one first sub-packet j of the plurality of first sub-packets by using the second Wi-Fi data link, wherein the size of the first sub-packet i is greater than that of the first sub-packet j.
4. The method of claim 1 or 2, wherein the determining the transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted comprises:
analyzing the data packet to be transmitted to obtain a plurality of second sub data packets;
if the link quality of the first Wi-Fi data link is smaller than the link quality of the second Wi-Fi data link, determining that the transmission information is at least one second sub-packet p in the plurality of second sub-packets transmitted by using the second Wi-Fi data link, and at least one second sub-packet q in the plurality of second sub-packets transmitted by using the first Wi-Fi data link, where an importance degree of the second sub-packet p is greater than an importance degree of the second sub-packet q.
5. The method of claim 1 or 2, wherein the determining the transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted comprises:
analyzing the data packet to be transmitted to obtain a plurality of third sub data packets;
if the link quality of the first Wi-Fi data link is greater than the link quality of the second Wi-Fi data link, determining that the transmission information is that the first Wi-Fi data link is used for transmitting at least one third sub-packet m of the third sub-packets, and the second Wi-Fi data link is used for transmitting at least one third sub-packet n of the third sub-packets, wherein the application real-time performance of the third sub-packet m is higher than that of the third sub-packet n.
6. The method of claim 1 or 2, wherein the determining the transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted comprises:
if the data packet to be transmitted is a data packet of the video application, determining a target segmentation proportion corresponding to the size of the data packet to be transmitted based on the mapping relation between the size of the data packet and the segmentation proportion;
performing data packet segmentation operation on the data packet to be transmitted based on the target segmentation proportion to obtain a first buffer sub data packet and a second buffer sub data packet, wherein the playing time corresponding to the first buffer sub data packet is earlier than the playing time corresponding to the second buffer sub data packet;
if the link quality of the first Wi-Fi data link is smaller than the link quality of the second Wi-Fi data link, determining that the transmission information is that the first buffer sub-packet is transmitted by using the second Wi-Fi data link, and the second buffer sub-packet is transmitted by using the first Wi-Fi data link.
7. The method according to claim 1 or 2, wherein after obtaining the data package to be transmitted, the method further comprises:
acquiring the current residual electric quantity of the mobile terminal;
the determining transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted includes:
determining an initial packet allocation ratio between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link and the link quality of the second Wi-Fi data link;
if the residual electric quantity is smaller than a first threshold value, the size of the data packet to be transmitted is larger than or equal to a second threshold value, the link quality of the first Wi-Fi data link is larger than the link quality of the second Wi-Fi data link, and then the initial data packet distribution proportion between the first Wi-Fi data link and the second Wi-Fi data link is improved, so that the data packet distribution proportion between the first Wi-Fi data link and the second Wi-Fi data link is obtained;
and taking the distribution ratio of the data packets between the first Wi-Fi data link and the second Wi-Fi data link as the transmission information.
8. An apparatus for link aggregated data transmission, the apparatus comprising:
the detection unit is used for detecting the link quality of the first Wi-Fi data link and detecting the link quality of the second Wi-Fi data link; wherein a maximum data transmission rate of the first Wi-Fi data link and a maximum data transmission rate of the second Wi-Fi data link are measured; determining link quality of the first Wi-Fi data link and link quality of the second Wi-Fi data link based on the corrected maximum data transmission rate of the first Wi-Fi data link and the corrected maximum data transmission rate of the second Wi-Fi data link; correcting the measured maximum data transmission rate of the first Wi-Fi data link and the measured maximum data transmission rate of the second Wi-Fi data link through a data increment calculation rate of a Wi-Fi receiving interface, wherein the corrected maximum data transmission rate of the first Wi-Fi data link is the maximum value of the measured maximum data transmission rate of the first Wi-Fi data link and the data increment calculation rate, the corrected maximum data transmission rate of the second Wi-Fi data link is the maximum value of the measured maximum data transmission rate of the second Wi-Fi data link and the data increment calculation rate, and the data increment calculation rate is the maximum value of the measured data transmission rate of the second Wi-Fi data link and the data increment calculation rate, wherein the data increment calculation rate is the data receiving amount on the first Wi-Fi interface and the second Wi-Fi interface in one second and the data receiving amount on the first Wi-Fi interface and the second Wi-Fi interface in the last second Difference in yield;
the device comprises an acquisition unit, a transmission unit and a transmission unit, wherein the acquisition unit is used for acquiring a data packet to be transmitted;
a determining unit, configured to determine transmission information between the first Wi-Fi data link and the second Wi-Fi data link based on the link quality of the first Wi-Fi data link, the link quality of the second Wi-Fi data link, and the data packet to be transmitted;
a transmission unit, configured to transmit the data packet to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link based on the transmission information.
9. A mobile terminal comprising a processor, memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs including instructions for performing the steps in the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program, which is executed by a processor to implement the method according to any of claims 1-7.
CN201811602350.XA 2018-12-26 2018-12-26 Data transmission method for link aggregation and related device Active CN109495931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811602350.XA CN109495931B (en) 2018-12-26 2018-12-26 Data transmission method for link aggregation and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811602350.XA CN109495931B (en) 2018-12-26 2018-12-26 Data transmission method for link aggregation and related device

Publications (2)

Publication Number Publication Date
CN109495931A CN109495931A (en) 2019-03-19
CN109495931B true CN109495931B (en) 2022-06-17

Family

ID=65712346

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811602350.XA Active CN109495931B (en) 2018-12-26 2018-12-26 Data transmission method for link aggregation and related device

Country Status (1)

Country Link
CN (1) CN109495931B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385828B (en) * 2020-05-19 2020-09-15 成都极米科技股份有限公司 Method, terminal and system for receiving and transmitting data in wireless local area network and network access equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368736A (en) * 2011-11-10 2012-03-07 华为技术有限公司 Message sending method and equipment
CN102905319A (en) * 2012-10-23 2013-01-30 李文龙 Method and system for data flow distribution
CN105101438A (en) * 2015-07-10 2015-11-25 努比亚技术有限公司 Data allocation method and device for multiple data channels
CN106160800A (en) * 2016-06-22 2016-11-23 邦彦技术股份有限公司 Data transmission method and device
CN106851683A (en) * 2017-01-10 2017-06-13 青岛海信移动通信技术股份有限公司 Multifrequency carrier aggregation WIFI data transmission methods, device and terminal device
CN107682882A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 Data transmission method, mobile terminal and computer-readable recording medium
CN107708216A (en) * 2017-09-29 2018-02-16 努比亚技术有限公司 Data link distribution method, mobile terminal and computer-readable recording medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130265984A1 (en) * 2011-03-07 2013-10-10 Honggang Li Grouped machine-to-machine communications
KR20140044355A (en) * 2011-06-01 2014-04-14 가부시키가이샤 엔티티 도코모 Enhanced local access in mobile communications using small node devices

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368736A (en) * 2011-11-10 2012-03-07 华为技术有限公司 Message sending method and equipment
CN102905319A (en) * 2012-10-23 2013-01-30 李文龙 Method and system for data flow distribution
CN105101438A (en) * 2015-07-10 2015-11-25 努比亚技术有限公司 Data allocation method and device for multiple data channels
CN106160800A (en) * 2016-06-22 2016-11-23 邦彦技术股份有限公司 Data transmission method and device
CN106851683A (en) * 2017-01-10 2017-06-13 青岛海信移动通信技术股份有限公司 Multifrequency carrier aggregation WIFI data transmission methods, device and terminal device
CN107682882A (en) * 2017-09-29 2018-02-09 努比亚技术有限公司 Data transmission method, mobile terminal and computer-readable recording medium
CN107708216A (en) * 2017-09-29 2018-02-16 努比亚技术有限公司 Data link distribution method, mobile terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN109495931A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
EP3614629B1 (en) Data-stream allocation method for link aggregation and related devices
EP3917205A1 (en) Data packet distribution method and apparatus, mobile terminal, and storage medium
WO2020147627A1 (en) Link selection method and related apparatus
US11974168B2 (en) Method for data transmission through communication link, electronic device, and storage medium
CN110267327A (en) Business transmitting method and device
KR101693282B1 (en) Cooperative communication method, cloud server, and core network server
US9705802B2 (en) Adaptive non-real-time traffic control method and terminal for same
CN110798869A (en) Network switching method, electronic equipment and chip subsystem
US11070466B2 (en) Method for link aggregation and related devices
EP3905788B1 (en) Link aggregation implementation method and related device
CN112997528B (en) Network switching method and related equipment
CN109309943B (en) Multi-card multi-standby terminal, data card switching control method and device thereof, and storage medium
US20210289388A1 (en) Network Offload Method and Relevant Device
CN109587053B (en) Network shunting method and related equipment
CN110731113B (en) Data transmission method, device and storage medium
CN109495931B (en) Data transmission method for link aggregation and related device
WO2017008701A1 (en) Data transmission method, apparatus, and user device
WO2017008697A1 (en) Data transmission method and device, multi-channel routing method, and user equipment
EP3860259A1 (en) Harq process id determination method and apparatus, terminal, and medium
US9510273B2 (en) Communication system with cell selection mechanism and method of operation thereof
CN110856162B (en) Network configuration method and related device
CN108934079B (en) Resource scheduling method, terminal equipment and network side equipment
CN110247742B (en) Communication method, access hotspot equipment and terminal equipment
CN114172977B (en) Transmission Control Protocol (TCP) proxy method, device and base station
EP4149069A1 (en) Method and device for transmitting physical downlink control channel and storage medium

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