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

Link aggregation implementation method and related product Download PDF

Info

Publication number
CN109587765B
CN109587765B CN201811496075.8A CN201811496075A CN109587765B CN 109587765 B CN109587765 B CN 109587765B CN 201811496075 A CN201811496075 A CN 201811496075A CN 109587765 B CN109587765 B CN 109587765B
Authority
CN
China
Prior art keywords
wireless networks
network
security level
evaluation value
preset
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
CN201811496075.8A
Other languages
Chinese (zh)
Other versions
CN109587765A (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 CN201811496075.8A priority Critical patent/CN109587765B/en
Publication of CN109587765A publication Critical patent/CN109587765A/en
Application granted granted Critical
Publication of CN109587765B publication Critical patent/CN109587765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/14Network architectures or network communication protocols for network security for detecting or protecting against malicious traffic
    • H04L63/1433Vulnerability analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

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 security level; determining a first priority order of the plurality of wireless networks according to the network security levels of the plurality of wireless networks; acquiring a required safety level of the operating environment of the electronic equipment; and when the required security level is higher than a preset security level, selecting at least two wireless networks from the plurality of wireless networks according to the first priority order to perform link aggregation operation. According to the method and the device, when the security level is high, the network with high security is selected to realize link aggregation, so that the network environment security is guaranteed, and the network transmission efficiency is improved.

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, and the like) on the market at present are also more and more prone to use link aggregation technology, and the problem of how to select a suitable network to implement intelligent 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 intelligent 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 security level;
determining a first priority order of the plurality of wireless networks according to the network security levels of the plurality of wireless networks;
acquiring a required safety level of the operating environment of the electronic equipment;
and when the required security level is higher than a preset security level, selecting at least two wireless networks from the plurality of wireless networks according to the first priority order to perform 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, an obtaining 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 security level;
the determining unit is used for determining a first priority order of the wireless networks according to the network security levels of the wireless networks;
the acquisition unit is used for acquiring the required safety level of the operating environment of the electronic equipment;
and the network access unit is used for selecting at least two wireless networks from the plurality of wireless networks according to the first priority order to perform link aggregation operation when the required security level is higher than a preset security level.
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 a hotspot device and a network security level, determine a first priority order of the plurality of wireless networks according to the network security levels of the plurality of wireless networks, obtain a required security level of an operating environment of the electronic device, and select at least two wireless networks from the plurality of wireless networks according to the first priority order to perform link aggregation operation when the required security level is higher than a preset security level, so that a network with high security can be selected to implement link aggregation when the security level is higher, that is, network environment security is ensured, and network transmission efficiency is also 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 flowchart of another link aggregation implementation method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5A is a block diagram illustrating functional units of a link aggregation implementing apparatus according to an embodiment of the present application;
fig. 5B is a block diagram illustrating another functional unit of an apparatus for implementing link aggregation according to an embodiment of the present application;
fig. 6 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 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 security level.
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 electric cooker comprises an intelligent television, an intelligent washing machine, an intelligent air conditioner, an intelligent water heater, an intelligent door, an intelligent massage chair, an intelligent dryer, an intelligent electric cooker, an intelligent soybean milk machine, an intelligent water dispenser and the like, which are not limited herein.
In a specific implementation, in the embodiment of the present application, the electronic device may start the Wi-Fi module, and further perform wireless network search to obtain a plurality of wireless networks, where each wireless network may correspond to one hotspot device and one network security level, and each hotspot device may mark its security level during use, or the electronic device may mark the security level of the hotspot device according to an access record of the hotspot device, for example, the security level of each hotspot device may be determined according to the number of security holes appearing in the access record, specifically, the network security level corresponding to each hotspot device is determined according to a mapping relationship between the preset number of security holes and the security level, where the mapping relationship between the preset number of security holes and the security level may be set by a user or may be default by the system, and is pre-stored in the electronic device.
102. Determining a first priority order of the plurality of wireless networks according to the network security levels of the plurality of wireless networks.
The electronic device may determine the first priority order of the plurality of wireless networks according to network security levels of the plurality of wireless networks, for example, the higher the security level is, the higher the priority is.
103. And acquiring the required safety level of the operating environment of the electronic equipment.
The security levels corresponding to different applications are different, even the security levels corresponding to different scenes of different applications are different, for example, the security requirement of a payment scene is high, while the security requirement of a non-payment scene is relatively low, and of course, different locations may also correspond to different security levels, for example, a familiar environment has a higher security level, and an unfamiliar environment has a lower security level. In specific implementation, the requirement security level corresponding to the operating environment can be determined by detecting the operating environment of the electronic device.
Optionally, in the step 103, obtaining the required security level of the operating environment of the electronic device may include the following steps:
31. acquiring a current foreground application;
32. and determining the required safety level corresponding to the foreground application according to a preset mapping relation between the application and the safety level.
The mapping relationship between the preset application and the security level can be pre-stored in the electronic device, and then, in specific implementation, the electronic device can obtain the current foreground application, and the required security level corresponding to the foreground application can be determined according to the mapping relationship.
Optionally, in the step 103, obtaining the required security level of the operating environment of the electronic device may include the following steps:
33. acquiring a current position;
34. and determining the required safety level corresponding to the current position according to a mapping relation between a preset position and the safety level.
The electronic device may pre-store a mapping relationship between a preset position and a security level, and further, in a specific implementation, the electronic device may obtain a current position, and may determine a required security level corresponding to the current position according to the mapping relationship.
104. And when the required security level is higher than a preset security level, selecting at least two wireless networks from the plurality of wireless networks according to the first priority order to perform link aggregation operation.
The preset security level can be set by the user or defaulted by the system. The higher the priority, the better the security performance, then can select two at least wireless networks from a plurality of wireless networks according to this priority order and be used for realizing link aggregation operation, so, when the security requirement is higher, can select the high network of security to carry out link aggregation, not only promote transmission rate, also guaranteed the security of network environment.
Optionally, after the step 103, the following steps may be further included:
a1, when the required security level is lower than or equal to the preset security level, acquiring network state parameters of the plurality of wireless networks;
a2, evaluating the stability of each wireless network in the wireless networks according to the network state parameters of the wireless networks to obtain a plurality of evaluation values;
a3, determining a second priority order of the wireless networks according to the evaluation values;
a4, selecting at least two wireless networks from the plurality of wireless networks to perform link aggregation operation according to the second priority order.
In this embodiment, 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 network state parameters reflect the stability or communication quality of the wireless network to some extent. In the specific implementation, when the required security level is lower than or equal to the preset security level, the electronic device may acquire the network state parameters of the multiple wireless networks, and further may determine the stability evaluation of each of the multiple wireless networks according to the network state parameters of the multiple wireless networks to obtain multiple evaluation values, and determine the second priority order of the multiple wireless networks according to the multiple evaluation values, for example, the larger the evaluation value is, the higher the priority is, and further, at least two wireless networks may be selected from the multiple wireless networks according to the second priority order to perform link aggregation operation, so that when the security requirement is not high, a wireless network with good stability may be selected to perform link aggregation operation, and the data transmission efficiency is improved.
Therefore, in specific implementation, in an intelligent home environment, the safety of each hotspot device is different, when the safety requirement is high, the hotspot device with high safety can be selected, the safety requirement is low, and the hotspot device with low safety but stable network can be switched to, so that the hotspot device can be flexibly selected to realize link aggregation operation.
Optionally, the network status parameters in the wireless network i include: when the target data transmission rate, the target round trip delay and the target error rate are adopted, the wireless network i is any one of the wireless networks; the step a2 of performing the stability evaluation on each of the wireless networks according to the network status parameters of the wireless networks to obtain a plurality of evaluation values may include the following steps:
a21, 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;
a22, 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;
a23, determining a target third evaluation value corresponding to the target error rate according to a third mapping relation between a preset error rate and the third evaluation value;
a24, 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 A25, 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 state parameters of wireless network i include: when the target data transmission rate, the target round trip delay and the target error rate are determined, the 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, 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, the evaluation value of the wireless network i is obtained, and specifically, the evaluation value of the wireless network i can be obtained according to the following formula: the evaluation value of the 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.
Optionally, before the step 101, the following steps may be further included:
b1, detecting the current electric quantity of the electronic equipment;
b2, when the current electric quantity is larger than a preset electric quantity threshold value, executing the step of network searching.
The preset electric quantity threshold value can be set by a user or defaulted by a system. In specific implementation, the intelligent link aggregation also increases the power consumption of the electronic device to a certain extent, in order to ensure 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 the preset electric quantity threshold, step 101 is executed.
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 a4, at least two wireless networks may be selected from the plurality of wireless networks according to the second 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:
c1, detecting the link quality of the first Wi-Fi data link and detecting the link quality of the second Wi-Fi data link;
c2, 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 C3, 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 C1, 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 a hotspot device and a network security level, determines a first priority order of the plurality of wireless networks according to the network security levels of the plurality of wireless networks, obtains a required security level of an operating environment of the electronic device, and selects at least two wireless networks from the plurality of wireless networks according to the first priority order to perform link aggregation operation when the required security level is higher than a preset security level, so that a network with high security can be selected to implement link aggregation when the security level is higher, that is, network environment security is ensured, and network transmission efficiency is also improved.
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 security level.
202. Determining a first priority order of the plurality of wireless networks according to the network security levels of the plurality of wireless networks.
203. And acquiring the required safety level of the operating environment of the electronic equipment.
204. And when the required security level is higher than a preset security level, selecting at least two wireless networks from the plurality of wireless networks according to the first priority order to perform link aggregation operation.
205. And when the required security level is lower than or equal to the preset security level, acquiring network state parameters of the plurality of wireless networks.
206. And performing stability evaluation on each wireless network in the plurality of wireless networks according to the network state parameters of the plurality of wireless networks to obtain a plurality of evaluation values.
207. Determining a second priority order of the plurality of wireless networks according to the plurality of evaluation values.
208. And selecting at least two wireless networks from the plurality of wireless networks according to the second priority order to carry out link aggregation operation.
The specific description of the steps 201-208 may refer to the corresponding steps of the link aggregation implementation method described in fig. 1B, and will not be described herein again.
It can be seen that, by the above example, not only can a network with high security be selected to implement link aggregation when the security level is high, i.e., the security of the network environment is ensured, but also the network transmission efficiency is improved, and a network with good stability can be selected when the security requirement is low, which is helpful for further improving the data transmission efficiency.
Referring to fig. 3, fig. 3 is a schematic flow chart of a link aggregation implementation method according to an embodiment of the present application, and as shown in the figure, the link aggregation implementation method is applied to an electronic device, and includes:
301. the current electric quantity of the electronic equipment is detected.
302. And when the current electric quantity is larger than a preset electric quantity threshold value, network searching is carried out to obtain a plurality of wireless networks, and each wireless network corresponds to one hotspot device and one network security level.
303. Determining a first priority order of the plurality of wireless networks according to the network security levels of the plurality of wireless networks.
304. And acquiring the required safety level of the operating environment of the electronic equipment.
305. And when the required security level is higher than a preset security level, selecting at least two wireless networks from the plurality of wireless networks according to the first priority order to perform link aggregation operation.
The specific description of the steps 301-305 may refer to the corresponding steps of the link aggregation implementation method described in fig. 1B, and will not be described herein again.
It can be seen that, according to the above example, when the security level is high, a network with high security can be selected to implement link aggregation, so that the network environment security is ensured, the network transmission efficiency is also improved, in addition, the power consumption of the electronic device can be increased to a certain extent by intelligent link aggregation, and the smooth implementation of the intelligent aggregation link function can be ensured.
Referring to fig. 4 in keeping with the embodiments shown in fig. 1B, fig. 2, and fig. 3, fig. 4 is a schematic structural diagram of an electronic device 400 provided in an embodiment of the present application, and as shown in the drawing, the electronic device 400 includes a processor 410, a memory 420, a communication interface 430, and one or more programs 421, where the one or more programs 421 are stored in the memory 420 and configured to be executed by the processor 410, and the one or more programs 421 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 security level;
determining a first priority order of the plurality of wireless networks according to the network security levels of the plurality of wireless networks;
acquiring a required safety level of the operating environment of the electronic equipment;
and when the required security level is higher than a preset security level, selecting at least two wireless networks from the plurality of wireless networks according to the first priority order to perform link aggregation operation.
It can be seen that, in the electronic device described in this embodiment of the present application, a network search is performed to obtain a plurality of wireless networks, each wireless network corresponds to one hotspot device and one network security level, a first priority order of the plurality of wireless networks is determined according to the network security levels of the plurality of wireless networks, a required security level of an operating environment of the electronic device is obtained, and when the required security level is higher than a preset security level, at least two wireless networks are selected from the plurality of wireless networks according to the first priority order to perform a link aggregation operation.
In one possible example, in said obtaining a required security level of an operating environment of said electronic device, said one or more programs 421 comprise instructions for:
acquiring a current foreground application;
and determining the required safety level corresponding to the foreground application according to a preset mapping relation between the application and the safety level.
In one possible example, the one or more programs 421 further include instructions for performing the steps of:
when the required security level is lower than or equal to the preset security level, acquiring network state parameters of the plurality of wireless networks;
performing stability evaluation on each wireless network in the plurality of wireless networks according to the network state parameters of the plurality of wireless networks to obtain a plurality of evaluation values;
determining a second priority order of the plurality of wireless networks according to the plurality of evaluation values;
and selecting at least two wireless networks from the plurality of wireless networks according to the second priority order to carry out link aggregation operation.
In one possible example, the network status parameters at wireless network i include: when the target data transmission rate, the target round trip delay and the target error rate are adopted, the wireless network i is any one of the wireless networks;
in terms of the evaluating the stability of each of the wireless networks according to the network state parameters of the wireless networks to obtain a plurality of evaluation values, the one or more programs 421 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 wireless network i.
In one possible example, the one or more programs 421 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 network searching.
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. 5A is a block diagram of functional units of a link aggregation implementation apparatus 500 according to an embodiment of the present application. The link aggregation implementing apparatus 500 is applied to an electronic device, and the link aggregation implementing apparatus 500 includes a searching unit 501, a determining unit 502, an obtaining unit 503, and a network access unit 504, wherein,
the searching unit 501 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 security level;
the determining unit 502 is configured to determine a first priority order of the wireless networks according to network security levels of the wireless networks;
the obtaining unit 503 is configured to obtain a required security level of an operating environment of the electronic device;
the network access unit 504 is configured to select at least two wireless networks from the plurality of wireless networks according to the first priority order to perform a link aggregation operation when the required security level is higher than a preset security level.
It can be seen that the link aggregation implementation apparatus 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 a hotspot device and a network security level, determines a first priority order of the plurality of wireless networks according to the network security levels of the plurality of wireless networks, obtains a required security level of an operating environment of the electronic device, and selects at least two wireless networks from the plurality of wireless networks according to the first priority order to perform link aggregation operation when the required security level is higher than a preset security level, so that a network with high security can be selected to implement link aggregation when the security level is higher, that is, network environment security is ensured, and network transmission efficiency is also improved.
In a possible example, in terms of the obtaining of the security level of the requirement of the operating environment of the electronic device, the obtaining unit 503 is specifically configured to:
acquiring a current foreground application;
and determining the required safety level corresponding to the foreground application according to a preset mapping relation between the application and the safety level.
In one possible example, among others,
the obtaining unit 503 is further specifically configured to obtain network state parameters of the multiple wireless networks when the required security level is lower than or equal to the preset security level;
the determining unit 502 is further specifically configured to perform stability evaluation on each of the plurality of wireless networks according to the network state parameters of the plurality of wireless networks, so as to obtain a plurality of evaluation values; and determining a second priority order of the plurality of wireless networks according to the plurality of evaluation values;
the network access unit 504 is further specifically configured to select at least two wireless networks from the plurality of wireless networks according to the second priority order for performing a link aggregation operation.
In one possible example, the network status parameters at wireless network i include: when the target data transmission rate, the target round trip delay and the target error rate are adopted, the wireless network i is any one of the wireless networks;
in the aspect of obtaining a plurality of evaluation values by performing stability evaluation on each of the plurality of wireless networks according to the network state parameters of the plurality of wireless networks, the method includes:
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 wireless network i.
In one possible example, as shown in fig. 5B, fig. 5B is a further modified structure of the link aggregation implementation apparatus described in fig. 5A, which may further include, compared with fig. 5A: the detection unit 505 is specifically as follows:
a detecting unit 505, configured to detect a current power amount of the electronic device;
the searching unit 501 executes the step of performing the network search when the current electric quantity is greater than a preset electric quantity threshold value
As shown in fig. 6, 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. 6 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. 6, 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. 6 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. 6:
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 the Display screen 941 may be optionally configured in the form of a Liquid Crystal Display (LCD), an Organic or inorganic 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. 6 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, fig. 2, and fig. 3, 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 (8)

1. A link aggregation implementation method is applied to an electronic device, and 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 security level;
determining a first priority order of the plurality of wireless networks according to the network security levels of the plurality of wireless networks;
acquiring a required safety level of an operating environment of the electronic equipment, wherein the operating environment and the required safety level are preset with a mapping relation, and the operating environment comprises a current position;
when the required security level is higher than a preset security level, selecting at least two wireless networks from the plurality of wireless networks according to the first priority order to perform link aggregation operation; the preset security level is set by a user or a system;
the method further comprises the following steps:
when the required security level is lower than or equal to the preset security level, acquiring network state parameters of the plurality of wireless networks;
performing stability evaluation on each wireless network in the plurality of wireless networks according to the network state parameters of the plurality of wireless networks to obtain a plurality of evaluation values;
determining a second priority order of the plurality of wireless networks according to the plurality of evaluation values;
and selecting at least two wireless networks from the plurality of wireless networks according to the second priority order to carry out link aggregation operation.
2. The method of claim 1, wherein obtaining the security level of the requirement of the operating environment of the electronic device comprises:
acquiring a current foreground application;
and determining the required safety level corresponding to the foreground application according to a preset mapping relation between the application and the safety level.
3. The method of claim 1, wherein the network status parameters in wireless network i comprise: when the target data transmission rate, the target round trip delay and the target error rate are adopted, the wireless network i is any one of the wireless networks;
the performing stability evaluation on each wireless network in the plurality of wireless networks according to the network state parameters of the plurality of wireless networks to obtain a plurality of evaluation values includes:
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 wireless network i.
4. The method according to any one of claims 1-3, further comprising:
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 network searching.
5. A link aggregation implementation device is applied to an electronic device and comprises a searching unit, a determining unit, an acquiring unit and a network access unit, wherein,
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 security level;
the determining unit is used for determining a first priority order of the wireless networks according to the network security levels of the wireless networks;
the acquiring unit is used for acquiring a required safety level of an operating environment of the electronic equipment, the operating environment and the required safety level are preset with a mapping relation, and the operating environment comprises a current position;
the network access unit is used for selecting at least two wireless networks from the plurality of wireless networks according to the first priority order to perform link aggregation operation when the required security level is higher than a preset security level; the preset security level is set by a user or a system;
the acquiring unit is further specifically configured to acquire network state parameters of the plurality of wireless networks when the required security level is lower than or equal to the preset security level;
the determining unit is further specifically configured to perform stability evaluation on each of the plurality of wireless networks according to the network state parameters of the plurality of wireless networks to obtain a plurality of evaluation values; and determining a second priority order of the plurality of wireless networks according to the plurality of evaluation values;
the network access unit is further specifically configured to select at least two wireless networks from the plurality of wireless networks according to the second priority order to perform a link aggregation operation.
6. The apparatus according to claim 5, wherein in the aspect of obtaining the required security level of the operating environment of the electronic device, the obtaining unit is specifically configured to:
acquiring a current foreground application;
and determining the required safety level corresponding to the foreground application according to a preset mapping relation between the application and the safety level.
7. 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.
8. 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.
CN201811496075.8A 2018-12-07 2018-12-07 Link aggregation implementation method and related product Active CN109587765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811496075.8A CN109587765B (en) 2018-12-07 2018-12-07 Link aggregation implementation method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811496075.8A CN109587765B (en) 2018-12-07 2018-12-07 Link aggregation implementation method and related product

Publications (2)

Publication Number Publication Date
CN109587765A CN109587765A (en) 2019-04-05
CN109587765B true CN109587765B (en) 2021-06-25

Family

ID=65929193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811496075.8A Active CN109587765B (en) 2018-12-07 2018-12-07 Link aggregation implementation method and related product

Country Status (1)

Country Link
CN (1) CN109587765B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117156485B (en) * 2023-10-31 2024-01-09 西安明赋云计算有限公司 Link quality detection method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092668A (en) * 2014-06-23 2014-10-08 北京航空航天大学 Method for constructing safety service of reconfigurable network
CN105636035A (en) * 2015-03-30 2016-06-01 西安酷派软件科技有限公司 Network access method, network access device and terminal
CN106304278A (en) * 2015-05-19 2017-01-04 中兴通讯股份有限公司 Network selecting method, device and mobile terminal
CN106332307A (en) * 2015-07-03 2017-01-11 华为技术有限公司 Method for application program access to network and mobile terminal
CN107889177A (en) * 2017-11-29 2018-04-06 维沃移动通信有限公司 Method for switching network and device
CN108777666A (en) * 2018-08-23 2018-11-09 Oppo广东移动通信有限公司 The shunt method and relevant device of link aggregation

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869574A (en) * 2015-05-22 2015-08-26 小米科技有限责任公司 Wireless network connection method and apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092668A (en) * 2014-06-23 2014-10-08 北京航空航天大学 Method for constructing safety service of reconfigurable network
CN105636035A (en) * 2015-03-30 2016-06-01 西安酷派软件科技有限公司 Network access method, network access device and terminal
CN106304278A (en) * 2015-05-19 2017-01-04 中兴通讯股份有限公司 Network selecting method, device and mobile terminal
CN106332307A (en) * 2015-07-03 2017-01-11 华为技术有限公司 Method for application program access to network and mobile terminal
CN107889177A (en) * 2017-11-29 2018-04-06 维沃移动通信有限公司 Method for switching network and device
CN108777666A (en) * 2018-08-23 2018-11-09 Oppo广东移动通信有限公司 The shunt method and relevant device of link aggregation

Also Published As

Publication number Publication date
CN109587765A (en) 2019-04-05

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
CN111615141B (en) Measurement method, measurement configuration method, terminal and network equipment
CN109922504B (en) Data distribution method and related product
CN109617802B (en) Link aggregation implementation method and related product
CN109922539B (en) Network connection method and related product
CN111919505B (en) Data processing method and terminal
CN107682038B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
WO2020147645A1 (en) Link aggregation realization method and related product
CN108990105A (en) Wireless communication transmission method, device, mobile terminal and computer-readable storage medium
CN109316743A (en) A kind of game control method, terminal and computer readable storage medium
WO2020164521A1 (en) Data packet distribution method and apparatus, and mobile terminal and storage medium
CN109640329A (en) Link aggregation implementation method and Related product
CN109309953B (en) Power consumption detection method, device, terminal and readable storage medium
CN107733508B (en) Antenna switching method, multi-antenna terminal and computer readable storage medium
CN109587765B (en) Link aggregation implementation method and related product
CN109640379B (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
CN107823888B (en) Game team forming method and related product
CN115412988A (en) Method and device for terminal equipment to select cell, terminal equipment and storage medium
CN109474521A (en) Link aggregation implementation method and Related product
US11973684B2 (en) Link aggregation implementation method and related product
CN109451498B (en) Network authentication method and related product
CN111436143A (en) Uplink authorization changing method, information sending method and related device

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