WO2018145236A1 - Flow control method and device - Google Patents

Flow control method and device Download PDF

Info

Publication number
WO2018145236A1
WO2018145236A1 PCT/CN2017/073026 CN2017073026W WO2018145236A1 WO 2018145236 A1 WO2018145236 A1 WO 2018145236A1 CN 2017073026 W CN2017073026 W CN 2017073026W WO 2018145236 A1 WO2018145236 A1 WO 2018145236A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
data network
traffic value
cellular data
traffic
Prior art date
Application number
PCT/CN2017/073026
Other languages
French (fr)
Chinese (zh)
Inventor
廖建强
Original Assignee
廖建强
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 廖建强 filed Critical 廖建强
Priority to PCT/CN2017/073026 priority Critical patent/WO2018145236A1/en
Publication of WO2018145236A1 publication Critical patent/WO2018145236A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/06Access restriction performed under specific conditions based on traffic conditions

Definitions

  • the present invention relates to the field of mobile internet, and in particular, to a flow control method and apparatus.
  • a technical problem to be solved by embodiments of the present invention is to provide a flow control method and apparatus. Prevents users from using directional traffic packets that exceed the standard.
  • an embodiment of the present invention provides a flow control method, including:
  • the scanned application is prohibited from connecting to the cellular data network.
  • the embodiment of the invention further provides a flow control device, comprising:
  • An acquisition module for obtaining a targeted application list and a directed traffic value from a carrier server
  • a scanning module configured to scan a locally installed application located in the targeted application list
  • a statistics module configured to count, in a preset time period, a total cellular data network traffic value consumed by the scanned application
  • control module configured to prohibit, if the total cellular data network traffic value is greater than the directional traffic value
  • the scanned application connects to a cellular data network.
  • the terminal can automatically monitor the value of the cellular data traffic of the locally installed targeted application within a preset time.
  • the cellular data traffic value reaches the pre-customized directional traffic value, the locally installed targeted application is prohibited from networking, and the user is prevented from using the traffic exceeding the standard.
  • FIG. 1 is a schematic flowchart of a flow control method according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a flow control device according to an embodiment of the present invention.
  • FIG. 3 is another schematic structural diagram of a flow control device according to an embodiment of the present invention.
  • FIG. 1 is a flow control method according to an embodiment of the present invention.
  • the method includes:
  • the terminal sends a service provisioning request for the directed traffic packet to the operator server, and when the operator server receives the service provisioning request, the terminal opens the directed traffic packet, and sends the opening confirmation response carrying the directed application list and the directed traffic value to the terminal.
  • the targeted application list includes an application corresponding to the directed traffic package, the application can be used for the program identifier to represent, and the program identifier is used to uniquely represent the identity of the application, and can be represented by a number + character, and the directed traffic value is represented.
  • the total traffic value that each application corresponding to the application list is allowed to consume.
  • the targeted application list includes app_ID: 1a2cd4, corresponding to application 1; app_ID: d3g2ge, corresponding application 2; app_ID: id34hw, corresponding to application 3, the directional traffic value is 1 Gbyte, indicating that the total traffic value allowed by Application 1, Application 2, and Application 3 is 1 Gbyte.
  • S102 Scan a locally installed application located in the targeted application list.
  • the terminal sequentially scans all the locally installed applications, determines whether the scanned application is located in the targeted application list, and if so, marks the application, and performs the above steps cyclically until the terminal is installed. All apps.
  • the targeted application list includes Application 1, Application 2, and Application 3.
  • the applications installed locally by the terminal are: Application 1, Application 3, Application 4, Application 5, and Application 6. Then the terminal determines that the locally installed applications located in the directed program list are Application 1 and Application 3.
  • the terminal may obtain a deduction time period of the directional traffic packet from the operator server, and use the preset time period as a preset time period, and the operator's deduction time period is a one-month period, for example, the directional traffic packet is opened.
  • the date is May 5th
  • the deduction time is short from May 5th to June 5th, June 5th to July 5th, with a month period and so on;
  • the preset time period can be User preset.
  • the terminal counts the total cellular data network traffic value consumed by the scanned application within a preset time period.
  • the number of cellular networks represents the traffic consumed by the cellular data network, and the cellular data network may be: GPRS traffic, 3G traffic, or 4G traffic.
  • the terminal separately counts the total cellular data traffic values of Application 1 and Application 3 during the current deduction period.
  • the directional traffic value is 1 Gbyte
  • the terminal counts that the sum of the cellular data network traffic values of the application 1 and the application 3 in the current deduction period is greater than 1 Gbyte, and the terminal prohibits the application 1 and the application.
  • Program 3 connects to the cellular data network. Further, if the terminal does not open other traffic packets, the terminal can prohibit all applications from connecting to the cellular data network.
  • the method further includes:
  • the terminal receives the networking request of the application, and determines the current data network type. If it is a cellular data network, the network is prohibited, and if it is a non-cellular data network, such as a wireless local area network. The terminal allows the application to connect to the data network.
  • the method further includes:
  • the alarm prompt information is displayed; wherein the traffic threshold is smaller than the directional traffic value.
  • the preset traffic value is smaller than the directional traffic value, and the terminal displays the alarm information, and the alarm information prompts the user to the current
  • the directional traffic value of the directional traffic packet is about to be used, and the terminal can apply for a new directional traffic packet.
  • the method before the obtaining the targeted application list and the directed traffic value from the operator server, the method further includes:
  • the traffic threshold is smaller than the directional traffic value.
  • the directional traffic value is 1 Gbyte
  • the traffic threshold is 900 Mbytes.
  • the preset time period indicates a deduction time period, and the deduction time is a short time span of 1 month.
  • the start time of the preset time period is from 0:00 on April 7 to 0:00 on May 7th.
  • the scanning the locally installed application located in the directed application list includes:
  • the program identifier is used to uniquely represent the identity of the application, different applications or different versions of the application have different program identifiers, the terminal obtains the program identifier of each application in the directed program list, and scans the locally installed application. Whether the program identification exists in the list of targeting programs, thereby determining the locally installed targeted application.
  • the terminal can automatically monitor the value of the cellular data flow of the locally installed directed application within a preset time, and prohibit the locally installed targeted application when the cellular data flow value reaches the pre-customized directional flow value. Networking to prevent users from using excessive traffic.
  • FIG. 2 is a schematic structural diagram of a flow control device according to an embodiment of the present invention.
  • the terminal in the embodiment of the present invention is used to execute a flow control device in FIG. 1 , and the terms and processes involved may be implemented with reference to FIG. 1 .
  • the flow control device 2 includes an acquisition module 201, a scanning module 202, a statistics module 203, and a control module 204.
  • the obtaining module 201 is configured to obtain a targeted application list and a directed traffic value from the operator server.
  • the scanning module 202 is configured to scan a locally installed application located in the targeted application list.
  • the statistics module 203 is configured to count the total cellular data network traffic value consumed by the scanned application within a preset time period.
  • the control module 204 is configured to prohibit the scanned application from connecting to the cellular data network if the total cellular data network traffic value is greater than the directional traffic value.
  • the flow control device 2 further includes:
  • a networking module configured to receive a networking request of an application of the scanned application
  • the flow control device 2 further includes:
  • the alarm module is configured to display alarm prompt information if the total cellular data network traffic value is greater than a preset traffic threshold, where the traffic threshold is less than the directional traffic value.
  • the flow control device 2 further includes:
  • a setting module configured to set the flow threshold, and set a start time and an end time of the preset time to be short.
  • the scanning module 201 is configured to:
  • FIG. 3 is a schematic diagram of another structure of a flow control device according to an embodiment of the present invention.
  • the flow control device 3 includes a processor 301, a memory 302, and a transceiver 303.
  • the transceiver 303 is configured to transmit and receive data with and from an external device.
  • the number of processors 301 in the flow control device 3 may be one or more.
  • the processor 301, the memory 302, and the transceiver The 303 can be connected by a bus system or other means.
  • the flow control device 3 can be used to perform the method shown in FIG.
  • the program code is stored in the memory 302.
  • the processor 301 is configured to call program code stored in the memory 302 for performing the following operations:
  • the scanned application is prohibited from connecting to the cellular data network.
  • the method further includes:
  • the processor 301 is further configured to:
  • the alarm prompt information is displayed; wherein the traffic threshold is smaller than the directional traffic value.
  • the processor 301 executes the obtained target application list and the directed traffic value from the operator server, the processor 301 is further configured to:
  • the flow threshold is set, and a start time and an end time of the preset time are set short.
  • the executing, by the processor 301, the locally installed application in the targeted application list includes:
  • An embodiment of the present invention provides a terminal, where the terminal includes the foregoing flow control device, where the terminal includes but is not limited to Or terminals of other operating systems, such as mobile phones.
  • Other terminals may also be used, such as a laptop or tablet or desktop computer with a touch-sensitive surface (eg, a touch screen display and/or a touch pad).
  • a terminal including a display and a touch-sensitive surface is described.
  • the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or Or the lever.
  • Terminals typically support a variety of applications, such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disk editing application, a spreadsheet application, a gaming application, Telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications Program, and/or digital video player application.
  • applications such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disk editing application, a spreadsheet application, a gaming application, Telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications Program, and/or digital video player application.
  • the various applications that can be executed on the terminal can use at least one shared physical user interface device, such as a touch-sensitive surface.
  • One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed from one application to the next and/or adjusted and/or varied within the respective application.
  • the shared physical architecture of the terminal such as a touch-sensitive surface, can support a variety of applications with a user interface that is intuitive to the user.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

A flow control method: a terminal may automatically monitor a cellular data flow value of a locally installed directional application program within a preset time. When the cellular data flow value reaches a preset directional flow value, networking of the locally installed directional application program is prohibited, which prevents a user from exceeding a standard when the user uses a directional flow package.

Description

一种流量控制方法和装置Flow control method and device 技术领域Technical field
本发明涉及移动互联网领域,尤其涉及一种流量控制方法和装置。The present invention relates to the field of mobile internet, and in particular, to a flow control method and apparatus.
背景技术Background technique
随着移动互联网的发展,移动终端(智能手机、平板电脑、智能穿戴设备等)对于数据流量的需求日益增加,为了便于应用程序的推广,应用程序的运营方会联合运营商推出自费更优惠的定向流量包,这种定向流量包至针对特定的应用程序,然后对于用户而言,当定向流量包支持的应用程序的数量过多时,由于不清楚定向的应用程序的类型,在使用过程中可能会造成流量超标,因此亟需一种针对定向流量包的流量控制方法。With the development of mobile Internet, the demand for data traffic of mobile terminals (smartphones, tablets, smart wearable devices, etc.) is increasing. In order to facilitate the promotion of applications, the operators of the applications will jointly launch operators at their own expense. Directed traffic package, this targeted traffic package is targeted to specific applications, and then for the user, when the number of applications supported by the directed traffic package is too large, due to the type of the application that is not clear, it may be in use This will cause traffic to exceed the standard, so there is a need for a flow control method for directed traffic packets.
发明内容Summary of the invention
本发明实施例所要解决的技术问题在于,提供一种流量控制方法和装置。可防止用户使用定向流量包超标。A technical problem to be solved by embodiments of the present invention is to provide a flow control method and apparatus. Prevents users from using directional traffic packets that exceed the standard.
为了解决上述技术问题,本发明实施例提供了一种流量控制方法,包括:In order to solve the above technical problem, an embodiment of the present invention provides a flow control method, including:
从运营商服务器获取定向应用程序列表和定向流量值;Obtain a list of targeted applications and directed traffic values from the carrier server;
扫描本地安装的位于所述定向应用程序列表中的应用程序;Scan locally installed applications located in the list of targeted applications;
在预设时间段内统计扫描到的应用程序消耗的总蜂窝数据网络流量值;Counting the total cellular data network traffic value consumed by the scanned application during the preset time period;
若所述总蜂窝数据网络流量值大于所述定向流量值,禁止所述扫描到的应用程序连接蜂窝数据网络。If the total cellular data network traffic value is greater than the directed traffic value, the scanned application is prohibited from connecting to the cellular data network.
相应地,本发明实施例还提供了一种流量控制装置,包括:Correspondingly, the embodiment of the invention further provides a flow control device, comprising:
获取模块,用于从运营商服务器获取定向应用程序列表和定向流量值;An acquisition module for obtaining a targeted application list and a directed traffic value from a carrier server;
扫描模块,用于扫描本地安装的位于所述定向应用程序列表中的应用程序;a scanning module, configured to scan a locally installed application located in the targeted application list;
统计模块,用于在预设时间段内统计扫描到的应用程序消耗的总蜂窝数据网络流量值;a statistics module, configured to count, in a preset time period, a total cellular data network traffic value consumed by the scanned application;
控制模块,用于若所述总蜂窝数据网络流量值大于所述定向流量值,禁止 所述扫描到的应用程序连接蜂窝数据网络。a control module, configured to prohibit, if the total cellular data network traffic value is greater than the directional traffic value The scanned application connects to a cellular data network.
实施本发明实施例,具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
终端能自动监控本地安装的定向应用程序在预设时间内的蜂窝数据流量值,在蜂窝数据流量值达到预先定制的定向流量值时,禁止本地安装的定向应用程序联网,避免用户使用流量超标。The terminal can automatically monitor the value of the cellular data traffic of the locally installed targeted application within a preset time. When the cellular data traffic value reaches the pre-customized directional traffic value, the locally installed targeted application is prohibited from networking, and the user is prevented from using the traffic exceeding the standard.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图1是本发明实施例提供的一种流量控制方法的流程示意图;1 is a schematic flowchart of a flow control method according to an embodiment of the present invention;
图2是本发明实施例提供的一种流量控制装置的结构示意图;2 is a schematic structural diagram of a flow control device according to an embodiment of the present invention;
图3是本发明实施例提供的一种流量控制装置的另一结构示意图。FIG. 3 is another schematic structural diagram of a flow control device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
参见图1,为本发明实施例提供的一种流量控制方法,在本发明实施例中,所述方法包括:FIG. 1 is a flow control method according to an embodiment of the present invention. In the embodiment of the present invention, the method includes:
S101、从运营商服务器获取定向应用程序列表和定向流量值。S101. Obtain a targeted application list and a directed traffic value from an operator server.
具体的,终端向运营商服务器发送定向流量包的业务开通请求,运营商服务器接收到业务开通请求时,为终端开通定向流量包,向终端发送携带定向应用程序列表和定向流量值的开通确认响应,定向应用程序列表中包括定向流量包对应的应用程序,应用程序可以用于程序标识来表示,程序标识用于唯一表示应用程序的身份,可以采用数字+字符的形式来表示,定向流量值表示应用程序列表对应的各个应用程序允许消耗的总的流量值。例如:定向应用程序列表中包括app_ID:1a2cd4,对应应用程序1;app_ID:d3g2ge,对应应用程序 2;app_ID:id34hw,对应应用程序3,定向流量值为1G字节,表示应用程序1、应用程序2和应用程序3允许消耗的总的流量值为1G字节。Specifically, the terminal sends a service provisioning request for the directed traffic packet to the operator server, and when the operator server receives the service provisioning request, the terminal opens the directed traffic packet, and sends the opening confirmation response carrying the directed application list and the directed traffic value to the terminal. The targeted application list includes an application corresponding to the directed traffic package, the application can be used for the program identifier to represent, and the program identifier is used to uniquely represent the identity of the application, and can be represented by a number + character, and the directed traffic value is represented. The total traffic value that each application corresponding to the application list is allowed to consume. For example, the targeted application list includes app_ID: 1a2cd4, corresponding to application 1; app_ID: d3g2ge, corresponding application 2; app_ID: id34hw, corresponding to application 3, the directional traffic value is 1 Gbyte, indicating that the total traffic value allowed by Application 1, Application 2, and Application 3 is 1 Gbyte.
S102、扫描本地安装的位于所述定向应用程序列表中的应用程序。S102. Scan a locally installed application located in the targeted application list.
具体的,终端依次扫描本地安装的所有的应用程序,判断扫描到的应用程序是否位于定向应用程序列表中,若为是,对该应用程序进行标记,循环执行上述步骤,直到扫描出终端安装的所有的应用程序。Specifically, the terminal sequentially scans all the locally installed applications, determines whether the scanned application is located in the targeted application list, and if so, marks the application, and performs the above steps cyclically until the terminal is installed. All apps.
续上例,定向应用程序列表中包含应用程序1、应用程序2和应用程序3,终端本地安装的应用程序为:应用程序1、应用程序3、应用程序4、应用程序5和应用程序6,则终端确定本地安装的位于定向程序列表中的应用程序为应用程序1和应用程序3。Continuing from the above example, the targeted application list includes Application 1, Application 2, and Application 3. The applications installed locally by the terminal are: Application 1, Application 3, Application 4, Application 5, and Application 6. Then the terminal determines that the locally installed applications located in the directed program list are Application 1 and Application 3.
S103、在预设时间段内统计扫描到的应用程序消耗的总蜂窝数据网络流量值。S103. Count the total cellular data network traffic value consumed by the scanned application within a preset time period.
具体的,终端可以向运营商服务器获取定向流量包的扣费时间段,将该预设时间段作为预设时间段,运营商的扣费时间段以一个月为周期,例如:定向流量包开通的日期为5月5号,则扣费时间短为5月5号至6月5号、6月5号值7月5号,以一个月为周期以此类推;其中预设时间段可以是用户预先设置的。终端在预设时间段内统计扫描到的应用程序消耗的总蜂窝数据网络流量值,蜂窝数量网络流量表示通过蜂窝数据网络消耗的流量,蜂窝数据网络可以是:GPRS流量、3G流量或4G流量。Specifically, the terminal may obtain a deduction time period of the directional traffic packet from the operator server, and use the preset time period as a preset time period, and the operator's deduction time period is a one-month period, for example, the directional traffic packet is opened. The date is May 5th, the deduction time is short from May 5th to June 5th, June 5th to July 5th, with a month period and so on; the preset time period can be User preset. The terminal counts the total cellular data network traffic value consumed by the scanned application within a preset time period. The number of cellular networks represents the traffic consumed by the cellular data network, and the cellular data network may be: GPRS traffic, 3G traffic, or 4G traffic.
续上例,终端分别统计应用程序1和应用程序3在当前的扣费时间段内的总蜂窝数据流量值。Continuing from the above example, the terminal separately counts the total cellular data traffic values of Application 1 and Application 3 during the current deduction period.
S104、若所述总蜂窝数据网络流量值大于所述定向流量值,禁止所述扫描到的应用程序连接蜂窝数据网络。S104. If the total cellular data network traffic value is greater than the directional traffic value, prohibiting the scanned application from connecting to the cellular data network.
续上例,定向流量值为1G字节,终端统计在当前的扣费时间段内的应用程序1和应用程序3的蜂窝数据网络流量值之和大于1G字节,终端禁止应用程序1和应用程序3连接蜂窝数据网络,进一步的,如果终端没有开通其他流量包的情况下,终端可禁止所有的应用程序连接蜂窝数据网络。For example, the directional traffic value is 1 Gbyte, and the terminal counts that the sum of the cellular data network traffic values of the application 1 and the application 3 in the current deduction period is greater than 1 Gbyte, and the terminal prohibits the application 1 and the application. Program 3 connects to the cellular data network. Further, if the terminal does not open other traffic packets, the terminal can prohibit all applications from connecting to the cellular data network.
可选的,在本发明的一种可能的实施方式中,所述若所述总蜂窝网络流量值大于所述定向流量值,禁止所述扫描到的应用程序连接蜂窝数据网络之后,还包括: Optionally, in a possible implementation manner of the present invention, after the total cellular network traffic value is greater than the directional traffic value, after the scanned application is prohibited from connecting to the cellular data network, the method further includes:
接收所述扫描到的应用程序中的一个应用程序的联网请求;Receiving a networking request of an application of the scanned application;
判断当前数据网络类型是否为蜂窝数据网络,若为否,允许连接数据网络。Determine whether the current data network type is a cellular data network. If not, allow connection to the data network.
具体的,在终端的定向流量值消耗完的情况下,终端接收到应用程序的联网请求,判断当前的数据网络类型,如果为蜂窝数据网络,禁止联网,如果为非蜂窝数据网络,例如无线局域网,终端允许该应用程序连接数据网络。Specifically, in the case that the directional traffic value of the terminal is exhausted, the terminal receives the networking request of the application, and determines the current data network type. If it is a cellular data network, the network is prohibited, and if it is a non-cellular data network, such as a wireless local area network. The terminal allows the application to connect to the data network.
可选的,在本发明的一种可能的实施方式中,所述方法还包括:Optionally, in a possible implementation manner of the present invention, the method further includes:
若所述总蜂窝数据网络流量值大于预设的流量阈值,显示告警提示信息;其中,所述流量阈值小于所述定向流量值。If the total cellular data network traffic value is greater than a preset traffic threshold, the alarm prompt information is displayed; wherein the traffic threshold is smaller than the directional traffic value.
具体的,终端本地安装的定向应用程序在扣费时间短内消耗的蜂窝网络流量值之和大于流量阈值时,预设的流量值小于定向流量值,终端显示告警信息,告警信息提示用户当前的定向流量包的定向流量值即将使用完毕,此时终端可申请新的定向流量包。Specifically, when the sum of the cellular network traffic values consumed by the terminal locally installed in the short-term charging time is greater than the traffic threshold, the preset traffic value is smaller than the directional traffic value, and the terminal displays the alarm information, and the alarm information prompts the user to the current The directional traffic value of the directional traffic packet is about to be used, and the terminal can apply for a new directional traffic packet.
可选的,在本发明的一种可能的实施方式中,所述从运营商服务器获取定向应用程序列表和定向流量值之前,还包括:Optionally, in a possible implementation manner of the present invention, before the obtaining the targeted application list and the directed traffic value from the operator server, the method further includes:
设置所述流量阈值,以及设置所述预设时间段的起始时间和终止时间。Setting the flow threshold, and setting a start time and an end time of the preset time period.
具体的,流量阈值小于定向流量值,例如,定向流量值为1G字节,设置流量阈值为900M字节,预设时间段表示扣费时间段,扣费时间短的时间跨度为1个月,例如预设时间段的起始时间为4月7号0:00至5月7号0:00。Specifically, the traffic threshold is smaller than the directional traffic value. For example, the directional traffic value is 1 Gbyte, and the traffic threshold is 900 Mbytes. The preset time period indicates a deduction time period, and the deduction time is a short time span of 1 month. For example, the start time of the preset time period is from 0:00 on April 7 to 0:00 on May 7th.
可选的,在本发明的一种可能的实施方式中,所述扫描本地安装的位于所述定向应用程序列表中的应用程序包括:Optionally, in a possible implementation manner of the present invention, the scanning the locally installed application located in the directed application list includes:
获取位于所述定向应用程序列表中的各个应用程序的程序标识,以及根据程序标识扫描位于所述定向应用程序列表中的应用程序。Obtaining a program identification of each application located in the targeted application list, and scanning an application located in the targeted application list according to the program identification.
具体的,程序标识用于唯一表示应用程序的身份,不同的应用程序或不同版本的应用程序具有不同的程序标识,终端获取定向程序列表中的各个应用程序的程序标识,扫描本地安装的应用程序的程序标识是否存在于定向程序列表中,由此来确定本地安装的定向应用程序。Specifically, the program identifier is used to uniquely represent the identity of the application, different applications or different versions of the application have different program identifiers, the terminal obtains the program identifier of each application in the directed program list, and scans the locally installed application. Whether the program identification exists in the list of targeting programs, thereby determining the locally installed targeted application.
从上述实施例可以看出,终端能自动监控本地安装的定向应用程序在预设时间内的蜂窝数据流量值,在蜂窝数据流量值达到预先定制的定向流量值时,禁止本地安装的定向应用程序联网,避免用户使用流量超标。 As can be seen from the above embodiment, the terminal can automatically monitor the value of the cellular data flow of the locally installed directed application within a preset time, and prohibit the locally installed targeted application when the cellular data flow value reaches the pre-customized directional flow value. Networking to prevent users from using excessive traffic.
参见图2,为本发明实施例提供的一种流量控制装置的结构示意图,本发明实施例的终端用于执行图1中的一种流量控制装置,所涉及的术语和过程可参照图1实施例的描述。流量控制装置2包括:获取模块201、扫描模块202、统计模块203和控制模块204。FIG. 2 is a schematic structural diagram of a flow control device according to an embodiment of the present invention. The terminal in the embodiment of the present invention is used to execute a flow control device in FIG. 1 , and the terms and processes involved may be implemented with reference to FIG. 1 . Description of the example. The flow control device 2 includes an acquisition module 201, a scanning module 202, a statistics module 203, and a control module 204.
获取模块201,用于从运营商服务器获取定向应用程序列表和定向流量值。The obtaining module 201 is configured to obtain a targeted application list and a directed traffic value from the operator server.
扫描模块202,用于扫描本地安装的位于所述定向应用程序列表中的应用程序。The scanning module 202 is configured to scan a locally installed application located in the targeted application list.
统计模块203,用于在预设时间段内统计扫描到的应用程序消耗的总蜂窝数据网络流量值。The statistics module 203 is configured to count the total cellular data network traffic value consumed by the scanned application within a preset time period.
控制模块204,用于若所述总蜂窝数据网络流量值大于所述定向流量值,禁止所述扫描到的应用程序连接蜂窝数据网络。The control module 204 is configured to prohibit the scanned application from connecting to the cellular data network if the total cellular data network traffic value is greater than the directional traffic value.
可选的,流量控制装置2还包括:Optionally, the flow control device 2 further includes:
联网模块,用于接收所述扫描到的应用程序中的一个应用程序的联网请求;a networking module, configured to receive a networking request of an application of the scanned application;
判断当前数据网络类型是否为蜂窝数据网络,若为否,允许连接数据网络。Determine whether the current data network type is a cellular data network. If not, allow connection to the data network.
可选的,流量控制装置2还包括:Optionally, the flow control device 2 further includes:
告警模块,用于若所述总蜂窝数据网络流量值大于预设的流量阈值,显示告警提示信息;其中,所述流量阈值小于所述定向流量值。The alarm module is configured to display alarm prompt information if the total cellular data network traffic value is greater than a preset traffic threshold, where the traffic threshold is less than the directional traffic value.
可选的,流量控制装置2还包括:Optionally, the flow control device 2 further includes:
设置模块,用于设置所述流量阈值,以及设置所述预设时间短的起始时间和终止时间。And a setting module, configured to set the flow threshold, and set a start time and an end time of the preset time to be short.
可选的,扫描模块201用于:Optionally, the scanning module 201 is configured to:
获取位于所述定向应用程序列表中的各个应用程序的程序标识,以及根据程序标识扫描位于所述定向应用程序列表中的应用程序。Obtaining a program identification of each application located in the targeted application list, and scanning an application located in the targeted application list according to the program identification.
本发明实施例和图1的方法实施例基于同一构思,其带来的技术效果也相同,具体过程可参照方法实施例一的描述,此处不再赘述。The embodiment of the present invention and the method embodiment of FIG. 1 are based on the same concept, and the technical effects thereof are also the same. For the specific process, reference may be made to the description of the method embodiment 1, and details are not described herein again.
参见图3,为本发明实施例提供的一种流量控制装置另一结构示意图,在本发明实施例中,流量控制装置3包括处理器301、存储器302和收发器303。收发器303用于与外部设备之间收发数据。流量控制装置3中的处理器301的数量可以是一个或多个。本发明的一些实施例中,处理器301、存储器302和收发 器303可通过总线系统或其他方式连接。流量控制装置3可以用于执行图1所示的方法。关于本实施例涉及的术语的含义以及举例,可以参考图1对应的实施例。此处不再赘述。FIG. 3 is a schematic diagram of another structure of a flow control device according to an embodiment of the present invention. In the embodiment of the present invention, the flow control device 3 includes a processor 301, a memory 302, and a transceiver 303. The transceiver 303 is configured to transmit and receive data with and from an external device. The number of processors 301 in the flow control device 3 may be one or more. In some embodiments of the invention, the processor 301, the memory 302, and the transceiver The 303 can be connected by a bus system or other means. The flow control device 3 can be used to perform the method shown in FIG. For the meaning and examples of the terms involved in the embodiment, reference may be made to the corresponding embodiment of FIG. 1. I will not repeat them here.
其中,存储器302中存储程序代码。处理器301用于调用存储器302中存储的程序代码,用于执行以下操作:The program code is stored in the memory 302. The processor 301 is configured to call program code stored in the memory 302 for performing the following operations:
从运营商服务器获取定向应用程序列表和定向流量值;Obtain a list of targeted applications and directed traffic values from the carrier server;
扫描本地安装的位于所述定向应用程序列表中的应用程序;Scan locally installed applications located in the list of targeted applications;
在预设时间段内统计扫描到的应用程序消耗的总蜂窝数据网络流量值;Counting the total cellular data network traffic value consumed by the scanned application during the preset time period;
若所述总蜂窝数据网络流量值大于所述定向流量值,禁止所述扫描到的应用程序连接蜂窝数据网络。If the total cellular data network traffic value is greater than the directed traffic value, the scanned application is prohibited from connecting to the cellular data network.
可选的,处理器301执行所述若所述总蜂窝网络流量值大于所述定向流量值,禁止所述扫描到的应用程序连接蜂窝数据网络之后,还包括:Optionally, after the performing, by the processor 301, the total cellular network traffic value is greater than the directional traffic value, and the forbidden application is connected to the cellular data network, the method further includes:
接收所述扫描到的应用程序中的一个应用程序的联网请求;Receiving a networking request of an application of the scanned application;
判断当前数据网络类型是否为蜂窝数据网络,若为否,允许连接数据网络。Determine whether the current data network type is a cellular data network. If not, allow connection to the data network.
可选的,处理器301还用于执行:Optionally, the processor 301 is further configured to:
若所述总蜂窝数据网络流量值大于预设的流量阈值,显示告警提示信息;其中,所述流量阈值小于所述定向流量值。If the total cellular data network traffic value is greater than a preset traffic threshold, the alarm prompt information is displayed; wherein the traffic threshold is smaller than the directional traffic value.
可选的,处理器301执行所述从运营商服务器获取定向应用程序列表和定向流量值之前,还用于执行:Optionally, before the processor 301 executes the obtained target application list and the directed traffic value from the operator server, the processor 301 is further configured to:
设置所述流量阈值,以及设置所述预设时间短的起始时间和终止时间。The flow threshold is set, and a start time and an end time of the preset time are set short.
可选的,处理器301执行所述扫描本地安装的位于所述定向应用程序列表中的应用程序包括:Optionally, the executing, by the processor 301, the locally installed application in the targeted application list includes:
获取位于所述定向应用程序列表中的各个应用程序的程序标识,以及根据程序标识扫描位于所述定向应用程序列表中的应用程序。Obtaining a program identification of each application located in the targeted application list, and scanning an application located in the targeted application list according to the program identification.
本发明实施例提供一种终端,终端包括上述流量控制装置,该终端包括但不限于搭载
Figure PCTCN2017073026-appb-000001
或者其它操作系统的终端,诸如移动电话。也可以是其它终端,诸如具有触敏表面(例如,触摸屏显示器和/或触控板)的膝上型计算机或平板电脑或台式计算机。
An embodiment of the present invention provides a terminal, where the terminal includes the foregoing flow control device, where the terminal includes but is not limited to
Figure PCTCN2017073026-appb-000001
Or terminals of other operating systems, such as mobile phones. Other terminals may also be used, such as a laptop or tablet or desktop computer with a touch-sensitive surface (eg, a touch screen display and/or a touch pad).
在下面的讨论中,介绍了一种包括显示器和触敏表面的终端。然而应当理解,终端可以包括一个或多个其他物理用户接口设备,诸如物理键盘、鼠标和/ 或操作杆。In the discussion that follows, a terminal including a display and a touch-sensitive surface is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or Or the lever.
终端通常支持多种应用程序,诸如以下中的一种或多种:画图应用程序、呈现应用程序、文字处理应用程序、网页创建应用程序、盘编辑应用程序、电子表格应用程序、游戏应用程序、电话应用程序、视频会议应用程序、电子邮件应用程序、即时消息应用程序、锻炼支持应用程序、相片管理应用程序、数字相机应用程序、数字视频摄像机应用程序、网络浏览应用程序、数字音乐播放器应用程序、和/或数字视频播放器应用程序。Terminals typically support a variety of applications, such as one or more of the following: a drawing application, a rendering application, a word processing application, a web page creation application, a disk editing application, a spreadsheet application, a gaming application, Telephony applications, video conferencing applications, email applications, instant messaging applications, workout support applications, photo management applications, digital camera applications, digital video camera applications, web browsing applications, digital music player applications Program, and/or digital video player application.
可在终端上执行的各种应用程序可使用至少一个共用的物理用户接口设备,诸如触敏表面。触敏表面的一种或多种功能以及显示在终端上的相应信息可从一种应用程序调整和/或变化至下一种应用程序和/或在相应应用程序内被调整和/或变化。这样,终端的共用物理架构(诸如触敏表面)可利用对于用户而言直观清楚的用户界面来支持各种应用程序。The various applications that can be executed on the terminal can use at least one shared physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal may be adjusted and/or changed from one application to the next and/or adjusted and/or varied within the respective application. In this way, the shared physical architecture of the terminal, such as a touch-sensitive surface, can support a variety of applications with a user interface that is intuitive to the user.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(RandomAccess Memory,RAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the foregoing embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. When executed, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本发明权利要求所作的等同变化,仍属于发明所涵盖的范围。 The above disclosure is only a preferred embodiment of the present invention, and of course, the scope of the present invention is not limited thereto, and those skilled in the art can understand all or part of the process of implementing the above embodiments, and according to the present invention. The equivalent changes required are still within the scope of the invention.

Claims (10)

  1. 一种流量控制方法,其特征在于,包括:A flow control method, comprising:
    从运营商服务器获取定向应用程序列表和定向流量值;Obtain a list of targeted applications and directed traffic values from the carrier server;
    扫描本地安装的位于所述定向应用程序列表中的应用程序;Scan locally installed applications located in the list of targeted applications;
    在预设时间段内统计扫描到的应用程序消耗的总蜂窝数据网络流量值;Counting the total cellular data network traffic value consumed by the scanned application during the preset time period;
    若所述总蜂窝数据网络流量值大于所述定向流量值,禁止所述扫描到的应用程序连接蜂窝数据网络。If the total cellular data network traffic value is greater than the directed traffic value, the scanned application is prohibited from connecting to the cellular data network.
  2. 如权利要求1所述的方法,其特征在于,所述若所述总蜂窝网络流量值大于所述定向流量值,禁止所述扫描到的应用程序连接蜂窝数据网络之后,还包括:The method of claim 1, wherein if the total cellular network traffic value is greater than the directional traffic value, after the scanned application is prohibited from connecting to the cellular data network, the method further includes:
    接收所述扫描到的应用程序中的一个应用程序的联网请求;Receiving a networking request of an application of the scanned application;
    判断当前数据网络类型是否为蜂窝数据网络,若为否,允许连接数据网络。Determine whether the current data network type is a cellular data network. If not, allow connection to the data network.
  3. 如权利要求1所述的方法,其特征在于,还包括:The method of claim 1 further comprising:
    若所述总蜂窝数据网络流量值大于预设的流量阈值,显示告警提示信息;其中,所述流量阈值小于所述定向流量值。If the total cellular data network traffic value is greater than a preset traffic threshold, the alarm prompt information is displayed; wherein the traffic threshold is smaller than the directional traffic value.
  4. 如权利要求1所述的方法,其特征在于,所述从运营商服务器获取定向应用程序列表和定向流量值之前,还包括:The method of claim 1, wherein before the obtaining the targeted application list and the directed traffic value from the operator server, the method further comprises:
    设置所述流量阈值,以及设置所述预设时间短的起始时间和终止时间。The flow threshold is set, and a start time and an end time of the preset time are set short.
  5. 如权利要求1所述的方法,其特征在于,所述扫描本地安装的位于所述定向应用程序列表中的应用程序包括:The method of claim 1 wherein said scanning the locally installed application located in said list of targeted applications comprises:
    获取位于所述定向应用程序列表中的各个应用程序的程序标识,以及根据程序标识扫描位于所述定向应用程序列表中的应用程序。Obtaining a program identification of each application located in the targeted application list, and scanning an application located in the targeted application list according to the program identification.
  6. 一种流量控制装置,其特征在于,包括:A flow control device, comprising:
    获取模块,用于从运营商服务器获取定向应用程序列表和定向流量值; An acquisition module for obtaining a targeted application list and a directed traffic value from a carrier server;
    扫描模块,用于扫描本地安装的位于所述定向应用程序列表中的应用程序;a scanning module, configured to scan a locally installed application located in the targeted application list;
    统计模块,用于在预设时间段内统计扫描到的应用程序消耗的总蜂窝数据网络流量值;a statistics module, configured to count, in a preset time period, a total cellular data network traffic value consumed by the scanned application;
    控制模块,用于若所述总蜂窝数据网络流量值大于所述定向流量值,禁止所述扫描到的应用程序连接蜂窝数据网络。And a control module, configured to prohibit the scanned application from connecting to the cellular data network if the total cellular data network traffic value is greater than the directional traffic value.
  7. 如权利要求6所述的装置,其特征在于,还包括:The device of claim 6 further comprising:
    联网模块,用于接收所述扫描到的应用程序中的一个应用程序的联网请求;a networking module, configured to receive a networking request of an application of the scanned application;
    判断当前数据网络类型是否为蜂窝数据网络,若为否,允许连接数据网络。Determine whether the current data network type is a cellular data network. If not, allow connection to the data network.
  8. 如权利要求6所述的装置,其特征在于,还包括:The device of claim 6 further comprising:
    告警模块,用于若所述总蜂窝数据网络流量值大于预设的流量阈值,显示告警提示信息;其中,所述流量阈值小于所述定向流量值。The alarm module is configured to display alarm prompt information if the total cellular data network traffic value is greater than a preset traffic threshold, where the traffic threshold is less than the directional traffic value.
  9. 如权利要求6所述的装置,其特征在于,还包括:The device of claim 6 further comprising:
    设置模块,用于设置所述流量阈值,以及设置所述预设时间短的起始时间和终止时间。And a setting module, configured to set the flow threshold, and set a start time and an end time of the preset time to be short.
  10. 如权利要求6所述的装置,其特征在于,所述扫描模块用于:The apparatus of claim 6 wherein said scanning module is for:
    获取位于所述定向应用程序列表中的各个应用程序的程序标识,以及根据程序标识扫描位于所述定向应用程序列表中的应用程序。 Obtaining a program identification of each application located in the targeted application list, and scanning an application located in the targeted application list according to the program identification.
PCT/CN2017/073026 2017-02-07 2017-02-07 Flow control method and device WO2018145236A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/073026 WO2018145236A1 (en) 2017-02-07 2017-02-07 Flow control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/073026 WO2018145236A1 (en) 2017-02-07 2017-02-07 Flow control method and device

Publications (1)

Publication Number Publication Date
WO2018145236A1 true WO2018145236A1 (en) 2018-08-16

Family

ID=63107645

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/073026 WO2018145236A1 (en) 2017-02-07 2017-02-07 Flow control method and device

Country Status (1)

Country Link
WO (1) WO2018145236A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486138A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Flow monitoring method and device and monitoring server
CN105337783A (en) * 2014-07-14 2016-02-17 北京奇虎科技有限公司 Method of monitoring abnormal flow consumption of communication equipment and apparatus
CN105721713A (en) * 2016-03-31 2016-06-29 北京金山安全软件有限公司 Data network state control method and device for terminal
CN106060899A (en) * 2016-05-20 2016-10-26 廖建强 Flow control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105337783A (en) * 2014-07-14 2016-02-17 北京奇虎科技有限公司 Method of monitoring abnormal flow consumption of communication equipment and apparatus
CN104486138A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Flow monitoring method and device and monitoring server
CN105721713A (en) * 2016-03-31 2016-06-29 北京金山安全软件有限公司 Data network state control method and device for terminal
CN106060899A (en) * 2016-05-20 2016-10-26 廖建强 Flow control method and device

Similar Documents

Publication Publication Date Title
WO2018103484A1 (en) Data processing method, apparatus and system for live broadcast page
CN114629865B (en) Instant messaging system for interacting with dynamically expanding applications
US9104768B2 (en) Person-based information aggregation
WO2019228344A1 (en) Resource configuration method and apparatus, and terminal and storage medium
WO2019228340A1 (en) Program optimization method and apparatus, terminal, and storage medium
AU2018220050A1 (en) Enforcing policies based on information received from external systems
JP2015038745A (en) Wireless communication device having deterministic control of foreground access of user interface
CN109246741B (en) Wireless network connection method for terminal
CN112118459A (en) Method for realizing common live broadcast of multiple apps by sharing camera data and readable medium
WO2014183427A1 (en) Method and apparatus for displaying webcast rooms
TW200910211A (en) Device that determines whether to launch an application locally or remotely as a Webapp
CN111144953B (en) Resource allocation method, device, equipment and medium
CN106851779A (en) A kind of method and mobile terminal for recognizing access point and focus
US11956239B2 (en) Identity misconfiguration detection for role-based access control
CN106843794B (en) Split screen display method and system based on android
CN106792892B (en) Access control method and device for application program
WO2019047708A1 (en) Resource configuration method and related product
CN110870292A (en) Selectively communicating one or more services in a multi-Subscriber Identity Module (SIM) multi-standby electronic device
CN106105158A (en) For setting up the method and system being connected between searchers's device and destination apparatus
US20170149967A1 (en) Managing Communication Events
US9716796B2 (en) Managing communication events
CN113885746A (en) Message sending method and device and electronic equipment
CN111371896B (en) Network acceleration method, terminal and storage medium
CN113010238A (en) Permission determination method, device and system for micro application call interface
US9577967B2 (en) Method and system for managing an informational site using a social networking application

Legal Events

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

Ref document number: 17895565

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17895565

Country of ref document: EP

Kind code of ref document: A1