CN116155729A - Network acceleration method based on user traffic portrayal and related electronic equipment - Google Patents

Network acceleration method based on user traffic portrayal and related electronic equipment Download PDF

Info

Publication number
CN116155729A
CN116155729A CN202111384731.7A CN202111384731A CN116155729A CN 116155729 A CN116155729 A CN 116155729A CN 202111384731 A CN202111384731 A CN 202111384731A CN 116155729 A CN116155729 A CN 116155729A
Authority
CN
China
Prior art keywords
application
network
sensitivity
flow
traffic
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.)
Pending
Application number
CN202111384731.7A
Other languages
Chinese (zh)
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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111384731.7A priority Critical patent/CN116155729A/en
Publication of CN116155729A publication Critical patent/CN116155729A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • H04L41/083Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability for increasing network speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Landscapes

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

Abstract

The application provides a network acceleration method based on user traffic portrayal and related electronic equipment, wherein the method comprises the following steps: displaying a first application acceleration list under the condition that the residual flow of the data flow package of the currently used SIM card is a first value, and simultaneously using a Wi-Fi network and the data flow of the SIM card by a network application in the first application acceleration list to carry out network service; displaying a second application acceleration list under the condition that the residual flow of the data flow package of the currently used SIM card is a second value, and simultaneously using the Wi-Fi network and the data flow of the SIM card by the network application in the second application acceleration list for network service; the first application acceleration list is different from the second application acceleration list, and the first value is different from the second value.

Description

Network acceleration method based on user traffic portrayal and related electronic equipment
Technical Field
The application relates to the field of network acceleration, in particular to a network acceleration method based on user traffic portrayal and related electronic equipment.
Background
With the rapid development of electronic technology and internet technology, mobile devices such as mobile phones are increasingly used in daily life, for example, mobile payment and games can be performed through the mobile phones. To ensure proper operation of common services (e.g., gaming, talking, social software, etc.), a user's handset is typically connected to a wireless network. In case of a degradation of the network quality, network acceleration is typically performed.
However, for some users, because the total amount of the traffic packages is not high or the remaining available traffic is insufficient in a certain month, when the data traffic is used for network acceleration, the used data traffic may exceed the total amount of the traffic packages of the users, so that the users need to pay additional telephone fees, and the online experience of the users is reduced.
Disclosure of Invention
The embodiment of the application provides a network acceleration method based on user flow portrayal and related electronic equipment, and the method solves the problem that excessive user data flow is caused by acceleration of network application due to lower user data flow than a warning value, and further additional telephone charge payment is required.
In a first aspect, an embodiment of the present application provides a network acceleration method based on user traffic portrayal, which is applied to an electronic device, and the method includes: displaying a first application acceleration list under the condition that the residual flow of the data flow package of the currently used SIM card is a first value, and simultaneously using a Wi-Fi network and the data flow of the SIM card by a network application in the first application acceleration list to carry out network service; displaying a second application acceleration list under the condition that the residual flow of the data flow package of the currently used SIM card is a second value, and simultaneously using the Wi-Fi network and the data flow of the SIM card by the network application in the second application acceleration list for network service; the first application acceleration list is different from the second application acceleration list, and the first value is different from the second value. In the above embodiment, the application acceleration list is updated according to the remaining flow of the data flow package of the currently used SIM card, and the electronic device determines whether the network application can perform network acceleration according to whether the network application is in the application acceleration list, so that it can be ensured that the electronic device performs network acceleration on the network application with poor network quality under the condition that the remaining flow is sufficient, service blocking of the network application is avoided, the network application is not accelerated under the condition that the remaining flow is insufficient, and the problem that the user pays extra telephone fees due to the fact that the data flow of the user exceeds the total package amount due to the acceleration on the network application is avoided.
With reference to the first aspect, in one possible implementation manner, the first application acceleration list is different from the second application acceleration list, including: the number of web applications in the first application acceleration list is different from the number of web applications in the second application acceleration list.
With reference to the first aspect, in a possible implementation manner, the first application acceleration list is different from the second application acceleration list, and further includes: the web applications in the first application acceleration list are different from the web applications in the second application acceleration list.
With reference to the first aspect, in a possible implementation manner, the second value is smaller than the first value, and the number of network applications in the first application list is greater than the number of network applications in the second application list.
With reference to the first aspect, in a possible implementation manner, the method further includes: the method comprises the steps that under the condition that the residual flow of a data flow package of a first SIM card is a first numerical value, the electronic equipment uses the first SIM card; and the electronic equipment uses the second SIM card under the condition that the residual flow of the data flow package of the first SIM card is a second value. Therefore, under the condition that the flow of the first SIM card is insufficient, the electronic equipment can be switched to the second SIM card with sufficient flow residual flow, so that the electronic equipment can perform network acceleration on the network application with poor network quality under the condition that the total amount of the user flow packages is not exceeded, and network service of the network application is ensured not to be blocked.
With reference to the first aspect, in a possible implementation manner, the method further includes: responding to a first input operation of a user, and switching the mobile data service from a first SIM card to a second SIM card by the electronic equipment; before the mobile data service is switched from the first SIM card to the second SIM card, the application acceleration list displayed by the electronic equipment is a first application acceleration list, and after the mobile data service is switched from the first SIM card to the second SIM card, the application acceleration list displayed by the electronic equipment is a second application acceleration list. In this way, the electronic device can switch the mobile data service from the first SIM card to the second SIM card, when the residual flow of the first SIM card is insufficient, the corresponding network application number in the application acceleration list is smaller, when the mobile data service is switched to the second SIM card, and when the residual data flow of the second SIM card is sufficient, the corresponding network application number in the application acceleration list of the second SIM card is larger, and the range of network applications in which the electronic device can perform network acceleration by using the data flow of the second SIM card is larger.
With reference to the first aspect, in one possible implementation manner, when the network application performs network service, the network application receives/transmits N paths of data flows, and the network application performs network service by using the Wi-Fi network and the data traffic of the SIM card simultaneously includes: the electronic equipment carries M paths of data streams of the network application to be transmitted on a Wi-Fi network channel; the electronic equipment loads N-M paths of data streams of the network application on a cellular network channel for transmission; the Wi-Fi network channel is a network channel corresponding to a Wi-Fi network, and the cellular network channel is a network channel corresponding to a SIM card currently used by the electronic equipment.
With reference to the first aspect, in a possible implementation manner, the method further includes: responding to a first operation of a user, starting a first application, wherein the first application is a network application which uses a Wi-Fi network to perform network service currently, all data streams of the first application are born on a Wi-Fi network channel for transmission, and the Wi-Fi network channel is a network channel corresponding to the Wi-Fi network; when the network quality of the data stream is detected to not meet the preset condition and the first application is the target network application, carrying part of the data stream of the first application to a cellular network channel for transmission; the target network application is a network application in an application acceleration list corresponding to the currently used SIM card, and the cellular network channel is a network channel corresponding to the currently used SIM card. In this way, the stream with the poor network quality is switched to the cellular network channel, so that the network quality of the stream is improved, the service blocking problem caused by the poor network quality of the stream is reduced, and the user experience is improved.
With reference to the first aspect, in one possible implementation manner, the application acceleration list corresponding to the currently used SIM card is dynamically updated based on a user traffic profile, where the user traffic profile includes a user traffic sensitivity, a user preference network application, and an application traffic sensitivity, the user traffic sensitivity is used to characterize a sufficiency degree of available data traffic, the user preference network application is used to characterize a frequency of use of the network application by the user, and the application traffic sensitivity is used to characterize a consumption degree of the data traffic by the network application. Therefore, the application acceleration list is dynamically updated based on the user flow portrayal, and the problem that the data flow exceeds the user flow package due to the consumption of the data flow by the network acceleration, so that the user pays redundant telephone fees is solved.
With reference to the first aspect, in one possible implementation manner, when it is detected that the network quality of the data flow does not meet a preset condition and the first application is a target network application, the method further includes: the electronic equipment displays a first prompt box on a first interface, wherein the first interface is a working interface of a first application, and the first prompt box is used for displaying prompt information of network acceleration.
With reference to the first aspect, in one possible implementation manner, after the carrying the part of the data flow of the first application on the cellular network channel for transmission, the method further includes: updating the user flow portrait regularly, and updating an application acceleration list corresponding to the currently used SIM card based on the user flow portrait; and under the condition that the first application is not the network application in the updated application acceleration list, the electronic equipment displays a second prompt box on a first interface, wherein the first interface is a working interface of the first application, and the second prompt box is used for displaying prompt information of stopping network acceleration of the electronic equipment. Thus, under the condition that the network application which is currently subjected to network acceleration is not the network application in the updated application acceleration list, the electronic equipment stops the network acceleration of the network application, and the problem that the data flow exceeds the user flow package due to the consumption of the data flow by the network acceleration, so that the user pays redundant telephone fees is solved.
With reference to the first aspect, in one possible implementation manner, after the carrying the part of the data flow of the first application on the cellular network channel for transmission, the method further includes: responding to a second operation of the user, and displaying a second interface by the electronic equipment; and the second interface is used for displaying the data flow consumed by the currently used SIM card after the electronic equipment loads part of the data flow of the first application to the cellular network channel for transmission.
With reference to the first aspect, in a possible implementation manner, the method further includes: under the condition that the user traffic sensitivity is the first user traffic sensitivity, the application acceleration list corresponding to the currently used SIM card comprises a network application of the first application traffic sensitivity, a network application of the second application traffic sensitivity, a network application of the first application type, a network application of the second application type and a user preference network application; under the condition that the user traffic sensitivity is the second user traffic sensitivity, an application acceleration list corresponding to the currently used SIM card is included in the user preference network application of the first application type and the user preference network application of the second application type, and the application traffic sensitivity is the network application of the first application traffic sensitivity and the network application of the second application traffic sensitivity; and under the condition that the user traffic sensitivity is the third user traffic sensitivity, the application acceleration list corresponding to the currently used SIM card is included in the user preference network application of the third application type, and the application traffic sensitivity is the network application of the first application traffic sensitivity.
With reference to the first aspect, in one possible implementation manner, the user traffic sensitivity is based on a total amount of data traffic T of the user traffic packages 1 And user residual data traffic T 2 Obtaining; wherein at T 1 In the case of ≡X, if X 2 *T 1 <T 2 ≤T 1 The user traffic sensitivity is a first user traffic sensitivity; if x 1 *T 1 <T 2 ≤x *T 1 The user sensitivity is the second user traffic sensitivity; if 0 is less than T 2 ≤x 1 *T 1 The user traffic sensitivity is a third user traffic sensitivity; at Y.ltoreq.T 1 In the case of < X, if X 4 *T 1 <T 2 ≤T 1 The user traffic sensitivity is a first user traffic sensitivity; if x 3 *T 1 <T 2 ≤x 4 *T 1 The user traffic sensitivity is a second user traffic sensitivity; if 0 is less than T 2 ≤x 3 *T 1 The user traffic sensitivity is a third user traffic sensitivity; at T 1 In case of < Y, the user traffic sensitivity is a third user traffic sensitivity; wherein X is a first flow threshold, Y is a second flow threshold, and X > Y, X 1 X is a first percentage 2 X is a second percentage 3 X is a third percentage 4 Is a fourth percentage, and 0 < x 1 <x 2 <1,0<x 3 <x 4 <1。
With reference to the first aspect, in one possible implementation manner, the application traffic sensitivity is based on an average traffic T consumed by the network application during a preset time period 3 And the application type of the network application; wherein, if T, in the case that the application type of the network application is the first application type 3 The application flow sensitivity of the network application is equal to or more than A, and the application flow sensitivity of the network application is the first application flow sensitivity; if B is less than or equal to T 3 The application traffic sensitivity of the network application is the second application traffic sensitivity; if T 3 The application traffic sensitivity of the network application is the third application traffic sensitivity; in the case that the application type of the network application is the second application type, if T 3 The application flow of the network application is the sensitivity of the first application flow; if D is less than or equal to T 3 < C, the application traffic sensitivity of the network application is a second application traffic sensitivity; if T 3 The application traffic sensitivity of the network application is the third application traffic sensitivity; in the case that the application type of the network application is the third application type, if T 3 E or more, the application flow sensitivity of the network application is a first application flowQuantity sensitivity; if F is less than or equal to T 3 < E, the application traffic sensitivity of the network application is a second application traffic sensitivity; if T 3 The application traffic sensitivity of the network application is the third application traffic sensitivity; wherein A is a first threshold, B is a second threshold, C is a third threshold, D is a fourth threshold, E is a fifth threshold, F is a sixth threshold, and A > B, C > D, E > F, A > C is greater than or equal to E.
With reference to the first aspect, in one possible implementation manner, the user preference network application is a network application based on the application preference score f being greater than a preset threshold;
wherein f is according to the formula f=f 1 +f 2 Obtained, said f 1 Using a time length score for the network application, the f 1 According to the formula
Figure BDA0003366673730000041
Obtained, t is 1 For the network application month average use time, the N is as follows 1 Being a first constant, said f 2 A usage number score for the network application, the f 2 According to formula f 2 =C*N 2 The C is the number of times of using the network application month, and the N is 2 Is a second constant.
In a second aspect, embodiments of the present application provide an electronic device, including: one or more processors and memory; the memory is coupled to the one or more processors, the memory for storing computer program code, the computer program code comprising computer instructions that the one or more processors call to cause the electronic device to perform: displaying a first application acceleration list under the condition that the residual flow of the data flow package of the currently used SIM card is a first value, and simultaneously using a Wi-Fi network and the data flow of the SIM card by a network application in the first application acceleration list to carry out network service; displaying a second application acceleration list under the condition that the residual flow of the data flow package of the currently used SIM card is a second value, and simultaneously using the Wi-Fi network and the data flow of the SIM card by the network application in the second application acceleration list for network service; the first application acceleration list is different from the second application acceleration list, and the first value is different from the second value.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: switching the mobile data service from the first SIM card to the second SIM card in response to a first input operation of the user; the method comprises the steps that before mobile data service is switched from a first SIM card to a second SIM card, a displayed application acceleration list is a first application acceleration list, and after the mobile data service is switched from the first SIM card to the second SIM card, the displayed application acceleration list is a second application acceleration list.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: responding to a first operation of a user, starting a first application, wherein the first application is a network application which uses a Wi-Fi network to perform network service currently, all data streams of the first application are born on a Wi-Fi network channel for transmission, and the Wi-Fi network channel is a network channel corresponding to the Wi-Fi network; when the network quality of the data stream is detected to not meet the preset condition and the first application is the target network application, carrying part of the data stream of the first application to a cellular network channel for transmission; the target network application is a network application in an application acceleration list corresponding to the currently used SIM card, and the cellular network channel is a network channel corresponding to the currently used SIM card.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: and displaying a first prompt box on the first interface, wherein the first interface is a working interface of the first application, and the first prompt box is used for displaying prompt information of network acceleration.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: updating the user flow portrait regularly, and updating an application acceleration list corresponding to the currently used SIM card based on the user flow portrait; and under the condition that the first application is not the network application in the updated application acceleration list, displaying a second prompt box on a first interface, wherein the first interface is a working interface of the first application, and the second prompt box is used for displaying prompt information for stopping network acceleration.
With reference to the second aspect, in one possible implementation manner, the one or more processors call the computer instructions to cause the electronic device to perform: responding to a second operation of the user, and displaying a second interface; and the second interface is used for displaying the data flow consumed by the currently used SIM card after the partial data flow of the first application is carried to a cellular network channel for transmission.
In a third aspect, an embodiment of the present application provides an electronic device, including: the touch screen, the camera, one or more processors and one or more memories; the one or more processors are coupled with the touch screen, the camera, the one or more memories for storing computer program code comprising computer instructions which, when executed by the one or more processors, cause the electronic device to perform the method as described in the first aspect or any of the possible implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a chip system applied to an electronic device, the chip system including one or more processors configured to invoke computer instructions to cause the electronic device to perform a method as described in the first aspect or any of the possible implementations of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect or any one of the possible implementations of the first aspect.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium comprising instructions which, when run on an electronic device, cause the electronic device to perform a method as described in the first aspect or any one of the possible implementations of the first aspect.
Drawings
Fig. 1A is a schematic diagram of a flow switching provided in an embodiment of the present application;
FIG. 1B is another flow switching diagram provided by embodiments of the present application;
FIGS. 2A-2L are exemplary user interface diagrams of a set of electronic devices 100 provided in an embodiment of the present application;
3A-3C are exemplary user interface diagrams of another set of electronic devices 100 provided in embodiments of the present application;
fig. 4A-4B are diagrams of user interfaces corresponding to a set of different SIM cards provided in an embodiment of the present application;
FIGS. 5A-5B are a set of network acceleration interface diagrams provided by embodiments of the present application;
FIGS. 6A-6E are exemplary user interface diagrams of another set of electronic devices 100 provided in an embodiment of the present application;
fig. 7 is a schematic hardware structure of the electronic device 100 according to the embodiment of the present application;
fig. 8 is a flow chart of a network acceleration method based on user traffic according to an embodiment of the present application;
FIG. 9 is a schematic view of a user traffic image provided in an embodiment of the present application;
Fig. 10 is a system architecture diagram of a message reporting component for traffic detection according to an embodiment of the present application;
FIG. 11 is a system framework diagram provided by an embodiment of the present application;
fig. 12 is a software structure block diagram of an electronic device with an Android system according to an embodiment of the present application.
Detailed Description
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. It will be apparent that the described embodiments are only some, but not all, of the embodiments of the present application. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application for the embodiment. The appearances of such phrases 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. Those of skill in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms "first," second, "" third and the like in the description and in the claims and drawings are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprising," "including," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion. For example, a series of steps or elements may be included, or alternatively, steps or elements not listed or, alternatively, other steps or elements inherent to such process, method, article, or apparatus may be included.
Only some, but not all, of the matters relevant to the present application are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
As used in this specification, the terms "component," "module," "system," "unit," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution. For example, a unit may be, but is not limited to being, a process running on a processor, an object, an executable, a thread of execution, a program, and/or being distributed between two or more computers. Furthermore, these units may be implemented from a variety of computer-readable media having various data structures stored thereon. The units may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets (e.g., second unit data from another unit interacting with a local system, distributed system, and/or across a network).
First, terms related to embodiments of the present application will be described by way of example, but not limitation.
1. Mobile identification module (Subscriber Identity Module, SIM) card: is an IC card held by a mobile subscriber of the GSM system, called a subscriber identity card. The GSM system identifies the GSM user through the SIM card, the same SIM card can be used on different mobile phones, and the GSM mobile phone can only access to the network for use after the SIM card is inserted.
2. Global system for mobile communications (Global System for Mobile Communications, GSM): a digital mobile communication standard developed by the european telecommunications standards institute ETSI. Its air interface uses time division multiple access technology.
3. The data service network card is a device supporting internet surfing through mobile communication technologies such as general packet radio service (General packet radio service, GPRS), enhanced data rates for GSM evolution (Enhanced Data Rate for GSM Evolution, EDGE), time Division-Synchronous Code Division Multiple Access (TD-SCDMA), high speed downlink packet access (High Speed Downlink Packet Access, HSDPA), wideband code Division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), fifth generation mobile communication technology (5th Generation Mobile Communication Technology,5G), etc.
4. A Wi-Fi network card is a device that supports surfing the internet by means of a wireless local area network (Wireless Local Area Network, WLAN).
5. A network channel refers to any route between two or more nodes in a network, or the route from a source address to a destination address in a network.
In this embodiment of the present application, the network channel of the electronic device refers to a route established between a device for surfing the internet by using the Wi-Fi network card or the data service network card and other electronic devices, for example, a server. In the embodiment of the application, a network channel established by using a Wi-Fi network card is referred to as a Wi-Fi network channel, and a network channel established by using a data service network card is referred to as a cellular network channel.
A plurality of network channels can be preconfigured in the electronic device, and the network channels can comprise a main Wi-Fi network channel, a secondary Wi-Fi network channel, a main cellular network channel and a secondary cellular network channel, wherein the main Wi-Fi network channel and the secondary Wi-Fi network channel can work in a 2.4GHz frequency band or a 5GHz frequency band, and if the main Wi-Fi network channel works in the 2.4GHz frequency band, the secondary Wi-Fi network channel works in the 5GHz frequency band; if the main WI-Fi network channel works in the 5GHz frequency band, the auxiliary WI-Fi network channel works in the 2.4GHz frequency band. Further, the primary cellular network channel and the secondary cellular network channel may correspond to an operator network, for example, the primary cellular network channel may use a SIM card 1 (the SIM card 1 is assigned to the operator a) and the secondary cellular network channel may use a SIM card 2 (the SIM card 2 is assigned to the operator B). In a typical case, the primary Wi-Fi network channel has a higher priority than the remaining three channels, and thus the primary network channel is typically the primary Wi-Fi network channel. In general, the Wi-Fi network channels have a higher priority than the cellular network channels, taking into account the data traffic consumption of the electronic device. It will be appreciated that the preset channels described above are merely exemplary and are not limiting to embodiments of the present application, and that in some embodiments more or fewer channels may be included. In addition, the main Wi-Fi network channel is also only a preferred solution, and is not limited to the embodiments of the present application, and in some embodiments, other network channels may be selected as the main network channel.
With the rapid development of intelligent products and internet application technologies, surfing has become an indispensable part of life of people, and a network acceleration technology greatly improves surfing experience of users, so that mobile data can be automatically used to improve surfing smoothness when Wi-Fi network quality is poor or cellular network quality is poor. However, more traffic consumption is also brought at the same time, for example, more traffic is generally consumed when watching video online videos, downloading large files or applications, and sometimes, the traffic packages of the users may exceed the total packages of the users without reaching the end of the month, so that the traffic charges of the users are increased, and thus, the user experience may be reduced. In order to solve the above problem, the electronic device may detect the data traffic of the current user when accelerating the network, and if the total amount of the traffic packages of the user is high and the remaining traffic is sufficient, the electronic device may open an acceleration channel when detecting that the network quality of the currently used network channel is poor, so as to meet the service requirement. The acceleration channel may be a standby network channel. If the total amount of the user flow packages is not high or the residual flow of the user is lower than a certain threshold, the electronic equipment can not open the acceleration channel when detecting that the network quality of the currently used network channel is poor, or open the acceleration channel but automatically close the acceleration channel under the condition that the data flow is lower than the warning value.
The embodiment of the application provides a network acceleration method based on a user flow portrait, wherein an electronic device monitors the network quality of each flow of an application currently running, and when the network quality of a certain flow or a plurality of flows is poor, the electronic device determines whether to switch a network channel or not based on the flow portrait of the current user so as to improve the Internet surfing experience of the user. When the sensitivity of the user traffic is low, the electronic device switches a single stream or a plurality of streams to a standby network channel with better network quality for transmission, when the sensitivity of the user traffic is high, the electronic device does not switch the streams to the standby network channel with better network quality for transmission, or only switches part of the streams to the network channel for transmission, or switches the streams to the standby channel for transmission, monitors the consumption condition of the user traffic in real time, and when the user traffic is consumed to a certain threshold value, automatically switches the streams to the original main network channel for transmission (switching off the network acceleration function).
As shown in fig. 1A, an application of the electronic device 100 includes a flow a and a flow B, where the flow a and the flow B are initially transmitted on a Wi-Fi network channel, and the flow of the application is not transmitted on a cellular network channel, and when it is detected that the network quality of a data flow on the Wi-Fi network channel is degraded, and the application 1 is a network application in an application acceleration list (the network application in the application acceleration list is determined according to a user traffic portrait), the electronic device 100 switches the flow B to the cellular network channel for transmission, thereby reducing a traffic jam problem caused by the degradation of the network quality of the Wi-Fi network channel, and avoiding that the consumed data traffic caused by the switching of the network channel exceeds the total package amount of the user, so as to bring excessive traffic charges to the user, and improve the experience of the user.
In some embodiments, the electronic device may switch all streams to be transmitted on the alternate network channel, e.g., may switch stream a and stream B to be transmitted on the alternate network channel. The embodiment of the application also provides another method for switching network channels based on the user traffic portrait, as shown in fig. 1B, when the electronic device detects that the network quality of the data stream on the Wi-Fi network channel is poor, the electronic device switches the stream B to the cellular network channel for transmission, and periodically acquires the updated application acceleration list, and when the application 1 is not the network application in the updated application acceleration list, the electronic device switches the stream B back to the Wi-Fi network channel for transmission.
An application scenario of a network acceleration method based on user traffic portrayal provided in an embodiment of the present application is illustrated in fig. 2A to fig. 2L. Fig. 2A-2L are exemplary user interface diagrams of a set of electronic devices 100 provided in an embodiment of the present application.
Fig. 2A is a user interface 10, the user interface 10 is a main interface of the electronic device 100, the main interface includes a setting icon 101 and a video application icon 102, and when the electronic device 100 detects an input operation (for example, a click) for the setting icon 101, the electronic device 100 displays the user interface 11 shown in fig. 2B in response to the operation.
As shown in fig. 2B, the user interface 11 includes a WLAN setting icon 111, and when the electronic device 100 detects an input operation (e.g., a click) for the WLAN setting icon 111, the electronic device 100 displays the user interface 12 shown in fig. 2C in response to the operation.
As shown in fig. 2C, the user interface 12 includes a WLAN-on icon 121, and when the electronic device 100 detects an input operation (e.g., a click) for the WLAN-on icon 121, the electronic device automatically connects to an available Wi-Fi network in response to the operation. As shown in fig. 2C, after the WLAN is turned on, the electronic device 100 automatically connects to Wi-Fi, and as known from the WLAN assistant display area 122 shown in the user interface 12, the user name of the Wi-Fi connected to the electronic device 100 is "TP-Link503", and after the Wi-Fi connection is successful, the user interface 12 displays a Wi-Fi icon 123. After the electronic device 100 connects to the Wi-Fi network, if a click operation on the network acceleration icon 124 is detected, the electronic device 100 displays the user interface 13 shown in fig. 2D in response to the operation.
As shown in fig. 2D, the user interface 13 is a network acceleration setting interface, and the user interface 13 includes a network acceleration information display area 131, which can be used to display the number of network jams reduced by the network acceleration in this month, the data traffic consumed by the network jams reduced, the percentage of the download speed increased by the network acceleration, and the data traffic consumed by the download speed increased. For example, the network acceleration information display area 131 in the user interface 13 can be seen to consume 960.05MB of data traffic for 40 times of network chunking due to network acceleration in the month, and 100M of data traffic for 35% of network acceleration in the month. In addition, the user interface 13 further includes an application acceleration list 132, where the application acceleration list 132 is used to display the network applications that can be accelerated in the electronic device 100 and the data traffic that each of the network applications that can be accelerated consumes when the network accelerates. For example, in the user interface 13, the video application consumes the most data traffic due to network acceleration in the month, reaches 400MB, and then reaches 260MB, the data traffic due to network acceleration is 200MB, and the data traffic due to network acceleration is the least and only 100MB for the browser. When the electronic apparatus 100 detects a click operation on the acceleration on icon 133, the electronic apparatus 100 turns on the network acceleration function in response to the operation.
After the network acceleration function is turned on, if the electronic device 100 detects a click operation on the video application icon 102 in the user interface 10 shown in fig. 2E, the electronic device 100 enters the video application in response to the operation, and displays the user interface 14 shown in fig. 2F. The user interface 14 is an interface for playing video by the electronic device 100, and as can be seen from the data network icon 141 and the Wi-Fi network icon 142 in fig. 2F, the network channels connected to the current electronic device 100 are a Wi-Fi network channel and a data network channel, the network channel used for viewing video by the current electronic device 100 is a main network channel (for example, a Wi-Fi network channel), and the current network rate is 100KB/S according to the network rate display icon 143.
Referring to fig. 1A, if the network quality of a data stream transmitted by a main network channel is deteriorated, the electronic device 100 switches the data stream (e.g., video stream and audio stream) of the video to an alternate network channel.
As shown in fig. 2G, when the electronic device 100 detects that the network quality of the main network channel is poor and the user traffic sensitivity is low, the electronic device 100 switches the data stream of the video onto a standby network channel with better network quality (for example, a cellular network channel or a secondary Wi-Fi network channel), and displays a network acceleration prompt box 144 in the user interface 14, where the network acceleration prompt box 144 is used to prompt network acceleration of the started video application, and prompt the number of catton times and consumed data traffic reduced due to network acceleration in the present month. For example, according to the network acceleration prompt box 144 in fig. 2G, the current month has been reduced by 40 times due to the network acceleration, and the total data traffic 960.05MB is consumed. As can be seen from the network rate display icon 143, the current network rate is increased from 100KB/S to 10MB/S before switching network channels.
In some embodiments, the network acceleration prompt box 144 in fig. 2G includes a "stop current month acceleration control" 1441 and a "no longer prompt" control 1442, and when the electronic device 100 detects a click operation for the "stop current month acceleration control" 1441, the electronic device 100 turns off the network acceleration function in response to the operation, and the network acceleration function is no longer automatically turned on in the current month without the user manually turning on the network acceleration function.
When the electronic device 100 detects a click operation on the "no longer prompt" control 1442, in response to the operation, the electronic device 100 displays a close traffic alert box 145 in the user interface 14 as shown in fig. 2H, the alert box including a "ok" control 1451, and when the electronic device 100 detects a click operation on the "ok" control 1451, the electronic device 100 closes the traffic alert function and does not display a network acceleration prompt box when the electronic device 100 performs network acceleration next time.
In some embodiments, during the network acceleration of the electronic device 100, the user may acquire a status bar by sliding down the screen of the electronic device 100, and learn, in real time, the data traffic consumed by the network acceleration based on the status bar. As shown in fig. 2I, when the electronic device 100 detects a slide-down operation with respect to the screen first region 106, the electronic device 100 displays a status bar interface. The status bar display interface includes a network acceleration information display box 107 and a data flow display box 108, where the network acceleration information display box 107 is used for displaying information such as an application name of the current network acceleration, a data flow consumed by the current network acceleration, and a total flow consumed by the current month of network acceleration. For example, as can be seen from the network acceleration information display box 107 in fig. 2I, the application currently performing network acceleration is a video application, the data traffic consumed by the current acceleration is 36MB, and the data traffic consumed by the current month of network acceleration is 960.5MB. The data traffic display box 108 is used for displaying the data traffic consumed on the same day and the data traffic remaining in the month, for example, as can be seen from the data traffic display box 108 of fig. 2I, the data traffic consumed on the same day is 60MB, and the remaining traffic in the month is 2.5GB.
In some embodiments, during the network acceleration process, if the electronic device 100 detects that the remaining data traffic is small in the month, and the traffic package total is about to be exceeded, the electronic device 100 automatically turns off the network acceleration function. As can be seen from the status bar shown in fig. 2J, the data flow 600MB is currently used, and 1.5G remains, and if the alert value of the flow package is assumed to be 1.5GB, the electronic device 100 displays the user interface 15 shown in fig. 2K when detecting that the remaining flow is 1.5 GB. The user interface 15 is a video playing interface, and includes a network acceleration prompt box 151, where the network acceleration prompt box 151 is used to prompt that network acceleration has been turned off. For example, in fig. 2K, the network acceleration prompt box 151 displays a prompt that "the remaining traffic is small in the month and the network acceleration is turned off", and the video playing area 152 knows that the video application has been switched back to the main network channel from the standby network channel.
In one possible implementation, the network acceleration prompt box 151 in fig. 2K may further include a "resume current month acceleration" control 1511, and if the electronic device 100 detects a single click input operation for the "resume current month acceleration control" 1511, the electronic device 100 turns on the network acceleration function again in response to the input operation, and displays the user interface 16 as shown in fig. 2L.
As shown in fig. 2L, the user interface 16 is a video playback interface that includes a video display area 161 and a network acceleration prompt 162. The network acceleration prompt box 162 is used for prompting the restart of the network acceleration function, and as shown in fig. 2G, the network acceleration prompt box 161 displays a prompt message of "network acceleration has been started, the number of camping has been reduced by 41 times in this month, and 1.5GB mobile data has been used". As seen by video display area 161, the current video application is re-switched from the primary network channel back to the alternate network channel.
Fig. 2A to fig. 2L describe application scenarios in which, during online video viewing, the electronic device 100 performs network channel switching to achieve network acceleration due to degradation of network quality, so as to avoid video jamming during online video viewing. An example of another application scenario of a network acceleration method based on user traffic portrayal according to an embodiment of the present application is illustrated in fig. 3A to 3C. Fig. 3A-3C are exemplary user interface diagrams of another set of electronic devices 100 provided in an embodiment of the present application.
As shown in fig. 3A, the user interface 20 is a video download interface of the electronic device 100, where the video download interface includes a download information display box 201, and the download information display box 201 includes a name of a downloaded video, a size of the downloaded video, a current download progress, and a current download speed. For example, as can be seen from the download information display box 201 of fig. 3A, the currently downloaded video is named "cross", the size of the video is 206MB, the current download progress is 52MB/260MB, and the current download speed is 190KB/S. If the current electronic device 100 uses the main network channel to download video, it detects that the network quality of the main network channel is poor, and it recognizes that the user data flow is sufficient, the electronic device 100 performs network acceleration, and displays the user interface 21 as shown in fig. 3B.
As shown in fig. 3B, the user interface 21 is a video download interface of the electronic device 100, and the video download interface includes a download information display box 211 and a network acceleration prompt box 212. The network acceleration prompt box 212 is used to prompt that network acceleration has been started, and the network channel has been switched from the main network channel to the standby network channel. For example, the network acceleration prompt box in fig. 3B displays a prompt message of "the current month has been accelerated 10 times, and 1GB of movement data has been used". According to the download information display frame 211, the current download speed is 1.1MB/S, and the download speed of the standby network channel is greatly improved compared with the download speed of the main network channel in FIG. 3A.
In a possible implementation manner, the user may obtain, through the status bar, information such as data traffic consumed by performing network acceleration in real time, and the status bar interface of the electronic device 100 refers to the status bar interface in fig. 2I, which is not repeated herein.
In some embodiments, during the network acceleration of the electronic device 100, if the user residual traffic is detected to be lower than the alert value, the electronic device 100 turns off the network acceleration and displays the user interface 22 as shown in fig. 3C. As shown in fig. 3C, the user interface 22 is a video download interface that includes a network acceleration prompt box 221 and a download information display box 222. The network acceleration prompt box 221 is used to prompt that network acceleration is turned off, for example, in the network acceleration prompt box 221 shown in fig. 3C, a prompt message of "the remaining traffic is less in the present month and the network download acceleration is turned off" is displayed, and at this time, the electronic device 100 switches the network channel from the standby network channel back to the main network channel. As can be seen from the download information display box 222, after switching back to the main network channel, the video download rate is 160KB/S, and the download rate of the main network channel is greatly reduced compared with the download rate of the standby network channel in fig. 3B.
In one possible implementation, the network acceleration prompt 221 of fig. 3C may further include a "resume network acceleration" control 223, and when the electronic device 100 detects a click operation on the "resume network acceleration" control, the electronic device 100 may restart the network acceleration and switch the download channel from the primary network channel to the standby network channel in response to the operation.
Fig. 3A-3C described above illustrate application scenarios in which network acceleration of video downloads is based on user traffic. The relationship between user traffic and acceleration applications in the acceleration list is described below in connection with fig. 4A-5B. Fig. 4A-4B are different SIM cards of a set of electronic devices according to an embodiment of the present application, and their corresponding application acceleration lists are different exemplary user interfaces due to different traffic packages.
As shown in fig. 4A, the user interface 40 is a network acceleration interface corresponding to the first SIM card (card 1), and the network acceleration interface includes a first SIM card control 401, a second SIM card control 402, a network acceleration information display box 403, and an application acceleration list 404. The network acceleration information display box 403 is used for displaying data traffic, traffic packages, and data traffic consumed by the first SIM card (card 1 in fig. 4A, the operator is mobile in china) for the month. As shown in the network acceleration information display box 403, the traffic package of the first SIM card is 26GB, the data traffic used in this month is 12GB, and the data traffic consumed in this month due to network acceleration is 6GB. The application acceleration list 404 is used to display the network application that can currently use the data traffic of the first SIM card for network acceleration, and the network application consumes the data traffic of the first SIM card for network acceleration in this month. As can be seen from the application acceleration list 404, the network applications currently available for network acceleration by using the data traffic of the first SIM card include "video application", "jittering", "WeChat" and "browser", where the data traffic consumed by the first SIM card by the four network applications for network acceleration in this month is 400MB, 260MB, 200MB and 100MB, respectively. The user may view the network acceleration list currently corresponding to the second SIM card by clicking on the second SIM card control 402. When the electronic device 100 detects a click operation for the second SIM card control 402, in response to the operation, the electronic device 100 displays the user interface 41 as shown in fig. 4B.
As shown in fig. 4B, the user interface 41 is a network acceleration interface corresponding to the second SIM card (card 2), and the network acceleration interface includes a first SIM card control 411, a second SIM card control 412, a network acceleration information display box 413, and an application acceleration list 414. The network acceleration information display box 413 is used for displaying data traffic, traffic packages, and data traffic consumed by the second SIM card (card 2 in fig. 4B, carrier is china telecom) for the month. As can be seen from the network acceleration information display box 413, the traffic package of the second SIM card is 18GB, the data traffic already used in this month is 12GB, and the data traffic consumed by the network acceleration in this month is 8GB. The application acceleration list 414 is used to display the network application that can currently use the data traffic of the second SIM card for network acceleration, and the network application consumes the data traffic of the second SIM card for network acceleration in this month. As can be seen from the application acceleration list 414, the network applications currently available for network acceleration by using the data traffic of the second SIM card include "browser" and "music", where the data traffic consumed by the second SIM card in the month of the present application is 120MB and 80MB, respectively.
In some embodiments, the number of applications within the application acceleration list and the applications may dynamically change as the user remains traffic. As shown in fig. 5A, when 16GB of user residual traffic remains, the application acceleration list includes 4 acceleration applications, which are video applications, tremble tones, weChat and browser, respectively, and the data traffic consumed by the main SIM card by the four applications in this month due to network acceleration is 400MB, 260MB, 200MB and 100MB, respectively.
When the user residual traffic remains 5GB, as shown in fig. 5B, the application acceleration list includes only 2 acceleration applications, which are respectively a browser and music, and the data traffic consumed by the main SIM card by the two applications in this month due to network acceleration is 120MB and 80MB respectively.
In some embodiments, the network acceleration interface displayed by the electronic device 100 is a network acceleration interface corresponding to a SIM card currently used by the electronic device, and when the user switches the mobile data service of the SIM card (for example, switches the mobile data service of the electronic device from the SIM card 1 to the SIM card 2), the network acceleration interface displayed by the electronic device 100 is a network acceleration interface corresponding to the switched SIM card. The above-described process is exemplarily described below with reference to fig. 6A to 6E.
If the current electronic device 100 uses the first SIM card (card 1) to perform mobile data service, as shown in fig. 6A, the user interface 60 is a network acceleration interface corresponding to the card 1. The network acceleration interface includes a network acceleration information display box 601 and an application acceleration list 602, where the network acceleration information display box 601 is used for displaying data traffic used by the card 1 in the month, traffic packages, and data traffic consumed by the card in the month for network acceleration. As can be seen from the network acceleration information display box 601, the traffic package of the card 1 is 20GB, the data traffic is 13GB for the present month, and the data traffic consumed by the network acceleration in the present month is 8GB. The application acceleration list 602 is used to display a network application that can currently perform network acceleration using the data traffic of the card 1, and the network application consumes the data traffic of the card 1 for network acceleration in the present month. As can be seen from the application acceleration list 602, the network applications currently available for network acceleration of the data traffic of the card 1 include "browser" and "music", and the data traffic consumed by the card 1 in the present month due to the network acceleration is 120MB and 80MB, respectively. When the electronic apparatus 100 detects an input operation (e.g., a slide down) for the screen area 603, the electronic apparatus 100 displays the user interface 61 as shown in fig. 6B in response to the input operation.
As shown in fig. 6B, the user interface 61 is a status bar interface including a mobile data control 611, a mobile data settings control 612, and a wi-Fi network control 613. Wherein the mobile data control 611 is used to turn on/off the mobile data service in response to an input operation (e.g., a click) of the user, and the Wi-Fi network control 613 is used to turn on/off the Wi-Fi network service in response to an input operation (e.g., a click) of the user. When the electronic device 100 detects a click operation of the setting control 612 for movement data, in response to the operation, the electronic device 100 displays the user interface 62 as shown in fig. 6C.
As shown in fig. 6C, the user interface 62 is a status bar interface, and includes a mobile data service switching setting box 621, in which the mobile data service setting box 621 includes a card 1 mobile data switching control 6211 and a card 2 (second SIM card) mobile data switching control 6222, and in the case that an identification pattern exists in the mobile data switching control (in fig. 6C, the identification pattern is represented as a black solid circle in the mobile data switching control), the SIM card corresponding to the current mobile service of the electronic device 100 is the SIM card corresponding to the mobile data switching control. As can be seen from the mobile data service setting box 621, the SIM card corresponding to the mobile data service of the current electronic device is card 1. When the electronic device 100 detects a click operation of the mobile data switching control 6222 for the card 2, in response to the operation, the electronic device 100 displays the user interface 63 as shown in fig. 6D.
As shown in fig. 6D, the user interface 63 is a status bar interface, including a mobile data service switching setting box 631 and a return control 632, in the mobile data service setting box 631, including a card 1 mobile data switching control 6311 and a card 2 mobile data switching control 6322, and in the case that an identification pattern exists in the mobile data switching control (in fig. 6D, the identification pattern is represented as a black solid circle in the mobile data switching control), the SIM card corresponding to the current mobile service of the electronic device 100 is the SIM card corresponding to the mobile data switching control. As can be seen from the mobile data service setting box 631, the SIM card corresponding to the mobile data service of the current electronic device is card 2. When the electronic device 100 detects a click operation for the return control 632, the electronic device 100 displays the user interface 64 as shown in fig. 6E in response to the operation.
As shown in fig. 6E, the user interface 64 is a network acceleration interface corresponding to card 2 (second SIM card). The network acceleration interface includes a network acceleration information display box 641 and an application acceleration list 642, and the network acceleration information display box 641 is used for displaying data traffic used by the card 2 in the month, traffic packages, and data traffic consumed by the card in the month for network acceleration. As can be seen from the network acceleration information display box 641, the traffic package of the card 2 is 16GB, the data traffic used in the month is 4GB, and the data traffic consumed in the month due to network acceleration is 2GB. The application acceleration list 642 is used to display the network application that can currently use the data traffic of the card 2 for network acceleration, and the network application consumes the data traffic of the card 2 for network acceleration in the present month. As can be seen from the application acceleration list 642, the network applications currently available for network acceleration of the data traffic of the card 2 include "video application", "jittering", "WeChat", and "browser", and the data traffic consumed by the card 2 by the four network applications for network acceleration in the present month is 400MB, 260MB, 200MB, and 100MB, respectively.
The network channel switching method based on the user traffic can be applied to electronic equipment. The electronic device may be a mobile terminal, a terminal device, a User Equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a User terminal, a wireless communication device, a User agent, or a User Equipment. The electronic device may be a Station (ST) in a WLAN, which may be a cellular telephone, a cordless telephone, a session initiation protocol (Session Initiation Protocol, SIP) phone, a wireless local loop (Wireless Local Loop, WLL) station, a personal digital assistant (Personal Digital Assistant, PDA) device, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a car networking terminal, a computer, a laptop computer, a handheld communication device, a handheld computing device, a satellite radio, a wireless modem card, a television Set Top Box (STB), a customer premises equipment (Customer Premise Equipment, CPE) and/or other devices for communicating over a wireless system as well as next generation communication systems, such as a mobile terminal in a 5G network or a mobile terminal in a future evolving public land mobile network (Public Land Mobile Network, PLMN) network, etc. The electronic device 100 may also be a wearable device. The wearable device can also be called as a wearable intelligent device, and is a generic name for intelligently designing daily wear by applying wearable technology and developing wearable devices, such as glasses, gloves, watches, clothes, shoes and the like. The wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user. The wearable device is not only a hardware device, but also can realize a powerful function through software support, data interaction and cloud interaction. The generalized wearable intelligent device comprises full functions, large size, and complete or partial functions which can be realized independent of a smart phone, such as a smart watch or a smart glasses, and is only focused on certain application functions, and needs to be matched with other devices such as the smart phone for use, such as various smart bracelets, smart jewelry and the like for physical sign monitoring.
The structure of the electronic device 100 is described below. Referring to fig. 7, fig. 7 is a schematic hardware structure of an electronic device 100 according to an embodiment of the present application.
The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wi-Fi network), blueTooth (BT), BLE broadcast, global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., applied on the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording, etc.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The touch sensor 180K, also referred to as a "touch panel". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments, bone conduction sensor 180M may acquire a vibration signal of a human vocal tract vibrating bone pieces.
Next, an exemplary method for accelerating a network based on user traffic in the embodiment of the present application is described with reference to the electronic device shown in fig. 8. Referring to fig. 8, fig. 8 is a flow chart of a network acceleration method based on user traffic, which is provided in the embodiment of the present application, and the specific flow is as follows:
step S801: the first application is launched in response to a first operation by the user.
Specifically, a user opens a first application in an electronic device, and the first application is started. Illustratively, as shown in fig. 2E, when the electronic device 100 detects an input operation (e.g., a click) for a video application icon, the video application is launched. It will be appreciated that the above embodiments are merely illustrative of a scenario in which the first application (video application) is launched by clicking, and do not constitute a limitation of the embodiments of the present application, and in some embodiments, the first application may be launched by other operation manners (e.g., double clicking, sliding, etc.).
The first application is a network application, i.e. an application needing to be networked, for example, the first application may be an online video application, an online music application, an online short video application, an online game application, a social software application, and the like.
Step S802: after the context awareness component detects that the first application is switched to the foreground, a first notification message is sent to the policy management component.
Specifically, the environment detection component in the service layer of the electronic device may detect a state of the first application, and when the environment sensing component detects that any application is switched to the foreground, send a first notification message to the policy management component. Wherein the first notification message is used to notify the policy management component that the first application has been switched to the foreground. Wherein the first notification message includes an identity of the first application, the identity being used to identify a unique identity of the first application.
Step S803: and after receiving the first notification message sent by the environment sensing component, the policy management component queries an application acceleration list and judges whether the first application meets the network acceleration condition.
Specifically, after the policy management component receives the first notification message, it may learn that the first application is switched to the foreground, and then the application level policy management component determines, by querying the application acceleration list, whether the first application satisfies a condition of starting network acceleration. If the first application is a web application in the application acceleration list, the first application is an acceleration-capable web application. If the first application is not the network application in the application acceleration list, the first application is not the network application capable of being accelerated, the condition of starting network acceleration is not met, the strategy management component returns an ending instruction to the environment sensing component, and when the network quality of the first application is poor in the running process, the network acceleration is not carried out on the first application.
The application acceleration list is determined based on the user traffic sensitivity, the user preference network application, and the application traffic sensitivity. The user traffic sensitivity is determined based on data such as the total amount of the user package, the residual traffic, the recently used traffic, the speed limit and the like, the user preference network application is determined based on data such as the application use frequency, the application use duration and the like, and the application traffic sensitivity is determined by data such as the traffic consumption of the application and the like. The electronic equipment can obtain the network acceleration based on three factors, namely user flow sensitivity, user preference network application and application flow sensitivity, by analyzing the user short message, reading mobile phone manager configuration, inquiring the flow interface, inquiring the application use condition and the like, and can intelligently select whether to use the data flow to perform optimization acceleration when the network quality is poor (the network quality does not meet the preset condition). The sensitivity of user traffic, user preference for network applications, and application traffic is described below:
the user flow sensitivity is used for representing the sufficiency degree of the available data flow, the user flow sensitivity is high (the user flow sensitivity is the third user flow sensitivity), the current available data flow is insufficient, the user flow sensitivity is general (the user flow sensitivity is the second user flow sensitivity), the current available data flow is more sufficient, the user flow sensitivity is low (the user flow sensitivity is the first user flow sensitivity), and the current available data flow is sufficient. The user traffic sensitivity is mainly related to the user traffic packages and the remaining available data traffic. The first flow threshold X, the second flow threshold Y may be set, and X > Y. Setting a first percentage x 1 A second percentage x 2 Third percentage x 3 Fourth percentage x 4 And 0 < x 1 <x 2 <1,0<x 3 <x 4 < 1. Assume that the total data traffic of the user traffic package is T 1 The residual data flow of the user is T 2 The judgment method of the user flow sensitivity comprises the following steps:
first case: when T is 1 When not less than X:
(1)x 2 *T 1 <T 2 ≤T 1 the user traffic sensitivity is low, i.e. the user traffic sensitivity is the first user traffic sensitivity;
(2)x 1 *T 1 <T 2 ≤x 2 *T 1 the user traffic sensitivity is general, i.e. the user traffic sensitivity is the second user traffic sensitivity;
(3)0<T 2 ≤x 1 *T 1 the user traffic sensitivity is high, i.e. the user traffic sensitivity is the third user traffic sensitivity.
Second case: when Y is less than or equal to T 1 When < X:
(1)x 4 *T 1 <T 2 ≤T 1 the user traffic sensitivity is low, i.e. the user traffic sensitivity is the first user traffic sensitivity;
(2)x 3 *T 1 <T 2 ≤x 4 *T 1 the user traffic sensitivity is general, i.e. the user traffic sensitivity is the second user traffic sensitivity;
(3)0<T 2 ≤x 3 *T 1 the user traffic sensitivity is high, i.e. the user traffic sensitivity is the third user traffic sensitivity.
Third case: when T is 1 And when the user flow sensitivity is less than Y, the user flow sensitivity is high, namely the user flow sensitivity is the third user flow sensitivity.
In the following, the above-mentioned determination of the user flow sensitivity is exemplarily described, assuming that the first flow threshold is 20GB, the second flow threshold is 3GB, the first percentage is 10%, the second percentage is 30%, the third percentage is 10%, and the fourth percentage is 50%.
If the total data traffic of the user is 25GB, the first situation is that when the residual traffic of the user is between 7.5GB (25×30%) and 25GB, the sensitivity of the user is low, when the residual traffic of the user is between 2GB (25×10%) and 7.5GB (25×30%) the sensitivity of the user is general, and when the residual traffic of the user is between 0GB and 2GB, the sensitivity of the user is high.
If the total data traffic of the user is 15GB, the second situation is that when the residual traffic of the user is between 7.5GB (15 x 50%) and 15GB, the sensitivity of the user traffic is low, when the residual traffic of the user is between 1.5GB (15 x 10%) and 7.5GB, the sensitivity of the user traffic is general, and when the residual traffic of the user is between 0GB and i.5GB, the sensitivity of the user traffic is high.
If the total data traffic of the user is 2GB, the method belongs to the third condition, and the user traffic sensitivity is high.
The application flow sensitivity is used for representing the consumption degree of the network application data flow, and the lower the application flow sensitivity is, the more the application consumes the data flow, and the higher the application flow sensitivity is, the less the application consumes the data flow. The application flow sensitivity is related to the data flow which is used by the application in average in a period of time and the service class of the application, and the judging method of the application flow sensitivity degree comprises the following steps: network application in electronic equipment according to service The categories are classified into an application with high traffic consumption (a network application of a first application type), an application with general traffic consumption (a network application of a second application type), and an application with low traffic consumption (a network application of a third application type). For example, in general, the video applications have high traffic consumption, the social applications have general traffic consumption, and the music applications have low traffic consumption, and the video applications such as "tremble" and "loving" in the electronic device may be marked as applications having high traffic consumption, the social applications such as "microblog", "WeChat" and "QQ" in the electronic device may be marked as applications having general traffic consumption, and the music applications such as "QQ music" and "Internet cloud music" in the electronic device may be marked as applications having low traffic consumption. For network applications with different flow consumption degrees, the judgment of application flow sensitivity is also different, a first threshold A, a second threshold B, a third threshold C, a fourth threshold D, a fifth threshold E and a sixth threshold F can be set, and A is more than B, C and more than D, E, and A is more than D, E and more than F, A and more than or equal to C and more than or equal to E. If the average flow used by the network application over a period of time is T 3 (e.g., T 3 Traffic is consumed for the last three months of a certain network application), the judgment of the application traffic sensitivity can be divided into the following three cases:
First case: if the network application is a network application with high traffic consumption, namely the application type of the network application is a first application type:
(1)T 3 the application flow sensitivity of the network application is low, namely the application flow sensitivity of the network application is the first application flow sensitivity;
(2)B≤T 3 the application flow sensitivity of the network application is general, namely the application flow sensitivity of the network application is second application flow sensitivity;
(3)T 3 and (3) if the application traffic sensitivity of the network application is less than B, the application traffic sensitivity of the network application is high, namely the application traffic sensitivity of the network application is third application traffic sensitivity.
Second case: if the network application is a general application of traffic consumption, that is, the application type of the network application is a second application type:
(1)T 3 the application flow sensitivity of the network application is low, namely the application flow sensitivity of the network application is the first application flow sensitivity;
(2)D≤T 3 the application flow sensitivity of the network application is general, namely the application flow sensitivity of the network application is second application flow sensitivity;
(3)T 3 and (3) if the application traffic sensitivity of the network application is less than D, the application traffic sensitivity of the network application is high, namely the application traffic sensitivity of the network application is third application traffic sensitivity.
Third case: if the network application is an application with low traffic consumption, namely, the application type of the network application is a third application type:
(1)T 3 if the application traffic sensitivity of the network application is not less than E, the application traffic sensitivity of the network application is not more than E, i.e. the application traffic sensitivity of the network application is not more than E;
(2)F≤T 3 if E is less than E, the application flow sensitivity of the network application is general, namely the application flow sensitivity of the network application is second application flow sensitivity;
(3)T 3 and if the application traffic sensitivity of the network application is less than F, the application traffic sensitivity of the network application is high, namely the application traffic sensitivity of the network application is third application traffic sensitivity.
Hereinafter, the above determination of the application traffic sensitivity will be exemplarily described, assuming that a is 1GB, B is 500MB, C is 500MB, D is 300MB, E is 300MB, F is 100MB, and the data traffic consumed by a network application in the last three months is T 3
If the network application is a video application, the network application is an application with high traffic consumption, and the judgment of the application traffic sensitivity of the network application belongs to the first case, if T 3 If the application flow sensitivity of the network application is greater than or equal to 1GB, if T 3 Less than 1GB and greater than or equal to 500MB, the application traffic sensitivity of the network application is typically the same, if T 3 Less than 500MB, the application traffic sensitivity of the network application is high.
If the network application is a social networking serviceTraffic application, the network application is a general application of traffic consumption, the judgment of application traffic sensitivity of the network application belongs to the second case, if T 3 Greater than or equal to 500MB, the network application has low application traffic sensitivity, if T 3 Less than 500MB and greater than or equal to 300MB, the application traffic sensitivity of the network application is typically the same, if T 3 Less than 300MB, the application traffic sensitivity of the network application is high.
If the network application is a music application, the network application is an application with low traffic consumption, and the judgment of the application traffic sensitivity of the network application belongs to the third case, if T 3 Greater than or equal to 300MB, the network application has low application traffic sensitivity, if T 3 Less than 300MB and greater than or equal to 100MB, the application traffic sensitivity of the network application is typically the same, if T 3 Less than 100MB, the application traffic sensitivity of the network application is high.
The user preference network applications are network applications that are used by the user more frequently, primarily determined based on the application preference scores. The application preference score may be calculated according to formulas (1) to (3), formulas (1) to (3) being as follows:
Figure BDA0003366673730000191
f 2 =C*N 2 (2);f=f 1 +f 2 (3)/>
Wherein t is 1 For the service time of network application, N 1 C is the number of times of using the network in a month and N is a first constant 2 Is a second constant, f 1 For application use of the time length fraction, f 2 For the application usage number score, f is the application preference score.
And comparing the application preference score f of the network application with a preset threshold value, and if f is larger than the threshold value, indicating that the network application is the user preference application, otherwise, not the user preference application.
It should be understood that the above calculation of the application preference score is merely an exemplary illustration, and the application preference score may be calculated in other manners, which are not limited by the embodiments of the present application.
The above-described embodiments introduce user traffic sensitivity, user preference application, and application traffic sensitivity, and the following describes the generation of an application acceleration list by the policy management component based on the user traffic sensitivity, user preference application, and application traffic sensitivity. As shown in fig. 9, the configuration of the web application in the application acceleration list is mainly divided into the following three cases: first case: if the current user flow sensitivity is low, the available data flow of the user is sufficient, and network acceleration can be performed on most network applications. For example, as shown in fig. 9, in the case where the user traffic sensitivity is low, the applications in the network acceleration list include an application whose application traffic sensitivity is low, an application whose application traffic sensitivity is general, an application whose traffic consumption is low, an application whose traffic consumption is general, and a user preference network application.
Second case: if the current user flow sensitivity is general, the user available data flow is sufficient, the network application needs to be screened, and the screened network application can be accelerated. For example, as shown in fig. 9, in the case where the user traffic sensitivity is general, the applications in the network acceleration list include a user preference network application of a first application type and a user preference network application of a second application type, the application traffic sensitivity being a network application of the first application traffic sensitivity and a network application of the second application traffic sensitivity.
Third case: if the current user traffic sensitivity is high, the available data traffic of the user is insufficient, and in order to prevent the user traffic packages from being exceeded, the application in the network acceleration list is included in the user preference network application of the third application type, and the application traffic sensitivity is the network application of the first application traffic sensitivity. For example, as shown in fig. 9, in the case where the user traffic sensitivity is general, the applications in the network acceleration list include a network application whose application traffic sensitivity is low among user preference network applications whose traffic consumption is low.
Step S804: and under the condition that the first application meets the condition of starting network acceleration, the policy management component sends an acceleration start message to the flow-level path management component.
Specifically, if the policy management component determines that the first application meets the condition of starting network acceleration, an acceleration service for the first application can be started, and an acceleration start message is sent to the flow-level path management component, where the acceleration start message is used to instruct the flow-level path management component to start the acceleration service for the first application.
The acceleration traffic may include, but is not limited to: when the environment of the electronic equipment or the system environment of the electronic equipment is changed, a standby network channel is started, so that the standby network channel is converted from a dormant state to an awakening state; and/or monitoring the network quality of a plurality of streams in the first application, and when the electronic equipment monitors that the quality of a certain stream of the first application is poor, switching a plurality of streams of the first application including the stream with poor quality to a standby network channel, so that the plurality of streams of the network application are always borne on the network channel with relatively good quality, the transmission quality of the streams is ensured, the possibility of service blocking of the first application is reduced, and the user experience is improved. It should be noted that if the electronic device has already enabled the standby network channel when deciding to switch the plurality of streams to the standby network channel, the electronic device switches the plurality of streams to the standby network channel that has already been enabled, and if the electronic device has not enabled the standby network channel when deciding to switch the plurality of streams to the standby network channel, the electronic device needs to enable one standby network channel first and then switch to the standby network channel that has been enabled.
Optionally, the acceleration start message may include information corresponding to an identity of the first application in the application acceleration list, which may include: the method comprises the steps of identifying a first application, a target flow type, a flow model corresponding to the target flow type, network quality evaluation parameter information and flow switching strategy information. Reference may be made specifically to the foregoing related description, which is not repeated here.
Step S805: the flow level path management component sends a second notification message to the traffic reporting component.
Specifically, after receiving the acceleration start message sent by the policy management component, the flow level path management component sends a second notification message to the traffic reporting component, where the second notification message is used to notify the traffic reporting component that the first application has been switched to the foreground, and instruct the traffic reporting component to monitor a data flow between the first application and the server.
Step S806: and after receiving the second notification message sent by the flow-level path management component, the flow reporting component registers the message monitoring hook.
Specifically, after receiving the second notification message sent by the flow level path management component, the flow reporting component registers a message monitoring hook, where the message monitoring hook is used to monitor a data flow between the first application and the server in the network channel.
Step S807: the flow level path management component requests the primary network channel from the channel level path management component.
Specifically, the flow level path management component requests the primary network channel from the channel level path management component upon receiving the channel enable message. The embodiment of the application is illustrated by the mobile data service being started by two SIM cards of the electronic device and two available Wi-Fi networks (a main Wi-Fi network and a secondary Wi-Fi network) being present. The Wi-Fi of 2 unused frequency bands (2.4G/5G) is referred to as a main Wi-Fi and a sub Wi-Fi, and the main Wi-Fi and the sub Wi-Fi are both networkable networks. The network channels corresponding to the main Wi-Fi, the main SIM card, the auxiliary Wi-Fi and the main SIM card are respectively a main Wi-Fi network channel, a main cellular network channel, an auxiliary Wi-Fi network channel and an auxiliary cellular network channel.
After the first application is started, the flow-level path management component may request the channel-level path management component for the main network channel according to the main Wi-Fi network channel, the main cellular network channel, the auxiliary Wi-Fi network channel and the auxiliary cellular network channel, and the channel-level path management component determines whether the network channel currently requested by the flow-level path management component is available, that is: whether the network channel currently requested by the stream level path management component can transmit a data stream between the first application and the server. And if the network channel currently requested by the flow-level path management component is available, taking the network channel requested by the flow-level path management component as a main network channel, and not requesting other network channels, otherwise, requesting the network channel from the channel-level path management component by the flow-level path management component according to the main Wi-Fi network channel, the main cellular network channel, the auxiliary Wi-Fi network channel and the auxiliary cellular network channel until an available network channel is found to be used as the main network channel. If an available network channel is not found, the network acceleration of the first application fails, and the network acceleration of the first application is not performed.
It should be appreciated that the flow-level path management component may request the channel-level path management component for a primary network channel in sequence according to an order of the primary Wi-Fi network channel, the primary cellular network channel, the secondary Wi-Fi network channel, and the secondary cellular network channel, and may request the primary network channel in addition to the primary network channel in other sequences, for example, the flow-level path management component may request the channel-level path management component for the primary network channel in sequence according to an order of the primary Wi-Fi network channel, the secondary Wi-Fi network channel, the primary cellular network channel, and the secondary cellular network channel, which is not limited in the embodiments of the present application.
In addition, the order in which the flow-level path management component requests the primary network channels is also related to the number of network channels to which the electronic device is connected, for example, in the case that the electronic device is connected to only the primary Wi-Fi network, and the primary SIM card mobile data service and the secondary SIM card mobile data service are turned on, the electronic device is connected to only the primary Wi-Fi network channels, the primary cellular network channels, and the secondary cellular network channels, and the order in which the flow-level path management component requests the primary network channels from the channel-level path management component may be the order of the primary Wi-Fi network channels, the primary cellular network channels, and the secondary cellular network channels, or may be the order based on other combinations of the three network channels. The number of network channels connected with the electronic device and the order in which the channel-level path management component requests the main network channels from the channel-level path management component based on the network channels connected with the electronic device are not limited.
It should be understood that step S807 may be performed simultaneously with step S805, may be performed before step S805, or may be performed after step S805, which is not limited in this embodiment of the present application.
Step S808: the path-level path management component determines whether the primary network path currently requested by the path-level path management component is available.
Specifically, when the channel-level path management component receives the main network channel request sent by the stream-level path management component, the channel-level path management component determines whether the main network channel currently requested by the stream-level path management component is available. If not, the channel-level path management component returns a message to the stream-level path management component, the message being used to notify the stream-level path management component that the requested primary network channel is not available, so that the stream-level path management component applies for other network channels as primary network channels.
It should be appreciated that after the first application is launched, the channel-level path management component may periodically record the availability of all network channels to which the electronic device is connected after the channel-level path management component sends a primary network channel request to the channel-level path management component.
Step S809: in the case where the primary network channel currently requested by the flow level path management component is an available network channel, the channel level path management component requests enablement of the primary network channel from the network connection component.
For example, if the flow level path management module requests the channel level path management module to use the main Wi-Fi network channel as the main network channel, and the channel level path management module determines that the main Wi-Fi network channel is available, the channel level path management module may request the network connection component to enable the main Wi-Fi network channel, and a data flow between the first application and the server may be transmitted on the main Wi-Fi network channel.
Step S810: the network connection management component enables the primary network channel and feeds back a notification message to the channel-level path management component that the primary network channel is enabled.
Step S811: the channel-level path management component requests the channel quality detection component to detect the channel quality of the primary network channel.
Specifically, after receiving the notification message that the primary network channel is enabled, the channel-level path management module requests the channel quality detection module to perform quality detection on the currently enabled primary network channel.
By way of example, the quality of the network channel may be detected based on at least one of the following parameters of the network channel: time delay, packet loss rate, bandwidth, rate, etc. of the channel. For example, the quality detection may be to detect a Round Trip Time (RTT) of an available network channel, and the network channel with the smallest Round Trip Time is the best.
Optionally, when there is a history of available network channels, that is, the available network channels are once selected as network channels, at this time, the channel quality may be evaluated in combination with the RTT and the history, where the history may include a history of receiving rate, a history of times when the channel quality is poor, and the method for evaluating the channel quality in the embodiment of the present application is not limited in particular.
Step S812: the channel quality detection component sends the channel quality detection result to the channel-level path management component.
It should be understood that, after the channel quality detection component sends the network quality detection result to the channel level management component, the channel level management component analyzes the network quality detection result, and if the network quality of the currently enabled main network channel does not meet the requirement, the channel level path management component performs step S809, namely: the channel-level path management module requests starting of available network channels from the network connection channels based on the order in which the stream-level path management module requests the main network channels (excluding the currently enabled network channels) until a network channel with network quality meeting the requirement is found as the main network channel. If a main network channel with the network quality meeting the requirement is not found, the acceleration of the first application fails and the first application is not accelerated.
For example, the currently enabled primary network channel is a primary Wi-Fi network channel, the available network channels include a primary Wi-Fi network channel, a primary cellular network channel, a secondary Wi-Fi network channel, a secondary cellular network channel, and the order in which the flow level path management component requests the available primary network channels is a primary Wi-Fi network channel, a primary cellular network channel, a secondary Wi-Fi network channel, a secondary cellular network channel. If the network quality of the current enabled main network channel (main Wi-Fi network channel) does not meet the requirement, the channel-level path management component applies for enabling the main cellular network channel to serve as the main network channel to the network connection component, and detects the network quality of the main cellular network channel through the channel quality detection module, if the network quality of the main cellular network channel meets the requirement, the channel-level path management component does not request the network connection component for an available main network channel any more, otherwise, the channel-level path management component sequentially requests the network connection component for the auxiliary Wi-Fi network channel and the auxiliary cellular network channel to serve as the main network channel, enables the auxiliary Wi-Fi network channel and the auxiliary cellular network channel, and then detects the network quality of the auxiliary Wi-Fi network channel until an available network channel with the network quality meeting the requirement is found to serve as the main network channel, and enables the auxiliary network channel, so that the data stream of the first application and the application program can be transmitted on the main network channel.
Step S813: the policy management component sends a traffic probe request to the traffic awareness component.
In particular, the flow probe request may be used to instruct the flow aware component to initiate message statistics and monitoring of network applications on the primary network channel. The traffic detection request may include an identity (e.g., UID) of a first application to be detected currently, and is configured to request detection and monitoring of a data flow between a network application and a server on the primary network channel, where the network application and the server correspond to the identity. It will be appreciated that the data stream may be in the form of messages.
It should be understood that step S813 and step S804 may be performed simultaneously, and step S813 may also be performed after step S804, which is not limited in this embodiment of the present application.
Step S814: the flow sensing component sends a flow reporting request to the flow reporting component.
Specifically, after the flow sensing component receives the flow detection request sent by the application level policy management component, the flow sensing component may send a flow reporting request to the flow reporting component, where the flow reporting request may be used to instruct the flow reporting component to detect a data flow transmitted between the first application and the server on the current main network channel, and report the detected data flow. It will be appreciated that the traffic probe request may contain an identity (e.g., UID) of the first application.
Step S815: the flow reporting component detects the flow and reports the detected target flow to the flow sensing component.
Specifically, after the flow report component receives the flow report request, the flow report component may detect the target flow on the primary network channel according to the flow report request, and report the detected target flow to the flow sensing component. The target stream may be a data stream transmitted between the first application and the server. The results may include: the message of the target flow, or the message of the target flow and the message statistical information of the target flow, etc.
In a specific implementation, the traffic reporting component may obtain, by using a calling component (e.g., netfilter component of the android system), a target packet of the first application on the current main network channel. It should be understood that the Netfilter assembly described above is merely illustrative and not limiting of embodiments of the present application, and that in some embodiments, the detection of such insulation may be accomplished by other assemblies.
Because the message monitoring hook is registered in advance by the flow reporting component, when the flow reporting component detects the flow, the message of the target flow can be acquired through the message monitoring hook. As shown in fig. 10, the overall implementation block diagram is that Netfilter hooks an nf_hook function of a flow reporting component, a message carried on a current main network channel enters the flow reporting component, the flow reporting component stores a message of a target flow into an SKB queue through processes such as message analysis, flow table creation, message content analysis and the like, and for the message in the SKB queue, according to a reporting policy of the target flow to which the message belongs, data (the message, or the message and statistical information) needing to be reported at regular time is triggered by a timer to be reported to a flow sensing component, and the message needing to be reported immediately is reported to the flow sensing component by a thread of NetLink.
It should be noted that the target stream may be one or more; when the flow reporting component detects the message of the target flow, all or part of the message of the target flow can be reported to the flow sensing component, and the embodiment of the application is not limited.
Referring to fig. 10, a specific implementation flow of the message reporting component may include:
step S1, initializing;
when the first application is started and loaded, the flow reporting component receives the second notification message in step S805, and registers the message monitoring hook function.
S2, message processing;
the method specifically comprises three steps of message analysis, flow checking and message analysis. The flow table records identification information of flows in each network application and statistical information of each flow, and the statistical information of each flow may include: the number of messages of the received stream, the total number of bytes of the messages of the received stream, the number of erroneous packets, etc. The identification information of the stream can be obtained by calculation according to the quintuple or the tetratuple of the message in the stream, and the calculation can specifically use a hash algorithm, so that the identification information of the stream can be a hash value obtained by calculation of the quintuple or the tetratuple of the message.
When the message is analyzed, the flow reporting component acquires the message and can analyze whether the UID of the first application exists in the message; if so, the message is a message of the first application, a quadruple (or five-tuple) of the message is analyzed, and a subsequent flow table checking step is executed; if not, the message is not the message of the first application, and the process is ended. The quadruple may include: source IP, destination IP, source port, destination port; the five-tuple may include: source IP, destination IP, source port, destination port, and protocol number.
When looking up the flow table, the identification information of the flow can be calculated according to the quadruple (or five-tuple) of the message, whether the identification information is recorded in the flow table or not is searched by using the identification information obtained by calculation, and if so, the statistical information corresponding to the identification information in the flow table is updated; if not, creating a flow node in the flow table according to the identification information of the flow, and updating the statistical information of the flow in the flow node.
When the message analysis is carried out, the flow reporting component can filter the received message through preset conditions, so that all or part of the message of the target flow is obtained. For example, the preset condition may be: the source IP address of the message is the IP address of the network connected with the main network channel, the destination IP address of the message is the server of the first application, the protocol of the message is UDP protocol, source port, destination port, etc., or the destination IP address of the message is the IP address of the network connected with the main network channel, the source IP address of the message is the server of the first application, the protocol of the message is UDP protocol, source port, destination port, etc. The preset conditions may be configured to the flow reporting component through a configuration file, where the configuration file may be carried in the flow reporting request sent by the flow sensing component in step S814, and record the feature information that the packet needs to be matched with.
And S3, reporting the matched target flow and the statistical information of the target flow to a flow sensing module according to the flow reporting strategy.
Specifically, the filtered message of the target flow may be stored in the SKB queue, and periodically reported or immediately reported according to the reporting policy of the target flow. If the message is periodically reported, the message meeting the preset condition can be reported to the flow sensing component at the end of each period, and optionally, the message statistical information (for example, the number of messages, the total byte number of the messages, etc.) of the target flow in the period can also be reported to the flow sensing component. If the message is reported in real time, the message meeting the preset condition can be directly reported to the flow sensing component. Through the processing, the message of the target flow can be accurately matched and filtered in the flow reporting component, and the reported message is used for network quality evaluation in the flow sensing component.
Step S816: and the flow sensing component evaluates the network quality according to the target flow reported by the message reporting component.
Specifically, the flow sensing component matches the current service scene of the first application based on the target flow reported by the message reporting component, and evaluates the network quality, including but not limited to detecting the packet loss rate, the time delay, the downlink transmission rate, and the like of the target flow.
Step S817: in the case of poor network quality, the flow sensing component sends the network quality assessment result to the flow level path management component.
Step S818: the flow-level path management component queries the application acceleration list and judges whether the first application meets the network acceleration condition.
Specifically, the electronic device updates the application acceleration list according to the user traffic sensitivity, the application traffic sensitivity and the user preference application periodically, if the first application is in the application acceleration list, the first application can perform network acceleration, otherwise, the first application cannot perform network acceleration.
Step S819: in the event that the first application satisfies the condition of network acceleration, the flow level path management component requests enablement of the standby network channel from the channel level path management component.
Specifically, the channel-level path management component selects a network channel other than the primary network channel as the backup network channel among the currently available network channels. For example, if the electronic device is connected to a primary Wi-Fi network channel, a primary cellular network channel, and a secondary cellular network channel, where all three network channels are available, the primary network channel is the primary Wi-Fi network channel, and the channel-level path management component may select one network channel from the primary cellular network channel and the secondary cellular network channel as the standby network channel.
Step S820: the channel-level path management component requests the network connection component to enable the alternate network channel.
Step S821: the network connection management component initiates the standby network path and feeds back to the path-level path management component a notification message that the standby network path is enabled.
Specifically, the method for enabling the standby network channel refers to enabling the standby network channel to be switched from a dormant state to an awake state, so that when the network channel is required to be switched subsequently, the standby network channel can be switched from the current network channel to the standby network channel quickly. For example, the backup network channel is a primary cellular network channel, and the network connection component initiates the primary cellular network channel by transitioning the primary cellular network channel from a dormant state to an awake state.
Step S822: the channel-level path management component requests the channel quality detection component to detect the channel quality of the backup network channel.
Step S823: the channel quality detection component sends the channel quality detection result to the channel-level path management component.
Specifically, please refer to step S811-step S812 from step S822-step S823, which will not be described herein.
Step S824: the channel-level path management component sends the path of the standby network channel to the stream-level path management component.
Step S825: the flow level path management component sends an indication of the network channel switch to the policy enforcement component.
Step S826: the policy enforcement component switches network channels.
Specifically, after receiving the instruction of network channel switching sent by the flow-level path management component to the policy execution component, the policy execution component switches the network channel and switches the data flow between the first application and the server on the main network channel to the standby network channel for transmission. At this time, the electronic device may display a first prompt box on a first interface, where the first interface is a working interface of the first application. Illustratively, the first interface may be the user interface 14 described above in FIG. 2G. The first prompt box is used for displaying prompt information that the electronic equipment switches the network channel carrying the data stream into the standby network channel. For example, the first prompt box may be the network acceleration prompt box 144 in fig. 2G, and the prompt message may be "the current month is reduced by 40 times with the use of 960.05MB of mobile data" displayed in the network acceleration prompt box 144.
In some embodiments, the electronic device displays a second interface upon detecting the second operation; the second interface is configured to display data traffic consumed by the electronic device when the electronic device switches a network channel carrying the data stream to the standby network channel. Illustratively, the second operation may be the sliding down operation for the first region 106 of the screen in fig. 2I, and the second interface may be the interface displayed on the screen of the electronic device in fig. 2I.
In some embodiments, the number and variety of acceleration applications in the application acceleration list may be changed because the policy management component may periodically update the user traffic profile. During network acceleration of the first application, namely: and switching one or more data streams between the first application and the server to a standby network channel with better network quality, and if the policy management component updates the user traffic portraits and detects that the first application is not in the application acceleration list, sending a network channel switching request to the stream level path management component by the policy management component, wherein the network channel switching request is used for indicating that the data streams between the first application and the server have the standby network channel to be switched back to the main network channel. The flow-level path management component sends a network channel switching instruction to the strategy execution component after receiving the network channel switching request, and the strategy execution component switches the data flow transmitted by the first application and the server on the standby network back to the original main network channel after receiving the instruction. At this time, the electronic device may display a second prompt box on the first interface, where the first interface is a working interface of the first application, and the second prompt box is used to display prompt information that the electronic device switches the network channel carrying the data stream to the main network channel. For example, the first interface may be the user interface 15 in fig. 2K, the second prompt box may be the network acceleration prompt box 151 in fig. 2K, and the prompt information may be the text information of "the current month of flow remains less and the network acceleration is turned off" in the network acceleration prompt box 151.
According to the embodiment of the application acceleration list dynamically updated by the electronic device according to the user flow sensitivity, the application flow sensitivity and the personal preference application, the number of network applications in the application acceleration list is large under the condition that the available data flow of the user is sufficient, the number of network applications in the application acceleration list is small under the condition that the available data flow of the user is insufficient, and whether the network acceleration is carried out on the currently blocked application is determined by the electronic device according to the residual condition of the data flow of the user by updating the application acceleration list in real time according to the available data flow of the user, so that the problem that excessive user data flow is caused by the fact that the network application is accelerated due to the fact that the data flow of the user is lower than a warning value is solved, and the additional payment of telephone fees is further required.
A system frame diagram of the electronic device 100 is described below. As shown in fig. 11, the electronic device includes an application layer, a service layer, a policy layer, and a kernel layer. The application layer may be used to provide various network applications, which may be third party applications or system applications, such as network applications for games, music, video, etc. The type of network application provided by the application layer is not particularly limited. A network application here refers to an application that needs to acquire resources from a network using a network channel of an electronic device.
The service layer may include an environment awareness component, a channel-level path management component, a policy management component, and a channel quality detection component. The context awareness component may be configured to detect a state of an application, for example, the state of the first application may include a state of application exit, application opening, application running, application installation, application uninstallation, etc., which is to be understood to be only exemplary, and may include more states, which are not described herein. The channel-level path management component may be used to be responsible for requesting/closing a network channel, perceiving a state change of the network channel, updating a selection policy of the network channel, and storing paths of a plurality of network channels. The policy management component may generate different enforcement policies based on the input information, such as, for example, enabling acceleration functions of the network channels, enabling traffic awareness (e.g., detecting traffic of the network channels), etc. The channel quality detection component can be used to evaluate the quality of a network channel. The service layer may further include: and the network connection component is used for enabling the network channel, namely, converting the network channel from the dormant state to the wake state, and directly using the network channel in the wake state.
The policy layer may include a flow level path management component and a flow awareness component. The flow-level path management component may be configured to update the selection of a network channel according to a policy change of an upper layer, trigger network channel quality detection, dynamically select an optimal channel, and may be further configured to store paths of different network channels, for example, paths of a network channel (e.g., a primary network channel) and a standby network channel that are currently used by an application. The flow sensing component can be used for counting the reported flows and evaluating the network quality of each flow.
The kernel layer may include a traffic reporting component and a policy enforcement component. The flow reporting component can be used for collecting and reporting flow information. The policy enforcement component may be used to enforce the switching of network channels.
It should be understood that the connection relationship between the components illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device. In other embodiments of the present application, the electronic device may also use different interfacing manners in the foregoing embodiments, or a combination of multiple interfacing manners.
The system framework shown in fig. 11 above is merely for illustrating the implementation of a layered architecture for an electronic device. The system architecture shown in fig. 11 may also be implemented as part of an existing hierarchical software architecture. Taking an Android (Android) system as an example, fig. 12 is a software structure block diagram of an electronic device with an Android system provided in an embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In the embodiment of the application shown in fig. 12, the Android system is divided into five layers, namely, an application layer, an application framework layer (also called a system framework layer), a system library and Android runtime layer, a hardware abstraction layer (hardware abstraction layer, HAL) and a kernel layer from top to bottom.
The application layer includes several applications (hereinafter simply referred to as applications), such as cameras, gallery, calendars, WLANs, etc. In one possible example, an application layer in the system architecture shown in fig. 11 may correspond to the application layer. The application layer of the electronic device shown in fig. 12 may include a network application, such as a video playing application, a game application, etc., as described in embodiments of the present application.
The application framework layer provides an application programming interface (Application Programming Interface, API) and programming framework for applications of the application layer, including various components and services to support the android development of the developer. The application framework layer also includes some predefined functions. For example, the application framework layer may include a window manager, a content provider, a resource manager, a camera service, and the like. In one possible example, the service layer and policy layer in the system architecture shown in FIG. 11 may be at the application framework layer.
The system library and Android Runtime layer includes a system library and an Android Runtime (Android run). The system library may include a plurality of functional modules. For example: surface manager, two-dimensional graphics engine, three-dimensional graphics processing library (e.g., openGL ES), media library, font library, etc.
The HAL layer is an interface layer between the operating system kernel and the hardware circuitry. HAL layers include, but are not limited to: an Audio hardware abstraction layer (Audio HAL) and a Camera hardware abstraction layer (Camera HAL).
The kernel layer is a layer between hardware and software. The kernel layer may include: display driving, camera driving, audio driving, sensor driving, etc. In one possible example, the kernel layer in the system architecture shown in fig. 11 may correspond to the kernel layer in the software architecture shown in fig. 12, where, as shown in fig. 12, the kernel layer may include: and the traffic reporting component and the policy executing component.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk), etc.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by computer programs, which may be stored on a computer-readable storage medium, and which, when executed, may include the steps of the above-described method embodiments. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
In summary, the foregoing description is only an embodiment of the technical solution of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention should be included in the protection scope of the present invention.

Claims (19)

1. A network acceleration method based on user traffic portrayal, applied to an electronic device, the method comprising:
displaying a first application acceleration list under the condition that the residual flow of the data flow package of the currently used SIM card is a first value, wherein network applications in the first application acceleration list simultaneously use Wi-Fi network and the data flow of the SIM card to carry out network service;
displaying a second application acceleration list under the condition that the residual flow of the data flow package of the currently used SIM card is a second value, wherein network applications in the second application acceleration list simultaneously use Wi-Fi network and the data flow of the SIM card to carry out network service;
Wherein the first application acceleration list is different from the second application acceleration list, and the first value is different from the second value.
2. The method of claim 1, wherein the first application acceleration list is different from the second application acceleration list, comprising:
the number of web applications in the first application acceleration list is different from the number of web applications in the second application acceleration list.
3. The method of any of claims 1-2, wherein the first application acceleration list is different from the second application acceleration list, further comprising:
the web applications in the first application acceleration list are different from the web applications in the second application acceleration list.
4. A method according to any one of claims 1-3, comprising: the second value is smaller than the first value, and the number of network applications in the first application list is larger than the number of network applications in the second application list.
5. The method of any one of claims 1-4, further comprising:
the electronic equipment uses the first SIM card under the condition that the residual flow of the data flow package of the first SIM card is the first numerical value;
And the electronic equipment uses a second SIM card under the condition that the residual flow of the data flow package of the first SIM card is the second numerical value.
6. The method of claim 5, wherein the method further comprises:
responding to a first input operation of a user, and switching mobile data service from the first SIM card to the second SIM card by the electronic equipment;
the application acceleration list displayed by the electronic device is the first application acceleration list before the mobile data service is switched from the first SIM card to the second SIM card, and is the second application acceleration list after the mobile data service is switched from the first SIM card to the second SIM card.
7. The method of any of claims 1-6, wherein the network application receiving/transmitting N-way data flows while conducting network traffic, the network application conducting network traffic using both Wi-Fi network and data traffic of the SIM card comprises:
the electronic equipment carries M paths of data streams of the network application to be transmitted on a Wi-Fi network channel;
the electronic equipment carries N-M paths of data streams of the network application on a cellular network channel for transmission;
The Wi-Fi network channel is a network channel corresponding to the Wi-Fi network, and the cellular network channel is a network channel corresponding to a SIM card currently used by the electronic equipment.
8. The method of any one of claims 1-7, wherein the method further comprises:
responding to a first operation of a user, starting a first application, wherein the first application is a network application which currently uses a Wi-Fi network to carry out network service, all data streams of the first application are born on a Wi-Fi network channel for transmission, and the Wi-Fi network channel is a network channel corresponding to the Wi-Fi network;
when the network quality of the data stream is detected to not meet the preset condition and the first application is a target network application, carrying part of the data stream of the first application to a cellular network channel for transmission;
the target network application is a network application in an application acceleration list corresponding to the currently used SIM card, and the cellular network channel is a network channel corresponding to the currently used SIM card.
9. The method of claim 8, wherein the application acceleration list for the currently used SIM card is dynamically updated based on a user traffic profile that includes user traffic sensitivity that characterizes a sufficiency of available data traffic, user preference network applications that characterize a frequency of use of the network applications by the user, and application traffic sensitivity that characterizes a consumption of the data traffic by the network applications.
10. The method according to any of claims 8-9, wherein in case it is detected that the network quality of the data flow does not meet a preset condition and the first application is a target network application, further comprising:
the electronic equipment displays a first prompt box on a first interface, wherein the first interface is a working interface of the first application, and the first prompt box is used for displaying prompt information of network acceleration.
11. The method of any of claims 8-10, wherein after the transmitting the portion of the data stream of the first application carried over the cellular network channel, further comprising:
updating the user flow portrait regularly, and updating an application acceleration list corresponding to the currently used SIM card based on the user flow portrait;
and under the condition that the first application is not the network application in the updated application acceleration list, the electronic equipment displays a second prompt box on a first interface, wherein the first interface is a working interface of the first application, and the second prompt box is used for displaying prompt information of stopping network acceleration of the electronic equipment.
12. The method according to any of claims 8-11, wherein after said carrying the partial data stream of the first application over the cellular network channel for transmission, further comprising:
Responding to a second operation of the user, and displaying a second interface by the electronic equipment; and the second interface is used for displaying the data flow consumed by the currently used SIM card after the electronic equipment loads part of the data flow of the first application to a cellular network channel for transmission.
13. The method of any one of claims 8-12, wherein the method further comprises:
under the condition that the user traffic sensitivity is the first user traffic sensitivity, the application acceleration list corresponding to the currently used SIM card comprises a network application of the first application traffic sensitivity, a network application of the second application traffic sensitivity, a network application of the first application type, a network application of the second application type and the user preference network application;
under the condition that the user traffic sensitivity is the second user traffic sensitivity, the application acceleration list corresponding to the currently used SIM card is included in the user preference network application of the first application type and the user preference network application of the second application type, and the application traffic sensitivity is the network application of the first application traffic sensitivity and the network application of the second application traffic sensitivity;
And under the condition that the user flow sensitivity is the third user flow sensitivity, the application acceleration list corresponding to the currently used SIM card is included in the user preference network application of the third application type, and the application flow sensitivity is the network application of the first application flow sensitivity.
14. The method of claim 13, wherein the user traffic sensitivity is based on a total amount of data traffic T for a user traffic package 1 And user residual data traffic T 2 Obtaining;
wherein at said T 1 In the case of ≡X, if X 2 *T 1 <T 2 ≤T 1 The user traffic sensitivity is a first user traffic sensitivity;
if x 1 *T 1 <T 2 ≤x 2 *T 1 The user sensitivity is second user traffic sensitivity;
if 0 is less than T 2 ≤x 1 *T 1 The user traffic sensitivity is a third user traffic sensitivity;
at Y.ltoreq.T 1 In the case of < X, if X 4 *T 1 <T 2 ≤T 1 The user traffic sensitivity is a first user traffic sensitivity;
if x 3 *T 1 <T 2 ≤x 4 *T 1 The user traffic sensitivity is a second user traffic sensitivity;
if 0 is less than T 2 ≤x 3 *T 1 The user traffic sensitivity is a third user traffic sensitivity;
at said T 1 In case of < Y, the user traffic sensitivity is a third user traffic sensitivity;
wherein X is a first flow threshold, Y is a second flow threshold, and X > Y, which is 1 As a first percentage, the x 2 As a second percentage, the x 3 As a third percentage, the x 4 Is a fourth percentage, and 0 < x 1 <x 2 <1,0<x 3 <x 4 <1。
15. The method of claim 13, wherein the application traffic sensitivity is based on an average traffic T consumed by a network application for a preset duration of time 3 And the application type of the network application;
wherein, if T, in the case that the application type of the network application is the first application type 3 The application flow sensitivity of the network application is equal to or more than A, and the application flow sensitivity of the network application is the first application flow sensitivity;
if B is less than or equal to T 3 The application flow sensitivity of the network application is the second application flow sensitivity;
if T 3 < B, the application traffic sensitivity of the network application is thirdApplying a flow sensitivity;
in the case that the application type of the network application is the second application type, if T 3 The application flow of the network application is the sensitivity of the first application flow;
if D is less than or equal to T 3 The application flow sensitivity of the network application is the second application flow sensitivity;
if T 3 The application traffic sensitivity of the network application is the third application traffic sensitivity;
in the case that the application type of the network application is the third application type, if T 3 The application flow sensitivity of the network application is equal to or more than E, and the application flow sensitivity of the network application is the first application flow sensitivity;
if F is less than or equal to T 3 The application flow sensitivity of the network application is the second application flow sensitivity;
if T 3 The application flow sensitivity of the network application is the third application flow sensitivity;
wherein A is a first threshold, B is a second threshold, C is a third threshold, D is a fourth threshold, E is a fifth threshold, F is a sixth threshold, and A > B, C > D, E > F, A > C is greater than or equal to E.
16. The method of claim 13, wherein the user preference web application is a web application based on an application preference score f being greater than a preset threshold;
wherein f is according to the formula f=f 1 +f 2 Obtained, said f 1 Using a time length score for the network application, the f 1 According to the formula
Figure FDA0003366673720000041
Obtained, t is 1 For the network application month average use time, the N is as follows 1 Being a first constant, said f 2 A usage number score for the network application, the f 2 According to formula f 2 =C*N 2 The C is obtained by using the network application month after the network application monthNumber of N, the 2 Is a second constant.
17. An electronic device, comprising: the device comprises a memory, a processor and a touch screen; wherein:
The touch screen is used for displaying content;
the memory is used for storing a computer program, and the computer program comprises program instructions;
the processor is configured to invoke the program instructions to cause the terminal to perform the method according to any of claims 1-16.
18. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method according to any of claims 1-16.
19. A computer program product comprising instructions which, when run on an electronic device, cause the electronic device to perform the method of any of claims 1-16.
CN202111384731.7A 2021-11-22 2021-11-22 Network acceleration method based on user traffic portrayal and related electronic equipment Pending CN116155729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111384731.7A CN116155729A (en) 2021-11-22 2021-11-22 Network acceleration method based on user traffic portrayal and related electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111384731.7A CN116155729A (en) 2021-11-22 2021-11-22 Network acceleration method based on user traffic portrayal and related electronic equipment

Publications (1)

Publication Number Publication Date
CN116155729A true CN116155729A (en) 2023-05-23

Family

ID=86354890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111384731.7A Pending CN116155729A (en) 2021-11-22 2021-11-22 Network acceleration method based on user traffic portrayal and related electronic equipment

Country Status (1)

Country Link
CN (1) CN116155729A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150327264A1 (en) * 2012-12-11 2015-11-12 Kt Corporation In-building wired/wireless convergence apparatus and resource allocation method thereof
CN105657175A (en) * 2016-01-29 2016-06-08 努比亚技术有限公司 Network acceleration device and method
CN109451537A (en) * 2018-12-03 2019-03-08 Oppo广东移动通信有限公司 Network shunt method and relevant device
CN112702739A (en) * 2020-12-23 2021-04-23 南昌黑鲨科技有限公司 Wireless network sharing method, device, readable storage medium and mobile terminal
CN112997528A (en) * 2018-12-29 2021-06-18 深圳市欢太科技有限公司 Network switching method and related equipment
CN113259995A (en) * 2021-05-17 2021-08-13 北京小米移动软件有限公司 Information processing method, device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150327264A1 (en) * 2012-12-11 2015-11-12 Kt Corporation In-building wired/wireless convergence apparatus and resource allocation method thereof
CN105657175A (en) * 2016-01-29 2016-06-08 努比亚技术有限公司 Network acceleration device and method
CN109451537A (en) * 2018-12-03 2019-03-08 Oppo广东移动通信有限公司 Network shunt method and relevant device
CN112997528A (en) * 2018-12-29 2021-06-18 深圳市欢太科技有限公司 Network switching method and related equipment
CN112702739A (en) * 2020-12-23 2021-04-23 南昌黑鲨科技有限公司 Wireless network sharing method, device, readable storage medium and mobile terminal
CN113259995A (en) * 2021-05-17 2021-08-13 北京小米移动软件有限公司 Information processing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN113795040B (en) Channel switching method, electronic device and storage medium
WO2021115007A1 (en) Network switching method and electronic device
WO2020143380A1 (en) Data transmission method and electronic device
WO2023273317A1 (en) Channel switching method, electronic device, and storage medium
CN114172791B (en) Channel switching method, electronic device and storage medium
CN115484648B (en) Channel switching method, electronic device and storage medium
CN111563466B (en) Face detection method and related product
WO2021169698A1 (en) Connection management method and related device
CN111316604B (en) Data transmission method and electronic equipment
CN113890905B (en) Channel switching method, electronic device and storage medium
CN113490291B (en) Data downloading method and device and terminal equipment
CN113596919A (en) Data downloading method and device and terminal equipment
CN113810965B (en) Channel switching method, electronic device and storage medium
CN113243126B (en) Network management method for terminal and terminal
CN116155729A (en) Network acceleration method based on user traffic portrayal and related electronic equipment
CN117425227A (en) Method and device for establishing session based on WiFi direct connection
CN116405960B (en) Network quality detection method and related electronic equipment
RU2811567C1 (en) Channel switching method, electronic device and data media
RU2802678C1 (en) Channel switching method, electronic device and storage medium
WO2024082811A1 (en) Network acceleration method and apparatus
CN117056038A (en) Process management method and device
CN116266908A (en) Bluetooth random address generation method and related electronic equipment

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