WO2016127638A1 - Method for real-time monitoring of ps domain traffic, and related device - Google Patents

Method for real-time monitoring of ps domain traffic, and related device Download PDF

Info

Publication number
WO2016127638A1
WO2016127638A1 PCT/CN2015/089354 CN2015089354W WO2016127638A1 WO 2016127638 A1 WO2016127638 A1 WO 2016127638A1 CN 2015089354 W CN2015089354 W CN 2015089354W WO 2016127638 A1 WO2016127638 A1 WO 2016127638A1
Authority
WO
WIPO (PCT)
Prior art keywords
traffic
user
ocs
data service
flow control
Prior art date
Application number
PCT/CN2015/089354
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 中兴通讯股份有限公司
Publication of WO2016127638A1 publication Critical patent/WO2016127638A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Definitions

  • the mobile phone comes with or installs an application APP provided by a third party for traffic monitoring, and can set traffic reminders and use thresholds, but the drawbacks are obvious:
  • flow control parameters include the particle size of the flow control and the flow threshold within the granularity:
  • the OCS receives an update request of the user for the data service flow control parameter. Updating the saved data traffic control parameters of the user, including:
  • the processor is configured to carry a data service flow control parameter in the CCR-I message when the CCR-I message for the network authentication is sent to the OCS when the user requests to access the network, so that the OCS saves the data service.
  • the flow control parameter monitors the process of using the data service traffic by the user based on the data service flow control parameter; when the OCS monitors that the data service traffic used by the user reaches the traffic threshold, the monitoring result sent by the OCS is passed The user terminal prompts the user.
  • step 102 when it is monitored that the data service traffic that the user has used reaches the traffic threshold, the monitoring result is displayed to the user through the charging gateway, including:
  • Step 201 The OCS pre-stores data traffic control parameters of the user, where the traffic control parameters include: a granularity of the flow control and a traffic threshold within the granularity;
  • FIG. 8 is a flow chart of message interaction between various functional entities in the charging system of this embodiment.
  • the functional entities mainly included in the charging system are a user terminal, a charging gateway, and an online charging system OCS.
  • the function of the user terminal is to initiate a request for accessing the network and a request message for the new service;
  • the function of the charging gateway is to determine the rate, calculate the used duration and flow rate, save the abnormal/normal bill, etc. through the OCS;
  • the function of the fee system authenticates, authorizes, and performs real-time billing based on the traffic that the user has used.
  • the services referred to in this embodiment all refer to data services.
  • S608 The online charging system performs batch processing

Abstract

The embodiment of the present invention proposes a method for real-time monitoring of PS domain traffic, and a related device, wherein processes executed on an on-line charging system (OCS) side comprise: the OCS pre-storing a data traffic control parameter of a user, with the traffic control parameter comprising a traffic threshold value; the OCS monitoring the process that the user uses a data traffic, and giving a prompt of a monitoring result to the user by means of a charging gateway when the OCS monitors that the data traffic used by the user reaches the traffic threshold value.

Description

一种PS域流量实时监控的方法及相关设备Method and related device for real-time monitoring of PS domain traffic 技术领域Technical field
本文涉及但不限于通信技术领域,尤其涉及一种PS域(Packet Switching Domain,分组交换域)流量实时监控的方法及相关设备。This document relates to, but is not limited to, the field of communication technologies, and in particular, to a method and a related device for real-time monitoring of a packet in a PS (Packet Switching Domain).
背景技术Background technique
CS域(Circuit Switching Domain,电路交换域)打电话是不能通话交叉的,每分钟的资费也是固定的,所以用户是知道自己消费了多少,钱袋子是可控的。而进入PS域,数据业务是可以多业务并发的,并且流量的使用目前不具备直观性,因此,用户无法准确知道自己到底用了多少流量。所以才会出现天价话单、资费问题投诉等。The CS Domain (Circuit Switching Domain) calls cannot be called, and the tariff per minute is fixed. Therefore, the user knows how much he or she has consumed, and the money bag is controllable. When entering the PS domain, the data service can be concurrent with multiple services, and the use of traffic is currently not intuitive, so users cannot know exactly how much traffic they use. Therefore, there will be sky-high CDRs and complaints about tariffs.
例如:某运营商手机一个月套餐流量是500M,月底几天打查询流量电话或者在网站上查剩余流量剩余30M,可下载一个标注28M的应用后,过段时间后会收到短信说流量已经超出套餐,多出部分按照什么资费扣费。原因是对于OCS(Online Charging System,在线计费系统)来说计费是实时的,但是OCS生成的话单却不是实时的,需要等到定时触发或者用户去激活时生成话单。只有生成话单后,前台业务或者短信系统才能查询到用户已经使用了多少流量。这样就导致计费提示延时,误导消费者。For example, the traffic of a carrier's mobile phone is 500M per month. At the end of the month, you can check the traffic call or check the remaining 30M of the remaining traffic on the website. You can download a 28M application. After a while, you will receive a text message saying that the traffic has been sent. Exceeding the package, the extra part is charged according to what the fee is charged. The reason is that for OCS (Online Charging System), the billing is real-time, but the bills generated by OCS are not real-time, and need to wait until the timing is triggered or the user deactivates to generate the bill. After the bill is generated, the front-end service or SMS system can query how much traffic the user has used. This leads to a delay in billing prompts and misleading consumers.
目前有一些解决方案:手机自带或者安装有第三方提供的用于流量监控的应用APP,可以设置流量提醒和使用阀值,但弊端明显:At present, there are some solutions: the mobile phone comes with or installs an application APP provided by a third party for traffic monitoring, and can set traffic reminders and use thresholds, but the drawbacks are obvious:
第一:流量控制都是根据手机收发数据,而网络过程中的分片重组、重传等是感知不到的,流量统计并不准确;First: the flow control is based on the mobile phone to send and receive data, and the fragmentation and retransmission in the network process are not perceived, and the traffic statistics are not accurate;
第二:这些软件运营商不认可,不能作为计费与投诉依据,出现计费问题,仍按照运营商计费为准,进行处理; Second: these software operators do not recognize, can not be used as the basis for billing and complaints, billing problems, and still subject to operator billing, for processing;
第三:对于免费业务,只有OCS才知道,业务运营归类是手机中的应用无法感知的,例如某几省手机淘宝流量免费等。Third: For free services, only OCS knows that business operations are classified by mobile phones, such as mobile phone Taobao traffic in some provinces.
所以当前手机中的流量控制应用,误差和漏洞都很大。Therefore, the current flow control applications in mobile phones, errors and loopholes are very large.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述,本概述并非是为了限制权利要求的保护范围。The following is a summary of the subject matter described in detail herein, and is not intended to limit the scope of the claims.
本发明实施例提供一种PS域流量实时监控的方法及相关设备,使用户准确、及时的了解到自己数据业务流量的使用情况。The embodiments of the present invention provide a method for real-time monitoring of PS domain traffic and related devices, so that users can accurately and timely understand the usage of their own data traffic.
本发明实施例提供一种PS域流量实时监控的方法,包括在线计费系统OCS侧执行的如下步骤:The embodiment of the invention provides a method for real-time monitoring of PS domain traffic, which includes the following steps performed on the OCS side of the online charging system:
OCS预先存储用户的数据业务流量控制参数;所述流量控制参数,包括:流量阀值;The OCS pre-stores data traffic control parameters of the user; the flow control parameters include: a traffic threshold;
OCS对用户使用数据业务流量的过程进行监控,当监控到用户已使用的数据业务流量达到所述流量阀值时,通过计费网关将监测结果提示给用户。The OCS monitors the process of using the data service traffic by the user. When the data traffic that has been used by the user reaches the traffic threshold, the monitoring result is displayed to the user through the charging gateway.
可选地,所述流量控制参数,还包括:流量控制的粒度,所述流量阀值为所述粒度内的流量阀值;Optionally, the flow control parameter further includes: a granularity of the flow control, where the flow threshold is a flow threshold within the granularity;
或者,所述流量控制参数,还包括:流量控制的时间段;Or the flow control parameter further includes: a time period of the flow control;
在流量控制参数包括流量控制的粒度和所述粒度内的流量阀值的情况下:Where the flow control parameters include the particle size of the flow control and the flow threshold within the granularity:
OCS根据所述流量控制的粒度,周期性地对用户使用数据业务流量的过程进行监控,每当监控到用户已使用的数据业务流量达到所述粒度内的流量阀值时,通过计费网关提示给用户。The OCS periodically monitors the process of using the data service traffic by the user according to the granularity of the flow control, and prompts the charging gateway to notify the traffic threshold of the granularity when the user uses the data traffic of the granularity. To the user.
可选地,所述OCS预先存储用户的数据业务流量控制参数,包括:Optionally, the OCS pre-stores data traffic control parameters of the user, including:
OCS接收到用户通过计费网关发来的用于入网鉴权的CCR-I(Credit  Control Request–Initialize,信用控制请求-初始化)消息时,从所述CCR-I消息中提取出数据业务流量控制参数,所述数据业务流量控制参数以Diameter协议的AVP(Attribute Value Pair,属性值对)结构插入所述CCR-I消息中携带的服务信息下的电路域信息中。The OCS receives the CCR-I (Credit) sent by the user through the charging gateway for network authentication. The data service flow control parameter is extracted from the CCR-I message, and the data service flow control parameter is an AVP (Attribute Value Pair) of the Diameter protocol. The structure is inserted into the circuit domain information under the service information carried in the CCR-I message.
可选地,所述当监控到用户已使用的数据业务流量达到所述流量阀值时,通过计费网关将监测结果提示给用户,包括:Optionally, when the data traffic that has been used by the user is monitored to reach the traffic threshold, the monitoring result is displayed to the user by using the charging gateway, including:
当接收到用户通过计费网关发来的针对任一数据业务的流量配额申请时,判断用户已使用的数据业务流量是否达到所述流量阀值;如果用户已使用的数据业务流量大于或等于所述流量阀值,则通过计费网关将判断结果提示给用户;如果用户已使用的数据业务流量小于所述流量阀值,则为所述数据业务下发流量配额,并将本次下发的流量配额累加入用户已使用的数据业务流量,供后续判断使用。When receiving a traffic quota request for any data service sent by the user through the charging gateway, determining whether the data traffic used by the user reaches the traffic threshold; if the data traffic used by the user is greater than or equal to the The traffic threshold is sent to the user through the charging gateway; if the data traffic used by the user is less than the traffic threshold, the traffic quota is issued for the data service, and the current service is delivered. The traffic quota is added to the data traffic that the user has used for subsequent evaluation.
可选地,所述方法还包括所述OCS侧执行的如下步骤:当监控到用户已使用的数据业务流量达到所述流量阀值时,通过计费网关终止用户当前申请流量配额的数据业务。Optionally, the method further includes: performing, by the OCS side, the following step: when monitoring that the data service traffic that the user has used reaches the traffic threshold, the data service of the current application for the traffic quota is terminated by the charging gateway.
可选地,为所述数据业务下发流量配额,包括:Optionally, the traffic quota is delivered for the data service, including:
判断预设的流量配额是否大于所述流量阀值与用户已使用的数据业务流量之差,如果预设的流量配额大于所述流量阀值减去用户已使用的数据业务流量之差,则将所述流量阀值与用户已使用的数据业务流量之差作为本次的流量配额进行下发;如果预设的流量配额小于等于所述流量阀值减去用户已使用的数据业务流量之差,则按照预设的流量配额进行下发。Determining whether the preset traffic quota is greater than a difference between the traffic threshold and the data traffic used by the user. If the preset traffic quota is greater than the traffic threshold minus the difference between the data traffic used by the user, The difference between the traffic threshold and the data traffic used by the user is sent as the current traffic quota; if the preset traffic quota is less than or equal to the traffic threshold minus the difference between the data traffic used by the user, The delivery is performed according to the preset traffic quota.
可选地,所述方法还包括所述OCS侧执行的如下步骤:Optionally, the method further includes the following steps performed by the OCS side:
OCS接收到用户通过计费网关发起的对所述数据业务流量控制参数的更新请求时,对保存的所述用户的数据业务流量控制参数进行更新。When receiving the update request of the data service flow control parameter initiated by the charging gateway, the OCS updates the saved data service flow control parameter of the user.
可选地,所述OCS接收到用户对所述数据业务流量控制参数的更新请求 时,对保存的所述用户的数据业务流量控制参数进行更新,包括:Optionally, the OCS receives an update request of the user for the data service flow control parameter. Updating the saved data traffic control parameters of the user, including:
OCS接收到用户通过计费网关发来的CCR-U(Credit Control Request–Update,信用控制请求-更新)消息时,若基于所述CCR-U消息中的标志位判定出所述CCR-U消息中携带有新的数据业务流量控制参数,则将新的数据业务流量控制参数替代原有的所述用户的数据业务流量控制参数;所述新的数据业务流量控制参数以Diameter协议的AVP结构插入所述CCR-U消息中携带的服务信息下的电路域信息中。When receiving the CCR-U (Credit Control Request-Update) message sent by the user through the charging gateway, the OCS determines the CCR-U message based on the flag bit in the CCR-U message. The new data service flow control parameter is replaced by the new data service flow control parameter, and the new data service flow control parameter is inserted in the AVP structure of the Diameter protocol. The circuit domain information under the service information carried in the CCR-U message.
可选地,所述方法还包括所述OCS侧执行的如下步骤:Optionally, the method further includes the following steps performed by the OCS side:
当更新后的所述数据业务流量控制参数中的流量阀值小于用户已使用的数据业务流量时,通过计费网关终止所述用户的正在进行的所有数据业务,并提示给用户。When the updated traffic threshold in the data traffic control parameter is smaller than the data traffic used by the user, all the data services in progress of the user are terminated by the charging gateway, and the user is prompted.
可选地,所述OCS接收到用户对所述数据业务流量控制参数的更新请求时,对保存的所述用户的数据业务流量控制参数进行更新,还包括:Optionally, when the OCS receives the update request of the data service flow control parameter by the user, the OCS updates the saved data service flow control parameter of the user, and further includes:
OCS接收到用户通过计费网关发来的CCR-U消息时,若基于所述CCR-U消息中的标志位判定出所述CCR-U消息中携带有新的数据业务流量控制参数、且新的数据业务流量控制参数中流量阀值的数值为0,则清空保存的所述用户的数据业务流量控制参数,后续不再对所述用户进行数据业务流量监控。When the OCS receives the CCR-U message sent by the user through the charging gateway, if it is determined based on the flag bit in the CCR-U message, the CCR-U message carries a new data service flow control parameter and is new. If the value of the traffic threshold in the data traffic control parameter is 0, the saved data traffic control parameters of the user are cleared, and the data traffic monitoring of the user is not performed subsequently.
本发明实施例还提供一种PS域流量实时监控的方法,包括计费网关侧执行的如下步骤:The embodiment of the present invention further provides a method for real-time monitoring of PS domain traffic, including the following steps performed by the charging gateway side:
当用户请求入网时,向OCS发送用于入网鉴权的CCR-I消息时在所述CCR-I消息中携带数据业务流量控制参数,以供OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户使用数据业务流量的过程进行监控,当OCS监控到用户已使用的数据业务流量达到所述流量阀值时, 将OCS发来的监测结果通过用户终端提示给用户;When the user requests to access the network, when the CCR-I message for the network authentication is sent to the OCS, the data service flow control parameter is carried in the CCR-I message, so that the OCS saves the data service flow control parameter and is based on the data service. The flow control parameter monitors a process in which the user uses data traffic, and when the OCS monitors that the data traffic used by the user reaches the traffic threshold, The monitoring result sent by the OCS is prompted to the user through the user terminal;
所述数据业务流量控制参数以Diameter协议的AVP结构插入所述CCR-I消息中携带的服务信息下的电路域信息中。The data service flow control parameter is inserted into the circuit domain information under the service information carried in the CCR-I message by using the AVP structure of the Diameter protocol.
可选地,所述方法还包括所述计费网关侧执行的如下步骤:Optionally, the method further includes the following steps performed by the charging gateway side:
当用户发起对所述数据业务流量控制参数的更新请求时,将所述更新请求以CCR-U消息的形式发送给OCS;所述CCR-U消息中的标志位反映出所述CCR-U消息中是否携带有新的数据业务流量控制参数;And when the user initiates an update request for the data service flow control parameter, sending the update request to the OCS in the form of a CCR-U message; the flag bit in the CCR-U message reflects the CCR-U message Whether there are new data traffic control parameters in the middle;
所述新的数据业务流量控制参数以Diameter协议的AVP结构插入所述CCR-U消息中携带的服务信息下的电路域信息中。The new data service flow control parameter is inserted into the circuit domain information under the service information carried in the CCR-U message by using the AVP structure of the Diameter protocol.
本发明实施例还提供一种PS流量实时监控的方法,包括用户终端侧执行的如下步骤:The embodiment of the invention further provides a method for real-time monitoring of PS traffic, which includes the following steps performed by the user terminal:
将用户的入网请求通过计费网关发送给OCS,在入网请求中携带数据业务流量控制参数,通过计费网关将所述数据业务流量控制参数传送给OCS,以供OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户使用数据业务流量的过程进行监控,当OCS监控到用户已使用的数据业务流量达到所述流量阀值时,接收OCS通过计费网关发来的监测结果并提示给用户。The user's network access request is sent to the OCS through the charging gateway, and the data service flow control parameter is carried in the network access request, and the data service flow control parameter is transmitted to the OCS through the charging gateway, so that the OCS saves the data service flow control. And monitoring, according to the data service flow control parameter, the process of using the data service traffic by the user, and when the OCS monitors that the data traffic used by the user reaches the traffic threshold, receiving the monitoring sent by the OCS through the charging gateway The result is prompted to the user.
可选地,将用户对所述数据业务流量控制参数的更新请求通过计费网关发送给OCS,以供OCS对保存的所述用户的数据业务流量控制参数进行更新。Optionally, the user sends the update request of the data service flow control parameter to the OCS through the charging gateway, so that the OCS updates the saved data service flow control parameter of the user.
可选地,Optionally,
将所述更新请求通过计费网关发送给OCS之前,用户终端判断所述更新请求的发送时机是否满足设定的条件,如果所述更新请求的发送时机满足设定的条件,则将所述更新请求通过计费网关发送给OCS;如果所述更新请求的发送时机不满足设定的条件,则禁止发送所述更新请求; Before transmitting the update request to the OCS through the charging gateway, the user terminal determines whether the sending timing of the update request satisfies the set condition, and if the sending timing of the update request satisfies the set condition, the update is performed. The request is sent to the OCS through the charging gateway; if the sending timing of the update request does not satisfy the set condition, the sending of the update request is prohibited;
其中,所述设定的条件,包括:允许发送所述更新请求的频率范围,和/或,允许发送所述更新请求的时间段。The set condition includes: a frequency range that allows the sending of the update request, and/or a time period that allows the update request to be sent.
本发明实施例还提供一种线计费系统OCS,包括:存储器和处理器;其中,An embodiment of the present invention further provides a line charging system OCS, including: a memory and a processor; wherein
存储器,设置为预先存储用户的数据业务流量控制参数;所述流量控制参数,包括:流量阀值;a memory, configured to pre-store a data traffic control parameter of the user; the flow control parameter includes: a flow threshold;
处理器,设置为对用户使用数据业务流量的过程进行监控,当监控到用户已使用的数据业务流量达到所述流量阀值时,通过计费网关将监测结果提示给用户。The processor is configured to monitor the process of using the data service traffic by the user, and when monitoring the data traffic flow that the user has used reaches the traffic threshold, the monitoring result is presented to the user through the charging gateway.
本发明实施例还提供一种计费网关,包括:处理器;An embodiment of the present invention further provides a charging gateway, including: a processor;
所述处理器,设置为当用户请求入网时,向OCS发送用于入网鉴权的CCR-I消息时在所述CCR-I消息中携带数据业务流量控制参数,以供OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户使用数据业务流量的过程进行监控;当OCS监控到用户已使用的数据业务流量达到所述流量阀值时,将OCS发来的监测结果通过用户终端提示给用户。The processor is configured to carry a data service flow control parameter in the CCR-I message when the CCR-I message for the network authentication is sent to the OCS when the user requests to access the network, so that the OCS saves the data service. The flow control parameter monitors the process of using the data service traffic by the user based on the data service flow control parameter; when the OCS monitors that the data service traffic used by the user reaches the traffic threshold, the monitoring result sent by the OCS is passed The user terminal prompts the user.
可选地,所述处理器,还设置为:当用户发起对所述数据业务流量控制参数的更新请求时,将所述更新请求以CCR-U消息的形式发送给OCS,以供OCS对保存的数据业务流量控制参数进行更新;所述CCR-U消息中的标志位反映出所述CCR-U消息中是否携带有新的数据业务流量控制参数。Optionally, the processor is further configured to: when the user initiates an update request for the data service flow control parameter, send the update request to the OCS in the form of a CCR-U message for saving by the OCS The data service flow control parameter is updated; the flag bit in the CCR-U message reflects whether the CCR-U message carries a new data service flow control parameter.
本发明实施例还提供一种用户终端,包括:处理器;An embodiment of the present invention further provides a user terminal, including: a processor;
所述处理器,设置为将用户的入网请求通过计费网关发送给OCS,在入网请求中携带数据业务流量控制参数,通过计费网关将所述数据业务流量控 制参数传送给OCS,以供OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户使用数据业务流量的过程进行监控,当OCS监控到用户已使用的数据业务流量达到所述流量阀值时,接收OCS通过计费网关发来的监测结果并提示给用户。The processor is configured to send the user's network access request to the OCS through the charging gateway, carry the data service flow control parameter in the network access request, and control the data service flow control by using the charging gateway. The parameter is transmitted to the OCS for the OCS to save the data service flow control parameter and monitor the process of using the data service traffic by the user based on the data service flow control parameter, and the OCS monitors the data traffic used by the user to reach the location. When the traffic threshold is described, the monitoring result sent by the OCS through the charging gateway is received and presented to the user.
可选地,所述处理器,还设置为:将用户对所述数据业务流量控制参数的更新请求通过计费网关发送给OCS,以供OCS对保存的所述用户的数据业务流量控制参数进行更新。Optionally, the processor is further configured to: send, by the user, the update request of the data service flow control parameter to the OCS, by the OCS, for the OCS to perform the saved data service flow control parameter of the user. Update.
采用上述技术方案,本发明实施例的方案至少具有下列优点:With the above technical solution, the solution of the embodiment of the present invention has at least the following advantages:
本发明实施例所述PS流量实时监控的方法及相关设备,将流量监控的功能设置在运营商侧的OCS来执行,可以使用户准确、及时的了解到自己数据业务流量的使用情况,并且对数据业务流量的使用进行有效的控制;对于运营商来说,则能够减少流量问题引起的投诉,减少月末消息交互过多引起的系统问题等。The method for real-time monitoring of the PS traffic and the related device in the embodiment of the present invention perform the traffic monitoring function on the OCS of the operator side, so that the user can accurately and timely understand the usage of the data service traffic, and The use of data traffic is effectively controlled; for operators, it can reduce complaints caused by traffic problems and reduce system problems caused by excessive message interaction at the end of the month.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例一中一种PS域流量实时监控的方法在OCS侧执行的流程图;1 is a flowchart of a method for real-time monitoring of PS domain traffic on the OCS side according to Embodiment 1 of the present invention;
图2为本发明实施例二中一种PS域流量实时监控的方法在OCS侧执行的流程图;2 is a flowchart of a method for real-time monitoring of PS domain traffic on the OCS side according to Embodiment 2 of the present invention;
图3为本发明实施例四中一种PS域流量实时监控的方法在计费网关侧执行的流程图;3 is a flowchart of a method for real-time monitoring of PS domain traffic on a charging gateway side according to Embodiment 4 of the present invention;
图4为本发明实施例五中一种PS域流量实时监控的方法在用户终端侧执行的流程图;4 is a flowchart of a method for real-time monitoring of PS domain traffic on a user terminal side according to Embodiment 5 of the present invention;
图5为本发明实施例六的OCS的组成示意图; 5 is a schematic structural diagram of an OCS according to Embodiment 6 of the present invention;
图6为本发明实施例七的计费网关的组成示意图;6 is a schematic structural diagram of a charging gateway according to Embodiment 7 of the present invention;
图7为本发明实施例八的用户终端的组成示意图;7 is a schematic structural diagram of a user terminal according to Embodiment 8 of the present invention;
图8为本发明实施例九的计费系统中各个功能实体之间的消息交互流程图。FIG. 8 is a flow chart of message interaction between various functional entities in a charging system according to Embodiment 9 of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
为更进一步阐述本发明实施例为达成预定目的所采取的技术手段及功效,以下结合附图对本发明实施例进行详细说明。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
由于OCS侧能够判断出用户所请求的数据业务的运营归类情况,对于免费的数据业务而言,不需要进行计费,故不是本发明关注的对象,以下本发明实施例所涉及的数据业务均是指非免费的数据业务。The OCS side can determine the operation classification of the data service requested by the user, and does not need to perform charging for the free data service, so it is not the object of the present invention. The following is a data service related to the embodiment of the present invention. Both refer to non-free data services.
实施例一Embodiment 1
一种PS流量实时监控的方法,如图1所示,在线计费系统OCS侧执行的流程,包括以下步骤:A method for real-time monitoring of PS traffic, as shown in FIG. 1 , the process performed by the OCS side of the online charging system includes the following steps:
步骤101,OCS预先存储用户的数据业务流量控制参数;所述流量控制参数,包括:流量阀值;Step 101: The OCS pre-stores data traffic control parameters of the user, where the traffic control parameters include: a traffic threshold;
其中,在步骤101中,OCS预先存储用户的数据业务流量控制参数,包括:In step 101, the OCS pre-stores data traffic control parameters of the user, including:
OCS接收到用户通过计费网关发来的用于入网鉴权的CCR-I消息时,从所述CCR-I消息中提取出数据业务流量控制参数,所述数据业务流量控制参数以Diameter协议的AVP结构插入所述CCR-I消息中携带的服务信息下的电路域信息中。采用Flow Monitor-Value属性来携带流量控制参数中流量阀值。When receiving the CCR-I message sent by the user through the charging gateway for the network authentication, the OCS extracts the data service flow control parameter from the CCR-I message, where the data service flow control parameter is in the Diameter protocol. The AVP structure is inserted into the circuit domain information under the service information carried in the CCR-I message. The Flow Monitor-Value property is used to carry the flow threshold in the flow control parameters.
步骤102,OCS对用户使用数据业务流量的过程进行监控,当监控到用户已使用的数据业务流量达到所述流量阀值时,通过计费网关将监测结果提示 给用户。Step 102: The OCS monitors the process of using the data service traffic by the user. When the data traffic that has been used by the user reaches the traffic threshold, the monitoring result is prompted by the charging gateway. To the user.
其中,在步骤102中,当监控到用户已使用的数据业务流量达到所述流量阀值时,通过计费网关将监测结果提示给用户,包括:In step 102, when it is monitored that the data service traffic that the user has used reaches the traffic threshold, the monitoring result is displayed to the user through the charging gateway, including:
当接收到用户通过计费网关发来的针对任一数据业务的流量配额申请时,判断用户已使用的数据业务流量是否达到所述流量阀值;如果用户已使用的数据业务流量大于或等于所述流量阀值,则通过计费网关将判断结果提示给用户;如果用户已使用的数据业务流量小于所述流量阀值,则为所述数据业务下发流量配额,并将本次下发的流量配额累加入用户已使用的数据业务流量,供后续判断使用。When receiving a traffic quota request for any data service sent by the user through the charging gateway, determining whether the data traffic used by the user reaches the traffic threshold; if the data traffic used by the user is greater than or equal to the The traffic threshold is sent to the user through the charging gateway; if the data traffic used by the user is less than the traffic threshold, the traffic quota is issued for the data service, and the current service is delivered. The traffic quota is added to the data traffic that the user has used for subsequent evaluation.
用户已使用的数据业务流量是由OCS每次为每一个数据业务分配出去的流量配额累加得到的,用户已使用的数据业务流量的初始值为0。The data traffic that the user has used is accumulated by the traffic quota allocated by the OCS for each data service. The initial value of the data traffic used by the user is 0.
可选地,为所述数据业务下发流量配额,包括:Optionally, the traffic quota is delivered for the data service, including:
判断预设的流量配额是否大于所述流量阀值减去用户已使用的数据业务流量之差,如果预设的流量配额大于所述流量阀值减去用户已使用的数据业务流量之差,则用所述流量阀值减去用户已使用的数据业务流量之差作为本次的流量配额进行下发,如果预设的流量配额小于等于所述流量阀值减去用户已使用的数据业务流量之差,则按照预设的流量配额进行下发。Determining whether the preset traffic quota is greater than the difference between the traffic threshold and the data traffic used by the user. If the preset traffic quota is greater than the traffic threshold minus the difference between the data traffic used by the user, And the difference between the traffic threshold and the data traffic that has been used by the user is used as the current traffic quota, if the preset traffic quota is less than or equal to the traffic threshold minus the data traffic used by the user. If it is poor, it will be delivered according to the preset traffic quota.
可选的,当监控到用户已使用的数据业务流量达到所述流量阀值时,在通过计费网关提示给用户的同时,还通过计费网关终止用户当前申请流量配额的数据业务。可选地,在终止用户当前申请流量配额的数据业务的同时,还可以进行重定向,比如:跳转到一个设定的网页以提示用户该业务终止。Optionally, when the data traffic that has been used by the user is monitored, the data service is applied to the user through the charging gateway, and the data service of the current application for the traffic quota is terminated by the charging gateway. Optionally, when the data service of the current application for the traffic quota is terminated, the user may also perform the redirection, for example, jumping to a set webpage to prompt the user to terminate the service.
实施例二Embodiment 2
一种PS域流量实时监控的方法,本实施例所述方法与实施例一大致相同,区别在于,本实施例的流量控制参数包括流量控制的粒度和所述粒度内 的流量阀值,因此,在OCS做流量监控时所参考的依据有所不同。The method for real-time monitoring of the PS domain traffic is the same as that of the first embodiment. The difference is that the flow control parameter of the embodiment includes the granularity of the flow control and the granularity. The flow threshold, therefore, the basis for reference when OCS is doing flow monitoring is different.
本实施的PS域流量实时监控的方法,如图2所示,在线计费系统OCS侧执行的流程,包括以下步骤:The method for real-time monitoring of the PS domain traffic in the present embodiment is as shown in FIG. 2, and the process performed by the OCS side of the online charging system includes the following steps:
步骤201,OCS预先存储用户的数据业务流量控制参数;所述流量控制参数,包括:流量控制的粒度和所述粒度内的流量阀值;Step 201: The OCS pre-stores data traffic control parameters of the user, where the traffic control parameters include: a granularity of the flow control and a traffic threshold within the granularity;
其中,该流量控制的粒度可以为日、周或月,可选的,在粒度中还可以带有设定的时间段,比如:将每天的8:00——23:59设定为流量控制粒度,将每周第一天8:00——第七天23:59设定为流量控制粒度。The granularity of the flow control may be daily, weekly or monthly. Optionally, the granularity may also have a set time period, for example, setting the daily 8:00 to 23:59 as the flow control. Granularity, set the flow control granularity from 8:00 on the first day of the week to 23:59 on the seventh day.
在步骤201中,OCS预先存储用户的数据业务流量控制参数,包括:In step 201, the OCS pre-stores data traffic control parameters of the user, including:
OCS接收到用户通过计费网关发来的用于入网鉴权的CCR-I消息时,从所述CCR-I消息中提取出数据业务流量控制参数,所述数据业务流量控制参数以Diameter协议的AVP结构插入所述CCR-I消息中携带的服务信息下的电路域信息中。采用Flow Monitor AVP组中Flow Monitor-Type属性和Flow Monitor-Value属性来分别携带流量控制的粒度和所述粒度内的流量阀值。When receiving the CCR-I message sent by the user through the charging gateway for the network authentication, the OCS extracts the data service flow control parameter from the CCR-I message, where the data service flow control parameter is in the Diameter protocol. The AVP structure is inserted into the circuit domain information under the service information carried in the CCR-I message. The Flow Monitor-Type attribute and the Flow Monitor-Value attribute in the Flow Monitor AVP group are used to carry the granularity of the flow control and the flow threshold within the granularity, respectively.
步骤202,OCS根据所述流量控制的粒度,周期性地对用户使用数据业务流量的过程进行监控,每当监控到用户已使用的数据业务流量达到所述粒度内的流量阀值时,通过计费网关将监测结果提示给用户。Step 202: The OCS periodically monitors the process of using the data service traffic by the user according to the granularity of the flow control, and checks the flow rate of the traffic within the granularity when the user has monitored the data traffic. The fee gateway will prompt the user for the monitoring results.
其中,在步骤202中,在一个粒度周期内,当监控到用户已使用的数据业务流量达到所述流量阀值时,通过计费网关将监测结果提示给用户,包括:In step 202, during a granularity period, when it is monitored that the data traffic used by the user reaches the traffic threshold, the monitoring gateway prompts the monitoring result to the user, including:
当接收到用户通过计费网关发来的针对任一数据业务的流量配额申请时,判断用户已使用的数据业务流量是否达到所述流量阀值;如果用户已使用的数据业务流量大于或等于所述流量阀值,则通过计费网关将判断结果提示给用户,可选地,在通过计费网关将判断结果提示给用户的同时,还可以通过计费网关终止用户当前申请流量配额的数据业务;如果用户已使用的数据业务流量小于所述流量阀值则为所述数据业务下发流量配额,并将本次下 发的流量配额累加入用户已使用的数据业务流量,供后续判断使用。When receiving a traffic quota request for any data service sent by the user through the charging gateway, determining whether the data traffic used by the user reaches the traffic threshold; if the data traffic used by the user is greater than or equal to the The traffic threshold is used to prompt the user to the user through the charging gateway, and the data is forwarded to the user through the charging gateway. If the data traffic used by the user is less than the traffic threshold, the traffic quota is issued for the data service, and this time The traffic quota that is sent is added to the data traffic that the user has used for subsequent evaluation.
可选地,本发明实施例的技术方案也可以不限定为周期性执行,而是一次性执行,此时,所述流量控制参数,还包括:流量控制的时间段和流量阀值,其实现可以参见上述周期性执行的过程中的一个周期内的情况。Optionally, the technical solution of the embodiment of the present invention is not limited to being performed periodically, but is performed once. In this case, the flow control parameter further includes: a time period of flow control and a flow threshold, and the implementation thereof See the case in one cycle of the above-mentioned periodic execution process.
实施例三Embodiment 3
一种PS流量实时监控的方法,本实施例所述方法与实施例一或实施例二大致相同,区别在于,本实施例中在线计费系统OCS侧执行的流程,还包括:A method for real-time monitoring of the PS traffic, the method in this embodiment is substantially the same as the first embodiment or the second embodiment. The difference is that the process performed by the OCS side of the online charging system in this embodiment further includes:
OCS接收到用户通过计费网关发起的对所述数据业务流量控制参数的更新请求时,对保存的所述用户的数据业务流量控制参数进行更新。When receiving the update request of the data service flow control parameter initiated by the charging gateway, the OCS updates the saved data service flow control parameter of the user.
其中,OCS接收到用户通过计费网关发来的CCR-U消息时,如果根据所述CCR-U消息中的标志位判定出所述CCR-U消息中携带有新的数据业务流量控制参数,则将新的数据业务流量控制参数替代原有的所述用户的数据业务流量控制参数;所述新的数据业务流量控制参数以Diameter协议的AVP结构插入所述CCR-U消息中携带的服务信息下的电路域信息中。The OCS, when receiving the CCR-U message sent by the user through the charging gateway, determines that the CCR-U message carries the new data service flow control parameter according to the flag bit in the CCR-U message. The new data service flow control parameter is replaced by the original data service flow control parameter of the user; the new data service flow control parameter is inserted into the service information carried in the CCR-U message by using the AVP structure of the Diameter protocol. In the circuit domain information below.
该标志位可以选用Triggle-AVP下面的Triggle-Type AVP,将其值设定为一个预留数值,比如:将Triggle-Type AVP的值设定为77。This flag can be selected as the Triggle-Type AVP under the Triggle-AVP, and its value is set to a reserved value. For example, the value of the Triggle-Type AVP is set to 77.
可选的,本实施例所述OCS侧执行的流程,还包括:Optionally, the process performed by the OCS side in the embodiment further includes:
当更新后的所述数据业务流量控制参数中的流量阀值小于用户已使用的数据业务流量时,通过计费网关终止所述用户的正在进行的所有数据业务,并提示给用户。When the updated traffic threshold in the data traffic control parameter is smaller than the data traffic used by the user, all the data services in progress of the user are terminated by the charging gateway, and the user is prompted.
可选的,基于上述可选的实施方式,本实施例所述OCS侧执行的流程,还包括:Optionally, based on the foregoing optional implementation manner, the process performed by the OCS side in the embodiment further includes:
在终止所述用户的正在进行的所有数据业务之后,当接收到计费网关发来的唤醒被终止的数据业务的请求时,OCS判断用户已使用的数据业务流量 是否达到所述流量阀值;如果用户已使用的数据业务流量大于或等于所述流量阀值,则通过计费网关提示给用户;如果用户已使用的数据业务流量小于所述流量阀值。则为所述数据业务下发流量配额,并将本次下发的流量配额累加入用户已使用的数据业务流量,供后续判断使用。After terminating all ongoing data services of the user, when receiving a request from the charging gateway to wake up the terminated data service, the OCS determines the data traffic used by the user. Whether the traffic threshold is reached; if the data traffic used by the user is greater than or equal to the traffic threshold, the user is prompted by the charging gateway; if the data traffic used by the user is less than the traffic threshold. The traffic quota is delivered to the data service, and the traffic quota delivered by the current time is added to the data service traffic used by the user for subsequent use.
可选地,本发明实施例还可以包含用户主动申请退出业务流量监控的过程,具体的实现方式是:Optionally, the embodiment of the present invention may further include a process in which the user actively requests to quit the service traffic monitoring, and the specific implementation manner is:
OCS接收到用户通过计费网关发来的CCR-U消息时,若根据所述CCR-U消息中的标志位判定出所述CCR-U消息中携带有新的数据业务流量控制参数、且新的数据业务流量控制参数中流量阀值的数值为0,则清空保存的所述用户的数据业务流量控制参数,后续不再对所述用户进行数据业务流量监控。When the OCS receives the CCR-U message sent by the user through the charging gateway, if it is determined according to the flag bit in the CCR-U message, the CCR-U message carries a new data service flow control parameter and is new. If the value of the traffic threshold in the data traffic control parameter is 0, the saved data traffic control parameters of the user are cleared, and the data traffic monitoring of the user is not performed subsequently.
实施例四Embodiment 4
一种PS流量实时监控的方法,与OCS侧执行的流程相对应,在计费网关侧执行的流程,如图3所示,包括以下步骤:A method for real-time monitoring of the PS traffic, corresponding to the process performed on the OCS side, and the process performed on the charging gateway side, as shown in FIG. 3, includes the following steps:
步骤301,当用户请求入网时,向OCS发送用于入网鉴权的CCR-I消息时在所述CCR-I消息中携带数据业务流量控制参数,以供OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户已使用数据业务流量的过程进行监控,当OCS监控到用户已使用的数据业务流量达到所述流量阀值时,将OCS发来的监测结果通过用户终端提示给用户;Step 301: When the user requests to access the network, when the CCR-I message for the network authentication is sent to the OCS, the data service flow control parameter is carried in the CCR-I message, so that the OCS saves the data service flow control parameter. The process of using the data service traffic by the user is monitored based on the data service flow control parameter. When the OCS monitors that the data service traffic used by the user reaches the traffic threshold, the monitoring result sent by the OCS is prompted by the user terminal. To the user;
所述数据业务流量控制参数以Diameter协议的AVP结构插入所述CCR-I消息中携带的服务信息下的电路域信息中。The data service flow control parameter is inserted into the circuit domain information under the service information carried in the CCR-I message by using the AVP structure of the Diameter protocol.
可选的,在计费网关侧执行的流程,还包括:Optionally, the process performed on the charging gateway side further includes:
步骤302,当用户发起数据业务请求时,计费网关向OCS发送针对所述数据业务的流量配额申请,将OCS批准的流量配额下发给用户使用。 Step 302: When the user initiates the data service request, the charging gateway sends a traffic quota request for the data service to the OCS, and delivers the traffic quota approved by the OCS to the user.
步骤303,当用户发起对所述数据业务流量控制参数的更新请求时,将所述更新请求以CCR-U消息的形式发送给OCS,以供OCS对保存的数据业务流量控制参数进行更新;所述CCR-U消息中的标志位反映出所述CCR-U消息中是否携带有新的数据业务流量控制参数;Step 303: When the user initiates an update request for the data service flow control parameter, the update request is sent to the OCS in the form of a CCR-U message, so that the OCS updates the saved data service flow control parameter; The flag bit in the CCR-U message reflects whether the CCR-U message carries a new data service flow control parameter;
所述新的数据业务流量控制参数以Diameter协议的AVP结构插入所述CCR-U消息中携带的服务信息下的电路域信息中。The new data service flow control parameter is inserted into the circuit domain information under the service information carried in the CCR-U message by using the AVP structure of the Diameter protocol.
需要说明的是,步骤302和步骤303发生时间没有严格的先后顺序,如果执行步骤301,用户入网之后就可以根据用户的触发而执行后续的步骤302和/或303。It should be noted that the occurrence time of step 302 and step 303 is not strictly sequential. If step 301 is performed, the subsequent steps 302 and/or 303 can be performed according to the trigger of the user after the user accesses the network.
可选地,基于实施例三,OCS终止了所述用户的正在进行的所有数据业务之后,计费网关可以记录终止的数据业务的信息,后续根据记录的所述数据业务的信息,定时向OCS请求唤醒相应的数据业务。Optionally, after the OCS terminates all data services in progress of the user, the charging gateway may record information about the terminated data service, and subsequently, according to the recorded information of the data service, periodically to the OCS. Request to wake up the corresponding data service.
实施例五Embodiment 5
一种PS流量实时监控的方法,与实施例一中OCS侧执行的流程、以及实施例四中计费网关侧执行的流程相对应,在用户终端侧执行的流程如图4所示,包括以下步骤:A method for real-time monitoring of the PS traffic, corresponding to the flow executed by the OCS side in the first embodiment and the flow performed by the charging gateway side in the fourth embodiment, the flow executed on the user terminal side is as shown in FIG. 4, and includes the following step:
步骤401,将用户的入网请求通过计费网关发送给OCS,在入网请求中携带数据业务流量控制参数,通过计费网关将所述数据业务流量控制参数传送给OCS,以供OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户已使用数据业务流量的过程进行监控,当OCS监控到用户已使用的数据业务流量达到所述流量阀值时,接收OCS通过计费网关发来的监测结果并提示给用户;Step 401: Send the user's network access request to the OCS through the charging gateway, carry the data service flow control parameter in the network access request, and transmit the data service flow control parameter to the OCS through the charging gateway, so that the OCS saves the data. The service flow control parameter monitors the process in which the user has used the data service traffic based on the data service flow control parameter, and receives the OCS through the charging gateway when the OCS monitors that the data traffic used by the user reaches the traffic threshold. The monitoring results sent and prompted to the user;
步骤402,将用户对所述数据业务流量控制参数的更新请求通过计费网关发送给OCS,以供OCS对保存的所述用户的数据业务流量控制参数进行更 新。Step 402: Send a request for updating the data service flow control parameter by the user to the OCS through the charging gateway, so that the OCS can perform the data service flow control parameter of the saved user. new.
需要说明的是,用户入网之后就可以根据用户的触发而执行后续的步骤402。It should be noted that after the user enters the network, the subsequent step 402 can be performed according to the trigger of the user.
可选的,本实施例在用户终端侧执行的流程,还包括:Optionally, the process performed on the user terminal side in this embodiment further includes:
将所述更新请求通过计费网关发送给OCS之前,用户终端判断所述更新请求的发送时机是否满足设定的条件,如果所述更新请求的发送时机满足设定的条件,则将所述更新请求通过计费网关发送给OCS,如果所述更新请求的发送时机不满足设定的条件,则禁止发送所述更新请求;Before transmitting the update request to the OCS through the charging gateway, the user terminal determines whether the sending timing of the update request satisfies the set condition, and if the sending timing of the update request satisfies the set condition, the update is performed. The request is sent to the OCS through the charging gateway, and if the sending timing of the update request does not satisfy the set condition, the sending of the update request is prohibited;
所述设定的条件,包括:允许发送所述更新请求的频率范围,和/或,允许发送所述更新请求的时间段。这样可以对用户终端随意频繁更改数据业务流量控制参数的行为进行合理的限制,使计费网关与在线计费系统无需频繁的处理由于更新数据业务流量控制参数而发来的请求,节省网络处理资源。The set condition includes: a frequency range in which the update request is allowed to be sent, and/or a time period in which the update request is allowed to be sent. This can reasonably limit the behavior of the user terminal to change the data traffic control parameters arbitrarily, so that the charging gateway and the online charging system do not need to frequently process requests sent by updating the data traffic control parameters, thereby saving network processing resources. .
实施例六Embodiment 6
一种线计费系统OCS,如图5所示,包括以下组成部分:A line billing system OCS, as shown in Figure 5, includes the following components:
存储器100,设置为预先存储用户的数据业务流量控制参数;所述流量控制参数,包括:流量阀值;The memory 100 is configured to pre-store a data traffic control parameter of the user, where the flow control parameter includes: a traffic threshold;
处理器200,设置为OCS对用户已使用数据业务流量的过程进行监控,当监控到用户已使用的数据业务流量达到所述流量阀值时,通过计费网关将监测结果提示给用户。The processor 200 is configured to monitor, by the OCS, a process in which the user has used the data service traffic. When the data traffic that has been used by the user is monitored to reach the traffic threshold, the monitoring result is displayed to the user through the charging gateway.
本实施例中处理器200所完成的功能细节上与实施例一、第实施例二、或实施例三中OCS侧的流程所涉及的步骤相对应。The functions performed by the processor 200 in this embodiment correspond to the steps involved in the flow on the OCS side in the first embodiment, the second embodiment, or the third embodiment.
实施例七Example 7
一种计费网关,如图6所示,包括以下组成部分: A charging gateway, as shown in Figure 6, includes the following components:
第一处理器300,设置为当用户请求入网时,向OCS发送用于入网鉴权的CCR-I消息时在所述CCR-I消息中携带数据业务流量控制参数,以供OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户已使用数据业务流量的过程进行监控,当OCS监控到用户已使用的数据业务流量达到所述流量阀值时,将OCS发来的监测结果通过用户终端提示给用户。The first processor 300 is configured to: when the user requests to access the network, send a CCR-I message for the network authentication to the OCS, and carry the data service flow control parameter in the CCR-I message, for the OCS to save the data. The service flow control parameter monitors the process in which the user has used the data service traffic based on the data service flow control parameter, and monitors the OCS when the OCS monitors that the data traffic used by the user reaches the traffic threshold. The result is prompted to the user by the user terminal.
可选的,第一处理器300,还设置为:当用户发起对所述数据业务流量控制参数的更新请求时,将所述更新请求以CCR-U消息的形式发送给OCS,以供OCS对保存的数据业务流量控制参数进行更新;所述CCR-U消息中的标志位反映出所述CCR-U消息中是否携带有新的数据业务流量控制参数。Optionally, the first processor 300 is further configured to: when the user initiates an update request for the data service flow control parameter, send the update request to the OCS in the form of a CCR-U message for the OCS pair. The saved data service flow control parameter is updated; the flag bit in the CCR-U message reflects whether the CCR-U message carries a new data service flow control parameter.
本实施例中第一处理器300所完成的功能细节上与实施例四中计费网关侧的流程所涉及的步骤相对应。The functions performed by the first processor 300 in this embodiment are in detail corresponding to the steps involved in the process of the charging gateway side in the fourth embodiment.
实施例八Example eight
一种用户终端,如图7所示,包括以下组成部分:A user terminal, as shown in Figure 7, includes the following components:
第二处理器400,设置为将用户的入网请求通过计费网关发送给OCS,在入网请求中携带数据业务流量控制参数,通过计费网关将所述数据业务流量控制参数传送给OCS,以供OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户使用数据业务流量的过程进行监控,当OCS监控到用户已使用的数据业务流量达到所述流量阀值时,接收OCS通过计费网关发来的监测结果并提示给用户。The second processor 400 is configured to send the user's network access request to the OCS through the charging gateway, carry the data service flow control parameter in the network access request, and transmit the data service flow control parameter to the OCS through the charging gateway. The OCS saves the data service flow control parameter and monitors the process of using the data service traffic by the user based on the data service flow control parameter, and receives the OCS when the OCS monitors that the data traffic used by the user reaches the traffic threshold. The monitoring result sent by the charging gateway is prompted to the user.
可选的,第二处理器400,还设置为:将用户对所述数据业务流量控制参数的更新请求通过计费网关发送给OCS,以供OCS对保存的所述用户的数据业务流量控制参数进行更新。Optionally, the second processor 400 is further configured to: send, by the user, the update request of the data service flow control parameter to the OCS, by the OCS, for the OCS to save the data traffic control parameter of the user. Update.
本实施例中第二处理器400所完成的功能细节上与实施例五中用户终端侧的流程所涉及的步骤相对应。 The functions performed by the second processor 400 in this embodiment are in detail corresponding to the steps involved in the flow of the user terminal side in the fifth embodiment.
实施例九Example nine
本实施例是在上述实施例的基础上,结合附图8介绍一个本发明的应用实例。This embodiment is based on the above embodiment, and an application example of the present invention will be described with reference to FIG.
图8是本实施例的计费系统中各个功能实体之间的消息交互流程图。如图8所示,该计费系统主要包括的功能实体是用户终端、计费网关和在线计费系统OCS。其中,用户终端的功能是发起接入网络的请求以及新业务达到的请求消息;计费网关的功能是通过OCS确定费率、计算使用的时长和流量、保存异常/正常话单等;在线计费系统的功能对用户进行鉴权、授权、根据用户已使用的流量进行实时计费等。本实施例所指的业务均是指数据业务。FIG. 8 is a flow chart of message interaction between various functional entities in the charging system of this embodiment. As shown in FIG. 8, the functional entities mainly included in the charging system are a user terminal, a charging gateway, and an online charging system OCS. The function of the user terminal is to initiate a request for accessing the network and a request message for the new service; the function of the charging gateway is to determine the rate, calculate the used duration and flow rate, save the abnormal/normal bill, etc. through the OCS; The function of the fee system authenticates, authorizes, and performs real-time billing based on the traffic that the user has used. The services referred to in this embodiment all refer to data services.
本实施例需要在计费网关与在线计费系统之间交互的Diameter协议计费消息结构中新增用于表述数据业务流量控制参数的Flow-Monitor AVP组,新增在CCR-I消息或者CCR-U消息的Service-Information/PS-Information下面,Flow-Monitor AVP组下面包含Flow Monitor-Type和Flow Monitor-Value这两个属性,分别用来放置数据业务流量控制参数中的流量控制的粒度和所述粒度内的流量阀值。In this embodiment, a Flow-Monitor AVP group for expressing data traffic control parameters is added to the Diameter protocol charging message structure that is exchanged between the charging gateway and the online charging system, and the CCR-I message or CCR is added. Service-Information/PS-Information of the -U message. The Flow-Monitor AVP group contains two attributes, Flow Monitor-Type and Flow Monitor-Value, which are used to set the granularity of flow control in the data traffic control parameters. The flow threshold within the particle size.
流量控制的粒度可以为日、周或月,例如:日,表示当前设置的时间点-23:59:59;周,表示当前设置的时间点-当前周日结束的23:59:59;月,表示当前设置的时间点-当前月最后一天的23:59:59。The granularity of flow control can be day, week or month, for example: day, indicating the current set time point -23:59:59; week, indicating the currently set time point - 23:59:59 at the end of the current Sunday; , indicates the current set time point - 23:59:59 on the last day of the current month.
Flow-Monitor AVP组的具体ABNF(Augmented Backus-Naur Form,扩展的巴科斯范式)语法如下:The specific ABNF (Augmented Backus-Naur Form) syntax of the Flow-Monitor AVP group is as follows:
PS-Information::=<AVP Header:874>PS-Information::=<AVP Header:874>
[3GPP-Charging-Id][3GPP-Charging-Id]
[PDN-Connection-Charging-ID][PDN-Connection-Charging-ID]
   [Node-Id] [Node-Id]
    [3GPP-PDP-Type][3GPP-PDP-Type]
..............
[Flow-Monitor][Flow-Monitor]
    [Flow Monitor-Type][Flow Monitor-Type]
    [Flow Monitor-Value][Flow Monitor-Value]
可选地,在计费网关向在线计费系统发出的CCR-U消息中,在Trigger-AVP下面新增值为77的Trigger-Type AVP属性,用于作为标志位,反映出当前是否有数据业务流量控制参数发生变化。如果有Trigger-Type AVP为77,则说明CCR-U消息中还携带有用于更新的数据业务流量控制参数。Optionally, in the CCR-U message sent by the charging gateway to the online charging system, a Trigger-Type AVP attribute with a value of 77 is added under the Trigger-AVP, which is used as a flag bit to reflect whether there is currently a data service. The flow control parameters have changed. If the Trigger-Type AVP is 77, the CCR-U message carries the data traffic control parameters for the update.
本实施例的计费系统中各个功能实体之间的消息交互流程,详细描述如下。The message interaction process between the various functional entities in the charging system of this embodiment is described in detail below.
S601:用户终端发起用户接入请求消息,即入网请求;S601: The user terminal initiates a user access request message, that is, a network access request.
S602:计费网关接收到用户请求消息,向在线计费系统发送CCR-I消息,消息中携带Flow-Monitor AVP组;S602: The charging gateway receives the user request message, and sends a CCR-I message to the online charging system, where the message carries the Flow-Monitor AVP group.
S603:在线计费系统进行鉴权,鉴权成功,则保存Flow-Monitor AVP组;S603: The online charging system performs authentication, and if the authentication succeeds, the Flow-Monitor AVP group is saved;
S604:在线计费系统向计费网关发送信用控制响应CCA-I(Credit Control Answer–Initialize,信用控制响应-初始化)消息;S604: The online charging system sends a credit control response CCA-I (Credit Control Answer-Initialize) message to the charging gateway.
S605:计费网关向用户终端发送用户接入响应消息;S605: The charging gateway sends a user access response message to the user terminal.
S606:用户终端发起新业务A的接入请求;S606: The user terminal initiates an access request of the new service A.
S607:计费网关向在线计费系统发送CCR-U消息,该消息不携带Flow-Monitor AVP组;S607: The charging gateway sends a CCR-U message to the online charging system, where the message does not carry the Flow-Monitor AVP group;
S608:在线计费系统进行批价处理;S608: The online charging system performs batch processing;
S609:在线计费系统向计费网关发送CCA-U(Credit Control Answer–Update,信用控制响应-更新)消息,CCA-U消息中携带GSU(Granted Service Unit,授权服务单元)相关信息,GSU中存放的是在线计费系统经过批价处理 后给用户终端下发的流量配额,比如:每次5M(兆);S609: The online charging system sends a CCA-U (Credit Control Answer-Update) message to the charging gateway, and the CCA-U message carries the GSU (Granted Service Unit) related information, in the GSU. Stored online billing system after price processing The traffic quota delivered to the user terminal, for example: 5M (megabytes) each time;
S610:业务A继续;S610: Service A continues;
S611:业务A配额到达,即本次流量配额已用尽,向在线计费系统发送CCR-U消息,消息中不携带Flow-Monitor AVP组;S611: The service A quota is reached, that is, the current traffic quota is exhausted, and the CCR-U message is sent to the online charging system, and the Flow-Monitor AVP group is not carried in the message;
S612:在线计费系统进行批价;S612: The online charging system performs the rating;
S613:在线计费系统向计费网关发送CCA-U消息,Command层结果码是4012,这是欠费结果码,下发FUI(Final Unit Indication,最后单元指示)等信息,FUI的动作可以是业务终止、业务重定向等;S613: The online charging system sends a CCA-U message to the charging gateway, and the result code of the Command layer is 4012, which is a result of the arrears result, and the FUI (Final Unit Indication) is sent, and the action of the FUI may be Business termination, business redirection, etc.;
S614:业务A被重定向;S614: Service A is redirected;
S615:用户终端发起流量监控更新请求;S615: The user terminal initiates a traffic monitoring update request.
S616:计费网关向在线计费系统发送CCR-U消息,消息中携带Trigger-Type的值为77,携带Flow-Monitor AVP组;S616: The charging gateway sends a CCR-U message to the online charging system, where the value of the Trigger-Type is 77, and the Flow-Monitor AVP group is carried.
S617:计费网关响应更新请求;S617: The charging gateway responds to the update request.
S618:在线计费系统更新Flow-Monitor相关参数,判断出流量阀值是由小增大了,且经累加得到的用户已使用的数据业务流量小于新的流量阀值;S618: The online charging system updates the Flow-Monitor related parameters, and determines that the flow threshold is increased by a small amount, and the accumulated data traffic used by the accumulated user is smaller than the new traffic threshold;
S619:在线计费系统向计费网关发送CCA-U消息,消息中携带GSU等信息;S619: The online charging system sends a CCA-U message to the charging gateway, where the message carries information such as GSU;
S620:业务A继续;S620: Service A continues;
S621:用户终端发起流量监控更新请求,即对数据业务流量控制参数的更新请求;S621: The user terminal initiates a traffic monitoring update request, that is, an update request for a data service flow control parameter;
S622:计费网关向在线计费系统发送CCR-U消息,消息中携带Trigger-Type的值为77,携带Flow-Monitor AVP组;S622: The charging gateway sends a CCR-U message to the online charging system, where the value of the Trigger-Type is 77, and the Flow-Monitor AVP group is carried.
S623:计费网关响应更新请求;S623: The charging gateway responds to the update request.
S624:在线计费系统更新Flow-Monitor相关参数,判断出流量阀值是由大减小了,且累加得到的用户已使用的数据业务流量已大于新的流量阀值; S624: The online charging system updates the Flow-Monitor related parameter, and determines that the flow threshold is greatly reduced, and the accumulated data traffic used by the user is greater than the new traffic threshold;
S625:在线计费系统向计费网关发送CCA-U消息,Command层结果码是4XXX,终止该用户的所有业务;4XXX代表以4开头的四位结果码,通常均代表业务终止和重定向。S625: The online charging system sends a CCA-U message to the charging gateway, the Result layer result code is 4XXX, and all services of the user are terminated; 4XXX represents a four-digit result code starting with 4, which generally represents service termination and redirection.
S626:业务A被终止;S626: Service A is terminated;
S627:计费网关向在线计费系统发送RAR(Re-Auth Request,重新鉴权请求)请求消息,用于唤醒被终止的业务;S627: The charging gateway sends a RAR (Re-Auth Request) request message to the online charging system, and is used to wake up the terminated service.
S628:在线计费系统向计费网关发送RAA(Re-Auth Answer,重新鉴权响应)响应消息;S628: The online charging system sends a RAA (Re-Auth Answer) response message to the charging gateway.
S629:计费网关向在线计费系统发送CCR-U消息,消息中包含该用户的所有业务;S629: The charging gateway sends a CCR-U message to the online charging system, where the message includes all services of the user;
S630:在线计费系统批价;S630: online billing system rating;
S631:在线计费系统向计费网关发送CCA-U消息,消息中携带GSU相关信息,或者,该消息中无GSU相关信息时,下发4012结果码,FUI等;S631: The online charging system sends a CCA-U message to the charging gateway, where the message carries the GSU related information, or when there is no GSU related information in the message, the 4012 result code, FUI, etc. is delivered;
S632:用户终端发起流量监控更新请求;S632: The user terminal initiates a traffic monitoring update request.
S633:计费网关向在线计费系统发送CCR-U消息,消息中携带Trigger-Type的值为77,携带Flow-Monitor AVP组,Flow Monitor-Value值为0(代表用户想要退出流量监控);S633: The charging gateway sends a CCR-U message to the online charging system, where the value of the Trigger-Type is 77, and the Flow-Monitor AVP group is carried, and the Flow Monitor-Value value is 0 (on behalf of the user wants to exit the traffic monitoring) ;
S634:计费网关响应更新请求;S634: The charging gateway responds to the update request.
S635:在线计费系统进行批价,清除流量监控;S635: The online charging system performs the rating and clears the traffic monitoring;
S636:在线计费系统向计费网关发送CCA-U消息,下发GSU相关信息;S636: The online charging system sends a CCA-U message to the charging gateway, and sends the GSU related information.
S637:业务A继续;S637: Business A continues;
S638:用户终端发起去激活消息;S638: The user terminal initiates a deactivation message.
S639:计费网关向在线计费系统发送CCR-T(Credit Control Request–Terminate,信用控制请求-终止)消息;S639: The charging gateway sends a CCR-T (Credit Control Request-Terminate) message to the online charging system.
S640:在线计费系统进行批价、扣费等; S640: The online charging system performs the pricing, deduction, etc.;
S641:在线计费系统向计费网关发送CCA-T(Credit Control Answer–Terminate,信用控制响应-终止)消息;S641: The online charging system sends a CCA-T (Credit Control Answer-Terminate) message to the charging gateway.
S642:计费网关向用户终端发送用户去激活响应消息。S642: The charging gateway sends a user deactivation response message to the user terminal.
其中,对上述部分步骤进行说明:Among them, the above steps are explained:
步骤S612中,由于在线计费系统每次对业务的批价是一样的,判断流量阀值减去当前累加得到的用户已使用的数据业务流量之差是否小于批价的配额(比如:每次5M),如果流量阀值减去当前累加得到的用户已使用的数据业务流量之差小于批价的配额,则按照流量阀值减去当前累加得到的用户已使用的数据业务流量之差下发流量配额,如果流量阀值减去当前累加得到的用户已使用的数据业务流量之差大于或等于批价的配额,则按照在线计费系统设定的流量配额进行下发。In step S612, since the online charging system has the same rating for the service each time, it is determined whether the difference between the traffic threshold and the data service traffic that the currently accumulated user has used is less than the quota of the rating (for example: each time 5M), if the traffic threshold minus the current accumulated data traffic of the user is less than the quota of the quota, the traffic threshold is subtracted from the current accumulated data traffic of the user. The traffic quota is delivered according to the traffic quota set by the online charging system, if the traffic threshold is less than or equal to the quota of the data traffic that has been used by the user.
步骤S618中,也有可能出现当前累加得到的用户已使用的数据业务流量大于新的流量监控阀值的情况,如果出现,则按照步骤S624处理。In step S618, it is also possible that the data service traffic that the currently accumulated user has used is greater than the new traffic monitoring threshold. If it occurs, the processing is performed according to step S624.
综上所述。本实施例的方案不增加消息数,只增加消息的Diameter协议的AVP字段。由用户终端设置流量控制参数,体现了灵活性;在线计费系统进行实时监控,又做到了准确性。因此,可以很好解决目前流量控制不准确的问题。In summary. The solution of this embodiment does not increase the number of messages, but only increases the AVP field of the Diameter protocol of the message. The flow control parameters are set by the user terminal, which embodies flexibility; the online charging system performs real-time monitoring and achieves accuracy. Therefore, the problem of current flow control inaccuracy can be well solved.
本发明实施例所述PS域流量实时监控的方法及相关设备,由于将流量监控的功能设置在运营商侧的OCS来执行,可以使用户准确、及时的了解到自己数据业务流量的使用情况,并且对数据业务流量的使用进行有效的控制;对于运营商来说,则能够减少流量问题引起的投诉,减少月末消息交互过多引起的系统问题等。The method for real-time monitoring of the PS domain traffic and the related device in the embodiment of the present invention can be implemented by the OCS of the operator side, so that the user can accurately and timely understand the usage of the data traffic. And effective control of the use of data traffic; for operators, it can reduce complaints caused by traffic problems, reduce system problems caused by excessive message interaction at the end of the month.
工业实用性Industrial applicability
本发明实施例实现在PS域进行流量实时监控的目标。 The embodiment of the invention achieves the goal of real-time monitoring of traffic in the PS domain.

Claims (22)

  1. 一种分组交换PS域流量实时监控的方法,包括在线计费系统OCS侧执行的如下步骤:A method for real-time monitoring of packet-switched PS domain traffic includes the following steps performed on the OCS side of the online charging system:
    所述OCS预先存储用户的数据业务流量控制参数;所述流量控制参数,包括:流量阀值;The OCS pre-stores data traffic control parameters of the user; the flow control parameters include: a traffic threshold;
    所述OCS对用户已使用数据业务流量的过程进行监控,当监控到用户已使用的数据业务流量达到所述流量阀值时,通过计费网关将监测结果提示给用户。The OCS monitors the process in which the user has used the data service traffic. When the data traffic that has been used by the user reaches the traffic threshold, the monitoring result is displayed to the user through the charging gateway.
  2. 根据权利要求1所述的PS域流量实时监控的方法,其中,所述流量控制参数,还包括:流量控制的粒度,所述流量阀值为所述粒度内的流量阀值;The method for real-time monitoring of PS domain traffic according to claim 1, wherein the flow control parameter further includes: a granularity of flow control, and the flow threshold is a flow threshold within the granularity;
    或者,所述流量控制参数,还包括:流量控制的时间段;Or the flow control parameter further includes: a time period of the flow control;
    在流量控制参数包括流量控制的粒度和所述粒度内的流量阀值的情况下:Where the flow control parameters include the particle size of the flow control and the flow threshold within the granularity:
    所述OCS根据所述流量控制的粒度,周期性地对用户使用数据业务流量的过程进行监控,每当监控到用户已使用的数据业务流量达到所述粒度内的流量阀值时,通过所述计费网关提示给用户。The OCS periodically monitors the process of using the data service traffic by the user according to the granularity of the flow control, and each time the data traffic volume used by the user is monitored to reach the traffic threshold within the granularity, The billing gateway prompts the user.
  3. 根据权利要求1所述的PS域流量实时监控的方法,其中,所述OCS预先存储用户的数据业务流量控制参数,包括:The method for real-time monitoring of the PS domain traffic according to claim 1, wherein the OCS pre-stores data traffic control parameters of the user, including:
    所述OCS接收到用户通过所述计费网关发来的用于入网鉴权的信用控制请求初始化CCR-I消息时,从所述CCR-I消息中提取出数据业务流量控制参数,所述数据业务流量控制参数以Diameter协议的属性值对AVP结构插入所述CCR-I消息中携带的服务信息下的电路域信息中。Receiving, by the OCS, a data service flow control parameter from the CCR-I message, when the user receives a CCR-I message for a credit control request for network access sent by the charging gateway, the data is extracted from the CCR-I message. The service flow control parameter is inserted into the circuit domain information under the service information carried in the CCR-I message by using the attribute value of the Diameter protocol to the AVP structure.
  4. 根据权利要求1所述的PS域流量实时监控的方法,其中,所述当监控到用户已使用的数据业务流量达到所述流量阀值时,通过所述计费网关将 监测结果提示给用户,包括:The method for real-time monitoring of PS domain traffic according to claim 1, wherein when the data traffic that has been used by the user is monitored to reach the traffic threshold, the charging gateway will The monitoring results are prompted to the user, including:
    当接收到用户通过所述计费网关发来的针对任一数据业务的流量配额申请时,判断用户已使用的数据业务流量是否达到所述流量阀值;如果用户已使用的数据业务流量大于或等于所述流量阀值,则通过所述计费网关将判断结果提示给用户;如果用户已使用的数据业务流量小于所述流量阀值,则为所述数据业务下发流量配额,并将本次下发的流量配额累加入用户已使用的数据业务流量,供后续判断使用。When receiving a traffic quota request for any data service sent by the user through the charging gateway, determining whether the data traffic used by the user reaches the traffic threshold; if the data traffic used by the user is greater than or And the traffic threshold is sent to the user by the charging gateway; if the data service traffic that the user has used is less than the traffic threshold, the traffic quota is issued for the data service, and the The traffic quotas that are delivered are added to the data traffic that the user has used for subsequent evaluation.
  5. 根据权利要求4所述的PS域流量实时监控的方法,还包括所述OCS侧执行的如下步骤:当监控到用户已使用的数据业务流量达到所述流量阀值时,通过所述计费网关终止用户当前申请流量配额的数据业务。The method for real-time monitoring of PS domain traffic according to claim 4, further comprising the step of: performing, by the OCS side, the charging gateway when the data traffic used by the user is monitored to reach the traffic threshold Terminate the data service for the user to apply for traffic quotas.
  6. 根据权利要求4所述的PS域流量实时监控的方法,其中,为所述数据业务下发流量配额,包括:The method for real-time monitoring of the PS domain traffic according to claim 4, wherein the traffic quota is issued for the data service, including:
    判断预设的流量配额是否大于所述流量阀值与用户已使用的数据业务流量之差,如果预设的流量配额大于所述流量阀值减去用户已使用的数据业务流量之差,则所述流量阀值与用户已使用的数据业务流量之差作为本次的流量配额进行下发;如果预设的流量配额小于等于所述流量阀值减去用户已使用的数据业务流量之差,则按照预设的流量配额进行下发。Determining whether the preset traffic quota is greater than a difference between the traffic threshold and the data traffic used by the user. If the preset traffic quota is greater than the traffic threshold minus the difference between the data traffic used by the user, The difference between the traffic threshold and the data traffic used by the user is delivered as the current traffic quota; if the preset traffic quota is less than or equal to the traffic threshold minus the difference between the data traffic used by the user, Delivered according to the preset traffic quota.
  7. 根据权利要求1所述的PS域流量实时监控的方法,还包括所述OCS侧执行的如下步骤:The method for real-time monitoring of PS domain traffic according to claim 1, further comprising the following steps performed by the OCS side:
    所述OCS接收到用户通过所述计费网关发起的对所述数据业务流量控制参数的更新请求时,对保存的所述用户的数据业务流量控制参数进行更新。And receiving, by the OCS, the saved data service flow control parameter of the user when the user requests the update of the data service flow control parameter initiated by the charging gateway.
  8. 根据权利要求7所述的PS域流量实时监控的方法,其中,所述OCS接收到用户对所述数据业务流量控制参数的更新请求时,对保存的所述用户的数据业务流量控制参数进行更新,包括:The method for real-time monitoring of PS domain traffic according to claim 7, wherein the OCS updates the saved data traffic control parameters of the user when receiving an update request of the data traffic control parameter by the user. ,include:
    所述OCS接收到用户通过所述计费网关发来的信用控制请求更新CCR-U 消息时,若基于所述CCR-U消息中的标志位判定出所述CCR-U消息中携带有新的数据业务流量控制参数,则将新的数据业务流量控制参数替代原有的所述用户的数据业务流量控制参数;所述新的数据业务流量控制参数以Diameter协议的AVP结构插入所述CCR-U消息中携带的服务信息下的电路域信息中。Receiving, by the OCS, a credit control request sent by the user through the charging gateway to update the CCR-U In the message, if it is determined that the CCR-U message carries a new data service flow control parameter based on the flag bit in the CCR-U message, the new data service flow control parameter is replaced by the original user. The data traffic control parameter is inserted into the circuit domain information under the service information carried in the CCR-U message by using the AVP structure of the Diameter protocol.
  9. 根据权利要求7所述的PS域流量实时监控的方法,还包括所述OCS侧执行的如下步骤:The method for real-time monitoring of PS domain traffic according to claim 7, further comprising the following steps performed by the OCS side:
    当更新后的所述数据业务流量控制参数中的流量阀值小于用户已使用的数据业务流量时,通过所述计费网关终止所述用户的正在进行的所有数据业务,并提示给用户。When the updated traffic threshold in the data traffic control parameter is smaller than the data traffic used by the user, all the data services in progress of the user are terminated by the charging gateway, and the user is prompted.
  10. 根据权利要求8所述的PS域流量实时监控的方法,其中,所述OCS接收到用户对所述数据业务流量控制参数的更新请求时,对保存的所述用户的数据业务流量控制参数进行更新,还包括:The method for real-time monitoring of PS domain traffic according to claim 8, wherein the OCS updates the saved data traffic control parameter of the user when receiving an update request of the data traffic control parameter by the user. ,Also includes:
    所述OCS接收到用户通过所述计费网关发来的CCR-U消息时,若基于所述CCR-U消息中的标志位判定出所述CCR-U消息中携带有新的数据业务流量控制参数、且新的数据业务流量控制参数中流量阀值的数值为0,则清空保存的所述用户的数据业务流量控制参数,后续不再对所述用户进行数据业务流量监控。When receiving the CCR-U message sent by the user through the charging gateway, the OCS determines that the CCR-U message carries a new data service flow control based on the flag bit in the CCR-U message. If the value of the traffic threshold in the parameter and the new data service flow control parameter is 0, the saved data service flow control parameter of the user is cleared, and the data service traffic monitoring is not performed on the user.
  11. 一种PS域流量实时监控的方法,包括计费网关侧执行的如下步骤:A method for real-time monitoring of PS domain traffic includes the following steps performed by the charging gateway side:
    当用户请求入网时,向OCS发送用于入网鉴权的信用控制请求初始化CCR-I消息,在所述CCR-I消息中携带数据业务流量控制参数,以供所述OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户使用数据业务流量的过程进行监控,当所述OCS监控到用户已使用的数据业务流量达到所述流量阀值时,将所述OCS发来的监测结果通过用户终端提示给 用户。When the user requests to access the network, the credit control request for the network access authentication is sent to the OCS to initialize the CCR-I message, and the CCR-I message carries the data service flow control parameter, where the OCS saves the data service traffic. Controlling parameters and monitoring the process of using the data service traffic by the user based on the data service flow control parameter, and sending the OCS when the OCS monitors that the data traffic used by the user reaches the traffic threshold The monitoring result is prompted by the user terminal user.
  12. 根据权利要求11所述的PS域流量实时监控的方法,还包括所述计费网关侧执行的如下步骤:The method for real-time monitoring of PS domain traffic according to claim 11, further comprising the following steps performed by the charging gateway side:
    当用户发起对所述数据业务流量控制参数的更新请求时,将所述更新请求以信用控制请求更新CCR-U消息的形式发送给所述OCS;所述CCR-U消息中的标志位反映出所述CCR-U消息中是否携带有新的数据业务流量控制参数。When the user initiates an update request for the data service flow control parameter, the update request is sent to the OCS in the form of a credit control request update CCR-U message; the flag bit in the CCR-U message reflects Whether the new data service flow control parameter is carried in the CCR-U message.
  13. 根据权利要求11所述的PS域流量实时监控的方法,其中,The method for real-time monitoring of PS domain traffic according to claim 11, wherein
    所述数据业务流量控制参数以Diameter协议的属性值对AVP结构插入所述CCR-I消息中携带的服务信息下的电路域信息中。The data service flow control parameter is inserted into the circuit domain information under the service information carried in the CCR-I message by using the attribute value of the Diameter protocol to the AVP structure.
  14. 根据权利要求12所述的PS域流量实时监控的方法,其中,The method for real-time monitoring of PS domain traffic according to claim 12, wherein
    所述新的数据业务流量控制参数以Diameter协议的AVP结构插入所述CCR-U消息中携带的服务信息下的电路域信息中。The new data service flow control parameter is inserted into the circuit domain information under the service information carried in the CCR-U message by using the AVP structure of the Diameter protocol.
  15. 一种PS域流量实时监控的方法,包括用户终端侧执行的如下步骤:A method for real-time monitoring of PS domain traffic includes the following steps performed on the user terminal side:
    将用户的入网请求通过计费网关发送给OCS,在入网请求中携带数据业务流量控制参数,通过所述计费网关将所述数据业务流量控制参数传送给所述OCS,以供所述OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户使用数据业务流量的过程进行监控,当所述OCS监控到用户已使用的数据业务流量达到所述流量阀值时,接收所述OCS通过所述计费网关发来的监测结果并提示给用户。Sending the user's network access request to the OCS through the charging gateway, carrying the data service flow control parameter in the network access request, and transmitting, by the charging gateway, the data service flow control parameter to the OCS for saving by the OCS The data service flow control parameter monitors, according to the data service flow control parameter, the process of using the data service traffic by the user, and when the OCS monitors that the data service traffic used by the user reaches the traffic threshold, the receiving station The monitoring result sent by the OCS through the charging gateway is presented to the user.
  16. 根据权利要求15所述的PS域流量实时监控的方法,还包括所述用户终端侧执行的如下步骤:The method for real-time monitoring of PS domain traffic according to claim 15, further comprising the following steps performed by the user terminal side:
    将用户对所述数据业务流量控制参数的更新请求通过所述计费网关发送给所述OCS,以供所述OCS对保存的所述用户的数据业务流量控制参数进行 更新。Sending, by the user, the update request of the data service flow control parameter to the OCS, by the OCS, for the OCS to perform the saved data service flow control parameter of the user Update.
  17. 根据权利要求15所述的PS域流量实时监控的方法,还包括所述用户终端侧执行的如下步骤:The method for real-time monitoring of PS domain traffic according to claim 15, further comprising the following steps performed by the user terminal side:
    将所述更新请求通过所述计费网关发送给所述OCS之前,所述用户终端判断所述更新请求的发送时机是否满足设定的条件,如果所述更新请求的发送时机满足设定的条件,则将所述更新请求通过所述计费网关发送给所述OCS;如果所述更新请求的发送时机不满足设定的条件,则禁止发送所述更新请求;Before transmitting the update request to the OCS through the charging gateway, the user terminal determines whether the sending timing of the update request satisfies the set condition, if the sending timing of the update request satisfies the set condition Sending the update request to the OCS through the charging gateway; if the sending timing of the update request does not satisfy the set condition, prohibiting sending the update request;
    所述设定的条件,包括:允许发送所述更新请求的频率范围,和/或,允许发送所述更新请求的时间段。The set condition includes: a frequency range in which the update request is allowed to be sent, and/or a time period in which the update request is allowed to be sent.
  18. 一种线计费系统OCS,包括:存储器和处理器;其中,A line billing system OCS, comprising: a memory and a processor; wherein
    所述存储器,设置为预先存储用户的数据业务流量控制参数;所述流量控制参数,包括:流量阀值;The memory is configured to pre-store a data traffic control parameter of the user; the flow control parameter includes: a traffic threshold;
    所述处理器,设置为对用户使用数据业务流量的过程进行监控,当监控到用户已使用的数据业务流量达到所述流量阀值时,通过计费网关将监测结果提示给用户。The processor is configured to monitor the process of using the data service traffic by the user. When the data traffic that has been used by the user reaches the traffic threshold, the monitoring result is displayed to the user by the charging gateway.
  19. 一种计费网关,包括:处理器;A charging gateway, comprising: a processor;
    所述处理器,设置为当用户请求入网时,向OCS发送用于入网鉴权的信用控制请求初始化CCR-I消息,在所述CCR-I消息中携带数据业务流量控制参数,以供所述OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户使用数据业务流量的过程进行监控;当所述OCS监控到用户已使用的数据业务流量达到所述流量阀值时,将所述OCS发来的监测结果通过用户终端提示给用户。 The processor is configured to: when the user requests to enter the network, send a credit control request for the network authentication to the OCS to initialize the CCR-I message, where the CCR-I message carries the data service flow control parameter, where The OCS stores the data service flow control parameter and monitors, by the data service flow control parameter, the process of using the data service traffic by the user; when the OCS monitors that the data service traffic used by the user reaches the traffic threshold, The monitoring result sent by the OCS is prompted to the user through the user terminal.
  20. 根据权利要求19所述的计费网关,其中,所述处理器,还设置为:当用户发起对所述数据业务流量控制参数的更新请求时,将所述更新请求以信用控制请求更新CCR-U消息的形式发送给所述OCS,以供所述OCS对保存的数据业务流量控制参数进行更新;所述CCR-U消息中的标志位反映出所述CCR-U消息中是否携带有新的数据业务流量控制参数。The charging gateway according to claim 19, wherein the processor is further configured to: when the user initiates an update request for the data traffic control parameter, update the CCR based on the credit control request by the update request The U message is sent to the OCS for the OCS to update the saved data service flow control parameter; the flag bit in the CCR-U message reflects whether the CCR-U message carries a new one. Data traffic control parameters.
  21. 一种用户终端,包括:处理器;A user terminal, comprising: a processor;
    所述处理器,设置为将用户的入网请求通过计费网关发送给OCS,在入网请求中携带数据业务流量控制参数,通过所述计费网关将所述数据业务流量控制参数传送给所述OCS,以供所述OCS保存所述数据业务流量控制参数并基于数据业务流量控制参数对所述用户使用数据业务流量的过程进行监控,当所述OCS监控到用户已使用的数据业务流量达到所述流量阀值时,接收所述OCS通过所述计费网关发来的监测结果并提示给用户。The processor is configured to send a network access request of the user to the OCS through the charging gateway, carry a data service flow control parameter in the network access request, and transmit the data service flow control parameter to the OCS by using the charging gateway. And the OCS saves the data service flow control parameter and monitors, by the data service flow control parameter, the process of using the data service traffic by the user, when the OCS monitors that the data service traffic used by the user reaches the When the traffic threshold is received, the monitoring result sent by the OCS through the charging gateway is received and presented to the user.
  22. 根据权利要求21所述的用户终端,其中,所述处理器,还设置为:将用户对所述数据业务流量控制参数的更新请求通过所述计费网关发送给所述OCS,以供所述OCS对保存的所述用户的数据业务流量控制参数进行更新。 The user terminal according to claim 21, wherein the processor is further configured to: send a request for updating the data traffic control parameter by the user to the OCS through the charging gateway, where The OCS updates the saved data traffic control parameters of the user.
PCT/CN2015/089354 2015-02-09 2015-09-10 Method for real-time monitoring of ps domain traffic, and related device WO2016127638A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510067042.1A CN105991360A (en) 2015-02-09 2015-02-09 Real-time PS domain flow monitoring method and related equipment
CN201510067042.1 2015-02-09

Publications (1)

Publication Number Publication Date
WO2016127638A1 true WO2016127638A1 (en) 2016-08-18

Family

ID=56615326

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/089354 WO2016127638A1 (en) 2015-02-09 2015-09-10 Method for real-time monitoring of ps domain traffic, and related device

Country Status (2)

Country Link
CN (1) CN105991360A (en)
WO (1) WO2016127638A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337527A (en) * 2017-12-18 2018-07-27 武汉烽火众智智慧之星科技有限公司 A kind of access gateway and a kind of cut-in method
CN111132048A (en) * 2019-11-27 2020-05-08 中国联合网络通信集团有限公司 Fee sending method, device, equipment and storage medium based on flow use
CN111586127A (en) * 2020-04-28 2020-08-25 深圳市爱路恩济能源技术有限公司 Working condition data processing method based on Internet of things system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547640A (en) * 2010-12-10 2012-07-04 中兴通讯股份有限公司 Method and system for signing and executing consumption restriction business
CN102984768A (en) * 2012-11-09 2013-03-20 华为技术有限公司 Method and device of real-time adjustment of on-line user bandwidth under shared charge rule
US20130258849A1 (en) * 2012-03-28 2013-10-03 Ranjan Sharma Closed-loop qos control using charging groups
CN103812897A (en) * 2012-11-12 2014-05-21 中国移动通信集团山东有限公司 Network flow control method and device
CN103905968A (en) * 2012-12-24 2014-07-02 中国移动通信集团公司 Method and system for traffic reminding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547640A (en) * 2010-12-10 2012-07-04 中兴通讯股份有限公司 Method and system for signing and executing consumption restriction business
US20130258849A1 (en) * 2012-03-28 2013-10-03 Ranjan Sharma Closed-loop qos control using charging groups
CN102984768A (en) * 2012-11-09 2013-03-20 华为技术有限公司 Method and device of real-time adjustment of on-line user bandwidth under shared charge rule
CN103812897A (en) * 2012-11-12 2014-05-21 中国移动通信集团山东有限公司 Network flow control method and device
CN103905968A (en) * 2012-12-24 2014-07-02 中国移动通信集团公司 Method and system for traffic reminding

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337527A (en) * 2017-12-18 2018-07-27 武汉烽火众智智慧之星科技有限公司 A kind of access gateway and a kind of cut-in method
CN111132048A (en) * 2019-11-27 2020-05-08 中国联合网络通信集团有限公司 Fee sending method, device, equipment and storage medium based on flow use
CN111586127A (en) * 2020-04-28 2020-08-25 深圳市爱路恩济能源技术有限公司 Working condition data processing method based on Internet of things system
CN111586127B (en) * 2020-04-28 2023-04-28 深圳市爱路恩济能源技术有限公司 Working condition data processing method based on Internet of things system

Also Published As

Publication number Publication date
CN105991360A (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US9066275B2 (en) Method and system to improve device pinging
EP2668803B1 (en) Method and apparatus for providing qos-based service in wireless communication system
EP2553949B1 (en) Local roaming charging in lte/epc networks
US9461829B2 (en) Method and apparatus for controlling charging in a communication network
US20150223042A1 (en) Independent roaming charging for a roaming user equipment in a visited network
KR20140062491A (en) System and method for provisioning internet access to a computing device
WO2013108136A1 (en) Method and apparatus for performing charging control to a sponsored data application
EP3087724B1 (en) Server, electronic device, computer programs and methods to push toll-free applications to a user device
US20120123919A1 (en) Method And System For Billing In A Communication Network
WO2011082644A1 (en) Online charging method and apparatus
WO2016127638A1 (en) Method for real-time monitoring of ps domain traffic, and related device
EP2005644B1 (en) Charging system and method for handling services within this system and entities thereof
CN109479007B (en) Data service control method, related equipment and system
EP3849232A1 (en) Method and device for processing gx session exception
US20160286051A1 (en) Method and Apparatus for Online Charging of Pre-Fetched Content
WO2012154107A2 (en) Systems and/or methods for delivering notifications on a communications network
CN103052048B (en) A kind of charging method of link building messages and device
CN108270580B (en) Reminding method, device and system for online charging
JP6086335B2 (en) Content download method, related device, and system
WO2014153720A1 (en) Charging method, access device, and charging device
KR20170042864A (en) Apparatus and method for charging for communicating service
KR20110007748A (en) System, server and method for providing prepaid accounting
OA18992A (en) Method to push toll-free applications to a user device

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: 15881792

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: 15881792

Country of ref document: EP

Kind code of ref document: A1