WO2020114038A1 - 网络分流方法及相关设备 - Google Patents

网络分流方法及相关设备 Download PDF

Info

Publication number
WO2020114038A1
WO2020114038A1 PCT/CN2019/106209 CN2019106209W WO2020114038A1 WO 2020114038 A1 WO2020114038 A1 WO 2020114038A1 CN 2019106209 W CN2019106209 W CN 2019106209W WO 2020114038 A1 WO2020114038 A1 WO 2020114038A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
wireless network
network module
event
electronic device
Prior art date
Application number
PCT/CN2019/106209
Other languages
English (en)
French (fr)
Inventor
黄园
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to EP19891986.2A priority Critical patent/EP3883293A4/en
Publication of WO2020114038A1 publication Critical patent/WO2020114038A1/zh
Priority to US17/333,930 priority patent/US20210289388A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/41Flow control; Congestion control by acting on aggregated flows or links
    • 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/0226Traffic management, e.g. flow control or congestion control based on location or mobility
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/082Load balancing or load distribution among bearers or channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/086Load balancing or load distribution among access entities
    • H04W28/0861Load balancing or load distribution among access entities between base stations
    • H04W28/0865Load balancing or load distribution among access entities between base stations of different Radio Access Technologies [RATs], e.g. LTE or WiFi
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/09Management thereof
    • H04W28/0925Management thereof using policies
    • H04W28/0933Management thereof using policies based on load-splitting ratios
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/09Management thereof
    • H04W28/0958Management thereof based on metrics or performance parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/09Management thereof
    • H04W28/0958Management thereof based on metrics or performance parameters
    • H04W28/0967Quality of Service [QoS] parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Definitions

  • This application relates to the field of electronic technology, in particular to a network offload method and related equipment.
  • Link aggregation enables electronic devices (such as smart phones, etc.) to simultaneously use two or more network modules (such as wireless network modules, data network modules, etc.) to transmit data.
  • Link aggregation is an important technology in increasing link bandwidth, achieving link transmission resilience, and redundancy. In some scenarios, using the link aggregation function cannot guarantee the stability of data transmission.
  • Embodiments of the present application provide a network offload method and related equipment, which are used to improve the stability of data transmission in certain scenarios.
  • an embodiment of the present application provides a network offload method, which is applied to an electronic device, the electronic device is currently in a link aggregation on state, and when the electronic device is in a link aggregation on state, the electronic device uses The data network module corresponding to the mobile data network and the wireless network module corresponding to setting the wireless network to process the data stream, the method includes:
  • At least one event currently processed by the electronic device includes a first event, determining the current moving speed of the electronic device, an important priority of the first event is greater than or equal to a preset priority;
  • the data stream associated with the first event is distributed to the wireless network module for data processing.
  • an embodiment of the present application provides a network offload device, which is applied to an electronic device.
  • the electronic device is currently in a link aggregation on state.
  • the electronic device uses The data network module corresponding to the mobile data network and the wireless network module corresponding to the setting wireless network to process the data stream, the device includes:
  • a determining unit configured to determine the current moving speed of the electronic device when at least one event currently processed by the electronic device includes a first event, and an important priority of the first event is greater than or equal to a preset priority
  • the distribution unit is configured to divide the data stream associated with the first event to the wireless network module for data processing when the current moving speed of the electronic device is greater than or equal to a first threshold.
  • 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 processed by the above
  • the above program includes instructions for performing the steps in the method described in the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the first embodiment of the present application. Part or all of the steps described in the method described in one aspect.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing the computer program, and the computer program is operable to cause the computer to execute as implemented in the present application Examples of some or all of the steps described in the method described in the first aspect.
  • the computer program product may be a software installation package.
  • the moving speed of the electronic device is determined; if the moving speed is greater than or If it is equal to the first threshold, the data stream associated with the first event is distributed to the wireless network module for data processing. It can be seen that in high-speed scenarios, only the wireless network module is used to process the data stream associated with the first event, which avoids the unstable transmission of data associated with the first event due to the instability of the mobile data network at high speed, which further improves In high-speed scenarios, the stability of certain data transmissions.
  • 1A is a schematic diagram of a program running space of a smartphone provided by an embodiment of the present application.
  • 1B is a system architecture diagram of an Android system provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a network offload method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another network offload method provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a network offload device provided by an embodiment of the present application.
  • currently electronic devices such as smartphones are generally provided with a program running space
  • 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 applications
  • the program is a third-party application program installed by the electronic device.
  • the software algorithm of the network offload method described in the embodiments of the present application may run in the user space, and the operating system space runs the operating system of the electronic device.
  • the electronic device can specifically run Android Android system, Apple's mobile operating system iOS, etc., which is not limited here.
  • the corresponding user space includes an application layer (Applications) in the Android system
  • the operating system space may include an application framework layer (Application) in the Android system Framework), system runtime library layer (including system runtime library layer Libraries and Android runtime Android Runtime), Linux kernel layer (Linux Kernel).
  • the application layer includes various application programs that directly interact with users, or service programs written in the Java language and running in the background.
  • the application framework layer provides a series of class libraries required for the development of Android applications, which can be used to reuse components, and can also be personalized through inheritance.
  • the system runtime layer is the support of the application framework and provides services for various components in the Android system.
  • the system runtime library layer is composed of the system class library and the Android runtime.
  • the Android runtime contains two parts: the core library and the Dalvik virtual machine.
  • the Linux kernel layer is used to implement core functions such as hardware device drivers, process and memory management, network protocol stack, power management, and wireless communication.
  • Electronic devices can include various handheld devices with wireless communication capabilities, in-vehicle devices, wearable devices (such as smart watches, smart bracelets, pedometers, etc.), computing devices, or other processing devices that are communicatively connected to wireless modems, and various Various forms of user equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal equipment (terminal), etc.
  • UE User Equipment
  • MS Mobile Station
  • terminal terminal
  • FIG. 2 is a schematic flowchart of a network offload method provided by an embodiment of the present application, which is applied to an electronic device.
  • the electronic device is currently in a link aggregation start state, and the electronic device is in a link aggregation start state.
  • the electronic device uses the data network module corresponding to the mobile data network and the wireless network module corresponding to the set wireless network to process the data stream.
  • the method includes:
  • Step 201 When at least one event currently processed by the electronic device includes a first event, determine a current moving speed of the electronic device, and an important priority of the first event is greater than or equal to a preset priority.
  • the first event may be, for example, a mobile payment event, a navigation event, a work email sending event, etc.
  • the important priority of the first event may be preset by the system, or may be set by the user according to his own usage habits. Be limited.
  • the specific implementation manner of determining the current moving speed of the electronic device is: acquiring a first geographic location where the electronic device is at a first preset time; and acquiring a second geographic time at which the electronic device is at a preset time A second geographic location at; determining the current movement speed of the electronic device based on the first preset time, the second preset time, the first geographic location, and the second geographic location.
  • the at least one event currently processed by the electronic device includes at least one event being processed by the background and/or at least one event being processed by the foreground.
  • the first event may be an event being processed by the foreground of the electronic device or an event being processed by the background of the electronic device, which is not limited herein.
  • Step 202 When the current moving speed of the electronic device is greater than or equal to a first threshold, distribute the data stream associated with the first event to the wireless network module for data processing.
  • the first threshold may be 30km/h, 60km/h, 90km/h or other values, which is not limited herein.
  • the wireless network module is used to process interactive data between devices connected through the wireless network.
  • the number of wireless networks may be one or more, which is not limited here.
  • the wireless network modules corresponding to different setting wireless networks are different.
  • the set wireless network is, for example, a mobile phone hotspot, a car hotspot (such as car Wi-Fi, etc.), a short-range wireless transmission (Near Field Communication, NFC) hotspot, a Bluetooth (Bluetooth) hotspot, etc.
  • the high-speed rail has become the most commonly used means of transportation for people to travel, and the speed of my country's Fuxing has reached 350km/h.
  • people often need to use mobile phones to pay for food or drinks.
  • the event of mobile payment is set as the first event.
  • the moving speed of the electronic device is calculated.
  • the moving speed is greater than or equal to 200 km/ h (here 200km/h is a preset first threshold)
  • the electronic device distributes the data flow associated with mobile payment to the wireless network module for data processing.
  • the moving speed of the electronic device is determined; if the moving speed is greater than or If it is equal to the first threshold, the data stream associated with the first event is distributed to the wireless network module for data processing. It can be seen that in high-speed scenarios, only the wireless network module is used to process the data stream associated with the first event, which avoids the unstable transmission of data associated with the first event due to the instability of the mobile data network at high speed, which further improves In high-speed scenarios, the stability of certain data transmissions.
  • the method further includes:
  • the data stream associated with the second event is distributed to the data network module for data processing, and the important priority of the second event is less than the preset priority .
  • the second event is different from the first event, and the second event may be playing music, downloading (music, videos, files, pictures, etc.), and so on.
  • the important priority of the second event may be preset by the system or set by the user according to his own usage habits, which is not limited herein.
  • Mobile data networks include the second-generation mobile communication technology (2-Generation wireless telephone technology, 2G) network, the third-generation mobile communication technology (3rd-Generation wireless wireless telephone technology, 3G) network, and the long-term evolution (Long Term Evolution, LTE) network , 5th-Generation mobile phone technology (5th-Generation wireless telephone technology, 5G) network, etc.
  • 2G second-generation mobile communication technology
  • 3G third-generation mobile communication technology
  • LTE Long Term Evolution
  • 5th-Generation mobile phone technology 5th-Generation wireless telephone technology
  • the data stream associated with the second event is distributed to the data network module for data processing, which prevents the second event from occupying the wireless network module and avoids The processing of the second event affects the unstable transmission of data associated with the first event, thereby improving the stability of certain data transmissions in high-speed scenarios.
  • the method further includes:
  • the remaining data stream associated with the second event is distributed to the wireless network module and the data network module for data processing .
  • the first event is mobile payment
  • the second event is to play music and download videos.
  • the background video download is also completed but the music playback is not yet complete.
  • the data stream associated with the music playback is distributed to the wireless network module and the data network module for data processing.
  • the remaining data stream associated with the second event is distributed to the wireless network module and the data network module to jointly perform data Processing, so as to improve the transmission efficiency of the remaining data after the completion of the first event.
  • the method further includes:
  • the wireless network module and the data network module are assigned the data stream associated with the at least one event according to the determined offload weight.
  • the distribution weight is used to indicate the importance of the distribution of data flow.
  • the determined offload weight corresponds to the wireless network module and the data network module one-to-one.
  • the sum of the determined shunt weights is equal to 1.
  • the first peak transmission rate obtained by the electronic device is 3, based on the 3 first peak transmission
  • the electronic device separately determines specific implementation manners of the offload weights of the wireless network module and the data network module according to the acquired first peak transmission rate:
  • the first peak transmission rate of the wireless network module of the first wireless network setting is a
  • the electronic device separately determines a specific implementation manner of the offload weight of the wireless network module and the data network module according to the acquired first peak transmission rate:
  • the electronic device separately determines the offload priority of the wireless network module and the data network module
  • the offload priority of the wireless network module and the data network module is set in advance, and the offload priority of different wireless network modules may be the same or different.
  • the first peak transmission rate of the wireless network module of the wireless network is v1, and the first peak transmission rate of the data network module is v2, and the wireless network module of the wireless network is set
  • the offload priority is x1
  • the offload priority of the data network module is x2
  • set the offload weight of the wireless network module of the wireless network [(v1/(v1+v2))+(x1/(x1+x2)) ]/2
  • offload weight of the data network module [(v2/(v1+v2))+(x2/(x1+x2))]/2.
  • the wireless network module and the data network module are allocated the at least one event-associated data stream according to the determined offload weight.
  • the specific implementation manners are: the electronic device according to the number of data streams currently established by the electronic device and The determined offload weight allocates data streams to the wireless network module and the data network module.
  • the network modules used for link aggregation are a wireless network module and a data network module, and it is determined that the offload weight of the wireless network module is 1/3, and the offload weight of the data network module is 2/3 If there are 3 data streams currently established by the electronic device, then the electronic device will distribute 1 data stream to the wireless network module and 2 data streams to the data network module.
  • the network modules used for link aggregation are a wireless network module and a data network module, and determine that the offload weight of the wireless network module is 1/3, and the offload weight of the data network module is 2/3, if the electronic device is currently There are 4 established data streams, then the electronic device divides 1 data stream to the wireless network module, and divides 3 data streams to the data network module.
  • the data stream is a collection of data packets of the same data type. For example, video data packets belong to the same data stream, and picture data packets belong to the same data stream.
  • the electronic device when the link aggregation is turned on and the current moving speed is less than the first threshold, the electronic device separately obtains the current wireless network module and data network module for link aggregation Peak transmission rate, then determine the shunt weight of the wireless network module and the data network module based on the determined peak transmission rate, and finally shunt the wireless network module and the data network module based on the determined shunt weight to achieve the link aggregation state
  • the following reasonably distributes the wireless network module and the data network module, thereby improving the stability of data transmission.
  • the method before allocating the data stream associated with the at least one event to the wireless network module and the data network module according to the determined offload weight, the method further includes:
  • the traffic package of the mobile data network is a special traffic package, and the special traffic package includes a combination of a third party and an operator An exclusive data plan launched, or an unlimited data plan independently launched by an operator, and the exclusive data plan is used to allow unlimited use of specific applications;
  • the data flow associated with the at least one event is distributed to the wireless network module Perform data processing together with the data network module.
  • a specific implementation manner of determining that the network quality of the set wireless network is less than or equal to the network quality of the mobile data network is: detecting whether a network analysis application is installed on the electronic device; if a network is installed Analysis application, start the network analysis application; set the network quality of the wireless network and the network quality of the mobile data network based on the network analysis application; compare the network signal strength of the set wireless network and the network signal strength of the mobile data network; When the network signal strength of the fixed wireless network is less than or equal to the network signal strength of the mobile data network, it is determined that the network quality of the set wireless network is less than or equal to the network quality of the mobile data network
  • the electronic device may also determine that the network quality of the set wireless network is less than or equal to the network quality of the mobile data network through the network management application page of the electronic device itself, which is not described in detail here.
  • the exclusive data packages jointly launched by third parties and operators are, for example, Tencent Dawang Card Data Package, Tencent Xiaowang Card Data Package, Ant Bao Card Data Package, Dream e Card Data Package, Dasheng Card Data Package, Xiaoqiang Card Data Package and many more.
  • the electronic device determines whether the data package of the mobile data network is a special data package.
  • Specific implementation methods include:
  • the electronic device obtains a short message about the traffic package stored in the electronic device; the electronic device parses the short message to obtain at least one keyword; the electronic device determines if the at least one keyword contains a preset keyword
  • the flow package of the mobile data network used by the electronic device is a special flow package, and the preset keyword is associated with the special flow package; when the preset keyword is not included in the at least one keyword, the electronic device determines The flow package of the mobile data network used by the electronic device is not a special flow package.
  • the specific application in the Tencent King Card data package is an application produced by Tencent, and the specific application does not include the map navigation application, then the specific application is determined. Does not include the applications associated with the first time.
  • the method further includes:
  • the data flow associated with the at least one event is distributed to the data network module for data deal with.
  • the network quality of the wireless network is set to be less than or equal to the network quality of the mobile data network
  • the specific application does not include the application or application associated with the first event
  • the special data package is not an unlimited data package, at least one event-associated data stream is distributed to the wireless network module and the data network module for data processing; if the user uses a special data package and the specific application includes the first event-related application Or the special flow package is an unlimited flow package, and the data flow associated with at least one event is distributed to the data network module for data processing.
  • network offload under special traffic packages is realized.
  • the method further includes:
  • a second wireless network channel is selected from the plurality of wireless network channels, and the signal strength of the second wireless network channel is greater than or equal to the Set signal strength;
  • the preset distance may be 10m, 30m, 50m, 100m, or other values, which is not limited herein.
  • the connection information includes signal strength and number of connections.
  • the first wireless network refers to the working channel of the router.
  • the frequency range of the 2.4G band is 2.4GHZ-2.4835GHZ, and the frequency range of 5G is 5.15GHZ-5.825GHZ.
  • a total of 83.5MHZ is available for 2.4G, and there is mostly overlap between channels.
  • the center frequency of each channel is separated by 5MHZ.
  • the signal strength of each channel may be the same or different, and is inversely proportional to the number of routers currently connected to the channel. The more the number of router connections, the greater the degree of mutual interference and the weaker the signal strength.
  • Table 1 The mapping relationship between channel, center frequency and frequency range in 2.4GH is shown in Table 1.
  • a specific implementation manner of switching the wireless network channel used by the wireless network module to the second wireless network channel is:
  • the electronic device obtains the management website address, login account, and login password of the router; the electronic device enters the management page of the router based on the management website address, login account, and login password; the electronic device queries the management page to obtain electronic access to different channels Number of devices; the electronic device switches the wireless network channel used by the wireless network module of the router to the second wireless network channel based on the number of electronic devices accessing different channels.
  • the first wireless network channel may be the same as or different from the second wireless network channel, which is not limited herein.
  • the wireless network module after the data stream associated with the first event is distributed to the wireless network module for data processing, when the signal strength of the first wireless network channel is less than the preset signal strength, the wireless network module The first wireless network channel used is switched to the second wireless network channel whose signal strength is greater than or equal to the preset signal strength, which further improves the stability of certain data transmission in high-speed scenarios.
  • FIG. 3 is a schematic flowchart of a network offload method provided by an embodiment of the present application, which is applied to an electronic device, and the electronic device is currently in link aggregation start State, when the electronic device is in the link aggregation on state, the electronic device uses the data network module corresponding to the mobile data network and the wireless network module corresponding to the set wireless network to process the data stream, the method includes:
  • Step 301 Determine an event included in at least one event currently processed by the electronic device.
  • step 302 is executed.
  • step 310 is executed.
  • Step 302 When at least one event currently processed by the electronic device includes a first event, determine whether the current moving speed of the electronic device is greater than or equal to a first threshold.
  • step 303 If yes, go to step 303.
  • Step 303 Distribute the data stream associated with the first event to the wireless network module for data processing.
  • Step 304 Determine connection information of multiple wireless network channels within a preset distance of the set wireless network.
  • Step 305 Determine the first wireless network channel currently used by the wireless network module according to the connection information.
  • Step 306 Determine whether the signal strength of the first wireless network channel is less than a preset signal strength.
  • Step 307 Select a second wireless network channel from the plurality of wireless network channels, the signal strength of the second wireless network channel is greater than or equal to the preset signal strength.
  • Step 308 Switch the wireless network channel used by the wireless network module to the second wireless network channel.
  • Step 309 Do not switch the wireless network channel used by the wireless network module.
  • Step 310 When the at least one event further includes a second event, divide the data stream associated with the second event to the data network module for data processing, and the important priority of the second event is less than the Set priority.
  • Step 311 After the first event processing is completed and the second event processing is not completed, the remaining data stream associated with the second event is distributed to the wireless network module and the data network module Perform data processing.
  • Step 312 Determine whether the network quality of the set wireless network is less than or equal to the network quality of the mobile data network.
  • Step 313 Determine whether the data package of the mobile data network is a special data package.
  • the special data package includes a dedicated data package jointly launched by a third party and an operator, or an unlimited data package independently launched by an operator. Data plans are used to allow unlimited data usage for specific applications.
  • Step 314 Determine the type of the special traffic package.
  • Step 315 If the special traffic package type is the exclusive traffic package, determine whether the specific application allowed by it includes the at least one event-related application.
  • Step 316 Determine that the special traffic package type is an unlimited traffic package.
  • Step 317 When it is determined that the specific application does not include the application associated with the at least one event, or the special traffic package is not the unlimited traffic package, allocate the data flow associated with the at least one event to the The wireless network module and the data network module jointly perform data processing.
  • Step 318 Obtain the current first peak transmission rate of the wireless network module and the data network module respectively.
  • Step 319 Determine the offload weights of the wireless network module and the data network module respectively according to the acquired first peak transmission rate.
  • Step 320 Allocate the data stream associated with the at least one event to the wireless network module and the data network module according to the determined offload weight.
  • Step 321 When it is determined that the specific application includes the at least one event-related application, or the special traffic package is the unlimited data package, allocate the data flow associated with the at least one event to the data network
  • the module performs data processing.
  • FIG. 4 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
  • the electronic device is currently in a link aggregation on state.
  • the electronic device uses the data network module corresponding to the mobile data network and the wireless network module corresponding to the set wireless network to process the data stream.
  • the electronic device includes A processor, a memory, a communication interface, and one or more programs, the one or more programs are stored in the memory, and are configured to be executed by the processor, the above programs include instructions for performing the following steps :
  • At least one event currently processed by the electronic device includes a first event, determining the current moving speed of the electronic device, an important priority of the first event is greater than or equal to a preset priority;
  • the data stream associated with the first event is distributed to the wireless network module for data processing.
  • the above program includes instructions that are also used to perform the following steps:
  • the data stream associated with the second event is distributed to the data network module for data processing, and the important priority of the second event is less than the preset priority .
  • the foregoing program includes instructions that are further used to perform the following steps:
  • the remaining data stream associated with the second event is distributed to the wireless network module and the data network module for data processing .
  • the above program includes instructions that are also used to perform the following steps:
  • the wireless network module and the data network module are assigned the data stream associated with the at least one event according to the determined offload weight.
  • the above program includes instructions specifically for performing the following steps:
  • the above program includes instructions specifically for performing the following steps:
  • the above-mentioned program includes instructions for performing the following steps :
  • the traffic package of the mobile data network is a special traffic package, and the special traffic package includes a combination of a third party and an operator An exclusive data plan launched, or an unlimited data plan independently launched by an operator, and the exclusive data plan is used to allow unlimited use of specific applications;
  • the data flow associated with the at least one event is distributed to the wireless network module Perform data processing together with the data network module.
  • the above program includes instructions that are also used to perform the following steps:
  • the data flow associated with the at least one event is distributed to the data network module for data deal with.
  • the foregoing program includes instructions that are further used to perform the following steps:
  • a second wireless network channel is selected from the plurality of wireless network channels, and the signal strength of the second wireless network channel is greater than or equal to the Set signal strength;
  • the embodiments of the present application may divide the functional unit of the electronic device 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 may be implemented in the form of hardware or a software functional unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a division of logical functions. In actual implementation, there may be another division manner.
  • FIG. 5 is a network offload device provided by an embodiment of the present application, which is applied to an electronic device.
  • the electronic device is currently in a link aggregation on state and the electronic device is in a link aggregation on state.
  • the electronic device uses a data network module corresponding to a mobile data network and a wireless network module corresponding to a set wireless network to process data streams.
  • the apparatus includes:
  • the determining unit 501 is configured to determine the current moving speed of the electronic device when at least one event currently processed by the electronic device includes a first event, and the important priority of the first event is greater than or equal to a preset priority;
  • the splitting unit 502 is configured to split the data stream associated with the first event to the wireless network module for data processing when the current movement speed of the electronic device is greater than or equal to a first threshold.
  • the shunt unit 502 is also used to:
  • the data stream associated with the second event is distributed to the data network module for data processing, and the important priority of the second event is less than the preset priority .
  • the distributing unit 502 is further configured to:
  • the remaining data stream associated with the second event is distributed to the wireless network module and the data network module for data processing .
  • the device further includes:
  • the obtaining unit 503 is configured to obtain the current first peak transmission rate of the wireless network module and the data network module respectively when the current moving speed of the electronic device is less than the first threshold;
  • the determining unit 501 is further configured to separately determine the offload weights of the wireless network module and the data network module according to the acquired first peak transmission rate;
  • the offloading unit 502 is further configured to allocate the data stream associated with the at least one event to the wireless network module and the data network module according to the determined offload weight.
  • the determining unit 501 is specifically configured to:
  • the determining unit 501 is specifically configured to:
  • the determining unit 501 before assigning the at least one event-associated data stream to the wireless network module and the data network module according to the determined offload weight, is also used to When it is determined that the network quality of the wireless network is less than or equal to the network quality of the mobile data network, it is determined whether the data package of the mobile data network is a special data package, and the special data package includes exclusive data jointly launched by a third party and an operator Packages, or unlimited data packages launched by operators separately, the exclusive data packages are used to allow unlimited data usage for specific applications;
  • the offloading unit 502 is further configured to associate the data flow of the at least one event when it is determined that the specific application does not include the application associated with the at least one event, or the special traffic package is not the unlimited traffic package.
  • the wireless network module and the data network module are assigned to perform data processing together.
  • the distribution unit 502 is further configured to, when it is determined that the specific application includes the application associated with the at least one event, or the special data package is the unlimited data package, The data stream associated with at least one event is distributed to the data network module for data processing.
  • the determining unit 502 is further configured to determine a preset distance from the set wireless network Connection information of multiple wireless network channels within; determining the first wireless network channel currently used by the wireless network module according to the connection information;
  • the device further includes a selection unit 504 and a switching unit 505, where:
  • the selecting unit 504 is configured to select a second wireless network channel from the plurality of wireless network channels when the signal strength of the first wireless network channel is less than a preset signal strength, and the signal strength of the second wireless network channel Greater than or equal to the preset signal strength;
  • the switching unit 505 is configured to switch the wireless network channel used by the wireless network module to the second wireless network channel.
  • the determining unit 501, the branching unit 502, the acquiring unit 503, the selecting unit 504, and the switching unit 505 may be implemented by the processing unit.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to perform part or all of the steps of any method described in the above method embodiments ,
  • the aforementioned computer includes electronic devices.
  • An embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium that stores the computer program, and the computer program is operable to cause the computer to perform any of the methods described in the foregoing method embodiments Some or all steps of the method.
  • the computer program product may be a software installation package, and the computer includes an electronic device.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the above-mentioned units is only a division of logical functions.
  • there may be other division methods for example, multiple units or components may be combined or integrated To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software functional unit.
  • the above integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer readable memory.
  • the technical solution of the present application essentially or part of the contribution to the existing technology or all or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above methods in various embodiments of the present application.
  • the aforementioned memory includes: U disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include: a flash disk , Read-Only Memory (English: Read-Only Memory, abbreviation: ROM), Random Access Device (English: Random Access Memory, abbreviation: RAM), magnetic disk or optical disk, etc.
  • ROM Read-Only Memory
  • RAM Random Access Device
  • magnetic disk or optical disk etc.

Landscapes

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

Abstract

本申请公开了一种网络分流方法及相关设备,应用于电子设备,该电子设备当前处于链路聚合开启状态,在该电子设备处于链路聚合开启状态下,该电子设备使用移动数据网络对应的移动数据网络模块和设定无线网络对应的无线网络模块处理数据流,该方法包括:在电子设备当前处理的至少一个事件包括第一事件时,确定该电子设备当前的移动速度,该第一事件的重要优先级大于或等于预设优先级;在该电子设备当前的移动速度大于或等于第一阈值时,将第一事件关联的数据流分给无线网络模块进行数据处理。采用本申请实施例可在某些场景下,提升数据传输的稳定性。

Description

网络分流方法及相关设备 技术领域
本申请涉及电子技术领域,尤其涉及一种网络分流方法及相关设备。
背景技术
链路聚合(Link Aggregation)使电子设备(比如智能手机等)可以同时使用两个或两个以上的网络模块(如无线网络模块、数据网络模块等)传输数据。链路聚合在增加链路带宽、实现链路传输弹性和冗余等方面是一项很重要的技术。在某些场景下,使用链路聚合功能无法保证数据传输的稳定性。
发明内容
本申请实施例提供一种网络分流方法及相关设备,用于在某些场景下,提升数据传输的稳定性。
第一方面,本申请实施例提供一种网络分流方法,应用于电子设备,所述电子设备当前处于链路聚合开启状态,在所述电子设备处于链路聚合开启状态下,所述电子设备使用移动数据网络对应的数据网络模块和设定无线网络对应的无线网络模块处理数据流,所述方法包括:
在所述电子设备当前处理的至少一个事件包括第一事件时,确定所述电子设备当前的移动速度,所述第一事件的重要优先级大于或等于预设优先级;
在所述电子设备当前的移动速度大于或等于第一阈值时,将所述第一事件关联的数据流分给所述无线网络模块进行数据处理。
第二方面,本申请实施例提供一种网络分流装置,应用于电子设备,所述电子设备当前处于链路聚合开启状态,在所述电子设备处于链路聚合开启状态下,所述电子设备使用移动数据网络对应的数据网络模块和设定无线网络对应的无线网络模块处理数据流,所述装置包括:
确定单元,用于在所述电子设备当前处理的至少一个事件包括第一事件时,确定所述电子设备当前的移动速度,所述第一事件的重要优先级大于或等于预设优先级;
分流单元,用于在所述电子设备当前的移动速度大于或等于第一阈值时,将所述第一事件关联的数据流分给所述无线网络模块进行数据处理。
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面所述的方法中的步骤的指令。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面所述的方法中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面所述的方法中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
可以看出,在本申请实施例中,在电子设备处于链路聚合开启状态下且该电子设备当前处理的至少一个事件包括第一事件时,确定该电子设备的移动速度;如果移动速度大于或等于第一阈值,则将该第一事件关联的数据流分给无线网络模块进行数据处理。可见,在高速场景下,仅用无线网络模块处理第一事件关联的数据流,避免了因在高速下移动数 据网络不稳定而影响第一事件关联的数据的传输不稳定的情况,进而提升了在高速场景下,某些数据传输的稳定性。
本申请的这些方面或其他方面在以下实施例的描述中会更加简明易懂。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A是本申请实施例提供的一种智能手机的程序运行空间的示意图;
图1B是本申请实施例提供的一种安卓***的***架构图;
图2是本申请实施例提供的一种网络分流方法的流程示意图;
图3是本申请实施例提供的另一种网络分流方法的流程示意图;
图4是本申请实施例提供的另一种电子设备的结构示意图;
图5是本申请实施例提供的一种网络分流装置的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。
以下分别进行详细说明。
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
下面结合附图对本申请的实施例进行描述。
如图1A所示,目前智能手机等电子设备一般设置有程序运行空间,该程序运行空间包括用户空间和操作***空间,其中,用户空间运行有一个或多个应用程序,该一个或多个应用程序为电子设备安装的第三方应用程序,本申请实施例所描述的网络分流方法的软件算法可以运行在用户空间,操作***空间运行有电子设备的操作***。
该电子设备具体可以运行安卓Android***、苹果公司开发的移动操作***iOS等,此处不做唯一限定。如图1B所示,以所述电子设备运行有Android***为例,对应的用户空间包括该Android***中的应用层(Applications),操作***空间可以包括该Android***中的应用程序框架层(Application Framework)、***运行库层(包括***运行库层Libraries和Android运行时Android Runtime)、Linux内核层(Linux Kernel)。其中,应用层上包括各类与用户直接交互的应用程序,或由Java语言编写的运行于后台的服务程序。例如,智能手机上实现的常见基本功能的程序,诸如短消息业务(Short Messaging Service, SMS)短信,电话拨号,图片浏览器,日历,游戏,地图,万维网(World Wide Web,Web)浏览器等程序,以及开发人员开发的其他应用程序。应用程序框架层提供开发Android应用程序所需的一系列类库,能够用于重用组件,也可以通过继承实现个性化的扩展。***运行库层是应用程序框架的支撑,为Android***中的各个组件提供服务。***运行库层由***类库和Android运行时构成。Android运行时包含核心库和Dalvik虚拟机两部分。Linux内核层用于实现硬件设备驱动,进程和内存管理,网络协议栈,电源管理,无线通信等核心功能。
电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备(例如智能手表、智能手环、计步器等)、计算设备或通信连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile Station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。
下面对本申请实施例进行详细介绍。
请参阅图2,图2是本申请实施例提供了一种网络分流方法的流程示意图,应用于电子设备,所述电子设备当前处于链路聚合开启状态,在所述电子设备处于链路聚合开启状态下,所述电子设备使用移动数据网络对应的数据网络模块和设定无线网络对应的无线网络模块处理数据流,所述方法包括:
步骤201:在所述电子设备当前处理的至少一个事件包括第一事件时,确定所述电子设备当前的移动速度,所述第一事件的重要优先级大于或等于预设优先级。
其中,第一事件例如可以是移动支付事件、导航事件、工作邮件发送事件等,该第一事件的重要优先级可以是***预设的,也可以是用户根据自身使用习惯设置的,在此不做限定。
可选地,所述确定所述电子设备当前的移动速度的具体实现方式为:获取所述电子设备第一预设时间所处的第一地理位置;获取所述电子设备第二预设时间所处的第二地理位置;基于所述第一预设时间、所述第二预设时间、所述第一地理位置和所述第二地理位置确定所述电子设备当前的移动速度。
其中,电子设备当前处理的至少一个事件包括后台正在处理的至少一个事件和/或前台正在处理的至少一个事件。第一事件可以是电子设备前台正在处理的事件,也可以是电子设备后台正在处理的事件,在此不作限定。
步骤202:在所述电子设备当前的移动速度大于或等于第一阈值时,将所述第一事件关联的数据流分给所述无线网络模块进行数据处理。
其中,第一阈值可以是30km/h、60km/h、90km/h或是其他值,在此不作限定。
其中,无线网络模块用于处理通过无线网络连接的设备之间的交互数据。设定无线网络的数量可以是一个也可以是多个,在此不作限定。不同的设定无线网络对应的无线网络模块是不同的。设定无线网络例如是手机热点、车载热点(如车载Wi-Fi等)、近距离无线传输(Near Field Communication,NFC)热点、蓝牙(Bluetooth)热点等。
举例说明,高铁已经成为了人们交通出行的最常用的交通工具,我国复兴号的时速达到了350km/h。在高速运行的列车中,人们购买食物或饮料时常常需要用到手机支付。由于高铁时速较快,在不同的蜂窝小区之间频率变换也较频率,使用移动数据网络支付常常由于网络信号不稳定而无法成功,获得的用户体验极差。采用本申请实施例,我们可以将移动支付这一事件设置为第一事件,在电子设备当前处理的至少一个事件包括移动支付时,计算出电子设备的移动速度,当移动速度大于或等于200km/h(这里200km/h为预设的第一阈值),电子设备将移动支付关联的数据流分给无线网络模块进行数据处理。
可以看出,在本申请实施例中,在电子设备处于链路聚合开启状态下且该电子设备当 前处理的至少一个事件包括第一事件时,确定该电子设备的移动速度;如果移动速度大于或等于第一阈值,则将该第一事件关联的数据流分给无线网络模块进行数据处理。可见,在高速场景下,仅用无线网络模块处理第一事件关联的数据流,避免了因在高速下移动数据网络不稳定而影响第一事件关联的数据的传输不稳定的情况,进而提升了在高速场景下,某些数据传输的稳定性。
在本申请的一实现方式中,所述方法还包括:
在所述至少一个事件还包括第二事件时,将所述第二事件关联的数据流分给所述数据网络模块进行数据处理,所述第二事件的重要优先级小于所述预设优先级。
其中,第二事件不同于第一事件,第二事件可以是播放音乐、下载(音乐、视频、文件、图片等)等。该第二事件的重要优先级可以是***预设的,也可以是用户根据自身使用习惯设置的,在此不做限定。
其中,数据网络模块用于处理通过移动数据网络连接的设备之间的交互数据。移动数据网络包括第二代手机通信技术(2-Generation wireless telephone technology,2G)网络、第三代手机通信技术(3rd-Generation wireless telephone technology,3G)网络、长期演进(Long Term Evolution,LTE)网络、第五代手机通信技术(5th-Generation wireless telephone technology,5G)网络等等。
可以看出,在本申请实施例中,在电子设备处于链路聚合开启状态下,将第二事件关联的数据流分给数据网络模块进行数据处理,防止第二事件占用无线网络模块,避免了因处理第二事件而影响第一事件关联的数据的传输不稳定的情况,进而提升了在高速场景下,某些数据传输的稳定性。
在本申请的一实现方式中,在将所述第一事件关联的数据流分给所述无线网络模块进行数据处理之后,所述方法还包括:
在所述第一事件处理完成后,且所述第二事件处理未完成时,将所述第二事件关联的剩余的数据流分给所述无线网络模块和所述数据网络模块共同进行数据处理。
举例说明,第一事件为移动支付,第二事件为播放音乐和下载视频。当用户使用移动支付完成支付以后,后台下载视频也完成了但是播放音乐还未完成,这时,将播放音乐关联的数据流分给无线网络模块和数据网络模块共同进行数据处理。
可以看出,在本申请实施例中,在第一事件处理完成后,且第二事件处理未完成时,将第二事件关联的剩余的数据流分给无线网络模块和数据网络模块共同进行数据处理,从而提升第一事件完成后剩余数据的传输效率。
在本申请的一实现方式中,所述方法还包括:
在所述电子设备当前的移动速度小于所述第一阈值时,分别获取所述无线网络模块和所述数据网络模块当前的第一峰值传输速率;
根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重;
根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流。
其中,分流权重用于表示在分数据流时的重要程度。
其中,确定的分流权重与该无线网络模块和所述数据网络模块一一对应。确定的分流权重的和等于1。
举例来说,假设设定无线网络有2个,如第一设定无线网络和第一设定无线网络,那么电子设备获取到的第一峰值传输速率有3个,基于3个第一峰值传输速率分别确定的分流权重有3个,且这3个分流权重的和等于1。
可选地,电子设备根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数 据网络模块的分流权重的具体实现方式:
电子设备根据获取的第一峰值传输速率和第一公式,分别确定所述无线网络模块和所述数据网络模块的分流权重,所述第一公式为:W=V/M,所述W为分流权重,所述V为峰值传输速率,所述M为获取的第一峰值传输速率的和。
举例来说,假设设定无线网络有2个,如第一设定无线网络和第一设定无线网络,第一设定无线网络的无线网络模块的第一峰值传输速率为a,第二设定无线网络的无线网络模块的第一峰值传输速率为b,数据网络模块的第一峰值传输速率为c,那么第一设定无线网络的无线网络模块的分流权重=(a)/(a+b+c),第二设定无线网络的无线网络模块的分流权重=(b)/(a+b+c),数据网络模块的分流权重=(c)/(a+b+c)。
可选地,电子设备根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重的具体实现方式:
电子设备分别确定所述无线网络模块和所述数据网络模块的分流优先级;
电子设备根据获取的第一峰值传输速率、确定的分流优先级和第二公式分别确定所述无线网络模块和所述数据网络模块的分流权重,所述第二公式为:W=[(V/M)+(X/Y)]/2,所述W为分流权重,所述V为峰值传输速率,所述M为获取的第一峰值传输速率的和,所述X为分流优先级,所述Y为确定的分流优先级的和。
其中,所述无线网络模块和所述数据网络模块的分流优先级是事先设定的,不同的无线网络模块的分流优先级可以是相同的,也可以是不同的。
举例来说,假设设定无线网络有1个,设定无线网络的无线网络模块的第一峰值传输速率为v1,数据网络模块的第一峰值传输速率为v2,设定无线网络的无线网络模块的分流优先级为x1,数据网络模块的分流优先级为x2,那么设定无线网络的无线网络模块的分流权重=[(v1/(v1+v2))+(x1/(x1+x2))]/2,数据网络模块的分流权重=[(v2/(v1+v2))+(x2/(x1+x2))]/2。
可选地,根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流的具体实现方式有:电子设备根据电子设备当前建立的数据流的数量和确定的分流权重为所述无线网络模块和所述数据网络模块分配数据流。
举例来说,在本申请实施例中,用于链路聚合的网络模块为无线网络模块和数据网络模块,确定无线网络模块的分流权重为1/3,数据网络模块的分流权重为2/3,假如电子设备当前建立的数据流有3条,那么电子设备将1条数据流分给无线网络模块,将2条数据流分给数据网络模块。又举例来说,假设用于链路聚合的网络模块为无线网络模块和数据网络模块,确定无线网络模块的分流权重为1/3,数据网络模块的分流权重为2/3,假如电子设备当前建立的数据流有4条,那么电子设备将1条数据流分给无线网络模块,将3条数据流分给数据网络模块。
其中,数据流为同一数据类型的数据包集合,例如,视频类数据包同属于一个数据流,图片类数据包同属于一个数据流等。
可以看出,在本申请实施例中,在处于链路聚合开启状态下且当前的移动速度小于所述第一阈值时,电子设备分别获取用于链路聚合的无线网络模块和数据网络模块当前的峰值传输速率,然后基于确定的峰值传输速率分别确定该无线网络模块和数据网络模块的分流权重,最后基于确定的分流权重为该无线网络模块和数据网络模块分流,实现了在链路聚合状态下合理为无线网络模块和数据网络模块分流,进而提升数据传输的稳定性。
在本申请的一实现方式中,在根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流之前,所述方法还包括:
在所述设定无线网络的网络质量小于或等于所述移动数据网络的网络质量时,确定所述移动数据网络的流量套餐是否为特殊流量套餐,所述特殊流量套餐包括第三方与运营商 联合推出的专属流量套餐,或运营商单独推出的不限流量套餐,所述专属流量套餐用于允许特定应用不限流量的使用;
在确定所述特定应用不包括所述至少一个事件关联的应用,或所述特殊流量套餐不为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述无线网络模块和所述数据网络模块共同进行数据处理。
可选地,所述确定所述设定无线网络的网络质量小于或等于所述移动数据网络的网络质量的一具体实现方式为:检测所述电子设备上是否安装网络分析应用;若安装了网络分析应用,则开启网络分析应用;基于所述网络分析应用设定无线网络的网络质量和移动数据网络的网络质量;比较设定无线网络的网络信号强度和移动数据网络的网络信号强度;在设定无线网络的网络信号强度小于或等于移动数据网络的网络信号强度时,确定所述设定无线网络的网络质量小于或等于所述移动数据网络的网络质量
需要说明的是,所述电子设备还可以通过电子设备本身的网络管理应用页面确定所述设定无线网络的网络质量小于或等于所述移动数据网络的网络质量,在这里不在详细说明。
其中,第三方与运营商联合推出的专属流量套餐例如为腾讯大王卡流量套餐、腾讯小王卡流量套餐、蚂蚁宝卡流量套餐、梦想e卡流量套餐、大圣卡流量套餐、小强卡流量套餐等等。
可选地,电子设备确定所述移动数据网络的流量套餐是否为特殊流量套餐的具体实现方式有:
电子设备获取所述电子设备中存储的有关流量套餐的短消息;电子设备解析所述短消息,得到至少一个关键词;电子设备在所述至少一个关键词中包含有预设关键词时,确定所述电子设备所使用的移动数据网络的流量套餐为特殊流量套餐,所述预设关键词与特殊流量套餐关联;在所述至少一个关键词中不包含有预设关键词时,电子设备确定所述电子设备所使用的移动数据网络的流量套餐不为特殊流量套餐。
举例说明,假定用户使用的流量套餐是腾讯大王卡流量套餐和第一事件是导航,腾讯大王卡流量套餐中特定应用为腾讯出品的应用,特定应用不包含地图导航类的应用,则确定特定应用不包括第一时间关联的应用。
在本申请的一实现方式中,所述方法还包括:
在确定所述特定应用包括所述至少一个事件关联的应用,或所述特殊流量套餐为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述数据网络模块进行数据处理。
可以看出,在本申请实施例中,在设定无线网络的网络质量小于或等于移动数据网络的网络质量时,如果用户使用的是特殊流量套餐且特定应用不包括第一事件关联的应用或特殊流量套餐不为不限流量套餐,将至少一个事件关联的数据流分给无线网络模块和数据网络模块共同进行数据处理;如果用户使用的是特殊流量套餐且特定应用包括第一事件关联的应用或特殊流量套餐为不限流量套餐,将至少一个事件关联的数据流分给数据网络模块进行数据处理。采用本申请实施例,实现了特殊流量套餐下的网络分流。
在本申请的一实现方式中,在将所述第一事件关联的数据流分给所述无线网络模块进行数据处理之后,所述方法还包括:
确定距离所述设定无线网络预设距离内的多个无线网络信道的连接信息;
根据所述连接信息确定所述无线网络模块当前所使用的第一无线网络信道;
在所述第一无线网络信道的信号强度小于预设信号强度时,从所述多个无线网络信道中选取第二无线网络信道,所述第二无线网络信道的信号强度大于或等于所述预设信号强度;
将所述无线网络模块使用的无线网络信道切换至所述第二无线网络信道。
其中,预设距离可以是10m、30m、50m、100m或是其他值,在此不做限定。
其中,连接信息包括信号强度、连接个数。
其中,第一无线网络指的是路由器的工作信道。常见的频段主要有两个:2.4G频段和5G频段。2.4G频段的频率范围为2.4GHZ—2.4835GHZ,5G的频率范围为5.15GHZ—5.825GHZ。2.4G频段一共设有14个信道,但在我国只允许使用前13个信道。每个信道22MHZ宽,实际用来传输数据的只有20MH,另外2MHZ用来隔离信道。2.4G一共可用83.5MHZ,信道与信道之间大多会有重叠。每个信道的中心频率间隔5MHZ。每个信道的信号强度可以相同也可以不同,与当前连接该信道的路由器的个数成反比例关系,路由器的连接个数越多,相互干扰的程度越大,信号强度越弱。2.4GH中信道、中心频率和频率范围的映射关系如表1所示。
表1
信道 中心频率(MHZ) 频率范围(MHZ)
01 2412 2401-2423
02 2417 2406-2428
03 2422 2411-2433
04 2427 2416-2438
05 2432 2421-2443
06 2437 2426-2448
07 2442 2431-453
08 2447 2426-2448
09 2452 2441-2463
10 2457 2446-2468
11 2462 2451-2473
12 2467 2456-2478
13 2472 2461-2483
可选地,所述将所述无线网络模块使用的无线网络信道切换至所述第二无线网络信道具体的一实现方式为:
电子设备获取所述路由器的管理网址、登录账号以及登录密码;电子设备基于所述管理网址、登录账号以及登录密码进入路由器的管理页面;电子设备查询所述管理页面以获取接入不同信道的电子设备数量;电子设备基于接入不同信道的电子设备数量将所述路由器的无线网络模块使用的无线网络信道切换至所述第二无线网络信道。
其中,所述第一无线网络信道可以和第二无线网络信道相同,也可以不同,在此不作限定。
可以看出,在本申请实施例中,在将第一事件关联的数据流分给无线网络模块进行数据处理之后,在第一无线网络信道的信号强度小于预设信号强度时,将无线网络模块使用的第一无线网络信道切换至信号强度大于或等于预设信号强度的第二无线网络信道,进一步提升了在高速场景下,某些数据传输的稳定性。
与上述图2所示的实施例一致的,请参阅图3,图3是本申请实施例提供了一种网络分流方法的流程示意图,应用于电子设备,所述电子设备当前处于链路聚合开启状态,在所述电子设备处于链路聚合开启状态下,所述电子设备使用移动数据网络对应的数据网络模块和设定无线网络对应的无线网络模块处理数据流,所述方法包括:
步骤301:确定所述电子设备当前处理的至少一个事件包括的事件。
若包括第一事件,则执行步骤302。
若包括第二事件,则执行步骤310。
步骤302:在所述电子设备当前处理的至少一个事件包括第一事件时,确定所述电子设备当前的移动速度是否大于或等于第一阈值。
若是,则执行步骤303。
若否,则执行步骤312。
步骤303:将所述第一事件关联的数据流分给所述无线网络模块进行数据处理。
步骤304:确定距离所述设定无线网络预设距离内的多个无线网络信道的连接信息。
步骤305:根据所述连接信息确定所述无线网络模块当前所使用的第一无线网络信道。
步骤306:确定所述第一无线网络信道的信号强度是否小于预设信号强度。
若是,则执行步骤307。
若否,则执行步骤309。
步骤307:从所述多个无线网络信道中选取第二无线网络信道,所述第二无线网络信道的信号强度大于或等于所述预设信号强度。
步骤308:将所述无线网络模块使用的无线网络信道切换至所述第二无线网络信道。
步骤309:不切换所述无线网络模块使用的无线网络信道。
步骤310:在所述至少一个事件还包括第二事件时,将所述第二事件关联的数据流分给所述数据网络模块进行数据处理,所述第二事件的重要优先级小于所述预设优先级。
步骤311:在所述第一事件处理完成后,且所述第二事件处理未完成时,将所述第二事件关联的剩余的数据流分给所述无线网络模块和所述数据网络模块共同进行数据处理。
步骤312:确定所述设定无线网络的网络质量是否小于或等于所述移动数据网络的网络质量。
若是,则执行步骤313。
若否,则执行步骤317。
步骤313:确定所述移动数据网络的流量套餐是否为特殊流量套餐,所述特殊流量套餐包括第三方与运营商联合推出的专属流量套餐,或运营商单独推出的不限流量套餐,所述专属流量套餐用于允许特定应用不限流量的使用。
若是,则执行步骤314。
若不是,则执行步骤317。
步骤314:确定所述特殊流量套餐的类型。
步骤315:若特殊流量套餐类型为所述专属流量套餐,则确定其允许的所述特定应用是否包括所述至少一个事件关联的应用。
若包括,则执行步骤321。
若不包括,则执行步骤317。
步骤316:确定特殊流量套餐类型为不限量流量套餐。
步骤317:在确定所述特定应用不包括所述至少一个事件关联的应用,或所述特殊流量套餐不为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述无线网络模块和所述数据网络模块共同进行数据处理。
步骤318:分别获取所述无线网络模块和所述数据网络模块当前的第一峰值传输速率。
步骤319:根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重。
步骤320:根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流。
步骤321:在确定所述特定应用包括所述至少一个事件关联的应用,或所述特殊流量套餐为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述数据网络模块进行数据处理。
需要说明的是,本实施例的具体实现过程可参见上述方法实施例所述的具体实现过程,在此不再详述。
与上述图2和图3所示的实施例一致的,请参阅图4,图4是本申请实施例提供了另一种电子设备的结构示意图,所述电子设备当前处于链路聚合开启状态,在所述电子设备处于链路聚合开启状态下,所述电子设备使用移动数据网络对应的数据网络模块和设定无线网络对应的无线网络模块处理数据流,如图所述,所述电子设备包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,上述程序包括用于执行以下步骤的指令:
在所述电子设备当前处理的至少一个事件包括第一事件时,确定所述电子设备当前的移动速度,所述第一事件的重要优先级大于或等于预设优先级;
在所述电子设备当前的移动速度大于或等于第一阈值时,将所述第一事件关联的数据流分给所述无线网络模块进行数据处理。
在本申请的一实现方式中,上述程序包括还用于执行以下步骤的指令:
在所述至少一个事件还包括第二事件时,将所述第二事件关联的数据流分给所述数据网络模块进行数据处理,所述第二事件的重要优先级小于所述预设优先级。
在本申请的一实现方式中,将所述第一事件关联的数据流分给所述无线网络模块进行数据处理之后,上述程序包括还用于执行以下步骤的指令:
在所述第一事件处理完成后,且所述第二事件处理未完成时,将所述第二事件关联的剩余的数据流分给所述无线网络模块和所述数据网络模块共同进行数据处理。
在本申请的一实现方式中,上述程序包括还用于执行以下步骤的指令:
在所述电子设备当前的移动速度小于所述第一阈值时,分别获取所述无线网络模块和所述数据网络模块当前的第一峰值传输速率;
根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重;
根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流。
在本申请的一实现方式中,在根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重方面,上述程序包括具体用于执行以下步骤的指令:
根据获取的第一峰值传输速率和第一公式,分别确定所述无线网络模块和所述数据网络模块的分流权重,所述第一公式为:W=V/M,所述W为分流权重,所述V为峰值传输速率,所述M为获取的第一峰值传输速率的和。
在本申请的一实现方式中,在根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重方面,上述程序包括具体用于执行以下步骤的指令:
分别确定所述无线网络模块和所述数据网络模块的分流优先级;
根据获取的第一峰值传输速率、确定的分流优先级和第二公式分别确定所述无线网络模块和所述数据网络模块的分流权重,所述第二公式为:W=[(V/M)+(X/Y)]/2,所述W为分流权重,所述V为峰值传输速率,所述M为获取的第一峰值传输速率的和,所述X为分流优先级,所述Y为确定的分流优先级的和。
在本申请的一实现方式中,在根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流之前,上述程序包括还用于执行以下步骤的指令:
在所述设定无线网络的网络质量小于或等于所述移动数据网络的网络质量时,确定所述移动数据网络的流量套餐是否为特殊流量套餐,所述特殊流量套餐包括第三方与运营商 联合推出的专属流量套餐,或运营商单独推出的不限流量套餐,所述专属流量套餐用于允许特定应用不限流量的使用;
在确定所述特定应用不包括所述至少一个事件关联的应用,或所述特殊流量套餐不为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述无线网络模块和所述数据网络模块共同进行数据处理。
在本申请的一实现方式中,上述程序包括还用于执行以下步骤的指令:
在确定所述特定应用包括所述至少一个事件关联的应用,或所述特殊流量套餐为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述数据网络模块进行数据处理。
在本申请的一实现方式中,在将所述第一事件关联的数据流分给所述无线网络模块进行数据处理之后,上述程序包括还用于执行以下步骤的指令:
确定距离所述设定无线网络预设距离内的多个无线网络信道的连接信息;
根据所述连接信息确定所述无线网络模块当前所使用的第一无线网络信道;
在所述第一无线网络信道的信号强度小于预设信号强度时,从所述多个无线网络信道中选取第二无线网络信道,所述第二无线网络信道的信号强度大于或等于所述预设信号强度;
将所述无线网络模块使用的无线网络信道切换至所述第二无线网络信道。
需要说明的是,本实施例的具体实现过程可参见上述方法实施例所述的具体实现过程,在此不再详述。
本申请实施例可以根据所述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。所述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
下面为本申请装置实施例,本申请装置实施例用于执行本申请方法实施例所实现的方法。请参阅图5,图5是本申请实施例提供的一种网络分流装置,应用于电子设备,所述电子设备当前处于链路聚合开启状态,在所述电子设备处于链路聚合开启状态下,所述电子设备使用移动数据网络对应的数据网络模块和设定无线网络对应的无线网络模块处理数据流,所述装置包括:
确定单元501,用于在所述电子设备当前处理的至少一个事件包括第一事件时,确定所述电子设备当前的移动速度,所述第一事件的重要优先级大于或等于预设优先级;
分流单元502,用于在所述电子设备当前的移动速度大于或等于第一阈值时,将所述第一事件关联的数据流分给所述无线网络模块进行数据处理。
在本申请的一实现方式中,分流单元502还用于:
在所述至少一个事件还包括第二事件时,将所述第二事件关联的数据流分给所述数据网络模块进行数据处理,所述第二事件的重要优先级小于所述预设优先级。
在本申请的一实现方式中,在将所述第一事件关联的数据流分给所述无线网络模块进行数据处理之后,分流单元502还用于:
在所述第一事件处理完成后,且所述第二事件处理未完成时,将所述第二事件关联的剩余的数据流分给所述无线网络模块和所述数据网络模块共同进行数据处理。
在本申请的一实现方式中,所述装置还包括:
获取单元503,用于在所述电子设备当前的移动速度小于所述第一阈值时,分别获取所述无线网络模块和所述数据网络模块当前的第一峰值传输速率;
确定单元501,还用于根据获取的第一峰值传输速率分别确定所述无线网络模块和所 述数据网络模块的分流权重;
分流单元502,还用于根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流。
在本申请的一实现方式中,在根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重方面,确定单元501具体用于:
根据获取的第一峰值传输速率和第一公式,分别确定所述无线网络模块和所述数据网络模块的分流权重,所述第一公式为:W=V/M,所述W为分流权重,所述V为峰值传输速率,所述M为获取的第一峰值传输速率的和。
在本申请的一实现方式中,在根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重方面,确定单元501具体用于:
分别确定所述无线网络模块和所述数据网络模块的分流优先级;
根据获取的第一峰值传输速率、确定的分流优先级和第二公式分别确定所述无线网络模块和所述数据网络模块的分流权重,所述第二公式为:W=[(V/M)+(X/Y)]/2,所述W为分流权重,所述V为峰值传输速率,所述M为获取的第一峰值传输速率的和,所述X为分流优先级,所述Y为确定的分流优先级的和。
在本申请的一实现方式中,在根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流之前,确定单元501,还用于在所述设定无线网络的网络质量小于或等于所述移动数据网络的网络质量时,确定所述移动数据网络的流量套餐是否为特殊流量套餐,所述特殊流量套餐包括第三方与运营商联合推出的专属流量套餐,或运营商单独推出的不限流量套餐,所述专属流量套餐用于允许特定应用不限流量的使用;
分流单元502,还用于在确定所述特定应用不包括所述至少一个事件关联的应用,或所述特殊流量套餐不为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述无线网络模块和所述数据网络模块共同进行数据处理。
在本申请的一实现方式中,分流单元502,还用于在确定所述特定应用包括所述至少一个事件关联的应用,或所述特殊流量套餐为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述数据网络模块进行数据处理。
在本申请的一实现方式中,在将所述第一事件关联的数据流分给所述无线网络模块进行数据处理之后,确定单元502,还用于确定距离所述设定无线网络预设距离内的多个无线网络信道的连接信息;根据所述连接信息确定所述无线网络模块当前所使用的第一无线网络信道;
所述装置还包括选取单元504和切换单元505,其中:
选取单元504,用于在所述第一无线网络信道的信号强度小于预设信号强度时,从所述多个无线网络信道中选取第二无线网络信道,所述第二无线网络信道的信号强度大于或等于所述预设信号强度;
切换单元505,用于将所述无线网络模块使用的无线网络信道切换至所述第二无线网络信道。
需要说明的是,确定单元501、分流单元502、获取单元503、选取单元504和切换单元505可通过处理单元实现。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任一方法的部分或全部步骤,上述计算机包括电子设备。
本申请实施例还提供一种计算机程序产品,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如上述方法实 施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,上述计算机包括电子设备。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例上述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种网络分流方法,其特征在于,应用于电子设备,所述电子设备当前处于链路聚合开启状态,在所述电子设备处于链路聚合开启状态下,所述电子设备使用移动数据网络对应的数据网络模块和设定无线网络对应的无线网络模块处理数据流,所述方法包括:
    在所述电子设备当前处理的至少一个事件包括第一事件时,确定所述电子设备当前的移动速度,所述第一事件的重要优先级大于或等于预设优先级;
    在所述电子设备当前的移动速度大于或等于第一阈值时,将所述第一事件关联的数据流分给所述无线网络模块进行数据处理。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在所述至少一个事件还包括第二事件时,将所述第二事件关联的数据流分给所述数据网络模块进行数据处理,所述第二事件的重要优先级小于所述预设优先级。
  3. 根据权利要求2所述的方法,其特征在于,所述将所述第一事件关联的数据流分给所述无线网络模块进行数据处理之后,所述方法还包括:
    在所述第一事件处理完成后,且所述第二事件处理未完成时,将所述第二事件关联的剩余的数据流分给所述无线网络模块和所述数据网络模块共同进行数据处理。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述方法还包括:
    在所述电子设备当前的移动速度小于所述第一阈值时,分别获取所述无线网络模块和所述数据网络模块当前的第一峰值传输速率;
    根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重;
    根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流。
  5. 根据权利要求4所述的方法,其特征在于,所述根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重,包括:
    根据获取的第一峰值传输速率和第一公式,分别确定所述无线网络模块和所述数据网络模块的分流权重,所述第一公式为:W=V/M,所述W为分流权重,所述V为峰值传输速率,所述M为获取的第一峰值传输速率的和。
  6. 根据权利要求4所述的方法,其特征在于,所述根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重,包括:
    分别确定所述无线网络模块和所述数据网络模块的分流优先级;
    根据获取的第一峰值传输速率、确定的分流优先级和第二公式分别确定所述无线网络模块和所述数据网络模块的分流权重,所述第二公式为:W=[(V/M)+(X/Y)]/2,所述W为分流权重,所述V为峰值传输速率,所述M为获取的第一峰值传输速率的和,所述X为分流优先级,所述Y为确定的分流优先级的和。
  7. 根据权利要求4-6任一项所述的方法,其特征在于,所述根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流之前,所述方法还包括:
    在所述设定无线网络的网络质量小于或等于所述移动数据网络的网络质量时,确定所述移动数据网络的流量套餐是否为特殊流量套餐,所述特殊流量套餐包括第三方与运营商联合推出的专属流量套餐,或运营商单独推出的不限流量套餐,所述专属流量套餐用于允许特定应用不限流量的使用;
    在确定所述特定应用不包括所述至少一个事件关联的应用,或所述特殊流量套餐不为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述无线网络模块和所述数 据网络模块共同进行数据处理。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    在确定所述特定应用包括所述至少一个事件关联的应用,或所述特殊流量套餐为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述数据网络模块进行数据处理。
  9. 根据权利要求1-8任一项所述的方法,其特征在于,所述将所述第一事件关联的数据流分给所述无线网络模块进行数据处理之后,所述方法还包括:
    确定距离所述设定无线网络预设距离内的多个无线网络信道的连接信息;
    根据所述连接信息确定所述无线网络模块当前所使用的第一无线网络信道;
    在所述第一无线网络信道的信号强度小于预设信号强度时,从所述多个无线网络信道中选取第二无线网络信道,所述第二无线网络信道的信号强度大于或等于所述预设信号强度;
    将所述无线网络模块使用的无线网络信道切换至所述第二无线网络信道。
  10. 一种网络分流装置,其特征在于,应用于电子设备,所述电子设备当前处于链路聚合开启状态,在所述电子设备处于链路聚合开启状态下,所述电子设备使用移动数据网络对应的数据网络模块和设定无线网络对应的无线网络模块处理数据流,所述装置包括:
    确定单元,用于在所述电子设备当前处理的至少一个事件包括第一事件时,确定所述电子设备当前的移动速度,所述第一事件的重要优先级大于或等于预设优先级;
    分流单元,用于在所述电子设备当前的移动速度大于或等于第一阈值时,将所述第一事件关联的数据流分给所述无线网络模块进行数据处理。
  11. 根据权利要求10所述的装置,其特征在于,所述分流单元,还用于在所述至少一个事件还包括第二事件时,将所述第二事件关联的数据流分给所述数据网络模块进行数据处理,所述第二事件的重要优先级小于所述预设优先级。
  12. 根据权利要求11所述的装置,其特征在于,在将所述第一事件关联的数据流分给所述无线网络模块进行数据处理之后,所述分流单元,还用于在所述第一事件处理完成后,且所述第二事件处理未完成时,将所述第二事件关联的剩余的数据流分给所述无线网络模块和所述数据网络模块共同进行数据处理。
  13. 根据权利要求10-12任一项所述的装置,其特征在于,所述装置还包括:
    获取单元,用于在所述电子设备当前的移动速度小于所述第一阈值时,分别获取所述无线网络模块和所述数据网络模块当前的第一峰值传输速率;
    确定单元,还用于根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重;
    分流单元,还用于根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流。
  14. 根据权利要求13所述的装置,其特征在于,在根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重方面,所述确定单元具体用于:
    根据获取的第一峰值传输速率和第一公式,分别确定所述无线网络模块和所述数据网络模块的分流权重,所述第一公式为:W=V/M,所述W为分流权重,所述V为峰值传输速率,所述M为获取的第一峰值传输速率的和。
  15. 根据权利要求13所述的装置,其特征在于,在根据获取的第一峰值传输速率分别确定所述无线网络模块和所述数据网络模块的分流权重方面,所述确定单元具体用于:
    分别确定所述无线网络模块和所述数据网络模块的分流优先级;
    根据获取的第一峰值传输速率、确定的分流优先级和第二公式分别确定所述无线网络模块和所述数据网络模块的分流权重,所述第二公式为:W=[(V/M)+(X/Y)]/2,所述W为分流权重,所述V为峰值传输速率,所述M为获取的第一峰值传输速率的和,所述X 为分流优先级,所述Y为确定的分流优先级的和。
  16. 根据权利要求13-15任一项所述的装置,其特征在于,在根据确定的分流权重为所述无线网络模块和所述数据网络模块分配所述至少一个事件关联的数据流之前,所述确定单元,还用于在所述设定无线网络的网络质量小于或等于所述移动数据网络的网络质量时,确定所述移动数据网络的流量套餐是否为特殊流量套餐,所述特殊流量套餐包括第三方与运营商联合推出的专属流量套餐,或运营商单独推出的不限流量套餐,所述专属流量套餐用于允许特定应用不限流量的使用;
    所述分流单元,还用于在确定所述特定应用不包括所述至少一个事件关联的应用,或所述特殊流量套餐不为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述无线网络模块和所述数据网络模块共同进行数据处理。
  17. 根据权利要求16所述的装置,其特征在于,所述分流单元,还用于在确定所述特定应用包括所述至少一个事件关联的应用,或所述特殊流量套餐为所述不限流量套餐时,将所述至少一个事件关联的数据流分给所述数据网络模块进行数据处理。
  18. 根据权利要求10-17任一项所述的装置,其特征在于,在将所述第一事件关联的数据流分给所述无线网络模块进行数据处理之后,确定单元502,还用于确定距离所述设定无线网络预设距离内的多个无线网络信道的连接信息;根据所述连接信息确定所述无线网络模块当前所使用的第一无线网络信道;
    所述装置还包括:选取单元,用于在所述第一无线网络信道的信号强度小于预设信号强度时,从所述多个无线网络信道中选取第二无线网络信道,所述第二无线网络信道的信号强度大于或等于所述预设信号强度;
    切换单元,用于将所述无线网络模块使用的无线网络信道切换至所述第二无线网络信道。
  19. 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。
  20. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质用于存储计算机程序,所述计算机程序被处理器执行,以实现如权利要求1-9任一项所述的方法。
PCT/CN2019/106209 2018-12-03 2019-09-17 网络分流方法及相关设备 WO2020114038A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19891986.2A EP3883293A4 (en) 2019-09-17 Network shunting method and relevant device
US17/333,930 US20210289388A1 (en) 2018-12-03 2021-05-28 Network Offload Method and Relevant Device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811468247.0A CN109451537B (zh) 2018-12-03 2018-12-03 网络分流方法及相关设备
CN201811468247.0 2018-12-03

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/333,930 Continuation US20210289388A1 (en) 2018-12-03 2021-05-28 Network Offload Method and Relevant Device

Publications (1)

Publication Number Publication Date
WO2020114038A1 true WO2020114038A1 (zh) 2020-06-11

Family

ID=65555376

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/106209 WO2020114038A1 (zh) 2018-12-03 2019-09-17 网络分流方法及相关设备

Country Status (3)

Country Link
US (1) US20210289388A1 (zh)
CN (1) CN109451537B (zh)
WO (1) WO2020114038A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451537B (zh) * 2018-12-03 2021-01-29 Oppo广东移动通信有限公司 网络分流方法及相关设备
CN109922504B (zh) * 2019-03-27 2022-03-01 Oppo广东移动通信有限公司 数据分流方法及相关产品
US11606118B2 (en) * 2020-08-27 2023-03-14 Connectify, Inc. Data transfer with multiple threshold actions
CN116155729A (zh) * 2021-11-22 2023-05-23 荣耀终端有限公司 基于用户流量画像的网络加速方法及相关电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101583169A (zh) * 2008-05-12 2009-11-18 ***通信集团上海有限公司 为终端设备选择小区接入的方法及设备
CN103338482A (zh) * 2013-07-24 2013-10-02 成都西加云杉科技有限公司 分流数据传输方法、传输设备以及用户终端
WO2014183276A1 (zh) * 2013-05-15 2014-11-20 华为技术有限公司 一种无线网络的分流方法及设备
US20170105172A1 (en) * 2014-03-26 2017-04-13 Telefonaktiebolaget Lm Ericsson (Publ) Cell selection depending on relative speed between terminal and access point
CN109451537A (zh) * 2018-12-03 2019-03-08 Oppo广东移动通信有限公司 网络分流方法及相关设备

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080057944A1 (en) * 2006-08-30 2008-03-06 Motorola, Inc. Method and apparatus for calling via selected networks
US20080165737A1 (en) * 2007-01-09 2008-07-10 Uppala Subramanya R Motion sensitive system selection for multi-mode devices
CN101668322B (zh) * 2009-09-17 2012-06-27 华为终端有限公司 终端的网络切换方法和终端设备
KR20120138546A (ko) * 2011-06-15 2012-12-26 한국전자통신연구원 분산 네트워크에서 우선순위에 기반한 디스커버리를 수행하는 장치 및 방법과, 디스커버리 백오프 타임 결정 방법
CN103249088A (zh) * 2012-10-26 2013-08-14 重庆华非云通讯技术有限公司 车地无线通信***lte-wlan复合组网方法
CN103442413B (zh) * 2013-08-29 2018-08-10 惠州Tcl移动通信有限公司 移动终端的无线网络设置方法
CN104618479B (zh) * 2015-01-29 2018-10-09 深圳市布谷鸟科技有限公司 一种以分层通讯方式实现商用车车载云服务终端信息传输的方法
US9485712B1 (en) * 2015-05-22 2016-11-01 Verizon Patent And Licensing Inc. Data bandwidth optimization
CN106817731B (zh) * 2015-11-30 2020-08-25 华为终端有限公司 终端的网络切换方法及终端设备
CN105578528A (zh) * 2016-01-08 2016-05-11 努比亚技术有限公司 数据接口分流方法、装置及终端设备
CN108337643B (zh) * 2018-03-16 2019-12-24 南京大学 一种基于公共WiFi分布的多任务移动数据分流方法
US10652382B2 (en) * 2018-04-12 2020-05-12 Google Llc Switching to a single radio chain for voice communications
CN112003785B (zh) * 2018-08-23 2022-08-16 Oppo广东移动通信有限公司 链路聚合方法及相关产品

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101583169A (zh) * 2008-05-12 2009-11-18 ***通信集团上海有限公司 为终端设备选择小区接入的方法及设备
WO2014183276A1 (zh) * 2013-05-15 2014-11-20 华为技术有限公司 一种无线网络的分流方法及设备
CN103338482A (zh) * 2013-07-24 2013-10-02 成都西加云杉科技有限公司 分流数据传输方法、传输设备以及用户终端
US20170105172A1 (en) * 2014-03-26 2017-04-13 Telefonaktiebolaget Lm Ericsson (Publ) Cell selection depending on relative speed between terminal and access point
CN109451537A (zh) * 2018-12-03 2019-03-08 Oppo广东移动通信有限公司 网络分流方法及相关设备

Also Published As

Publication number Publication date
CN109451537B (zh) 2021-01-29
US20210289388A1 (en) 2021-09-16
EP3883293A1 (en) 2021-09-22
CN109451537A (zh) 2019-03-08

Similar Documents

Publication Publication Date Title
WO2020114038A1 (zh) 网络分流方法及相关设备
CN108810903B (zh) 一种数据传输配置及数据传输方法和装置
WO2017186092A1 (zh) 网络切片的选择方法及装置
CN109495880B (zh) 数据传输方法及相关装置
CN109618372B (zh) 数据传输方法及相关装置
US12035294B2 (en) Communication method and apparatus
CN104540176B (zh) 一种无线网络接入方法、装置及终端
CN105139641A (zh) 一种基于WiFi中继站的车辆调度方法及***
CN110351194B (zh) 一种组播组创建、组播组加入方法及装置
CN112997528B (zh) 网络切换方法及相关设备
CN109152020B (zh) 一种数据接收方法、相关设备及***
WO2016062001A1 (zh) 无线局域网中发布服务集标识ssid的方法及装置
CN111200798B (zh) 一种v2x消息的传输方法、设备及***
WO2017054362A1 (zh) 一种多承载数据传输方法及装置
CN103002517A (zh) 一种数据传输的方法和数据终端
CN109168171A (zh) 配置信息获取方法、装置、设备及***
CN106792497B (zh) 基站、用户设备及其接入方法
US20220086847A1 (en) Data transmission method and apparatus, computer device, and system
JP6147934B2 (ja) デバイス間近接サービスにおいて信号を伝送する方法、基地局およびユーザーイクイップメント
CN104284320A (zh) 用户设备直连通信的资源分配方法和设备
CN112770407A (zh) 一种建立数据承载的方法、装置、存储介质及电子设备
CN113016166B (zh) 一种多媒体业务的传输方法及装置
US20220124778A1 (en) Method for Sidelink Implementation and Related Products
US20200128541A1 (en) Information sending method and apparatus, terminal, access network device and system
US10735986B2 (en) Radio resource determining systems and methods

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19891986

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019891986

Country of ref document: EP

Effective date: 20210614