WO2011110006A1 - Charging method, apparatus and network system for local routing bussiness - Google Patents

Charging method, apparatus and network system for local routing bussiness Download PDF

Info

Publication number
WO2011110006A1
WO2011110006A1 PCT/CN2010/076467 CN2010076467W WO2011110006A1 WO 2011110006 A1 WO2011110006 A1 WO 2011110006A1 CN 2010076467 W CN2010076467 W CN 2010076467W WO 2011110006 A1 WO2011110006 A1 WO 2011110006A1
Authority
WO
WIPO (PCT)
Prior art keywords
charging
information
service flow
statistics
local routing
Prior art date
Application number
PCT/CN2010/076467
Other languages
French (fr)
Chinese (zh)
Inventor
倪慧
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201080006014.4A priority Critical patent/CN102439902B/en
Priority to PCT/CN2010/076467 priority patent/WO2011110006A1/en
Publication of WO2011110006A1 publication Critical patent/WO2011110006A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/58Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP based on statistics of usage or network monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a charging method, device, and network system for a local routing service.
  • the uplink packet sent by the terminal is transmitted to the serving gateway through the base station, and then transmitted to the anchor access by the serving gateway.
  • the gateway is finally transmitted to the external network via the Home Agent (HA).
  • the downlink packet is routed to the terminal through the bearer path in the reverse direction.
  • the Accounting Agent is located at the Anchor GW.
  • the accounting agent performs charging statistics based on the traffic flow of the user, such as the upper and lower statistics traffic. Traffic, number of service packets, and more.
  • the charging proxy periodically sends the accounting statistics to the charging client through the R4 interface, and the charging client notifies the accounting authorization information to the Authentication Authorization ⁇ Accounting AAA server, so as to implement the user's
  • the charging of the service flow wherein the solid line in FIG. 1 is the service flow transmission path, and the broken line in FIG. 1 is the charging statistical information transmission path.
  • the serving gateway can send the packets sent by the source terminal directly to the destination terminal through the local routing technology (as shown by the thick solid line in Figure 2). ), thereby achieving the purpose of reducing the packet transmission delay and reducing the transmission load of the core network.
  • the local route in Figure 2 is done at the services gateway.
  • the local route can also be implemented at the base station or the anchor access gateway.
  • the operator also needs to perform charging.
  • the traffic accounting of the local route may adopt different charging models or rates.
  • charging information statistics are performed on a user service flow by an accounting agent located at an anchor access gateway.
  • an accounting agent located at an anchor access gateway.
  • the traffic accounting packet does not pass through the anchor access gateway.
  • the existing accounting architecture cannot perform accounting information statistics on the part of the service flow.
  • the embodiments of the present invention provide a charging method, a device, and a network system for a local routing service, which can implement charging for a local routing service.
  • a charging method for a local routing service including:
  • the local routing execution entity performs statistics on the charging related information of the service flow of the local route of the user, and obtains the first charging statistical information
  • a local routing execution entity including:
  • the local routing service flow information statistics unit is configured to perform statistics on the charging related information of the service flow that is locally routed by the user, to obtain the first charging statistical information;
  • a sending unit configured to send the first charging statistics, so that the charging server charges the locally routed service flow according to the first charging statistical information.
  • a network system comprising: the local routing execution entity and a charging server for receiving first charging statistics, and charging a locally routed service flow according to the first charging statistical information.
  • the local routing execution entity performs statistics on the charging related information of the local routing service flow, and notifies the accounting server of the accounting statistics, so that the charging server can perform charging on the locally routed service flow.
  • FIG. 1 is a schematic diagram of a WiMAX network architecture provided by the prior art
  • 2 is a schematic diagram of a local route of a service flow in a WiMAX network provided by the prior art
  • FIG. 3 is a flowchart of a method for charging a local route service according to an embodiment of the present invention
  • FIG. 4 is a flow chart of a charging method for a local routing service according to another embodiment of the present invention
  • FIG. 5 is a flow chart of a charging method for a local routing service in a WiMAX network according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a charging method of a local routing service in a WiMAX network according to another embodiment of the present invention.
  • FIG. 7 is a flow chart of a charging method of a local routing service in a 3GPP network according to an embodiment of the present invention.
  • FIG. 8 is a structural diagram of a local route execution entity according to an embodiment of the present invention.
  • FIG. 9 is a structural diagram of a network system according to an embodiment of the present invention.
  • an embodiment of the present invention provides a charging method for a local routing service, where the method includes:
  • the local routing execution entity performs statistics on the charging related information of the service flow of the local route of the user, and obtains the first charging statistical information.
  • the local routing execution entity refers to a network entity that performs local forwarding of service flows in the network, and may be located in a serving gateway or a base station or an anchor access gateway in the WiMAX network, or may be located in a third generation partnership plan (3rd Generation).
  • 3rd Generation 3rd Generation
  • SGSN GPRS Service Support Node
  • eNodeB Evolved Node B
  • the first charging statistic information includes a statistic result of the charging related information of the service flow that is locally routed by the user, and optionally includes a local routing indication or a charging identifier, optionally, which may also include local
  • the ID of the service flow of the route; the statistics of the traffic-related information of the service flow that is locally routed by the user include: the number of uplink bytes of the service flow of the user local route and/or the downlink byte of the service flow of the user local route Or the number of the uplink information of the service flow of the local route of the user, and/or the number of downlink packets of the service flow of the local route of the user, or
  • the statistical result of the charging related information of the service flow that is locally routed by the user may further include: a duration of the session performed by the user in the local route, and a charging delay time,
  • the billing delay time is the time difference between the time point at which the local route executing entity collects the billing related information and the first billing statistics information, so that the subsequent billing server can receive
  • the local route execution entity may also perform statistics on the charging related information of the service flow that is not locally routed by the user, to obtain second charging statistics information.
  • the second charging statistics information includes: a statistical result of the charging related information of the service flow that is not locally routed by the user, and optionally includes a non-local routing indication.
  • the statistics of the charging related information of the service flow that is not locally routed by the user include: the number of uplink bytes of the service flow that is not locally routed by the user and/or the number of downlink bytes of the service flow that is not locally routed by the user; or
  • the statistics of the accounting related information of the service flow that is not locally routed by the user include: the number of uplink packets of the service flow that is not locally routed by the user, and/or the number of downlink packets of the service flow that is not locally routed by the user, or
  • the statistics of the charging related information of the service flow that is not locally routed by the user may also include: the duration of the session performed by the user in the non-local route and the charging delay time, and the charging delay time refers to the statistics of the local routing executing entity.
  • the first charging statistic information may include a statistic result of charging related information of one or more local routing service flows of the user, where the first charging statistic information includes charging related to multiple local routing service flows.
  • 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 tariff standards, after the accounting server receives the first charging statistical information, according to the statistics of the ID of each service flow and the charging related information of the corresponding service flow, each service is used. The flow is billed.
  • the second charging statistics information may include statistics results of charging related information of one or more non-local routing service flows of the user, where the second charging statistics information includes multiple non-local routing service flows.
  • the second charging statistical information needs to include the ID of the non-local routing service flow. And the second charging statistics, do not need to anchor the charging proxy in the access gateway or the Packet Data Network Gateway (PDN-GW) in the 3GPP network and then calculate the local routing service flow of the user. Statistics related to the fee. 302. Send the first charging statistics, so that the charging server performs charging on the locally routed service flow according to the first charging statistical information.
  • PDN-GW Packet Data Network Gateway
  • the local route execution entity may also perform statistics on the charging related information of the service flow that is not locally routed by the user, and obtain the second charging statistics information. Then, the local routing execution entity also sends the second charging statistics in this step.
  • the local routing execution entity may send the first charging statistical information and the second charging statistical information by using a charging information update request message.
  • the local routing execution entity obtains the charging context information, where, in the WiMAX network, the charging context information may include a reporting interval, a remaining reporting time, and the like.
  • the charging context information may include a reporting interval, a remaining reporting time, and the like.
  • 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.
  • the local routing execution entity may directly send the charging information update request message to the charging server; or the local routing executing entity sends the charging information update request message to the charging server through the charging proxy; or, the local routing executing entity passes
  • the charging client sends a charging information update request message to the charging server.
  • 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 to the charging server according to the charging server address in this step.
  • the billing statistics information includes: the billing identifier and a statistical result of the billing related information of the service flow locally routed by the user, where the billing identifier is used to indicate the service flow of the local route.
  • the fee model, the subsequent billing server, according to the billing identifier can know what rate is used to charge the service stream.
  • the first charging statistics may also include a local routing indication.
  • the accounting server refers to a network entity in the network that is responsible for charging the user.
  • the accounting server knows how many service flows are used by the user according to the charging statistics, and then charges the user.
  • the accounting server may be an AAA server in a WiMAX network, an Offline Charging System (OFCS) or a Charging Gateway Functionality (CGF) in a 3GPP network.
  • OFCS Offline Charging System
  • CGF Charging Gateway Functionality
  • the accounting server performs the accounting result of the charging related information of the user service flow according to the preset rule and the local routing, and uses the different rates for the local routing service flow and the non-local routing service flow to perform charging.
  • Pre-set rules stipulate the local routing industry Information such as the rate used by the service flow and non-local routing service flows.
  • the accounting server performs charging on the service flow according to the charging result in the charging statistical information and the statistical result of the charging related information of the local service execution entity to the user service flow.
  • the embodiment of the present invention uses the local routing execution entity to perform statistics on the charging related information of the local routing service flow, and notifies the charging server, so that the charging server can refer to the traffic flow of the local routing.
  • FIG. 4 another implementation of the present invention An example provides a charging method for a local routing service, where the method is applicable to a wimax network, and the method specifically includes:
  • the charging proxy sends a charging context delivery request message to the local routing execution entity, where the message includes the user's charging context information.
  • the charging context delivery request message may be a path registration response message.
  • the charging context information of the user includes: a reporting interval, a remaining reporting time, and the like.
  • the reporting interval indicates that the accounting statistics are reported once every other time.
  • the remaining reporting time is the time when the charging information update request message is reported next time, that is, the time when the local routing executing entity receives the charging context information and reports the charging information update request message for the first time.
  • the reporting interval is 30 s. Because the terminal may communicate with the terminal in the external network before the local routing is performed, the charging proxy always collects statistics on the charging related information of the service flow transmitted by the terminal to the external network. The traffic of the service flow is counted, and the service flow of the local route may be 10s after the last time the accounting information update request message is reported to the accounting server. The remaining reporting time is 10s, indicating the local route. After the execution entity 10s, the accounting information update request message carrying the accounting statistics information is reported for the first time, and then reported in the time interval of 30s.
  • the method for detecting the local route by the charging agent can be implemented by using the prior art, for example, by determining the destination IP address of the service flow, or by receiving a successful authorization indication of the local route of the service flow, etc., without affecting the present Implementation of the invention.
  • the local routing execution entity After receiving the charging context delivery request message, the local routing execution entity starts to collect statistics about the charging related information of the service flow of the user. Specifically, when the user has a non-local routing service flow, in this step, the local routing execution entity may perform statistics only on the charging related information of the local routing service flow of the user, and obtain the first charging statistical information, which is not for the user. The local routing service flow is not counted, and the non-local routing service flow of the user is still counted by the charging agent for charging related information; or the local routing executing entity not only performs statistics on the charging related information of the user's local routing service flow.
  • the first charging statistics information includes: a statistical result of the charging related information of the local routing service flow of the user.
  • the method further includes a local routing indication, which may further include an ID of the locally routed service flow.
  • the second charging statistics information includes: a statistical result of the charging related information of the non-local routing service flow of the user, optionally, the non-local routing indication, which may also include the non-local routing service flow. ID.
  • the local routing execution entity performs statistics on the local routing service flow of the user and the charging related information of the non-local routing service flow
  • the first charging statistical information must include the local routing indication
  • the second accounting The fee statistics must include non-local routing indications.
  • the first charging statistic information may include a statistic result of charging related information of one or more local routing service flows of the user, where the first charging statistic information includes charging related information of multiple local routing service flows.
  • the first charging statistics information needs to include the ID of the service flow of the local route.
  • the second charging statistics information may include statistics results of charging related information of one or more non-local routing service flows of the user, where the second charging statistics information includes multiple non-local routing service flows.
  • the local route execution entity sends a charging context delivery response message to the charging proxy.
  • the charging context delivery response message may be a path registration confirmation message Path_Reg_Ack. This step is an optional step and may be performed prior to step 402 or concurrently with step 402. 404.
  • the charging proxy sends a charging information update request message to the accounting server, and the current time interval is The accounting statistics of the non-local routing service flow in the interval are sent to the accounting server.
  • the charging information update request message in the step may be a traffic update message.
  • This step is an optional step.
  • the local routing execution entity performs the statistics on the charging related information of the non-local routing service flow of the user in step 402
  • the subsequent charging proxy no longer counts the charging related information of the service flow of the user. The user will no longer report the billing information update request for the user.
  • the charging server returns a charging information update response message to the charging proxy.
  • the charging information update response message may be a traffic update confirmation message Bulk_Interim_Update_Ack;.
  • This step is an optional step.
  • the local route execution entity periodically sends a billing information update request message to the billing server according to the billing context information.
  • the local route execution entity sends a charging information update request message to the charging server according to the reporting time interval and the remaining reporting time. Assuming that the remaining reporting time is 10s and the reporting interval is 30s, the local routing executing entity sends the user's charging information update request message to the accounting server for the first time after 10s, and then sends it every 30s.
  • the charging information update request message may include: first charging statistical information and second charging statistical information.
  • the charging information update request message includes only: the first charging statistical information.
  • the charging information update request message may be forwarded by the local routing execution entity to the charging server through the charging proxy.
  • the local route execution entity may send a charging information update request message to the accounting server, or send the charging information update request by the charging client.
  • the local routing executing entity sends the charging information to the charging client.
  • the traffic update message Bulk_Interim_Update of the charging statistics information and then the charging client sends an accounting request message carrying the charging statistics information to the charging server; or, the local routing executing entity charges the accounting agent through the charging agent.
  • the server sends a charging information update request, and specifically, the local routing executing entity sends the charging proxy to the charging proxy.
  • the charging proxy sends the charging statistical information to the charging server; or, the local routing executing entity charges to the charging proxy through the charging proxy
  • the server sends a charging information update request. Specifically, the local routing executing entity sends a traffic update message Bulk_Interim_Update carrying the charging statistical information to the charging proxy, and then the charging proxy will carry the traffic update message Bulk of the charging statistical information.
  • the Interim-Update is reported to the charging client, and then the charging client sends an accounting request message Accounting Request; carrying the charging statistics to the charging server.
  • the accounting server returns a charging information update response message to the local routing executing entity, and implements charging for the local routing service flow.
  • the accounting server determines, according to the preset rule, that the statistics result in the first charging statistics information is a charging statistics result of the local routing service flow, according to the local routing indication in the first charging statistics information, according to the The first accounting statistics information is used to charge the local routing service flow according to the tariff of the local routing service flow in the preset rule, and the first charging statistical information includes charging related information for multiple local routing service flows.
  • the non-local routing service flow of the user performs charging, and the second charging statistical information includes charging related information for multiple non-local routing service flows.
  • the statistics result and the ID of the non-local routing service flow the non-local routing service flows are charged according to the tariffs of the non-local routing service flows in the preset rule.
  • the charging information update response message may be directly sent to the local routing execution entity, or may be forwarded to the local routing executing entity by the charging proxy.
  • the local routing execution entity performs statistics on the charging related information of the local routing service flow, and directly notifies or notifies the charging server through the charging proxy, so that the charging server can charge the locally routed service flow.
  • FIG. 5 is a diagram showing a charging method of a local routing service according to an embodiment of the present invention.
  • a local routing execution entity is located on a serving gateway in a WiMAX network
  • a charging proxy is located on an anchor access gateway, and the serving gateway directly
  • the billing statistics are sent to the billing client, and then reported by the billing client to the billing server.
  • the billing server is an AAA server, and the method specifically includes: 501.
  • the terminal sends a dynamic service flow to the base station.
  • the message DSA-REQ is requested to request the establishment of a radio bearer for transporting the traffic flow.
  • the service flow increase request message includes service flow information, such as a service flow IP quintuple, where the service flow IP quintuple includes a source IP address, a destination IP address, a source port number, a destination port number, and a protocol type. .
  • service flow IP quintuple includes a source IP address, a destination IP address, a source port number, a destination port number, and a protocol type.
  • the base station sends a dynamic service flow to the terminal to add a receiving message DSA-RVD, where the message indicates that the base station has received the dynamic service flow increase request message.
  • the base station sends a path registration request message Path_Reg_Req to the serving gateway to request to establish a network bearer for transmitting the service flow, where the message includes the IP quintuple information of the service flow.
  • the serving gateway sends a path registration request message Path_Reg_Req to the anchor access gateway to request to establish a network bearer for transmitting the service flow.
  • the anchor access gateway determines, according to the IP quintuple information of the service flow, that the peer end communicating with the terminal is also located under the service gateway, and performing local routing on the service flow, and anchoring the access gateway to the wrong
  • the Service Flow Authorization (ARP) sends a resource reservation request message RR_Req, and the resource reservation request message may include indication information for performing local routing.
  • the anchor service flow authorization entity determines QoS information such as bandwidth and delay of the service flow requested by the user according to the subscription information of the user, the policy of the operator, and the service information, and anchors the service flow authorization entity to anchor access.
  • the gateway returns a resource reservation response message RR_Rsp, and the message includes QoS information of the service flow.
  • the anchor service flow authorization entity determines whether to allow the service according to the subscription information of the user, the policy of the operator, and the service information.
  • the flow performs the local route, and carries the indication information indicating whether the service flow is allowed to perform the local route in the resource reservation response message.
  • the anchor access gateway sends a path registration response message Path_Reg_Rsp to the serving gateway, where
  • the path registration response message includes charging context information, where the charging context information may include a reporting time interval, a remaining reporting time, and the like, and the charging context information may further include a local routing charging indication.
  • the reporting interval indicates that the accounting statistics are reported once every other time.
  • the remaining reporting time is the time from the next reporting of the traffic update message.
  • the upper time interval is 30 s. Since the terminal may communicate with the terminal in the external network before the local route is executed, the charging proxy in the anchor access gateway always reports the traffic flow of the terminal to the external network. The fee-related information is collected, for example, the traffic of the service flow is counted. After the traffic update message is reported to the accounting server for the last 20 seconds, the user has a service flow for performing local routing. The remaining reporting time is 10s. After the service gateway 10s, the traffic update message carrying the accounting statistics is reported for the first time, and then reported in the time interval of 30s.
  • the serving gateway After receiving the charging context information, the serving gateway starts to collect statistics on the charging related information of the service flow of the user, to obtain charging statistical information.
  • the serving gateway sends a path registration response message Path_Reg_Rsp to the base station.
  • the service gateway may perform statistics only on the charging related information of the local routing service flow of the user, and obtain the first charging statistical information, and the non-local routing service flow of the user is not The statistic is performed, and the non-local routing service flow of the user is still statistic of the charging related information by the charging proxy; or the serving gateway not only performs statistics on the charging related information of the local routing service flow of the user, but also obtains the first charging statistic.
  • the information also collects the charging related information of the non-local routing service flow of the user, and obtains the second charging statistical information, so that the charging proxy in the access gateway does not need to be anchored to the non-local routing service of the user.
  • the billing related information of the stream is counted.
  • the charging related information of the service flow may include: the number of service packets, the number of bytes of service packets, and the like.
  • the base station completes the allocation of the air interface resource, and sends a dynamic service flow increase response message DSA-RSP to the terminal.
  • the terminal sends a dynamic service flow increase confirmation message DSA-ACK to the base station, indicating that the completion is empty.
  • the port service flow bearer is established.
  • the base station sends a path registration confirmation message Path_Reg_Ack to the serving gateway.
  • the serving gateway sends a path registration confirmation message Path_Reg_Ack to the anchor access gateway, indicating that the network side service flow bearer establishment is completed.
  • the anchor access gateway sends a resource reservation acknowledgement message to the anchor service flow authorization entity.
  • RR_Ack to inform the anchoring service flow, that the radio bearer of the authorized entity service flow has been established.
  • the anchor access gateway sends a traffic update message.
  • Bulk Interim—Updates to the charging client, where the message carries the identifier of the new charging proxy (ie, the identifier of the serving gateway).
  • the traffic update message carries the new charging proxy.
  • the identifier is used to notify the charging client that the charging proxy has been migrated, and the charging gateway is subsequently used by the serving gateway.
  • the traffic update message carries the identifier of the new charging proxy to notify the charging client that a new charging proxy has joined.
  • the charging client sends a traffic update confirmation message to the anchor access gateway.
  • Bulk Interim—Update—Ack;.
  • the serving gateway periodically sends a traffic update message Bulk_Interim_Update to the charging client according to the charging context information, where the traffic update message includes charging statistics.
  • the serving gateway sends a traffic update message to the charging client according to the reporting interval and the remaining reporting time. Assuming that the remaining reporting time is 10s and the reporting interval is 30s, the service gateway sends a traffic update message to the accounting client for the first time after 10s, and then sends it every 30s.
  • the traffic update message may include: first charging statistics information and second charging statistics information; when the serving gateway only localizes the service to the user When the charging related information of the flow is counted, the traffic update message includes the first charging statistical information.
  • the charging client sends a traffic update confirmation message to the service gateway Bulk—Interim—Update—Ack;.
  • the charging client sends an accounting request message to the AAA server,
  • the charging request message carries the foregoing charging statistical information.
  • the AAA server completes one-time charging for the user according to the charging statistics, and returns a charging acceptance message Accounting Accept to the charging client.
  • the service gateway obtains the user charging context, and collects the accounting related information of the service flow, and reports the accounting statistics, so that the accounting server can perform accounting statistics according to the charging statistics.
  • the information implements accounting statistics and bill generation for the local routing service.
  • FIG. 6 is a diagram showing a charging method of a local routing service according to another embodiment of the present invention.
  • a local routing execution entity is located on a base station in a WiMAX network
  • a charging proxy is located on an anchor access gateway, and the base station is local.
  • the charging statistic information of the routing service flow is sent to the charging proxy located at the anchoring access gateway, and is sent by the charging proxy to the charging client, and then reported by the charging client to the charging server, and the charging is performed in this embodiment.
  • the server is an AAA server, and the method specifically includes:
  • 601-607 is the same as 501-507 and will not be mentioned here.
  • the serving gateway sends a path registration response message Path_Reg_Rsp to the base station, where the message includes charging context information.
  • the base station completes the allocation of the air interface resource, and sends a dynamic service flow increase response message DSA-RSP to the terminal.
  • the terminal sends a dynamic service flow increase acknowledgement message DSA-ACK to the base station, indicating that the bearer service flow bearer establishment is completed.
  • the base station may start to perform statistics on charging related information of the service flow of the user, to obtain accounting statistics.
  • the base station sends a path registration confirmation message Path_Reg_Ack to the serving gateway.
  • the base station may perform statistics only on the charging related information of the local routing service flow of the user, and obtain the first charging statistical information, and the non-local routing service flow of the user is not performed.
  • Statistics the non-local routing service flow of the user is still the statistics of the charging related information by the charging agent; or the base station not only statistics the charging related information of the local routing service flow of the user, but also obtains the first charging statistical information.
  • the charging related information of the non-local routing service flow of the user is also counted, and the second charging statistical information is obtained, so that the charging proxy in the access gateway does not need to be anchored to the non-local routing service flow of the user.
  • Billing related information is counted. 612.
  • the serving gateway sends a path registration confirmation message Path_Reg_Ack to the anchor access gateway, indicating that the network side service flow bearer establishment is completed.
  • the anchor access gateway sends a resource reservation acknowledgement message RR_Ack to the anchor service flow authorization entity to notify that the bearer of the anchor service flow authorization entity service flow has been established.
  • the base station periodically sends a traffic update message to the anchor access gateway according to the charging context information.
  • the traffic update message carries the charging statistics information; the message can be forwarded to the anchor access gateway through the serving gateway.
  • 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 a traffic update message for the first time after 10s, and then sends it every 30s.
  • the traffic update message may include: first charging statistics information and second charging statistics information.
  • the traffic update message includes: first charging statistics information.
  • the charging proxy in the anchor access gateway sends a traffic update confirmation message to the base station through the serving gateway.
  • the charging proxy in the anchor access gateway reports the traffic update message Bulk_Interim_Update carrying the charging statistics to the charging client.
  • the charging client sends a traffic update confirmation message to the charging proxy in the anchor access gateway.
  • Bulk Interim—Update—Ack;.
  • the charging client sends an accounting request message to the AAA server, where the charging request message carries the charging statistics information.
  • the AAA server completes one-time charging for the user according to the charging statistics, and returns a charging acceptance message Accounting Accept to the charging client.
  • FIG. 7 is a diagram showing a charging method of a local routing service according to another embodiment of the present invention.
  • a local routing execution entity is located at a 3GPP serving gateway, and a packet data network gateway (PDN) is used before a local route occurs.
  • PDN packet data network gateway
  • -GW Performs the accounting information statistics function.
  • the service gateway collects the accounting related information of the local routed service flow of the user, and the service gateway directly sends the charging statistics information to the charging gateway function entity ( Charging Gateway Function, CGF), the method specifically includes:
  • the terminal sends a create PDP context request message to the packet data network gateway, where the create PDP context request message includes service flow information, such as a service flow IP quintuple, where the service flow IP quintuple includes a source IP address and a destination IP address. Address, source port number, destination port number, and protocol type.
  • service flow IP quintuple includes a source IP address and a destination IP address. Address, source port number, destination port number, and protocol type.
  • the PDN-GW determines, according to the service flow IP quintuple, that the peer end that communicates with the terminal is located at the same serving gateway as the terminal, and may perform local routing on the service flow, and the user calculates the PDP context response message.
  • the fee context information informs the service gateway.
  • the charging context information may include a charging identifier, a charging gateway function entity address, and the like, where the charging identifier indicates a charging model of the service flow, and the charging context information may further include a local routing charging indication.
  • the charging context information in the step includes the charging identifier corresponding to each service flow of the user;
  • the network is configured to collect statistics on the charging related information of the local routing service flow of the user by the serving gateway, and the charging context information in the step includes the charging identifier corresponding to the local routing service flow.
  • the serving gateway After receiving the charging context information, the serving gateway starts to collect statistics about the charging related information of the service flow of the user, and sends the charging statistical information through the data record according to the charging gateway function entity address in the charging context information.
  • the message Data Record Transfer Request is reported to the CGF.
  • the accounting statistics information includes: a statistical result of the charging related information of the service flow of the user and a charging identifier of the service flow.
  • the service gateway may perform statistics only on the charging related information of the local routing service flow of the user, and obtain the first charging statistical information, and the non-local routing service flow of the user is not Statistics are performed, and the non-local routing service flow of the user is still counted by the charging agent for charging related information; or the serving gateway is not only related to the charging of the local routing service flow of the user.
  • the information is collected to obtain the first charging statistical information, and the charging related information of the non-local routing service flow of the user is also collected, and the second charging statistical information is obtained, so that the PDN GW is not required to be non-local to the user.
  • the billing related information of the routing service flow is counted.
  • the data record transfer request message may include: first charging statistics information and second charging statistics information;
  • the statistics information includes: a charging identifier corresponding to the service flow of the local route and a statistics result of the charging related information of the service flow of the local route;
  • the second charging statistics information includes: a charging identifier corresponding to the service flow of the non-local route The statistical result of the billing related information for the service flow of the non-local route.
  • the serving gateway only counts the charging related information of the local routing service flow of the user, the data record transfer request message only includes: the first charging statistical information.
  • the first charging statistics information may include statistics results of charging related information of one or more local routing service flows of the user, and the second charging statistics information may include one or more non-local routes to the user.
  • the statistical result of the billing related information of the service flow may include statistics results of charging related information of one or more local routing service flows of the user, and the second charging statistics information may include one or more non-local routes to the user.
  • the CGF completes one-time charging for the user according to the charging statistics information, and returns a data record delivery response message Data Record Transfer Response message to the service gateway.
  • the CGF charges the corresponding service flow according to the charging identifier corresponding to the service flow in the charging statistics information; specifically, the local accounting in the first charging statistical information
  • the charging identifier corresponding to the traffic flow of the non-local route is used to charge the non-local routing service flow by using the statistics corresponding to the charging identifier and the charging related information of the service flow of the non-local routing.
  • the service gateway in the 3GPP network obtains the user charging context, performs statistics on the charging related information of the service flow, and uploads accounting statistics, so that the charging server can
  • the accounting statistics are used to implement accounting statistics and bill generation for the local routing service.
  • an embodiment of the present invention provides a local routing execution entity, where the entity may be located in a base station or a serving gateway or an anchor access gateway in a WiMAX network, or the entity is located.
  • the entity includes:
  • the local routing service flow information statistics unit 801 is configured to perform statistics on the charging related information of the service flow that is locally routed by the user, to obtain the first charging statistical information, where the first charging statistical information includes the local routing service flow information statistical unit. 801.
  • the statistics result of the charging related information of the service flow that is locally routed by the user, where the first charging statistics information may further include a local routing indication.
  • the sending unit 802 is configured to send the first charging statistics, so that the charging server charges the locally routed service flow according to the first charging statistical information.
  • the entity further includes: a non-local routing service flow information statistics unit 803, configured to perform statistics on the charging related information of the service flow that is not locally routed by the user, to obtain the second charging statistical information.
  • the sending unit 802 is specifically used to Sending a charging information update request message including the first charging statistical information and the second charging statistical information; wherein the first charging statistical information includes a local routing indication and charging related information of a service flow locally routed by the user
  • the statistical result of the second charging statistics includes: a non-local routing indication and a statistical result of charging related information of a service flow that is not locally routed by the user.
  • the local routing execution entity further includes: a context obtaining unit 804, configured to obtain the charging context information.
  • the sending unit 802 is configured to send the first charging according to the charging context information.
  • Statistics In the 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;
  • the charging context information includes a charging server address and a 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.
  • the first charging statistics information includes: the charging identifier and a statistical result of charging related information of a service flow that is locally routed by the user.
  • the sending unit 802 specifically sends the information including the first charging statistical information and the second charging statistical information.
  • Fee information update request message may be sent to the billing server directly; or the billing information update request message may be sent to the billing server by the billing agent; or The charging server sends the charging information update request message.
  • the embodiment of the present invention uses the local routing execution entity to perform charging related information on the local routing service flow.
  • the statistic is provided, and the accounting server is configured to enable the accounting server to perform the traffic flow of the local routing.
  • the embodiment of the present invention provides a network system, where the system includes:
  • the local routing execution entity 901 is configured to perform statistics on the charging related information of the service flow that is locally routed by the user, to obtain the first charging statistical information, and send the first charging statistical information; where the first charging statistical information includes the local routing
  • the statistic result of the charging related information of the service flow of the local route of the user, the first charging statistic information may further include a local routing indication.
  • the accounting server 902 is configured to receive the first charging statistical information, and perform charging on the locally routed service flow according to the first charging statistical information.
  • the first charging statistic information includes a local routing indication and a statistic result of the charging related information of the service flow that is locally routed by the user; in order to perform statistics on the charging related information of the user by the same entity, it is no longer needed.
  • the accounting agent performs statistics on the non-local routing service flow of the user, and the local routing execution entity 901 is further configured to perform statistics on the charging related information of the service flow that is not locally routed by the user, to obtain the second charging statistical information.
  • the second charging statistics information includes: a non-local routing indication and a statistical result of the charging related information of the service flow that is not locally routed by the user; the charging server 902 is further configured to receive the second charging statistical information, according to the The second charging statistics information is used to charge a service flow that is not locally routed.
  • the local routing execution entity performs statistics on the charging related information of the local routing service flow, and notifies the charging server, so that the charging server can perform the local routing service flow. All or part of the steps of the embodiment method may be completed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium such as a read only memory, a magnetic disk or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A charging method of local routing business includes: a local routing execution entity takes statistics on the count-relevant information of a business flow of a user local routing to obtain a first charging statistic information; the first charging statistic information is sent, so that a charging server charges the business flow of the local routing according to the first charging statistic information. Using the method, the charging for the local routing business can be realized.

Description

本地路由业务的计费方法、 装置及网络系统 技术领域  Charging method, device and network system for local routing service
本发明涉及一种通信技术领域, 特别涉及一种本地路由业务的计费方法、 装置及网络系统。  The present invention relates to the field of communications technologies, and in particular, to a charging method, device, and network system for a local routing service.
背景技术 Background technique
在微波接入全球互通 ( Worldwide Interoperability for Microwave Access, WiMAX ) 网络中, 当终端与外部网络通信时, 终端发送的上行报文, 经过基 站传递到服务网关, 再由服务网关传递到锚定接入网关, 最后经过家乡代理 ( Home Agent, HA )传送到外部网络中。 而下行报文则经过反方向的承载路 径路由到终端上。  In the Worldwide Interoperability for Microwave Access (WiMAX) network, when the terminal communicates with the external network, the uplink packet sent by the terminal is transmitted to the serving gateway through the base station, and then transmitted to the anchor access by the serving gateway. The gateway is finally transmitted to the external network via the Home Agent (HA). The downlink packet is routed to the terminal through the bearer path in the reverse direction.
WiMAX网络架构示意图如图 1所示 , Accounting Agent (计费代理)位于 锚定接入网关(Anchor GW )处, 由计费代理根据用户的业务流传输进行计费 统计, 比如统计业务流的上下行流量, 业务报文数等等。 然后计费代理将计费 统计信息定期通过 R4接口发送给计费客户端, 计费客户端将计费统计信息通 知验证、授权和计费 (Authentication Authorization ^ Accounting )AAA服务器, 以便实现对用户的业务流的计费, 其中, 图 1中的实线为业务流传输路径, 图 1中的虚线为计费统计信息传输路径。  Schematic diagram of the WiMAX network architecture is shown in Figure 1. The Accounting Agent is located at the Anchor GW. The accounting agent performs charging statistics based on the traffic flow of the user, such as the upper and lower statistics traffic. Traffic, number of service packets, and more. Then, the charging proxy periodically sends the accounting statistics to the charging client through the R4 interface, and the charging client notifies the accounting authorization information to the Authentication Authorization ^ Accounting AAA server, so as to implement the user's The charging of the service flow, wherein the solid line in FIG. 1 is the service flow transmission path, and the broken line in FIG. 1 is the charging statistical information transmission path.
当需要彼此通信的两个终端位于同一个服务网关下, 如图 2所述, 服务网 关通过本地路由技术可以将源终端发出的报文直接发送到目的终端 (如图 2 中粗实线所示), 从而达到减少报文传输时延、 降低核心网传输负载的目的。 图 2 中的本地路由是在服务网关处进行的。 同样, 当两个用户在同一个基站 下或同一个锚定接入网关(Anchor GW )下时, 本地路由也可以在基站或锚定 接入网关处实现。  When the two terminals that need to communicate with each other are located under the same service gateway, as shown in Figure 2, the serving gateway can send the packets sent by the source terminal directly to the destination terminal through the local routing technology (as shown by the thick solid line in Figure 2). ), thereby achieving the purpose of reducing the packet transmission delay and reducing the transmission load of the core network. The local route in Figure 2 is done at the services gateway. Similarly, when two users are under the same base station or the same anchor access gateway (Anchor GW), the local route can also be implemented at the base station or the anchor access gateway.
对于本地路由的业务流, 运营商同样需要进行计费。 同时, 与普通业务流 相比 , 本地路由的业务流计费可能采用不同的计费模型或费率。  For the service flow of the local route, the operator also needs to perform charging. At the same time, compared to the normal traffic flow, the traffic accounting of the local route may adopt different charging models or rates.
现有技术具有如下缺点:  The prior art has the following disadvantages:
现有技术中, 由位于锚定接入网关的计费代理 Accounting Agent对用户业 务流进行计费信息统计。当用户的某些业务流在服务网关或基站处发生了本地 路由时, 由于这部分业务流报文不再经过锚定接入网关,现有的计费架构无法 对该部分业务流进行计费信息统计, 因而会导致无法对本地路由业务进行计 发明内容 In the prior art, charging information statistics are performed on a user service flow by an accounting agent located at an anchor access gateway. When a user's certain traffic flows locally at the serving gateway or base station When the route is forwarded, the traffic accounting packet does not pass through the anchor access gateway. The existing accounting architecture cannot perform accounting information statistics on the part of the service flow.
本发明实施例提供一种本地路由业务的计费方法、装置及网络系统, 能够 实现对本地路由业务的计费。  The embodiments of the present invention provide a charging method, a device, and a network system for a local routing service, which can implement charging for a local routing service.
有鉴于此, 本发明实施例提供:  In view of this, the embodiments of the present invention provide:
一种本地路由业务的计费方法, 包括:  A charging method for a local routing service, including:
本地路由执行实体对用户本地路由的业务流的计费相关信息进行统计,得 到第一计费统计信息;  The local routing execution entity performs statistics on the charging related information of the service flow of the local route of the user, and obtains the first charging statistical information;
发送所述第一计费统计信息 ,使计费服务器根据所述第一计费统计信息对 本地路由的业务流进行计费  Sending the first charging statistics, so that the charging server charges the locally routed service flow according to the first charging statistical information.
一种本地路由执行实体, 包括:  A local routing execution entity, including:
本地路由业务流信息统计单元,用于对用户本地路由的业务流的计费相关 信息进行统计, 得到第一计费统计信息;  The local routing service flow information statistics unit is configured to perform statistics on the charging related information of the service flow that is locally routed by the user, to obtain the first charging statistical information;
发送单元, 用于发送所述第一计费统计信息,使计费服务器根据所述第一 计费统计信息对本地路由的业务流进行计费。  And a sending unit, configured to send the first charging statistics, so that the charging server charges the locally routed service flow according to the first charging statistical information.
一种网络系统, 包括: 上述本地路由执行实体和用于接收第一计费统计信 息 , 并根据所述第一计费统计信息对本地路由的业务流进行计费的计费服务 器。  A network system, comprising: the local routing execution entity and a charging server for receiving first charging statistics, and charging a locally routed service flow according to the first charging statistical information.
本发明实施例采用本地路由执行实体对本地路由业务流的计费相关信息 进行统计, 并将计费统计信息通知计费服务器,使计费服务器能够对本地路由 的业务流进行计费。  In the embodiment of the present invention, the local routing execution entity performs statistics on the charging related information of the local routing service flow, and notifies the accounting server of the accounting statistics, so that the charging server can perform charging on the locally routed service flow.
附图说明 DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使 用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅是本发明的一些 实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可 以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. One of ordinary skill in the art can also obtain other drawings based on these drawings without undue creative effort.
图 1是现有技术提供的 WiMAX网络架构图; 图 2是现有技术提供的 WiMAX网络中业务流的本地路由示意图; 图 3是本发明一实施例提供的本地路由业务的计费方法流程图; 1 is a schematic diagram of a WiMAX network architecture provided by the prior art; 2 is a schematic diagram of a local route of a service flow in a WiMAX network provided by the prior art; FIG. 3 is a flowchart of a method for charging a local route service according to an embodiment of the present invention;
图 4是本发明另一实施例提供的本地路由业务的计费方法流程图; 图 5是本发明一实施例提供的 WiMAX网络中本地路由业务的计费方法流 程图;  4 is a flow chart of a charging method for a local routing service according to another embodiment of the present invention; FIG. 5 is a flow chart of a charging method for a local routing service in a WiMAX network according to an embodiment of the present invention;
图 6是本发明另一实施例提供的 WiMAX网络中本地路由业务的计费方法 流程图;  6 is a flowchart of a charging method of a local routing service in a WiMAX network according to another embodiment of the present invention;
图 7是本发明一实施例提供的 3GPP网络中本地路由业务的计费方法流程 图;  7 is a flow chart of a charging method of 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 route execution entity according to an embodiment of the present invention;
图 9是本发明实施例提供的网络系统结构图。  FIG. 9 is a structural diagram of a network system according to an embodiment of the present invention.
具体实施方式 detailed description
参阅图 3,本发明实施例提供一种本地路由业务的计费方法,该方法包括: Referring to FIG. 3, an embodiment of the present invention provides a charging method for a local routing service, where the method includes:
301、 本地路由执行实体对用户本地路由的业务流的计费相关信息进行统 计, 得到第一计费统计信息。 301. The local routing execution entity performs statistics on the charging related information of the service flow of the local route of the user, and obtains the first charging statistical information.
其中,本地路由执行实体是指网络中执行业务流本地转发的网络实体,其 可以位于 WiMAX网络中的服务网关或基站或锚定接入网关中, 也可以位于第 三代合作伙伴计划 (3rd Generation Partnership Project, 3 GPP)网络中的 GPRS服 务支持节点 (Serving GPRS Support Node, SGSN )、 服务网关、 NodeB或演进 型 Node B ( eNodeB ) 中。  The local routing execution entity refers to a network entity that performs local forwarding of service flows in the network, and may be located in a serving gateway or a base station or an anchor access gateway in the WiMAX network, or may be located in a third generation partnership plan (3rd Generation). In the Partnership Project, 3 GPP) GPRS Service Support Node (SGSN), Serving Gateway, NodeB or Evolved Node B (eNodeB).
其中,所述第一计费统计信息包括对用户本地路由的业务流的计费相关信 息的统计结果, 可选地其还包括本地路由指示或者计费标识, 可选的, 其还可 以包括本地路由的业务流的 ID; 其中, 对用户本地路由的业务流的计费相关 信息的统计结果包括: 用户本地路由的业务流的上行字节数和 /或用户本地路 由的业务流的下行字节数; 或者,对用户本地路由的业务流的计费相关信息的 统计结果包括: 用户本地路由的业务流的上行报文数, 和 /或, 用户本地路由 的业务流的下行报文数,或者,对用户本地路由的业务流的计费相关信息的统 计结果还可以包括: 用户在本地路由进行的会话的持续时间和计费延迟时间 , 计费延迟时间是指本地路由执行实体统计计费相关信息的时间点与发送第一 计费统计信息的时间差 ,这样后续计费服务器收到第一计费统计信息之后就可 以根据该计费延迟时间知道此次统计的时间点了。 The first charging statistic information includes a statistic result of the charging related information of the service flow that is locally routed by the user, and optionally includes a local routing indication or a charging identifier, optionally, which may also include local The ID of the service flow of the route; the statistics of the traffic-related information of the service flow that is locally routed by the user include: the number of uplink bytes of the service flow of the user local route and/or the downlink byte of the service flow of the user local route Or the number of the uplink information of the service flow of the local route of the user, and/or the number of downlink packets of the service flow of the local route of the user, or The statistical result of the charging related information of the service flow that is locally routed by the user may further include: a duration of the session performed by the user in the local route, and a charging delay time, The billing delay time is the time difference between the time point at which the local route executing entity collects the billing related information and the first billing statistics information, so that the subsequent billing server can receive the first billing statistics information according to the billing delay. Time knows the time of this statistic.
当所述用户当前有非本地路由的业务流时,此时所述本地路由执行实体还 可以对用户非本地路由的业务流的计费相关信息进行统计,得到第二计费统计 信息; 所述第二计费统计信息包括: 对用户非本地路由的业务流的计费相关信 息的统计结果, 可选地其还包括非本地路由指示。 其中, 对用户非本地路由的 业务流的计费相关信息的统计结果包括:用户非本地路由的业务流的上行字节 数和 /或用户非本地路由的业务流的下行字节数; 或者, 对用户非本地路由的 业务流的计费相关信息的统计结果包括:用户非本地路由的业务流的上行 4艮文 数, 和 /或, 用户非本地路由的业务流的下行报文数, 或者, 对用户非本地路 由的业务流的计费相关信息的统计结果还可以包括:用户在非本地路由进行的 会话的持续时间和计费延迟时间 ,计费延迟时间是指本地路由执行实体统计计 费相关信息的时间点与发送第二计费统计信息的时间差 ,这样后续计费服务器 收到第二计费统计信息之后就可以根据该计费延迟时间知道此次统计的时间 点了。  When the user currently has a traffic flow that is not locally routed, the local route execution entity may also perform statistics on the charging related information of the service flow that is not locally routed by the user, to obtain second charging statistics information. The second charging statistics information includes: a statistical result of the charging related information of the service flow that is not locally routed by the user, and optionally includes a non-local routing indication. The statistics of the charging related information of the service flow that is not locally routed by the user include: the number of uplink bytes of the service flow that is not locally routed by the user and/or the number of downlink bytes of the service flow that is not locally routed by the user; or The statistics of the accounting related information of the service flow that is not locally routed by the user include: the number of uplink packets of the service flow that is not locally routed by the user, and/or the number of downlink packets of the service flow that is not locally routed by the user, or The statistics of the charging related information of the service flow that is not locally routed by the user may also include: the duration of the session performed by the user in the non-local route and the charging delay time, and the charging delay time refers to the statistics of the local routing executing entity. The time difference between the time point of the fee-related information and the time when the second charging statistics information is sent, so that the subsequent charging server can know the time point of the statistics according to the charging delay time after receiving the second charging statistical information.
其中,所述第一计费统计信息可以包括对用户的一个或多个本地路由业务 流的计费相关信息的统计结果,当第一计费统计信息包括多个本地路由业务流 的计费相关信息的统计结果时,该第一计费统计信息需要包括本地路由的业务 流的 ID。 这样, 如果不同的业务流有不同的资费标准, 则计费服务器收到第一 计费统计信息之后,根据各业务流的 ID和对相应业务流的计费相关信息的统计 结果, 对各业务流进行计费。 同理, 所述第二计费统计信息可以包括对用户的 一个或多个非本地路由业务流的计费相关信息的统计结果,当第二计费统计信 息包括多个非本地路由业务流的计费相关信息的统计结果时,该第二计费统计 信息需要包括非本地路由业务流的 ID。 息和第二计费统计信息 , 不需要锚定接入网关中的计费代理或者 3GPP网络中 分组数据网网关( Packet Data Network Gateway, PDN-GW )再对该用户的本 地路由业务流的计费相关信息进行统计。 302、 发送第一计费统计信息, 使计费服务器根据所述第一计费统计信息 对本地路由的业务流进行计费。 The first charging statistic information may include a statistic result of charging related information of one or more local routing service flows of the user, where the first charging statistic information includes charging related to multiple local routing service flows. When the statistics result of the information, 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 tariff standards, after the accounting server receives the first charging statistical information, according to the statistics of the ID of each service flow and the charging related information of the corresponding service flow, each service is used. The flow is billed. Similarly, the second charging statistics information may include statistics results of charging related information of one or more non-local routing service flows of the user, where the second charging statistics information includes multiple non-local routing service flows. When the statistics result of the charging related information, the second charging statistical information needs to include the ID of the non-local routing service flow. And the second charging statistics, do not need to anchor the charging proxy in the access gateway or the Packet Data Network Gateway (PDN-GW) in the 3GPP network and then calculate the local routing service flow of the user. Statistics related to the fee. 302. Send the first charging statistics, so that the charging server performs charging on the locally routed service flow according to the first charging statistical information.
如上所述, 当所述用户当前有非本地路由的业务流时,所述本地路由执行 实体还可以对用户非本地路由的业务流的计费相关信息进行统计,得到第二计 费统计信息,则该步骤中本地路由执行实体也会发送第二计费统计信息。其中 , 本地路由执行实体可以通过一个计费信息更新请求消息发送第一计费统计信 息和第二计费统计信息。  As described above, when the user currently has a service flow that is not locally routed, the local route execution entity may also perform statistics on the charging related information of the service flow that is not locally routed by the user, and obtain the second charging statistics information. Then, the local routing execution entity also sends the second charging statistics in this step. The local routing execution entity may send the first charging statistical information and the second charging statistical information by using a charging information update request message.
可选的,在步骤 301之前,本地路由执行实体获取计费上下文信息,其中, 在 WiMAX网络中,计费上下文信息可以包括上报时间间隔,剩余上报时间等, 具体参见后续实施例的详细描述。该步骤中本地路由执行实体具体根据所述计 费上下文信息,发送包括第一计费统计信息和第二计费统计信息的计费信息更 新请求消息。具体的,本地路由执行实体可以直接向计费服务器发送计费信息 更新请求消息; 或者,本地路由执行实体通过计费代理向计费服务器发送计费 信息更新请求消息; 或者,本地路由执行实体通过计费客户端向计费服务器发 送计费信息更新请求消息。 在 3GPP网络中, 计费上下文信息包括计费服务器 地址和本地路由的业务流对应的计费标识等,则该步骤中本地路由执行实体根 据所述计费服务器地址, 向计费服务器发送第一计费统计信息, 第一计费统计 信息包括:所述计费标识和对用户本地路由的业务流的计费相关信息的统计结 果,其中计费标识用于表示该本地路由的业务流的计费模型,后续计费服务器 据计费标识, 就可以知道采用什么费率对该业务流进行计费了。 对于 3GPP 网络中, 第一计费统计信息还可以包括本地路由指示。  Optionally, before the step 301, the local routing execution entity obtains the charging context information, where, in the WiMAX network, the charging context information may include a reporting interval, a remaining reporting time, and the like. For details, refer to the detailed description of the 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 the charging information update request message to the charging server; or the local routing executing entity sends the charging information update request message to the charging server through the charging proxy; or, the local routing executing entity passes 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 identifier corresponding to the service flow of the local route, and the local routing execution entity sends the first to the charging server according to the charging server address in this step. The billing statistics information includes: the billing identifier and a statistical result of the billing related information of the service flow locally routed by the user, where the billing identifier is used to indicate the service flow of the local route The fee model, the subsequent billing server, according to the billing identifier, can know what rate is used to charge the service stream. For the 3GPP network, the first charging statistics may also include a local routing indication.
其中,计费服务器指网络中负责对用户进行计费的网络实体,该计费服务 器根据计费统计信息, 知道用户使用了多少业务流, 进而对用户进行计费。 计 费服务器可以是 WiMAX网络中的 AAA服务器, 3GPP网络中的离线计费系 统( Offline Charging System, OFCS )或计费网关功能实体( Charging Gateway Functionality, CGF )等。 在 WiMAX网络中, 计费服务器按照预设规则和本 地路由执行实体对用户业务流的计费相关信息的统计结果,对本地路由业务流 和非本地路由业务流采用不同的费率进行计费。预设规则规定了对本地路由业 务流、 非本地路由业务流所采用的费率等信息。 在 3GPP网络中, 计费服务器 根据计费统计信息中的计费标识和本地路由执行实体对用户业务流的计费相 关信息的统计结果, 采用相应的费率对业务流进行计费。 The accounting server refers to a network entity in the network that is responsible for charging the user. The accounting server knows how many service flows are used by the user according to the charging statistics, and then charges the user. The accounting server may be an AAA server in a WiMAX network, an Offline Charging System (OFCS) or a Charging Gateway Functionality (CGF) in a 3GPP network. In the WiMAX network, the accounting server performs the accounting result of the charging related information of the user service flow according to the preset rule and the local routing, and uses the different rates for the local routing service flow and the non-local routing service flow to perform charging. Pre-set rules stipulate the local routing industry Information such as the rate used by the service flow and non-local routing service flows. In the 3GPP network, the accounting server performs charging on the service flow according to the charging result in the charging statistical information and the statistical result of the charging related information of the local service execution entity to the user service flow.
本发明实施例采用本地路由执行实体对本地路由业务流的计费相关信息 进行统计, 并通知计费服务器,使计费服务器能够对本地路由的业务流进行计 参阅图 4, 本发明另一实施例提供一种本地路由业务的计费方法, 该方法 适用于 wimax网络, 该方法具体包括:  The embodiment of the present invention uses the local routing execution entity to perform statistics on the charging related information of the local routing service flow, and notifies the charging server, so that the charging server can refer to the traffic flow of the local routing. Referring to FIG. 4, another implementation of the present invention An example provides a charging method for a local routing service, where the method is applicable to a wimax network, and the method specifically includes:
401、 当用户的一个或者多个业务流需要发生本地路由时, 计费代理向本 地路由执行实体发送计费上下文传递请求消息,该消息中包括用户的计费上下 文信息。  401. When one or more service flows of the user need to be locally routed, the charging proxy sends a charging context delivery request message to the local routing execution entity, where the message includes the user's charging context information.
其中, 该计费上下文传递请求消息可以是路径注册应答消息 The charging context delivery request message may be a path registration response message.
Path— Reg— Rsp。 Path—Reg— Rsp.
该用户的计费上下文信息包括: 上报时间间隔、 剩余上报时间等。 其中, 上报时间间隔表示每隔多少时间上报一次计费统计信息。剩余上报时间为距离 下一次上报计费信息更新请求消息的时间,即表示本地路由执行实体收到计费 上下文信息后,初次上报计费信息更新请求消息的时间。 比如上报时间间隔为 30s, 由于可能在执行本地路由之前, 该终端一直和外网中的终端进行通信, 所以计费代理一直对终端传向外网的业务流的计费相关信息进行统计 ,比如统 计该业务流的流量等,可能在上一次向计费服务器上报计费信息更新请求消息 的 20s后, 该用户有执行本地路由的业务流, 此时的剩余上报时间即为 10s, 表示本地路由执行实体 10s后初次上报携带计费统计信息的计费信息更新请 求消息, 以后就按照 30s的时间间隔进行上报。  The charging context information of the user includes: a reporting interval, a remaining reporting time, and the like. The reporting interval indicates that the accounting statistics are reported once every other time. The remaining reporting time is the time when the charging information update request message is reported next time, that is, the time when the local routing executing entity receives the charging context information and reports the charging information update request message for the first time. For example, the reporting interval is 30 s. Because the terminal may communicate with the terminal in the external network before the local routing is performed, the charging proxy always collects statistics on the charging related information of the service flow transmitted by the terminal to the external network. The traffic of the service flow is counted, and the service flow of the local route may be 10s after the last time the accounting information update request message is reported to the accounting server. The remaining reporting time is 10s, indicating the local route. After the execution entity 10s, the accounting information update request message carrying the accounting statistics information is reported for the first time, and then reported in the time interval of 30s.
其中,计费代理检测本地路由的方法可以通过现有技术实现,如通过对业 务流的目的 IP地址进行判断, 或通过接收到对该业务流本地路由的成功授权 指示等进行判断, 不影响本发明的实现。  The method for detecting the local route by the charging agent can be implemented by using the prior art, for example, by determining the destination IP address of the service flow, or by receiving a successful authorization indication of the local route of the service flow, etc., without affecting the present Implementation of the invention.
402、 本地路由执行实体接收到计费上下文传递请求消息后, 开始对用户 的业务流的计费相关信息进行统计。 具体的, 当用户有非本地路由业务流时, 该步骤中, 本地路由执行实体可 以仅对用户的本地路由业务流的计费相关信息进行统计,得到第一计费统计信 息,对用户的非本地路由业务流不进行统计,该用户的非本地路由业务流还是 由计费代理进行计费相关信息的统计; 或者,本地路由执行实体不仅对用户的 本地路由业务流的计费相关信息进行统计,得到第一计费统计信息,还对用户 的非本地路由业务流的计费相关信息进行统计,得到第二计费统计信息,这样 就不需要计费代理再对该用户的非本地路由业务流的计费相关信息进行统计 了。 其中, 第一计费统计信息包括: 对用户的本地路由业务流的计费相关信息 的统计结果, 可选的, 其还可以包括本地路由指示, 其还可以包括本地路由的 业务流的 ID。 其中, 第二计费统计信息包括: 对用户的非本地路由业务流的 计费相关信息的统计结果, 可选的, 其还可以包括非本地路由指示, 其还可以 包括非本地路由的业务流的 ID。 需要说明的是, 如果本地路由执行实体对用 户的本地路由业务流和非本地路由业务流的计费相关信息都进行统计了,则第 一计费统计信息中一定包括本地路由指示,第二计费统计信息中一定包括非本 地路由指示。 402. After receiving the charging context delivery request message, the local routing execution entity starts to collect statistics about the charging related information of the service flow of the user. Specifically, when the user has a non-local routing service flow, in this step, the local routing execution entity may perform statistics only on the charging related information of the local routing service flow of the user, and obtain the first charging statistical information, which is not for the user. The local routing service flow is not counted, and the non-local routing service flow of the user is still counted by the charging agent for charging related information; or the local routing executing entity not only performs statistics on the charging related information of the user's local routing service flow. Obtaining the first charging statistical information, and performing statistics on the charging related information of the non-local routing service flow of the user, to obtain the second charging statistical information, so that the charging agent does not need the non-local routing service for the user. The billing related information of the stream is counted. The first charging statistics information includes: a statistical result of the charging related information of the local routing service flow of the user. Optionally, the method further includes a local routing indication, which may further include an ID of the locally routed service flow. The second charging statistics information includes: a statistical result of the charging related information of the non-local routing service flow of the user, optionally, the non-local routing indication, which may also include the non-local routing service flow. ID. It should be noted that, if the local routing execution entity performs statistics on the local routing service flow of the user and the charging related information of the non-local routing service flow, the first charging statistical information must include the local routing indication, and the second accounting The fee statistics must include non-local routing indications.
其中,第一计费统计信息可以包括对用户的一个或多个本地路由业务流的 计费相关信息的统计结果,当第一计费统计信息包括多个本地路由业务流的计 费相关信息的统计结果时,该第一计费统计信息需要包括本地路由的业务流的 ID。 这样, 如果不同的业务流有不同的资费标准, 则计费服务器收到第一计费 统计信息之后, 根据各业务流的 ID和对相应业务流的计费相关信息的统计结 果, 对各业务流进行计费。 同理, 所述第二计费统计信息可以包括对用户的一 个或多个非本地路由业务流的计费相关信息的统计结果,当第二计费统计信息 包括多个非本地路由业务流的计费相关信息的统计结果时,该第二计费统计信 息需要包括非本地路由业务流的 ID。  The first charging statistic information may include a statistic result of charging related information of one or more local routing service flows of the user, where the first charging statistic information includes charging related information of multiple local routing service flows. When the statistics result, the first charging statistics information needs to include the ID of the service flow of the local route. In this way, if the different service flows have different tariff standards, after the accounting server receives the first charging statistical information, according to the statistics of the ID of each service flow and the charging related information of the corresponding service flow, each service is used. The flow is billed. Similarly, the second charging statistics information may include statistics results of charging related information of one or more non-local routing service flows of the user, where the second charging statistics information includes multiple non-local routing service flows. When the statistics result of the charging related information, the second charging statistical information needs to include the ID of the non-local routing service flow.
403、 本地路由执行实体向计费代理发送计费上下文传递应答消息。  403. The local route execution entity sends a charging context delivery response message to the charging proxy.
其中,计费上下文传递应答消息可以是路径注册确认消息 Path— Reg— Ack。 该步骤为可选步骤,且可以在步骤 402之前执行或者与步骤 402同时执行。 404、 计费代理向计费服务器发送计费信息更新请求消息, 将当前时间间 隔内非本地路由业务流的计费统计信息发送给计费服务器。 The charging context delivery response message may be a path registration confirmation message Path_Reg_Ack. This step is an optional step and may be performed prior to step 402 or concurrently with step 402. 404. The charging proxy sends a charging information update request message to the accounting server, and the current time interval is The accounting statistics of the non-local routing service flow in the interval are sent to the accounting server.
其中, 该步骤中的计费信息更新请求消息可以是流量更新消息 The charging information update request message in the step may be a traffic update message.
Bulk— Interim— Update。 Bulk—Interim—Update.
该步骤为可选步骤。当步骤 402中本地路由执行实体对该用户的非本地路 由业务流的计费相关信息也进行统计时,则后续计费代理不再对该用户的业务 流的计费相关信息进行统计了 ,也将不再针对该用户上报计费信息更新请求消  This step is an optional step. When the local routing execution entity performs the statistics on the charging related information of the non-local routing service flow of the user in step 402, the subsequent charging proxy no longer counts the charging related information of the service flow of the user. The user will no longer report the billing information update request for the user.
405、 计费服务器返回计费信息更新应答消息给计费代理。 405. The charging server returns a charging information update response message to the charging proxy.
其中 , 计费信息更新应答消息可以是流量更新确认消息 Bulk— Interim— Update— Ack;。  The charging information update response message may be a traffic update confirmation message Bulk_Interim_Update_Ack;.
该步骤为可选步骤。  This step is an optional step.
406、 本地路由执行实体根据计费上下文信息, 定期向计费服务器发送计 费信息更新请求消息。  406. The local route execution entity periodically sends a billing information update request message to the billing server according to the billing context information.
该步骤中,本地路由执行实体根据上报时间间隔、剩余上报时间等向计费 服务器发送计费信息更新请求消息。 假定剩余上报时间为 10s, 上报时间间隔 为 30s, 则该本地路由执行实体在 10s后第一次向计费服务器发送该用户的计 费信息更新请求消息, 以后每隔 30s发送一次。  In this step, the local route execution entity sends a charging information update request message to the charging server according to the reporting time interval and the remaining reporting time. Assuming that the remaining reporting time is 10s and the reporting interval is 30s, the local routing executing entity sends the user's charging information update request message to the accounting server for the first time after 10s, and then sends it every 30s.
当本地路由执行实体对该用户的所有业务流的计费相关信息进行统计时, 该计费信息更新请求消息可以包括: 第一计费统计信息和第二计费统计信息。 当本地路由执行实体仅对该用户的本地路由业务流的计费相关信息进行统计 时, 该计费信息更新请求消息仅包括: 第一计费统计信息。 其中, 该计费信息 更新请求消息可以由本地路由执行实体通过计费代理转发给计费服务器。  When the local routing execution entity performs statistics on the charging related information of all the 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 the accounting related information of the local routing service flow of the user, the charging information update request message includes only: the first charging statistical information. The charging information update request message may be forwarded by the local routing execution entity to the charging server through the charging proxy.
其中,该步骤中本地路由执行实体可以直接向计费服务器发送计费信息更 新请求消息, 或者通过计费客户端发送计费信息更新请求, 具体的, 本地路由 执行实体向计费客户端发送携带计费统计信息的流量更新消息 Bulk— Interim— Update, 然后计费客户端向计费服务器发送携带计费统计信息的 计费请求消息 Accounting Request; 或者, 本地路由执行实体通过计费代理向 计费服务器发送计费信息更新请求,具体的,本地路由执行实体向计费代理发 送携带计费统计信息的流量更新消息 Bulk— Interim— Update,然后由计费代理向 计费服务器发送该计费统计信息; 或者, 本地路由执行实体通过计费代理、 计 费客户端向计费服务器发送计费信息更新请求,具体的,本地路由执行实体向 计费代理发送携带计费统计信息的流量更新消息 Bulk— Interim— Update,然后计 费代理将携带计费统计信息的流量更新消息 Bulk— Interim— Update上报给计费 客户端,然后计费客户端向计费服务器发送携带上述计费统计信息的计费请求 消息 Accounting Request;。 The local route execution entity may send a charging information update request message to the accounting server, or send the charging information update request by the charging client. In this step, the local routing executing entity sends the charging information to the charging client. The traffic update message Bulk_Interim_Update of the charging statistics information, and then the charging client sends an accounting request message carrying the charging statistics information to the charging server; or, the local routing executing entity charges the accounting agent through the charging agent. The server sends a charging information update request, and specifically, the local routing executing entity sends the charging proxy to the charging proxy. Sending a traffic update message Bulk_Interim_Update carrying the charging statistics information, and then the charging proxy sends the charging statistical information to the charging server; or, the local routing executing entity charges to the charging proxy through the charging proxy The server sends a charging information update request. Specifically, the local routing executing entity sends a traffic update message Bulk_Interim_Update carrying the charging statistical information to the charging proxy, and then the charging proxy will carry the traffic update message Bulk of the charging statistical information. The Interim-Update is reported to the charging client, and then the charging client sends an accounting request message Accounting Request; carrying the charging statistics to the charging server.
407、 计费服务器返回计费信息更新应答消息给本地路由执行实体, 并实 现对本地路由业务流的计费。  407. The accounting server returns a charging information update response message to the local routing executing entity, and implements charging for the local routing service flow.
具体的,计费服务器按照预设规则,根据第一计费统计信息中的本地路由 指示,确定该第一计费统计信息中的统计结果为对本地路由业务流的计费统计 结果, 根据该第一计费统计信息, 按照预设规则中的本地路由业务流的资费, 对本地路由业务流进行计费,当第一计费统计信息中包括对多个本地路由业务 流的计费相关信息的统计结果和本地路由业务流的 ID时, 根据预设规则中的 各本地路由业务流的资费,对各本地路由业务流进行计费;根据第二计费统计 信息中的非本地路由指示,确定该第二计费统计信息中的统计结果为对非本地 路由业务流的计费统计结果,根据该第二计费统计信息,按照预设规则中的非 本地路由业务流的资费,对该用户的非本地路由业务流进行计费, 当第二计费 统计信息中包括对多个非本地路由业务流的计费相关信息的统计结果和非本 地路由业务流的 ID时, 根据预设规则中的各非本地路由业务流的资费, 对各 非本地路由业务流进行计费。  Specifically, the accounting server determines, according to the preset rule, that the statistics result in the first charging statistics information is a charging statistics result of the local routing service flow, according to the local routing indication in the first charging statistics information, according to the The first accounting statistics information is used to charge the local routing service flow according to the tariff of the local routing service flow in the preset rule, and the first charging statistical information includes charging related information for multiple local routing service flows. The statistics result and the ID of the local routing service flow, according to the tariff of each local routing service flow in the preset rule, the local routing service flow is charged; according to the non-local routing indication in the second charging statistical information, Determining, by the second accounting information, a 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, The non-local routing service flow of the user performs charging, and the second charging statistical information includes charging related information for multiple non-local routing service flows. When the statistics result and the ID of the non-local routing service flow, the non-local routing service flows are charged according to the tariffs of the non-local routing service flows in the preset rule.
其中,该计费信息更新应答消息可以直接发送给本地路由执行实体,也可 以通过计费代理转发给本地路由执行实体。  The charging information update response message may be directly sent to the local routing execution entity, or may be forwarded to the local routing executing entity by the charging proxy.
本发明实施例采用本地路由执行实体对本地路由业务流的计费相关信息 进行统计, 并直接通知或者通过计费代理通知计费服务器,使计费服务器能够 对本地路由的业务流进行计费。  In the embodiment of the present invention, the local routing execution entity performs statistics on the charging related information of the local routing service flow, and directly notifies or notifies the charging server through the charging proxy, so that the charging server can charge the locally routed service flow.
为使本发明提供的技术方案更加清楚明白,如下实施例将对本发明提供的 技术方案进行详细技术。 图 5示出了本发明一实施例提供的本地路由业务的计费方法, 该方法中本 地路由执行实体位于 WiMAX网络中的服务网关上, 计费代理位于锚定接入网 关上,服务网关直接将计费统计信息发送给计费客户端, 然后由计费客户端上 报给计费服务器, 该实施例中计费服务器是 AAA服务器, 该方法具体包括: 501、 终端向基站发送动态业务流增加请求消息 DSA-REQ, 以请求建立用 于传输业务流的无线承载。 In order to make the technical solutions provided by the present invention more clear, the following embodiments will provide detailed technical solutions to the technical solutions provided by the present invention. FIG. 5 is a diagram showing a charging method of a local routing service according to an embodiment of the present invention. In this method, a local routing execution entity is located on a serving gateway in a WiMAX network, and a charging proxy is located on an anchor access gateway, and the serving gateway directly The billing statistics are sent to the billing client, and then reported by the billing client to the billing server. In this embodiment, the billing server is an AAA server, and the method specifically includes: 501. The terminal sends a dynamic service flow to the base station. The message DSA-REQ is requested to request the establishment of a radio bearer for transporting the traffic flow.
其中 ,该业务流增加请求消息中包括业务流信息,比如业务流 IP五元组等, 其中, 业务流 IP五元组包括源 IP地址、 目的 IP地址、 源端口号、 目的端口号和 协议类型。  The service flow increase request message includes service flow information, such as a service flow IP quintuple, where the service flow IP quintuple includes a source IP address, a destination IP address, a source port number, a destination port number, and a protocol type. .
502、基站向终端发送动态业务流增加接收消息 DSA-RVD,该消息表示基 站已经收到该动态业务流增加请求消息。  502. The base station sends a dynamic service flow to the terminal to add a receiving message DSA-RVD, where 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 to establish a network bearer for transmitting the service flow, where the message includes the 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 to request to establish a network bearer for transmitting the service flow.
505、锚定接入网关根据业务流的 IP五元组信息, 判断得到与该终端通信 的对端也位于该服务网关下,可以对该业务流执行本地路由,锚定接入网关向 错定业务流授权实体(Anchor Service Flow Authorization, Anchor SFA )发送 资源保留请求消息 RR— Req, 该资源保留请求消息中可以包括执行本地路由的 指示信息。  505. The anchor access gateway determines, according to the IP quintuple information of the service flow, that the peer end communicating with the terminal is also located under the service gateway, and performing local routing on the service flow, and anchoring the access gateway to the wrong The Service Flow Authorization (ARP) sends a resource reservation request message RR_Req, and the resource reservation request message may include indication information for performing local routing.
506、 锚定业务流授权实体根据用户的签约信息、 运营商的策略及业务信 息等, 确定用户请求传输的业务流的带宽、 时延等 QoS信息, 锚定业务流授 权实体向锚定接入网关返回资源保留应答消息 RR— Rsp, 该消息中包括该业务 流的 QoS信息。  506. The anchor service flow authorization entity determines QoS information such as bandwidth and delay of the service flow requested by the user according to the subscription information of the user, the policy of the operator, and the service information, and anchors the service flow authorization entity to anchor access. The gateway returns a resource reservation response message RR_Rsp, and the message includes QoS information of the service flow.
可选的, 如果资源保留请求消息中包括执行本地路由的指示信息, 则在该 步骤中,锚定业务流授权实体根据用户的签约信息、运营商的策略及业务信息 等,确定是否允许该业务流执行本地路由, 并在资源保留应答消息中携带表示 是否允许该业务流执行本地路由的指示信息。  Optionally, if the resource reservation request message includes the indication information for performing the local route, in this step, the anchor service flow authorization entity determines whether to allow the service according to the subscription information of the user, the policy of the operator, and the service information. The flow performs the local route, and carries the indication information indicating whether the service flow is allowed to perform the local route 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 serving gateway, where The path registration response message includes charging context information, where the charging context information may include a reporting time interval, a remaining reporting time, and the like, and the charging context information may further include a local routing charging indication.
其中,上报时间间隔表示每隔多少时间上报一次计费统计信息。 剩余上报 时间为距离下一次上报流量更新消息的时间,该实施例中表示服务网关收到计 费上下文信息后, 初次上 4艮流量更新消息的时间。 比如上 时间间隔为 30s, 由于可能在执行本地路由之前,该终端一直和外网中的终端进行通信, 所以锚 定接入网关中的计费代理一直对终端传向外网的业务流的计费相关信息进行 统计, 比如统计该业务流的流量等,可能在上一次向计费服务器上报流量更新 消息的 20s后, 该用户有执行本地路由的业务流, 此时的剩余上报时间即为 10s, 表示服务网关 10s后初次上报携带计费统计信息的流量更新消息, 以后 就按照 30s的时间间隔进行上报。  The reporting interval indicates that the accounting statistics are reported once every other time. The remaining reporting time is the time from the next reporting of the traffic update message. In this embodiment, the time when the service gateway receives the charging context information and the first time the traffic update message is received. For example, the upper time interval is 30 s. Since the terminal may communicate with the terminal in the external network before the local route is executed, the charging proxy in the anchor access gateway always reports the traffic flow of the terminal to the external network. The fee-related information is collected, for example, the traffic of the service flow is counted. After the traffic update message is reported to the accounting server for the last 20 seconds, the user has a service flow for performing local routing. The remaining reporting time is 10s. After the service gateway 10s, the traffic update message carrying the accounting statistics is reported for the first time, and then reported in the time interval of 30s.
508、 服务网关接收到计费上下文信息后, 开始对用户的业务流的计费相 关信息进行统计, 以得到计费统计信息。服务网关向基站发送路径注册应答消 息 Path— Reg— Rsp。  508. After receiving the charging context information, the serving gateway starts to collect statistics on the charging related information of the service flow of the user, to obtain charging statistical 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, the service gateway may perform statistics only on the charging related information of the local routing service flow of the user, and obtain the first charging statistical information, and the non-local routing service flow of the user is not The statistic is performed, and the non-local routing service flow of the user is still statistic of the charging related information by the charging proxy; or the serving gateway not only performs statistics on the charging related information of the local routing service flow of the user, but also obtains the first charging statistic. The information also collects the charging related information of the non-local routing service flow of the user, and obtains the second charging statistical information, so that the charging proxy in the access gateway does not need to be anchored to the non-local routing service of the user. The billing related information of the stream is counted. For the first accounting statistics and the second accounting statistics, refer to the related description in step 402, and details are not described herein.
其中, 业务流的计费相关信息可以包括: 业务报文数、 业务报文的字节数 等。  The charging related information of the service flow may include: the number of service packets, the number of bytes of service packets, and the like.
509、 基站完成空口资源分配, 向终端发送动态业务流增加应答消息 DSA-RSP。  509. The base station completes the allocation of the air interface resource, 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 increase confirmation message DSA-ACK to the base station, indicating that the completion is empty. The port service flow bearer is established.
511、 基站向服务网关发送路径注册确认消息 Path— Reg— Ack。  511. The base station sends a path registration confirmation message Path_Reg_Ack to the serving gateway.
512、 服务网关向锚定接入网关发送路径注册确认消息 Path— Reg— Ack, 表 示完成网络侧业务流承载建立。  512. The serving gateway sends a path registration confirmation message Path_Reg_Ack to the anchor access gateway, indicating that the network side service flow bearer establishment is completed.
513、 锚定接入网关向锚定业务流授权实体发送资源保留确认消息 513. The anchor access gateway sends a resource reservation acknowledgement message to the anchor service flow authorization entity.
RR_Ack, 以通知锚定业务流授权实体业务流的无线承载已建立。 RR_Ack, to inform the anchoring service flow, that the radio bearer of the authorized entity service flow has been established.
514、锚定接入网关发送流量更新消息 Bulk— Interim— Update到计费客户端, 该消息中携带新的计费代理的标识(即服务网关的标识)。  514. The anchor access gateway sends a traffic update message. Bulk—Interim—Updates to the charging client, where the message carries the identifier of the new charging proxy (ie, the identifier of the serving gateway).
当服务网关不仅对用户的本地路由业务流的计费相关信息进行统计,还对 用户的非本地路由业务流的计费相关信息进行统计时,则流量更新消息中携带 该新的计费代理的标识用于通知计费客户端,计费代理已经发生迁移,后续由 服务网关做计费代理。  When the serving gateway not only counts the charging related information of the local routing service flow of the user, but also collects the charging related information of the non-local routing service flow of the user, the traffic update message carries the new charging proxy. The identifier is used to notify the charging client that the charging proxy has been migrated, and the charging gateway is subsequently used by the serving gateway.
如果当服务网关只对用户的本地路由业务流的计费相关信息进行统计时, 则流量更新消息中携带该新的计费代理的标识用于通知计费客户端有新的计 费代理加入。  If the service gateway only collects statistics about the charging related information of the user's local routing service flow, the traffic update message carries the identifier of the new charging proxy to notify the charging client that a new charging proxy has joined.
515、 计费客户端向锚定接入网关发送流量更新确认消息 Bulk— Interim— Update— Ack;。  515. The charging client sends a traffic update confirmation message to the anchor access gateway. Bulk—Interim—Update—Ack;.
516、 服务网关根据计费上下文信息, 定期向计费客户端发送流量更新消 息 Bulk— Interim— Update , 该流量更新消息中包括计费统计信息。  516. The serving gateway periodically sends a traffic update message Bulk_Interim_Update to the charging client according to the charging context information, where the traffic update message includes charging statistics.
该步骤中,服务网关根据上报时间间隔、剩余上报时间等向计费客户端发 送流量更新消息。 假定剩余上报时间为 10s, 上报时间间隔为 30s, 则该服务 网关在 10s后第一次向计费客户端发送流量更新消息,以后每隔 30s发送一次。  In this step, the serving gateway sends a traffic update message to the charging client according to the reporting interval and the remaining reporting time. Assuming that the remaining reporting time is 10s and the reporting interval is 30s, the service gateway sends a traffic update message to the accounting client for the first time after 10s, and then sends it every 30s.
当服务网关对该用户的所有业务流的计费相关信息进行统计时, 该流量 更新消息可以包括: 第一计费统计信息和第二计费统计信息; 当服务网关仅对 用户的本地路由业务流的计费相关信息进行统计时,则该流量更新消息包括第 一计费统计信息。  When the serving gateway performs statistics on the charging related information of all the service flows of the user, the traffic update message may include: first charging statistics information and second charging statistics information; when the serving gateway only localizes the service to the user 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 to the service gateway Bulk—Interim—Update—Ack;.
518、 计费客户端向 AAA服务器发送计费请求消息 Accounting Request, 该计费请求消息中携带上述计费统计信息。 518. The charging client sends an accounting request message to the AAA server, The charging request message carries the foregoing charging statistical information.
519、 AAA服务器根据计费统计信息, 完成对用户的一次计费, 并向计费 客户端返回计费接受消息 Accounting Accept。  519. The AAA server completes one-time charging for the user according to the charging statistics, and returns a charging acceptance message Accounting Accept to the charging client.
具体的, AAA服务器如何对用户进行计费具体参见步骤 407的相关描述, 在此不再赘述。  For details, how to charge the user to the AAA server is described in detail in step 407, and details are not described herein.
本发明实施例在用户的业务流发生本地路由时,服务网关获取用户计费上 下文, 并对业务流的计费相关信息进行统计, 并上报计费统计信息, 使得计费 服务器能够根据计费统计信息对本地路由业务实现计费统计和话单生成。  In the embodiment of the present invention, the service gateway obtains the user charging context, and collects the accounting related information of the service flow, and reports the accounting statistics, so that the accounting server can perform accounting statistics according to the charging statistics. The information implements accounting statistics and bill generation for the local routing service.
图 6示出了本发明另一实施例提供的本地路由业务的计费方法, 该方法中 本地路由执行实体位于 WiMAX网络中的基站上 , 计费代理位于锚定接入网关 上,基站将本地路由业务流的计费统计信息发送给位于锚定接入网关的计费代 理, 由计费代理发送给计费客户端, 然后由计费客户端上报给计费服务器, 该 实施例中计费服务器是 AAA服务器, 该方法具体包括:  FIG. 6 is a diagram showing a charging method of a local routing service according to another embodiment of the present invention. In this method, a local routing execution entity is located on a base station in a WiMAX network, and a charging proxy is located on an anchor access gateway, and the base station is local. The charging statistic information of the routing service flow is sent to the charging proxy located at the anchoring access gateway, and is sent by the charging proxy to the charging client, and then reported by the charging client to the charging server, and the charging is performed in this embodiment. The server is an AAA server, and the method specifically includes:
601-607与 501-507相同, 在此不再赞述。  601-607 is the same as 501-507 and will not be mentioned 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 the allocation of the air interface resource, 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 increase acknowledgement message DSA-ACK to the base station, indicating that the bearer service flow bearer establishment is completed.
611、 基站可以开始对用户的业务流的计费相关信息进行统计, 以得到计 费统计信息。 基站向服务网关发送路径注册确认消息 Path— Reg— Ack。  611. The base station may start to perform statistics on charging related information of the service flow of the user, to obtain accounting statistics. The base station sends a path registration confirmation message Path_Reg_Ack to the serving gateway.
当用户有非本地路由业务流时,该步骤中,基站可以仅对用户的本地路由 业务流的计费相关信息进行统计,得到第一计费统计信息,对用户的非本地路 由业务流不进行统计,该用户的非本地路由业务流还是由计费代理进行计费相 关信息的统计; 或者,基站不仅对用户的本地路由业务流的计费相关信息进行 统计,得到第一计费统计信息,还对用户的非本地路由业务流的计费相关信息 进行统计,得到第二计费统计信息,这样就不需要锚定接入网关中的计费代理 再对该用户的非本地路由业务流的计费相关信息进行统计了。 612、 服务网关向锚定接入网关发送路径注册确认消息 Path— Reg— Ack, 表 示完成网络侧业务流承载建立。 When the user has a non-local routing service flow, the base station may perform statistics only on the charging related information of the local routing service flow of the user, and obtain the first charging statistical information, and the non-local routing service flow of the user is not performed. Statistics, the non-local routing service flow of the user is still the statistics of the charging related information by the charging agent; or the base station not only statistics the charging related information of the local routing service flow of the user, but also obtains the first charging statistical information. The charging related information of the non-local routing service flow of the user is also counted, and the second charging statistical information is obtained, so that the charging proxy in the access gateway does not need to be anchored to the non-local routing service flow of the user. Billing related information is counted. 612. The serving gateway sends a path registration confirmation message Path_Reg_Ack to the anchor access gateway, indicating that the network side service flow bearer establishment is completed.
613、 锚定接入网关向锚定业务流授权实体发送资源保留确认消息 RR_Ack, 以通知锚定业务流授权实体业务流的承载已建立。  613. The anchor access gateway sends a resource reservation acknowledgement message RR_Ack to the anchor service flow authorization entity to notify that the bearer of the anchor service flow authorization entity service flow has been established.
614、 基站根据计费上下文信息, 定期向锚定接入网关发送流量更新消息 614. The base station periodically sends a traffic update message to the anchor access gateway according to the charging context information.
Bulk— Interim— Update , 该流量更新消息中携带计费统计信息; 该消息可以通过 服务网关转发给锚定接入网关。 Bulk—Interim—Update, the traffic update message carries the charging statistics information; the message can 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 a traffic update message for the first time after 10s, and then sends it every 30s.
当基站对该用户的所有业务流的计费相关信息进行统计时 , 该流量更新 消息可以包括: 第一计费统计信息和第二计费统计信息。 当基站对该用户的本 地路由业务流的计费相关信息进行统计时,该流量更新消息包括: 第一计费统 计信息。  When the base station performs statistics on the charging related information of all the service flows of the user, the traffic update message may include: first charging statistics information and second charging statistics information. When the base station performs statistics on the charging related information of the local routing service flow of the user, the traffic update message includes: first charging statistics information.
615、 锚定接入网关中的计费代理通过服务网关向基站发送流量更新确认 消息 Bulk— Interim— Update— Ack;。  615. The charging proxy in the anchor access gateway sends a traffic update confirmation message to the base station through the serving gateway. Bulk—Interim—Update—Ack;.
616、 锚定接入网关中的计费代理将携带计费统计信息的流量更新消息 Bulk— Interim— Update上报给计费客户端。  616. The charging proxy in the anchor access gateway reports the traffic update message Bulk_Interim_Update carrying the charging statistics to the charging client.
617、 计费客户端向锚定接入网关中的计费代理发送流量更新确认消息 Bulk— Interim— Update— Ack;。  617. The charging client sends a traffic update confirmation message to the charging proxy in the anchor access gateway. Bulk—Interim—Update—Ack;.
618、 计费客户端向 AAA服务器发送计费请求消息 Accounting Request, 该计费请求消息中携带上述计费统计信息。  618. The charging client sends an accounting request message to the AAA server, where the charging request message carries the charging statistics information.
619、 AAA服务器根据计费统计信息, 完成对用户的一次计费, 并向计费 客户端返回计费接受消息 Accounting Accept。  619. The AAA server completes one-time charging for the user according to the charging statistics, and returns a charging acceptance message Accounting Accept to the charging client.
具体的, AAA服务器如何对用户进行计费具体参见步骤 407的相关描述, 在此不再赘述。  For details, how to charge the user to the AAA server is described in detail in step 407, and details are not described herein.
本发明实施例在用户的业务流发生本地路由时, 基站获取用户计费上下 文, 并对业务流的计费相关信息进行统计, 并上报计费统计信息, 使得计费服 务器能够 ^居计费统计信息对本地路由业务实现计费统计和话单生成。 图 7示出了本发明又一实施例提供的本地路由业务的计费方法, 该方法中 本地路由执行实体位于 3GPP服务网关, 在本地路由发生前, 分组数据网网关 ( Packet Data Network Gateway, PDN-GW )执行计费信息统计功能, 本地路 由发生后 , 由服务网关对用户的本地路由的业务流的计费相关信息进行统计 , 服务网关直接将计费统计信息发送给计费网关功能实体(Charging Gateway Function, CGF ), 该方法具体包括: In the embodiment of the present invention, when the user's service flow is locally routed, the base station obtains the user charging context, and performs statistics on the charging related information of the service flow, and reports the charging statistical information, so that the charging server can calculate the charging statistics. The information implements accounting statistics and bill generation for the local routing service. FIG. 7 is a diagram showing a charging method of a local routing service according to another embodiment of the present invention. In this method, a local routing execution entity is located at a 3GPP serving gateway, and a packet data network gateway (PDN) is used before a local route occurs. -GW) Performs the accounting information statistics function. After the local route occurs, the service gateway collects the accounting related information of the local routed service flow of the user, and the service gateway directly sends the charging statistics information to the charging gateway function 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, where the create PDP context request message includes service flow information, such as a service flow IP quintuple, where the service flow IP quintuple includes a source IP address and a destination IP address. Address, source port number, destination port number, and protocol type.
702、 PDN-GW根据业务流 IP五元组, 判断得到与该终端通信的对端与该 终端位于同一服务网关下, 可以对该业务流执行本地路由, 通过创建 PDP上下 文应答消息将用户的计费上下文信息通知服务网关。  702. The PDN-GW determines, according to the service flow IP quintuple, that the peer end that communicates with the terminal is located at the same serving gateway as the terminal, and may perform local routing on the service flow, and the user calculates the PDP context response message. The fee context information informs the service gateway.
其中, 计费上下文信息可以包括计费标识、 计费网关功能实体地址等, 其 中,计费标识表示业务流的计费模型,该计费上下文信息中还可以包括本地路 由计费指示。  The charging context information may include a charging identifier, a charging gateway function entity address, and the like, where the charging identifier indicates a charging model of the service flow, and the charging context information may further include a local routing charging indication.
需要说明的是,如果网络配置成由服务网关对用户的所有业务流的计费相 关信息进行统计,则该步骤中的计费上下文信息就包括该用户的各业务流对应 的计费标识;如果网络配置成由服务网关仅对用户的本地路由业务流的计费相 关信息进行统计,则该步骤中的计费上下文信息包括本地路由业务流对应的计 费标识就可以了。  It should be noted that, if the network is configured to perform statistics on the charging related information of all the service flows of the user by the serving gateway, the charging context information in the step includes the charging identifier corresponding to each service flow of the user; The network is configured to collect statistics on the charging related information of the local routing service flow of the user by the serving gateway, and the charging context information in the step includes the charging identifier corresponding to the local routing service flow.
703、 服务网关接收到计费上下文信息后, 开始对用户的业务流的计费相 关信息进行统计, 据计费上下文信息中的计费网关功能实体地址,将计费统 计信息通过数据记录传递请求消息 Data Record Transfer Request上报给 CGF。其 中,计费统计信息包括: 对用户的业务流的计费相关信息的统计结果和该业务 流的计费标识。  703. After receiving the charging context information, the serving gateway starts to collect statistics about the charging related information of the service flow of the user, and sends the charging statistical information through the data record according to the charging gateway function entity address in the charging context information. The message Data Record Transfer Request is reported to the CGF. The accounting statistics information includes: a statistical result of the charging related information of the service flow of the user and a charging identifier of the service flow.
当用户有非本地路由业务流时,该步骤中,服务网关可以仅对用户的本地 路由业务流的计费相关信息进行统计,得到第一计费统计信息,对用户的非本 地路由业务流不进行统计,该用户的非本地路由业务流还是由计费代理进行计 费相关信息的统计; 或者,服务网关不仅对用户的本地路由业务流的计费相关 信息进行统计,得到第一计费统计信息,还对用户的非本地路由业务流的计费 相关信息进行统计, 得到第二计费统计信息, 这样就不需要 PDN GW再对该 用户的非本地路由业务流的计费相关信息进行统计了。 When the user has a non-local routing service flow, the service gateway may perform statistics only on the charging related information of the local routing service flow of the user, and obtain the first charging statistical information, and the non-local routing service flow of the user is not Statistics are performed, and the non-local routing service flow of the user is still counted by the charging agent for charging related information; or the serving gateway is not only related to the charging of the local routing service flow of the user. The information is collected to obtain the first charging statistical information, and the charging related information of the non-local routing service flow of the user is also collected, and the second charging statistical information is obtained, so that the PDN GW is not required to be non-local to the user. The billing related information of the routing service flow is counted.
当服务网关对该用户的所有业务流的计费相关信息进行统计时, 该数据 记录传递请求消息 Data Record Transfer Request可以包括: 第一计费统计信息 和第二计费统计信息; 第一计费统计信息包括: 本地路由的业务流对应的计费 标识和对本地路由的业务流的计费相关信息的统计结果;第二计费统计信息包 括:非本地路由的业务流对应的计费标识和对非本地路由的业务流的计费相关 信息的统计结果。当服务网关仅对该用户的本地路由业务流的计费相关信息进 行统计时, 该数据记录传递请求消息 Data Record Transfer Request仅包括: 第 一计费统计信息。  When the service gateway collects the charging related information of all the service flows of the user, the data record transfer request message may include: first charging statistics information and second charging statistics information; The statistics information includes: a charging identifier corresponding to the service flow of the local route and a statistics result of the charging related information of the service flow of the local route; the second charging statistics information includes: a charging identifier corresponding to the service flow of the non-local route The statistical result of the billing related information for the service flow of the non-local route. When the serving gateway only counts the charging related information of the local routing service flow of the user, the data record transfer request message only includes: the first charging statistical information.
其中,第一计费统计信息可以包括对用户的一个或多个本地路由业务流的 计费相关信息的统计结果,所述第二计费统计信息可以包括对用户的一个或多 个非本地路由业务流的计费相关信息的统计结果。  The first charging statistics information may include statistics results of charging related information of one or more local routing service flows of the user, and the second charging statistics information may include one or more non-local routes to the user. The statistical result of the billing related information of the service flow.
704、 CGF根据计费统计信息, 完成对用户的一次计费, 并向服务网关返 回数据记录传递响应消息 Data Record Transfer Response消息。  704. The CGF completes one-time charging for the user according to the charging statistics information, and returns a data record delivery response message Data Record Transfer Response message to the service gateway.
具体的, CGF才 据计费统计信息中业务流对应的计费标识, 采用该计费 标识对应的资费对相应的业务流进行计费; 具体的, ^居第一计费统计信息中 的本地路由的业务流对应的计费标识,采用该计费标识对应的资费和对本地路 由的业务流的计费相关信息的统计结果,对本地路由业务流进行计费;根据第 二计费统计信息中的非本地路由的业务流对应的计费标识,采用该计费标识对 应的资费和对非本地路由的业务流的计费相关信息的统计结果,对非本地路由 业务流进行计费。  Specifically, the CGF charges the corresponding service flow according to the charging identifier corresponding to the service flow in the charging statistics information; specifically, the local accounting in the first charging statistical information The billing identifier corresponding to the service flow of the route, and the statistics of the billing identifier corresponding to the billing identifier and the billing related information of the service flow of the local route, the billing of the local routing service flow; according to the second billing statistics The charging identifier corresponding to the traffic flow of the non-local route is used to charge the non-local routing service flow by using the statistics corresponding to the charging identifier and the charging related information of the service flow of the non-local routing.
本发明实施例在用户的业务流发生本地路由时, 3GPP网络中的服务网关 获取用户计费上下文,对业务流的计费相关信息进行统计, 并上 计费统计信 息 ,使得计费服务器能够根据计费统计信息对本地路由业务实现计费统计和话 单生成。  In the embodiment of the present invention, when the user's service flow is locally routed, the service gateway in the 3GPP network obtains the user charging context, performs statistics on the charging related information of the service flow, and uploads accounting statistics, so that the charging server can The accounting statistics are used to implement accounting statistics and bill generation for the local routing service.
参阅图 8, 本发明实施例提供一种本地路由执行实体, 该实体可以位于 WiMAX网络中的基站或者服务网关或者锚定接入网关中, 或者, 该实体位于 3GPP网络中的服务网关中, 该实体包括: Referring to FIG. 8, an embodiment of the present invention provides a local routing execution entity, where the entity may be located in a base station or a serving gateway or an anchor access gateway in a WiMAX network, or the entity is located. In the service gateway in the 3GPP network, the entity includes:
本地路由业务流信息统计单元 801 , 用于对用户本地路由的业务流的计费 相关信息进行统计, 得到第一计费统计信息; 其中, 第一计费统计信息包括本 地路由业务流信息统计单元 801对用户本地路由的业务流的计费相关信息的统 计结果, 第一计费统计信息还可以包括本地路由指示。  The local routing service flow information statistics unit 801 is configured to perform statistics on the charging related information of the service flow that is locally routed by the user, to obtain the first charging statistical information, where the first charging statistical information includes the local routing service flow information statistical unit. 801. The statistics result of the charging related information of the service flow that is locally routed by the user, where the first charging statistics information may further include a local routing indication.
发送单元 802, 用于发送所述第一计费统计信息, 使计费服务器根据所述 第一计费统计信息对本地路由的业务流进行计费。  The sending unit 802 is configured to send the first charging statistics, so that the charging server charges the locally routed service flow according to the first charging statistical information.
该实体还包括: 非本地路由业务流信息统计单元 803, 用于对用户非本地 路由的业务流的计费相关信息进行统计, 得到第二计费统计信息; 具体的, 发 送单元 802具体用于发送包括第一计费统计信息和第二计费统计信息的计费信 息更新请求消息; 其中, 所述第一计费统计信息包括本地路由指示和对用户本 地路由的业务流的计费相关信息的统计结果; 所述第二计费统计信息包括: 非 本地路由指示和对用户非本地路由的业务流的计费相关信息的统计结果。  The entity further includes: a non-local routing service flow information statistics unit 803, configured to perform statistics on the charging related information of the service flow that is not locally routed by the user, to obtain the second charging statistical information. Specifically, the sending unit 802 is specifically used to Sending a charging information update request message including the first charging statistical information and the second charging statistical information; wherein the first charging statistical information includes a local routing indication and charging related information of a service flow locally routed by the user The statistical result of the second charging statistics includes: a non-local routing indication and a statistical result of charging related information of a service flow that is not locally routed by the user.
为了获取计费上下文信息,该本地路由执行实体还包括: 上下文获取单元 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, the sending unit 802 is configured to send the first charging according to the charging context information. Statistics. In the 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; The charging context information includes a charging server address and a 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. The first charging statistics information includes: the charging identifier and a statistical result of charging related information of a service flow that is locally routed by the user.
如果非本地路由业务流信息统计单元 803对用户非本地路由的业务流的计 费相关信息进行统计了, 则该发送单元 802具体发送包括第一计费统计信息和 第二计费统计信息的计费信息更新请求消息。具体的,其可以直接向所述计费 服务器发送所述计费信息更新请求消息; 或者,通过计费代理向计费服务器发 送所述计费信息更新请求消息; 或者,通过计费客户端向计费服务器发送所述 计费信息更新请求消息。  If the non-local routing service flow information statistics unit 803 performs statistics on the charging related information of the service flow that is not locally routed by the user, the sending unit 802 specifically sends the information including the first charging statistical information and the second charging statistical information. Fee information update request message. Specifically, the billing information update request message may be sent to the billing server directly; or the billing information update request message may be sent to the billing server by the billing agent; or The charging server sends the charging information update request message.
本发明实施例采用本地路由执行实体对本地路由业务流的计费相关信息 进行统计, 并通知计费服务器,使计费服务器能够对本地路由的业务流进行计 参阅图 9, 本发明实施例提供一种网络系统, 该系统包括: The embodiment of the present invention uses the local routing execution entity to perform charging related information on the local routing service flow. The statistic is provided, and the accounting server is configured to enable the accounting server to perform the traffic flow of the local routing. Referring to FIG. 9, the embodiment of the present invention provides a network system, where the system includes:
本地路由执行实体 901, 用于对用户本地路由的业务流的计费相关信息进 行统计, 得到第一计费统计信息, 发送第一计费统计信息; 其中, 第一计费统 计信息包括本地路由执行实体对用户本地路由的业务流的计费相关信息的统 计结果, 第一计费统计信息还可以包括本地路由指示。  The local routing execution entity 901 is configured to perform statistics on the charging related information of the service flow that is locally routed by the user, to obtain the first charging statistical information, and send the first charging statistical information; where the first charging statistical information includes the local routing The statistic result of the charging related information of the service flow of the local route of the user, the first charging statistic information may further include a local routing indication.
计费服务器 902, 用于接收所述第一计费统计信息, 根据所述第一计费统 计信息对本地路由的业务流进行计费。  The accounting server 902 is configured to receive the first charging statistical information, and perform charging on the locally routed service flow according to the first charging statistical information.
其中,所述第一计费统计信息包括本地路由指示和对用户本地路由的业务 流的计费相关信息的统计结果;为了由同一个实体对该用户的计费相关信息进 行统计, 不再需要计费代理对该用户的非本地路由业务流进行统计, 则该本地 路由执行实体 901 , 还用于对用户非本地路由的业务流的计费相关信息进行统 计, 得到第二计费统计信息; 所述第二计费统计信息包括: 非本地路由指示和 对用户非本地路由的业务流的计费相关信息的统计结果; 计费服务器 902, 还 用于接收第二计费统计信息,根据所述第二计费统计信息对非本地路由的业务 流进行计费。  The first charging statistic information includes a local routing indication and a statistic result of the charging related information of the service flow that is locally routed by the user; in order to perform statistics on the charging related information of the user by the same entity, it is no longer needed. The accounting agent performs statistics on the non-local routing service flow of the user, and the local routing execution entity 901 is further configured to perform statistics on the charging related information of the service flow that is not locally routed by the user, to obtain the second charging statistical information. The second charging statistics information includes: a non-local routing indication and a statistical result of the charging related information of the service flow that is not locally routed by the user; the charging server 902 is further configured to receive the second charging statistical information, according to the The second charging statistics information is used to charge a service flow that is not locally routed.
其中,本地路由执行实体 901和计费服务器 902的具体功能和消息的传递方 式参见方法实施例部分的详细描述, 在此不再赞述。  The specific functions of the local routing execution entity 901 and the charging server 902 and the delivery manner of the message are described in detail in the method embodiment section, and are not described herein.
本发明实施例采用本地路由执行实体对本地路由业务流的计费相关信息 进行统计, 并通知计费服务器,使计费服务器能够对本地路由的业务流进行计 本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可 读存储介质中, 例如只读存储器, 磁盘或光盘等。  In the embodiment of the present invention, the local routing execution entity performs statistics on the charging related information of the local routing service flow, and notifies the charging server, so that the charging server can perform the local routing service flow. All or part of the steps of the embodiment method may be completed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium such as a read only memory, a magnetic disk or an optical disk.
以上对本发明实施例所提供的本地路由业务的计费方法、装置及网络系统 述, 以上实施例的说明只是用于帮助理解本发明的方法及其核心思想; 同时, 对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围 上均会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。 The foregoing description of the charging method, device, and network system of the local routing service provided by the embodiments of the present invention is only for assisting in understanding the method and core idea of the present invention. Meanwhile, for those skilled in the art. According to the idea of the present invention, in the specific embodiment and application range There is a change in the above, and the contents of the present specification should not be construed as limiting the invention.

Claims

权 利 要 求 Rights request
1、 一种本地路由业务的计费方法, 其特征在于, 包括:  A charging method for a local routing service, which is characterized by comprising:
本地路由执行实体对用户本地路由的业务流的计费相关信息进行统计,得 到第一计费统计信息;  The local routing execution entity performs statistics on the charging related information of the service flow of the local route of the user, and obtains the first charging statistical information;
发送所述第一计费统计信息,使计费服务器根据所述第一计费统计信息对 本地路由的业务流进行计费。  And sending the first charging statistics, so that the charging server charges the locally routed service flow according to the first charging statistical information.
2、 根据权利要求 1所述的方法, 其特征在于,  2. The method of claim 1 wherein
该方法还包括:  The method also includes:
所述本地路由执行实体获取计费上下文信息;  The local route execution entity acquires charging context information;
发送所述第一计费统计信息具体为:  The sending the first charging statistics information is specifically:
所述本地路由执行实体根据所述计费上下文信息 ,发送所述第一计费统计 信息。  The local route execution entity sends the first charging statistics according to the charging context information.
3、 根据权利要求 2所述的方法, 其特征在于,  3. The method of claim 2, wherein
所述本地路由执行实体获取计费上下文信息具体为:  The local routing execution entity obtains the charging context information specifically:
所述本地路由执行实体从计费代理获取计费上下文信息;  The local route execution entity acquires charging context information from a charging proxy;
或者,  Or,
所述本地路由执行实体从分组数据网网关获取计费上下文信息。  The local routing enforcement entity obtains charging context information from a packet data network gateway.
4、 根据权利要求 2所述的方法, 其特征在于,  4. The method of claim 2, wherein
所述计费上下文信息包括上报时间间隔;  The charging context information includes a reporting time interval;
发送所述第一计费统计信息具体为:  The sending the first charging statistics information is specifically:
所述本地路由执行实体根据所述计费上下文信息中的上报时间间隔 ,定期 发送所述第一计费统计信息; 所述第一计费统计信息包括: 对用户本地路由的 业务流的计费相关信息的统计结果, 或者, 所述第一计费统计信息包括: 本地 路由指示和对用户本地路由的业务流的计费相关信息的统计结果;  The local routing execution entity periodically sends the first charging statistics according to the reporting time interval in the charging context information; the first charging statistics information includes: charging the service flow locally routed by the user The statistical result of the related information, or the first charging statistical information includes: a local routing indication and a statistical result of charging related information of a service flow that is locally routed by the user;
或者,  Or,
所述计费上下文信息包括计费服务器地址和本地路由的业务流对应的计 费标识;  The charging context information includes a charging server address and a charging identifier corresponding to the service flow of the local route;
发送所述第一计费统计信息具体为:  The sending the first charging statistics information is specifically:
所述本地路由执行实体根据所述计费服务器地址,向所述计费服务器发送 所述第一计费统计信息, 所述第一计费统计信息包括: 所述计费标识和对用户 本地路由的业务流的计费相关信息的统计结果。 Sending, by the local routing execution entity, the charging server to the charging server according to the charging server address The first charging statistics information includes: the charging identifier and a statistical result of charging related information of a service flow that is locally routed by the user.
5、 根据权利要求 1所述的方法, 其特征在于,  5. The method of claim 1 wherein:
发送所述第一计费统计信息具体为:  The 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 message to the charging server through the charging proxy or
本地路由执行实体通过计费客户端向计费服务器发送所述第一计费统计 信息。  The local routing execution entity sends the first charging statistics information to the charging server by using the charging client.
6、 根据权利要求 1-5任一项所述的方法, 其特征在于,  6. A method according to any one of claims 1-5, characterized in that
该方法还包括:所述本地路由执行实体对用户非本地路由的业务流的计费 相关信息进行统计, 得到第二计费统计信息; 所述第二计费统计信息包括: 非 本地路由指示和对用户非本地路由的业务流的计费相关信息的统计结果;发送 所述第二计费统计信息。  The method further includes: the local routing execution entity performing statistics on the charging related information of the service flow that is not locally routed by the user, and obtaining the second charging statistical information; the second charging statistical information includes: a non-local routing indication And a statistical result of the charging related information of the service flow that is not locally routed by the user; and sending the second charging statistical information.
7、 一种本地路由执行实体, 其特征在于, 包括:  7. A local routing execution entity, comprising:
本地路由业务流信息统计单元,用于对用户本地路由的业务流的计费相关 信息进行统计, 得到第一计费统计信息;  The local routing service flow information statistics unit is configured to perform statistics on the charging related information of the service flow that is locally routed by the user, to obtain the first charging statistical information;
发送单元, 用于发送所述第一计费统计信息,使计费服务器根据所述第一 计费统计信息对本地路由的业务流进行计费。  And a sending unit, configured to send the first charging statistics, so that the charging server charges the locally routed service flow according to the first charging statistical information.
8、 据权利要求 7所述的本地路由执行实体, 其特征在于, 所述本地路由 执行实体还包括:  The local routing execution entity according to claim 7, wherein the local routing execution entity further includes:
上下文获取单元, 用于获取计费上下文信息;  a context obtaining unit, configured to obtain charging context information;
所述发送单元, 用于根据所述计费上下文信息,发送所述第一计费统计信  The sending unit is configured to send the first charging statistics according to the charging context information
9、 根据权利要求 8所述的本地路由执行实体, 其特征在于, 9. The local routing enforcement entity of claim 8 wherein:
所述计费上下文信息包括: 上报时间间隔;  The charging context information includes: a reporting time interval;
所述发送单元, 用于根据所述计费上下文信息中的上报时间间隔,定期发 送所述第一计费统计信息; 所述第一计费统计信息包括: 对用户本地路由的业 务流的计费相关信息的统计结果, 或者, 所述第一计费统计信息包括: 本地路 由指示和对用户本地路由的业务流的计费相关信息的统计结果; The sending unit is configured to periodically send according to the reporting time interval in the charging context information. And sending the first charging statistic information; the first charging statistic information includes: a statistical result of the charging related information of the service flow that is locally routed by the user, or the first charging statistic information includes: a statistical result indicating the charging related information of the service flow that is locally routed to the user;
或者,  Or,
所述计费上下文信息包括计费服务器地址和本地路由的业务流对应的计 费标识;  The charging context information includes a charging server address and a charging identifier corresponding to the service flow of the local route;
所述发送单元, 用于根据所述计费服务器地址, 向所述计费服务器发送所 述第一计费统计信息, 所述第一计费统计信息包括: 所述计费标识和对用户本 地路由的业务流的计费相关信息的统计结果。  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 a local to the user The statistical result of the billing related information of the routed service flow.
10、 根据权利要求 7所述的本地路由执行实体, 其特征在于,  10. The local routing enforcement entity of claim 7, wherein:
该本地路由执行实体还包括:  The local routing execution entity further includes:
非本地路由业务流信息统计单元,用于对用户非本地路由的业务流的计费 相关信息进行统计, 得到第二计费统计信息;  The non-local routing service flow information statistics unit is configured to perform statistics on the charging related information of the service flow that is not locally routed by the user, and obtain the second charging statistical information;
所述发送单元,用于发送包括第一计费统计信息和第二计费统计信息的计 费信息更新请求消息; 其中, 所述第二计费统计信息包括: 非本地路由指示和 对用户非本地路由的业务流的计费相关信息的统计结果。  The sending unit is configured to send a charging information update request message that includes the first charging statistical information and the second charging statistical information, where the second charging statistical information includes: a non-local routing indication and a non-local The statistical result of the billing related information of the service flow of the local route.
11、 一种网络系统, 其特征在于, 包括: 权利要求 7-10任一本地路由执行 实体和用于接收第一计费统计信息,并根据所述第一计费统计信息对本地路由 的业务流进行计费的计费服务器。  A network system, comprising: a local routing execution entity according to any one of claims 7-10; and a service for receiving the first charging statistical information and locally routing according to the first charging statistical information A billing server that performs billing.
PCT/CN2010/076467 2010-08-30 2010-08-30 Charging method, apparatus and network system for local routing bussiness WO2011110006A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201080006014.4A CN102439902B (en) 2010-08-30 2010-08-30 Charging method, apparatus and network system for local routing bussiness
PCT/CN2010/076467 WO2011110006A1 (en) 2010-08-30 2010-08-30 Charging method, apparatus and network system for local routing bussiness

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2010/076467 WO2011110006A1 (en) 2010-08-30 2010-08-30 Charging method, apparatus and network system for local routing bussiness

Publications (1)

Publication Number Publication Date
WO2011110006A1 true WO2011110006A1 (en) 2011-09-15

Family

ID=44562835

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/076467 WO2011110006A1 (en) 2010-08-30 2010-08-30 Charging method, apparatus and network system for local routing bussiness

Country Status (2)

Country Link
CN (1) CN102439902B (en)
WO (1) WO2011110006A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018035867A1 (en) * 2016-08-26 2018-03-01 华为技术有限公司 Charging method and apparatus
CN110234084B (en) * 2019-05-16 2020-06-19 中国联合网络通信集团有限公司 User access method, PGW-C and core network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798041A (en) * 2004-12-22 2006-07-05 华为技术有限公司 Charging method in communication system
CN1798040A (en) * 2004-12-22 2006-07-05 华为技术有限公司 Charging method in communication system
CN101720541A (en) * 2007-06-13 2010-06-02 高通股份有限公司 Method and apparatus for accounting in a mobile data packet network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101277202B (en) * 2007-03-29 2012-06-27 华为技术有限公司 Charging method and system
EP2319207B1 (en) * 2008-07-30 2019-06-19 Alcatel-Lucent USA Inc. Online charging for sessions that are transferred between network domains
US8862124B2 (en) * 2009-01-15 2014-10-14 Cisco Technology, Inc. Gateway relocation in communication networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1798041A (en) * 2004-12-22 2006-07-05 华为技术有限公司 Charging method in communication system
CN1798040A (en) * 2004-12-22 2006-07-05 华为技术有限公司 Charging method in communication system
CN101720541A (en) * 2007-06-13 2010-06-02 高通股份有限公司 Method and apparatus for accounting in a mobile data packet network

Also Published As

Publication number Publication date
CN102439902B (en) 2014-04-02
CN102439902A (en) 2012-05-02

Similar Documents

Publication Publication Date Title
JP4828608B2 (en) Billing method, billing system, billing client and billing processing means
US8874715B2 (en) Charging method, system and reporting method for terminal accessing through multiple access networks
WO2013104234A1 (en) Policy control method and system for converged network
WO2010072107A1 (en) User service flow charge deducting method and device
WO2014169877A1 (en) Sdn epc network-based billing implementation method, system and storage medium
WO2011110000A1 (en) Method and apparatus for reporting radio bearer loss message
WO2015131331A1 (en) Method and device for managing charging session
WO2006012798A1 (en) A method for processing the re-authorisation based on the charging of the packet data flow
WO2011085614A1 (en) Method for controlling resources in full service converged network and system therefor
WO2013091410A1 (en) Network access method, system and device
WO2013060170A1 (en) Method and device for providing charging support based on lipa bearer
WO2011095025A1 (en) Policy control method and system for local access of mobile user
WO2007051413A1 (en) An accounting method and an accounting system thereof
WO2010078761A1 (en) A method, apparatus and system for controlling the policy and charging
WO2014094488A1 (en) Charging policy method and device for roaming local service
WO2009056046A1 (en) A method for session termination
WO2011088702A1 (en) Method and system for controlling resources in full-service convergence network
WO2011018020A1 (en) Method and system for controlling load balance of pcrf, and redirect dra
WO2012129992A1 (en) Sponsored data connectivity processing method, and policy and charging rules function
WO2012010036A1 (en) Policy control method and system
WO2010066157A1 (en) Charging method, charging device, charging gateway and charging system
WO2011110006A1 (en) Charging method, apparatus and network system for local routing bussiness
WO2011020419A1 (en) Implementation method, system and diameter routing agent (dra) for controlling load balance of policy and charging rules function (pcrf) entity
WO2012155774A1 (en) Method, system for establishing s9 sub-session, and policy and charging rules function
WO2009117932A1 (en) Method of policy control and device therefor

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201080006014.4

Country of ref document: CN

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

Ref document number: 10847264

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10847264

Country of ref document: EP

Kind code of ref document: A1