Application traffic control method, terminal device, and storage medium
By acquiring and applying traffic configuration policies to automatically control traffic to both target and non-target applications, this technology solves the problems of complex operation and poor control effect in existing technologies, thereby simplifying operation and improving user experience.
Patent Information
- Application Number
- CN201911138853.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-20
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2039-12-14
AI Technical Summary
In existing technologies, methods for controlling application traffic by manually limiting or closing applications are complex to operate, have poor traffic control effects, and negatively impact user experience.
By responding to the target application's startup command, the system obtains traffic configuration policies and automatically controls traffic to both target and non-target applications based on these policies. This includes obtaining application identification and type information and controlling traffic based on application characteristics.
It simplifies the application traffic control process, improves traffic control effectiveness and user experience, ensures smooth operation of target applications, and reduces traffic consumption by non-target applications.
Smart Images

Figure CN110868693B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of mobile terminals, and particularly relates to an application program traffic control method, a terminal device and a storage medium. BACKGROUND
[0002] With the development of mobile terminal technology, terminal devices such as smart phones and tablet computers have been highly integrated into people's lives. Under the support of mobile networks, diversified application programs in terminal devices have brought great convenience to people and enriched people's daily life and entertainment activities. However, at the same time, some application programs that need the support of mobile networks will consume traffic or occupy traffic bandwidth even when running in the background, affecting the user experience of using other application programs.
[0003] In the prior art, the problem of limiting application program traffic is usually solved by manually limiting or closing the application program. However, this method requires manual execution of the operation of limiting or closing non-target application programs before each time the target application program is run. However, some application programs need to perform other necessary tasks, and forced limitation or closure will cause the loss of necessary functions. In addition, some application programs are automatically started and cannot be limited or closed manually.
[0004] In the prior art, the method of controlling application program traffic by manually limiting or closing the application program has the problems of complex operation, poor traffic control effect and affecting user experience. SUMMARY
[0005] The present application provides an application program traffic control method, a terminal device and a storage medium to solve the problem of complex operation, poor traffic control effect and affecting user experience in the process of controlling application program traffic by manually limiting or closing the application program.
[0006] According to a first aspect of the embodiments of the present application, the present application provides an application program traffic control method applied to a terminal device, and the method comprises:
[0007] In response to an input target application program start instruction, running a target application program;
[0008] Obtaining a traffic configuration strategy;
[0009] According to the traffic configuration strategy, performing traffic control on non-target application programs and / or target application programs.
[0010] Optionally, the traffic control on the non-target application programs and / or target application programs according to the traffic configuration strategy comprises:
[0011] obtaining first identification information, the first identification information comprising identification of the non-target application program;
[0012] controlling traffic of the non-target application program according to the first identification information and a traffic configuration policy.
[0013] Optionally, the traffic configuration policy comprises a first traffic control policy corresponding to the first identification information, and the controlling traffic of the non-target application program according to the first identification information in the traffic configuration policy comprises:
[0014] obtaining the first traffic control policy corresponding to the first identification information;
[0015] controlling traffic of the non-target application program according to the first traffic control policy.
[0016] Optionally, the controlling traffic of the non-target application program according to the first traffic control policy comprises:
[0017] controlling traffic of the non-target application program according to the first traffic control policy, so that the traffic of the non-target application program is less than or equal to a maximum traffic threshold.
[0018] Optionally, the controlling traffic of the non-target application program and / or the target application program according to the traffic configuration policy comprises:
[0019] obtaining second identification information, the second identification information comprising identification of the target application program;
[0020] controlling traffic of the target application program according to the second identification information and a traffic configuration policy.
[0021] Optionally, the traffic configuration policy comprises a second traffic control policy corresponding to the second identification information, and the controlling traffic of the target application program according to the second identification information and the traffic configuration policy comprises:
[0022] obtaining the second traffic control policy corresponding to the second identification information;
[0023] controlling traffic of the target application program according to the second traffic control policy.
[0024] Optionally, the controlling traffic of the target application program according to the second traffic control policy comprises:
[0025] controlling traffic of the target application program according to the second traffic control policy, so that a traffic speed of the target application program is greater than or equal to a minimum traffic speed threshold.
[0026] Optionally, after the traffic control on the non-target application and / or the target application according to the traffic configuration policy, the method further comprises:
[0027] prohibiting the non-target application and / or the target application from launching an application associated with the non-target application and / or the target application;
[0028] Optionally, before the running of the target application in response to the input target application starting instruction, the method further comprises:
[0029] starting the traffic control mode in response to a traffic control starting instruction input by a user.
[0030] According to a second aspect of the embodiments of the present disclosure, the present disclosure provides another application traffic control method, applied to a terminal device, the terminal device having at least one target application running, the method comprising:
[0031] obtaining a traffic configuration policy;
[0032] controlling traffic of the non-target application and / or the target application according to the traffic configuration policy.
[0033] Optionally, the controlling of the traffic of the non-target application and / or the target application according to the traffic configuration policy comprises:
[0034] obtaining first identification information, the first identification information comprising identification of the non-target application;
[0035] controlling traffic of the non-target application according to the first identification information and the traffic configuration policy.
[0036] Optionally, the controlling of the traffic of the non-target application and / or the target application according to the traffic configuration policy comprises:
[0037] obtaining second identification information, the second identification information comprising identification of an application in the foreground;
[0038] controlling traffic of the application in the foreground according to the second identification information and the traffic configuration policy.
[0039] According to a third aspect of the embodiments of the present disclosure, the present disclosure provides a terminal device, comprising a memory, a processor and a computer program;
[0040] The computer program is stored in the memory and configured to be executed by the processor to perform the traffic monitoring method according to any one of the first aspect and the second aspect of the embodiments of the present disclosure.
[0041] According to a fourth aspect of the embodiments of the present disclosure, the present disclosure provides a computer readable storage medium, wherein the computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by a processor to implement the application traffic control method according to any one of the first aspect and the second aspect of the embodiments of the present disclosure.
[0042] The application traffic control method provided by the present disclosure runs a target application in response to an input target application start instruction, acquires a traffic configuration strategy, and controls the traffic of the non-target application and / or the target application according to the traffic configuration strategy. Since the target application and the non-target application are automatically controlled by the traffic configuration strategy, the application traffic control simplifies the operation process of controlling the application traffic, and improves the traffic control effect and user experience. BRIEF DESCRIPTION OF DRAWINGS
[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and serve to explain the principles of the present disclosure together with the specification.
[0044] Figure 1 An application scenario diagram provided by an embodiment of the present disclosure;
[0045] Figure 2 A flowchart of the application traffic control method provided by the first embodiment of the present disclosure;
[0046] Figure 3 A flowchart of the application traffic control method provided by the second embodiment of the present disclosure;
[0047] Figure 4 A flowchart of step S304 in the embodiment shown in Figure 3 A flowchart of step S306 in the embodiment shown in
[0048] Figure 5 A flowchart of step S306 in the embodiment shown in Figure 3 A flowchart of step S306 in the embodiment shown in
[0049] Figure 6 A flowchart of the application traffic control method provided by the third embodiment of the present disclosure;
[0050] Figure 7 An operation interface schematic diagram of a terminal device provided by an embodiment of the present disclosure;
[0051] Figure 8 A flowchart of the application traffic control method provided by the fourth embodiment of the present disclosure;
[0052] Figure 9 A flowchart of the application traffic control method provided by the fifth embodiment of the present disclosure;
[0053] Figure 10 A structure diagram of a terminal device provided for an embodiment of the present application is shown in the figure.
[0054] Figure 11 A structure diagram of a terminal device provided for another embodiment of the present application is shown in the figure.
[0055] The specific embodiments of the present disclosure have been shown in the above figures, and will be described in more detail hereinafter. These figures and the written description are not intended to limit the scope of the present disclosure in any way, but to illustrate the concept of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0056] The exemplary embodiments will be described in detail herein with reference to the attached drawings. When the description below refers to the attached drawings, same numbers in different drawings refer to same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not meant to represent all embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0057] It should be understood that the present application is not limited to the precise structures described hereinabove and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0058] First, the terms related to the present application are explained:
[0059] Terminal device: refers to a user device with an operating system, capable of realizing certain functions, and capable of running various software programs, such as mobile phones, tablet computers, smart watches, etc.
[0060] Application: a software program (English: Application, APP for short) running on a terminal device, is a software program for different operating systems (such as Apple's IOS system, Google's Android system), which perfects the system function and provides various functions for users. The APP involved in the present application includes application programs that need to use traffic when running in a terminal device.
[0061] The application scenarios of the embodiments of the present application are explained as follows:
[0062] Figure 1 An application scenario diagram of the application traffic control method provided for the embodiments of the present application is shown in the figure. Figure 1As shown, the terminal device provided by the embodiment of the application is a smart phone 100, which comprises a touch screen 110, and the smart phone 100 is installed with an application program 120, and a user can start, close and control the application program 120 through human-computer interaction of the touch screen 110.
[0063] In a specific application scenario, the smart phone 100 is installed with a target application program 120a for video playing, and after the user clicks the target application program 120a through the touch screen 110, the target application program 120a is started and is in the foreground of the smart phone 100 to play the video. Meanwhile, the smart phone 100 is also installed with a non-target application program 120b of instant messaging type and an application program 120c of weather forecast type, which are running in the background. Since the non-target application program 120b and the non-target application program 120c need to consume traffic to work normally, the non-target application program 120b and the non-target application program 120c will consume and occupy the traffic resources, which may cause the target application program 120a to be stuck and increase the total traffic cost. After the application program traffic control method provided by the embodiment of the application is started in the smart phone 100, the traffic of the target application program 120a, the non-target application program 120b and the non-target application program 120c will be controlled, the traffic speed of the target application program 120a is ensured to make the target application program 120a run smoothly, and the traffic speed of the non-target application program 120b and the non-target application program 120c is limited to prevent them from occupying the traffic bandwidth of the target application program 120a and reduce the total traffic cost.
[0064] The application program traffic control method provided by the embodiment of the application controls the traffic according to the type and application characteristics of the application program through the pre-set traffic configuration strategy, for example, a larger traffic speed is provided for the target application program running in the foreground, and the instantaneous traffic, total traffic or traffic duration of the non-target application program running in the background is limited according to the type of the application program, so as to realize the traffic control of the application program, ensure the flow of the target application program to run and prevent the problem of the background flow running. Since the traffic configuration strategy is set according to the type and application characteristics of the application program, the non-target application program does not need to be manually closed and controlled, so the operation process is simplified and the traffic control effect is improved.
[0065] The technical solutions of the application and how the technical solutions of the application solve the above technical problems will be described in detail in the specific embodiments below. The specific embodiments below can be combined with each other, and the same or similar concepts or processes can not be described again in some embodiments. The embodiments of the application will be described below with reference to the drawings.
[0066] Figure 2The flowchart of the application traffic control method provided by the first embodiment of the present application is applied to a terminal device, such as Figure 2 As shown in the figure, the application traffic control method provided by the present embodiment includes the following steps:
[0067] Step S201: In response to an input target application starting instruction, a target application is run.
[0068] Specifically, the target application starting instruction can be an instruction input by a user, for example, an operation instruction input by the user by clicking a touch screen during human-computer interaction; or an instruction input by another program, service or device, for example, an instruction or electrical signal generated by executing corresponding code or script. The specific implementation manner of the instruction is not limited in the present embodiment. In response to the instruction, the corresponding target application is started and run. Alternatively, the target application can be one or multiple, and the starting order of the target application can be simultaneous starting or sequential starting, which is not limited in the present embodiment.
[0069] Step S202: A traffic configuration policy is acquired.
[0070] After the target application is started, traffic control is needed. First, the traffic configuration policy is acquired. Specifically, the traffic configuration policy can be preset in the terminal device, acquired by reading a configuration file corresponding to the traffic configuration policy stored in the terminal device, or acquired from outside the terminal device through a network, for example, acquired from a cloud server. Alternatively, the traffic configuration policy can be acquired automatically by the terminal device or acquired according to the input of a user, for example, the user sets the traffic configuration policy of a specific application by setting a white list and a black list, so that the traffic configuration policy can control the traffic according to the needs of the user.
[0071] The specific implementation manner of the traffic configuration policy is not limited in the present embodiment.
[0072] Step S203: The non-target application and / or the target application are controlled according to the traffic configuration policy.
[0073] Specifically, the non-target application is an application other than the target application. Alternatively, the target application and the non-target application can be run in the background or in the foreground of the terminal device, which is not limited in the present embodiment.
[0074] The traffic configuration policy includes a mapping relationship between the non-target application and / or the target application and a specific traffic control policy. The non-target application and / or the target application are controlled according to the control policy, so as to achieve the purpose of traffic control.
[0075] In the embodiment, the target application program is run in response to the input target application program start instruction; the traffic configuration strategy is acquired; and the non-target application program and / or the target application program is subjected to traffic control according to the traffic configuration strategy. Since the target application program and the non-target application program are subjected to automatic traffic control respectively by using the traffic configuration strategy, the application program traffic control simplifies the operation process of controlling the application program traffic, and improves the traffic control effect and user experience.
[0076] Figure 3 The flowchart of the application program traffic control method provided by the second embodiment of the present application is shown in Figure 3 The application program traffic control method provided by the second embodiment of the present application is based on the application program traffic control method provided by the first embodiment of the present application, and the step S203 is further refined. The application program traffic control method provided by the second embodiment of the present application comprises the following steps. Figure 2
[0077] S301, the target application program is run in response to the input target application program start instruction.
[0078] S302, the traffic configuration strategy is acquired.
[0079] S303, the first identification information is acquired, and the first identification information comprises the identification of the non-target application program.
[0080] Specifically, the identification of the non-target application program is used to uniquely identify the non-target application program, and when there are multiple non-target application programs, the corresponding identification of the non-target application program is also multiple. The identification of the non-target application program can be one or a combination of multiple forms of the image name, the abbreviation, the identification serial number, the process name, etc. of the corresponding non-target application program. The specific implementation mode of the identification of the non-target application program is not limited in the embodiment.
[0081] The first identification information includes an identification of the non-target application program, and thus the non-target application program can be uniquely determined according to the first identification information, and relevant control can be performed thereon. Optionally, the first identification information also includes type information of the non-target application program, and the type information includes, for example, instant messaging application programs, video application programs, game application programs, news application programs, and tool application programs. Application programs with different type information have different application characteristics. For example, instant messaging application programs and news application programs need to passively maintain communication with a server of the application program in order to timely receive the latest data when serving as the non-target application program; and game application programs and video application programs do not need to maintain communication with the server when serving as the non-target application program because they do not need to receive instant messages. According to the information category in the first identification information, different traffic control methods of the non-target application program can be correspondingly controlled.
[0082] In step S304, traffic control is performed on the non-target application program according to the first identification information and the traffic configuration strategy.
[0083] The traffic configuration strategy includes a traffic control method corresponding to the first identification information, and according to the traffic configuration strategy and the first identification information, a specific traffic control method of the non-target application program can be implemented.
[0084] Optionally, the traffic configuration strategy includes a first traffic control strategy corresponding to the first identification information, as shown in the following table. Figure 4 As shown in step S304, step S304 includes two specific implementation steps, i.e., steps S3041 and S3042.
[0085] In step S3041, a first traffic control strategy corresponding to the first identification information is obtained.
[0086] Specifically, the first identification information can find a corresponding traffic control strategy, i.e., a first traffic control strategy, in the traffic configuration strategy. According to the first identification information, a unique first traffic control strategy can be obtained. Optionally, when there are multiple groups of first identification information, i.e., multiple non-target application programs, there are also multiple first traffic control strategies correspondingly.
[0087] The first traffic control strategy can be pre-set by a user. For example, the user sets a first traffic control strategy of a specific application program by setting a white list and a black list, so that the first traffic control strategy can perform traffic control according to the needs of the user.
[0088] Optionally, according to the identification and information category of the non-target application program included in the first identification information, different first traffic control strategies are obtained according to the identification and / or information category of the non-target application program.
[0089] For example, in the first identification information of the non-target application program A, the identification is weixin, and the information category is instant messaging; in the first identification information of the non-target application program B, the identification is word, and the information category is a tool; according to the difference in the information category, since the non-target application program of the instant messaging category needs to be in communication with the server at all times to receive instant messages, the first traffic control strategy corresponding to the non-target application program A obtained is to maintain the network connection of the non-target application program A; and the first traffic control strategy corresponding to the non-target application program B obtained is to disconnect the network connection of the non-target application program B.
[0090] For another example, in the first identification information of the non-target application program A, the identification is weixin, and the information category is instant messaging; in the first identification information of the non-target application program B, the identification is QQ, and the information category is instant messaging; according to the difference in the identification and the information category of the non-target application program, although the information categories of the non-target application program A and the non-target application program B are both instant messaging, the non-target application program A with the identification of weixin has a higher network traffic priority than the non-target application program B with the identification of QQ, and thus the first traffic control strategies of the two are different, for example, the first traffic control strategy corresponding to the non-target application program A obtained is that the interval for the non-target application program A to access the server is 10 seconds; and the first traffic control strategy corresponding to the non-target application program B obtained is that the interval for the non-target application program B to access the server is 10 minutes.
[0091] Optionally, different first traffic control strategies are obtained according to the identification and / or the information category of the non-target application program, and there are various methods, which can be pre-set by a user, pre-set in a terminal device, or obtained from outside the terminal device, such as a cloud server, and the specific obtaining manner of the method of obtaining different first traffic control strategies according to the identification and / or the information category of the non-target application program is not limited here.
[0092] The different first traffic control strategies obtained according to the identification and the information category of the non-target application program can achieve more accurate traffic control strategies and improve the traffic control effect.
[0093] In step S3042, the non-target application program is subjected to traffic control according to the first traffic control strategy.
[0094] Since the first traffic control strategy is determined by the first identification information, the specific non-target application program can also be uniquely determined according to the first traffic control strategy, and then the non-target application program corresponding to the first identification information is subjected to traffic control by the traffic control method corresponding to the first traffic control strategy.
[0095] Optionally, the manner of flow control on the non-target application program comprises one or more of, for example, opening or closing the flow of the non-target application program, flow bandwidth, flow connection duration, total flow per unit time, instantaneous flow, etc. In this embodiment, the manner of flow control on the non-target application program is not specifically limited.
[0096] By controlling the flow of the non-target application program in multiple manners according to the first flow control strategy, the accuracy and control effect of flow control can be improved, and the user experience can be improved.
[0097] Optionally, the specific implementation method of step S3042 comprises:
[0098] According to the first flow control strategy, the flow of the non-target application program is controlled so that the flow speed of the non-target application program is less than or equal to the maximum flow speed threshold.
[0099] Optionally, the flow speed of the non-target application program comprises instantaneous flow speed and average flow speed per unit time. Since the non-target application program is not the main application program used by the user, if the flow speed of the non-target application program is too large, it will affect the use experience of the target application program being used by the user, cause problems such as lag, and increase the total flow expenditure of the terminal device. According to the first flow control strategy, the flow speed of the non-target application program is controlled so that it is less than or equal to the maximum threshold, which can ensure the normal use of the target application program and reduce the total flow expenditure.
[0100] For example, the non-target application program C is a tool application program, and when the user uses the target application program D to watch network video, the instantaneous flow speed of the non-target application program C is limited to 0 kb / s, which is equivalent to closing the flow of the non-target application program C, preventing the non-target application program C from updating and other behaviors in the background state, so that the non-target application program C cannot occupy the flow bandwidth, and the user experience of using the target application program D is improved.
[0101] For another example, the non-target application program C is an instant messaging application program, and when the user uses the target application program D to watch network video, the instantaneous flow speed of the non-target application program C is limited to 100 kb / s, so that the non-target application program C can receive small-flow instant messages sent by the server, and the target application program D can watch network video without being affected, and the user experience is improved.
[0102] In step S305, second identification information is obtained, and the second identification information comprises an identification of the target application program.
[0103] Specifically, the identification of the target application program is used for uniquely identifying the target application program, and when the target application program is multiple, the identification of the corresponding target application program is also multiple. The identification of the target application program can be one or a combination of multiple forms of image name, abbreviation, identification serial number, process name, etc. of the corresponding target application program. The specific implementation of the identification of the target application program is not limited in the embodiment.
[0104] The second identification information includes the identification of the target application program, so the target application program can also be uniquely determined according to the second identification information, thereby being controlled. Alternatively, the second identification information also includes type information of the target application program, for example, instant messaging application program, video application program, game application program, news application program, and tool application program. Application programs with different type information have different application characteristics. For example, the video application program needs to ensure high-quality connection with the network server when it is a target application program, that is, to ensure large traffic bandwidth, otherwise it cannot smoothly play network video. For example, the news application program does not need large traffic bandwidth when it is a target application program, and only needs small traffic bandwidth to meet the running requirements. According to the information category in the second identification information, different traffic control methods of the target application program can be corresponded.
[0105] In step S306, the target application program is controlled according to the second identification information and the traffic configuration strategy.
[0106] The traffic configuration strategy includes the traffic control method corresponding to the second identification information, and according to the traffic configuration strategy and the second identification information, the traffic control method of the specific target application program can be realized.
[0107] Alternatively, the traffic configuration strategy includes the second traffic control strategy corresponding to the second identification information, as shown in Figure 5 Step S306 includes two specific implementation steps of steps S3061 and S3062.
[0108] In step S3061, the second traffic control strategy corresponding to the second identification information is obtained.
[0109] Specifically, the second identification information can find the corresponding traffic control strategy, that is, the second traffic control strategy, in the traffic configuration strategy. According to the second identification information, the unique second traffic control strategy can be obtained. Alternatively, when the second identification information has multiple groups, that is, multiple target application programs, correspondingly, the second traffic control strategy also has multiple groups.
[0110] The second flow control strategy can be preset by the user, for example, the user sets the second flow control strategy of a specific application program by setting a white list and a black list, so that the second flow control strategy can control the flow according to the needs of the user.
[0111] Optionally, according to the identification and the information category of the target application program in the second identification information, different second flow control strategies are obtained according to the identification and / or the information category of the target application program.
[0112] For example, in the second identification information of the target application program A, the identification is weixin, and the information category is instant messaging; in the second identification information of the target application program B, the identification is qqvideo, and the information category is video; according to the difference between the information categories, since the target application program of the instant messaging type has a smaller demand for flow bandwidth, and the target application program of the video type has a larger demand for flow bandwidth, the second flow control strategy corresponding to the target application program A is obtained, which is to ensure that the minimum flow speed of the target application program A is a1; the second flow control strategy corresponding to the target application program B is to ensure that the minimum flow speed of the target application program B is b1, where b1 is greater than a1, so that the target application program A and the target application program B can both obtain sufficient flow speed to realize the corresponding functions, and improve the accuracy of flow control and user experience.
[0113] Optionally, different second flow control strategies are obtained according to the identification and / or the information category of the target application program, which can be preset by the user, preset in the terminal device, or obtained from the outside of the terminal device, such as a cloud server. The specific obtaining method of the different second flow control strategies according to the identification and / or the information category of the target application program is not limited here.
[0114] According to the identification and the information category of the target application program, different second flow control strategies are obtained, which can realize more accurate flow control strategies and improve the flow control effect.
[0115] In step S3062, the target application program is controlled according to the second flow control strategy.
[0116] Since the second flow control strategy is determined by the second identification information, the specific target application program can also be determined according to the second flow control strategy, and then the flow control of the target application program corresponding to the second identification information is realized by the flow control method corresponding to the second flow control strategy.
[0117] Optionally, the manner of flow control on the target application includes one or more of, for example, flow bandwidth of the target application, flow connection duration, total flow per unit time, instantaneous flow, etc. In this embodiment, the manner of flow control on the target application is not specifically limited.
[0118] By controlling the flow of the target application in multiple ways according to the second flow control strategy, the flow bandwidth of the target application can be included without being diverted by other applications. When there are multiple target applications, controlling the flow of the target application in multiple ways can ensure bandwidth balance among the multiple target applications, so that each target application can normally implement its function, improve the accuracy and control effect of flow control, and improve user experience.
[0119] As an optional embodiment, the specific implementation method of step S3062 includes:
[0120] According to the second flow control strategy, the flow of the target application is controlled so that the flow speed of the target application is greater than or equal to the minimum flow speed threshold.
[0121] The target application is an application mainly used by the user, and generally high flow use priority of the target application is guaranteed. In addition to the target application, there are other non-target applications in the terminal device, which need a small amount of flow to maintain their necessary functions. Therefore, if all the flow bandwidth is allocated to the target application, it will affect the normal operation of the non-target application and affect user experience. According to the second flow control strategy, the flow of the target application is controlled so that the flow is greater than or equal to the minimum flow speed threshold, which ensures that the target application can still be normally used in the case of flow use of the non-target application, and improves user experience.
[0122] For example, the target application C is a video application, and when the user uses the target application C to watch network video, the non-target application D running in the background starts to download files. The flow speed of the target application C is limited to 500 kb / s, so that the target application C has high priority and can use flow preferentially when the flow speed of the target application C is within 500 kb / s, which ensures that the user can still normally watch network video of the target application C in the case that the non-target application D downloads files in the background. The effectiveness of flow control is improved, and user experience is improved.
[0123] It should be noted that steps S303-S304 are steps for performing traffic control on the application in the foreground; steps S305-S306 are steps for performing traffic control on the target application. In this embodiment, there is no specific restriction on the execution order of steps S303-S304 and steps S305-S306. That is, steps S303-S304 can be executed first, followed by steps S305-S306; steps S305-S306 can be executed first, followed by steps S303-S304; or steps S303-S304 and steps S305-S306 can be executed simultaneously. In this embodiment, traffic control is achieved by applying different traffic control strategies to target applications and non-target applications, thereby allocating traffic speed. By setting a lower limit for the traffic speed of target applications, the normal operation of multiple target applications is ensured. By setting an upper limit for non-target applications, the excessive use of traffic speed by non-target applications is limited. When multiple target applications and non-target applications are running simultaneously, a reasonable allocation of traffic speed among the applications can be achieved, ensuring that the functions of each application can be implemented well.
[0124] In this embodiment, the implementation of steps S301-S302 is the same as that of the present invention. Figure 2 The implementation methods of steps S201-S202 in the illustrated embodiment are the same, and will not be described in detail here.
[0125] Figure 6 The flowchart of the application traffic control method provided in Embodiment 3 of the present invention is as follows: Figure 6 As shown, the application traffic control method provided in this embodiment... Figure 3 Based on the application traffic control method provided in the illustrated embodiment, after step S306, a step of prohibiting the initiation of other applications is added; before step S301, a step of enabling traffic control mode is added. Therefore, the application traffic control method provided in this embodiment includes the following steps:
[0126] Step S401: In response to the user's input of a flow control start command, the flow control mode is activated.
[0127] Terminal devices are used in a variety of scenarios, and users' needs for traffic control in applications change accordingly. To avoid restricting application traffic when it's unnecessary, a traffic control mode is activated based on a user-input traffic control activation command. Optionally, the user can input the traffic control activation command in various ways, including through the terminal device's touchscreen or voice input. The specific implementation of the user-input traffic control activation command is not limited here, as long as it is a command that the terminal device can receive.
[0128] To better disclose the execution process of step S401, the following is described with a specific embodiment as an example, as shown in the following table. Figure 7 Figure 7 The following is a schematic diagram of the operation interface of the terminal device provided in an embodiment of the present application. In this embodiment, the terminal device is a smart phone 7, and the operation interface is an operation interface 72 in the operating system or APP of the smart phone 7 that implements the corresponding function. The user operates the operation interface 72 through the touch screen 71 to input the traffic control start instruction and start the traffic control mode. It can be understood that when the terminal device is other device, the operation interface 72 is an interactive interface in the corresponding terminal device that can implement the interactive function.
[0129] The operation interface 72 includes a traffic control start switch 73 for starting the traffic control mode. When the traffic control start switch 73 is in the off state, the traffic control mode is off, and the application program traffic control method of the embodiment of the present application is not executed. When the traffic control start switch 73 is turned on in response to the instruction of the user, the traffic control mode is turned on, and the application program traffic control method of the embodiment of the present application is executed.
[0130] Optionally, the traffic control mode can be used in specific use scenarios, for example, in the game mode, the user can start the traffic control mode. Correspondingly, in the game mode, the traffic control start switch is arranged on the operation interface in the game mode, and the traffic control mode in the game mode is started by turning on the traffic control start switch.
[0131] Step S402: In response to the input target application program start instruction, the target application program is run.
[0132] Step S403: The traffic configuration strategy is acquired.
[0133] Step S404: The first identification information is acquired, and the first identification information includes the identification of the non-target application program.
[0134] Step S405: The non-target application program is controlled according to the first identification information and the traffic configuration strategy.
[0135] Step S406: The second identification information is acquired, and the second identification information includes the identification of the target application program.
[0136] Step S407: The target application program is controlled according to the second identification information and the traffic configuration strategy.
[0137] Step S408: The non-target application program and / or the target application program is prohibited from invoking the application program associated with the non-target application program and / or the target application program.
[0138] When the non-target application and / or the target application in the terminal device runs, according to the internal setting of the application, other applications associated with the application will be started, for example, when the target application A runs, the non-target application B developed by the same company as the target application A on the terminal device will be started. Since the target application B is not running when the steps S401-407 are executed, the target application B is not controlled by the traffic control method of steps S401-407, and if the target application B uses traffic in the background, it will affect the normal work of the target application and increase the traffic expenditure. Therefore, prohibiting the non-target application and / or the target application from starting the application associated with the non-target application and / or the target application can prevent the use of traffic by the non-target application started later and improve the effectiveness of traffic control.
[0139] In this embodiment, the implementation manner of steps S402-step S407 is the same as that of steps S301-step S306 in the embodiment of the application Figure 3 shown in the embodiment of the application, and will not be repeated here.
[0140] Figure 8 The flowchart of the application traffic control method provided in Embodiment Four of the application is applied to a terminal device, and at least one target application is running in the terminal device, as shown in Figure 8 The application traffic control method provided in this embodiment includes the following steps:
[0141] Step S801, in response to the traffic control instruction, obtaining the traffic configuration strategy.
[0142] When at least one target application is running in the terminal device, the target application start is no longer used as the trigger condition of the application traffic control method, but the application traffic control method is directly executed in response to the traffic control instruction. The traffic control instruction can be directly issued by the user, or the terminal device can issue the traffic control instruction according to its own running conditions, such as network traffic bandwidth usage, application running conditions. According to the traffic control instruction, the corresponding traffic configuration strategy is obtained, which is used for traffic control of the application.
[0143] Step S802, according to the traffic configuration strategy, the non-target application and / or the target application is controlled.
[0144] In this embodiment, the implementation manner of step S802 is the same as that of step S203 in the embodiment of the application Figure 2 shown in the embodiment of the application, and will not be repeated here.
[0145] Figure 9A flowchart of the application traffic control method provided by the fifth embodiment of the present application is shown in Figure 9 The application traffic control method provided by the fifth embodiment of the present application is based on the application traffic control method provided by the embodiment shown in Figure 8 The application traffic control method provided by the fifth embodiment of the present application is based on the application traffic control method provided by the embodiment shown in
[0146] In step S901, the traffic control instruction is responded to, and the traffic configuration strategy is acquired.
[0147] In step S902, the first identification information is acquired, and the first identification information includes the identification of the non-target application.
[0148] In step S903, the non-target application is controlled according to the first identification information and the traffic configuration strategy.
[0149] In step S904, the second identification information is acquired, and the second identification information includes the identification of the target application.
[0150] In step S905, the target application is controlled according to the second identification information and the traffic configuration strategy.
[0151] In the embodiment, the specific implementation manners of steps S902-S905 are the same as the implementation manners of steps S303-S306 in the embodiment shown in Figure 3 The implementation manners and beneficial effects of steps S303-S306 in the embodiment shown in
[0152] Optionally, the embodiment shown in Figure 9 After step S905, the step of prohibiting the non-target application and / or the target application from starting the application associated with the non-target application and / or the target application can be further included.
[0153] Before step S901, the step of starting the traffic control mode in response to the traffic control start instruction input by the user can be further included.
[0154] Figure 10 A schematic diagram of the terminal device provided by one embodiment of the present application is shown in Figure 10 The terminal device provided by the embodiment includes a memory 1001, a processor 1002 and a computer program.
[0155] The computer program is stored in the memory 1001 and is configured to be executed by the processor 1002 to implement the application traffic control method provided by any one of the embodiments corresponding to the embodiments of the present application. Figures 2-6 、 Figures 8-9 The computer program is stored in the memory 1001 and is configured to be executed by the processor 1002 to implement the application traffic control method provided by any one of the embodiments corresponding to the embodiments of the present application.
[0156] The memory 1001 and the processor 1002 are connected through the bus 1003.
[0157] The relevant description and effects corresponding to the steps of Figures 2-6 、 Figures 8-9 The relevant description and effects corresponding to the steps of
[0158] Figure 11 A structural schematic diagram of a terminal device provided by another embodiment of the present application is shown in FIG. 11. The terminal device can be a handheld terminal, which can be a smart phone, a digital broadcast terminal, a tablet device, a personal digital assistant, etc. Figure 11
[0159] The terminal device 1100 can include one or more of the following components: a processing component 1102, a memory 1104, a power supply component 1106, a multimedia component 1108, an input / output (I / O) interface 1112, and a communication component 1116.
[0160] The processing component 1102 usually controls overall operations of the terminal device 1100, such as operations associated with displaying, data communication, and recording operations. The processing component 1102 can include one or more processors 1120 to execute instructions to complete all or part of steps of the above methods. Further, the processing component 1102 can include one or more modules to facilitate the interaction between the processing component 1102 and other components. For example, the processing component 1102 can include a multimedia module to facilitate the interaction between the multimedia component 1108 and the processing component 1102.
[0161] The memory 1104 is configured to store various types of data to support operations of the terminal device 1100. Examples of the data include instructions for any application or method operating on the terminal device 1100, contact data, phonebook data, messages, pictures, videos, etc. The memory 1104 can be implemented by any type of volatile or non-volatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0162] The power supply component 1106 provides power for various components of the terminal device 1100. The power supply component 1106 can include a power supply management system, one or more power supplies, and other components associated with generating, managing and distributing power for the terminal device 1100.
[0163] The multimedia component 1108 includes a screen providing an output interface between the terminal device 1100 and the user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action.
[0164] The I / O interface 1112 provides an interface between the processing component 1102 and peripheral interface modules, which can be a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0165] The communication component 1116 is configured to facilitate wired or wireless communication between the terminal device 1100 and other devices. The terminal device 900 can access a wireless network based on a communication standard, such as Bluetooth, WiFi, 2G or 3G, or a combination thereof.
[0166] One embodiment of the present application provides a computer readable storage medium, which stores a computer program. The computer program is executed by a processor to implement the application Figures 2-6 、 Figures 8-9 The application program traffic control method provided in any one of the corresponding embodiments.
[0167] The computer readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0168] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented by other means. For example, the apparatus embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and actual implementation can have another division manner, for example, a plurality of modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the displayed or discussed ones can be indirect coupling or communication connection through some interfaces, apparatuses or modules, which can be electrical, mechanical or other forms.
[0169] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the application embrace any and all variations of the present application that fall within the scope of the general inventive concept as defined by the appended claims as well as the legal equivalents thereof. It is intended that the specification and examples be considered exemplary only, with the true scope and spirit of the application being indicated by the following claims.
[0170] It is to be understood that the application is not limited to the precise construction herein disclosed and shown in the drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application is limited only by the claims that follow.
Claims
1. An application traffic control method, applied to a terminal device, characterized in that, The method comprises: running a target application in response to an input target application start instruction; obtaining a traffic configuration policy; controlling traffic of non-target applications and / or target applications according to the traffic configuration policy; the traffic control of the non-target applications and / or target applications according to the traffic configuration policy comprises: obtaining first identification information and / or second identification information, the first identification information comprising first identification and type information of the non-target applications, and the second identification information comprising second identification and type information of the target applications; controlling traffic of the non-target applications according to the first identification information and the traffic configuration policy, and controlling traffic of the target applications according to the second identification information and the traffic configuration policy; after the traffic control of the non-target applications and / or target applications according to the traffic configuration policy, the method further comprises: inhibiting the non-target applications and / or target applications from launching applications associated with the non-target applications and / or target applications.
2. The method of claim 1, wherein, the traffic configuration policy comprises a first traffic control policy corresponding to the first identification information, and the traffic control of the non-target applications according to the first identification information comprises: obtaining the first traffic control policy corresponding to the first identification information; controlling traffic of the non-target applications according to the first traffic control policy.
3. The method of claim 2, wherein, the traffic control of the non-target applications according to the first traffic control policy comprises: controlling traffic of the non-target applications according to the first traffic control policy, so that the traffic of the non-target applications is less than or equal to a maximum traffic threshold.
4. The method according to any one of claims 1 to 3, characterized in that, the traffic configuration policy comprises a second traffic control policy corresponding to the second identification information, and the traffic control of the target applications according to the second identification information and the traffic configuration policy comprises: obtaining the second traffic control policy corresponding to the second identification information; controlling traffic of the target applications according to the second traffic control policy.
5. The method of claim 1, wherein, before the running of the target application in response to the input target application start instruction, the method further comprises: starting a traffic control mode in response to a user input traffic control start instruction.
6. A terminal device, characterized by comprising: comprises: a memory, a processor, and a computer program; wherein the computer program is stored in the memory and configured to be executed by the processor to implement the application traffic control method according to any one of claims 1-5.
7. A computer readable storage medium characterized in that, The computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to implement the application traffic control method according to any one of claims 1-5.
Citation Information
Patent Citations
Optimization policy acquiring method, providing method, device and equipment
CN108647051A
Mobile terminal flow control method, flow control device and mobile terminal
CN109831589A