CN109617802B - Link aggregation implementation method and related product - Google Patents

Link aggregation implementation method and related product Download PDF

Info

Publication number
CN109617802B
CN109617802B CN201811527281.0A CN201811527281A CN109617802B CN 109617802 B CN109617802 B CN 109617802B CN 201811527281 A CN201811527281 A CN 201811527281A CN 109617802 B CN109617802 B CN 109617802B
Authority
CN
China
Prior art keywords
wireless networks
target
data
link
network
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
CN201811527281.0A
Other languages
Chinese (zh)
Other versions
CN109617802A (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 CN201811527281.0A priority Critical patent/CN109617802B/en
Publication of CN109617802A publication Critical patent/CN109617802A/en
Application granted granted Critical
Publication of CN109617802B publication Critical patent/CN109617802B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • 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
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a link aggregation implementation method and a related product, which are applied to electronic equipment, wherein the method comprises the following steps: network searching is carried out to obtain a plurality of wireless networks, and each wireless network corresponds to one hotspot device and one network state parameter; determining a distance value between the hotspot device corresponding to each wireless network in the plurality of wireless networks and the electronic device to obtain a plurality of distance values; determining the priority order of the wireless networks according to the distance values and the network state parameters of the wireless networks; and selecting at least two wireless networks from the plurality of wireless networks according to the priority order to carry out link aggregation operation. The method and the device can realize link aggregation and improve data transmission efficiency.

Description

Link aggregation implementation method and related product
Technical Field
The present application relates to the field of communications technologies, and in particular, to a link aggregation implementation method and a related product.
Background
With the development of mobile communication technology, the demand of users for data communication is increasing, and electronic devices (such as mobile phones, tablet computers, etc.) on the market at present are also more and more prone to use link aggregation technology, so the problem of how to implement link aggregation is urgently needed to be solved.
Disclosure of Invention
The embodiment of the application provides a link aggregation implementation method and a related product, which can implement link aggregation and improve data transmission efficiency.
In a first aspect, an embodiment of the present application provides a link aggregation implementation method, which is applied to an electronic device, and the method includes:
network searching is carried out to obtain a plurality of wireless networks, and each wireless network corresponds to one hotspot device and one network state parameter;
determining a distance value between the hotspot device corresponding to each wireless network in the plurality of wireless networks and the electronic device to obtain a plurality of distance values;
determining the priority order of the wireless networks according to the distance values and the network state parameters of the wireless networks;
and selecting at least two wireless networks from the plurality of wireless networks according to the priority order to carry out link aggregation operation.
In a second aspect, an embodiment of the present application provides a link aggregation implementing apparatus, which is applied to an electronic device, and includes a searching unit, a determining unit, and a network access unit, where,
the searching unit is used for searching a network to obtain a plurality of wireless networks, and each wireless network corresponds to one hotspot device and one network state parameter;
the determining unit is configured to determine a distance value between the hotspot device corresponding to each of the plurality of wireless networks and the electronic device, so as to obtain a plurality of distance values; determining the priority order of the wireless networks according to the distance values and the network state parameters of the wireless networks;
and the network access unit is used for selecting at least two wireless networks from the plurality of wireless networks according to the priority order to carry out link aggregation operation.
In a third aspect, an embodiment of the present application provides an electronic device, 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 the steps in the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide 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 as described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that the link aggregation implementation method and the related product described in the embodiments of the present application are applied to an electronic device, perform network search to obtain a plurality of wireless networks, where each wireless network corresponds to one hotspot device and one network state parameter, determine a distance value between the hotspot device corresponding to each wireless network in the plurality of wireless networks and the electronic device to obtain a plurality of distance values, determine a priority order of the plurality of wireless networks according to the plurality of distance values and the network state parameters of the plurality of wireless networks, and select at least two wireless networks from the plurality of wireless networks to perform link aggregation operation according to the priority order, so that at least two wireless networks with good network quality are selected from the plurality of wireless networks to implement link aggregation, and data transmission efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application 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, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a diagram of an example system architecture of a wireless communication system in which an electronic device according to an embodiment of the present application is located;
fig. 1B is a schematic flowchart of a method for implementing link aggregation according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another link aggregation implementation method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4A is a block diagram illustrating functional units of a link aggregation implementing apparatus according to an embodiment of the present application;
fig. 4B is a block diagram illustrating another functional unit of a link aggregation implementing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, 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 a part of the embodiments of the present application, and not all of the 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 terms "first," "second," and the like in the description and claims of the present application and in the above-described 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 electronic device according to the embodiment of the present application may be an electronic device with link aggregation implementation capability, and the electronic device 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), a Mobile Station (MS), a terminal device (terminal device), and the like. The mobile network device may be at least one of: base stations, servers, handheld devices with wireless communication capabilities, in-vehicle devices, wearable devices, computing devices or other processing devices connected to wireless modems, as well as various forms of user equipment, mobile stations, terminal devices, and the like.
The following describes embodiments of the present application in detail.
As shown in fig. 1A, an electronic device 101 according to the present application may be connected to a mobile data network 103, where the mobile data network is a communication network for transmitting data services; Wi-Fi 102, a technology that allows an electronic device to connect to a wireless local area network; the 2.4G UHF or 5G SHF ISM radio frequency bands are typically used; and bluetooth 104, a wireless technology standard, that enables short-range data exchange between fixed devices, mobile devices, and building personal area networks, among others.
In the embodiment of the present application, Wireless-Fidelity (Wi-Fi), which may also be referred to as Wi-Fi, is a Wireless connection mode. The electronic device may include a Wi-Fi module (also referred to as a Wi-Fi communication module) to enable the electronic device to have Wi-Fi functionality. The electronic device may search for a Wi-Fi hotspot and connect to the wireless network through the Wi-Fi hotspot. The Wi-Fi data link is a data connection path established between the electronic device and the wireless network and connected through the Wi-Fi communication module interface. When the electronic equipment is used for surfing the Internet through the Wi-Fi hotspot, the electronic equipment can surf the Internet without the network of operators such as mobile, Unicom, telecom and the like, so that the traffic fee can be saved.
Referring to fig. 1B, fig. 1B is a schematic flowchart of a method for implementing link aggregation according to an embodiment of the present application, and is applied to an electronic device; as shown in the figure, the link aggregation implementation method includes:
101. and performing network search to obtain a plurality of wireless networks, wherein each wireless network corresponds to one hotspot device and one network state parameter.
The embodiment of the application can be applied to indoor environments, such as: the intelligent home environment comprises a plurality of intelligent home devices, each intelligent home device can be regarded as a hotspot device, and the hotspot device can be at least one of the following devices: the intelligent household appliance comprises an intelligent television, an intelligent washing machine, an intelligent air conditioner, an intelligent water heater, an intelligent door, a tablet computer, an intelligent mobile phone, an intelligent router, an intelligent massage chair, an intelligent dryer, an intelligent electric rice cooker, an intelligent soybean milk machine, an intelligent water dispenser and the like, which are not limited herein.
In a specific implementation, in this embodiment of the present application, the network state parameter may be at least one of the following: signal strength value, target data transmission rate, target round trip delay, target bit error rate, etc., without limitation. The electronic equipment can start the Wi-Fi module, and then wireless network searching is carried out to obtain a plurality of wireless networks, and each wireless network can correspond to one hotspot equipment and one network state parameter.
102. And determining a distance value between the hotspot equipment corresponding to each wireless network in the plurality of wireless networks and the electronic equipment to obtain a plurality of distance values.
The electronic device may detect a signal strength value of each wireless network, and in general, the larger the signal strength value is, the closer the distance is, so that a mapping relationship between the signal strength value and the distance may be stored in the electronic device in advance, and a distance value between the hotspot device corresponding to each of the plurality of wireless networks and the electronic device may be determined according to the mapping relationship, so as to obtain a plurality of distance values.
Of course, the electronic device may also determine the location of the electronic device through an indoor positioning technology, and since the location of each hotspot device may also be fixed in an indoor environment, a distance value between the hotspot device corresponding to each wireless network in the plurality of wireless networks and the electronic device may be calculated to obtain a plurality of distance values.
103. And determining the priority order of the wireless networks according to the distance values and the network state parameters of the wireless networks.
The different distance values and network state parameters reflect the stability of each network, so that the priority order of the wireless networks can be determined through the distance values and the network state parameters of the wireless networks, so that the wireless networks with good communication quality can be selected for realizing a link aggregation function.
Optionally, in step 103, determining the priority order of the wireless networks according to the distance values and the network status parameters of the wireless networks may include the following steps:
31. selecting a plurality of target distance values within a preset range from the plurality of distance values, and determining a plurality of target wireless networks corresponding to the plurality of target distance values;
32. and determining the priority order of the target wireless networks according to the network state parameters of the target wireless networks.
The preset range can be set by the user or defaulted by the system. Generally, the closer the distance between the hotspot device and the electronic device is, the stronger the signal is, the better the stability is, so in this embodiment of the application, the electronic device may select a plurality of target distance values within a preset range from the plurality of distance values, and determine a plurality of target wireless networks corresponding to the plurality of target distance values, of course, one target distance value corresponds to one target wireless network, and further, may determine a priority order of the plurality of target wireless networks according to network state parameters of the plurality of target wireless networks, for example, the larger the signal strength value is, the higher the priority is, or the lower the error rate is, the higher the priority is, and the like, which is not limited herein.
Further optionally, in step 32, determining the priority order of the target wireless networks according to the network status parameters of the target wireless networks may include the following steps:
321. evaluating each target wireless network according to the network state parameters of the plurality of target wireless networks to obtain a plurality of evaluation values;
322. and determining the priority order of the target wireless networks according to the evaluation values.
The electronic device may evaluate each of the target wireless networks from at least one dimension of the network state parameter to obtain a plurality of evaluation values, and each of the target wireless networks may correspond to one evaluation value. Such as: specifically, a mapping relationship between the signal strength value and the evaluation value may be preset in the electronic device, and then, the evaluation value corresponding to each signal strength value may be determined according to the mapping relationship.
Further optionally, the network status parameters at the target wireless network i include: when the target data transmission rate, the target round trip delay and the target error rate are higher than the target data transmission rate, the target wireless network i is any one of the plurality of target wireless networks; in the step 321, evaluating each target wireless network according to the network status parameters of the target wireless networks to obtain a plurality of evaluation values, the method may include the following steps:
3211. determining a target first evaluation value corresponding to the target data transmission rate according to a first mapping relation between a preset data transmission rate and the first evaluation value;
3212. determining a target second evaluation value corresponding to the target round-trip delay according to a second mapping relation between a preset round-trip delay and the second evaluation value;
3213. determining a target third evaluation value corresponding to the target bit error rate according to a third mapping relation between a preset bit error rate and the third evaluation value;
3214. acquiring a first weight corresponding to the first evaluation value, a second weight corresponding to the second evaluation value and a third weight corresponding to the third evaluation value, wherein the sum of the first weight, the second weight and the third weight is 1;
3215. and performing weighted operation according to the target first evaluation value, the target second evaluation value, the target third evaluation value, the first weight, the second weight and the third weight to obtain an evaluation value of the wireless network i.
The electronic device may store a first mapping relationship between a preset data transmission rate and a first evaluation value, a second mapping relationship between a preset round-trip delay and a second evaluation value, and a third mapping relationship between a preset error rate and a third evaluation value in advance. Assume that the network status parameters of the target wireless network i include: when the target data transmission rate, the target round trip delay and the target error rate are determined, the target wireless network i is any one of at least two wireless networks, further, a target first evaluation value corresponding to the target data transmission rate can be determined according to the first mapping relation, a target second evaluation value corresponding to the target round trip delay can be determined according to the second mapping relation, and a target third evaluation value corresponding to the target error rate can be determined according to the third mapping relation, of course, a first weight corresponding to the first evaluation value, a second weight corresponding to the second evaluation value and a third weight corresponding to the third evaluation value can be stored in the electronic device in advance, the sum of the first weight, the second weight and the third weight is 1, and further, weighting operation can be performed according to the target first evaluation value, the target second evaluation value, the target third evaluation value, the first weight, the second weight and the third weight, obtaining the evaluation value of the target wireless network i, specifically obtaining the evaluation value of the target wireless network i according to the following formula: the evaluation value of the target wireless network i is the first target evaluation value + the first weight + the second target evaluation value + the second weight + the third target evaluation value + the third weight.
104. And selecting at least two wireless networks from the plurality of wireless networks according to the priority order to carry out link aggregation operation.
The higher the priority, the better the network performance, and according to the priority order, at least two wireless networks can be selected from the multiple wireless networks to implement the link aggregation operation.
For example, in an intelligent home environment, the electronic device may determine a distance between the electronic device and another hotspot device to obtain a plurality of distance values, and determine an access priority between the hotspot devices according to the plurality of distance values and network state parameters of the other plurality of hotspot devices, where the access priority reflects a ranking order of network performance to a certain extent, and further preferentially selects 2 hotspot devices with high priorities to perform link aggregation processing, so that a link aggregation network with good network quality is implemented, and data transmission efficiency is facilitated to be improved.
Optionally, before the step 104, the following steps may be further included:
a1, detecting the current electric quantity of the electronic equipment;
a2, when the current electric quantity is larger than a preset electric quantity threshold value, executing the step of selecting at least two wireless networks from the plurality of wireless networks according to the priority order to perform link aggregation operation.
The preset electric quantity threshold value can be set by a user or defaulted by a system. In a specific implementation, the intelligent link aggregation also increases the power consumption of the electronic device to a certain extent, in order to ensure the smooth implementation of the intelligent aggregation link function, the electronic device may detect the current electric quantity of the electronic device, and when the current electric quantity is greater than a preset electric quantity threshold, perform a step of selecting at least two wireless networks from the plurality of wireless networks according to the priority order to perform a link aggregation operation.
In the embodiment of the present application, link aggregation is that a device may use two or more network ports to surf the internet at the same time, for example, a Wi-Fi and a data network (data network, which may also be referred to as a mobile data network) may be used to access the network at the same time by link aggregation on a mobile phone, or 2 or more Wi-Fi networks may be used to access the network at the same time. The intelligent Link Aggregation (SLA) function refers to intelligently distributing internet access requests of users to different internet access interfaces (cellular communication module interfaces and Wi-Fi communication module interfaces). Link aggregation requires at least two or more available networks, so the SLA presupposes coexistence of Wi-Fi and data networks.
Optionally, when the electronic device starts the intelligent link aggregation function, the electronic device may perform step 101.
Optionally, in the step 104, at least two wireless networks may be selected from the plurality of wireless networks according to the priority order, and a link aggregation operation is performed based on the at least two wireless networks, where the at least two wireless networks include 2 Wi-Fi data networks, the method may include the following steps:
b1, detecting the link quality of the first Wi-Fi data link and detecting the link quality of the second Wi-Fi data link;
b2, determining the proportion of data packets between the Wi-Fi data link and the second Wi-Fi data link according to the link quality of the first Wi-Fi data link and the link quality of the second Wi-Fi data link;
and B3, distributing the data packets to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link according to the data packet distribution proportion.
The link quality of the Wi-Fi data link can be determined by the uplink and downlink data transmission rate, the round-trip delay, the bit error rate and the like of the Wi-Fi data link. The higher the transmission rate of the uplink and downlink data, the smaller the round-trip delay, the lower the error rate and the higher the link quality of the Wi-Fi data link; the lower the transmission rate of the uplink data and the downlink data, the larger the round-trip delay, the higher the error rate and the lower the link quality of the Wi-Fi data link.
The Wi-Fi data link can include a Wi-Fi uplink and a Wi-Fi downlink. The quality of the Wi-Fi uplink may be determined by the uplink data transmission rate, round trip delay, bit error rate, etc. of the Wi-Fi uplink. The quality of the Wi-Fi downlink data link can be determined by the downlink data transmission rate, the round-trip delay, the bit error rate and the like of the Wi-Fi data link.
The error rate is an index for measuring the accuracy of data transmission in a specified time, and is equal to 100% of error in transmission/total number of transmitted codes.
Wherein the electronic device may initiate the intelligent link aggregation function before performing step 101. The electronic device may also open dual Wi-Fi connections simultaneously.
When the electronic device starts the intelligent link aggregation function, the electronic device may send a network request (network request) to the network terminal to enable the data network, so that the electronic device may use 2 Wi-Fi networks simultaneously when the first Wi-Fi network and the second Wi-Fi network are started simultaneously.
Optionally, the electronic device detects the link quality of the first Wi-Fi data link, and specifically includes the following steps:
the electronic equipment measures the data transmission rate, the round trip delay and the error rate of the first Wi-Fi data link, and determines the link quality of the first Wi-Fi data link based on the round trip delay, the data transmission rate and the error rate of the Wi-Fi data link;
the electronic device detecting the link quality of the second Wi-Fi data link may specifically include the following steps:
the electronic device measures the data transmission rate, the round trip delay and the error rate of the second Wi-Fi data link, and determines the link quality of the second Wi-Fi data link based on the round trip delay, the data transmission rate and the error rate of the second Wi-Fi data link.
In the embodiment of the application, if the link quality of a first Wi-Fi data link is better than that of a second Wi-Fi data link, determining that the data packet distribution ratio between the first Wi-Fi data link and the second Wi-Fi data link is more than 1; and if the link quality of the second Wi-Fi data link is better than that of the first Wi-Fi data link, determining that the data packet distribution ratio between the second Wi-Fi data link and the first data link is more than 1.
The link quality of the Wi-Fi data link can be scored based on the uplink and downlink data transmission rate, the round-trip delay and the bit error rate of the Wi-Fi data link, so that the quality score of the Wi-Fi data link is obtained. The electronic device may use a ratio of a quality of the first Wi-Fi data link to a quality of the second Wi-Fi data link as a packet allocation ratio between the first Wi-Fi data link and the second Wi-Fi data link.
The electronic equipment can also determine the quality grade of the first Wi-Fi data link according to the quality score of the first Wi-Fi data link, determine the quality grade of the second Wi-Fi data link according to the quality score of the second Wi-Fi data link, and determine the data packet distribution proportion between the first Wi-Fi data link and the second Wi-Fi data link according to the quality grade of the first Wi-Fi data link and the quality grade of the second Wi-Fi data link. Of course, the packet allocation ratio between the first Wi-Fi data link and the second Wi-Fi data link may also be determined according to the ratio of the quality level of the first Wi-Fi data link to the quality level of the second Wi-Fi data link. For example, if the link quality of the first Wi-Fi data link is class I and the quality class of the second Wi-Fi data link is class I, the packet allocation ratio between the first Wi-Fi data link and the second Wi-Fi data link is 1: 1; if the link quality of the first Wi-Fi data link is I level and the quality level of the second Wi-Fi data link is 2 level, the data packet distribution ratio between the first Wi-Fi data link and the second Wi-Fi data link is 1: 2; if the link quality of the first Wi-Fi data link is I level and the quality level of the second Wi-Fi data link is 3 level, the data packet distribution ratio between the first Wi-Fi data link and the second Wi-Fi data link is 1: 3; if the link quality of the first Wi-Fi data link is I level and the quality level of the second Wi-Fi data link is 4 level, the data packet distribution ratio between the first Wi-Fi data link and the second Wi-Fi data link is 1: 4; and if the link quality of the first Wi-Fi data link is I grade and the quality grade of the second Wi-Fi data link is 5 grade, the data packet distribution ratio between the first Wi-Fi data link and the second Wi-Fi data link is 1: 5.
In this embodiment, the electronic device 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 electronic device may allocate the uplink data packets for transmission in a first Wi-Fi uplink and a second Wi-Fi uplink; for downlink data packets, the electronic device may allocate the downlink data packets for transmission in the first Wi-Fi downlink data link and the second Wi-Fi downlink data link.
The data packets to be transmitted may be initiated by different services in the electronic device, for example, the data packets to be transmitted may be initiated by any one of a video service, a game service, a voice service, and an instant messaging service.
Optionally, in step B1, the electronic device detects the link quality of the first WiFi data link and detects the link quality of the second Wi-Fi data link, which may specifically include the following steps:
the electronic device measures a maximum data transmission rate of the first WiFi data link, measures a maximum data transmission rate of the second Wi-Fi data link, and determines link quality of the first WiFi data link and link quality of the second Wi-Fi data link based on the maximum data transmission rate of the first WiFi data link and the maximum data transmission rate of the second Wi-Fi data link.
In the embodiment of the present application, the link quality of the first Wi-Fi data link and the link quality of the second Wi-Fi data link may be calculated according to the following formulas:
weigh_wifi1=max_speed_wifi1/(max_speed_wifi 1+max_speed_wifi2);
weigh_wifi2=1-weigh_wifi1;
wherein, weight _ WiFi1 represents the link quality of the first WiFi data link, weight _ WiFi2 represents the link quality of the second WiFi data link, max _ speed _ WiFi1 represents the maximum data transmission rate of the first WiFi data link, and max _ speed _ WiFi2 represents the maximum data transmission rate of the second WiFi data link. The sum of the link quality of the first WiFi data link and the link quality of the second Wi-Fi data link is equal to 1.
The electronic device may determine a packet allocation ratio between the first WiFi data link and the second Wi-Fi data link based on a ratio of a link quality of the first WiFi data link to a link quality of the second Wi-Fi data link.
For example, if the link quality of the first WiFi data link is 0.2 and the link quality of the second Wi-Fi data link is 0.8, it is determined that the packet allocation ratio between the first WiFi data link and the second Wi-Fi data link is 2: 8.
Optionally, the maximum data transfer rate of the second Wi-Fi data link and the maximum data transfer rate of the first WiFi data link may be modified by incrementally calculating the data rates of WiFi1 and WiFi2 receive (rx) interfaces.
For example, data incremental computation rates on WiFi1 and WiFi2 receiving (rx) interfaces are counted every 1s, and the maximum data transmission rate of the first WiFi data link and the maximum data transmission rate of the second Wi-Fi data link are corrected through the data incremental computation rates.
tmp_speed=(rx_bytes-last_rx_bytes)/1;
The modified max _ speed _ wifi1 is max (max _ speed _ wifi1, tmp _ speed);
the modified max _ speed _ wifi2 is max (max _ speed _ wifi2, tmp _ speed);
wherein rx _ bytes represents the data receiving amount on the WiFi1 and WiFi2 receiving interfaces in one second, last _ rx _ bytes represents the data receiving amount on the WiFi1 and WiFi2 receiving interfaces in the last second, tmp _ speed represents the data incremental calculation rate, max _ speed _ WiFi1 represents the maximum data transmission rate of the first WiFi data link, and max _ speed _ WiFi2 represents the maximum data transmission rate of the second Wi-Fi data link. The modified max _ speed _ wifi1 is the maximum value of max _ speed _ wifi1 and tmp _ speed, and the modified max _ speed _ wifi2 is the maximum value of max _ speed _ wifi2 and tmp _ speed.
Optionally, the maximum data transmission rate of the second Wi-Fi data link and the maximum data transmission rate of the first WiFi data link may be modified by a statistical Round-Trip Time (rtt).
For example, the electronic device may calculate the delay on the two interfaces (Wi-Fi communication module interface 1 and Wi-Fi communication module interface 2) 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 http get and rrt of 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 electronic device respectively determines a current first RTT of a first WiFi data link and a current first RTT of a second Wi-Fi data link, and the method comprises the following steps:
the electronic equipment determines a second RTT for operating a Transmission Control Protocol (TCP);
the electronic equipment respectively acquires a third RTT determined last time by the first Wi-Fi communication module and the second Wi-Fi communication module;
and the electronic equipment determines the current first RTT of the first WiFi communication module and the second Wi-Fi communication module according to the determined second RTT and the obtained last determined third RTT of the first Wi-Fi communication module and the second Wi-Fi communication module.
Specifically, the following formulas may be adopted to calculate the current first RTT of the first WiFi data link and the current first RTT of the second Wi-Fi data link:
rtt_wifi_1=(rtt_wifi1_3+rtt_2)/2
rtt_wifi2_1=(rtt_wifi2_3+rtt_2)/2
wherein, RTT _ WiFi _1 represents a current first RTT of the first WiFi data link, RTT _2 represents a second RTT running a transmission control protocol TCP, and RTT _ WiFi1_3 represents a last determined third RTT of the first WiFi data link; RTT _ wifi2_1 represents the current first RTT of the second Wi-Fi data link, RTT _2 represents the second RTT running one transmission control protocol TCP, and RTT _ wifi2_3 represents the 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 2 WiFi data links can be improved.
It can be seen that the link aggregation implementation method described in the embodiment of the present application is applied to an electronic device, performs network search to obtain a plurality of wireless networks, where each wireless network corresponds to one hotspot device and one network state parameter, determines a distance value between the hotspot device corresponding to each wireless network in the plurality of wireless networks and the electronic device to obtain a plurality of distance values, determines a priority order of the plurality of wireless networks according to the plurality of distance values and the network state parameters of the plurality of wireless networks, and selects at least two wireless networks from the plurality of wireless networks to perform link aggregation operation according to the priority order.
Referring to fig. 2, fig. 2 is a schematic flow chart of a link aggregation implementation method according to an embodiment of the present application, where as shown in the figure, the link aggregation implementation method includes:
201. and performing network search to obtain a plurality of wireless networks, wherein each wireless network corresponds to one hotspot device and one network state parameter.
202. And determining a distance value between the hotspot equipment corresponding to each wireless network in the plurality of wireless networks and the electronic equipment to obtain a plurality of distance values.
203. And determining the priority order of the wireless networks according to the distance values and the network state parameters of the wireless networks.
204. And detecting the current electric quantity of the electronic equipment.
205. And when the current electric quantity is larger than a preset electric quantity threshold value, selecting at least two wireless networks from the plurality of wireless networks according to the priority sequence to carry out link aggregation operation.
The specific description of the step 201-205 may refer to the corresponding steps of the link aggregation implementation method described in fig. 1B, and is not repeated herein.
It can be seen that the link aggregation implementation method described in the embodiment of the present application is applied to an electronic device, performs network search to obtain a plurality of wireless networks, where each wireless network corresponds to one hotspot device and one network state parameter, determines a distance value between the hotspot device corresponding to each wireless network in the plurality of wireless networks and the electronic device to obtain a plurality of distance values, determines a priority order of the plurality of wireless networks according to the plurality of distance values and the network state parameters of the plurality of wireless networks, and selects at least two wireless networks from the plurality of wireless networks to perform link aggregation operation according to the priority order.
Referring to fig. 3 in keeping with the embodiments shown in fig. 1B and fig. 2, fig. 3 is a schematic structural diagram of an electronic device 300 according to an embodiment of the present disclosure, and as shown in the figure, the electronic device 300 includes a processor 310, a memory 320, a communication interface 330, and one or more programs 321, where the one or more programs 321 are stored in the memory 320 and configured to be executed by the processor 310, and the one or more programs 321 include instructions for performing the following steps:
network searching is carried out to obtain a plurality of wireless networks, and each wireless network corresponds to one hotspot device and one network state parameter;
determining a distance value between the hotspot device corresponding to each wireless network in the plurality of wireless networks and the electronic device to obtain a plurality of distance values;
determining the priority order of the wireless networks according to the distance values and the network state parameters of the wireless networks;
and selecting at least two wireless networks from the plurality of wireless networks according to the priority order to carry out link aggregation operation.
It can be seen that, in the electronic device described in this embodiment of the present application, network search is performed to obtain a plurality of wireless networks, each wireless network corresponds to one hotspot device and one network state parameter, a distance value between the hotspot device corresponding to each wireless network in the plurality of wireless networks and the electronic device is determined to obtain a plurality of distance values, a priority order of the plurality of wireless networks is determined according to the plurality of distance values and the network state parameters of the plurality of wireless networks, and at least two wireless networks are selected from the plurality of wireless networks according to the priority order to perform link aggregation operation, so that at least two wireless networks with good network quality are selected from the plurality of wireless networks to implement link aggregation, and data transmission efficiency is improved.
In one possible example, in the determining the priority order of the plurality of wireless networks as a function of the plurality of distance values, the network status parameters of the plurality of wireless networks, the one or more programs 321 include instructions for:
selecting a plurality of target distance values within a preset range from the plurality of distance values, and determining a plurality of target wireless networks corresponding to the plurality of target distance values;
and determining the priority order of the target wireless networks according to the network state parameters of the target wireless networks.
In one possible example, in the determining the priority order of the plurality of target wireless networks as a function of the network status parameters of the plurality of target wireless networks, the one or more programs 321 include instructions for:
evaluating each target wireless network according to the network state parameters of the plurality of target wireless networks to obtain a plurality of evaluation values;
and determining the priority order of the target wireless networks according to the evaluation values.
In one possible example, the network status parameters at the target wireless network i include: when the target data transmission rate, the target round trip delay and the target error rate are higher than the target data transmission rate, the target wireless network i is any one of the plurality of target wireless networks;
in respect of the evaluating each target wireless network according to the network status parameters of the target wireless networks to obtain a plurality of evaluation values, the one or more programs 321 include instructions for:
determining a target first evaluation value corresponding to the target data transmission rate according to a first mapping relation between a preset data transmission rate and the first evaluation value;
determining a target second evaluation value corresponding to the target round-trip delay according to a second mapping relation between a preset round-trip delay and the second evaluation value;
determining a target third evaluation value corresponding to the target bit error rate according to a third mapping relation between a preset bit error rate and the third evaluation value;
acquiring a first weight corresponding to the first evaluation value, a second weight corresponding to the second evaluation value and a third weight corresponding to the third evaluation value, wherein the sum of the first weight, the second weight and the third weight is 1;
and performing weighted operation according to the target first evaluation value, the target second evaluation value, the target third evaluation value, the first weight, the second weight and the third weight to obtain an evaluation value of the target wireless network i.
In one possible example, the one or more programs 321 further include instructions for performing the steps of:
detecting the current electric quantity of the electronic equipment;
and when the current electric quantity is larger than a preset electric quantity threshold value, executing the step of selecting at least two wireless networks from the plurality of wireless networks according to the priority sequence to carry out link aggregation operation.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. 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 electronic device 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.
Fig. 4A is a block diagram of functional units of a link aggregation implementation apparatus 400 according to an embodiment of the present application. The link aggregation implementing apparatus 400 is applied to an electronic device, and the link aggregation implementing apparatus 400 includes a searching unit 401, a determining unit 402, and a network access unit 403, wherein,
the searching unit 401 is configured to perform network search to obtain a plurality of wireless networks, where each wireless network corresponds to a hotspot device and a network state parameter;
the determining unit 402 is configured to determine a distance value between the hotspot device corresponding to each of the plurality of wireless networks and the electronic device, so as to obtain a plurality of distance values; determining the priority order of the wireless networks according to the distance values and the network state parameters of the wireless networks;
the network access unit 403 is configured to select at least two wireless networks from the multiple wireless networks according to the priority order to perform a link aggregation operation.
It can be seen that the link aggregation implementation apparatus described in this embodiment of the application is applied to an electronic device, performs network search to obtain a plurality of wireless networks, where each wireless network corresponds to one hotspot device and one network state parameter, determines a distance value between the hotspot device corresponding to each wireless network in the plurality of wireless networks and the electronic device to obtain a plurality of distance values, determines a priority order of the plurality of wireless networks according to the plurality of distance values and the network state parameters of the plurality of wireless networks, and selects at least two wireless networks from the plurality of wireless networks to perform link aggregation operation according to the priority order, so that at least two wireless networks with good network quality are selected from the plurality of wireless networks to implement link aggregation, and data transmission efficiency is improved.
In one possible example, in the aspect of determining the priority order of the wireless networks according to the distance values and the network status parameters of the wireless networks, the determining unit 402 is specifically configured to:
selecting a plurality of target distance values within a preset range from the plurality of distance values, and determining a plurality of target wireless networks corresponding to the plurality of target distance values;
and determining the priority order of the target wireless networks according to the network state parameters of the target wireless networks.
In one possible example, in the aspect of determining the priority order of the target wireless networks according to the network status parameters of the target wireless networks, the determining unit 402 is specifically configured to:
evaluating each target wireless network according to the network state parameters of the plurality of target wireless networks to obtain a plurality of evaluation values;
and determining the priority order of the target wireless networks according to the evaluation values.
In one possible example, the network status parameters at the target wireless network i include: when the target data transmission rate, the target round trip delay and the target error rate are higher than the target data transmission rate, the target wireless network i is any one of the plurality of target wireless networks;
in the aspect that each target wireless network is evaluated according to the network state parameters of the target wireless networks to obtain a plurality of evaluation values, the determining unit 402 is specifically configured to:
determining a target first evaluation value corresponding to the target data transmission rate according to a first mapping relation between a preset data transmission rate and the first evaluation value;
determining a target second evaluation value corresponding to the target round-trip delay according to a second mapping relation between a preset round-trip delay and the second evaluation value;
determining a target third evaluation value corresponding to the target bit error rate according to a third mapping relation between a preset bit error rate and the third evaluation value;
acquiring a first weight corresponding to the first evaluation value, a second weight corresponding to the second evaluation value and a third weight corresponding to the third evaluation value, wherein the sum of the first weight, the second weight and the third weight is 1;
and performing weighted operation according to the target first evaluation value, the target second evaluation value, the target third evaluation value, the first weight, the second weight and the third weight to obtain an evaluation value of the target wireless network i.
In one possible example, as shown in fig. 4B, fig. 4B is a further modified structure of the link aggregation implementation apparatus described in fig. 4A, which may further include, compared with fig. 4A: the detecting unit 404 is specifically as follows:
a detecting unit 404, configured to detect a current power amount of the electronic device;
and when the current electric quantity is greater than a preset electric quantity threshold, the network access unit 403 executes the step of selecting at least two wireless networks from the plurality of wireless networks according to the priority order to perform link aggregation operation.
As shown in fig. 5, for convenience of description, only the portions related to the embodiments of the present application are shown, and details of the specific technology are not disclosed, please refer to the method portion of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and the like, taking the electronic device as the mobile phone as an example:
fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Referring to fig. 5, the handset includes: radio Frequency (RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, audio circuit 960, Wireless Fidelity (Wi-Fi) module 970, processor 980, and power supply 990. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
RF circuitry 910 may be used for the reception and transmission of information. In general, the RF circuit 910 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 910 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 920 may be used to store software programs and modules, and the processor 980 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the mobile phone, and the like. Further, the memory 920 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 930 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 930 may include a fingerprint recognition module 931 and other input devices 932. Fingerprint identification module 931, can gather the fingerprint data of user above it. The input unit 930 may include other input devices 932 in addition to the fingerprint recognition module 931. In particular, other input devices 932 may include, but are not limited to, one or more of a touch screen, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 940 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 940 may include a Display screen 941, and optionally, the Display screen 941 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The handset may also include at least one sensor 950, such as a light sensor, motion sensor, pressure sensor, temperature sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor (also referred to as a light sensor) that can adjust the backlight brightness of the mobile phone according to the brightness of ambient light, and thus adjust the brightness of the display screen 941, and a proximity sensor that can turn off the display screen 941 and/or the backlight when the mobile phone is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications (such as horizontal and vertical screen switching, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of a mobile phone; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 960, speaker 961, microphone 962 may provide an audio interface between a user and a cell phone. The audio circuit 960 may transmit the electrical signal converted from the received audio data to the speaker 961, and the audio signal is converted by the speaker 961 to be played; on the other hand, the microphone 962 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 960, and then processes the audio data by the audio data playing processor 980, and then sends the audio data to, for example, another mobile phone through the RF circuit 910, or plays the audio data to the memory 920 for further processing.
Wi-Fi belongs to short-distance wireless transmission technology, and a mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through a Wi-Fi module 970, and provides wireless broadband internet access for the user. Although fig. 5 shows the Wi-Fi module 970, it is understood that it does not belong to the essential constitution of the cellular phone and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 980 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 920 and calling data stored in the memory 920, thereby integrally monitoring the mobile phone. Alternatively, processor 980 may include one or more processing units; preferably, the processor 980 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 980.
The handset also includes a power supply 990 (e.g., a battery) for supplying power to the various components, which may preferably be logically connected to the processor 980 via a power management system, thereby providing management of charging, discharging, and power consumption via the power management system.
The mobile phone may further include a camera 9100, and the camera 9100 is used for shooting images and videos and transmitting the shot images and videos to the processor 980 for processing.
The mobile phone can also be provided with a Bluetooth module and the like, which are not described herein again.
In the embodiments shown in fig. 1B and fig. 2, the method flows of the steps may be implemented based on the structure of the mobile phone.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
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 an electronic device.
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 should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in 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 embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of 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 (9)

1. A link aggregation implementation method is applied to an electronic device, and comprises the following steps:
performing network search to obtain a plurality of wireless networks, wherein each wireless network corresponds to a hotspot device and a network state parameter, and the network state parameter comprises at least one of the following parameters: signal strength value, data transmission rate, round trip delay and target bit error rate;
determining a distance value between the hotspot device corresponding to each wireless network in the plurality of wireless networks and the electronic device to obtain a plurality of distance values;
determining the priority order of the wireless networks according to the distance values and the network state parameters of the wireless networks;
detecting the current electric quantity of the electronic equipment;
when the current electric quantity is larger than a preset electric quantity threshold value, selecting at least two wireless networks from the plurality of wireless networks according to the priority sequence to carry out link aggregation operation;
wherein the selecting at least two wireless networks from the plurality of wireless networks according to the priority order to perform link aggregation operation includes:
selecting at least two wireless networks from the plurality of wireless networks according to the priority order, wherein the at least two wireless networks comprise 2 Wi-Fi data networks;
detecting the link quality of a first Wi-Fi data link and detecting the link quality of a second Wi-Fi data link, specifically: determining link quality of the first WiFi data link and link quality of the second Wi-Fi data link based on the maximum data transmission rate of the first WiFi data link and the maximum data transmission rate of the second Wi-Fi data link, and correcting the maximum data transmission rate of the second Wi-Fi data link and the maximum data transmission rate of the first WiFi data link through data increment calculation rates of the 2 Wi-Fi data network receiving interfaces;
determining a data packet distribution ratio between the Wi-Fi data link and the second Wi-Fi data link according to the link quality of the first Wi-Fi data link and the link quality of the second Wi-Fi data link;
and distributing the data packets to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link according to the distribution proportion of the data packets, wherein the data packets to be transmitted are initiated by game services in the electronic equipment.
2. The method of claim 1, wherein the determining the priority order of the plurality of wireless networks according to the plurality of distance values and the network status parameters of the plurality of wireless networks comprises:
selecting a plurality of target distance values within a preset range from the plurality of distance values, and determining a plurality of target wireless networks corresponding to the plurality of target distance values;
and determining the priority order of the target wireless networks according to the network state parameters of the target wireless networks.
3. The method of claim 2, wherein the determining the priority order of the plurality of target wireless networks according to the network status parameters of the plurality of target wireless networks comprises:
evaluating each target wireless network according to the network state parameters of the plurality of target wireless networks to obtain a plurality of evaluation values;
and determining the priority order of the target wireless networks according to the evaluation values.
4. The method of claim 3, wherein the network status parameters at the target wireless network i comprise: when the target data transmission rate, the target round trip delay and the target error rate are higher than the target data transmission rate, the target wireless network i is any one of the plurality of target wireless networks;
the evaluating each target wireless network according to the network state parameters of the plurality of target wireless networks to obtain a plurality of evaluation values, including:
determining a target first evaluation value corresponding to the target data transmission rate according to a first mapping relation between a preset data transmission rate and the first evaluation value;
determining a target second evaluation value corresponding to the target round-trip delay according to a second mapping relation between a preset round-trip delay and the second evaluation value;
determining a target third evaluation value corresponding to the target bit error rate according to a third mapping relation between a preset bit error rate and the third evaluation value;
acquiring a first weight corresponding to the first evaluation value, a second weight corresponding to the second evaluation value and a third weight corresponding to the third evaluation value, wherein the sum of the first weight, the second weight and the third weight is 1;
and performing weighted operation according to the target first evaluation value, the target second evaluation value, the target third evaluation value, the first weight, the second weight and the third weight to obtain an evaluation value of the target wireless network i.
5. A link aggregation realizing device is applied to an electronic device and comprises a searching unit, a determining unit and a network access unit, wherein,
the searching unit is configured to perform network search to obtain a plurality of wireless networks, where each wireless network corresponds to a hotspot device and a network state parameter, and the network state parameter includes at least one of the following: signal strength value, data transmission rate, round trip delay and target bit error rate;
the determining unit is configured to determine a distance value between the hotspot device corresponding to each of the plurality of wireless networks and the electronic device, so as to obtain a plurality of distance values; determining the priority order of the wireless networks according to the distance values and the network state parameters of the wireless networks;
the apparatus is further configured to: detecting the current electric quantity of the electronic equipment;
the network access unit is used for selecting at least two wireless networks from the plurality of wireless networks according to the priority sequence to carry out link aggregation operation when the current electric quantity is larger than a preset electric quantity threshold;
wherein, in the aspect of selecting at least two wireless networks from the plurality of wireless networks for performing the link aggregation operation according to the priority order, the network access unit is specifically configured to:
selecting at least two wireless networks from the plurality of wireless networks according to the priority order, wherein the at least two wireless networks comprise 2 Wi-Fi data networks;
detecting the link quality of a first Wi-Fi data link and detecting the link quality of a second Wi-Fi data link, specifically: determining link quality of the first WiFi data link and link quality of the second Wi-Fi data link based on the maximum data transmission rate of the first WiFi data link and the maximum data transmission rate of the second Wi-Fi data link, and correcting the maximum data transmission rate of the second Wi-Fi data link and the maximum data transmission rate of the first WiFi data link through data increment calculation rates of the 2 Wi-Fi data network receiving interfaces;
determining a data packet distribution ratio between the Wi-Fi data link and the second Wi-Fi data link according to the link quality of the first Wi-Fi data link and the link quality of the second Wi-Fi data link;
and distributing the data packets to be transmitted in the first Wi-Fi data link and the second Wi-Fi data link according to the distribution proportion of the data packets, wherein the data packets to be transmitted are initiated by game services in the electronic equipment.
6. The apparatus according to claim 5, wherein in said determining the priority order of the plurality of wireless networks according to the plurality of distance values and the network status parameters of the plurality of wireless networks, the determining unit is specifically configured to:
selecting a plurality of target distance values within a preset range from the plurality of distance values, and determining a plurality of target wireless networks corresponding to the plurality of target distance values;
and determining the priority order of the target wireless networks according to the network state parameters of the target wireless networks.
7. The apparatus according to claim 6, wherein, in said determining the priority order of the target wireless networks according to the network status parameters of the target wireless networks, the determining unit is specifically configured to:
evaluating each target wireless network according to the network state parameters of the plurality of target wireless networks to obtain a plurality of evaluation values;
and determining the priority order of the target wireless networks according to the evaluation values.
8. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-4.
9. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-4.
CN201811527281.0A 2018-12-13 2018-12-13 Link aggregation implementation method and related product Active CN109617802B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811527281.0A CN109617802B (en) 2018-12-13 2018-12-13 Link aggregation implementation method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811527281.0A CN109617802B (en) 2018-12-13 2018-12-13 Link aggregation implementation method and related product

Publications (2)

Publication Number Publication Date
CN109617802A CN109617802A (en) 2019-04-12
CN109617802B true CN109617802B (en) 2021-07-30

Family

ID=66009275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811527281.0A Active CN109617802B (en) 2018-12-13 2018-12-13 Link aggregation implementation method and related product

Country Status (1)

Country Link
CN (1) CN109617802B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111278081B (en) * 2020-01-21 2022-04-22 Oppo广东移动通信有限公司 Network access control method and related device
CN112073995B (en) * 2020-09-03 2023-09-12 Oppo广东移动通信有限公司 Data transmission method and device, storage medium and electronic equipment
CN114513846B (en) * 2020-11-16 2023-03-21 Oppo广东移动通信有限公司 Positioning communication method, terminal, communication equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8467395B1 (en) * 2011-07-12 2013-06-18 Qlogic, Corporation Method and system for link aggregation
CN105101354A (en) * 2015-08-18 2015-11-25 小米科技有限责任公司 Wireless network connection method and device
CN105338569A (en) * 2015-09-30 2016-02-17 宇龙计算机通信科技(深圳)有限公司 Multi-bearer data transmission method and device
CN106304278A (en) * 2015-05-19 2017-01-04 中兴通讯股份有限公司 Network selecting method, device and mobile terminal
CN106454735A (en) * 2016-10-28 2017-02-22 维沃移动通信有限公司 Method for processing WIFI information and mobile terminal
CN107567071A (en) * 2016-06-30 2018-01-09 上海连尚网络科技有限公司 A kind of method and apparatus for being used to inquire about hotspot

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5513342B2 (en) * 2010-02-26 2014-06-04 アラクサラネットワークス株式会社 Packet relay device
CN102685750A (en) * 2012-06-12 2012-09-19 刘梦阳 Method for accessing wireless network, equipment and wireless network system
CN103118419A (en) * 2013-01-24 2013-05-22 中兴通讯股份有限公司 Terminal wireless access point reclosure method and device using the same
CN104980988A (en) * 2014-04-03 2015-10-14 上海宽带技术及应用工程研究中心 Multi-link aggregation wireless communication system and method
CN108777666B (en) * 2018-08-23 2020-10-09 Oppo广东移动通信有限公司 Shunting method for link aggregation and related equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8467395B1 (en) * 2011-07-12 2013-06-18 Qlogic, Corporation Method and system for link aggregation
CN106304278A (en) * 2015-05-19 2017-01-04 中兴通讯股份有限公司 Network selecting method, device and mobile terminal
CN105101354A (en) * 2015-08-18 2015-11-25 小米科技有限责任公司 Wireless network connection method and device
CN105338569A (en) * 2015-09-30 2016-02-17 宇龙计算机通信科技(深圳)有限公司 Multi-bearer data transmission method and device
CN107567071A (en) * 2016-06-30 2018-01-09 上海连尚网络科技有限公司 A kind of method and apparatus for being used to inquire about hotspot
CN106454735A (en) * 2016-10-28 2017-02-22 维沃移动通信有限公司 Method for processing WIFI information and mobile terminal

Also Published As

Publication number Publication date
CN109617802A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN109803325B (en) Data distribution method and device, mobile terminal and storage medium
CN109803318B (en) Data packet distribution method and device, mobile terminal and storage medium
CN109640379B (en) Link aggregation implementation method and related product
WO2020207229A1 (en) Data transmission method and related apparatus
CN111615141B (en) Measurement method, measurement configuration method, terminal and network equipment
CN109617802B (en) Link aggregation implementation method and related product
CN109922504B (en) Data distribution method and related product
JP6735845B2 (en) Network access method and terminal
WO2020147645A1 (en) Link aggregation realization method and related product
CN109922539B (en) Network connection method and related product
CN111919505B (en) Data processing method and terminal
WO2020164521A1 (en) Data packet distribution method and apparatus, and mobile terminal and storage medium
CN113067680A (en) Data transmission method and equipment
CN109640329A (en) Link aggregation implementation method and Related product
CN110062405B (en) Solution for WiFi channel interference and related product
CN109644083B (en) Data transmission method and related product
US11159978B2 (en) Adaptive multi-link control
CN109644078B (en) Uplink data transmission method, terminal, network side equipment and system
CN109587765B (en) Link aggregation implementation method and related product
CN112135321B (en) Channel switching method and related product
CN110266359B (en) Antenna switching method and device, electronic equipment and computer readable storage medium
CN109474521A (en) Link aggregation implementation method and Related product
CN109451498B (en) Network authentication method and related product
CN108200562B (en) Network rate adjustment method and related product

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