Movatterモバイル変換


[0]ホーム

URL:


CN102439902B - Charging method, device and network system for local routing service - Google Patents

Charging method, device and network system for local routing service
Download PDF

Info

Publication number
CN102439902B
CN102439902BCN201080006014.4ACN201080006014ACN102439902BCN 102439902 BCN102439902 BCN 102439902BCN 201080006014 ACN201080006014 ACN 201080006014ACN 102439902 BCN102439902 BCN 102439902B
Authority
CN
China
Prior art keywords
charging
information
local routing
service flow
statistical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201080006014.4A
Other languages
Chinese (zh)
Other versions
CN102439902A (en
Inventor
倪慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co LtdfiledCriticalHuawei Technologies Co Ltd
Publication of CN102439902ApublicationCriticalpatent/CN102439902A/en
Application grantedgrantedCritical
Publication of CN102439902BpublicationCriticalpatent/CN102439902B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

一种本地路由业务的计费方法,包括:本地路由执行实体对用户本地路由的业务流的计费相关信息进行统计,得到第一计费统计信息;发送所述第一计费统计信息,使计费服务器根据所述第一计费统计信息对本地路由的业务流进行计费,使用本发明实施例提供的方法,能够实现对本地路由业务的计费。

Figure 201080006014

A billing method for a local routing service includes: a local routing execution entity collecting statistics on billing-related information of a user's local routing service flow to obtain first billing statistical information; and sending the first billing statistical information to enable a billing server to bill the local routing service flow based on the first billing statistical information. The method provided by an embodiment of the present invention can implement billing for the local routing service.

Figure 201080006014

Description

Translated fromChinese
本地路由业务的计费方法、装置及网络系统Charging method, device and network system for local routing service

技术领域technical field

本发明涉及一种通信技术领域,特别涉及一种本地路由业务的计费方法、装置及网络系统。The invention relates to the technical field of communication, in particular to a charging method, device and network system for local routing services.

背景技术Background technique

在微波接入全球互通(Worldwide Interoperability for MicrowaveAccess,WiMAX)网络中,当终端与外部网络通信时,终端发送的上行报文,经过基站传递到服务网关,再由服务网关传递到锚定接入网关,最后经过家乡代理(Home Agent,HA)传送到外部网络中。而下行报文则经过反方向的承载路径路由到终端上。In the Worldwide Interoperability for Microwave Access (WiMAX) network, when the terminal communicates with the external network, the uplink message sent by the terminal is transmitted to the service gateway through the base station, and then transmitted to the anchor access gateway by the service gateway , and finally transmitted to the external network through the home agent (Home Agent, HA). The downlink message is routed to the terminal through the bearer path in the opposite direction.

WiMAX网络架构示意图如图1所示,Accounting Agent(计费代理)位于锚定接入网关(Anchor GW)处,由计费代理根据用户的业务流传输进行计费统计,比如统计业务流的上下行流量,业务报文数等等。然后计费代理将计费统计信息定期通过R4接口发送给计费客户端,计费客户端将计费统计信息通知验证、授权和计费(Authentication、Authorization、Accounting)AAA服务器,以便实现对用户的业务流的计费,其中,图1中的实线为业务流传输路径,图1中的虚线为计费统计信息传输路径。The schematic diagram of the WiMAX network architecture is shown in Figure 1. The Accounting Agent (billing agent) is located at the anchor access gateway (Anchor GW). Line traffic, number of service packets, etc. Then the billing agent sends the billing statistical information to the billing client regularly through the R4 interface, and the billing client notifies the verification, authorization, and accounting (Authentication, Authorization, Accounting) AAA server of the billing statistical information, so as to realize the The charging of the service flow, wherein, the solid line in Fig. 1 is the service flow transmission path, and the dotted line in Fig. 1 is the charging statistics information transmission path.

当需要彼此通信的两个终端位于同一个服务网关下,如图2所述,服务网关通过本地路由技术可以将源终端发出的报文直接发送到目的终端(如图2中粗实线所示),从而达到减少报文传输时延、降低核心网传输负载的目的。图2中的本地路由是在服务网关处进行的。同样,当两个用户在同一个基站下或同一个锚定接入网关(Anchor GW)下时,本地路由也可以在基站或锚定接入网关处实现。When two terminals that need to communicate with each other are located under the same service gateway, as shown in Figure 2, the service gateway can directly send the message sent by the source terminal to the destination terminal through local routing technology (as shown by the thick solid line in Figure 2 ), so as to achieve the purpose of reducing the message transmission delay and reducing the transmission load of the core network. The local routing in Figure 2 is performed at the serving gateway. Similarly, when two users are under the same base station or the same anchor access gateway (Anchor GW), local routing can also be implemented at the base station or anchor access gateway.

对于本地路由的业务流,运营商同样需要进行计费。同时,与普通业务流相比,本地路由的业务流计费可能采用不同的计费模型或费率。For the service flow of the local route, the operator also needs to perform charging. At the same time, compared with ordinary service flows, the service flow charging of local routes may adopt different charging models or rates.

现有技术具有如下缺点:Prior art has following shortcoming:

现有技术中,由位于锚定接入网关的计费代理Accounting Agent对用户业务流进行计费信息统计。当用户的某些业务流在服务网关或基站处发生了本地路由时,由于这部分业务流报文不再经过锚定接入网关,现有的计费架构无法对该部分业务流进行计费信息统计,因而会导致无法对本地路由业务进行计费。In the prior art, the Accounting Agent located at the anchor access gateway performs statistics on the accounting information of the user service flow. When some service flows of the user are routed locally at the serving gateway or base station, the existing billing architecture cannot charge for this part of the service flow because the packets of this part of the service flow no longer pass through the anchor access gateway. As a result, the local routing service cannot be billed.

发明内容Contents of the invention

本发明实施例提供一种本地路由业务的计费方法、装置及网络系统,能够实现对本地路由业务的计费。Embodiments of the present invention provide a charging method, device and network system for local routing services, which can realize charging for local routing services.

有鉴于此,本发明实施例提供:In view of this, embodiments of the present invention provide:

一种本地路由业务的计费方法,包括:A charging method for local routing services, comprising:

本地路由执行实体对用户本地路由的业务流的计费相关信息进行统计,得到第一计费统计信息;The local routing execution entity performs statistics on the charging-related information of the service flow of the user's local routing to obtain the first charging statistical information;

发送所述第一计费统计信息,使计费服务器根据所述第一计费统计信息对本地路由的业务流进行计费Sending the first charging statistical information, so that the charging server charges the service flow of the local route according to the first charging statistical information

一种本地路由执行实体,包括:A local routing execution entity, including:

本地路由业务流信息统计单元,用于对用户本地路由的业务流的计费相关信息进行统计,得到第一计费统计信息;The local routing service flow information statistics unit is used to perform statistics on the charging-related information of the user's local routing service flow to obtain the first charging statistical information;

发送单元,用于发送所述第一计费统计信息,使计费服务器根据所述第一计费统计信息对本地路由的业务流进行计费。The sending unit is configured to send the first charging statistical information, so that the charging server charges the service flow of the local route according to the first charging statistical information.

一种网络系统,包括:上述本地路由执行实体和用于接收第一计费统计信息,并根据所述第一计费统计信息对本地路由的业务流进行计费的计费服务器。A network system, comprising: the above-mentioned local routing execution entity and a charging server configured to receive first charging statistical information and charge a service flow of a local route according to the first charging statistical information.

本发明实施例采用本地路由执行实体对本地路由业务流的计费相关信息进行统计,并将计费统计信息通知计费服务器,使计费服务器能够对本地路由的业务流进行计费。In the embodiment of the present invention, the local routing execution entity is used to collect statistics on the charging-related information of the local routing service flow, and notifies the charging server of the charging statistical information, so that the charging server can charge the local routing service flow.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1是现有技术提供的WiMAX网络架构图;FIG. 1 is a WiMAX network architecture diagram provided by the prior art;

图2是现有技术提供的WiMAX网络中业务流的本地路由示意图;FIG. 2 is a schematic diagram of local routing of service flows in a WiMAX network provided by the prior art;

图3是本发明一实施例提供的本地路由业务的计费方法流程图;Fig. 3 is a flowchart of a charging method for a local routing service provided by an embodiment of the present invention;

图4是本发明另一实施例提供的本地路由业务的计费方法流程图;FIG. 4 is a flow chart of a charging method for a local routing service provided by another embodiment of the present invention;

图5是本发明一实施例提供的WiMAX网络中本地路由业务的计费方法流程图;5 is a flowchart of a charging method for local routing services in a WiMAX network according to an embodiment of the present invention;

图6是本发明另一实施例提供的WiMAX网络中本地路由业务的计费方法流程图;6 is a flow chart of a charging method for local routing services in a WiMAX network according to another embodiment of the present invention;

图7是本发明一实施例提供的3GPP网络中本地路由业务的计费方法流程图;FIG. 7 is a flowchart of a charging method for a local routing service in a 3GPP network according to an embodiment of the present invention;

图8是本发明实施例提供的本地路由执行实体的结构图;FIG. 8 is a structural diagram of a local routing execution entity provided by an embodiment of the present invention;

图9是本发明实施例提供的网络系统结构图。FIG. 9 is a structural diagram of a network system provided by an embodiment of the present invention.

具体实施方式Detailed ways

参阅图3,本发明实施例提供一种本地路由业务的计费方法,该方法包括:Referring to Fig. 3, an embodiment of the present invention provides a charging method for a local routing service, the method comprising:

301、本地路由执行实体对用户本地路由的业务流的计费相关信息进行统计,得到第一计费统计信息。301. The local routing execution entity collects statistics on the charging-related information of service flows of the user's local routing to obtain first charging statistical information.

其中,本地路由执行实体是指网络中执行业务流本地转发的网络实体,其可以位于WiMAX网络中的服务网关或基站或锚定接入网关中,也可以位于第三代合作伙伴计划(3rd Generation Partnership Project,3GPP)网络中的GPRS服务支持节点(Serving GPRS Support Node,SGSN)、服务网关、NodeB或演进型Node B(eNodeB)中。Among them, the local routing execution entity refers to the network entity that executes the local forwarding of service flows in the network, which can be located in the serving gateway or base station or anchor access gateway in the WiMAX network, or in the 3rd Generation Partnership Project (3rd Generation Partnership Project) Partnership Project, 3GPP) in the GPRS Serving Support Node (Serving GPRS Support Node, SGSN), Serving Gateway, NodeB or Evolved Node B (eNodeB) in the network.

其中,所述第一计费统计信息包括对用户本地路由的业务流的计费相关信息的统计结果,可选地其还包括本地路由指示或者计费标识,可选的,其还可以包括本地路由的业务流的ID;其中,对用户本地路由的业务流的计费相关信息的统计结果包括:用户本地路由的业务流的上行字节数和/或用户本地路由的业务流的下行字节数;或者,对用户本地路由的业务流的计费相关信息的统计结果包括:用户本地路由的业务流的上行报文数,和/或,用户本地路由的业务流的下行报文数,或者,对用户本地路由的业务流的计费相关信息的统计结果还可以包括:用户在本地路由进行的会话的持续时间。Wherein, the first charging statistical information includes the statistical results of charging-related information of the service flow of the user's local route. Optionally, it also includes a local routing indication or charging identifier. Optionally, it may also include a local The ID of the service flow of the route; wherein, the statistical results of the charging-related information of the service flow of the user's local route include: the number of upstream bytes of the service flow of the user's local route and/or the downstream bytes of the service flow of the user's local route or, the statistical results of the charging-related information of the service flow of the user's local route include: the number of uplink packets of the service flow of the user's local route, and/or the number of downlink packets of the service flow of the user's local route, or The statistical result of the charging-related information of the service flow of the user's local route may further include: the duration of the session conducted by the user on the local route.

当所述用户当前有非本地路由的业务流时,此时所述本地路由执行实体还可以对用户非本地路由的业务流的计费相关信息进行统计,得到第二计费统计信息;所述第二计费统计信息包括:对用户非本地路由的业务流的计费相关信息的统计结果,可选地其还包括非本地路由指示。其中,对用户非本地路由的业务流的计费相关信息的统计结果包括:用户非本地路由的业务流的上行字节数和/或用户非本地路由的业务流的下行字节数;或者,对用户非本地路由的业务流的计费相关信息的统计结果包括:用户非本地路由的业务流的上行报文数,和/或,用户非本地路由的业务流的下行报文数,或者,对用户非本地路由的业务流的计费相关信息的统计结果还可以包括:用户在非本地路由进行的会话的持续时间和计费延迟时间,计费延迟时间是指本地路由执行实体的计费时间点与发送第一计费统计信息的时间差,这样后续计费服务器收到第一计费统计信息之后就可以根据该计费延迟时间知道此次计费的时间点了。When the user currently has a non-locally routed service flow, the local routing execution entity may also perform statistics on the charging-related information of the user's non-locally routed service flow to obtain second charging statistical information; The second charging statistical information includes: a statistical result of charging-related information on the service flow of the user's non-local route, and optionally, it also includes a non-local routing indication. Wherein, the statistical results of the charging-related information of the user's non-locally routed service flow include: the number of uplink bytes of the user's non-locally routed service flow and/or the number of downlink bytes of the user's non-locally routed service flow; or, The statistical results of the charging-related information of the user's non-locally routed service flow include: the number of uplink packets of the user's non-locally routed service flow, and/or the number of downlink packets of the user's non-locally routed service flow, or, The statistical results of the charging-related information of the service flow of the user's non-local route may also include: the duration of the session conducted by the user on the non-local route and the charging delay time. The charging delay time refers to the charging of the local routing execution entity The time point is different from the time when the first charging statistical information is sent, so that the subsequent charging server can know the time point of this charging according to the charging delay time after receiving the first charging statistical information.

其中,所述第一计费统计信息可以包括对用户的一个或多个本地路由业务流的计费相关信息的统计结果,当第一计费统计信息包括多个本地路由业务流的计费相关信息的统计结果时,该第一计费统计信息需要包括本地路由的业务流的ID。这样,如果不同的业务流有不同的资费标准,则计费服务器收到第一计费统计信息之后,根据各业务流的ID和对相应业务流的计费相关信息的统计结果,对各业务流进行计费。同理,所述第二计费统计信息可以包括对用户的一个或多个非本地路由业务流的计费相关信息的统计结果,当第二计费统计信息包括多个非本地路由业务流的计费相关信息的统计结果时,该第二计费统计信息需要包括非本地路由业务流的ID。Wherein, the first charging statistical information may include statistical results of charging related information of one or more local routing service flows of the user, when the first charging statistical information includes charging related information of multiple local routing service flows When the statistical result of the information is collected, the first charging statistical information needs to include the ID of the service flow of the local route. In this way, if different service flows have different charging standards, after the charging server receives the first charging statistical information, according to the ID of each service flow and the statistical results of the charging-related information of the corresponding service flow, calculate the The flow is billed. Similarly, the second charging statistical information may include statistical results of charging-related information on one or more non-local routed service flows of the user, when the second charging statistical information includes multiple non-local routed service flows When the statistical result of the charging-related information is collected, the second charging statistical information needs to include the ID of the non-local routing service flow.

这样后续可以由该本地路由执行实体上报针对该用户的第一计费统计信息和第二计费统计信息,不需要锚定接入网关中的计费代理或者3GPP网络中分组数据网网关(Packet Data Network Gateway,PDN-GW)再对该用户的本地路由业务流的计费相关信息进行统计。In this way, the first charging statistical information and the second charging statistical information for the user can be reported by the local routing execution entity subsequently, without anchoring the charging proxy in the access gateway or the packet data network gateway (Packet data network gateway) in the 3GPP network. Data Network Gateway, PDN-GW) then collects statistics on the charging-related information of the user's local routing service flow.

302、发送第一计费统计信息,使计费服务器根据所述第一计费统计信息对本地路由的业务流进行计费。302. Send the first charging statistical information, so that the charging server charges the service flow of the local route according to the first charging statistical information.

如上所述,当所述用户当前有非本地路由的业务流时,所述本地路由执行实体还可以对用户非本地路由的业务流的计费相关信息进行统计,得到第二计费统计信息,则该步骤中本地路由执行实体也会发送第二计费统计信息。其中,本地路由执行实体可以通过一个计费信息更新请求消息发送第一计费统计信息和第二计费统计信息。As described above, when the user currently has a non-locally routed service flow, the local routing execution entity may also collect statistics on the charging-related information of the user's non-locally routed service flow to obtain second charging statistical information, Then in this step, the local routing execution entity will also send the second charging statistics information. Wherein, the local routing execution entity may send the first charging statistical information and the second charging statistical information through a charging information update request message.

可选的,在步骤301之前,本地路由执行实体获取计费上下文信息,其中,在WiMAX网络中,计费上下文信息可以包括上报时间间隔,剩余上报时间等,具体参见后续实施例的详细描述。该步骤中本地路由执行实体具体根据所述计费上下文信息,发送包括第一计费统计信息和第二计费统计信息的计费信息更新请求消息。具体的,本地路由执行实体可以直接向计费服务器发送计费信息更新请求消息;或者,本地路由执行实体通过计费代理向计费服务器发送计费信息更新请求消息;或者,本地路由执行实体通过计费客户端向计费服务器发送计费信息更新请求消息。在3GPP网络中,计费上下文信息包括计费服务器地址和本地路由的业务流对应的计费标识等,则该步骤中本地路由执行实体根据所述计费服务器地址,向计费服务器发送第一计费统计信息,第一计费统计信息包括:所述计费标识和对用户本地路由的业务流的计费相关信息的统计结果,其中计费标识用于表示该本地路由的业务流的计费模型,后续计费服务器根据计费标识,就可以知道采用什么费率对该业务流进行计费了。对于3GPP网络中,第一计费统计信息还可以包括本地路由指示。Optionally, beforestep 301, the local routing execution entity obtains the charging context information, wherein, in the WiMAX network, the charging context information may include reporting time interval, remaining reporting time, etc., refer to the detailed description of subsequent embodiments. In this step, the local routing execution entity sends a charging information update request message including the first charging statistical information and the second charging statistical information according to the charging context information. Specifically, the local routing execution entity may directly send a charging information update request message to the charging server; or, the local routing execution entity sends a charging information updating request message to the charging server through a charging proxy; or, the local routing execution entity sends a charging information updating request message through The charging client sends a charging information update request message to the charging server. In the 3GPP network, the charging context information includes the charging server address and the charging identification corresponding to the service flow of the local route, etc., then in this step, the local routing execution entity sends the first Charging statistical information, the first charging statistical information includes: the charging identifier and the statistical results of the charging-related information on the service flow of the user's local route, where the charging identifier is used to represent the accounting of the service flow of the local route According to the billing model, the subsequent billing server can know what billing rate is used to bill the service flow according to the billing identifier. For a 3GPP network, the first charging statistical information may also include a local routing indication.

其中,计费服务器指网络中负责对用户进行计费的网络实体,该计费服务器根据计费统计信息,知道用户使用了多少业务流,进而对用户进行计费。计费服务器可以是WiMAX网络中的AAA服务器,3GPP网络中的离线计费系统(Offline Charging System,OFCS)或计费网关功能实体(Charging GatewayFunctionality,CGF)等。在WiMAX网络中,计费服务器按照预设规则和本地路由执行实体对用户业务流的计费相关信息的统计结果,对本地路由业务流和非本地路由业务流采用不同的费率进行计费。预设规则规定了对本地路由业务流、非本地路由业务流所采用的费率等信息。在3GPP网络中,计费服务器根据计费统计信息中的计费标识和本地路由执行实体对用户业务流的计费相关信息的统计结果,采用相应的费率对业务流进行计费。Wherein, the billing server refers to a network entity responsible for billing users in the network, and the billing server knows how many service streams a user has used according to billing statistical information, and then bills the user. The charging server may be an AAA server in the WiMAX network, an offline charging system (Offline Charging System, OFCS) or a charging gateway functional entity (Charging Gateway Functionality, CGF) in the 3GPP network, etc. In the WiMAX network, the charging server uses different charging rates for the local routing service flow and the non-local routing service flow according to the preset rules and the statistical results of the charging related information of the user service flow by the local routing execution entity. The preset rules stipulate information such as rates adopted for local routed service flows and non-local routed service flows. In the 3GPP network, the charging server uses the corresponding charging rate to charge the service flow according to the charging identifier in the charging statistics information and the statistical result of the charging related information of the user service flow by the local routing execution entity.

本发明实施例采用本地路由执行实体对本地路由业务流的计费相关信息进行统计,并通知计费服务器,使计费服务器能够对本地路由的业务流进行计费。In the embodiment of the present invention, the local routing execution entity is used to collect statistics on the charging-related information of the local routing service flow, and notify the charging server, so that the charging server can charge the local routing service flow.

参阅图4,本发明另一实施例提供一种本地路由业务的计费方法,该方法适用于wimax网络,该方法具体包括:Referring to Fig. 4, another embodiment of the present invention provides a kind of billing method of local route service, and this method is applicable to wimax network, and this method specifically comprises:

401、当用户的一个或者多个业务流需要发生本地路由时,计费代理向本地路由执行实体发送计费上下文传递请求消息,该消息中包括用户的计费上下文信息。401. When one or more service flows of the user need to be routed locally, the charging proxy sends a charging context transfer request message to the local routing execution entity, where the message includes charging context information of the user.

其中,该计费上下文传递请求消息可以是路径注册应答消息Path_Reg_Rsp。Wherein, the charging context transfer request message may be a path registration response message Path_Reg_Rsp.

该用户的计费上下文信息包括:上报时间间隔、剩余上报时间等。其中,上报时间间隔表示每隔多少时间上报一次计费统计信息。剩余上报时间为距离下一次上报计费信息更新请求消息的时间,即表示本地路由执行实体收到计费上下文信息后,初次上报计费信息更新请求消息的时间。比如上报时间间隔为30s,由于可能在执行本地路由之前,该终端一直和外网中的终端进行通信,所以计费代理一直对终端传向外网的业务流的计费相关信息进行统计,比如统计该业务流的流量等,可能在上一次向计费服务器上报计费信息更新请求消息的20s后,该用户有执行本地路由的业务流,此时的剩余上报时间即为10s,表示本地路由执行实体10s后初次上报携带计费统计信息的计费信息更新请求消息,以后就按照30s的时间间隔进行上报。The charging context information of the user includes: reporting time interval, remaining reporting time, and the like. Wherein, the reporting interval indicates how often the charging statistics information is reported. The remaining reporting time is the time until the next reporting of the charging information updating request message, that is, the time when the local routing execution entity reports the charging information updating request message for the first time after receiving the charging context information. For example, the reporting interval is 30s. Since the terminal may have been communicating with the terminal in the external network before local routing is executed, the billing agent has been collecting statistics on the charging-related information of the service flow transmitted from the terminal to the external network, such as To count the traffic of this service flow, etc., it may be 20s after reporting the charging information update request message to the accounting server last time, the user has a service flow that executes local routing, and the remaining reporting time at this time is 10s, indicating that the local routing The executing entity reports the charging information update request message carrying the charging statistical information for the first time after 10s, and then reports at intervals of 30s.

其中,计费代理检测本地路由的方法可以通过现有技术实现,如通过对业务流的目的IP地址进行判断,或通过接收到对该业务流本地路由的成功授权指示等进行判断,不影响本发明的实现。Among them, the method for the billing agent to detect the local route can be realized by existing technologies, such as by judging the destination IP address of the service flow, or by receiving a successful authorization indication for the local route of the service flow, etc., without affecting the realization of the invention.

402、本地路由执行实体接收到计费上下文传递请求消息后,开始对用户的业务流的计费相关信息进行统计。402. After receiving the charging context transfer request message, the local routing execution entity starts to collect statistics on the charging-related information of the service flow of the user.

具体的,当用户有非本地路由业务流时,该步骤中,本地路由执行实体可以仅对用户的本地路由业务流的计费相关信息进行统计,得到第一计费统计信息,对用户的非本地路由业务流不进行统计,该用户的非本地路由业务流还是由计费代理进行计费相关信息的统计;或者,本地路由执行实体不仅对用户的本地路由业务流的计费相关信息进行统计,得到第一计费统计信息,还对用户的非本地路由业务流的计费相关信息进行统计,得到第二计费统计信息,这样就不需要计费代理再对该用户的非本地路由业务流的计费相关信息进行统计了。其中,第一计费统计信息包括:对用户的本地路由业务流的计费相关信息的统计结果,可选的,其还可以包括本地路由指示,其还可以包括本地路由的业务流的ID。其中,第二计费统计信息包括:对用户的非本地路由业务流的计费相关信息的统计结果,可选的,其还可以包括非本地路由指示,其还可以包括非本地路由的业务流的ID。需要说明的是,如果本地路由执行实体对用户的本地路由业务流和非本地路由业务流的计费相关信息都进行统计了,则第一计费统计信息中一定包括本地路由指示,第二计费统计信息中一定包括非本地路由指示。Specifically, when the user has a non-local routing service flow, in this step, the local routing execution entity may only collect statistics on the charging-related information of the user's local routing service flow to obtain the first charging statistical information, and calculate the user's non-local routing service flow. The local routing service flow does not carry out statistics, and the non-local routing service flow of the user is still counted by the charging agent; or, the local routing execution entity not only collects statistics on the charging related information of the user's local routing service flow , get the first billing statistical information, and also count the billing-related information of the user's non-local routing service flow to obtain the second billing statistical information, so that there is no need for the billing agent to further the user's non-local routing service The billing-related information of the flow is collected. Wherein, the first charging statistical information includes: statistical results of charging-related information of the user's local routing service flow, and optionally, it may also include a local routing indication, which may also include the ID of the local routing service flow. Wherein, the second charging statistical information includes: the statistical result of the charging related information of the user's non-local routing service flow, optionally, it may also include a non-local routing indication, and it may also include the non-local routing service flow ID. It should be noted that if the local routing execution entity collects statistics on the charging-related information of the user's local routing service flow and non-local routing service flow, the first charging statistical information must include the local routing indication, and the second accounting The non-local routing indication must be included in the fee statistics.

其中,第一计费统计信息可以包括对用户的一个或多个本地路由业务流的计费相关信息的统计结果,当第一计费统计信息包括多个本地路由业务流的计费相关信息的统计结果时,该第一计费统计信息需要包括本地路由的业务流的ID。这样,如果不同的业务流有不同的资费标准,则计费服务器收到第一计费统计信息之后,根据各业务流的ID和对相应业务流的计费相关信息的统计结果,对各业务流进行计费。同理,所述第二计费统计信息可以包括对用户的一个或多个非本地路由业务流的计费相关信息的统计结果,当第二计费统计信息包括多个非本地路由业务流的计费相关信息的统计结果时,该第二计费统计信息需要包括非本地路由业务流的ID。Wherein, the first charging statistical information may include statistical results of charging related information of one or more local routing service flows of the user, when the first charging statistical information includes charging related information of multiple local routing service flows When collecting results, the first charging statistics information needs to include the ID of the service flow of the local route. In this way, if different service flows have different charging standards, after the charging server receives the first charging statistical information, according to the ID of each service flow and the statistical results of the charging-related information of the corresponding service flow, calculate the The flow is billed. Similarly, the second charging statistical information may include statistical results of charging-related information on one or more non-local routed service flows of the user, when the second charging statistical information includes multiple non-local routed service flows When the statistical result of the charging-related information is collected, the second charging statistical information needs to include the ID of the non-local routing service flow.

403、本地路由执行实体向计费代理发送计费上下文传递应答消息。403. The local routing execution entity sends a charging context transfer response message to the charging proxy.

其中,计费上下文传递应答消息可以是路径注册确认消息Path_Reg_Ack。Wherein, the charging context transfer reply message may be a path registration confirmation message Path_Reg_Ack.

该步骤为可选步骤,且可以在步骤402之前执行或者与步骤402同时执行。This step is optional and can be performed before step 402 or simultaneously with step 402 .

404、计费代理向计费服务器发送计费信息更新请求消息,将当前时间间隔内非本地路由业务流的计费统计信息发送给计费服务器。404. The charging agent sends a charging information update request message to the charging server, and sends the charging statistical information of the non-local routing service flow in the current time interval to the charging server.

其中,该步骤中的计费信息更新请求消息可以是流量更新消息Bulk_Interim_Update。Wherein, the charging information update request message in this step may be a traffic update message Bulk_Interim_Update.

该步骤为可选步骤。当步骤402中本地路由执行实体对该用户的非本地路由业务流的计费相关信息也进行统计时,则后续计费代理不再对该用户的业务流的计费相关信息进行统计了,也将不再针对该用户上报计费信息更新请求消息。This step is optional. When the local routing execution entity in step 402 also collects statistics on the charging-related information of the user's non-local routing service flow, the subsequent charging agent no longer performs statistics on the charging-related information of the user's service flow, and also The charging information update request message will no longer be reported for the user.

405、计费服务器返回计费信息更新应答消息给计费代理。405. The charging server returns a charging information update response message to the charging proxy.

其中,计费信息更新应答消息可以是流量更新确认消息Bulk_Interim_Update_Ack。Wherein, the charging information update response message may be a traffic update confirmation message Bulk_Interim_Update_Ack.

该步骤为可选步骤。This step is optional.

406、本地路由执行实体根据计费上下文信息,定期向计费服务器发送计费信息更新请求消息。406. The local routing execution entity periodically sends a charging information update request message to the charging server according to the charging context information.

该步骤中,本地路由执行实体根据上报时间间隔、剩余上报时间等向计费服务器发送计费信息更新请求消息。假定剩余上报时间为10s,上报时间间隔为30s,则该本地路由执行实体在10s后第一次向计费服务器发送该用户的计费信息更新请求消息,以后每隔30s发送一次。In this step, the local routing execution entity sends a charging information update request message to the charging server according to the reporting time interval, the remaining reporting time, and the like. Assuming that the remaining reporting time is 10s and the reporting interval is 30s, the local routing execution entity sends the charging information update request message of the user to the charging server for the first time after 10s, and sends it every 30s thereafter.

当本地路由执行实体对该用户的所有业务流的计费相关信息进行统计时,该计费信息更新请求消息可以包括:第一计费统计信息和第二计费统计信息。当本地路由执行实体仅对该用户的本地路由业务流的计费相关信息进行统计时,该计费信息更新请求消息仅包括:第一计费统计信息。其中,该计费信息更新请求消息可以由本地路由执行实体通过计费代理转发给计费服务器。When the local routing execution entity collects statistics on charging-related information of all service flows of the user, the charging information update request message may include: first charging statistical information and second charging statistical information. When the local routing execution entity only collects statistics on the charging related information of the user's local routing service flow, the charging information update request message only includes: the first charging statistical information. Wherein, the charging information update request message may be forwarded by the local routing execution entity to the charging server through the charging agent.

其中,该步骤中本地路由执行实体可以直接向计费服务器发送计费信息更新请求消息,或者通过计费客户端发送计费信息更新请求,具体的,本地路由执行实体向计费客户端发送携带计费统计信息的流量更新消息Bulk_Interim_Update,然后计费客户端向计费服务器发送携带计费统计信息的计费请求消息Accounting Request;或者,本地路由执行实体通过计费代理向计费服务器发送计费信息更新请求,具体的,本地路由执行实体向计费代理发送携带计费统计信息的流量更新消息Bulk_Interim_pdate,然后由计费代理向计费服务器发送该计费统计信息;或者,本地路由执行实体通过计费代理、计费客户端向计费服务器发送计费信息更新请求,具体的,本地路由执行实体向计费代理发送携带计费统计信息的流量更新消息Bulk_Interim_Update,然后计费代理将携带计费统计信息的流量更新消息Bulk_Interim_Update上报给计费客户端,然后计费客户端向计费服务器发送携带上述计费统计信息的计费请求消息Accounting Request。Wherein, in this step, the local routing execution entity may directly send a charging information update request message to the charging server, or send a charging information updating request message through the charging client. Specifically, the local routing execution entity sends a message carrying The flow update message Bulk_Interim_Update of the accounting statistics information, and then the accounting client sends the accounting request message Accounting Request carrying the accounting statistics information to the accounting server; or, the local routing execution entity sends the accounting request message to the accounting server through the accounting proxy Information update request, specifically, the local routing execution entity sends a traffic update message Bulk_Interim_pdate carrying charging statistics information to the charging agent, and then the charging agent sends the charging statistics information to the charging server; or, the local routing execution entity passes The billing proxy and the billing client send billing information update requests to the billing server. Specifically, the local routing execution entity sends a traffic update message Bulk_Interim_Update carrying billing statistical information to the billing proxy, and then the billing proxy carries the billing The traffic update message Bulk_Interim_Update of statistical information is reported to the accounting client, and then the accounting client sends an accounting request message Accounting Request carrying the above accounting statistical information to the accounting server.

407、计费服务器返回计费信息更新应答消息给本地路由执行实体,并实现对本地路由业务流的计费。407. The charging server returns a charging information update response message to the local routing execution entity, and implements charging of the local routing service flow.

具体的,计费服务器按照预设规则,根据第一计费统计信息中的本地路由指示,确定该第一计费统计信息中的统计结果为对本地路由业务流的计费统计结果,根据该第一计费统计信息,按照预设规则中的本地路由业务流的资费,对本地路由业务流进行计费,当第一计费统计信息中包括对多个本地路由业务流的计费相关信息的统计结果和本地路由业务流的ID时,根据预设规则中的各本地路由业务流的资费,对各本地路由业务流进行计费;根据第二计费统计信息中的非本地路由指示,确定该第二计费统计信息中的统计结果为对非本地路由业务流的计费统计结果,根据该第二计费统计信息,按照预设规则中的非本地路由业务流的资费,对该用户的非本地路由业务流进行计费,当第二计费统计信息中包括对多个非本地路由业务流的计费相关信息的统计结果和非本地路由业务流的ID时,根据预设规则中的各非本地路由业务流的资费,对各非本地路由业务流进行计费。Specifically, the charging server determines that the statistical result in the first charging statistical information is the charging statistical result of the local routing service flow according to the local routing indication in the first charging statistical information according to the preset rules, and according to the The first charging statistical information is to charge the local routing service flow according to the tariff of the local routing service flow in the preset rules, when the first charging statistical information includes charging related information for multiple local routing service flows According to the statistical results of the statistics and the ID of the local routing service flow, each local routing service flow is charged according to the tariff of each local routing service flow in the preset rule; according to the non-local routing indication in the second charging statistical information, Determining that the statistical result in the second charging statistical information is the charging statistical result of the non-local routing service flow, according to the second charging statistical information, according to the tariff of the non-local routing service flow in the preset rule, charge the non-local routing service flow The non-local routing service flow of the user is charged, and when the second charging statistical information includes the statistical results of the charging-related information of multiple non-local routing service flows and the ID of the non-local routing service flow, according to the preset rule Charges for each non-local routing service flow in the network, and charge for each non-local routing service flow.

其中,该计费信息更新应答消息可以直接发送给本地路由执行实体,也可以通过计费代理转发给本地路由执行实体。Wherein, the charging information update response message may be sent directly to the local routing execution entity, or may be forwarded to the local routing execution entity through the charging agent.

本发明实施例采用本地路由执行实体对本地路由业务流的计费相关信息进行统计,并直接通知或者通过计费代理通知计费服务器,使计费服务器能够对本地路由的业务流进行计费。The embodiment of the present invention uses the local routing execution entity to collect statistics on the charging-related information of the local routing service flow, and notifies the charging server directly or through the charging agent, so that the charging server can charge the local routing service flow.

为使本发明提供的技术方案更加清楚明白,如下实施例将对本发明提供的技术方案进行详细技术。In order to make the technical solution provided by the present invention clearer, the following examples will describe the technical solution provided by the present invention in detail.

图5示出了本发明一实施例提供的本地路由业务的计费方法,该方法中本地路由执行实体位于WiMAX网络中的服务网关上,计费代理位于锚定接入网关上,服务网关直接将计费统计信息发送给计费客户端,然后由计费客户端上报给计费服务器,该实施例中计费服务器是AAA服务器,该方法具体包括:Figure 5 shows a charging method for local routing services provided by an embodiment of the present invention. In this method, the local routing execution entity is located on the serving gateway in the WiMAX network, the charging agent is located on the anchor access gateway, and the serving gateway directly The billing statistics information is sent to the billing client, and then reported to the billing server by the billing client. In this embodiment, the billing server is an AAA server. The method specifically includes:

501、终端向基站发送动态业务流增加请求消息DSA-REQ,以请求建立用于传输业务流的无线承载。501. The terminal sends a dynamic service flow increase request message DSA-REQ to the base station, so as to request establishment of a radio bearer for transmitting service flows.

其中,该业务流增加请求消息中包括业务流信息,比如业务流IP五元组等,其中,业务流IP五元组包括源IP地址、目的IP地址、源端口号、目的端口号和协议类型。Wherein, the service flow increase request message includes service flow information, such as service flow IP quintuple, etc., wherein the service flow IP quintuple includes source IP address, destination IP address, source port number, destination port number and protocol type .

502、基站向终端发送动态业务流增加接收消息DSA-RVD,该消息表示基站已经收到该动态业务流增加请求消息。502. The base station sends a dynamic service flow increase reception message DSA-RVD to the terminal, and the message indicates that the base station has received the dynamic service flow increase request message.

503、基站向服务网关发送路径注册请求消息Path_Reg_Req,以请求建立用于传输业务流的网络承载,该消息中包括业务流的IP五元组信息。503. The base station sends a path registration request message Path_Reg_Req to the serving gateway to request establishment of a network bearer for transmitting the service flow, and the message includes IP quintuple information of the service flow.

504、服务网关向锚定接入网关发送路径注册请求消息Path_Reg_Req,以请求建立用于传输业务流的网络承载。504. The serving gateway sends a path registration request message Path_Reg_Req to the anchor access gateway, so as to request establishment of a network bearer for transmitting the service flow.

505、锚定接入网关根据业务流的IP五元组信息,判断得到与该终端通信的对端也位于该服务网关下,可以对该业务流执行本地路由,锚定接入网关向锚定业务流授权实体(Anchor Service Flow Authorization,AnchorSFA)发送资源保留请求消息RR_Req,该资源保留请求消息中可以包括执行本地路由的指示信息。505. According to the IP quintuple information of the service flow, the anchor access gateway determines that the opposite end communicating with the terminal is also located under the service gateway, and can perform local routing on the service flow, and the anchor access gateway sends the anchor A service flow authorization entity (Anchor Service Flow Authorization, AnchorSFA) sends a resource reservation request message RR_Req, and the resource reservation request message may include instruction information for performing local routing.

506、锚定业务流授权实体根据用户的签约信息、运营商的策略及业务信息等,确定用户请求传输的业务流的带宽、时延等QoS信息,锚定业务流授权实体向锚定接入网关返回资源保留应答消息RR_Rsp,该消息中包括该业务流的QoS信息。506. The anchor service flow authorization entity determines the QoS information such as the bandwidth and delay of the service flow requested by the user according to the user's subscription information, the operator's policy, and service information, and the anchor service flow authorization entity accesses the service flow to the anchor The gateway returns a resource reservation response message RR_Rsp, which includes the QoS information of the service flow.

可选的,如果资源保留请求消息中包括执行本地路由的指示信息,则在该步骤中,锚定业务流授权实体根据用户的签约信息、运营商的策略及业务信息等,确定是否允许该业务流执行本地路由,并在资源保留应答消息中携带表示是否允许该业务流执行本地路由的指示信息。Optionally, if the resource reservation request message includes instructions to execute local routing, then in this step, the anchor service flow authorization entity determines whether to allow the service according to the user's subscription information, operator's policy and service information, etc. The flow performs local routing, and carries indication information indicating whether to allow the service flow to perform local routing in the resource reservation response message.

507、锚定接入网关向服务网关发送路径注册应答消息Path_Reg_Rsp,该路径注册应答消息包括计费上下文信息,其中,计费上下文信息可以包括上报时间间隔,剩余上报时间等,该计费上下文信息中还可以包括本地路由计费指示。507. The anchor access gateway sends a path registration response message Path_Reg_Rsp to the service gateway. The path registration response message includes charging context information, where the charging context information may include reporting time interval, remaining reporting time, etc., the charging context information may also include a local route charging indication.

其中,上报时间间隔表示每隔多少时间上报一次计费统计信息。剩余上报时间为距离下一次上报流量更新消息的时间,该实施例中表示服务网关收到计费上下文信息后,初次上报流量更新消息的时间。比如上报时间间隔为30s,由于可能在执行本地路由之前,该终端一直和外网中的终端进行通信,所以锚定接入网关中的计费代理一直对终端传向外网的业务流的计费相关信息进行统计,比如统计该业务流的流量等,可能在上一次向计费服务器上报流量更新消息的20s后,该用户有执行本地路由的业务流,此时的剩余上报时间即为10s,表示服务网关10s后初次上报携带计费统计信息的流量更新消息,以后就按照30s的时间间隔进行上报。Wherein, the reporting interval indicates how often the charging statistics information is reported. The remaining reporting time is the time until the next reporting of the traffic update message, which in this embodiment indicates the time when the serving gateway first reports the traffic update message after receiving the charging context information. For example, the reporting interval is 30s. Since the terminal may have been communicating with the terminal on the external network before local routing is executed, the billing agent in the anchor access gateway has been calculating the service flow transmitted from the terminal to the external network. It is possible that 20s after the last traffic update message was reported to the billing server, the user has a service flow that performs local routing, and the remaining reporting time at this time is 10s. , indicating that the service gateway reports the traffic update message carrying the charging statistics information for the first time after 10s, and then reports at intervals of 30s.

508、服务网关接收到计费上下文信息后,开始对用户的业务流的计费相关信息进行统计,以得到计费统计信息。服务网关向基站发送路径注册应答消息Path_Reg_Rsp。508. After receiving the charging context information, the service gateway starts to collect statistics on the charging-related information of the service flow of the user, so as to obtain the charging statistics information. The serving gateway sends a path registration response message Path_Reg_Rsp to the base station.

当用户有非本地路由业务流时,该步骤中,服务网关可以仅对用户的本地路由业务流的计费相关信息进行统计,得到第一计费统计信息,对用户的非本地路由业务流不进行统计,该用户的非本地路由业务流还是由计费代理进行计费相关信息的统计;或者,服务网关不仅对用户的本地路由业务流的计费相关信息进行统计,得到第一计费统计信息,还对用户的非本地路由业务流的计费相关信息进行统计,得到第二计费统计信息,这样就不需要锚定接入网关中的计费代理再对该用户的非本地路由业务流的计费相关信息进行统计了。其中,第一计费统计信息和第二计费统计信息请参见步骤402中的相关描述,在此不再赘述。When the user has a non-local routing service flow, in this step, the service gateway can only collect statistics on the charging-related information of the user's local routing service flow to obtain the first charging statistical information, and do not count the user's non-local routing service flow. For statistics, the non-local routing service flow of the user is still counted by the charging agent for charging-related information; or, the service gateway not only performs statistics on the charging-related information of the user's local routing service flow, but also obtains the first charging statistics Information, also counts the charging-related information of the user's non-local routing service flow, and obtains the second charging statistical information, so that there is no need to anchor the charging agent in the access gateway to further the user's non-local routing service The billing-related information of the flow is collected. For the first billing statistical information and the second billing statistical information, please refer to the related description in step 402, which will not be repeated here.

其中,业务流的计费相关信息可以包括:业务报文数、业务报文的字节数等。The charging-related information of the service flow may include: the number of service packets, the number of bytes of the service packets, and the like.

509、基站完成空口资源分配,向终端发送动态业务流增加应答消息DSA-RSP。509. The base station completes air interface resource allocation, and sends a dynamic service flow increase response message DSA-RSP to the terminal.

510、终端向基站发送动态业务流增加确认消息DSA-ACK,表示完成空口业务流承载建立。510. The terminal sends a dynamic service flow addition acknowledgment message DSA-ACK to the base station, indicating that the establishment of the air interface service flow bearer is completed.

511、基站向服务网关发送路径注册确认消息Path_Reg_Ack。511. The base station sends a path registration acknowledgment message Path_Reg_Ack to the serving gateway.

512、服务网关向锚定接入网关发送路径注册确认消息Path_Reg_Ack,表示完成网络侧业务流承载建立。512. The serving gateway sends a path registration acknowledgment message Path_Reg_Ack to the anchor access gateway, indicating that the service flow bearer establishment on the network side is completed.

513、锚定接入网关向锚定业务流授权实体发送资源保留确认消息RR_Ack,以通知锚定业务流授权实体业务流的无线承载已建立。513. The anchor access gateway sends a resource reservation confirmation message RR_Ack to the anchor service flow authorization entity to notify the anchor service flow authorization entity that the radio bearer of the service flow has been established.

514、锚定接入网关发送流量更新消息Bulk_Interim_Update到计费客户端,该消息中携带新的计费代理的标识(即服务网关的标识)。514. The anchor access gateway sends a traffic update message Bulk_Interim_Update to the charging client, and the message carries the identifier of the new charging agent (that is, the identifier of the serving gateway).

当服务网关不仅对用户的本地路由业务流的计费相关信息进行统计,还对用户的非本地路由业务流的计费相关信息进行统计时,则流量更新消息中携带该新的计费代理的标识用于通知计费客户端,计费代理已经发生迁移,后续由服务网关做计费代理。When the service gateway not only collects statistics on the charging-related information of the user's local routing service flow, but also collects statistics on the charging-related information of the user's non-local routing service flow, the traffic update message carries the new charging agent's The identifier is used to notify the billing client that the billing proxy has been migrated, and the service gateway will then act as the billing proxy.

如果当服务网关只对用户的本地路由业务流的计费相关信息进行统计时,则流量更新消息中携带该新的计费代理的标识用于通知计费客户端有新的计费代理加入。If the service gateway only collects statistics on the charging-related information of the user's local routing service flow, the flow update message carries the identity of the new charging agent to notify the charging client that a new charging agent has joined.

515、计费客户端向锚定接入网关发送流量更新确认消息Bulk_Interim_Update_Ack。515. The charging client sends a traffic update confirmation message Bulk_Interim_Update_Ack to the anchor access gateway.

516、服务网关根据计费上下文信息,定期向计费客户端发送流量更新消息Bulk_Interim_Update,该流量更新消息中包括计费统计信息。516. The service gateway periodically sends a traffic update message Bulk_Interim_Update to the charging client according to the charging context information, and the traffic update message includes charging statistical information.

该步骤中,服务网关根据上报时间间隔、剩余上报时间等向计费客户端发送流量更新消息。假定剩余上报时间为10s,上报时间间隔为30s,则该服务网关在10s后第一次向计费客户端发送流量更新消息,以后每隔30s发送一次。In this step, the service gateway sends a traffic update message to the charging client according to the reporting time interval, remaining reporting time, and the like. Assuming that the remaining reporting time is 10s and the reporting interval is 30s, the service gateway sends the traffic update message to the billing client for the first time after 10s, and then sends it every 30s.

当服务网关对该用户的所有业务流的计费相关信息进行统计时,该流量更新消息可以包括:第一计费统计信息和第二计费统计信息;当服务网关仅对用户的本地路由业务流的计费相关信息进行统计时,则该流量更新消息包括第一计费统计信息。When the service gateway collects statistics on the charging-related information of all service flows of the user, the traffic update message may include: the first charging statistical information and the second charging statistical information; When the charging-related information of the flow is counted, the traffic update message includes the first charging statistical information.

517、计费客户端向服务网关发送流量更新确认消息Bulk_Interim_Update_Ack。517. The charging client sends a traffic update confirmation message Bulk_Interim_Update_Ack to the service gateway.

518、计费客户端向AAA服务器发送计费请求消息AccountingRequest,该计费请求消息中携带上述计费统计信息。518. The accounting client sends an accounting request message AccountingRequest to the AAA server, where the accounting request message carries the foregoing accounting statistics information.

519、AAA服务器根据计费统计信息,完成对用户的一次计费,并向计费客户端返回计费接受消息Accounting Accept。519. The AAA server completes one-time accounting for the user according to the accounting statistics information, and returns an accounting acceptance message Accounting Accept to the accounting client.

具体的,AAA服务器如何对用户进行计费具体参见步骤407的相关描述,在此不再赘述。Specifically, for how the AAA server charges the user, please refer to the related description of step 407, which will not be repeated here.

本发明实施例在用户的业务流发生本地路由时,服务网关获取用户计费上下文,并对业务流的计费相关信息进行统计,并上报计费统计信息,使得计费服务器能够根据计费统计信息对本地路由业务实现计费统计和话单生成。In the embodiment of the present invention, when the user's service flow is routed locally, the service gateway obtains the user's charging context, and collects statistics on the charging-related information of the service flow, and reports the charging statistical information, so that the charging server can The information realizes billing statistics and bill generation for local routing services.

图6示出了本发明另一实施例提供的本地路由业务的计费方法,该方法中本地路由执行实体位于WiMAX网络中的基站上,计费代理位于锚定接入网关上,基站将本地路由业务流的计费统计信息发送给位于锚定接入网关的计费代理,由计费代理发送给计费客户端,然后由计费客户端上报给计费服务器,该实施例中计费服务器是AAA服务器,该方法具体包括:6 shows a charging method for local routing services provided by another embodiment of the present invention. In this method, the local routing execution entity is located on the base station in the WiMAX network, the charging agent is located on the anchor access gateway, and the base station The billing statistical information of the routed service flow is sent to the billing agent located at the anchor access gateway, which is sent to the billing client by the billing agent, and then reported to the billing server by the billing client. In this embodiment, the billing The server is an AAA server, and the method specifically includes:

601-607与501-507相同,在此不再赘述。601-607 are the same as 501-507 and will not be repeated here.

608、服务网关向基站发送路径注册应答消息Path_Reg_Rsp,该消息中包括计费上下文信息。608. The serving gateway sends a path registration response message Path_Reg_Rsp to the base station, where the message includes charging context information.

609、基站完成空口资源分配,向终端发送动态业务流增加应答消息DSA-RSP。609. The base station completes air interface resource allocation, and sends a dynamic service flow increase response message DSA-RSP to the terminal.

610、终端向基站发送动态业务流增加确认消息DSA-ACK,表示完成空口业务流承载建立。610. The terminal sends a dynamic service flow addition acknowledgment message DSA-ACK to the base station, indicating that the establishment of the air interface service flow bearer is completed.

611、基站可以开始对用户的业务流的计费相关信息进行统计,以得到计费统计信息。基站向服务网关发送路径注册确认消息Path_Reg_Ack。611. The base station may start to collect statistics on charging-related information of service flows of users, so as to obtain charging statistical information. The base station sends a path registration acknowledgment message Path_Reg_Ack to the serving gateway.

当用户有非本地路由业务流时,该步骤中,基站可以仅对用户的本地路由业务流的计费相关信息进行统计,得到第一计费统计信息,对用户的非本地路由业务流不进行统计,该用户的非本地路由业务流还是由计费代理进行计费相关信息的统计;或者,基站不仅对用户的本地路由业务流的计费相关信息进行统计,得到第一计费统计信息,还对用户的非本地路由业务流的计费相关信息进行统计,得到第二计费统计信息,这样就不需要锚定接入网关中的计费代理再对该用户的非本地路由业务流的计费相关信息进行统计了。When the user has a non-local routing service flow, in this step, the base station can only collect statistics on the charging-related information of the user's local routing service flow to obtain the first charging statistical information, and do not perform statistics on the user's non-local routing service flow. statistics, the user’s non-local routing service flow is still counted by the charging agent for charging-related information; or, the base station not only performs statistics on the charging-related information of the user’s local routing service flow to obtain the first charging statistical information, The charging-related information of the user's non-local routing service flow is also counted to obtain the second charging statistical information, so that there is no need to anchor the charging agent in the access gateway to the user's non-local routing service flow. Billing-related information is collected.

612、服务网关向锚定接入网关发送路径注册确认消息Path_Reg_Ack,表示完成网络侧业务流承载建立。612. The serving gateway sends a path registration acknowledgment message Path_Reg_Ack to the anchor access gateway, indicating that the service flow bearer establishment on the network side is completed.

613、锚定接入网关向锚定业务流授权实体发送资源保留确认消息RR_Ack,以通知锚定业务流授权实体业务流的承载已建立。613. The anchor access gateway sends a resource reservation confirmation message RR_Ack to the anchor service flow authorization entity to notify the anchor service flow authorization entity that the bearer of the service flow has been established.

614、基站根据计费上下文信息,定期向锚定接入网关发送流量更新消息Bulk_Interim_Update,该流量更新消息中携带计费统计信息;该消息可以通过服务网关转发给锚定接入网关。614. The base station periodically sends a traffic update message Bulk_Interim_Update to the anchor access gateway according to the charging context information, and the traffic update message carries charging statistics information; the message may be forwarded to the anchor access gateway through the serving gateway.

该步骤中,基站根据上报时间间隔、剩余上报时间等发送流量更新消息。假定剩余上报时间为10s,上报时间间隔为30s,则该基站在10s后第一次发送流量更新消息,以后每隔30s发送一次。In this step, the base station sends a traffic update message according to the reporting time interval, the remaining reporting time, and the like. Assuming that the remaining reporting time is 10s and the reporting interval is 30s, the base station sends the traffic update message for the first time after 10s, and then sends it every 30s.

当基站对该用户的所有业务流的计费相关信息进行统计时,该流量更新消息可以包括:第一计费统计信息和第二计费统计信息。当基站对该用户的本地路由业务流的计费相关信息进行统计时,该流量更新消息包括:第一计费统计信息。When the base station collects statistics on charging-related information of all service flows of the user, the flow update message may include: first charging statistical information and second charging statistical information. When the base station collects statistics on the charging-related information of the user's local routing service flow, the traffic update message includes: first charging statistical information.

615、锚定接入网关中的计费代理通过服务网关向基站发送流量更新确认消息Bulk_Interim_Update_Ack。615. The charging proxy in the anchor access gateway sends a traffic update confirmation message Bulk_Interim_Update_Ack to the base station through the serving gateway.

616、锚定接入网关中的计费代理将携带计费统计信息的流量更新消息Bulk_Interim_Update上报给计费客户端。616. The charging agent in the anchor access gateway reports the traffic update message Bulk_Interim_Update carrying the charging statistical information to the charging client.

617、计费客户端向锚定接入网关中的计费代理发送流量更新确认消息Bulk_Interim_Update_Ack。617. The charging client sends a traffic update acknowledgment message Bulk_Interim_Update_Ack to the charging proxy in the anchor access gateway.

618、计费客户端向AAA服务器发送计费请求消息AccountingRequest,该计费请求消息中携带上述计费统计信息。618. The accounting client sends an accounting request message AccountingRequest to the AAA server, where the accounting request message carries the foregoing accounting statistics information.

619、AAA服务器根据计费统计信息,完成对用户的一次计费,并向计费客户端返回计费接受消息Accounting Accept。619. The AAA server completes one billing for the user according to the billing statistics information, and returns an billing acceptance message Accounting Accept to the billing client.

具体的,AAA服务器如何对用户进行计费具体参见步骤407的相关描述,在此不再赘述。Specifically, for how the AAA server charges the user, please refer to the related description of step 407, which will not be repeated here.

本发明实施例在用户的业务流发生本地路由时,基站获取用户计费上下文,并对业务流的计费相关信息进行统计,并上报计费统计信息,使得计费服务器能够根据计费统计信息对本地路由业务实现计费统计和话单生成。In the embodiment of the present invention, when the user's service flow is routed locally, the base station obtains the user's charging context, collects statistics on the charging-related information of the service flow, and reports the charging statistical information, so that the charging server can Realize billing statistics and bill generation for local routing services.

图7示出了本发明又一实施例提供的本地路由业务的计费方法,该方法中本地路由执行实体位于3GPP服务网关,在本地路由发生前,分组数据网网关(Packet Data Network Gateway,PDN-GW)执行计费信息统计功能,本地路由发生后,由服务网关对用户的本地路由的业务流的计费相关信息进行统计,服务网关直接将计费统计信息发送给计费网关功能实体(Charging Gateway Function,CGF),该方法具体包括:Fig. 7 shows the charging method of the local routing service provided by another embodiment of the present invention, in which the local routing execution entity is located at the 3GPP service gateway, and before the local routing occurs, the packet data network gateway (Packet Data Network Gateway, PDN -GW) executes the charging information statistics function. After the local routing occurs, the service gateway performs statistics on the charging related information of the service flow of the user's local routing, and the service gateway directly sends the charging statistical information to the charging gateway functional entity ( Charging Gateway Function, CGF), the method specifically includes:

701、终端向分组数据网网关发送创建PDP上下文请求消息,该创建PDP上下文请求消息包括业务流信息,比如业务流IP五元组等,其中,业务流IP五元组包括源IP地址、目的IP地址、源端口号、目的端口号和协议类型。701. The terminal sends a create PDP context request message to the packet data network gateway, the create PDP context request message includes service flow information, such as service flow IP quintuple, etc., wherein the service flow IP quintuple includes source IP address, destination IP Address, source port number, destination port number and protocol type.

702、PDN-GW根据业务流IP五元组,判断得到与该终端通信的对端与该终端位于同一服务网关下,可以对该业务流执行本地路由,通过创建PDP上下文应答消息将用户的计费上下文信息通知服务网关。702. According to the IP quintuple of the service flow, the PDN-GW determines that the opposite end communicating with the terminal is located under the same service gateway as the terminal, and can perform local routing on the service flow. By creating a PDP context response message, the user's computing The service gateway is notified of the fee context information.

其中,计费上下文信息可以包括计费标识、计费网关功能实体地址等,其中,计费标识表示业务流的计费模型,该计费上下文信息中还可以包括本地路由计费指示。The charging context information may include a charging identifier, an address of a charging gateway functional entity, etc., wherein the charging identifier indicates a charging model of a service flow, and the charging context information may also include a local route charging indication.

需要说明的是,如果网络配置成由服务网关对用户的所有业务流的计费相关信息进行统计,则该步骤中的计费上下文信息就包括该用户的各业务流对应的计费标识;如果网络配置成由服务网关仅对用户的本地路由业务流的计费相关信息进行统计,则该步骤中的计费上下文信息包括本地路由业务流对应的计费标识就可以了。It should be noted that if the network is configured such that the service gateway collects statistics on the charging-related information of all service flows of the user, the charging context information in this step includes the charging identifier corresponding to each service flow of the user; if If the network is configured such that the service gateway only collects statistics on the charging-related information of the user's local routed service flow, it is sufficient that the charging context information in this step includes the corresponding charging identifier of the local routed service flow.

703、服务网关接收到计费上下文信息后,开始对用户的业务流的计费相关信息进行统计,根据计费上下文信息中的计费网关功能实体地址,将计费统计信息通过数据记录传递请求消息Data Record Transfer Request上报给CGF。其中,计费统计信息包括:对用户的业务流的计费相关信息的统计结果和该业务流的计费标识。703. After receiving the charging context information, the service gateway starts to count the charging-related information of the user's service flow, and transmits the charging statistical information through the data record according to the charging gateway functional entity address in the charging context information The message Data Record Transfer Request is reported to CGF. Wherein, the charging statistical information includes: the statistical result of the charging-related information of the service flow of the user and the charging identification of the service flow.

当用户有非本地路由业务流时,该步骤中,服务网关可以仅对用户的本地路由业务流的计费相关信息进行统计,得到第一计费统计信息,对用户的非本地路由业务流不进行统计,该用户的非本地路由业务流还是由计费代理进行计费相关信息的统计;或者,服务网关不仅对用户的本地路由业务流的计费相关信息进行统计,得到第一计费统计信息,还对用户的非本地路由业务流的计费相关信息进行统计,得到第二计费统计信息,这样就不需要PDNGW再对该用户的非本地路由业务流的计费相关信息进行统计了。When the user has a non-local routing service flow, in this step, the service gateway can only collect statistics on the charging-related information of the user's local routing service flow to obtain the first charging statistical information, and do not count the user's non-local routing service flow. For statistics, the non-local routing service flow of the user is still counted by the charging agent for charging-related information; or, the service gateway not only performs statistics on the charging-related information of the user's local routing service flow, but also obtains the first charging statistics Information, also counts the charging-related information of the user's non-local routing service flow to obtain the second charging statistical information, so that there is no need for the PDNGW to make statistics on the charging-related information of the user's non-local routing service flow .

当服务网关对该用户的所有业务流的计费相关信息进行统计时,该数据记录传递请求消息Data Record Transfer Request可以包括:第一计费统计信息和第二计费统计信息;第一计费统计信息包括:本地路由的业务流对应的计费标识和对本地路由的业务流的计费相关信息的统计结果;第二计费统计信息包括:非本地路由的业务流对应的计费标识和对非本地路由的业务流的计费相关信息的统计结果。当服务网关仅对该用户的本地路由业务流的计费相关信息进行统计时,该数据记录传递请求消息Data Record Transfer Request仅包括:第一计费统计信息。When the service gateway makes statistics on the charging-related information of all business flows of the user, the data record transfer request message Data Record Transfer Request may include: the first charging statistical information and the second charging statistical information; the first charging The statistical information includes: the charging identifier corresponding to the service flow of the local route and the statistical result of the charging related information of the service flow of the local route; the second charging statistical information includes: the charging identifier corresponding to the service flow of the non-local route and Statistical results of charging-related information on non-locally routed service flows. When the service gateway only collects statistics on the charging-related information of the user's local routing service flow, the data record transfer request message Data Record Transfer Request only includes: the first charging statistical information.

其中,第一计费统计信息可以包括对用户的一个或多个本地路由业务流的计费相关信息的统计结果,所述第二计费统计信息可以包括对用户的一个或多个非本地路由业务流的计费相关信息的统计结果。Wherein, the first charging statistical information may include statistical results of charging-related information of one or more local routing service flows of the user, and the second charging statistical information may include one or more non-local routing service flows of the user Statistical results of charging-related information of service flows.

704、CGF根据计费统计信息,完成对用户的一次计费,并向服务网关返回数据记录传递响应消息Data Record Transfer Response消息。704. The CGF completes one billing for the user according to the billing statistical information, and returns a data record transfer response message Data Record Transfer Response message to the service gateway.

具体的,CGF根据计费统计信息中业务流对应的计费标识,采用该计费标识对应的资费对相应的业务流进行计费;具体的,根据第一计费统计信息中的本地路由的业务流对应的计费标识,采用该计费标识对应的资费和对本地路由的业务流的计费相关信息的统计结果,对本地路由业务流进行计费;根据第二计费统计信息中的非本地路由的业务流对应的计费标识,采用该计费标识对应的资费和对非本地路由的业务流的计费相关信息的统计结果,对非本地路由业务流进行计费。Specifically, the CGF uses the tariff corresponding to the charging identifier to charge the corresponding service flow according to the charging identifier corresponding to the service flow in the charging statistical information; specifically, according to the local route in the first charging statistical information The charging identifier corresponding to the service flow, using the tariff corresponding to the charging identifier and the statistical results of the charging-related information on the local routing service flow, to charge the local routing service flow; according to the second charging statistics The charging identifier corresponding to the non-locally routed service flow is used to charge the non-locally routed service flow by using the tariff corresponding to the charging identifier and the statistical results of charging-related information on the non-locally routed service flow.

本发明实施例在用户的业务流发生本地路由时,3GPP网络中的服务网关获取用户计费上下文,对业务流的计费相关信息进行统计,并上报计费统计信息,使得计费服务器能够根据计费统计信息对本地路由业务实现计费统计和话单生成。In the embodiment of the present invention, when the user's service flow is routed locally, the service gateway in the 3GPP network obtains the user's charging context, performs statistics on the charging-related information of the service flow, and reports the charging statistical information, so that the charging server can Billing statistical information implements billing statistics and bill generation for local routing services.

参阅图8,本发明实施例提供一种本地路由执行实体,该实体可以位于WiMAX网络中的基站或者服务网关或者锚定接入网关中,或者,该实体位于3GPP网络中的服务网关中,该实体包括:Referring to FIG. 8 , an embodiment of the present invention provides a local routing execution entity. This entity may be located in a base station or a serving gateway or an anchor access gateway in a WiMAX network, or the entity may be located in a serving gateway in a 3GPP network. Entities include:

本地路由业务流信息统计单元801,用于对用户本地路由的业务流的计费相关信息进行统计,得到第一计费统计信息;其中,第一计费统计信息包括本地路由业务流信息统计单元801对用户本地路由的业务流的计费相关信息的统计结果,第一计费统计信息还可以包括本地路由指示。The local routing service flow information statistics unit 801 is configured to collect statistics on the charging-related information of the user's local routing service flow to obtain first charging statistical information; wherein, the first charging statistical information includes the local routing service flow information statistical unit 801 For the statistical result of the charging-related information of the service flow of the user's local route, the first charging statistical information may also include a local routing indication.

发送单元802,用于发送所述第一计费统计信息,使计费服务器根据所述第一计费统计信息对本地路由的业务流进行计费。The sending unit 802 is configured to send the first charging statistical information, so that the charging server charges the service flow of the local route according to the first charging statistical information.

该实体还包括:非本地路由业务流信息统计单元803,用于对用户非本地路由的业务流的计费相关信息进行统计,得到第二计费统计信息;具体的,发送单元802具体用于发送包括第一计费统计信息和第二计费统计信息的计费信息更新请求消息;其中,所述第一计费统计信息包括本地路由指示和对用户本地路由的业务流的计费相关信息的统计结果;所述第二计费统计信息包括:非本地路由指示和对用户非本地路由的业务流的计费相关信息的统计结果。The entity also includes: a non-local routing service flow information statistics unit 803, configured to collect statistics on the charging-related information of the user's non-local routing service flow to obtain second charging statistical information; specifically, the sending unit 802 is specifically used to Sending a charging information update request message including first charging statistical information and second charging statistical information; wherein, the first charging statistical information includes a local routing indication and charging-related information on service flows of the user's local routing Statistical results; the second charging statistical information includes: non-local routing indications and statistical results of charging-related information on service flows of non-local routes for users.

为了获取计费上下文信息,该本地路由执行实体还包括:上下文获取单元804,用于获取计费上下文信息;具体的,发送单元802,用于根据所述计费上下文信息,发送第一计费统计信息。在WiMAX网络中,计费上下文信息包括:上报时间间隔;该发送单元802具体用于根据所述计费上下文信息中的上报时间间隔,定期发送所述第一计费统计信息;在3GPP网络中,计费上下文信息包括计费服务器地址和本地路由的业务流对应的计费标识;发送单元802具体用于根据所述计费服务器地址,向所述计费服务器发送所述第一计费统计信息,所述第一计费统计信息包括:所述计费标识和对用户本地路由的业务流的计费相关信息的统计结果。In order to obtain the charging context information, the local routing execution entity further includes: a context obtaining unit 804, configured to obtain the charging context information; specifically, a sending unit 802, configured to send the first charging context information according to the charging context information. Statistics. In a WiMAX network, the charging context information includes: a reporting time interval; the sending unit 802 is specifically configured to periodically send the first charging statistical information according to the reporting time interval in the charging context information; in a 3GPP network , the charging context information includes the charging server address and the charging identifier corresponding to the service flow of the local route; the sending unit 802 is specifically configured to send the first charging statistics to the charging server according to the charging server address Information, the first charging statistical information includes: the charging identifier and statistical results of charging-related information on the service flow of the user's local route.

如果非本地路由业务流信息统计单元803对用户非本地路由的业务流的计费相关信息进行统计了,则该发送单元802具体发送包括第一计费统计信息和第二计费统计信息的计费信息更新请求消息。具体的,其可以直接向所述计费服务器发送所述计费信息更新请求消息;或者,通过计费代理向计费服务器发送所述计费信息更新请求消息;或者,通过计费客户端向计费服务器发送所述计费信息更新请求消息。If the non-local routing service flow information statistics unit 803 counts the charging-related information of the user's non-local routing service flow, the sending unit 802 specifically sends the statistics including the first charging statistical information and the second charging statistical information. fee information update request message. Specifically, it may directly send the charging information update request message to the charging server; or, send the charging information updating request message to the charging server through a charging agent; or send the charging information updating request message to the charging server through a charging client. The charging server sends the charging information update request message.

本发明实施例采用本地路由执行实体对本地路由业务流的计费相关信息进行统计,并通知计费服务器,使计费服务器能够对本地路由的业务流进行计费。In the embodiment of the present invention, the local routing execution entity is used to collect statistics on the charging-related information of the local routing service flow, and notify the charging server, so that the charging server can charge the local routing service flow.

参阅图9,本发明实施例提供一种网络系统,该系统包括:Referring to FIG. 9, an embodiment of the present invention provides a network system, which includes:

本地路由执行实体901,用于对用户本地路由的业务流的计费相关信息进行统计,得到第一计费统计信息,发送第一计费统计信息;其中,第一计费统计信息包括本地路由执行实体对用户本地路由的业务流的计费相关信息的统计结果,第一计费统计信息还可以包括本地路由指示。The localrouting execution entity 901 is configured to collect statistics on the charging-related information of the service flow of the user's local routing, obtain the first charging statistical information, and send the first charging statistical information; wherein, the first charging statistical information includes the local routing The executive entity performs the statistical results of the charging-related information of the service flow of the user's local route, and the first charging statistical information may also include a local routing indication.

计费服务器902,用于接收所述第一计费统计信息,根据所述第一计费统计信息对本地路由的业务流进行计费。The chargingserver 902 is configured to receive the first charging statistical information, and charge the service flow of the local route according to the first charging statistical information.

其中,所述第一计费统计信息包括本地路由指示和对用户本地路由的业务流的计费相关信息的统计结果;为了由同一个实体对该用户的计费相关信息进行统计,不再需要计费代理对该用户的非本地路由业务流进行统计,则该本地路由执行实体901,还用于对用户非本地路由的业务流的计费相关信息进行统计,得到第二计费统计信息;所述第二计费统计信息包括:非本地路由指示和对用户非本地路由的业务流的计费相关信息的统计结果;计费服务器902,还用于接收第二计费统计信息,根据所述第二计费统计信息对非本地路由的业务流进行计费。Wherein, the first charging statistical information includes the local routing indication and the statistical result of the charging related information of the service flow of the user's local route; in order for the same entity to count the charging related information of the user, no The charging agent collects statistics on the user's non-local routing service flow, and the localrouting execution entity 901 is also used to collect statistics on the charging-related information of the user's non-local routing service flow to obtain second charging statistical information; The second charging statistical information includes: non-local routing indication and statistical results of charging-related information on the service flow of the user's non-local routing; the chargingserver 902 is also used to receive the second charging statistical information, according to the The second charging statistical information is used to charge the service flow of the non-local route.

其中,本地路由执行实体901和计费服务器902的具体功能和消息的传递方式参见方法实施例部分的详细描述,在此不再赘述。Wherein, for the specific functions of the localrouting execution entity 901 and the chargingserver 902 and the message delivery manner, refer to the detailed description of the method embodiment, and will not be repeated here.

本发明实施例采用本地路由执行实体对本地路由业务流的计费相关信息进行统计,并通知计费服务器,使计费服务器能够对本地路由的业务流进行计费。In the embodiment of the present invention, the local routing execution entity is used to collect statistics on the charging-related information of the local routing service flow, and notify the charging server, so that the charging server can charge the local routing service flow.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,例如只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the methods of the above embodiments can be implemented through a program to instruct related hardware, and the program can be stored in a computer-readable storage medium, such as a read-only memory, Disk or CD, etc.

以上对本发明实施例所提供的本地路由业务的计费方法、装置及网络系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The charging method, device and network system for the local routing service provided by the embodiment of the present invention have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiment is only used To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation of the invention.

Claims (7)

Translated fromChinese
1.一种本地路由业务的计费方法,其特征在于,包括:1. A charging method for local routing services, characterized in that, comprising:本地路由执行实体获取计费上下文信息;The local routing execution entity obtains the charging context information;本地路由执行实体对用户本地路由的业务流的计费相关信息进行统计,得到第一计费统计信息;The local routing execution entity performs statistics on the charging-related information of the service flow of the user's local routing to obtain the first charging statistical information;所述本地路由执行实体根据所述计费上下文信息,发送所述第一计费统计信息,使计费服务器根据所述第一计费统计信息对本地路由的业务流进行计费;The local routing execution entity sends the first charging statistical information according to the charging context information, so that the charging server charges the service flow of the local route according to the first charging statistical information;其中,所述计费上下文信息包括上报时间间隔,则所述本地路由执行实体根据所述计费上下文信息,发送所述第一计费统计信息,具体包括:Wherein, the charging context information includes a reporting time interval, and the local routing execution entity sends the first charging statistical information according to the charging context information, specifically including:所述本地路由执行实体根据所述计费上下文信息中的上报时间间隔,定期发送所述第一计费统计信息;所述第一计费统计信息包括:对用户本地路由的业务流的计费相关信息的统计结果,或者,所述第一计费统计信息包括:本地路由指示和对用户本地路由的业务流的计费相关信息的统计结果;The local routing execution entity periodically sends the first charging statistical information according to the reporting time interval in the charging context information; the first charging statistical information includes: charging for the service flow of the user's local route A statistical result of related information, or, the first charging statistical information includes: a local routing indication and a statistical result of charging related information of the service flow of the user's local route;或者,or,所述计费上下文信息包括计费服务器地址和本地路由的业务流对应的计费标识,则所述本地路由执行实体根据所述计费上下文信息,发送所述第一计费统计信息,具体包括;The charging context information includes the charging server address and the charging identifier corresponding to the service flow of the local route, and the local routing execution entity sends the first charging statistical information according to the charging context information, specifically including ;所述本地路由执行实体根据所述计费服务器地址,向所述计费服务器发送所述第一计费统计信息,所述第一计费统计信息包括:所述计费标识和对用户本地路由的业务流的计费相关信息的统计结果。The local routing execution entity sends the first charging statistical information to the charging server according to the charging server address, and the first charging statistical information includes: the charging identifier and the local routing information for the user Statistical results of charging-related information of service flows.2.根据权利要求1所述的方法,其特征在于,2. The method of claim 1, wherein,所述本地路由执行实体获取计费上下文信息具体为:The local routing execution entity obtains the charging context information specifically as follows:所述本地路由执行实体从计费代理获取计费上下文信息;The local routing execution entity obtains the charging context information from the charging proxy;或者,or,所述本地路由执行实体从分组数据网网关获取计费上下文信息。The local routing execution entity obtains the charging context information from the packet data network gateway.3.根据权利要求1所述的方法,其特征在于,3. The method of claim 1, wherein,发送所述第一计费统计信息具体为:Sending the first charging statistics information is specifically:本地路由执行实体直接向所述计费服务器发送所述第一计费统计信息;The local routing execution entity directly sends the first charging statistics information to the charging server;或者,or,本地路由执行实体通过计费代理向计费服务器发送所述第一计费统计信息;The local routing execution entity sends the first charging statistics information to the charging server through the charging agent;或者,or,本地路由执行实体通过计费客户端向计费服务器发送所述第一计费统计信息。The local routing execution entity sends the first charging statistics information to the charging server through the charging client.4.根据权利要求1-3任一项所述的方法,其特征在于,4. The method according to any one of claims 1-3, characterized in that,该方法还包括:所述本地路由执行实体对用户非本地路由的业务流的计费相关信息进行统计,得到第二计费统计信息;所述第二计费统计信息包括:非本地路由指示和对用户非本地路由的业务流的计费相关信息的统计结果;发送所述第二计费统计信息。The method further includes: the local routing execution entity collects statistics on the charging-related information of the service flow of the user's non-local route to obtain second charging statistical information; the second charging statistical information includes: non-local routing indication and Statistical results of the charging-related information of the service flow of the user's non-local route; sending the second charging statistical information.5.一种本地路由执行实体,其特征在于,包括:5. A local routing execution entity, characterized in that it comprises:上下文获取单元,用于获取计费上下文信息;本地路由业务流信息统计单元,用于对用户本地路由的业务流的计费相关信息进行统计,得到第一计费统计信息;The context obtaining unit is used to obtain the charging context information; the local routing service flow information statistics unit is used to perform statistics on the charging related information of the service flow of the user's local routing, and obtain the first charging statistical information;发送单元,用于根据所述计费上下文信息,发送所述第一计费统计信息,使计费服务器根据所述第一计费统计信息对本地路由的业务流进行计费;A sending unit, configured to send the first charging statistical information according to the charging context information, so that the charging server charges the service flow of the local route according to the first charging statistical information;所述计费上下文信息包括:上报时间间隔,则所述发送单元,用于根据所述计费上下文信息,发送所述第一计费统计信息,具体包括:所述发送单元,用于根据所述计费上下文信息中的上报时间间隔,定期发送所述第一计费统计信息;所述第一计费统计信息包括:对用户本地路由的业务流的计费相关信息的统计结果,或者,所述第一计费统计信息包括:本地路由指示和对用户本地路由的业务流的计费相关信息的统计结果;The charging context information includes: a reporting time interval, and the sending unit is configured to send the first charging statistical information according to the charging context information, and specifically includes: the sending unit is configured to send the first charging statistical information according to the charging context information. The reporting time interval in the charging context information, and periodically sending the first charging statistical information; the first charging statistical information includes: statistical results of charging-related information on the service flow of the user's local route, or, The first charging statistical information includes: a local routing indication and a statistical result of charging-related information on the service flow of the user's local routing;或者,or,所述计费上下文信息包括计费服务器地址和本地路由的业务流对应的计费标识,则所述发送单元,用于根据所述计费上下文信息,发送所述第一计费统计信息,具体包括:The charging context information includes the charging server address and the charging identifier corresponding to the service flow of the local route, and the sending unit is configured to send the first charging statistical information according to the charging context information, specifically include:所述发送单元,用于根据所述计费服务器地址,向所述计费服务器发送所述第一计费统计信息,所述第一计费统计信息包括:所述计费标识和对用户本地路由的业务流的计费相关信息的统计结果。The sending unit is configured to send the first charging statistical information to the charging server according to the charging server address, where the first charging statistical information includes: the charging identifier and the user local Statistical results of charging-related information of routed service flows.6.根据权利要求5所述的本地路由执行实体,其特征在于,6. The local routing execution entity according to claim 5, characterized in that,该本地路由执行实体还包括:The local routing execution entity also includes:非本地路由业务流信息统计单元,用于对用户非本地路由的业务流的计费相关信息进行统计,得到第二计费统计信息;The non-local routing service flow information statistics unit is used to perform statistics on the charging-related information of the user's non-local routing service flow to obtain second charging statistical information;所述发送单元,用于发送包括第一计费统计信息和第二计费统计信息的计费信息更新请求消息;其中,所述第二计费统计信息包括:非本地路由指示和对用户非本地路由的业务流的计费相关信息的统计结果。The sending unit is configured to send a charging information update request message including first charging statistical information and second charging statistical information; wherein the second charging statistical information includes: non-local route indication and non-local routing information for users The statistical result of the charging-related information of the service flow of the local route.7.一种网络系统,其特征在于,包括:权利要求5或6任一本地路由执行实体和用于接收第一计费统计信息,并根据所述第一计费统计信息对本地路由的业务流进行计费的计费服务器。7. A network system, characterized in that it comprises: any local routing execution entity according to claim 5 or 6, and is used for receiving the first charging statistical information, and performing local routing service according to the first charging statistical information Accounting server for streaming.
CN201080006014.4A2010-08-302010-08-30 Charging method, device and network system for local routing serviceActiveCN102439902B (en)

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
PCT/CN2010/076467WO2011110006A1 (en)2010-08-302010-08-30Charging method, apparatus and network system for local routing bussiness

Publications (2)

Publication NumberPublication Date
CN102439902A CN102439902A (en)2012-05-02
CN102439902Btrue CN102439902B (en)2014-04-02

Family

ID=44562835

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201080006014.4AActiveCN102439902B (en)2010-08-302010-08-30 Charging method, device and network system for local routing service

Country Status (2)

CountryLink
CN (1)CN102439902B (en)
WO (1)WO2011110006A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2018035867A1 (en)*2016-08-262018-03-01华为技术有限公司Charging method and apparatus
CN110234084B (en)*2019-05-162020-06-19中国联合网络通信集团有限公司 A user access method, PGW-C and core network

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1798041A (en)*2004-12-222006-07-05华为技术有限公司Charging method in communication system
CN101277202A (en)*2007-03-292008-10-01华为技术有限公司 Billing method and billing system
WO2010014088A1 (en)*2008-07-302010-02-04Lucent Technologies Inc.Online charging for sessions that are transferred between network domains
WO2010083443A1 (en)*2009-01-152010-07-22Starent Networks, CorpGateway relocation in communication networks

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN100344096C (en)*2004-12-222007-10-17华为技术有限公司Charging method in communication system
US8155620B2 (en)*2007-06-132012-04-10Qualcomm IncorporatedMethod and apparatus for accounting in a mobile data packet network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1798041A (en)*2004-12-222006-07-05华为技术有限公司Charging method in communication system
CN101277202A (en)*2007-03-292008-10-01华为技术有限公司 Billing method and billing system
WO2010014088A1 (en)*2008-07-302010-02-04Lucent Technologies Inc.Online charging for sessions that are transferred between network domains
WO2010083443A1 (en)*2009-01-152010-07-22Starent Networks, CorpGateway relocation in communication networks

Also Published As

Publication numberPublication date
CN102439902A (en)2012-05-02
WO2011110006A1 (en)2011-09-15

Similar Documents

PublicationPublication DateTitle
JP4828608B2 (en) Billing method, billing system, billing client and billing processing means
CN110971419B (en)Charging session management method and device
KR101728265B1 (en)Method for charging for application, and charging device and system
CN101431423B (en)Reduction method and apparatus for user service flow accounting
WO2014000260A1 (en)Qos processing method, application server, qos control network element and mobile network
WO2010108356A1 (en)Charging method, system and reporting method for terminal accessing through multiple access networks
CN110634057B (en) Billing method, device and system
CN110740430B (en) Resource charging method and system, AF, and policy and charging functional entity
WO2011137644A1 (en)Method, apparatus and system for accessing service by terminal
WO2011047589A1 (en)Method and apparatus for establishing network connection, method and system for making policy and charging control (pcc) strategy
WO2013091410A1 (en)Network access method, system and device
WO2013060170A1 (en)Method and device for providing charging support based on lipa bearer
WO2007051413A1 (en)An accounting method and an accounting system thereof
WO2014094488A1 (en)Charging policy method and device for roaming local service
CN101420361A (en)Method, terminal, server and customer terminal for terminating session
CN102439902B (en) Charging method, device and network system for local routing service
CN108011725A (en) A strategy control method, device and system
WO2014000301A1 (en)Method and gateway for gateway billing
WO2010066157A1 (en)Charging method, charging device, charging gateway and charging system
CN100426724C (en)Charging method according to content service
CN104105082B (en)Accounting policy information generation method and strategy formulate functional entity with charging
WO2008061477A1 (en)A system and charging control method of network fuse policy charging control structure
WO2013113263A1 (en)Method and system for identifying application detection control function mode
WO2008089681A1 (en)Method and system for charging in communication system
WO2011127666A1 (en)Processing methode, device and system for charging

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp