CN107659509B - Application flow use control method and device, readable storage medium and terminal equipment - Google Patents

Application flow use control method and device, readable storage medium and terminal equipment Download PDF

Info

Publication number
CN107659509B
CN107659509B CN201710776144.XA CN201710776144A CN107659509B CN 107659509 B CN107659509 B CN 107659509B CN 201710776144 A CN201710776144 A CN 201710776144A CN 107659509 B CN107659509 B CN 107659509B
Authority
CN
China
Prior art keywords
application
file
transmitted
size
preset value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710776144.XA
Other languages
Chinese (zh)
Other versions
CN107659509A (en
Inventor
昌国锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology 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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201710776144.XA priority Critical patent/CN107659509B/en
Publication of CN107659509A publication Critical patent/CN107659509A/en
Application granted granted Critical
Publication of CN107659509B publication Critical patent/CN107659509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/04Registration at HLR or HSS [Home Subscriber Server]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/622Queue service order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6245Modifications to standard FIFO or LIFO

Abstract

A method for controlling application traffic usage includes: judging whether the size of a file to be transmitted by the application of the terminal equipment under a mobile data network exceeds a preset value; when the size of the file to be transmitted exceeds the preset value, judging whether the application is a white list application which opens free flow service; if the size of the file to be transmitted does not exceed the preset value or the application is a white list application, transmitting the file to be transmitted at a first speed; otherwise, transmitting the file to be transmitted at a second speed. The invention also provides a device for controlling application flow, terminal equipment and a readable storage medium. The method and the device for controlling the application traffic, the terminal device and the readable storage medium control the traffic transmitted by the application which exceeds the preset value and is not the white list, thereby being beneficial to avoiding the too fast consumption of the mobile data network traffic caused by the larger file to be transmitted.

Description

Application flow use control method and device, readable storage medium and terminal equipment
Technical Field
The present invention relates to the field of data processing, and in particular, to a method and an apparatus for controlling application traffic, a readable storage medium, and a terminal device.
Background
Different application programs are usually installed in terminal devices (such as mobile phones, tablet computers, and the like) to meet different requirements of users. However, applications in the terminal device are sometimes networked under the mobile data network (some applications upload or download videos or files with a larger capacity), so that a large amount of mobile data traffic of the user is consumed quickly, and certain inconvenience is brought to the user.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a readable storage medium and a terminal device for performing flow control in a mobile data network.
A method for controlling application traffic is applied to terminal equipment, and comprises the following steps:
judging whether the size of a file to be transmitted by the application of the terminal equipment under a mobile data network exceeds a preset value;
when the size of the file to be transmitted exceeds the preset value, judging whether the application is a white list application which opens free flow service;
if the size of the file to be transmitted does not exceed the preset value or the application is a white list application, transmitting the file to be transmitted at a first speed by using the mobile data network;
if the size of the file transmitted by the application through the mobile data network exceeds the preset value and the application is not a white list application, transmitting the file to be transmitted at a second speed through the mobile data network, and outputting prompt information to prompt whether to continue downloading; the second speed is greater than 0 and less than the first speed;
when the continuous downloading is executed, adding the application into a blacklist for limiting the use of data traffic; the applications in the blacklist refrain from using data traffic.
Further, in the method for controlling application traffic, before the determining whether the size of the file transmitted in the mobile data network exceeds a preset value, the method further includes:
acquiring each application to be transmitted in the terminal equipment;
storing each application to be transmitted in the terminal equipment in a transmission queue, wherein the transmission queue also stores the size of a file to be transmitted by each application;
and executing the transmission operation of the corresponding application from the transmission queue according to the transmission rule.
Further, in the method for controlling application traffic usage, the executing a transmission operation of a corresponding application from the transmission queue according to a transmission rule includes:
selecting the application with the minimum corresponding transmission file in the transmission queue for execution; or
And selecting the most advanced application from the transmission queue to execute according to a first-in first-out mode.
A control application traffic using device applied to a terminal device comprises:
the judging unit is used for judging whether the size of the file to be transmitted applied to the mobile network exceeds a preset value or not;
the judging unit is used for judging whether the application is a white list application which opens free flow service or not when the size of the file to be transmitted applied to the mobile network exceeds the preset value;
the adjusting unit is used for transmitting the file to be transmitted at a first speed by utilizing the mobile data network when the application is a white list application or the size of the file to be transmitted does not exceed the preset value;
the adjusting unit is further configured to transmit the file to be transmitted at a second speed by using the mobile data network when the size of the file transmitted by using the mobile data network exceeds the preset value and the application is not a white list application, where the second speed is greater than 0 and less than the first speed;
a prompting unit, configured to output a prompting message to prompt whether to continue downloading when the size of the file transmitted by the application through the mobile data network exceeds the preset value and the application is not a white list application;
the permission unit is used for adding the application into a blacklist for limiting the use of data flow when the continuous downloading is executed; the applications in the blacklist refrain from using data traffic.
Further, in the control application traffic using apparatus, the control application traffic using apparatus further includes:
an obtaining unit, configured to obtain each application to be executed with a transmission operation in the terminal device;
a queue unit, configured to store, in a transmission queue, each application that is to perform a transmission operation in the terminal device, where the transmission queue further stores a size of a file to be transmitted by each application;
and the execution unit executes the transmission operation of the corresponding application from the transmission queue according to the transmission rule.
Further, in the apparatus for controlling application traffic, the execution unit further includes:
executing application execution with the minimum transmission file in the transmission queue; or
And selecting the most advanced application from the transmission queue to execute according to a first-in first-out mode.
A readable storage medium having stored thereon a computer program which when processed implements the steps of:
judging whether the size of a file to be transmitted by the application of the terminal equipment under a mobile data network exceeds a preset value;
when the size of the file to be transmitted exceeds the preset value, judging whether the application is a white list application which opens free flow service;
if the size of the file to be transmitted does not exceed the preset value or the application is a white list application, transmitting the file to be transmitted at a first speed by using the mobile data network;
if the size of the file transmitted by the application through the mobile data network exceeds the preset value and the application is not a white list application, transmitting the file to be transmitted at a second speed through the mobile data network, wherein the second speed is greater than 0 and less than the first speed;
if the size of the file transmitted by the application through the mobile data network exceeds the preset value and the application is not the white list application, outputting prompt information to prompt whether to continue downloading;
when the continuous downloading is executed, adding the application into a blacklist for limiting the use of data traffic; the applications in the blacklist refrain from using data traffic.
A terminal device comprises a memory and a processor, wherein the memory stores a plurality of programs executed by the processor, and the processor executes the programs to realize the following steps:
judging whether the size of a file to be transmitted by the application of the terminal equipment under a mobile data network exceeds a preset value;
when the size of the file to be transmitted exceeds the preset value, judging whether the application is a white list application which opens free flow service;
if the size of the file to be transmitted does not exceed the preset value or the application is a white list application, transmitting the file to be transmitted at a first speed by using the mobile data network;
if the size of the file transmitted by the application through the mobile data network exceeds the preset value and the application is not a white list application, transmitting the file to be transmitted at a second speed through the mobile data network, and outputting prompt information to prompt whether to continue downloading; the second speed is greater than 0 and less than the first speed;
when the continuous downloading is executed, adding the application into a blacklist for limiting the use of data traffic; the applications in the blacklist refrain from using data traffic.
The method, the device, the terminal equipment and the readable storage medium for controlling the flow control are used for controlling the flow by exceeding the preset value and not being transmitted by the white list application, so that the phenomenon that the flow of a mobile data network is too fast due to the fact that a file to be transmitted is large can be avoided. In addition, the method, the apparatus, the terminal device and the readable storage medium for controlling traffic usage may further include selecting a corresponding application to perform a transmission operation according to the transmission rule, for example, preferentially selecting a corresponding application to perform a transmission operation according to a first-in first-out or a size of a file to be transmitted. In addition, the traffic control using method, the traffic control using device, the terminal device and the readable storage medium can also limit applications which exceed a preset value and are not in a white list, output prompt information, add the prompt information into a black list, further control traffic of each application, and are beneficial to avoiding excessive mobile data traffic consumed by the applications which are unknown to a user, so that better user experience is provided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for controlling application traffic usage according to a first embodiment of the present invention.
Fig. 2 is a flowchart of a method for controlling application traffic usage according to a second embodiment of the present invention.
Fig. 3 is a flowchart of a method for controlling application traffic usage according to a third embodiment of the present invention.
Fig. 4 is a block diagram of a terminal device according to a fourth embodiment of the present invention.
Fig. 5 is a schematic diagram of a preferred embodiment of the control flow utilization device of fig. 4.
Description of the main elements
Terminal device 40
Processor with a memory having a plurality of memory cells 401
Display screen 403
Memory device 405
Input/output interface 407
Flow control using device 50
Bus line 409
Judging unit 501
Adjusting unit 503
Acquisition unit 505
Queue unit 507
Execution unit 509
Prompting unit 511
Authority unit 513
The following specific embodiments will further illustrate the invention in conjunction with the above-described figures.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Example one
Referring to fig. 1, a schematic flow chart of a method for controlling traffic according to an embodiment of the present invention is shown. The method is applied to terminal equipment, and the terminal equipment can be a mobile phone, a tablet personal computer and other terminals with a data processing function. As shown in fig. 1, the control flow usage method may include the steps of:
step S100, judging whether the size of a file to be transmitted by the application of the terminal equipment under the mobile data network exceeds a preset value. When the size of the file to be transmitted exceeds the preset value, executing the step S102; and executing the step S104 when the size of the file to be transmitted does not exceed the preset value.
It is understood that the mobile data network includes, but is not limited to, a 2G, 3G, 4G, or 5G data network, and a user may incur a fee for transferring files (including, but not limited to, uploading and/or downloading files) through the mobile data network. Thus, the size of the file to be transmitted (including but not limited to audio and/or video files) may affect the cost. In this embodiment, the file to be transmitted may be a file being transmitted or a file that has not been transmitted. When the file to be transmitted is a file being transmitted, the size of the file to be transmitted can be the length of a part which is not transmitted in the file being transmitted; and when the file to be transmitted is a file which is not transmitted, the size of the file to be transmitted is the length of the file. In another embodiment, when the terminal enters the mobile data network from a Wi-Fi wireless network, the size of the file to be transmitted may be the length of a file that is not transmitted in the file to be transmitted when the terminal enters the mobile data network from the Wi-Fi wireless network.
The terminal device may be a digital processing device with an operating system, and the terminal device may be installed with a plurality of applications (applications) to enrich the Application range of the terminal device and enhance the practicability of the terminal device. In this embodiment, the terminal device may be installed with a first application, a second application, and a third application. It can be understood that the first application may perform a transmission operation on a first file to be transmitted, the second application may perform a transmission operation on a second file to be transmitted, and the third application may perform a transmission operation on a third file to be transmitted.
In this embodiment, the transmission operation includes an upload operation and a download operation, and the size of the file to be transmitted can be obtained when the terminal device executes the transmission operation. In an embodiment, a first application, a second application, and a third application of the terminal device perform an upload operation on a file to be transmitted stored in the terminal device (for example, upload the file to be transmitted stored in the terminal device to a server), and the terminal device may transmit the size of the file to be transmitted to the server, so that the server may allocate a corresponding storage space according to the size of the file to be transmitted; in another embodiment, the first application, the second application, and the third application of the terminal device may obtain the file to be transmitted from being stored in a server to perform a downloading operation, and the terminal device may obtain information corresponding to the size of the file to be transmitted, which is transmitted by the server, so as to allocate a corresponding storage space according to the information corresponding to the size of the file to be transmitted.
In this embodiment, the terminal device may set a preset value, and may compare the size of the file to be transmitted with the preset value, so as to adjust the speed of transmitting the file to be transmitted according to the size of the file to be transmitted and the preset value, thereby reducing the cost generated by transmission in the mobile data network as much as possible. For example, in an embodiment, the size of the first file to be transmitted corresponding to the first application may exceed the preset value, and at this time, the first application in the terminal device may enter step S102 when performing a transmission operation; the size of a second file to be transmitted corresponding to the second application may not exceed the preset value, and at this time, the second application in the terminal device may enter step S104 when performing a transmission operation; the size of the third file to be transmitted corresponding to the third application may exceed the preset value, and at this time, the step S102 may be performed when the third application in the terminal device performs a transmission operation.
Step S102, judging whether the application is a white list application which opens free flow service. When the application is a white list application which opens a free traffic service, executing step S104; when the application is not a white list application for which a free traffic service is opened, step S106 is performed.
In this embodiment, the terminal device may include a white list application list, and the white list application list may include one or more white list applications (for example, the first application may be included in the white list application list, and the third application is not included in the white list application list), where the application representation in the white list application list may not control or reduce traffic consumed by the application representation in performing the transmission operation, and the application representation may perform the transmission operation at a higher speed (for example, full-speed transmission). In this embodiment, when the size of the file to be transmitted exceeds the preset value, the terminal device may further determine whether the application is a white list application that opens a free traffic service.
For example, when the first application performs the transmission operation on the first file to be transmitted, the terminal device may determine that the first application is a white list application of a free traffic service because the first application is a white list application, and at this time, the terminal device may perform step S104; when the third application performs the transmission operation on the third file to be transmitted, the terminal device may perform step S106 because the third application is not in the whitelist application list.
Step S104, transmitting the file at a first speed by using the mobile data network.
In this embodiment, if the size of the file to be transmitted does not exceed the preset value or the application is a white list application, the application may transmit the file to be transmitted at the first speed under the mobile data network, where the first speed may be full speed or half of full speed. For example, when the second application performs the transmission operation on the second file to be transmitted, the terminal device may transmit the second file to be transmitted at the first speed by using the mobile data network because the size of the second file to be transmitted does not exceed the preset value. In addition, since the first application is a white list application of free traffic service, the terminal device may also transmit the first file to be transmitted at the first speed by using the mobile data network.
Step S106, the mobile data network is used for transmitting the file at a second speed.
In this embodiment, if the size of the file transmitted by the application using the mobile data network exceeds the preset value and the application is not a white list application, the application may transmit the file to be transmitted at the second speed under the mobile data network, where the second speed is greater than or equal to 0 and less than the first speed. For example, the size of the third file to be transmitted exceeds the preset value, and the third application does not belong to the white list application, so that the terminal device can transmit the third file to be transmitted at the second speed by using the mobile data network.
In another embodiment, before step S100, the method may further include determining whether the terminal device is switched from a network that is not traffic charging, such as a Wi-Fi wireless network, to the mobile data network; when the terminal device is converted from a non-flow charging network to the mobile data network, because the transmission speed of the terminal device in the non-flow charging network is possibly higher, in order to reduce the over-high consumption of switching to the mobile data network flow caused by the larger file to be transmitted, the terminal device can transmit the file to be transmitted at a third speed by using the mobile data network, wherein the third speed can be not greater than the transmission speed under the non-flow charging network. Thereafter, the step S100 may be performed again.
The method for using the control flow is beneficial to reducing the consumption of the mobile data network flow which is too fast possibly caused by larger files to be transmitted by controlling the flow which exceeds the preset value and is not transmitted by the white list application.
Example two
Referring to fig. 2, a schematic flow chart of a method for controlling traffic according to a second embodiment of the present invention is shown. The method is applied to terminal equipment, and the terminal equipment can be a mobile phone, a tablet personal computer and other terminals with a data processing function. As shown in fig. 2, the control flow using method may include the steps of:
step S200, acquiring each application to be executed with transmission operation in the terminal device.
In this embodiment, each application in the terminal device may request the operating system to execute the transmission operation simultaneously or according to the time sequence. Therefore, when each application requests the operating system of the terminal device to perform a transmission operation, the terminal device can obtain the application to be performed with the transmission operation.
Step S202, storing each application to be executed with transmission operation in the terminal device in a transmission queue.
The terminal device may include a transmission queue, and the transmission queue includes an application to be executed with a transmission operation. In this embodiment, the terminal device may store an identifier of an application that is to execute file transmission in the transmission queue, where the transmission queue further stores sizes of files to be transmitted by the applications. For example, the terminal device may store a first length corresponding to the first file to be transmitted in the transmission queue, may also store a second length corresponding to the second file to be transmitted in the transmission queue, and may also store a third length corresponding to the third file to be transmitted in the transmission queue.
In an embodiment, the first length is greater than the second length, which is greater than the third length.
And step S204, executing the transmission operation of the corresponding application from the transmission queue according to the transmission rule.
Preferably, the transmission rules include, but are not limited to: selecting the application with the minimum corresponding transmission file in the transmission queue for execution; and selecting the most advanced application from the transmission queue to execute according to a first-in first-out mode.
In an embodiment, the terminal device may select an application with the smallest corresponding transmission file from the transmission queue to execute. For example, when the first application, the second application and the third application are stored in the transmission queue, the terminal device may select the third application with the smallest corresponding transmission file to execute because the first length is greater than the second length and the second length is greater than the third length.
In another embodiment, the terminal device may also select the most advanced application from the transmission queue to execute according to a first-in-first-out manner. For example, at a first time, the first application is stored in the transmit queue; at a second time, the second application is stored in the transmission queue; the third application is stored in the transmit queue at a third time, with the first time being earlier than the second time and the second time being earlier than the third time. Therefore, according to the transmission rule, the terminal device may select the first application that comes most in the future to perform, for example, may perform a transmission operation corresponding to the first file to be transmitted.
Step S206, judging whether the size of the file to be transmitted by the application of the terminal equipment under the mobile data network exceeds a preset value. When the size of the file to be transmitted exceeds the preset value, executing step S208; and executing the step S210 when the size of the file to be transmitted does not exceed the preset value.
In this embodiment, step S206 is the same as step S100 in the first embodiment, and please refer to the related description of step S100 in the first embodiment, which is not repeated herein.
And step S208, judging whether the application is a white list application which opens free flow service. When the application is a white list application which opens a free traffic service, executing step S210; when the application is not a white-name ticket application for which the free traffic service is opened, step S212 is performed.
In this embodiment, step S208 is the same as step S102 in the first embodiment, and please refer to the related description of step S102 in the first embodiment, which is not repeated herein.
Step S210, transmitting the file at a first speed by using the mobile data network.
In this embodiment, step S210 is the same as step S104 in the first embodiment, and please refer to the related description of step S104 in the first embodiment, which is not described herein again.
Step S212, transmitting the file at a second speed by using the mobile data network.
In this embodiment, step S212 is the same as step S106 in the first embodiment, and please refer to the related description of step S106 in the first embodiment, which is not repeated herein.
The method for using the control traffic provided in this embodiment has the technical effect of the first embodiment, and may further include selecting a corresponding application to perform a transmission operation according to a transmission rule, for example, preferentially selecting a corresponding application to perform a transmission operation according to a first-in first-out or a size of a file to be transmitted, so as to provide better user experience.
EXAMPLE III
Referring to fig. 3, a schematic flow chart of a method for controlling traffic according to a third embodiment of the present invention is shown. The method is applied to terminal equipment, and the terminal equipment can be a mobile phone, a tablet personal computer and other terminals with a data processing function. As shown in fig. 3, the control flow using method may include the steps of:
step S300, judging whether the size of the file to be transmitted by the application of the terminal equipment under the mobile data network exceeds a preset value. When the size of the file to be transmitted exceeds the preset value, executing step S302; when the size of the file to be transmitted does not exceed the preset value, step S304 is executed.
In this embodiment, step S300 is the same as step S100 in the first embodiment, and please refer to the related description of step S100 in the first embodiment, which is not repeated herein.
Step S302, judging whether the application is a white list application which opens free flow service. When the application is a white list application with free traffic service opened, executing step S304; when the application is not a white list application for which a free traffic service is opened, step S306 is performed.
In this embodiment, step S302 is the same as step S102 in the first embodiment, and please refer to the related description of step S102 in the first embodiment, which is not repeated herein.
Step S304, transmitting the file at a first speed by using the mobile data network.
In this embodiment, step S304 is the same as step S104 in the first embodiment, and please refer to the related description of step S104 in the first embodiment, which is not described herein again.
Step S306, transmitting the file at a second speed by using the mobile data network.
In this embodiment, step S306 is the same as step S106 in the first embodiment, and please refer to the related description of step S106 in the first embodiment, which is not described herein again.
And S308, outputting prompt information, and adding the application into a blacklist for limiting the use of data traffic.
It can be understood that, when the size of the file to be transmitted exceeds the preset value and the application corresponding to the file to be transmitted is not a white list application, the terminal device transmits the file to be transmitted at the second speed by using the mobile data network, and at this time, the terminal device may output a prompt message to prompt the user whether to continue downloading or not, and may also prompt the user to have an application with a large flow rate. For example, the size of the third file to be transmitted exceeds the preset value, and the third application does not belong to the white list application, so that the terminal device can transmit the third file to be transmitted at the second speed by using the mobile data network, and at this time, the terminal device can output corresponding prompt information.
It is to be understood that the terminal device may also include a blacklisted application list, which may include applications that restrict use of data traffic (e.g., that are prohibited from using data traffic). In this embodiment, the size of the third file to be transmitted exceeds the preset value, and the third application does not belong to the white list application, so that the terminal device can transmit the third file to be transmitted at the second speed by using the mobile data network, at this time, the terminal device can output corresponding prompt information, and when the terminal device does not continue downloading, the terminal device adds the application into a black list that restricts the data traffic, that is, the third application is listed in the black list.
The method for using the control traffic provided by this embodiment has the technical effect of the first embodiment, and can also limit applications that exceed a preset value and are not in a white list, output prompt information, and add the prompt information into a black list, so as to further control traffic of each application, which is beneficial to avoiding that too much mobile data traffic is consumed by applications that may be unknown to a user, and further provide better user experience.
Example four
Please refer to fig. 4, which is a schematic structural diagram of an electronic device applicable to the above embodiments according to an embodiment of the present invention. As shown in fig. 4, the terminal device 40 may include a control traffic usage apparatus 50. The terminal device 40 may be an electronic device with a data processing function, such as a mobile phone, a tablet computer, or a computer. The traffic control using apparatus 50 may control the mobile data used by the terminal device according to the size of the file to be transmitted and whether the file is a white list application, so as to provide a better use experience for the user of the terminal device.
The terminal device 40 is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware thereof includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The terminal device 40 may be, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game machine, an intelligent wearable device, and the like.
The Network where the terminal device 40 is located includes, but is not limited to, the internet, a wide area Network, a metropolitan area Network, a local area Network, a Virtual Private Network (VPN), and the like, for example, the terminal device 40 may input the output interface 407 to access the internet, the wide area Network, the metropolitan area Network, the local area Network, and the Virtual Private Network.
The memory 405 may be various types of memory devices or computer-readable storage media for storing various types of data. For example, the memory may be a memory of the terminal device 40, and may also be a memory Card that can be externally connected to the terminal device 50, such as a flash memory, an SM Card (Smart Media Card), an SD Card (Secure Digital Card), and the like. The memory 405 is used to store various types of data, for example, information such as application programs (Applications) including information processing installed in the terminal device 40, data set and acquired by applying the above-described information processing method, and the like.
The processor 401 is configured to execute the interaction method and various types of software installed in the terminal device 40, such as an operating system, information processing software, and the like. The processor 401 includes, but is not limited to, a Central Processing Unit (CPU), a Micro Controller Unit (MCU), and other devices for interpreting computer instructions and Processing data in computer software, and may include one or more microprocessors and digital processors. The display 403 may be a touch screen or other device for displaying pictures.
In this embodiment, the display screen 403 is a display screen with a touch function, so as to provide convenience for the user to operate. The memory 405 may store program code for execution by the processor 401 to implement the functions of the control flow consumer 50.
As shown in fig. 5, the control traffic utilization device 50 included in the terminal device 40 may include one or more modules/units, and the one or more modules may be stored in the memory 405 of the terminal device 40 and configured to be executed by one or more processors (in this embodiment, a processor 401) to complete the present invention. The modules/units referred to in the present invention are program segments performing a specific function, and are more suitable than programs for describing the execution process of software in a processor.
It is understood that, corresponding to the embodiments of the control flow usage method described above, the control flow usage device 50 may include some or all of the functional modules shown in fig. 5, and the functions of the modules will be described in detail below. It should be noted that the same noun and its specific explanation in each embodiment of the above report generation method can also be applied to the following functional description of each module. For brevity and to avoid repetition, further description is omitted.
As shown in fig. 5, the control traffic using apparatus 50 may include a determining unit 501, an adjusting unit 503, an obtaining unit 505, a queue unit 507, an executing unit 509, a prompting unit 511, and an authority unit 513. The unit referred to in the present invention is a series of computer program segments capable of being executed by a processing device and performing a fixed function, and is stored in a storage device.
In the embodiments provided in the present invention, it should be understood that the disclosed interaction method and apparatus can be implemented in other ways. For example, the above-described embodiment of the message notification processing apparatus is merely illustrative, and for example, the division of the modules is only one logical function division, and there may be another division manner in actual implementation.
In addition, each functional module in each embodiment of the present invention may be integrated into the same processing module, or each module may exist alone physically, or two or more modules may be integrated into the same module. The integrated module can be realized in a hardware form, and can also be realized in a form of hardware and a software functional module.
The determining unit 501 may be configured to determine whether a size of a file to be transmitted by the application of the terminal device 40 in the mobile data network exceeds a preset value. When the size of the file to be transmitted exceeds the preset value, the determining unit 501 may further be configured to determine whether the application is a white list application that opens a free traffic service.
The adjusting unit 503 is configured to transmit the file at a first speed by using the mobile data network when the application is a white list application or the size of the file to be transmitted does not exceed the preset value; the adjusting unit 503 may also transmit the file at a second speed using the mobile data network when the size of the file transmitted by the application using the mobile data network exceeds the preset value and the application is not a white list application.
It is understood that the mobile data network includes, but is not limited to, a 2G, 3G, 4G, or 5G data network, and a user may incur a fee for transferring files (including, but not limited to, uploading and/or downloading files) through the mobile data network. Thus, the size of the file to be transmitted (including but not limited to audio and/or video files) may affect the cost. In this embodiment, the file to be transmitted may be a file being transmitted or a file that has not been transmitted. When the file to be transmitted is a file being transmitted, the size of the file to be transmitted can be the length of a part which is not transmitted in the file being transmitted; and when the file to be transmitted is a file which is not transmitted, the size of the file to be transmitted is the length of the file.
In this embodiment, the terminal device 40 may be installed with a first application, a second application, and a third application. It can be understood that the first application may perform a transmission operation on a first file to be transmitted, the second application may perform a transmission operation on a second file to be transmitted, and the third application may perform a transmission operation on a third file to be transmitted.
In this embodiment, the transmission operation may include an upload operation and a download operation, and the terminal device 40 may obtain the size of the file to be transmitted when executing the transmission operation. In an embodiment, the first application, the second application, and the third application of the terminal device 40 perform an upload operation on a file to be transmitted stored in the terminal device 40 (for example, upload the file to be transmitted stored in the terminal device 40 to a server), and the terminal device 40 may transmit the size of the file to be transmitted to the server, so that the server may allocate a corresponding storage space according to the size of the file to be transmitted; in another embodiment, the first application, the second application, and the third application of the terminal device 40 may obtain the file to be transmitted from being stored in a server to perform a downloading operation, and the terminal device 40 may obtain information corresponding to the size of the file to be transmitted, which is transmitted by the server, so as to allocate a corresponding storage space according to the information corresponding to the size of the file to be transmitted.
In this embodiment, the determining unit 501 may set a preset value, and compare the size of the file to be transmitted with the preset value, so as to adjust the speed of transmitting the file to be transmitted according to the size of the file to be transmitted and the preset value, thereby reducing the cost generated by transmission in the mobile data network as much as possible. For example, in an embodiment, the size of the first file to be transmitted corresponding to the first application may exceed the preset value, and at this time, the determining unit 501 may further determine whether the first application is a white list application that opens a free traffic service.
In this embodiment, the terminal device 40 may include a white list application list, and the white list application list may include one or more white list applications (e.g., the first application may be included in the white list application list, and the third application is not included in the white list application list), where the application representation in the white list application list may not control or reduce the traffic consumed by the application representation when performing the transmission operation, and the application representation may transmit at a higher speed (e.g., full-speed transmission) when performing the transmission operation. In this embodiment, when the size of the file to be transmitted exceeds the preset value, the determining unit 501 may further determine whether the application is a white list application that opens a free traffic service.
For example, when the first application performs the transmission operation on the first file to be transmitted, since the first application is a white list application, the determining unit 501 may determine that the first application is a white list application of free traffic service, and at this time, the adjusting unit 503 transmits the first file to be transmitted at a first speed by using the mobile data network; when the third application performs the transmission operation on the third file to be transmitted, because the third application is not in the white list application list, the adjusting unit 503 transmits the third file to be transmitted at a second speed by using the mobile data network. In this embodiment, the first speed may be full speed or one-half of full speed, and the second speed is greater than or equal to 0 and less than the first speed.
In an embodiment, the obtaining unit 505 is configured to obtain each application that is to perform a transmission operation in the terminal device.
In this embodiment, each application in the terminal device may request the operating system to execute the transmission operation simultaneously or according to the time sequence. Therefore, when each application requests the operating system of the terminal device to perform a transmission operation, the obtaining unit 505 may obtain the application to be performed with the transmission operation.
The queue unit 507 is configured to store, in a transmission queue, each application that is to perform a transmission operation in the terminal device.
The terminal device may include a transmission queue, and the transmission queue includes an application to be executed with a transmission operation. In this embodiment, the queue unit 507 may store the identifier of the application that is to execute the file transmission in the transmission queue, where the transmission queue further stores the size of the file to be transmitted by each application. For example, the queue unit 507 may store a first length corresponding to the first file to be transmitted in the transmission queue, may also store a second length corresponding to the second file to be transmitted in the transmission queue, and may also store a third length corresponding to the third file to be transmitted in the transmission queue.
In an embodiment, the first length is greater than the second length, which is greater than the third length.
The execution unit 509 is configured to execute a transmission operation of a corresponding application from the transmission queue according to a transmission rule.
Preferably, the transmission rules include, but are not limited to: selecting the application with the minimum corresponding transmission file in the transmission queue for execution; and selecting the most advanced application from the transmission queue to execute according to a first-in first-out mode.
In an embodiment, the execution unit 509 may select an application with the smallest corresponding transmission file from the transmission queue to execute. For example, when the first application, the second application and the third application are stored in the transmission queue, the terminal device may select the third application with the smallest corresponding transmission file to execute because the first length is greater than the second length and the second length is greater than the third length.
In another embodiment, the execution unit 509 may also select the most advanced application from the transmission queue to execute according to a first-in-first-out manner. For example, at a first time, the first application is stored in the transmit queue; at a second time, the second application is stored in the transmission queue; the third application is stored in the transmit queue at a third time, with the first time being earlier than the second time and the second time being earlier than the third time. Therefore, according to the transmission rule, the execution unit 509 may select the most advanced first application to execute, for example, may execute the transmission operation corresponding to the first file to be transmitted.
It can be understood that, when the size of the file to be transmitted exceeds the preset value and the application corresponding to the file to be transmitted is not a white list application, the terminal device transmits the file to be transmitted at the second speed by using the mobile data network, and at this time, the prompting unit 511 may output a prompting message to prompt the user whether to continue downloading or not, and may also prompt the user to have an application with a large flow consumption. For example, the size of the third file to be transmitted exceeds the preset value, and the third application does not belong to the white list application, so that the prompting unit 511 can transmit the third file to be transmitted at the second speed by using the mobile data network, and at this time, the prompting unit 511 can output corresponding prompting information.
It is to be understood that the terminal device may also include a blacklisted application list, which may include applications that restrict use of data traffic (e.g., that are prohibited from using data traffic). In this embodiment, the size of the third file to be transmitted exceeds the preset value, and the third application does not belong to the white list application, so that the terminal device can transmit the third file to be transmitted at the second speed by using the mobile data network, at this time, the terminal device can output corresponding prompt information, and when the execution does not continue downloading, the permission unit 513 adds the application to a black list that restricts the data traffic, that is, the third application is listed in the black list.
The flow control using device is used for controlling the flow transmitted by the application which exceeds the preset value and is not the white list, so that the phenomenon that the flow of the mobile data network is too fast due to the fact that the file to be transmitted is large can be avoided. In addition, the device for using control traffic may further include a function of selecting a corresponding application to perform a transmission operation according to the transmission rule, for example, the corresponding application is preferentially selected to perform the transmission operation according to the first-in first-out or the size of the file to be transmitted. In addition, the flow control using device can also limit applications which exceed a preset value and are not in a white list, output prompt information, add the prompt information into a black list, further control the flow of each application, and be beneficial to avoiding excessive mobile data flow which is consumed by the applications and is unknown to a user, thereby providing better user experience.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. Several units or systems recited in the system claims may also be implemented by one and the same unit or system in software or hardware.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (8)

1. A method for controlling application traffic is applied to terminal equipment, and is characterized in that the method for controlling application traffic comprises the following steps:
judging whether the size of a file to be transmitted by the application of the terminal equipment under a mobile data network exceeds a preset value;
when the size of the file to be transmitted exceeds the preset value, judging whether the application is a white list application which opens free flow service;
if the size of the file to be transmitted does not exceed the preset value or the application is a white list application, transmitting the file to be transmitted at a first speed by using the mobile data network;
if the size of the file transmitted by the application through the mobile data network exceeds the preset value and the application is not a white list application, transmitting the file to be transmitted at a second speed through the mobile data network, and outputting prompt information to prompt whether to continue downloading; the second speed is greater than 0 and less than the first speed;
when the continuous downloading is executed, adding the application into a blacklist for limiting the use of data traffic; the applications in the blacklist refrain from using data traffic.
2. The method for controlling application traffic according to claim 1, wherein before determining whether the size of the file transferred in the mobile data network exceeds a predetermined value, the method further comprises:
acquiring each application to be transmitted in the terminal equipment;
storing each application to be transmitted in the terminal equipment in a transmission queue, wherein the transmission queue also stores the size of a file to be transmitted by each application;
and executing the transmission operation of the corresponding application from the transmission queue according to the transmission rule.
3. The method of controlling application traffic usage according to claim 2, wherein said performing a transmission operation of a corresponding application from the transmission queue according to a transmission rule comprises:
selecting the application with the minimum corresponding transmission file in the transmission queue for execution; or
And selecting the most advanced application from the transmission queue to execute according to a first-in first-out mode.
4. A device for using control application flow, which is applied to a terminal device, is characterized in that the device for using control application flow comprises:
the judging unit is used for judging whether the size of the file to be transmitted applied to the mobile network exceeds a preset value or not;
the judging unit is used for judging whether the application is a white list application which opens free flow service or not when the size of the file to be transmitted applied to the mobile network exceeds the preset value;
the adjusting unit is used for transmitting the file to be transmitted at a first speed by utilizing the mobile data network when the application is a white list application or the size of the file to be transmitted does not exceed the preset value;
the adjusting unit is further configured to transmit the file to be transmitted at a second speed by using the mobile data network when the size of the file transmitted by using the mobile data network exceeds the preset value and the application is not a white list application, where the second speed is greater than 0 and less than the first speed;
a prompting unit, configured to output a prompting message to prompt whether to continue downloading when the size of the file transmitted by the application through the mobile data network exceeds the preset value and the application is not a white list application;
the permission unit is used for adding the application into a blacklist for limiting the use of data flow when the continuous downloading is executed; the applications in the blacklist refrain from using data traffic.
5. The control application traffic usage device of claim 4, wherein the control application traffic usage device further comprises:
an obtaining unit, configured to obtain each application to be executed with a transmission operation in the terminal device;
a queue unit, configured to store, in a transmission queue, each application that is to perform a transmission operation in the terminal device, where the transmission queue further stores a size of a file to be transmitted by each application;
and the execution unit executes the transmission operation of the corresponding application from the transmission queue according to the transmission rule.
6. The control application traffic using apparatus of claim 4, wherein the execution unit further comprises:
executing application execution with the minimum transmission file in the transmission queue; or
And selecting the most advanced application from the transmission queue to execute according to a first-in first-out mode.
7. A readable storage medium having stored thereon a computer program, wherein the computer program is adapted to carry out the steps of the method of controlling application traffic usage according to any of claims 1-3 when executed.
8. A terminal device comprising a memory and a processor, the memory storing a plurality of programs for execution by the processor, wherein the processor implements the steps of the method for controlling application traffic usage of any of claims 1-3 when executing the programs.
CN201710776144.XA 2017-08-31 2017-08-31 Application flow use control method and device, readable storage medium and terminal equipment Active CN107659509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710776144.XA CN107659509B (en) 2017-08-31 2017-08-31 Application flow use control method and device, readable storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710776144.XA CN107659509B (en) 2017-08-31 2017-08-31 Application flow use control method and device, readable storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN107659509A CN107659509A (en) 2018-02-02
CN107659509B true CN107659509B (en) 2021-03-16

Family

ID=61129116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710776144.XA Active CN107659509B (en) 2017-08-31 2017-08-31 Application flow use control method and device, readable storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN107659509B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377203A (en) * 2018-02-11 2018-08-07 中国联合网络通信集团有限公司 Differentiation flow service providing method based on order business and device
CN110708747A (en) * 2019-09-18 2020-01-17 Tcl移动通信科技(宁波)有限公司 Data transmission rate adjusting method, system, storage medium and mobile terminal
CN113225738A (en) * 2021-07-08 2021-08-06 智道网联科技(北京)有限公司 Flow control method and device of vehicle-mounted terminal
CN114745572B (en) * 2022-04-14 2023-06-13 中国联合网络通信集团有限公司 Video cache control method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101138A (en) * 2014-05-23 2015-11-25 宇龙计算机通信科技(深圳)有限公司 Method and system for controlling traffic, and terminal
CN105978962A (en) * 2016-05-09 2016-09-28 珠海市魅族科技有限公司 Download task control method and device
CN106657153A (en) * 2017-02-07 2017-05-10 深圳市金立通信设备有限公司 Network data downloading method and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9124506B2 (en) * 2013-06-07 2015-09-01 Brocade Communications Systems, Inc. Techniques for end-to-end network bandwidth optimization using software defined networking
CN104967624B (en) * 2015-06-30 2019-02-12 北京奇虎科技有限公司 It is a kind of based on method, mobile terminal and the system of exempting from flow platform access network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101138A (en) * 2014-05-23 2015-11-25 宇龙计算机通信科技(深圳)有限公司 Method and system for controlling traffic, and terminal
CN105978962A (en) * 2016-05-09 2016-09-28 珠海市魅族科技有限公司 Download task control method and device
CN106657153A (en) * 2017-02-07 2017-05-10 深圳市金立通信设备有限公司 Network data downloading method and terminal

Also Published As

Publication number Publication date
CN107659509A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN107659509B (en) Application flow use control method and device, readable storage medium and terminal equipment
EP3764220B1 (en) Automatic application updates
CN109840142B (en) Thread control method and device based on cloud monitoring, electronic equipment and storage medium
WO2017166643A1 (en) Method and device for quantifying task resources
CN110932994B (en) Data traffic processing method and device, electronic equipment and storage medium
CN111224806A (en) Resource allocation method and server
CN110290399B (en) Data distribution method, system, device and computer readable storage medium
CN106970816B (en) Software upgrading processing method and device and audio playing equipment
CN107948097B (en) Bandwidth adjusting method and equipment
CN105577573B (en) Information processing method and electronic equipment
CN104202305A (en) Transcoding processing method and device, server
CN108777810B (en) Video data storage method, device, equipment and storage medium
CN114911385A (en) Secure sharing of multiple applications during a remote session
CN109951737B (en) Video processing method, video processing device, electronic equipment and computer-readable storage medium
CN106648729B (en) Application freezing method and system
CN110888733A (en) Cluster resource use condition processing method and device and electronic equipment
CN109240790B (en) Multi-window management method and system and android terminal
CN114546171A (en) Data distribution method, data distribution device, storage medium and electronic equipment
CN114520807A (en) File uploading and downloading method and device, computer equipment and storage medium
CN113162982B (en) Buried point information reporting method and device and electronic equipment
CN117056915B (en) File detection method and device, medium and electronic equipment
CN113687870B (en) Terminal operation optimization method and device, storage medium and terminal
CN116566992B (en) Dynamic collaboration method, device, computer equipment and storage medium for edge calculation
CN115002133B (en) Data transmission determining method and device based on multiple interfaces
CN112422613B (en) Data processing method, data processing platform and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant