CN106878099B - A traffic management method, terminal device, server and system - Google Patents

A traffic management method, terminal device, server and system Download PDF

Info

Publication number
CN106878099B
CN106878099B CN201510920898.9A CN201510920898A CN106878099B CN 106878099 B CN106878099 B CN 106878099B CN 201510920898 A CN201510920898 A CN 201510920898A CN 106878099 B CN106878099 B CN 106878099B
Authority
CN
China
Prior art keywords
target file
terminal device
application
server
authentication
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
CN201510920898.9A
Other languages
Chinese (zh)
Other versions
CN106878099A (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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Corp
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 China Mobile Communications Corp filed Critical China Mobile Communications Corp
Priority to CN201510920898.9A priority Critical patent/CN106878099B/en
Publication of CN106878099A publication Critical patent/CN106878099A/en
Application granted granted Critical
Publication of CN106878099B publication Critical patent/CN106878099B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种流量管理方法、终端设备及系统,其中方法包括:开启第一应用;基于所述第一应用从服务器侧获取到目标文件;基于针对所述目标文件的操作,生成针对所述目标文件的操作情况信息;发送所述操作情况信息至服务器侧。

Figure 201510920898

The invention discloses a traffic management method, terminal device and system, wherein the method includes: starting a first application; acquiring a target file from a server side based on the first application; Describe the operation situation information of the target file; send the operation situation information to the server side.

Figure 201510920898

Description

一种流量管理方法、终端设备、服务器及系统A traffic management method, terminal device, server and system

技术领域technical field

本发明涉及网络管理领域的流量管理技术,尤其涉及一种流量管理方法、终端设备、服务器及系统。The present invention relates to a traffic management technology in the field of network management, in particular to a traffic management method, terminal equipment, server and system.

背景技术Background technique

“定向流量”是指个人用户使用手机上网时,通过运营商提供的网络使用特定业务或者访问特定网页产生的数据流量。定向流量主要是互联网公司或者企业统一向运营商支付购买相应的流量,用户使用它提供的业务时候产生的流量费用,运营商不再向个人客户收取。目前实现定向流量主要的技术方案,是运营商在移动网络上通过分组域(数据业务)网关上配置策略规则实现。申请购买定向流量的企业,需要提供IP地址、域名、协议,内容关键字等需要减免的相关策略信息,运营商在分组域的网关设备上,配置对应的策略信息。个人用户通过终端使用运营商的网络产生数据流量时候,网关设备对于流量进行数据包的解析,按照对应的规则进行匹配,匹配后网关设备生成话单文件上标记特殊标识,产生话单文件。后续的计费单元获取到话单文件后,根据话单文件上标识,按照定向流量的计费规则进行费用计算,对于个人用户减免相关费用。"Directed traffic" refers to the data traffic generated by individual users using specific services or accessing specific web pages through the network provided by the operator when they use mobile phones to surf the Internet. Directed traffic is mainly that Internet companies or enterprises uniformly pay operators to purchase corresponding traffic, and operators will no longer charge individual customers for the traffic fees generated when users use the services provided by it. At present, the main technical solution for implementing directional traffic is that the operator configures policy rules on the gateway of the packet domain (data service) on the mobile network. Enterprises applying to purchase directed traffic need to provide relevant policy information such as IP addresses, domain names, protocols, and content keywords that need to be reduced or exempted. The operator configures the corresponding policy information on the gateway device in the packet domain. When an individual user generates data traffic through a terminal using the operator's network, the gateway device parses the data packets of the traffic and matches according to the corresponding rules. After matching, the gateway device generates a special identifier on the bill file to generate the bill file. After the subsequent charging unit obtains the bill file, it calculates the charges according to the identification on the bill file and according to the charging rules for directional traffic, and reduces or exempts the related charges for individual users.

现有实现定向流量的技术方案,可以实现企业的业务要求,但也存在以下几方面的问题:灵活性问题:目前技术实现方案是在运营商的移动网络上分组域网关上进行策略配置,根据解析数据包对于话单进行标识。如果企业有策略的变更,需要及时找运营商进行沟通变更相应的规则后,才能变更使用。流程非常繁琐,后续变更操作实时性很低。处理性能问题:采用分组域网关设备进行数据包解析,匹配规则的方式区分定向流量,需要对移动网络上的所有用户产生的数据包进行分析、解析、匹配。影响用户的上网速度,需要运营商进行设备扩容才能解决。The existing technical solutions for implementing directional traffic can meet the business requirements of enterprises, but there are also problems in the following aspects: Flexibility: the current technical solution is to configure policies on the packet domain gateway on the operator's mobile network. Parse the data packet to identify the CDR. If the enterprise has a policy change, it needs to communicate with the operator in time to change the corresponding rules before changing the use. The process is very cumbersome, and the real-time performance of subsequent change operations is very low. To deal with performance problems: The packet domain gateway device is used to parse the data packets, and the directional traffic is distinguished by matching rules. It is necessary to analyze, parse and match the data packets generated by all users on the mobile network. Affecting the user's Internet speed can only be solved by the operator's equipment expansion.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的目的在于提供一种流量管理方法、终端设备及系统,能至少解决现有技术中存在的上述问题。In view of this, the purpose of the present invention is to provide a traffic management method, terminal device and system, which can at least solve the above problems existing in the prior art.

为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, the technical scheme of the present invention is achieved in this way:

本发明实施例提供了一种流量管理方法,应用于终端设备,所述方法包括:An embodiment of the present invention provides a traffic management method, which is applied to a terminal device, and the method includes:

开启第一应用;Open the first application;

基于所述第一应用从服务器侧获取到目标文件;obtaining the target file from the server side based on the first application;

基于针对所述目标文件的操作,生成针对所述目标文件的操作情况信息;based on the operation for the target file, generating operation situation information for the target file;

发送所述操作情况信息至服务器侧。The operation situation information is sent to the server side.

本发明实施例提供了一种终端设备,所述终端设备包括:An embodiment of the present invention provides a terminal device, where the terminal device includes:

应用管理单元,用于开启第一应用;基于所述第一应用从服务器侧获取到目标文件;基于针对所述目标文件的操作,生成针对所述目标文件的操作情况信息;an application management unit, configured to open a first application; obtain a target file from the server side based on the first application; generate operation status information for the target file based on an operation on the target file;

通信单元,用于发送所述操作情况信息至服务器侧。The communication unit is used for sending the operation situation information to the server side.

本发明实施例提供了一种流量管理方法,应用于服务器,所述方法包括:An embodiment of the present invention provides a traffic management method, which is applied to a server, and the method includes:

为终端设备提供目标文件;Provide target files for terminal devices;

当接收到终端设备基于针对所述目标文件的操作发来的操作情况信息时,根据所述操作情况信息,对所述终端设备对所述目标文件的操作而产生的流量进行统计,并基于统计得到的流量结果进行流量费用处理。When receiving the operation situation information sent by the terminal device based on the operation on the target file, according to the operation situation information, perform statistics on the traffic generated by the operation of the terminal device on the target file, and based on the statistics The obtained traffic results are subjected to traffic fee processing.

本发明实施例提供了一种服务器,所述服务器包括:An embodiment of the present invention provides a server, and the server includes:

存储单元,用于为终端设备提供目标文件;A storage unit for providing target files for terminal equipment;

费用处理单元,用于当接收到终端设备基于针对所述目标文件的操作发来的操作情况信息时,根据所述操作情况信息,对所述终端设备对所述目标文件的操作而产生的流量进行统计,并基于统计得到的流量结果进行流量费用处理。The fee processing unit is configured to, when receiving the operation situation information sent by the terminal device based on the operation on the target file, according to the operation situation information, the traffic generated by the operation of the terminal device on the target file Statistics are performed, and traffic fees are processed based on the traffic results obtained by the statistics.

本发明实施例提供了一种流量管理系统,所述系统包括:An embodiment of the present invention provides a traffic management system, and the system includes:

终端设备,用于开启第一应用;基于所述第一应用从服务器侧获取到目标文件;基于针对所述目标文件的操作,生成针对所述目标文件的操作情况信息;发送所述操作情况信息至消息接收服务器;a terminal device, used to open a first application; obtain a target file from the server side based on the first application; generate operation status information for the target file based on an operation on the target file; send the operation status information to the message receiving server;

消息接收服务器,用于将接收到的所述操作情况信息发送至计费模块服务器;a message receiving server, configured to send the received operation situation information to the billing module server;

计费模块服务器,用于根据所述操作情况信息,对所述终端设备对所述目标文件的操作而产生的流量进行统计,并基于统计得到的流量结果进行流量费用处理。The billing module server is configured to collect statistics on the traffic generated by the operation of the terminal device on the target file according to the operation situation information, and perform traffic fee processing based on the traffic results obtained by the statistics.

本发明实施例提供了流量管理方法、终端设备及系统,终端设备通过第一应用检测针对目标文件的操作情况,进而发送操作情况至服务器侧,以使得服务器侧基于操作情况进行流量统计,进而根据统计得到的流量进行计费操作。如此,就能够由终端设备中的应用主动发起进行流量统计,避免使用网络中的分组域网关进行数据包的解析处理,企业可以根据自身业务要求,灵活调用,不需要先到运营商处明确使用的业务规则,减少了网络负荷和简化了网络的复杂性。并且,由服务器侧进行后续处理,非实时在用户上网时进行处理,降低分组域网关设备的负载。Embodiments of the present invention provide a traffic management method, a terminal device, and a system. The terminal device detects the operation status of a target file through a first application, and then sends the operation status to the server side, so that the server side performs traffic statistics based on the operation status, and then according to the operation status The traffic statistics obtained are used for billing operations. In this way, the application in the terminal device can actively initiate traffic statistics, avoiding the use of the packet domain gateway in the network for data packet analysis and processing. Enterprises can flexibly call according to their own business requirements, and do not need to go to the operator to explicitly use it. business rules, reducing network load and simplifying network complexity. In addition, subsequent processing is performed by the server side, and processing is performed in non-real time when the user surfs the Internet, thereby reducing the load of the packet domain gateway device.

附图说明Description of drawings

图1为本发明实施例流量管理方法流程示意图一;FIG. 1 is a schematic flow chart 1 of a traffic management method according to an embodiment of the present invention;

图2为本发明实施例终端设备的组成结构示意图;FIG. 2 is a schematic diagram of a composition structure of a terminal device according to an embodiment of the present invention;

图3为本发明实施例流量管理方法流程示意图二;3 is a second schematic flowchart of a traffic management method according to an embodiment of the present invention;

图4为本发明实施例服务器的组成结构示意图;4 is a schematic diagram of a composition structure of a server according to an embodiment of the present invention;

图5为本发明实施例流量管理系统组成结构示意图;5 is a schematic diagram of the composition and structure of a traffic management system according to an embodiment of the present invention;

图6为本发明实施例系统架构示意图。FIG. 6 is a schematic diagram of a system architecture according to an embodiment of the present invention.

具体实施方式Detailed ways

下面结合附图及具体实施例对本发明再作进一步详细的说明。The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

实施例一、Embodiment 1.

本发明实施例提供了一种流量管理方法,应用于终端设备,如图1所示,所述方法包括:An embodiment of the present invention provides a traffic management method, which is applied to a terminal device. As shown in FIG. 1 , the method includes:

步骤101:开启第一应用;Step 101: open the first application;

步骤102:基于所述第一应用从服务器侧获取到目标文件;Step 102: obtaining the target file from the server side based on the first application;

步骤103:基于针对所述目标文件的操作,生成针对所述目标文件的操作情况信息;Step 103: Based on the operation for the target file, generate operation status information for the target file;

步骤104:发送所述操作情况信息至服务器侧。Step 104: Send the operation situation information to the server side.

这里,所述终端设备可以为移动终端、平板电脑等设备。Here, the terminal device may be a mobile terminal, a tablet computer, or other devices.

所述第一应用可以为企业发放的客户端APP。The first application may be a client APP issued by an enterprise.

所述基于第一应用从服务器侧获取到目标文件可以为开启第一应用之后,通过第一应用连接到网络的服务器中,从服务器中,获取到用户所需的目标文件。比如,通过视频应用连接到网络时,可以通过视频应用从网络侧搜索是否有想要在线观看的视频,如果搜索到视频,就可以从服务器中获取到该视频的视频流。The obtaining of the target file from the server side based on the first application may be that after the first application is opened, the first application is connected to the server of the network, and the target file required by the user is obtained from the server. For example, when connecting to the network through a video application, you can use the video application to search from the network side to see if there is a video you want to watch online, and if you find a video, you can obtain the video stream of the video from the server.

进一步地,第一应用中可以设置有第一类插件,该插件可以为运营商提供给订购定向流量的企业,可以打包到企业的客户端应用中。企业可以根据自身应用的要求,灵活的设计业务流程,该对用户免费的环节调用该插件。插件主要实现两个主要功能:第一为鉴权功能,第二为消息发送功能。Further, the first application may be provided with a plug-in of the first type, the plug-in may be provided by the operator to the enterprise that subscribes to the directional traffic, and may be packaged into the client application of the enterprise. Enterprises can flexibly design business processes according to their own application requirements, and the plug-in should be called for free links for users. The plug-in mainly implements two main functions: the first is the authentication function, and the second is the message sending function.

所述鉴权功能,用于在运行第一应用,比如企业APP客户端时,到鉴权服务器进行鉴权,检查插件对应企业的合法性,以免该插件被非法使用。The authentication function is used to perform authentication on the authentication server when running the first application, such as an enterprise APP client, to check the validity of the enterprise corresponding to the plug-in, so as to prevent the plug-in from being used illegally.

具体的,所述基于所述第一应用从服务器侧获取到目标文件之前,所述方法还包括:Specifically, before the target file is obtained from the server side based on the first application, the method further includes:

运行所述第一应用中的第一类插件;running the first type of plug-in in the first application;

通过所述第一类插件获取到所述终端设备的互联网协议地址、用户标识以及鉴权口令;Obtain the Internet Protocol address, user ID and authentication password of the terminal device through the first type of plug-in;

基于所述终端设备的互联网协议地址、用户标识以及鉴权口令生成鉴权请求;Generate an authentication request based on the Internet Protocol address, user ID and authentication password of the terminal device;

向服务器侧发送所述鉴权请求,使得所述服务器侧根据所述鉴权请求对运行所述第一类插件进行鉴权,并向所述终端设备发送鉴权结果;sending the authentication request to the server side, so that the server side authenticates the operation of the first type of plug-in according to the authentication request, and sends the authentication result to the terminal device;

接收到所述服务器侧返回的鉴权结果。The authentication result returned by the server side is received.

其中,所述终端设备的互联网协议(IP)地址的获取方法可以为:当终端设备连接到网络之后,检测自身的网络连接配置,进而通过网络连接配置中提取得到IP地址。The method for obtaining the Internet Protocol (IP) address of the terminal device may be: after the terminal device is connected to the network, it detects its own network connection configuration, and then extracts the IP address from the network connection configuration.

所述终端设备的标识信息可以为终端设备的IMSI。The identification information of the terminal device may be the IMSI of the terminal device.

所述鉴权口令可以为根据实际情况预设在第一应用中,或者,可以为用户通过第一应用在网络使用账户信息进行注册时,由网络分配给所述第一应用的账户信息。The authentication password may be preset in the first application according to the actual situation, or may be account information allocated by the network to the first application when the user registers using the account information on the network through the first application.

所述消息发送功能,可以有以下两种实现场景:The message sending function can be implemented in the following two scenarios:

场景一、所述基于针对所述目标文件的操作,生成针对所述目标文件的操作情况信息,包括:Scenario 1. The operation situation information for the target file is generated based on the operation on the target file, including:

当确认输出所述目标文件时,获取到初始输出所述目标文件的第一时刻,基于所述第一时刻生成所述目标文件的操作情况第一子信息;When confirming to output the target file, obtain the first moment of initially outputting the target file, and generate the first sub-information of the operation situation of the target file based on the first moment;

当确定停止输出所述目标文件时,获取到停止输出所述目标文件的第二时刻,基于所述第二时刻生成所述目标文件的操作情况第二子信息。When it is determined to stop outputting the target file, a second time when the output of the target file is stopped is acquired, and second sub-information on the operation situation of the target file is generated based on the second time.

通过第一时刻以及第二时刻,服务器侧能够识别出用户播放目标文件的开始以及停止的时刻,从而获得用户使用网络流量的情况。Through the first time and the second time, the server side can identify the time when the user starts and stops playing the target file, so as to obtain the situation of the user's use of network traffic.

其中,所述操作情况第一子信息以及操作情况第二自信息中还可以包括有:IP地址、终端设备的标识信息。Wherein, the first sub-information of the operation situation and the second self-information of the operation situation may further include: IP address and identification information of the terminal device.

场景二,所述基于针对所述目标文件的操作,生成针对所述目标文件的操作情况信息,包括:Scenario 2, the operation situation information for the target file is generated based on the operation on the target file, including:

当确认输出所述目标文件时,获取到初始输出所述目标文件的第一时刻;当确定停止输出所述目标文件时,获取到停止输出所述目标文件的第二时刻;基于所述第一时刻以及所述第二时刻、终端设备的互联网协议地址信息以及所述终端设备的标识信息,生成所述目标文件的操作情况信息。When the output of the target file is confirmed, the first moment of initially outputting the target file is obtained; when it is determined to stop outputting the target file, the second moment of stopping the output of the target file is obtained; based on the first The time and the second time, the Internet Protocol address information of the terminal device and the identification information of the terminal device are used to generate the operation status information of the target file.

其中,所述操作情况信息中还可以包括有终端设备的IP地址以及终端设备的标识信息。Wherein, the operation situation information may further include the IP address of the terminal device and the identification information of the terminal device.

也就是说,为第一应用根据自身定义的业务流程,需要对用户免费时,把用户的手机号码,需要IP地址,开始标识,通过插件发送给运营商的消息服务器。免费使用结束时,企业的APP客户端再把用户的手机号码,免费的IP地址和结束标识再发给消息服务器。或者,可以为当使用结束时,将开始时刻以及结束时刻一起发送给消息服务器。That is, when the first application needs to be free of charge to the user according to the business process defined by itself, the user's mobile phone number, IP address, and start identification are sent to the operator's message server through the plug-in. When the free use ends, the enterprise's APP client sends the user's mobile phone number, free IP address and end identification to the message server. Alternatively, when the use ends, the start time and the end time may be sent to the message server together.

所述服务器侧可以为移动网络中的服务器,或者,还可以为无线通信网络中的服务器。具体的,所述服务器侧可以为多个服务器组成的集群。也就是说,通过本方案,除了对于分组域产生的流量可以进行减免,同时可以对于用户使用运营商提供的wlan网络同样进行处理,增加了使用的范围。The server side may be a server in a mobile network, or may also be a server in a wireless communication network. Specifically, the server side may be a cluster composed of multiple servers. That is to say, through this solution, in addition to reducing or exempting the traffic generated in the packet domain, the user can also process the wlan network provided by the operator, thereby increasing the scope of use.

可见,通过采用上述方案,终端设备通过第一应用检测针对目标文件的操作情况,进而发送操作情况至服务器侧,以使得服务器侧基于操作情况进行流量统计,进而根据统计得到的流量进行计费操作。如此,就能够由终端设备中的应用主动发起进行流量统计,避免使用网络中的分组域网关进行数据包的解析处理,企业可以根据自身业务要求,灵活调用,不需要先到运营商处明确使用的业务规则,简化了网络负荷和复杂性。并且,由服务器侧进行后续处理,非实时在用户上网时进行处理,降低分组域网关设备的负载。It can be seen that, by adopting the above solution, the terminal device detects the operation status of the target file through the first application, and then sends the operation status to the server side, so that the server side performs traffic statistics based on the operation status, and then performs the charging operation according to the traffic obtained by statistics. . In this way, the application in the terminal device can actively initiate traffic statistics, avoiding the use of the packet domain gateway in the network for data packet analysis and processing. Enterprises can flexibly call according to their own business requirements, and do not need to go to the operator to explicitly use it. business rules, simplifying network load and complexity. In addition, subsequent processing is performed by the server side, and processing is performed in non-real time when the user surfs the Internet, thereby reducing the load of the packet domain gateway device.

另外,由于对终端设备侧的操作还会进行鉴权操作,如此防止插件被其他用户非法使用,提升了进行流量统计的安全性。In addition, since an authentication operation is also performed on operations on the terminal device side, the plug-in is prevented from being illegally used by other users, and the security of traffic statistics is improved.

实施例二、Embodiment two,

本实施例提供了终端设备,如图2所示,包括:This embodiment provides a terminal device, as shown in Figure 2, including:

应用管理单元21,用于开启第一应用;基于所述第一应用从服务器侧获取到目标文件;基于针对所述目标文件的操作,生成针对所述目标文件的操作情况信息;An application management unit 21, configured to open a first application; obtain a target file from the server side based on the first application; generate operation status information for the target file based on an operation on the target file;

通信单元22,用于发送所述操作情况信息至服务器侧。The communication unit 22 is configured to send the operation situation information to the server side.

这里,所述终端设备可以为移动终端、平板电脑等设备。Here, the terminal device may be a mobile terminal, a tablet computer, or other devices.

所述第一应用可以为企业发放的客户端APP。The first application may be a client APP issued by an enterprise.

所述基于第一应用从服务器侧获取到目标文件可以为开启第一应用之后,通过第一应用连接到网络的服务器中,从服务器中,获取到用户所需的目标文件。比如,通过视频应用连接到网络时,可以通过视频应用从网络侧搜索是否有想要在线观看的视频,如果搜索到视频,就可以从服务器中获取到该视频的视频流。The obtaining of the target file from the server side based on the first application may be that after the first application is opened, the first application is connected to the server of the network, and the target file required by the user is obtained from the server. For example, when connecting to the network through a video application, you can use the video application to search from the network side to see if there is a video you want to watch online, and if you find a video, you can obtain the video stream of the video from the server.

进一步地,第一应用中可以设置有第一类插件,该插件可以为运营商提供给订购定向流量的企业,可以打包到企业的客户端应用中。企业可以根据自身应用的要求,灵活的设计业务流程,该对用户免费的环节调用该插件。插件主要实现两个主要功能:第一为鉴权功能,第二为消息发送功能。Further, the first application may be provided with a plug-in of the first type, the plug-in may be provided by the operator to the enterprise that subscribes to the directional traffic, and may be packaged into the client application of the enterprise. Enterprises can flexibly design business processes according to their own application requirements, and the plug-in should be called for free links for users. The plug-in mainly implements two main functions: the first is the authentication function, and the second is the message sending function.

所述鉴权功能,用于在运行第一应用,比如企业APP客户端时,到鉴权服务器进行鉴权,检查插件对应企业的合法性,以免该插件被非法使用。The authentication function is used to perform authentication on the authentication server when running the first application, such as an enterprise APP client, to check the validity of the enterprise corresponding to the plug-in, so as to prevent the plug-in from being used illegally.

具体的,所述应用管理单元21,还用于运行所述第一应用中的第一类插件;通过所述第一类插件获取到所述终端设备的互联网协议地址、用户标识以及鉴权口令;基于所述终端设备的互联网协议地址、用户标识以及鉴权口令生成鉴权请求;Specifically, the application management unit 21 is further configured to run the first type of plug-in in the first application; obtain the Internet Protocol address, user ID and authentication password of the terminal device through the first type of plug-in ; Generate an authentication request based on the Internet Protocol address, user identification and authentication password of the terminal device;

相应的,所述通信单元22,还用于向服务器侧发送所述第一类插件的鉴权请求,并获取到服务器侧返回的鉴权结果。Correspondingly, the communication unit 22 is further configured to send an authentication request of the plug-in of the first type to the server side, and obtain the authentication result returned by the server side.

其中,所述终端设备的互联网协议(IP)地址的获取方法可以为:当终端设备连接到网络之后,检测自身的网络连接配置,进而通过网络连接配置中提取得到IP地址。The method for obtaining the Internet Protocol (IP) address of the terminal device may be: after the terminal device is connected to the network, it detects its own network connection configuration, and then extracts the IP address from the network connection configuration.

所述终端设备的标识信息可以为终端设备的IMSI。The identification information of the terminal device may be the IMSI of the terminal device.

所述鉴权口令可以为根据实际情况预设在第一应用中,或者,可以为用户通过第一应用在网络使用账户信息进行注册时,由网络分配给所述第一应用的账户信息。The authentication password may be preset in the first application according to the actual situation, or may be account information allocated by the network to the first application when the user registers using the account information on the network through the first application.

所述消息发送功能,可以有以下两种实现场景:The message sending function can be implemented in the following two scenarios:

场景一、所述应用管理单元21,还用于当确认输出所述目标文件时,获取到初始输出所述目标文件的第一时刻,基于所述第一时刻生成所述目标文件的操作情况第一子信息;当确定停止输出所述目标文件时,获取到停止输出所述目标文件的第二时刻,基于所述第二时刻生成所述目标文件的操作情况第二子信息。Scenario 1. The application management unit 21 is further configured to obtain the first moment when the target file is initially output when the target file is confirmed to be output, and the operation status of generating the target file based on the first moment. A sub-information; when it is determined to stop outputting the target file, a second time when the output of the target file is stopped is obtained, and second sub-information on the operation situation of the target file is generated based on the second time.

通过第一时刻以及第二时刻,服务器侧能够识别出用户播放目标文件的开始以及停止的时刻,从而获得用户使用网络流量的情况。Through the first time and the second time, the server side can identify the time when the user starts and stops playing the target file, so as to obtain the situation of the user's use of network traffic.

其中,所述操作情况第一子信息以及操作情况第二自信息中还可以包括有:IP地址、终端设备的标识信息。Wherein, the first sub-information of the operation situation and the second self-information of the operation situation may further include: IP address and identification information of the terminal device.

场景二,所述应用管理单元21,还用于当确认输出所述目标文件时,获取到初始输出所述目标文件的第一时刻;当确定停止输出所述目标文件时,获取到停止输出所述目标文件的第二时刻;基于所述第一时刻以及所述第二时刻、终端设备的互联网协议地址信息以及所述终端设备的标识信息,生成所述目标文件的操作情况信息。Scenario 2, the application management unit 21 is further configured to, when confirming to output the target file, obtain the first moment when the target file is initially output; when it is determined to stop outputting the target file, obtain the stop output the second time of the target file; based on the first time and the second time, the Internet Protocol address information of the terminal device and the identification information of the terminal device, the operation status information of the target file is generated.

其中,所述操作情况信息中还可以包括有终端设备的IP地址以及终端设备的标识信息。Wherein, the operation situation information may further include the IP address of the terminal device and the identification information of the terminal device.

也就是说,为第一应用根据自身定义的业务流程,需要对用户免费时,把用户的手机号码,需要IP地址,开始标识,通过插件发送给运营商的消息服务器。免费使用结束时,企业的APP客户端再把用户的手机号码,免费的IP地址和结束标识再发给消息服务器。或者,可以为当使用结束时,将开始时刻以及结束时刻一起发送给消息服务器。That is, when the first application needs to be free of charge to the user according to the business process defined by itself, the user's mobile phone number, IP address, and start identification are sent to the operator's message server through the plug-in. When the free use ends, the enterprise's APP client sends the user's mobile phone number, free IP address and end identification to the message server. Alternatively, when the use ends, the start time and the end time may be sent to the message server together.

所述服务器侧可以为移动网络中的服务器,或者,还可以为无线通信网络中的服务器。具体的,所述服务器侧可以为多个服务器组成的集群。也就是说,通过本方案,除了对于分组域产生的流量可以进行减免,同时可以对于用户使用运营商提供的wlan网络同样进行处理,增加了使用的范围。The server side may be a server in a mobile network, or may also be a server in a wireless communication network. Specifically, the server side may be a cluster composed of multiple servers. That is to say, through this solution, in addition to reducing or exempting the traffic generated in the packet domain, the user can also process the wlan network provided by the operator, thereby increasing the scope of use.

可见,通过采用上述方案,终端设备通过第一应用检测针对目标文件的操作情况,进而发送操作情况至服务器侧,以使得服务器侧基于操作情况进行流量统计,进而根据统计得到的流量进行计费操作。如此,就能够由终端设备中的应用主动发起进行流量统计,避免使用网络中的分组域网关进行数据包的解析处理,企业可以根据自身业务要求,灵活调用,不需要先到运营商处明确使用的业务规则,简化了网络负荷和复杂性。并且,由服务器侧进行后续处理,非实时在用户上网时进行处理,降低分组域网关设备的负载。It can be seen that, by adopting the above solution, the terminal device detects the operation status of the target file through the first application, and then sends the operation status to the server side, so that the server side performs traffic statistics based on the operation status, and then performs the charging operation according to the traffic obtained by statistics. . In this way, the application in the terminal device can actively initiate traffic statistics, avoiding the use of the packet domain gateway in the network for data packet analysis and processing. Enterprises can flexibly call according to their own business requirements, and do not need to go to the operator to explicitly use it. business rules, simplifying network load and complexity. In addition, subsequent processing is performed by the server side, and processing is performed in non-real time when the user surfs the Internet, thereby reducing the load of the packet domain gateway device.

另外,由于对终端设备侧的操作还会进行鉴权操作,如此防止插件被其他用户非法使用,提升了进行流量统计的安全性。In addition, since an authentication operation is also performed on operations on the terminal device side, the plug-in is prevented from being illegally used by other users, and the security of traffic statistics is improved.

实施例三、Embodiment three,

本实施例提供了一种流量管理方法,如图3所示,包括:This embodiment provides a traffic management method, as shown in FIG. 3 , including:

步骤301:为终端设备提供目标文件;Step 301: Provide the target file for the terminal device;

步骤302:当接收到终端设备基于针对所述目标文件的操作发来的操作情况信息时,根据所述操作情况信息,对所述终端设备对所述目标文件的操作而产生的流量进行统计,并基于统计得到的流量结果进行流量费用处理。Step 302: when receiving the operation situation information sent by the terminal device based on the operation on the target file, according to the operation situation information, perform statistics on the traffic generated by the operation of the terminal device on the target file, And based on the traffic results obtained by statistics, the traffic fee processing is performed.

这里,所述终端设备可以为移动终端、平板电脑等设备。所述第一应用可以为企业发放的客户端APP。所述基于第一应用从服务器侧获取到目标文件可以为开启第一应用之后,通过第一应用连接到网络的服务器中,从服务器中,获取到用户所需的目标文件。比如,通过视频应用连接到网络时,可以通过视频应用从网络侧搜索是否有想要在线观看的视频,如果搜索到视频,就可以从服务器中获取到该视频的视频流。Here, the terminal device may be a mobile terminal, a tablet computer, or other devices. The first application may be a client APP issued by an enterprise. The obtaining of the target file from the server side based on the first application may be that after the first application is opened, the first application is connected to the server of the network, and the target file required by the user is obtained from the server. For example, when connecting to the network through a video application, you can use the video application to search from the network side to see if there is a video you want to watch online, and if you find a video, you can obtain the video stream of the video from the server.

第一应用中可以设置有第一类插件,该插件可以为运营商提供给订购定向流量的企业,可以打包到企业的客户端应用中。企业可以根据自身应用的要求,灵活的设计业务流程,该对用户免费的环节调用该插件。插件主要实现两个主要功能:第一为鉴权功能,第二为消息发送功能。The first application may be provided with a first type of plug-in, the plug-in may be provided by the operator to the enterprise that subscribes to the directional traffic, and may be packaged into the enterprise's client application. Enterprises can flexibly design business processes according to their own application requirements, and the plug-in should be called for free links for users. The plug-in mainly implements two main functions: the first is the authentication function, and the second is the message sending function.

所述方法还包括:接收到终端设备发来的鉴权请求,根据所述鉴权请求对运行所述第一类插件进行鉴权,并向所述终端设备发送鉴权结果。The method further includes: receiving an authentication request sent by a terminal device, performing authentication on running the plug-in of the first type according to the authentication request, and sending an authentication result to the terminal device.

其中,所述终端设备的互联网协议(IP)地址的获取方法可以为:当终端设备连接到网络之后,检测自身的网络连接配置,进而通过网络连接配置中提取得到IP地址。The method for obtaining the Internet Protocol (IP) address of the terminal device may be: after the terminal device is connected to the network, it detects its own network connection configuration, and then extracts the IP address from the network connection configuration.

所述终端设备的标识信息可以为终端设备的IMSI。The identification information of the terminal device may be the IMSI of the terminal device.

所述鉴权口令可以为根据实际情况预设在第一应用中,或者,可以为用户通过第一应用在网络使用账户信息进行注册时,由网络分配给所述第一应用的账户信息。The authentication password may be preset in the first application according to the actual situation, or may be account information allocated by the network to the first application when the user registers using the account information on the network through the first application.

所述服务器可以为移动网络中的服务器,或者,还可以为无线通信网络中的服务器。具体的,所述服务器侧可以为多个服务器组成的集群。也就是说,通过本方案,除了对于分组域产生的流量可以进行减免,同时可以对于用户使用运营商提供的wlan网络同样进行处理,增加了使用的范围。The server may be a server in a mobile network, or may also be a server in a wireless communication network. Specifically, the server side may be a cluster composed of multiple servers. That is to say, through this solution, in addition to reducing or exempting the traffic generated in the packet domain, the user can also process the wlan network provided by the operator, thereby increasing the scope of use.

可见,通过采用上述方案,终端设备通过第一应用检测针对目标文件的操作情况,进而发送操作情况至服务器侧,以使得服务器侧基于操作情况进行流量统计,进而根据统计得到的流量进行计费操作。如此,就能够由终端设备中的应用主动发起进行流量统计,避免使用网络中的分组域网关进行数据包的解析处理,企业可以根据自身业务要求,灵活调用,不需要先到运营商处明确使用的业务规则,简化了网络负荷和复杂性。并且,由服务器侧进行后续处理,非实时在用户上网时进行处理,降低分组域网关设备的负载。It can be seen that, by adopting the above solution, the terminal device detects the operation status of the target file through the first application, and then sends the operation status to the server side, so that the server side performs traffic statistics based on the operation status, and then performs the charging operation according to the traffic obtained by statistics. . In this way, the application in the terminal device can actively initiate traffic statistics, avoiding the use of the packet domain gateway in the network for data packet analysis and processing. Enterprises can flexibly call according to their own business requirements, and do not need to go to the operator to explicitly use it. business rules, simplifying network load and complexity. In addition, subsequent processing is performed by the server side, and processing is performed in non-real time when the user surfs the Internet, thereby reducing the load of the packet domain gateway device.

另外,由于对终端设备侧的操作还会进行鉴权操作,如此防止插件被其他用户非法使用,提升了进行流量统计的安全性。In addition, since an authentication operation is also performed on operations on the terminal device side, the plug-in is prevented from being illegally used by other users, and the security of traffic statistics is improved.

实施例四、Embodiment four,

本实施例提供了一种服务器,如图4所示,包括:This embodiment provides a server, as shown in FIG. 4 , including:

存储单元41,用于为终端设备提供目标文件;The storage unit 41 is used to provide the target file for the terminal device;

费用处理单元42,用于当接收到终端设备基于针对所述目标文件的操作发来的操作情况信息时,根据所述操作情况信息,对所述终端设备对所述目标文件的操作而产生的流量进行统计,并基于统计得到的流量结果进行流量费用处理。The fee processing unit 42 is configured to, when receiving the operation situation information sent by the terminal device based on the operation on the target file, generate the information generated by the operation of the terminal device on the target file according to the operation situation information. Traffic statistics are performed, and traffic fees are processed based on the traffic results obtained by the statistics.

所述服务器还包括:鉴权单元43,用于接收到终端设备发来的鉴权请求,根据所述鉴权请求对运行所述第一类插件进行鉴权,并向所述终端设备发送鉴权结果。The server further includes: an authentication unit 43, configured to receive an authentication request sent by a terminal device, authenticate the first type of plug-in running according to the authentication request, and send an authentication request to the terminal device. rights results.

其中,所述终端设备的互联网协议(IP)地址的获取方法可以为:当终端设备连接到网络之后,检测自身的网络连接配置,进而通过网络连接配置中提取得到IP地址。The method for obtaining the Internet Protocol (IP) address of the terminal device may be: after the terminal device is connected to the network, it detects its own network connection configuration, and then extracts the IP address from the network connection configuration.

所述终端设备的标识信息可以为终端设备的IMSI。The identification information of the terminal device may be the IMSI of the terminal device.

所述鉴权口令可以为根据实际情况预设在第一应用中,或者,可以为用户通过第一应用在网络使用账户信息进行注册时,由网络分配给所述第一应用的账户信息。The authentication password may be preset in the first application according to the actual situation, or may be account information allocated by the network to the first application when the user registers using the account information on the network through the first application.

所述服务器可以为移动网络中的服务器,或者,还可以为无线通信网络中的服务器。具体的,所述服务器侧可以为多个服务器组成的集群。也就是说,通过本方案,除了对于分组域产生的流量可以进行减免,同时可以对于用户使用运营商提供的wlan网络同样进行处理,增加了使用的范围。The server may be a server in a mobile network, or may also be a server in a wireless communication network. Specifically, the server side may be a cluster composed of multiple servers. That is to say, through this solution, in addition to reducing or exempting the traffic generated in the packet domain, the user can also process the wlan network provided by the operator, thereby increasing the scope of use.

可见,通过采用上述方案,终端设备通过第一应用检测针对目标文件的操作情况,进而发送操作情况至服务器侧,以使得服务器侧基于操作情况进行流量统计,进而根据统计得到的流量进行计费操作。如此,就能够由终端设备中的应用主动发起进行流量统计,避免使用网络中的分组域网关进行数据包的解析处理,企业可以根据自身业务要求,灵活调用,不需要先到运营商处明确使用的业务规则,简化了网络负荷和复杂性。并且,由服务器侧进行后续处理,非实时在用户上网时进行处理,降低分组域网关设备的负载。It can be seen that, by adopting the above solution, the terminal device detects the operation status of the target file through the first application, and then sends the operation status to the server side, so that the server side performs traffic statistics based on the operation status, and then performs the charging operation according to the traffic obtained by statistics. . In this way, the application in the terminal device can actively initiate traffic statistics, avoiding the use of the packet domain gateway in the network for data packet analysis and processing. Enterprises can flexibly call according to their own business requirements, and do not need to go to the operator to explicitly use it. business rules, simplifying network load and complexity. In addition, subsequent processing is performed by the server side, and processing is performed in non-real time when the user surfs the Internet, thereby reducing the load of the packet domain gateway device.

另外,由于对终端设备侧的操作还会进行鉴权操作,如此防止插件被其他用户非法使用,提升了进行流量统计的安全性。In addition, since an authentication operation is also performed on operations on the terminal device side, the plug-in is prevented from being illegally used by other users, and the security of traffic statistics is improved.

实施例五、Embodiment five,

本实施例提供了一种流量管理系统,如图5所示,所述系统包括:This embodiment provides a traffic management system, as shown in FIG. 5 , the system includes:

终端设备51,用于开启第一应用;基于所述第一应用从服务器侧获取到目标文件;基于针对所述目标文件的操作,生成针对所述目标文件的操作情况信息;发送所述操作情况信息至消息接收服务器;The terminal device 51 is used to open a first application; obtain a target file from the server side based on the first application; generate operation status information for the target file based on an operation on the target file; send the operation status information to the message receiving server;

消息接收服务器52,用于将接收到的所述操作情况信息发送至计费模块服务器;The message receiving server 52 is configured to send the received operation situation information to the billing module server;

计费模块服务器53,用于根据所述操作情况信息,对所述终端设备对所述目标文件的操作而产生的流量进行统计,并基于统计得到的流量结果进行流量费用处理。The billing module server 53 is configured to collect statistics on the traffic generated by the operation of the terminal device on the target file according to the operation situation information, and perform traffic fee processing based on the traffic results obtained by the statistics.

这里,所述终端设备可以为移动终端、平板电脑等设备。Here, the terminal device may be a mobile terminal, a tablet computer, or other devices.

所述第一应用可以为企业发放的客户端APP。The first application may be a client APP issued by an enterprise.

所述基于第一应用从服务器侧获取到目标文件可以为开启第一应用之后,通过第一应用连接到网络的服务器中,从服务器中,获取到用户所需的目标文件。比如,通过视频应用连接到网络时,可以通过视频应用从网络侧搜索是否有想要在线观看的视频,如果搜索到视频,就可以从服务器中获取到该视频的视频流。The obtaining of the target file from the server side based on the first application may be that after the first application is opened, the first application is connected to the server of the network, and the target file required by the user is obtained from the server. For example, when connecting to the network through a video application, you can use the video application to search from the network side to see if there is a video you want to watch online, and if you find a video, you can obtain the video stream of the video from the server.

进一步地,第一应用中可以设置有第一类插件,该插件可以为运营商提供给订购定向流量的企业,可以打包到企业的客户端应用中。企业可以根据自身应用的要求,灵活的设计业务流程,该对用户免费的环节调用该插件。插件主要实现两个主要功能:第一为鉴权功能,第二为消息发送功能。Further, the first application may be provided with a plug-in of the first type, the plug-in may be provided by the operator to the enterprise that subscribes to the directional traffic, and may be packaged into the client application of the enterprise. Enterprises can flexibly design business processes according to their own application requirements, and the plug-in should be called for free links for users. The plug-in mainly implements two main functions: the first is the authentication function, and the second is the message sending function.

所述鉴权功能,用于在运行第一应用,比如企业APP客户端时,到鉴权服务器进行鉴权,检查插件对应企业的合法性,以免该插件被非法使用。The authentication function is used to perform authentication on the authentication server when running the first application, such as an enterprise APP client, to check the validity of the enterprise corresponding to the plug-in, so as to prevent the plug-in from being used illegally.

所述系统还包括:The system also includes:

鉴权服务器54,用于根据所述鉴权请求对运行所述第一类插件进行鉴权,并向所述终端设备发送鉴权结果;An authentication server 54, configured to authenticate the operation of the first type of plug-in according to the authentication request, and send an authentication result to the terminal device;

相应的,所述终端设备51,还用于运行所述第一应用中的第一类插件;通过所述第一类插件获取到所述终端设备的互联网协议地址、用户标识以及鉴权口令;基于所述终端设备的互联网协议地址、用户标识以及鉴权口令生成鉴权请求;向服务器侧发送所述鉴权请求。Correspondingly, the terminal device 51 is further configured to run the first type of plug-in in the first application; obtain the Internet Protocol address, user ID and authentication password of the terminal device through the first type of plug-in; An authentication request is generated based on the internet protocol address, user identifier and authentication password of the terminal device; and the authentication request is sent to the server side.

其中,所述终端设备的互联网协议(IP)地址的获取方法可以为:当终端设备连接到网络之后,检测自身的网络连接配置,进而通过网络连接配置中提取得到IP地址。The method for obtaining the Internet Protocol (IP) address of the terminal device may be: after the terminal device is connected to the network, it detects its own network connection configuration, and then extracts the IP address from the network connection configuration.

所述终端设备的标识信息可以为终端设备的IMSI。The identification information of the terminal device may be the IMSI of the terminal device.

所述鉴权口令可以为根据实际情况预设在第一应用中,或者,可以为用户通过第一应用在网络使用账户信息进行注册时,由网络分配给所述第一应用的账户信息。The authentication password may be preset in the first application according to the actual situation, or may be account information allocated by the network to the first application when the user registers using the account information on the network through the first application.

比如,所述鉴权服务器,具体用于提供使用插件时的鉴权功能。保证订购定向流量企业的APP客户端调用插件的合法性。APP调用插件进行鉴权时,提交备案的IP地址、用户名、口令等鉴权信息,保证使用插件的合法性,防止被其他人盗用。For example, the authentication server is specifically used to provide an authentication function when a plug-in is used. Guarantee the legitimacy of the APP client calling the plug-in of the enterprise that subscribes to directional traffic. When the APP calls the plug-in for authentication, submit the IP address, user name, password and other authentication information for record to ensure the legality of using the plug-in and prevent it from being stolen by others.

所述消息发送功能,可以有以下两种实现场景:The message sending function can be implemented in the following two scenarios:

场景一、当确认输出所述目标文件时,获取到初始输出所述目标文件的第一时刻,基于所述第一时刻生成所述目标文件的操作情况第一子信息;当确定停止输出所述目标文件时,获取到停止输出所述目标文件的第二时刻,基于所述第二时刻生成所述目标文件的操作情况第二子信息。Scenario 1: When confirming to output the target file, obtain the first moment of initial output of the target file, and generate the first sub-information of the operation situation of the target file based on the first moment; when it is determined to stop outputting the target file When the target file is generated, the second time when the output of the target file is stopped is obtained, and the second sub-information on the operation situation of the target file is generated based on the second time.

通过第一时刻以及第二时刻,服务器侧能够识别出用户播放目标文件的开始以及停止的时刻,从而获得用户使用网络流量的情况。Through the first time and the second time, the server side can identify the time when the user starts and stops playing the target file, so as to obtain the situation of the user's use of network traffic.

其中,所述操作情况第一子信息以及操作情况第二自信息中还可以包括有:IP地址、终端设备的标识信息。Wherein, the first sub-information of the operation situation and the second self-information of the operation situation may further include: IP address and identification information of the terminal device.

场景二,当确认输出所述目标文件时,获取到初始输出所述目标文件的第一时刻;当确定停止输出所述目标文件时,获取到停止输出所述目标文件的第二时刻;基于所述第一时刻以及所述第二时刻、终端设备的互联网协议地址信息以及所述终端设备的标识信息,生成所述目标文件的操作情况信息。Scenario 2, when the output of the target file is confirmed, the first moment when the target file is initially output is obtained; when it is determined to stop the output of the target file, the second moment when the output of the target file is stopped is obtained; The first time and the second time, the Internet Protocol address information of the terminal device, and the identification information of the terminal device are used to generate the operation status information of the target file.

其中,所述操作情况信息中还可以包括有终端设备的IP地址以及终端设备的标识信息。Wherein, the operation situation information may further include the IP address of the terminal device and the identification information of the terminal device.

也就是说,消息接收服务器,接收经过鉴权服务器鉴权后,插件发过来的用户号码、需要免费的IP地址和开始结束标识。消息服务器获得上述信息后,增加定向流量企业的标识,并填写服务器端的时间信息。把该消息内容发送给计费模块处理服务器,进行后续处理。That is to say, the message receiving server receives the user number, the free IP address and the start and end identifiers sent by the plug-in after being authenticated by the authentication server. After the message server obtains the above information, it adds the identifier of the directional traffic enterprise, and fills in the time information on the server side. Send the message content to the accounting module processing server for subsequent processing.

所述系统还包括:The system also includes:

分组域网关设备55,用于为计费模块服务器提供所述终端设备在指定时长内的全部流量信息;a packet domain gateway device 55, configured to provide the charging module server with all traffic information of the terminal device within a specified period of time;

相应的,所述计费模块服务器53,具体用于从分组域的网关设备获取在指定时长内所述终端设备的全部流量信息,根据所述终端设备上报的所述操作情况信息,对所述终端设备对所述目标文件的操作而产生的流量进行统计,并基于统计得到的流量结果以及所述终端设备的全部流量信息,确定所述终端设备在指定时长内的流量费用。Correspondingly, the billing module server 53 is specifically configured to acquire all the traffic information of the terminal device within a specified time period from the gateway device in the packet domain, and, according to the operation situation information reported by the terminal device, The terminal device collects statistics on the traffic generated by the operation of the target file, and determines the traffic cost of the terminal device within a specified period of time based on the traffic results obtained by the statistics and all traffic information of the terminal device.

其中,分组域网关设备,不用做任何改造配置,只负责生成用户通过分组域产生的流量话单。Among them, the gateway device of the packet domain does not need to do any modification and configuration, and is only responsible for generating the traffic bills generated by the user through the packet domain.

相应的,计费模块服务器,从分组域网关设备获取用户上网的所有话单记录,按照单个用户处理,如果该用户有消息服务器发送过来的流量减免消息,计费服务器把该流量计算为0,不再向用户收费。该时间点的其他流量,按照该用户订购的流量费率进行计算。对于减免的流量按照订购定向流量的企业汇总统计,向对应的企业进行收费。Correspondingly, the billing module server obtains all the bill records of the user surfing the Internet from the packet domain gateway device, and processes it according to a single user. If the user has a traffic reduction message sent by the message server, the billing server calculates the traffic as 0. Users are no longer charged. Other traffic at this time point is calculated according to the traffic rate subscribed by the user. For the reduced or exempted traffic, the corresponding enterprises will be charged according to the summary statistics of the enterprises that subscribe to the directional traffic.

本实施例提供的系统组成可以如图6所示。所述服务器侧可以为移动网络中的服务器,或者,还可以为无线通信网络中的服务器。具体的,所述服务器侧可以为多个服务器组成的集群。也就是说,通过本方案,除了对于分组域产生的流量可以进行减免,同时可以对于用户使用运营商提供的wlan网络同样进行处理,增加了使用的范围。The system composition provided by this embodiment may be as shown in FIG. 6 . The server side may be a server in a mobile network, or may also be a server in a wireless communication network. Specifically, the server side may be a cluster composed of multiple servers. That is to say, through this solution, in addition to reducing or exempting the traffic generated in the packet domain, the user can also process the wlan network provided by the operator, thereby increasing the scope of use.

可见,通过采用上述方案,终端设备通过第一应用检测针对目标文件的操作情况,进而发送操作情况至服务器侧,以使得服务器侧基于操作情况进行流量统计,进而根据统计得到的流量进行计费操作。如此,就能够由终端设备中的应用主动发起进行流量统计,避免使用网络中的分组域网关进行数据包的解析处理,企业可以根据自身业务要求,灵活调用,不需要先到运营商处明确使用的业务规则,简化了网络负荷和复杂性。并且,由服务器侧进行后续处理,非实时在用户上网时进行处理,降低分组域网关设备的负载。It can be seen that, by adopting the above solution, the terminal device detects the operation status of the target file through the first application, and then sends the operation status to the server side, so that the server side performs traffic statistics based on the operation status, and then performs the charging operation according to the traffic obtained by statistics. . In this way, the application in the terminal device can actively initiate traffic statistics, avoiding the use of the packet domain gateway in the network for data packet analysis and processing. Enterprises can flexibly call according to their own business requirements, and do not need to go to the operator to explicitly use it. business rules, simplifying network load and complexity. In addition, subsequent processing is performed by the server side, and processing is performed in non-real time when the user surfs the Internet, thereby reducing the load of the packet domain gateway device.

另外,由于对终端设备侧的操作还会进行鉴权操作,如此防止插件被其他用户非法使用,提升了进行流量统计的安全性。In addition, since an authentication operation is also performed on operations on the terminal device side, the plug-in is prevented from being illegally used by other users, and the security of traffic statistics is improved.

本发明实施例所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、基站、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。If the integrated modules described in the embodiments of the present invention are implemented in the form of software function modules and sold or used as independent products, they may also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of software products in essence or the parts that make contributions to the prior art. The computer software products are stored in a storage medium and include several instructions for A computer device (which may be a personal computer, a base station, or a network device, etc.) is caused to execute all or part of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes . As such, embodiments of the present invention are not limited to any particular combination of hardware and software.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention.

Claims (10)

1. A traffic management method is applied to terminal equipment, and is characterized in that the method comprises the following steps:
starting a first application;
acquiring a target file from a server side based on the first application;
generating operation condition information for the target file based on the operation for the target file;
sending the operation condition information to a server side;
before the target file is acquired from the server side based on the first application, the method further comprises the following steps:
running a first type plug-in the first application;
acquiring an internet protocol address, a user identification and an authentication password of the terminal equipment through the first type plug-in;
generating an authentication request based on the Internet protocol address, the user identification and the authentication password of the terminal equipment;
sending the authentication request to a server side;
and receiving an authentication result returned by the server side.
2. The method of claim 1, wherein generating operation condition information for the target file based on the operation for the target file comprises:
when the target file is confirmed to be output, acquiring a first moment of initially outputting the target file, and generating first sub-information of the operation condition of the target file based on the first moment;
and when the target file is determined to stop being output, acquiring a second moment when the target file is stopped being output, and generating second sub-information of the operation condition of the target file based on the second moment.
3. The method of claim 1, wherein generating operation condition information for the target file based on the operation for the target file comprises:
when the target file is confirmed to be output, acquiring a first moment of initially outputting the target file;
when the target file is determined to stop being output, acquiring a second moment when the target file is stopped being output;
and generating the operation condition information of the target file based on the first time and the second time, the internet protocol address information of the terminal equipment and the identification information of the terminal equipment.
4. A terminal device, characterized in that the terminal device comprises:
the application management unit is used for starting a first application; acquiring a target file from a server side based on the first application; generating operation condition information for the target file based on the operation for the target file;
the communication unit is used for sending the operation condition information to the server side;
the application management unit is also used for running a first type of plug-in the first application; acquiring an internet protocol address, a user identification and an authentication password of the terminal equipment through the first type plug-in; generating an authentication request based on the Internet protocol address, the user identification and the authentication password of the terminal equipment;
correspondingly, the communication unit is further configured to send an authentication request of the first class plug-in to the server side, and obtain an authentication result returned by the server side.
5. The terminal device of claim 4,
the application management unit is further configured to acquire a first time at which the target file is initially output when the target file is confirmed to be output, and generate first sub information of an operation condition of the target file based on the first time; and when the target file is determined to stop being output, acquiring a second moment when the target file is stopped being output, and generating second sub-information of the operation condition of the target file based on the second moment.
6. The terminal device of claim 4,
the application management unit is further configured to obtain a first time for initially outputting the target file when the target file is confirmed to be output; when the target file is determined to stop being output, acquiring a second moment when the target file is stopped being output; and generating the operation condition information of the target file based on the first time and the second time, the internet protocol address information of the terminal equipment and the identification information of the terminal equipment.
7. A traffic management method is applied to a server, and is characterized by comprising the following steps:
providing a target file for a first application of a terminal device;
when receiving operation condition information sent by a terminal device based on the operation aiming at the target file, counting the flow generated by the operation of the terminal device on the target file according to the operation condition information, and carrying out flow charge processing based on the flow result obtained by counting;
the method further comprises the following steps:
receiving an authentication request sent by terminal equipment, authenticating a first type of plug-in running in the first application according to the authentication request, and sending an authentication result to the terminal equipment; wherein the authentication request is generated based on an internet protocol address, a user identification and an authentication password of the terminal device.
8. A server, characterized in that the server comprises:
the storage unit is used for providing a target file for a first application of the terminal equipment;
the cost processing unit is used for counting the flow generated by the operation of the terminal equipment on the target file according to the operation condition information when receiving the operation condition information sent by the terminal equipment based on the operation on the target file, and performing flow cost processing based on the flow result obtained by counting;
the server further comprises:
the authentication unit is used for receiving an authentication request sent by terminal equipment, authenticating the first type of plug-in running in the first application according to the authentication request and sending an authentication result to the terminal equipment; wherein the authentication request is generated based on an internet protocol address, a user identification and an authentication password of the terminal device.
9. A traffic management system, characterized in that the system comprises:
the terminal equipment is used for starting the first application; acquiring a target file from a server side based on the first application; generating operation condition information for the target file based on the operation for the target file; sending the operation condition information to a message receiving server;
the message receiving server is used for sending the received operation condition information to the charging module server;
the charging module server is used for counting the flow generated by the operation of the terminal equipment on the target file according to the operation condition information and carrying out flow charge processing based on the flow result obtained by counting;
correspondingly, the terminal device is further configured to run a first type of plug-in the first application; acquiring an internet protocol address, a user identification and an authentication password of the terminal equipment through the first type plug-in; generating an authentication request based on the Internet protocol address, the user identification and the authentication password of the terminal equipment; sending the authentication request to an authentication server at a server side;
and the authentication server is used for authenticating the running of the first type of plug-in according to the authentication request and sending an authentication result to the terminal equipment.
10. The system of claim 9, further comprising:
the packet domain gateway equipment is used for providing all flow information of the terminal equipment in a specified duration for the charging module server;
correspondingly, the charging module server is specifically configured to obtain all traffic information of the terminal device within a specified duration from a gateway device in a packet switched domain, count traffic generated by the terminal device operating the target file according to the operating condition information reported by the terminal device, and determine a traffic cost of the terminal device within the specified duration based on a traffic result obtained by the counting and all traffic information of the terminal device.
CN201510920898.9A 2015-12-11 2015-12-11 A traffic management method, terminal device, server and system Active CN106878099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510920898.9A CN106878099B (en) 2015-12-11 2015-12-11 A traffic management method, terminal device, server and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510920898.9A CN106878099B (en) 2015-12-11 2015-12-11 A traffic management method, terminal device, server and system

Publications (2)

Publication Number Publication Date
CN106878099A CN106878099A (en) 2017-06-20
CN106878099B true CN106878099B (en) 2020-10-30

Family

ID=59177409

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510920898.9A Active CN106878099B (en) 2015-12-11 2015-12-11 A traffic management method, terminal device, server and system

Country Status (1)

Country Link
CN (1) CN106878099B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109302641B (en) * 2017-07-25 2022-08-02 腾讯科技(北京)有限公司 Video watching request method, medium and device
CN108696406A (en) * 2018-05-30 2018-10-23 连尚(新昌)网络科技有限公司 The method of pushed information
CN111314183B (en) * 2020-04-09 2022-02-22 网易(杭州)网络有限公司 Flow information detection method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005381A (en) * 2006-01-17 2007-07-25 华为技术有限公司 System and method for realizing flow statistic based user's service on terminal
CN101009005A (en) * 2006-01-24 2007-08-01 中国电信股份有限公司 Method, system and platform for securing safety of payment based on internet
CN102761537A (en) * 2012-03-29 2012-10-31 北京奇虎科技有限公司 Method and system for authentication and authorization on basis of client-side plug-in
CN102830992A (en) * 2012-07-31 2012-12-19 北京奇虎科技有限公司 Plug-in loading method and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8085741B2 (en) * 2004-03-10 2011-12-27 Core Wireless Licensing S.A.R.L. System and method for pushing content to a terminal utilizing a network-initiated data service technique
CN102026141B (en) * 2010-12-27 2014-09-10 中兴通讯股份有限公司 Flow statistic method, terminal and system
CN102916870A (en) * 2012-10-26 2013-02-06 苏州阔地网络科技有限公司 Method and system for controlling network connection
CN105101270B (en) * 2014-05-12 2019-02-01 宇龙计算机通信科技(深圳)有限公司 Flow management device and flow managing method for terminal
CN105101138A (en) * 2014-05-23 2015-11-25 宇龙计算机通信科技(深圳)有限公司 Method and system for controlling traffic, and terminal
CN104378258B (en) * 2014-11-14 2019-01-15 东莞宇龙通信科技有限公司 A kind of network flow monitoring method, device and terminal
CN104486138A (en) * 2014-11-25 2015-04-01 北京奇虎科技有限公司 Flow monitoring method and device and monitoring server
CN104967688A (en) * 2015-06-30 2015-10-07 北京奇虎科技有限公司 Method, mobile terminal and system for accessing network by using traffic-free platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005381A (en) * 2006-01-17 2007-07-25 华为技术有限公司 System and method for realizing flow statistic based user's service on terminal
CN101009005A (en) * 2006-01-24 2007-08-01 中国电信股份有限公司 Method, system and platform for securing safety of payment based on internet
CN102761537A (en) * 2012-03-29 2012-10-31 北京奇虎科技有限公司 Method and system for authentication and authorization on basis of client-side plug-in
CN102830992A (en) * 2012-07-31 2012-12-19 北京奇虎科技有限公司 Plug-in loading method and system

Also Published As

Publication number Publication date
CN106878099A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
US7653933B2 (en) System and method of network authentication, authorization and accounting
US9009293B2 (en) System and method for reporting packet characteristics in a network environment
CN101990183B (en) Method, device and system for protecting user information
US8023926B2 (en) Offline charging for sessions over a 3GPP network and a WLAN access network
WO2011035684A1 (en) Network selection method based on multi-link and apparatus thereof
US20100151822A1 (en) Security Protocols for Mobile Operator Networks
WO2016165505A1 (en) Connection control method and apparatus
CN108632325A (en) A kind of call method and device of application
CN106878099B (en) A traffic management method, terminal device, server and system
WO2016101595A1 (en) Method, apparatus and system for accessing third-party resource through application
CN103581864B (en) Towards the QoS real-time monitoring methods and system of mobile value-added service
US20170257490A1 (en) Charging control apparatus, method, and system
EP3366017B1 (en) Detection method against charging fraud
CN105429978B (en) Data access method, equipment and system
WO2007137482A1 (en) Charging method, system and device in interoperability network of global microwave system
US20230422030A1 (en) Trustful Service Traffic Handling in a Core Network Domain
CN103841081A (en) Capability scheduling method and system
JP2020529754A (en) UE adapted to send service validation messages
US10299121B2 (en) System and method for providing differential service scheme
KR100621203B1 (en) Wireless data service control method and system for prepaid and limit subscriber
CN105191226B (en) For adjusting the method and arrangement of the service quality of dedicated channel based on service awareness
CN103139695B (en) The telecommunication capability call method of curstomer-oriented end and the network equipment
CA2379677A1 (en) System and method for local policy enforcement for internet service providers
CN102958055B (en) A kind of discrimination method of illegal callback service and system
CN111294311B (en) A traffic accounting method and system for preventing traffic fraud

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