CN102612086B - Method, device and system for authorizing data service flow of terminal - Google Patents
Method, device and system for authorizing data service flow of terminal Download PDFInfo
- Publication number
- CN102612086B CN102612086B CN201210098364.9A CN201210098364A CN102612086B CN 102612086 B CN102612086 B CN 102612086B CN 201210098364 A CN201210098364 A CN 201210098364A CN 102612086 B CN102612086 B CN 102612086B
- Authority
- CN
- China
- Prior art keywords
- user
- ggsn
- traffic
- request
- use traffic
- 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.)
- Expired - Fee Related
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例提供对终端数据业务流量进行授权的方法,包括:接收网关GPRS支持节点GGSN发送的申请流量请求,所述请求中携带用户标识和用户使用的流量速率;确定所述用户的授权流量大小,发送所述授权流量大小至所述GGSN,触发所述GGSN对所述用户使用的流量进行监控。相应地,本发明实施例还提供一种OCS、GGSN以及终端数据业务流量进行授权的系统,解决了固定授权流量导致申请频率高时终端用户无法进行数据业务的问题,提高了用户体验。
The embodiment of the present invention provides a method for authorizing terminal data service traffic, including: receiving a traffic application request sent by a gateway GPRS support node GGSN, the request carrying a user identifier and a traffic rate used by the user; determining the authorized traffic of the user size, sending the authorized traffic size to the GGSN, triggering the GGSN to monitor the traffic used by the user. Correspondingly, the embodiment of the present invention also provides a system for authorizing OCS, GGSN, and terminal data service traffic, which solves the problem that terminal users cannot perform data services when the application frequency is high due to fixed authorized traffic, and improves user experience.
Description
技术领域 technical field
本发明实施例涉及通信技术领域,尤其涉及一种对终端数据业务的流量进行授权的方法、装置及系统。Embodiments of the present invention relate to the field of communication technologies, and in particular to a method, device and system for authorizing traffic of terminal data services.
背景技术 Background technique
用户在使用移动终端上网过程中,业务网元向在线计费系统(OnlineCharging System,OCS)申请流量,OCS根据用户在当前交互的会话中流量使用情况计算出所需金额,并授权用户可使用的流量。每次访问产生的使用量会根据用户单位时间段内访问内容的不同而不同。访问普通的网页文本类内容时,业务网元产品的流量较小;访问视频、图片等多媒体类内容时,业务网元的流量较大。When a user uses a mobile terminal to access the Internet, the service network element applies for traffic to the Online Charging System (OCS), and the OCS calculates the required amount according to the user's traffic usage in the current interactive session and authorizes the user to use flow. The amount of usage generated by each visit will vary according to the content accessed by the user within a unit time period. When accessing ordinary webpage text content, the traffic of service network element products is small; when accessing multimedia content such as videos and pictures, the traffic of service network element products is relatively large.
现有技术中,网关GPRS支持节点(Gateway GPRS Support Node,GGSN)在收到GPRS服务支撑节点(Serving GPRS Support Node,SGSN)发送的数据业务请求消息后,向OCS设备发送申请流量请求,OCS设备按照固定流量对GGSN的请求进行授权,GGSN收到该授权流量后,开始进行下一次的流量监控。In the prior art, the Gateway GPRS Support Node (Gateway GPRS Support Node, GGSN) sends an application traffic request to the OCS device after receiving the data service request message sent by the GPRS Service Support Node (Serving GPRS Support Node, SGSN), and the OCS device Authorize the request of the GGSN according to the fixed flow. After receiving the authorized flow, the GGSN starts the next flow monitoring.
OCS设备的性能指标往往是额定的,若单位时间内超过一定的申请流量请求量,则OCS设备由于性能的限制,对于申请流量请求会出现无法响应的情况。现有技术中,如果用户单位时间内使用流量增加,GGSN向OCS设备的请求频率会变快,一旦接入侧网元与计费网元的交互频率超过一定的阈值,OCS设备就会无法响应GGSN的申请流量请求,终端用户的数据业务会得不到满足,用户体验降低。The performance index of the OCS device is often rated. If the application traffic request exceeds a certain amount per unit time, the OCS device will fail to respond to the application traffic request due to performance limitations. In the existing technology, if the user traffic increases per unit time, the frequency of GGSN requests to the OCS device will become faster. Once the interaction frequency between the access side network element and the billing network element exceeds a certain threshold, the OCS device will not be able to respond The application traffic request of the GGSN will not satisfy the end user's data service, and the user experience will be degraded.
发明内容 Contents of the invention
本发明实施例提供一种对终端数据业务的流量进行授权的方法、装置及系统,解决现有技术中OCS授权固定流量大小导致申请流量频率高时终端用户无法进行数据业务的问题。Embodiments of the present invention provide a method, device and system for authorizing the flow of terminal data services, which solves the problem in the prior art that terminal users cannot perform data services when the application flow frequency is high due to the fixed flow size authorized by the OCS.
本发明实施例提供一种对终端数据业务流量进行授权的方法,包括:An embodiment of the present invention provides a method for authorizing terminal data service traffic, including:
接收网关GPRS支持节点GGSN发送的申请流量请求,所述请求中携带用户标识和用户使用的流量速率;Receiving the application flow request sent by the gateway GPRS support node GGSN, which carries the user identification and the flow rate used by the user in the request;
确定所述用户的授权流量大小,发送所述授权流量大小至所述GGSN,触发所述GGSN对所述用户使用的流量进行监控。Determine the authorized traffic size of the user, send the authorized traffic size to the GGSN, and trigger the GGSN to monitor the traffic used by the user.
本发明实施例还提供一种在线计费系统设备OCS,包括:The embodiment of the present invention also provides an online charging system device OCS, including:
接收单元,用于接收网关GPRS支持节点GGSN发送的申请流量请求,所述请求中携带用户标识和用户使用流量的速率;The receiving unit is used to receive the application traffic request sent by the gateway GPRS support node GGSN, and the request carries the user identification and the rate of user traffic;
确定单元,用于确定所述用户的授权流量大小;A determining unit, configured to determine the size of the authorized flow of the user;
发送单元,用于发送所述授权流量大小至所述GGSN,触发所述GGSN对所述用户使用的流量进行监控。A sending unit, configured to send the authorized traffic size to the GGSN, and trigger the GGSN to monitor the traffic used by the user.
本发明实施例还提供一种网关GPRS支持节点GGSN,包括:The embodiment of the present invention also provides a gateway GPRS support node GGSN, including:
发送单元,用于发送申请流量请求至在线计费系统OCS,所述请求中携带用户标识和用户使用的流量速率;A sending unit, configured to send an application flow request to the online charging system OCS, the request carrying the user identifier and the flow rate used by the user;
接收单元,用于接收所述OCS发送的授权流量大小。A receiving unit, configured to receive the authorized flow size sent by the OCS.
监控单元,用于对所述用户使用的流量进行监控。A monitoring unit, configured to monitor the traffic used by the user.
本发明实施例还提供一种授权终端数据业务流量的系统,包括OCS和GGSN,其中,The embodiment of the present invention also provides a system for authorizing terminal data traffic, including OCS and GGSN, wherein,
所述OCS,用于接收所述GGSN发送的申请流量请求,所述请求中携带用户标识和用户使用的流量速率,确定所述用户的授权流量大小,发送所述授权流量大小至所述GGSN,触发所述GGSN对所述用户使用的流量进行监控;The OCS is configured to receive the application traffic request sent by the GGSN, the request carries the user identifier and the traffic rate used by the user, determines the authorized traffic size of the user, and sends the authorized traffic size to the GGSN, triggering the GGSN to monitor the traffic used by the user;
所述GGSN,用于发送申请流量请求至所述OCS,所述请求中携带用户标识和用户使用的流量速率,接收所述OCS发送的授权流量大小,对所述用户使用的流量进行监控。The GGSN is configured to send a traffic application request to the OCS, the request carries a user ID and a traffic rate used by the user, receives the authorized traffic size sent by the OCS, and monitors the traffic used by the user.
通过本发明实施例提供的方法,OCS通过接收GGSN发送的用户标识和用户使用的流量速率,获取用户的特征信息,并查询用户授权流量表,确定用户的授权流量并发送。解决了OCS授权固定流量导致申请频率高时终端用户无法进行数据业务的问题,提高了用户体验。Through the method provided by the embodiment of the present invention, the OCS obtains the characteristic information of the user by receiving the user identification sent by the GGSN and the traffic rate used by the user, and queries the user authorized traffic table to determine the authorized traffic of the user and send it. It solves the problem that end users cannot perform data services when the application frequency is high due to OCS authorized fixed traffic, and improves user experience.
附图说明 Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1为本发明实施例一的方法流程图;Fig. 1 is the method flowchart of embodiment one of the present invention;
图2为本发明实施例二的方法流程图;Fig. 2 is the method flowchart of the second embodiment of the present invention;
图3为本发明实施例二的用户特征信息与授权流量对应关系图;FIG. 3 is a diagram of the correspondence between user characteristic information and authorized traffic in Embodiment 2 of the present invention;
图4为本发明实施例三的OCS的结构图;FIG. 4 is a structural diagram of an OCS according to Embodiment 3 of the present invention;
图5为本发明实施例四的GGSN的结构图;FIG. 5 is a structural diagram of a GGSN according to Embodiment 4 of the present invention;
图6为本发明实施例五的系统结构图。FIG. 6 is a system structure diagram of Embodiment 5 of the present invention.
具体实施方式 Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例一:Embodiment one of the present invention:
图1为本发明对终端数据业务流量进行授权的一个方法实施例的流程图,如图1所示,该方法可以包括:Fig. 1 is a flowchart of an embodiment of a method for authorizing terminal data traffic in the present invention. As shown in Fig. 1, the method may include:
S101、OCS接收GGSN发送的申请流量请求,所述请求中携带用户标识和用户使用的流量速率;S101. The OCS receives a traffic application request sent by the GGSN, and the request carries a user identifier and a traffic rate used by the user;
其中,用户使用流量速率则表示单位时间内用户使用的流量大小。用户标识可以是移动台国际ISDN号码(Mobile Subscriber International ISDNnumber,MSISDN),也可以是其他的用户标识。Wherein, the traffic rate used by the user indicates the amount of traffic used by the user per unit time. The user identifier can be a mobile station international ISDN number (Mobile Subscriber International ISDN number, MSISDN), or other user identifiers.
需要说明的是,GGSN获取用户已使用流量大小与使用流量时长,计算用户使用流量速率。用户使用流量速率的计算方法为:设置定时器,配置定时时间,用户开始使用流量时开启定时器,当使用流量时长等于该定时时间时,获取用户已使用流量大小。It should be noted that the GGSN obtains the amount of traffic used by the user and the duration of the traffic used, and calculates the rate of traffic used by the user. The calculation method of the traffic rate used by the user is as follows: set the timer, configure the timing time, start the timer when the user starts to use the traffic, and obtain the traffic volume used by the user when the traffic usage time is equal to the timing time.
GGSN通过Diameter信用控制协议(Diameter Credit Control,DCC)向OCS发送申请流量请求。在发送之前,GGSN封装用户使用流量的速率进申请流量请求的扩展字段中,具体可以是封装进DCC协议中的AVP(Attribute-Value-Pair)参数字段,也可以是封装进别的参数字段,本发明实施例对此没有限制。The GGSN sends an application traffic request to the OCS through the Diameter Credit Control protocol (Diameter Credit Control, DCC). Before sending, the GGSN encapsulates the user traffic rate into the extension field of the application traffic request. Specifically, it can be encapsulated into the AVP (Attribute-Value-Pair) parameter field in the DCC protocol, or it can be encapsulated into other parameter fields. This embodiment of the present invention is not limited thereto.
S102、确定所述用户的授权流量大小,发送所述授权流量大小至所述GGSN,触发所述GGSN对用户使用流量进行监控。S102. Determine the authorized traffic size of the user, send the authorized traffic size to the GGSN, and trigger the GGSN to monitor the traffic used by the user.
在OCS接收GGSN发送的申请流量请求之前,OCS还需要配置用户的授权流量表;Before the OCS receives the application traffic request sent by the GGSN, the OCS also needs to configure the user's authorized traffic table;
OCS自身保存得有用户品牌、套餐、套餐包含的流量剩余、余额范围等信息,且该信息与用户的用户标识一一对应。因此,OCS通过接收到用户的用户标识,可以获得该用户的用户品牌、套餐等信息。OCS itself saves information such as the user brand, package, remaining traffic included in the package, balance range, etc., and this information corresponds to the user ID of the user one by one. Therefore, after receiving the user ID of the user, the OCS can obtain information such as the user's brand and package of the user.
用户的特征信息包括用户品牌、套餐、套餐包含的流量剩余、余额范围。用户品牌以移动运营商为例,有全球通、神州行和动感地带三个品牌;套餐则是运营商规定的收费规则及优惠资费包。The characteristic information of the user includes the user brand, the package, the remaining traffic included in the package, and the balance range. User brands take mobile operators as an example, there are three brands: GSM, Shenzhouxing and M-Zone; packages are the charging rules and preferential tariff packages stipulated by the operators.
具体地,OCS查询用户授权流量表,确定该用户的授权流量大小,并根据所述用户品牌对应的流量资费,计算所述授权流量大小对应的余额占用大小。在计算完余额占用大小之后,根据所述用户使用流量速率,计算接收下一次申请的预计时间。Specifically, the OCS queries the user's authorized traffic table, determines the authorized traffic volume of the user, and calculates the balance occupation corresponding to the authorized traffic volume according to the traffic tariff corresponding to the user brand. After calculating the size of the balance occupation, calculate the estimated time for receiving the next application according to the traffic rate used by the user.
通过本发明实施例提供的方法,OCS通过接收GGSN发送的用户标识和用户使用的流量速率,获取用户的特征信息,并查询用户授权流量表,确定用户的授权流量并发送。解决了OCS授权固定流量导致申请频率高时终端用户无法进行数据业务的问题,提高了用户体验。Through the method provided by the embodiment of the present invention, the OCS obtains the characteristic information of the user by receiving the user identification sent by the GGSN and the traffic rate used by the user, and queries the user authorized traffic table to determine the authorized traffic of the user and send it. It solves the problem that end users cannot perform data services when the application frequency is high due to OCS authorized fixed traffic, and improves user experience.
本发明实施例二:Embodiment two of the present invention:
如图2所示,在本实施例中,OCS授权流量的流程如下:As shown in Figure 2, in this embodiment, the flow of OCS authorized traffic is as follows:
S201、OCS配置用户授权流量表;S201. The OCS configures a user authorization flow table;
OCS在接收到流量申请之前,配置用户授权流量表。授权流量表包括用户的特征信息、用户的使用速率及用户的授权流量大小等信息。其中,用户的特征信息包括用户品牌、套餐、余额。用户品牌以移动运营商为例,有全球通、神州行和动感地带三个品牌;套餐则是运营商规定的收费规则。用户使用流量速率则表示单位时间内用户使用的流量大小。Before receiving the traffic application, the OCS configures the user authorization flow table. The authorized flow table includes information such as user characteristic information, user usage rate, and user authorized flow size. Wherein, the characteristic information of the user includes the user brand, package, and balance. The user brand takes the mobile operator as an example, there are three brands of GSM, Shenzhouxing and M-Zone; the package is the charging rule stipulated by the operator. The traffic rate used by the user indicates the amount of traffic used by the user per unit time.
需要说明的是,为了保证OCS的处理能力,会话交互需要满足一定的时间间隔,如果小于该时间间隔,可能会导致OCS无法响应申请流量请求。在本实施例中,可定为20分钟及以上,本发明实施例对具体时间间隔大小无限制。在确定了时间间隔后,根据使用流量速率和时间间隔,就可以计算出授权流量大小,授权流量=使用流量速率*时间间隔,表示的是授权给用户可使用的流量大小。图3给出了本发明实施例中的一组对应关系表,本发明实施例中对表中配置的参数值无限制,类似的其他参数都属于本发明实施例保护的范围。It should be noted that, in order to ensure the processing capability of the OCS, the session interaction needs to meet a certain time interval. If the time interval is shorter than this time interval, the OCS may not be able to respond to the application traffic request. In this embodiment, it can be set as 20 minutes or more, and the embodiment of the present invention has no limitation on the specific time interval. After the time interval is determined, the authorized traffic size can be calculated according to the usage traffic rate and the time interval. Authorized traffic = usage traffic rate * time interval, which means the authorized traffic size for users. FIG. 3 shows a set of correspondence tables in the embodiment of the present invention. In the embodiment of the present invention, there is no limit to the parameter values configured in the table, and other similar parameters belong to the protection scope of the embodiment of the present invention.
S202、SGSN发送数据业务请求至GGSN;S202. The SGSN sends a data service request to the GGSN;
用户设备UE开始数据业务,由SGSN发送数据业务请求至GGSN,要求GGSN对该数据业务进行处理。The user equipment UE starts a data service, and the SGSN sends a data service request to the GGSN, requesting the GGSN to process the data service.
S203、GGSN发送申请流量请求消息至OCS;S203. The GGSN sends an application flow request message to the OCS;
GGSN收到SGSN的请求后,发送申请流量消息请求至OCS,具体可以通过DCC来进行通信,消息请求在DCC协议中具体可以为DCC请求消息(Credit Control Request,CCR)。该CCR消息中携带申请预留量大小。申请预留量是GGSN配置的默认值,例如,可以为1MB、2MB或其他值,本发明实施例对此不做限制。After receiving the request from the SGSN, the GGSN sends an application traffic message request to the OCS, which can be communicated through the DCC. The message request can be a DCC request message (Credit Control Request, CCR) in the DCC protocol. The CCR message carries the size of the reserved amount to apply for. The application reserved amount is a default value configured by the GGSN, for example, it may be 1MB, 2MB or other values, which is not limited in this embodiment of the present invention.
S204、OCS确定用户的授权流量大小;S204. The OCS determines the size of the user's authorized traffic;
由于是GGSN第一次发出申请流量请求,OCS获得用户特征信息后,确定默认授权申请量为待发送的授权流量,而不需要查询用户授权流量表。默认的授权申请量可以是GGSN发送的申请预留量,也可以是自身配置的默认申请预留量,可以是1M,2M或者其他。本发明实施例对具体的大小没有限制。Since it is the first time that the GGSN sends a flow request, after the OCS obtains the user characteristic information, it determines that the default authorized application volume is the authorized flow to be sent, and there is no need to query the user authorized flow table. The default authorized application amount can be the reserved application amount sent by GGSN, or the default reserved application amount configured by itself, which can be 1M, 2M or others. The embodiment of the present invention does not limit the specific size.
S205、OCS返回授权流量大小至GGSN;S205. The OCS returns the authorized traffic size to the GGSN;
OCS发送DCC请求应答消息(Credit Control Answer,CCA)至GGSN,消息中携带有授权流量大小。The OCS sends a DCC request response message (Credit Control Answer, CCA) to the GGSN, and the message carries the authorized traffic size.
S206、GGSN监控用户使用流量并计算用户使用流量速率;S206. The GGSN monitors the traffic used by the user and calculates the traffic rate used by the user;
GGSN对用户实际使用的流量进行监控,并计算用户使用流量速率,方法如下:GGSN monitors the traffic actually used by the user and calculates the traffic rate used by the user. The method is as follows:
设定定时器,配置定时时间,定时时间小于等于提交新流量申请时刻。当用户开始使用流量时,激活定时器,开始计时,当达到定时时间后,获得用户已使用的流量大小,计算出用户使用流量速率,用户使用流量速率=用户已使用流量大小/定时时间。Set the timer and configure the timing time. The timing time is less than or equal to the time when the new traffic application is submitted. When the user starts to use the traffic, activate the timer and start counting. When the timing is reached, the traffic size used by the user is obtained, and the traffic rate used by the user is calculated. The traffic rate used by the user = the size of the traffic used by the user / the timing time.
S207、GGSN向OCS申请新的流量;S207, the GGSN applies for new traffic to the OCS;
在第一次申请流量用完后,GGSN向OCS申请新的流量,请求消息与具体可以为CCR。其中,CCR携带使用流量速率和用户标识,用户标识可以是移动台国际ISDN号码(Mobile Subscriber International ISDNnumber,MSISDN),也可以是其他的用户标识。GGSN封装用户使用流量的速率进申请流量请求的扩展字段中,具体可以是封装进DCC协议中的AVP(Attribute-Value-Pair)参数字段,也可以是封装进别的参数字段,本发明实施例对此没有限制。S208、OCS确定新的授权流量大小;After the first application flow is used up, the GGSN applies for a new flow to the OCS, and the request message and details can be CCR. Wherein, the CCR carries the usage traffic rate and the subscriber identifier, and the subscriber identifier may be a Mobile Subscriber International ISDN number (MSISDN), or other subscriber identifiers. GGSN encapsulates the rate of traffic used by the user into the extension field of the application traffic request. Specifically, it can be encapsulated into the AVP (Attribute-Value-Pair) parameter field in the DCC protocol, or it can be encapsulated into other parameter fields. Embodiments of the present invention There is no limit to this. S208. The OCS determines a new authorized flow size;
OCS收到新的申请后,对已经使用的流量进行扣费。由于OCS保存了用户品牌、套餐及余额等用户的特征信息,且该信息与用户标识一一对应,故在接收到GGSN发送的用户标识之后,OCS获取与用户标识对应的用户的特征信息。After OCS receives a new application, it deducts the used traffic. Since the OCS stores the user's feature information such as user brand, package, and balance, and the information is in one-to-one correspondence with the user ID, after receiving the user ID sent by the GGSN, the OCS obtains the user's feature information corresponding to the user ID.
OCS获取到用户的特征信息之后,根据用户的特征信息与用户使用流量的速率,查询用户授权流量表,确定用户新的授权流量大小。After the OCS obtains the user's characteristic information, it queries the user's authorized flow table according to the user's characteristic information and the user's traffic rate to determine the user's new authorized traffic size.
OCS根据接收到的用户套餐信息,计算余额占用大小。例如,用户套餐是1分/KB,新的授权流量是200KB,则余额占用大小为200*1分,即为2元。OCS calculates the size of the balance occupation based on the received user package information. For example, if the user package is 1 cent/KB, and the new authorized traffic is 200KB, then the balance occupied size is 200*1 cent, which is 2 yuan.
OCS根据接收到的用户速率,计算接收下一次申请预计时间。例如,用户速率为100KB/min,新的授权流量是2000KB,则接收下一次申请预计时间为2000/100min,即为20min。The OCS calculates the expected time for receiving the next application based on the received user rate. For example, if the user rate is 100KB/min, and the new authorized traffic is 2000KB, then the expected time to receive the next application is 2000/100min, which is 20min.
S209、OCS发送新的授权流量大小至GGSN;S209. The OCS sends a new authorized traffic size to the GGSN;
OCS确定了新的授权流量大小后,发送新的授权流量大小至GGSN,触发GGSN对下一轮用户使用流量进行监控。After the OCS determines the new authorized traffic size, it sends the new authorized traffic size to the GGSN, triggering the GGSN to monitor the next round of user traffic.
S210、用户关闭数据业务,发起下线申请;S210. The user closes the data service and initiates an offline application;
S211、OCS按照实际使用流量扣费写话单,并结束会话。S211. The OCS writes a bill according to the actual traffic usage and deducts fees, and ends the session.
通过本发明实施例提供的方法,OCS通过接收GGSN发送的用户标识和用户使用的流量速率,获取用户的特征信息,并查询用户授权流量表,确定用户的授权流量并发送。解决了OCS授权固定流量导致申请频率高时终端用户无法进行数据业务的问题,提高了用户体验。Through the method provided by the embodiment of the present invention, the OCS obtains the characteristic information of the user by receiving the user identification sent by the GGSN and the traffic rate used by the user, and queries the user authorized traffic table to determine the authorized traffic of the user and send it. It solves the problem that end users cannot perform data services when the application frequency is high due to OCS authorized fixed traffic, and improves user experience.
本发明实施例三:Embodiment three of the present invention:
本发明实施例提供一种在线计费系统OCS设备,如图4所示,包括:An embodiment of the present invention provides an OCS device for an online charging system, as shown in FIG. 4 , including:
接收单元301,用于接收GGSN发送的申请流量请求,请求中携带用户标识和用户使用的流量速率;The receiving unit 301 is configured to receive the application flow request sent by the GGSN, the request carrying the user identification and the flow rate used by the user;
其中,用户使用流量速率则表示单位时间内用户使用的流量大小。用户标识可以是移动台国际ISDN号码(Mobile Subscriber International ISDNnumber,MSISDN),也可以是其他的用户标识。Wherein, the traffic rate used by the user indicates the amount of traffic used by the user per unit time. The user identifier can be a mobile station international ISDN number (Mobile Subscriber International ISDN number, MSISDN), or other user identifiers.
确定单元302,用于确定所述用户的授权流量大小;A determining unit 302, configured to determine the size of the user's authorized traffic;
在接收单元301接收GGSN发送的申请流量请求之前,OCS的配置单元还需要配置用户的授权流量表;Before the receiving unit 301 receives the application flow request sent by the GGSN, the OCS configuration unit also needs to configure the user's authorized flow table;
OCS配置单元保存得有用户品牌、套餐、套餐包含的流量剩余、余额范围等信息,且该信息与用户的用户标识一一对应。因此,接收单元301接收到用户的用户标识,可以获得该用户的用户品牌、套餐等信息。The OCS configuration unit stores information such as the user brand, package, remaining traffic included in the package, balance range, etc., and the information is in one-to-one correspondence with the user ID of the user. Therefore, the receiving unit 301 receives the user ID of the user, and can obtain information such as the user brand and package of the user.
用户的特征信息包括用户品牌、套餐、套餐包含的流量剩余、余额范围。用户品牌以移动运营商为例,有全球通、神州行和动感地带三个品牌;套餐则是运营商规定的收费规则及优惠资费包。确定单元302查询用户授权流量表,确定用户的授权流量大小,OCS的计算单元并根据所述用户品牌对应的流量资费,计算所述授权流量大小对应的余额占用大小。例如:例如,用户套餐是1分/KB,确定单元303确定的新的授权流量是200KB,则余额占用大小为200*1分,即为2元。The characteristic information of the user includes the user brand, the package, the remaining traffic included in the package, and the balance range. User brands take mobile operators as an example, there are three brands: GSM, Shenzhouxing and M-Zone; packages are the charging rules and preferential tariff packages stipulated by the operators. The determining unit 302 queries the user authorized flow table to determine the authorized flow of the user, and the calculation unit of the OCS calculates the balance occupation corresponding to the authorized flow according to the flow rate corresponding to the user brand. For example: For example, if the user package is 1 cent/KB, and the new authorized traffic determined by the determination unit 303 is 200KB, then the balance occupation size is 200*1 cent, which is 2 yuan.
在计算完余额占用大小之后,计算单元根据所述用户使用流量速率,计算接收下一次申请的预计时间。例如,用户速率为100KB/min,新的授权流量是2000KB,则接收下一次申请预计时间为2000/100min,即为20min。After calculating the size of the balance occupation, the calculation unit calculates the expected time for receiving the next application according to the traffic rate used by the user. For example, if the user rate is 100KB/min, and the new authorized traffic is 2000KB, then the expected time to receive the next application is 2000/100min, which is 20min.
发送单元303,用于发送授权流量大小至GGSN。A sending unit 303, configured to send the authorized traffic size to the GGSN.
在确定单元302确定新的授权流量大小之后,发送单元304发送授权流量至GGSN。After the determining unit 302 determines the size of the new authorized traffic, the sending unit 304 sends the authorized traffic to the GGSN.
通过本实施例提供的OCS,接收单元通过接收GGSN发送的用户标识和用户使用的流量速率,确定单元获取用户的特征信息,查询配置的用户授权流量表,确定用户的授权流量,发送单元发送该新的授权流量至GGSN。解决了OCS授权固定流量导致申请频率高时终端用户无法进行数据业务的问题,提高了用户体验。Through the OCS provided by this embodiment, the receiving unit receives the user identifier and the traffic rate used by the user sent by the GGSN, the determining unit obtains the user's characteristic information, queries the configured user authorized flow table, and determines the user's authorized flow, and the sending unit sends the user. New authorized traffic to GGSN. It solves the problem that end users cannot perform data services when the application frequency is high due to OCS authorized fixed traffic, and improves user experience.
本发明实施例四:Embodiment four of the present invention:
本发明实施例提供一种GGSN,如图5所示,包括:An embodiment of the present invention provides a GGSN, as shown in FIG. 5 , including:
发送单元401,用于发送申请流量请求至OCS,请求中携带用户标识和用户使用的流量速率;The sending unit 401 is configured to send an application flow request to the OCS, where the request carries the user identification and the flow rate used by the user;
用户标识可以是移动台国际ISDN号码(Mobile Subscriber InternationalISDN number,MSISDN),也可以是其他的用户标识。The user identifier can be a mobile station international ISDN number (Mobile Subscriber International ISDN number, MSISDN), or other user identifiers.
在发送单元401发送申请流量之前,GGSN的获取单元获取用户已使用流量大小与使用流量时长。获取单元获取方式可以是监控用户使用流量,当用户使用完授权的流量后,获取使用流量时间;也可以是设置定时器,配置定时时间,定时时间小于等于提交新流量申请时刻。当用户开始使用流量时,触发定时器,开始计时。当到达定时时间时,获取用户已使用的流量大小。Before the sending unit 401 sends the application traffic, the acquisition unit of the GGSN acquires the amount of traffic used by the user and the duration of the traffic used. The acquisition method of the acquisition unit can be to monitor the traffic used by the user, and obtain the traffic usage time after the user has used up the authorized traffic; it can also be to set a timer and configure a timing time, and the timing time is less than or equal to the time when the new traffic application is submitted. When the user starts to use traffic, trigger the timer and start timing. When the scheduled time is reached, obtain the amount of traffic the user has used.
在获取单元获取到用户已使用流量大小与使用流量时长后,GGSN的计算单元计算用户使用流量速率。其中,用户使用流量速率=用户已使用流量大小/使用流量时长。After the acquisition unit obtains the amount of traffic used by the user and the duration of the traffic used, the calculation unit of the GGSN calculates the traffic rate used by the user. Among them, the traffic rate used by the user = the size of the traffic used by the user / the duration of the traffic used.
GGSN通过DCC协议发送所述申请流量请求。在计算单元计算用户使用流量速率后,GGSN封装单元封装用户使用流量的速率进扩展的申请流量请求的参数字段中,具体可以是封装进DCC协议中的AVP(Attribute-Value-Pair)参数字段,也可以是封装进别的参数字段,本发明实施例对此没有限制。接收单元402,用于接收OCS发送的授权流量大小;The GGSN sends the traffic application request through the DCC protocol. After computing unit calculates the flow rate used by the user, the GGSN encapsulation unit encapsulates the rate of flow used by the user into the parameter field of the extended application flow request, which can be specifically encapsulated into the AVP (Attribute-Value-Pair) parameter field in the DCC protocol, It may also be encapsulated into other parameter fields, which is not limited in this embodiment of the present invention. A receiving unit 402, configured to receive the authorized flow size sent by the OCS;
监控单元403,用于对用户使用流量进行监控。The monitoring unit 403 is configured to monitor user usage traffic.
在接收单元402接收OCS发送的授权流量大小后,触发监控单元对用户使用流量进行监控。After receiving the authorized traffic size sent by the OCS, the receiving unit 402 triggers the monitoring unit to monitor the traffic used by the user.
通过本实施例提供的GGSN,通过发送单元发送携带有用户标识和用户使用的流量速率的申请流量请求至OCS,接收单元接收OCS发送的授权流量大小,并通过监控单元对用户使用流量进行监控。解决了OCS授权固定流量导致申请频率高时终端用户无法进行数据业务的问题,提高了用户体验。Through the GGSN provided in this embodiment, the sending unit sends the application traffic request carrying the user identification and the traffic rate used by the user to the OCS, the receiving unit receives the authorized traffic size sent by the OCS, and monitors the traffic used by the user through the monitoring unit. It solves the problem that end users cannot perform data services when the application frequency is high due to OCS authorized fixed traffic, and improves user experience.
本发明实施例五:Embodiment five of the present invention:
本发明实施例还提供一种对终端数据业务流量进行授权的系统,如图6所示,包括:The embodiment of the present invention also provides a system for authorizing terminal data traffic, as shown in FIG. 6 , including:
在线计费系统OCS设备501,用于接收GGSN发送的申请流量请求,请求中携带用户标识和用户使用的流量速率,确定所述用户的授权流量大小,发送所述授权流量大小至所述GGSN,触发所述GGSN对所述用户使用的流量进行监控;The online charging system OCS device 501 is configured to receive a traffic application request sent by the GGSN, the request carries a user identifier and a traffic rate used by the user, determines the authorized traffic size of the user, and sends the authorized traffic size to the GGSN, triggering the GGSN to monitor the traffic used by the user;
OCS配置得有用户授权流量表。表中包括用户的特征信息,用户的使用流量速率,用户的授权流量大小等信息。其中,用户的特征信息包括用户品牌、套餐、余额及用户使用流量速率。用户品牌以移动运营商为例,有全球通、神州行和动感地带三个品牌;套餐则是运营商规定的收费规则。用户使用流量速率则表示单位时间内用户使用的流量大小。OCS must be configured with a user authorization flow table. The table includes the user's characteristic information, the user's usage traffic rate, the user's authorized traffic size and other information. Among them, the characteristic information of the user includes the user brand, package, balance and user traffic rate. The user brand takes the mobile operator as an example, there are three brands of GSM, Shenzhouxing and M-Zone; the package is the charging rule stipulated by the operator. The traffic rate used by the user indicates the amount of traffic used by the user per unit time.
OCS本身保存有用户的特征信息,且与用户标识一一对应,故接收到用户标识之后,可获取用户的特征信息。OCS查询用户授权流量表,确定用户的授权流量大小,并根据所述用户品牌对应的流量资费,计算所述授权流量大小对应的余额占用大小。在计算完余额占用大小之后,根据所述用户使用流量的速率,计算接收下一次申请的预计时间。The OCS itself stores the characteristic information of the user, and is in one-to-one correspondence with the user ID, so after receiving the user ID, the user's characteristic information can be obtained. The OCS queries the user authorized traffic table, determines the authorized traffic size of the user, and calculates the balance occupation size corresponding to the authorized traffic size according to the traffic tariff corresponding to the user brand. After calculating the size of the balance occupation, calculate the estimated time for receiving the next application according to the rate of traffic usage by the user.
支持GPRS服务网关GGSN502,用于发送申请流量请求至OCS,所述请求中携带用户标识和用户使用的流量速率,接收所述OCS发送的授权流量大小,对所述用户使用的流量进行监控。Support GPRS service gateway GGSN502, used to send application traffic request to OCS, the request carries user ID and traffic rate used by the user, receives the authorized traffic size sent by the OCS, and monitors the traffic used by the user.
用户标识可以是移动台国际ISDN号码(Mobile Subscriber InternationalISDN number,MSISDN),也可以是其他的用户标识。The user identifier can be a mobile station international ISDN number (Mobile Subscriber International ISDN number, MSISDN), or other user identifiers.
在发送申请流量之前,GGSN获取用户已使用流量大小与使用流量时长。获取方式可以是监控用户使用流量,当用户使用完授权的流量后,获取使用流量时间;也可以是设置定时器,配置定时时间,定时时间小于等于提交新流量申请时刻。当用户开始使用流量时,触发定时器,开始计时。当到达定时时间时,获取用户已使用的流量大小。Before sending the application traffic, GGSN obtains the user's used traffic size and usage time. The acquisition method can be to monitor the traffic used by the user, and obtain the traffic usage time after the user has used up the authorized traffic; it can also be to set a timer and configure the timing, and the timing time is less than or equal to the time when the new traffic application is submitted. When the user starts to use traffic, trigger the timer and start timing. When the scheduled time is reached, obtain the amount of traffic the user has used.
在获取到用户已使用流量大小与使用流量时长后,GGSN计算用户使用流量速率。其中,用户使用流量速率=用户已使用流量大小/使用流量时长。After obtaining the amount of traffic used by the user and the duration of the traffic used, the GGSN calculates the traffic rate used by the user. Among them, the traffic rate used by the user = the size of the traffic used by the user / the duration of the traffic used.
GGSN通过DCC协议发送所述申请流量请求。在计算用户使用流量速率后,GGSN封装用户使用流量的速率进申请流量请求的扩展字段中,具体可以是封装进DCC协议中的AVP(Attribute-Value-Pair)参数字段,也可以是封装进别的参数字段,本发明实施例对此没有限制。The GGSN sends the traffic application request through the DCC protocol. After calculating the traffic rate used by the user, the GGSN encapsulates the traffic rate used by the user into the extension field of the application traffic request. Specifically, it can be encapsulated into the AVP (Attribute-Value-Pair) parameter field in the DCC protocol, or it can be encapsulated into another parameter field, which is not limited in this embodiment of the present invention.
通过本实施例提供的系统,OCS通过接收GGSN发送的用户标识和用户使用的流量速率,根据用户标识获取对应的用户的特征信息,查询配置的用户的授权流量表,确定新的授权流量并发送。解决了OCS授权固定流量导致申请频率高时终端用户无法进行数据业务的问题,提高了用户体验。Through the system provided in this embodiment, the OCS receives the user ID sent by the GGSN and the traffic rate used by the user, obtains the characteristic information of the corresponding user according to the user ID, queries the configured user authorized traffic table, determines the new authorized traffic, and sends . It solves the problem that end users cannot perform data services when the application frequency is high due to OCS authorized fixed traffic, and improves user experience.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,设备和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
本领域普通技术人员可以理解:附图只是一个实施例的示意图,附图中的单元或流程并不一定是实施本发明所必须的。Those skilled in the art can understand that the accompanying drawing is only a schematic diagram of an embodiment, and the units or processes in the accompanying drawing are not necessarily necessary for implementing the present invention.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,设备和方法,可以通过其它的方式实现。例如,以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated units implemented in the form of software functional units may be stored in a computer-readable storage medium. The above-mentioned software functional units are stored in a storage medium, and include several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), magnetic disk or optical disc, etc., which can store program codes. medium.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210098364.9A CN102612086B (en) | 2012-04-06 | 2012-04-06 | Method, device and system for authorizing data service flow of terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210098364.9A CN102612086B (en) | 2012-04-06 | 2012-04-06 | Method, device and system for authorizing data service flow of terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102612086A CN102612086A (en) | 2012-07-25 |
CN102612086B true CN102612086B (en) | 2014-12-10 |
Family
ID=46529175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210098364.9A Expired - Fee Related CN102612086B (en) | 2012-04-06 | 2012-04-06 | Method, device and system for authorizing data service flow of terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102612086B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103974221B (en) * | 2013-01-25 | 2018-10-26 | 中国移动通信集团广东有限公司 | The distribution method and device of packet domain real time billing flow quota |
CN103079236B (en) * | 2013-01-29 | 2016-03-30 | 华为软件技术有限公司 | A kind of service traffics authorization method, device and system |
CN103338439B (en) * | 2013-05-31 | 2016-06-08 | 华为软件技术有限公司 | A kind of method, gateway device and counting equipment of charging |
CN106533705A (en) * | 2015-09-15 | 2017-03-22 | 中国移动通信集团公司 | Data service flow quota allocation method and data service flow quota allocation device |
CN107027109B (en) * | 2016-02-02 | 2020-03-17 | 中国移动通信集团辽宁有限公司 | Method for adjusting user flow quota, online charging system and gateway |
CN111328036A (en) * | 2018-12-17 | 2020-06-23 | 中国移动通信集团宁夏有限公司 | Method and device for controlling dynamic authorization of online charging of flow data service |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150594A (en) * | 2007-10-18 | 2008-03-26 | 中国联合通信有限公司 | An integrated access method and system for mobile cellular network and WLAN |
CN102075897A (en) * | 2009-11-20 | 2011-05-25 | 中国移动通信集团江苏有限公司 | Method and system for charging mobile data service |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7720960B2 (en) * | 2003-03-04 | 2010-05-18 | Cisco Technology, Inc. | Method and apparatus providing prepaid billing for network services using explicit service authorization in an access server |
-
2012
- 2012-04-06 CN CN201210098364.9A patent/CN102612086B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101150594A (en) * | 2007-10-18 | 2008-03-26 | 中国联合通信有限公司 | An integrated access method and system for mobile cellular network and WLAN |
CN102075897A (en) * | 2009-11-20 | 2011-05-25 | 中国移动通信集团江苏有限公司 | Method and system for charging mobile data service |
Also Published As
Publication number | Publication date |
---|---|
CN102612086A (en) | 2012-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8630925B2 (en) | Method and apparatus for controlling service traffic in a communication network | |
CN102612086B (en) | Method, device and system for authorizing data service flow of terminal | |
US9445259B2 (en) | Service provider certified device policy management | |
US8626113B2 (en) | Providing communication service sessions | |
CN103974221B (en) | The distribution method and device of packet domain real time billing flow quota | |
CN103812897A (en) | Network flow control method and device | |
CN102244580B (en) | Online charging method, communication device and communication system | |
MX2010012806A (en) | Online charging architecture in lte/epc communication networks. | |
CN113068139A (en) | A method and device for convergent billing | |
CN105933883B (en) | Flow monitoring processing method and related device and system | |
CN103220651A (en) | Method and equipment for carrying out charging control on application layer data | |
CN104363572A (en) | Redirecting method, charging device, access device and redirecting system | |
CN103415006B (en) | Charge on traffic business credit control method and device | |
CN105101136A (en) | Billing method, device and system for data services | |
CN108809665B (en) | Method for sharing authorized quota and related equipment | |
WO2013185530A1 (en) | Method for billing control and device thereof | |
CN102802145B (en) | Network service billing method, device and system | |
WO2016107177A1 (en) | Charging method, apparatus and system | |
CN108011725A (en) | A strategy control method, device and system | |
CN105338506A (en) | Charging method and equipment, access equipment, service quality control method and equipment | |
JP2020502958A (en) | Machine-to-machine network optimization and online billing | |
WO2017084394A1 (en) | Roaming charging method, relevant apparatus, and online charging system | |
CN108076443A (en) | The distribution method and online charging system of flow in a kind of online charging system | |
CN102137379B (en) | Method and device for controlling charging flow | |
CN104254060A (en) | Policy and charging control rule issuing method and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20141210 |