CN109587053B - Network shunting method and related equipment - Google Patents

Network shunting method and related equipment Download PDF

Info

Publication number
CN109587053B
CN109587053B CN201811628047.7A CN201811628047A CN109587053B CN 109587053 B CN109587053 B CN 109587053B CN 201811628047 A CN201811628047 A CN 201811628047A CN 109587053 B CN109587053 B CN 109587053B
Authority
CN
China
Prior art keywords
wireless network
target
network module
network modules
scene
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
CN201811628047.7A
Other languages
Chinese (zh)
Other versions
CN109587053A (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 CN201811628047.7A priority Critical patent/CN109587053B/en
Publication of CN109587053A publication Critical patent/CN109587053A/en
Application granted granted Critical
Publication of CN109587053B publication Critical patent/CN109587053B/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
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

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 network shunting method and related equipment, which are applied to electronic equipment comprising a plurality of wireless network modules, wherein the method comprises the following steps: determining a target scene where a target application is currently located under the condition that the electronic equipment is currently in a link aggregation starting state and the target application operated by the foreground of the electronic equipment is a set application; determining a target wireless network module based on the target scenario, the target network module being at least one of at least two wireless network modules of the plurality of wireless network modules for the link aggregation; and distributing the data stream associated with the target scene to the target wireless network module. By adopting the method and the device, the intelligence of shunting can be improved.

Description

Network shunting method and related equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a network offloading method and a related device.
Background
Link Aggregation (Link Aggregation) enables an electronic device (e.g., a smart phone, etc.) to transmit data using two or more wireless network modules (e.g., a wifi module, a data network module, etc.) at the same time. Link aggregation is an important technology in terms of increasing link bandwidth, implementing link transmission resiliency and redundancy, and the like. In a link aggregation state, how to shunt different wireless network modules is a technical problem to be solved.
Disclosure of Invention
The embodiment of the application provides a network shunting method and related equipment, which are used for improving the intelligence of shunting.
In a first aspect, an embodiment of the present application provides a network offloading method, which is applied to an electronic device including a plurality of wireless network modules, and the method includes:
determining a target scene where a target application is currently located under the condition that the electronic equipment is currently in a link aggregation starting state and the target application operated by the foreground of the electronic equipment is a set application;
determining a target wireless network module based on the target scenario, the target network module being at least one of at least two wireless network modules of the plurality of wireless network modules for the link aggregation;
and distributing the data stream associated with the target scene to the target wireless network module.
In a second aspect, an embodiment of the present application provides a network offloading device, which is applied to an electronic device including a plurality of wireless network modules, where the device includes:
the scene determining unit is used for determining a target scene where a target application is currently located when the electronic equipment is currently in a link aggregation starting state and the target application operated by the foreground of the electronic equipment is a set application;
a network module determining unit, configured to determine a target wireless network module based on the target scenario, where the target wireless network module is at least one of at least two wireless network modules used for the link aggregation among the plurality of wireless network modules;
and the shunting unit is used for distributing the data stream associated with the target scene to the target wireless network module.
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 steps in the method according to the first aspect of the embodiment of the present application.
In a fourth aspect, 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 makes a computer perform some or all of the steps described in the method according to the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps described in the method according to the first aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the application, when the electronic device is currently in a link aggregation open state and a target application running in a foreground of the electronic device is a set application, a target scene where the target application is currently located is determined, then a target wireless network module is determined based on the target scene, and finally a data stream associated with the target scene is distributed to the target wireless network module, so that shunting is performed based on different scenes of the application, and the intelligence of shunting 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 schematic diagram of a program running space of a smart phone according to an embodiment of the present application;
fig. 1B is a system architecture diagram of an android system provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a network offloading method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another network offloading 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. 5 is a schematic structural diagram of a network offloading device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first," "second," "third," and "fourth," etc. in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Electronic devices may include various handheld devices, vehicle mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem with wireless communication capabilities, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal Equipment (terminal device), and so forth.
As shown in fig. 1A, currently, an electronic device such as a smart phone is generally provided with a program running space, where the program running space includes a user space and an operating system space, where the user space runs one or more application programs, and the one or more application programs are third-party application programs installed in the electronic device.
The electronic device can specifically run an Android system, a mobile operating system iOS developed by apple Inc., and the like, and the electronic device is not limited herein. As shown in fig. 1B, for example that the electronic device runs an Android system, the corresponding user space includes an Application layer (Applications) in the Android system, and the operating system space may include an Application Framework layer (Application Framework) in the Android system, a system Runtime library layer (including system Runtime Libraries and Android Runtime runtimes), and a Linux Kernel layer (Linux Kernel). The application layer comprises various application programs which are directly interacted with the user or service programs which are written by Java language and run in the background. For example, programs that implement common basic functions on smartphones, such as Short Messaging Service (SMS) SMS, phone dialing, picture viewer, calendar, games, maps, World Wide Web (Web) browser, and other applications developed by developers. The application framework layer provides a series of class libraries required by Android application development, can be used for reusing components, and can also realize personalized extension through inheritance. And the system operation library layer is a support of an application program framework and provides services for each component in the Android system. The system operation library layer is composed of a system class library and Android operation. The Android runtime comprises two parts, namely a core library and a Dalvik virtual machine. The Linux kernel layer is used for realizing core functions such as hardware device driving, process and memory management, a network protocol stack, power management, wireless communication and the like.
The following describes embodiments of the present application in detail.
Referring to fig. 2, fig. 2 is a schematic flowchart of a network offloading method provided in an embodiment of the present application, and the method is applied to an electronic device including a plurality of wireless network modules, and the network offloading method includes:
step 201: and when the electronic equipment is currently in a link aggregation starting state and a target application running in the foreground of the electronic equipment is a set application, the electronic equipment determines a target scene where the target application is currently located.
The security priority of the set application is greater than or equal to the first level, and the set application may be, for example, a bank application, a shopping application, an instant messaging application, and the like. The setting of the security priority of the application may be user-defined, or may be user-defined by the electronic device, which is not limited herein.
When the target application is a bank application, the current scene of the target application may be, for example, a payment scene, a transfer scene, a service query scene, a service consultation scene, and the like. When the target application is a shopping application, the current scene of the target application includes, for example, a payment scene, an article shopping scene, a consultation scene, a shopping cart scene, and the like. When the target application is an instant messaging application, the current scene of the target application is, for example, an image and text chat scene, a payment scene, a voice call scene, a video call scene, and the like.
The wireless network module included in the electronic device includes, for example, a wifi module, a bluetooth module, a data network module, a Neighbor Awareness Network (NAN) network module, and the like. The data network module may support a second Generation mobile phone communication technology (2-Generation with less mobile phone technology, 2G) network, a third Generation mobile phone communication technology (3rd-Generation with less mobile phone network technology, 3G) network, a Long Term Evolution (LTE) network, a fifth Generation mobile phone communication technology (5th-Generation with less mobile phone technology, 5G) network, and so on.
Step 202: the electronic device determines a target wireless network module based on the target scenario, where the target wireless network module is at least one of at least two wireless network modules of the plurality of wireless network modules used for the link aggregation.
Step 203: and the electronic equipment distributes the data stream associated with the target scene to the target wireless network module.
Specifically, currently, when an electronic device is in link aggregation, if there are data streams to be processed, the electronic device distributes the data streams to at least two wireless network modules for link aggregation to process regardless of what the data streams are.
In the embodiment of the application, when the electronic device is currently in a link aggregation open state and an application running in a foreground of the electronic device is a set application, a target scene where the set application is currently located is determined, then a target wireless network module is determined based on the target scene, and finally a data stream associated with the target scene is distributed to the target wireless network module, so that shunting is performed based on different scenes of the set application, and the intelligence of shunting is improved.
In an implementation manner of the present application, the at least two wireless network modules include a data network module corresponding to a mobile data network, and the determining, by the electronic device, a target wireless network module based on the target scene includes: and under the condition that the target scene is a set scene, the electronic equipment takes the data network module as the target wireless network module, and the safety level of the set scene is greater than or equal to a preset level.
The security level of the mobile data network is higher than that of other wireless networks (such as Wi-Fi networks, mobile phone hotspots and the like), so that the security level of the data network module corresponding to the mobile data network is higher than that of other wireless network modules except the data network module in the at least two wireless network modules.
The setting scenario may be, for example, a payment scenario, a transfer scenario, a chat scenario, or the like. The setting of the security level of the scene may be user-defined, or may be user-defined by the electronic device, which is not limited herein.
For example, assuming that the application is set as a bank-type application and the scenario is set as a payment scenario, under link aggregation, if the application running in the foreground is the bank-type application and the bank-type application is currently in the payment scenario, the data stream associated with the payment scenario is distributed to the data network module for processing.
Therefore, for the data stream with higher security level, the wireless network module with higher security level is used for processing, and the security of data processing is improved.
Further, before the electronic device uses the data network module as the target wireless network module, the method further includes:
the electronic equipment determines that the current geographic position of the electronic equipment is not a set geographic position, and the set geographic position is a geographic position associated with the target application.
If the target application is a bank application, the set geographic location associated with the target application is the geographic location of all physical storefronts of the bank associated with the target application, for example, if the target application is an agricultural bank APP, the set geographic location associated with the target application is the geographic location of all physical storefronts of all agricultural banks. Assuming that the target application is an instant messaging application, the set geographic location associated with the target application is the geographic location of a place (e.g., home, office, school, dormitory, library, etc.) where the user of the electronic device is often located. Assuming that the target application is a shopping application, the set geographic location associated with the target application is the geographic location of a place (e.g., home, office, school, dormitory, library, supermarket, etc.) where the user of the electronic device is often located.
If the current geographical position of the electronic device is not the set geographical position, it indicates that the current environment of the electronic device is not the safer environment, and it indicates that other wireless networks in the environment are not the safer networks, so for the data stream with higher security level, under the condition that the current geographical position of the electronic device is not the set geographical position, the wireless network module with higher security level such as the data network module is used for processing, and the security of data processing is improved.
Further, before the electronic device uses the data network module as the target wireless network module, the method further includes:
the electronic equipment determines that the security levels of other wireless network modules except the data network module in the at least two wireless network modules are less than or equal to a second level.
If the security level of the other wireless network module is less than or equal to the second level, it indicates that the other wireless network module in the environment is not a safer network, and therefore, for a data stream with a higher security level, the data network module is used for processing the data stream with the higher security level, so that the security of data processing is improved.
Further, the method further comprises:
and under the condition that the target scene is not a set scene, the electronic equipment takes the at least two wireless network modules as the target wireless network module.
It can be seen that for data streams with a less high security level, at least two wireless network modules for link aggregation are normally used for processing to guarantee link bandwidth.
Further, before the electronic device regards the at least two wireless network modules as the target wireless network module, the method further includes:
the electronic equipment acquires the current first peak transmission rate of the at least two wireless network modules;
the electronic device determines that the absolute value of the difference between any two first peak transmission rates is less than or equal to a preset threshold.
It can be seen that, under the condition that the quality of the links corresponding to the at least two wireless network modules for link aggregation is not high enough, the data streams of the target scene are processed by using the at least two wireless network modules for link aggregation, so that the stability of data processing can be ensured under the condition of ensuring the link bandwidth.
Further, before the electronic device acquires the current first peak transmission rate of the at least two wireless network modules, the method further includes:
the electronic equipment respectively determines the current data increment rates of the at least two wireless network modules; the electronic equipment respectively acquires second peak transmission rates determined last time by the at least two wireless network modules; the electronic equipment respectively determines the current first Round-Trip Time (RTT) of the at least two wireless network modules; the electronic equipment determines the current first peak transmission rate of the at least two wireless network modules according to the determined at least two data increment rates, the obtained at least two second peak transmission rates and the determined at least two first RTTs.
The at least two second peak transmission rates correspond to the at least two wireless network modules one to one, the at least two first RTTs correspond to the at least two wireless network modules one to one, and the at least two data increments correspond to the at least two wireless network modules one to one. The at least two first RTTs correspond to the at least two wireless network modules one to one.
RTT is an important performance indicator in a computer network, where RTT indicates a total time delay from when a sending end sends data to when the sending end receives an acknowledgement command from a receiving end, and the acknowledgement command is sent immediately after the receiving end receives the data.
Further, the specific implementation manner of the electronic device respectively determining the current data increment rates of the at least two wireless network modules includes:
the electronic equipment respectively acquires first data volumes of the at least two wireless network modules at a first moment, wherein the first moment is a current moment; the electronic equipment respectively acquires second data volumes of the at least two wireless network modules at a second moment, wherein the second moment is earlier than the first moment; the electronic equipment determines the current data increment rates of the at least two wireless network modules according to the acquired at least two first data volumes and the acquired at least two second data volumes.
The difference between the first time and the second time is preset, and the difference may be self-defined by the electronic device or by a user, which is not limited herein.
The at least two first data volumes are in one-to-one correspondence with the at least two network data modules, and the at least two second data volumes are in one-to-one correspondence with the at least two network data modules.
Further, the specific implementation manner of the electronic device determining the current data increment rates of the at least two wireless network modules according to the obtained at least two first data volumes and the obtained at least two second data volumes is as follows: the electronic equipment determines the current data increment rates of the at least two wireless network modules according to the acquired at least two first data volumes, the acquired at least two second data volumes and a calculation formula;
the first calculation formula is: data increment rate ═ first data amount-second data amount)/(first time instant-second time instant.
In an implementation manner of the present application, specific implementation manners of the electronic device respectively determining the current first RTTs of the at least two wireless network modules include:
the electronic device determines a second RTT for operating a Transmission Control Protocol (TCP); the electronic equipment respectively acquires the last determined third RTT of the at least two wireless network modules; and the electronic equipment determines the current first RTT of the at least two wireless network modules according to the determined second RTT and the obtained at least two third RTTs.
And the at least two third RTTs correspond to the at least two wireless network modules one to one.
Wherein the second RTT refers to a transmission time taken by the transmitting end from the transmission of the TCP packet to the reception of the immediate response to the TCP packet.
The specific implementation manner of the electronic device determining the second RTT running a TCP is as follows: the electronic device counts a second RTT running a TCP through a TCP _ RTT _ estimator () function. The second RTT is the RTT of the first request after the three-way handshake, such as rrt of http get, http post. The 3-way handshake refers to 3 acknowledgement procedures for TCP to establish a connection.
Further, the specific implementation manner of the electronic device determining the current first RTT of the at least two wireless network modules according to the determined second RTT and the obtained at least two third RTTs includes: the electronic equipment determines the current first RTT of the at least two wireless network modules according to the determined second RTT, the obtained at least two third RTTs and a second calculation formula;
the second calculation formula is: the first RTT (third RTT + second RTT)/2.
In an implementation manner of the present application, a specific implementation manner in which the electronic device determines the current first peak transmission rate of the at least two wireless network modules according to the determined at least two data increment rates, the obtained at least two second peak transmission rates, and the determined at least two first RTTs includes:
the electronic equipment determines the current first peak transmission rate of the at least two wireless network modules according to the determined at least two data increment rates, the obtained at least two second peak transmission rates, the determined at least two first RTTs and a first rule; the first rule is that the larger of the data increment rate and the second peak transmission rate is used as a first peak transmission rate when the first RTT is smaller than the preset RTT; and taking n times of the larger of the data increment rate and the second peak transmission rate as the first peak transmission rate when the first RTT is greater than or equal to the preset RTT, wherein the n is a positive number less than 1.
Further, the method further comprises:
and under the condition that the absolute value of the difference value of any two first peak transmission rates is greater than the preset threshold, the electronic equipment takes the wireless network module with the maximum first peak transmission rate in the at least two wireless network modules as the target wireless network module.
It can be seen that, under the condition that the quality difference of the links corresponding to at least two wireless network modules for link aggregation is compared, only the wireless network module with the better link quality processes the data stream of the target scene, and the stability of data processing is improved.
In an implementation manner of the present application, the allocating, by an electronic device, a data stream associated with the target scene to the target wireless network module includes:
the electronic equipment respectively determines the shunting weights of the at least two wireless network modules according to the obtained at least two first peak transmission rates;
and the electronic equipment distributes the data streams associated with the target scene to the at least two wireless network modules according to the determined at least two shunt weights.
In an implementation manner of the present application, the electronic device determines, according to the obtained at least two first peak transmission rates, specific implementation manners of the offloading weights of the at least two wireless network modules respectively:
the electronic equipment respectively determines the shunting weight of the at least two wireless network modules according to the obtained at least two first peak transmission rates and a second rule, wherein the second rule is that the shunting weight is equal to the sum of the first peak transmission rate divided by the at least two first peak transmission rates.
Wherein the sum of the offloading weights of the at least two wireless network modules is equal to 1.
For example, assuming that the wireless network modules for link aggregation are a wifi module and a data network module, determining that the offloading weight of the wifi module is 1/3, and the offloading weight of the data network module is 2/3, if there are 3 data streams currently associated with the target scene, the electronic device offloads 1 data stream to the wifi module, and offloads 2 data streams to the data network module. For another example, assuming that the wireless network modules for link aggregation are a wifi module and a data network module, determining that the offloading weight of the wifi module is 1/3, and the offloading weight of the data network module is 2/3, if there are 4 data streams currently associated with the target scene, the electronic device offloads 1 data stream to the wifi module, and offloads 3 data streams to the data network module.
It can be seen that the data streams are distributed to the at least two wireless network modules based on the actual conditions of the at least two wireless network modules, so that the data streams are reasonably distributed to different wireless network modules in a link aggregation state, and the stability of data transmission is further improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a network offloading method provided in an embodiment of the present application, and is applied to an electronic device including a plurality of wireless network modules, where the plurality of wireless network modules include at least two wireless network modules used for link aggregation, and the at least two wireless network modules include data network modules corresponding to a mobile data network, where the network offloading method includes:
step 301: and when the electronic equipment is currently in a link aggregation starting state and the target application running in the foreground of the electronic equipment is a set application, the electronic equipment determines a target scene where the target application is currently located.
Step 302: the electronic device determines whether the target scene is a set scene.
If yes, go to step 303.
If not, go to step 305.
Step 303: the electronic equipment determines whether the current geographic position of the electronic equipment is a set geographic position, wherein the set geographic position is a geographic position associated with the target application.
If not, go to step 304.
If yes, go to step 305.
Further, step 303 may use the step "the electronic device determines whether the security levels of the other wireless network modules of the at least two wireless network modules except the data network module are both less than or equal to the second level" instead.
Step 304: the electronic equipment takes a data network module as the target wireless network module, and the safety level of the set scene is greater than or equal to a preset level.
Step 305: the electronic equipment acquires the current first peak transmission rate of the at least two wireless network modules.
Step 306: the electronic device determines whether an absolute value of a difference between any two of the first peak transmission rates is less than or equal to a preset threshold.
If yes, go to step 307.
If not, go to step 308.
Step 307: the electronic equipment takes the at least two wireless network modules as the target wireless network module.
Step 308: and the electronic equipment takes the wireless network module with the maximum first peak transmission rate in the at least two wireless network modules as the target wireless network module.
Step 309: and the electronic equipment distributes the data stream associated with the target scene to the target wireless network module.
It should be noted that, for the specific implementation process of the present embodiment, reference may be made to the specific implementation process described in the above method embodiment, and a description thereof is omitted here.
In accordance with the embodiments shown in fig. 2 and fig. 3, please refer to fig. 4, fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, where the electronic device includes a plurality of wireless network modules, and as shown, the electronic device includes 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 performing the following steps:
determining a target scene where a target application is currently located under the condition that the electronic equipment is currently in a link aggregation starting state and the target application operated by the foreground of the electronic equipment is a set application;
determining a target wireless network module based on the target scenario, the target network module being at least one of at least two wireless network modules of the plurality of wireless network modules for the link aggregation;
and distributing the data stream associated with the target scene to the target wireless network module.
It can be seen that, in the embodiment of the application, when the electronic device is currently in a link aggregation open state and an application running in a foreground of the electronic device is a set application, a target scene where the set application is currently located is determined, then a target wireless network module is determined based on the target scene, and finally a data stream associated with the target scene is distributed to the target wireless network module, so that shunting is performed based on different scenes of the set application, and the intelligence of shunting is improved.
In an implementation manner of the present application, the at least two wireless network modules include a data network module corresponding to a mobile data network, and in terms of determining a target wireless network module based on the target scenario, the program includes instructions specifically configured to perform the following steps:
and under the condition that the target scene is a set scene, taking the data network module as the target wireless network module, wherein the safety level of the set scene is greater than or equal to a preset level.
In an implementation manner of the present application, before the data network module is taken as the target wireless network module, the program includes instructions for further performing the following steps:
determining that the current geographic position of the electronic equipment is not a set geographic position, wherein the set geographic position is a geographic position associated with the target application.
In an implementation manner of the present application, the program includes instructions for further performing the following steps:
and taking the at least two wireless network modules as the target wireless network module under the condition that the target scene is not a set scene.
In an implementation manner of the present application, before the at least two wireless network modules are taken as the target wireless network module, the program includes instructions for further performing the following steps:
acquiring current first peak transmission rates of the at least two wireless network modules;
and determining that the absolute value of the difference value of any two first peak transmission rates is less than or equal to a preset threshold value.
In an implementation manner of the present application, the program includes instructions for further performing the following steps:
and taking the wireless network module with the maximum first peak transmission rate in the at least two wireless network modules as the target wireless network module under the condition that the absolute value of the difference value of any two first peak transmission rates is greater than the preset threshold value.
In an implementation manner of the present application, in allocating the data stream associated with the target scenario to the target wireless network module, the program includes instructions specifically configured to perform the following steps:
respectively determining the shunting weight of the at least two wireless network modules according to the obtained at least two first peak transmission rates;
and distributing the data streams associated with the target scene to the at least two wireless network modules according to the determined at least two shunt weights.
It should be noted that, for the specific implementation process of the present embodiment, reference may be made to the specific implementation process described in the above method embodiment, and a description thereof is omitted here.
The above embodiments mainly introduce the scheme of the embodiments of the present application from the perspective of the method-side implementation process. It is understood that the 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 would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the 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.
The following is an embodiment of the apparatus of the present application, which is used to execute the method implemented by the embodiment of the method of the present application. Referring to fig. 5, fig. 5 is a diagram of a network offloading device applied to an electronic device including a plurality of wireless network modules according to an embodiment of the present disclosure, where the network offloading device includes:
a scene determining unit 501, configured to determine a target scene where a target application is currently located when the electronic device is currently in a link aggregation on state and the target application running in a foreground of the electronic device is a set application;
a network module determining unit 502, configured to determine a target wireless network module based on the target scenario, where the target wireless network module is at least one of at least two wireless network modules used for the link aggregation among the plurality of wireless network modules;
a splitting unit 503, configured to allocate a data stream associated with the target scene to the target wireless network module.
It can be seen that, in the embodiment of the application, when the electronic device is currently in a link aggregation open state and an application running in a foreground of the electronic device is a set application, a target scene where the set application is currently located is determined, then a target wireless network module is determined based on the target scene, and finally a data stream associated with the target scene is distributed to the target wireless network module, so that shunting is performed based on different scenes of the set application, and the intelligence of shunting is improved.
In an implementation manner of the present application, the at least two wireless network modules include a data network module corresponding to a mobile data network, and in terms of determining a target wireless network module based on the target scenario, the network module determining unit 502 is specifically configured to:
and under the condition that the target scene is a set scene, taking the data network module as the target wireless network module, wherein the safety level of the set scene is greater than or equal to a preset level.
In an implementation manner of the present application, before the data network module is used as the target wireless network module, the network module determining unit 502 is further configured to determine that the current geographic location of the electronic device is not a set geographic location, where the set geographic location is a geographic location associated with the target application.
In an implementation manner of the present application, the network module determining unit 502 is further configured to use the at least two wireless network modules as the target wireless network module when the target scene is not a setting scene.
In an implementation manner of the present application, before the at least two wireless network modules are taken as the target wireless network module, the network module determining unit 502 is further configured to obtain a current first peak transmission rate of the at least two wireless network modules; and determining that the absolute value of the difference value of any two first peak transmission rates is less than or equal to a preset threshold value.
In an implementation manner of the present application, the network module determining unit 502 is further configured to, when an absolute value of a difference between any two first peak transmission rates is greater than the preset threshold, take a wireless network module with a maximum first peak transmission rate of the at least two wireless network modules as the target wireless network module.
In an implementation manner of the present application, in allocating a data stream associated with the target scene to the target wireless network module, the offloading unit 503 is specifically configured to:
respectively determining the shunting weight of the at least two wireless network modules according to the obtained at least two first peak transmission rates;
and distributing the data streams associated with the target scene to the at least two wireless network modules according to the determined at least two shunt weights.
It should be noted that the scene determining unit 501, the network module determining unit 502, and the splitting unit 503 may be implemented by a processing unit.
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 (6)

1. A network offloading method is applied to an electronic device including a plurality of wireless network modules, and the method includes:
determining a target scene where a target application is currently located under the condition that the electronic equipment is currently in a link aggregation starting state and the target application operated by the foreground of the electronic equipment is a set application;
determining a target wireless network module based on the target scenario, comprising: when the target scene is a set scene, at least one of at least two wireless network modules used for link aggregation in the plurality of wireless network modules is used as a target wireless network module, the security level of the set scene is greater than or equal to a preset level, and the security level of the target wireless network module is greater than the security levels of other wireless network modules except the target wireless network module in the at least two wireless network modules; taking the at least two wireless network modules as the target wireless network module under the condition that the target scene is not a set scene;
distributing the data stream associated with the target scene to the target wireless network module;
before the taking at least one of at least two wireless network modules for the link aggregation among the plurality of wireless network modules as a target wireless network module, the method further comprises: determining that the current geographic position of the electronic equipment is not a set geographic position, wherein the set geographic position is a geographic position associated with the target application;
before the taking the at least two wireless network modules as the target wireless network module, the method further comprises: acquiring current first peak transmission rates of the at least two wireless network modules; determining that the absolute value of the difference value of any two first peak transmission rates is less than or equal to a preset threshold value;
the method further comprises the following steps: and taking the wireless network module with the maximum first peak transmission rate in the at least two wireless network modules as the target wireless network module under the condition that the absolute value of the difference value of any two first peak transmission rates is greater than the preset threshold value.
2. The method of claim 1, wherein the at least two wireless network modules comprise data network modules corresponding to a mobile data network.
3. The method according to claim 1 or 2, wherein the allocating the data stream associated with the target scenario to the target wireless network module comprises:
respectively determining the shunting weight of the at least two wireless network modules according to the obtained at least two first peak transmission rates;
and distributing the data streams associated with the target scene to the at least two wireless network modules according to the determined at least two shunt weights.
4. A network shunting device, which is applied to an electronic device comprising a plurality of wireless network modules, the device comprising:
the scene determining unit is used for determining a target scene where a target application is currently located when the electronic equipment is currently in a link aggregation starting state and the target application operated by the foreground of the electronic equipment is a set application;
a network module determining unit, configured to determine a target wireless network module based on the target scenario, including: when the target scene is a set scene, at least one of at least two wireless network modules used for link aggregation in the plurality of wireless network modules is used as a target wireless network module, the security level of the set scene is greater than or equal to a preset level, and the security level of the target wireless network module is greater than the security levels of other wireless network modules except the target wireless network module in the at least two wireless network modules; taking the at least two wireless network modules as the target wireless network module under the condition that the target scene is not a set scene;
the shunting unit is used for distributing the data stream associated with the target scene to the target wireless network module;
before at least one of at least two wireless network modules used for link aggregation in the plurality of wireless network modules is taken as a target wireless network module, the network module determining unit is further configured to determine that the current geographic location of the electronic device is not a set geographic location, where the set geographic location is associated with the target application;
before the at least two wireless network modules are used as the target wireless network module, the network module determining unit is further configured to obtain current first peak transmission rates of the at least two wireless network modules; determining that the absolute value of the difference value of any two first peak transmission rates is less than or equal to a preset threshold value;
the network module determining unit is further configured to, when an absolute value of a difference between any two first peak transmission rates is greater than the preset threshold, take a wireless network module with a maximum first peak transmission rate of the at least two wireless network modules as the target wireless network module.
5. 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-3.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program, which is executed by a processor to implement the method according to any of claims 1-3.
CN201811628047.7A 2018-12-28 2018-12-28 Network shunting method and related equipment Active CN109587053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811628047.7A CN109587053B (en) 2018-12-28 2018-12-28 Network shunting method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811628047.7A CN109587053B (en) 2018-12-28 2018-12-28 Network shunting method and related equipment

Publications (2)

Publication Number Publication Date
CN109587053A CN109587053A (en) 2019-04-05
CN109587053B true CN109587053B (en) 2021-09-07

Family

ID=65933459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811628047.7A Active CN109587053B (en) 2018-12-28 2018-12-28 Network shunting method and related equipment

Country Status (1)

Country Link
CN (1) CN109587053B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777666B (en) * 2018-08-23 2020-10-09 Oppo广东移动通信有限公司 Shunting method for link aggregation and related equipment
CN112291816B (en) * 2020-11-13 2023-03-24 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and electronic equipment
CN116709417B (en) * 2022-10-14 2024-05-31 荣耀终端有限公司 Temperature control method and related equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837167A (en) * 2015-04-29 2015-08-12 深圳市金立通信设备有限公司 Network switching method
CN106211164A (en) * 2016-07-28 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Terminal network changing method, terminal network switching device and terminal
CN107182055A (en) * 2017-06-22 2017-09-19 深圳传音通讯有限公司 Mobile terminal network connection processing method and mobile terminal
CN108881012A (en) * 2018-08-23 2018-11-23 Oppo广东移动通信有限公司 link aggregation method and related product

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102790803A (en) * 2012-07-19 2012-11-21 南京邮电大学 Streaming media service multi-stream concurrent transmission method based on multi-terminal fusion
CN103716252A (en) * 2012-09-29 2014-04-09 中兴通讯股份有限公司 Flow-distribution link aggregation and device
US9203770B2 (en) * 2013-06-28 2015-12-01 Broadcom Corporation Enhanced link aggregation in a communications system
US9603055B2 (en) * 2015-01-30 2017-03-21 Nokia Solutions And Networks Oy Controlling LTE/Wi-Fi aggregation
US20180054724A1 (en) * 2016-08-19 2018-02-22 Intel IP Corporation Device discovery during link aggregation in wireless communications
CN107547745B (en) * 2017-08-31 2020-07-17 Oppo广东移动通信有限公司 Resource allocation method and related product
CN107786738B (en) * 2017-10-18 2019-10-25 Oppo广东移动通信有限公司 Network control method and equipment
CN108990110B (en) * 2018-07-26 2022-02-22 Oppo广东移动通信有限公司 Network traffic management method, device, storage medium and terminal
CN108777666B (en) * 2018-08-23 2020-10-09 Oppo广东移动通信有限公司 Shunting method for link aggregation and related equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104837167A (en) * 2015-04-29 2015-08-12 深圳市金立通信设备有限公司 Network switching method
CN106211164A (en) * 2016-07-28 2016-12-07 宇龙计算机通信科技(深圳)有限公司 Terminal network changing method, terminal network switching device and terminal
CN107182055A (en) * 2017-06-22 2017-09-19 深圳传音通讯有限公司 Mobile terminal network connection processing method and mobile terminal
CN108881012A (en) * 2018-08-23 2018-11-23 Oppo广东移动通信有限公司 link aggregation method and related product

Also Published As

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

Similar Documents

Publication Publication Date Title
CN108777666B (en) Shunting method for link aggregation and related equipment
CN112042233B (en) Method for managing connections to a local data network (LADN) in a 5G network
WO2017117968A1 (en) Method and apparatus for branching data interface, terminal device and computer storage medium
CN109587053B (en) Network shunting method and related equipment
US20130227120A1 (en) Method, Device, and System for Acquiring Wireless Network Quality Information
KR20200014355A (en) Method and system for transmitting virtual reality (VR) content
EP4013108A1 (en) User plane information reporting method and apparatus
EP3981190B1 (en) Method and apparatus for enforcement of maximum number of protocol data unit sessions per network slice in a communication system
WO2017008701A1 (en) Data transmission method, apparatus, and user device
CN109451537B (en) Network shunting method and related equipment
WO2017008697A1 (en) Data transmission method and device, multi-channel routing method, and user equipment
US20140112138A1 (en) Methods and systems for obtaining load information in networks
CN109495931B (en) Data transmission method for link aggregation and related device
CN110999377A (en) Resource switching method, device and storage medium
CN107113687B (en) Method and entity for mobility support selection
CN107431965B (en) Method and device for realizing Transmission Control Protocol (TCP) transmission
US20230050923A1 (en) Media packet transmission method, apparatus, and system
Takiguchi et al. A new application‐level link aggregation and its implementation on Android terminals
CN104205887A (en) Billing method, access network device and gateway device
JP2015513729A (en) Data access method and apparatus
EP4189933B1 (en) Methods and apparatuses for policy control
CN110856162B (en) Network configuration method and related device
GB2606613A (en) System and method of intelligent edge routing
CN103781119B (en) MGW selection method and device
CN109699049B (en) Method and device for determining user plane protocol stack type

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