[go: up one dir, main page]

CN101431422A - Accounting method, accounting apparatus, accounting gateway and accounting system - Google Patents

Accounting method, accounting apparatus, accounting gateway and accounting system Download PDF

Info

Publication number
CN101431422A
CN101431422A CNA200810218382XA CN200810218382A CN101431422A CN 101431422 A CN101431422 A CN 101431422A CN A200810218382X A CNA200810218382X A CN A200810218382XA CN 200810218382 A CN200810218382 A CN 200810218382A CN 101431422 A CN101431422 A CN 101431422A
Authority
CN
China
Prior art keywords
message
charging
switching
reported
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA200810218382XA
Other languages
Chinese (zh)
Inventor
庞长春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNA200810218382XA priority Critical patent/CN101431422A/en
Publication of CN101431422A publication Critical patent/CN101431422A/en
Priority to PCT/CN2009/074929 priority patent/WO2010066157A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/24Accounting or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing

Landscapes

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

Abstract

本发明实施例提供了一种计费方法、计费装置、计费网关和计费系统。所述计费方法包括:当外部代理FA发生切换时,接收计费网关发送的FA切换消息,所述FA切换消息包括FA切换后的IP地址;按照所述FA切换消息和在计费装置上的用户终端UE的费率,确定通过所述切换后的FA入网的UE的费率,并按照所述确定的UE的费率向计费网关发送配额,进行计费。应用本发明实施例所提供的方法,当FA发生切换时,计费装置能及时获取通过切换后的FA入网的UE的费率,实现准确计费。

Figure 200810218382

The embodiment of the invention provides a charging method, a charging device, a charging gateway and a charging system. The billing method includes: when the external agent FA is switched, receiving the FA switching message sent by the charging gateway, the FA switching message including the IP address after the FA switching; according to the FA switching message and on the charging device determine the charging rate of the UE connected to the network through the switched FA, and send the quota to the charging gateway according to the determined UE charging rate for charging. By applying the method provided by the embodiment of the present invention, when the FA is switched, the billing device can obtain the billing rate of the UE connected to the network through the switched FA in time, so as to realize accurate billing.

Figure 200810218382

Description

计费方法、计费装置、计费网关和计费系统 Billing method, billing device, billing gateway and billing system

技术领域 technical field

本发明涉及通讯领域,尤其涉及一种计费方法、计费装置、计费网关和计费系统。The invention relates to the communication field, in particular to a charging method, a charging device, a charging gateway and a charging system.

背景技术 Background technique

随着3G数据业务的日益丰富,简单的流量和时长的计费模式已经无法适应无线数据业务的飞速发展,为了拓展更大的业务利润,整合业务运营方案,运营商正逐步向更加丰富的粒度和动态的基于价值的计费模型发展,基于内容的计费是迈向基于价值的计费模型的关键一步。内容计费使运营商除收取接入费以外,还可以对各种内容和应用进行收费,从而获得额外的利润。With the increasing abundance of 3G data services, the simple billing model of traffic and duration can no longer adapt to the rapid development of wireless data services. In order to expand greater business profits and integrate business operation solutions, operators are gradually moving to richer granularity With the development of dynamic value-based charging model, content-based charging is a key step towards value-based charging model. Content billing enables operators to charge for various content and applications in addition to access fees, thereby obtaining additional profits.

内容计费网关(Content Charging Gateway,CCG)是实现内容计费的网关网元,用于解决目前移动通讯网络承载的数据业务的接入、业务控制、计费支持等功能,它能支持各种典型数据业务的计费,如:超文本传输协议(HTTP)业务、无线应用协议(Wireless Application Protocol,WAP)业务、多媒体信息服务(Multimedia Messaging Service,MMS)、流媒体业务、邮件类业务、文本传输协议(File Transfer Protocol,FTP)业务等。Content charging gateway (Content Charging Gateway, CCG) is a gateway network element to realize content charging. It is used to solve the functions of data service access, service control, and charging support carried by the current mobile communication network. Billing of typical data services, such as: Hypertext Transfer Protocol (HTTP) services, Wireless Application Protocol (Wireless Application Protocol, WAP) services, Multimedia Messaging Service (MMS), streaming media services, mail services, text Transfer protocol (File Transfer Protocol, FTP) business, etc.

对用户设备UE的内容计费可以在家乡代理(Home Agent,HA)上进行,如果在HA上进行计费,则UE的数据报文要通过反向隧道发送给HA,HA通过CCG向计费装置申请配额,进行计费。The content charging of the user equipment UE can be performed on the home agent (Home Agent, HA). If the charging is performed on the HA, the data message of the UE will be sent to the HA through the reverse tunnel, and the HA will charge to the user through the CCG. The device applies for a quota and performs billing.

外部代理(Foreign Agent,FA)是UE和HA之间链路上的一台路由器,转发HA和UE之间的数据报文,UE的数据通过FA发送给HA,如果UE处于漫游或者其他状态,导致UE所对应的FA发生切换时,UE的费率也往往会发生变化。The foreign agent (Foreign Agent, FA) is a router on the link between the UE and the HA, which forwards the data packets between the HA and the UE. The data of the UE is sent to the HA through the FA. If the UE is roaming or in other states, When the FA corresponding to the UE is switched, the charging rate of the UE often changes.

发明人在实现本发明的过程中发现:上述计费方式中当FA发生切换时,通过该FA入网的UE的费率也可能发生了变化,会造成计费不准确。The inventor found in the process of implementing the present invention that: when the FA is switched in the above-mentioned charging mode, the charging rate of the UE connected to the network through the FA may also change, which will cause inaccurate charging.

发明内容 Contents of the invention

本发明实施例提供了一种计费方法、计费装置、计费网关和计费系统,当FA发生切换,计费装置能及时获取通过切换后FA入网的UE的费率,实现准确计费。The embodiment of the present invention provides a billing method, a billing device, a billing gateway and a billing system. When the FA is switched, the billing device can obtain the billing rate of the UE that enters the network through the FA after switching in time, so as to realize accurate billing .

一种计费方法,当外部代理FA发生切换时,包括:A billing method, when the external agent FA is switched, includes:

接收计费网关发送的FA切换消息,所述FA切换消息包括FA切换后的IP地址;receiving the FA switching message sent by the charging gateway, the FA switching message including the IP address after the FA switching;

按照所述FA切换消息和在计费装置上的用户终端UE的费率,确定通过所述切换后的FA入网的UE的费率,并按照确定的所述UE的费率向计费网关发送配额,进行计费。According to the FA switching message and the charging rate of the user terminal UE on the charging device, determine the charging rate of the UE connected to the network through the switched FA, and send it to the charging gateway according to the determined charging rate of the UE Quota for billing.

一种计费装置,包括:A billing device, comprising:

接收单元,用于接收计费网关发送的FA切换消息,所述FA切换消息包括FA切换后的IP地址;The receiving unit is used to receive the FA switching message sent by the charging gateway, and the FA switching message includes the IP address after the FA switching;

确定单元,用于按照接收单元中FA切换消息和在计费装置上的用户终端UE的费率,确定通过所述切换后的FA入网的UE的费率;The determining unit is configured to determine the charging rate of the UE that accesses the network through the switched FA according to the FA switching message in the receiving unit and the charging rate of the user terminal UE on the charging device;

发送单元,用于按照确定单元中确定的所述UE的费率向计费网关发送请配额。The sending unit is configured to send the quota request to the charging gateway according to the charging rate of the UE determined in the determining unit.

一种计费网关,包括:A billing gateway comprising:

获取单元,用于获取FA切换后的IP地址;An acquisition unit, configured to acquire the IP address after FA switching;

第一判断单元,用于判断是否允许向计费装置发送FA切换消息;The first judging unit is used to judge whether it is allowed to send the FA switching message to the charging device;

发送单元,用于在第一判断单元中确定允许向计费装置发送FA切换消息时,将所述FA切换消息发送给计费装置,所述FA切换消息包括FA切换后的IP地址。A sending unit, configured to send the FA switching message to the charging device when it is determined in the first judging unit that the FA switching message is allowed to be sent to the charging device, and the FA switching message includes the IP address after the FA switching.

一种计费系统,包括计费网关和计费装置,其中A charging system, including a charging gateway and a charging device, wherein

计费网关,用于获取FA切换后的IP地址,向计费装置发送FA切换消息,所述FA切换消息包括FA切换后的IP地址;The charging gateway is used to obtain the IP address after the FA switching, and send the FA switching message to the charging device, and the FA switching message includes the IP address after the FA switching;

计费装置,用于接收所述FA切换消息,按照所述FA切换消息和在计费装置上的UE的费率,确定通过所述FA入网的用户终端UE的费率,并按照所述UE的费率向计费网关发送配额,进行计费。The charging device is configured to receive the FA switching message, determine the charging rate of the user terminal UE accessing the network through the FA according to the FA switching message and the charging rate of the UE on the charging device, and determine the charging rate according to the UE The quota is sent to the billing gateway for billing.

应用本发明实施例所提供的方法,在FA发生切换时,计费装置能根据计费网关的上报及时获得FA的切换消息,并根据FA切换消息中包含的FA的IP地址和在计费装置上设置的UE的费率,及时获得FA切换后UE的费率,按照所述FA切换后UE的费率向计费网关发送配额,实现了准确计费。Applying the method provided by the embodiment of the present invention, when the FA is switched, the charging device can obtain the switching message of the FA in time according to the report of the charging gateway, and according to the IP address of the FA contained in the FA switching message and the information in the charging device The charging rate of the UE set on the network, the charging rate of the UE after the FA switching is obtained in time, and the quota is sent to the charging gateway according to the charging rate of the UE after the FA switching, so as to realize accurate charging.

附图说明 Description of drawings

图1是本发明实施例提供的一种计费方法的第一流程图;FIG. 1 is a first flowchart of a billing method provided by an embodiment of the present invention;

图2是本发明实施例提供的一种计费方法的第二流程图;Fig. 2 is a second flow chart of a billing method provided by an embodiment of the present invention;

图3是本发明实施例提供的一种计费方法的第三流程图;Fig. 3 is a third flowchart of a billing method provided by an embodiment of the present invention;

图4是本发明实施例提供的一种计费方法的第四流程图;FIG. 4 is a fourth flowchart of a billing method provided by an embodiment of the present invention;

图5是本发明实施例提供的一种计费装置的第一示意图;Fig. 5 is a first schematic diagram of a billing device provided by an embodiment of the present invention;

图6a是本发明实施例提供的一种计费装置的第二示意图;Fig. 6a is a second schematic diagram of a billing device provided by an embodiment of the present invention;

图6b是本发明实施例提供的一种计费装置的第三示意图;Fig. 6b is a third schematic diagram of a billing device provided by an embodiment of the present invention;

图7a是本发明实施例提供的一种计费网关的第一示意图;Fig. 7a is a first schematic diagram of a charging gateway provided by an embodiment of the present invention;

图7b是本发明实施例提供的一种计费网关的第二示意图;Fig. 7b is a second schematic diagram of a charging gateway provided by an embodiment of the present invention;

图8a是本发明实施例提供的一种计费网关的第三示意图;Fig. 8a is a third schematic diagram of a charging gateway provided by an embodiment of the present invention;

图8b是本发明实施例提供的一种计费网关的第四示意图;Fig. 8b is a fourth schematic diagram of a charging gateway provided by an embodiment of the present invention;

图9是本发明实施例提供的一种计费系统的示意图。Fig. 9 is a schematic diagram of a billing system provided by an embodiment of the present invention.

具体实施方式 Detailed ways

参照附图1,本发明实施例提供了一种计费方法,当外部代理FA发生切换时,包括:Referring to accompanying drawing 1, the embodiment of the present invention provides a kind of billing method, when the external agent FA switches, including:

101、接收计费网关发送的FA切换消息,所述切换消息包括FA切换后的IP地址;101. Receive the FA switching message sent by the charging gateway, where the switching message includes the IP address after the FA switching;

102、按照所述FA切换消息和在计费装置上的设置,确定通过所述切换后的FA入网的用户终端UE的费率,并按照确定的所述UE的费率向计费网关发送配额,进行计费。102. According to the FA switching message and the settings on the charging device, determine the charging rate of the user terminal UE that accesses the network through the switched FA, and send the quota to the charging gateway according to the determined charging rate of the UE , for billing.

本发明实施例所提供的方法,在FA发生切换时,计费装置能及时获取FA切换后的IP地址,并按照在计费装置上设置的UE费率确定FA切换后的UE的费率,按照所述FA切换后的UE的费率向计费网关发送配额,进行计费,实现了准确计费,这里的计费网关可以为CCG,也可以为包含了内容计费网关功能的HA,即HA/CCG;计费装置可以为在线计费系统(Online charging System,OCS),也可以是CAMEL系统等。In the method provided by the embodiment of the present invention, when the FA is switched, the charging device can obtain the IP address after the FA switching in time, and determine the UE charging rate after the FA switching according to the UE charging rate set on the charging device, According to the charging rate of the UE after the FA switching, the quota is sent to the charging gateway for charging, and accurate charging is realized. The charging gateway here can be a CCG or an HA that includes a content charging gateway function. That is, HA/CCG; the charging device can be an online charging system (Online charging System, OCS), or a CAMEL system, etc.

参照附图2,本发明实施例提供的一种计费方法,以计费网关为HA/CCG,计费装置为OCS为例进行说明,包括:Referring to Figure 2, a charging method provided by an embodiment of the present invention is described by taking the charging gateway as HA/CCG and the charging device as OCS as an example, including:

201、在OCS上设置UE的费率和“允许将FA切换事件上报”的命令,可以基于FA的标识在OCS上设置UE的费率,所述FA的标识包括FA的IP地址或者FA的IP地址组,包括:201. Set the UE's tariff on the OCS and the command "allowing to report FA switching events", and set the UE's tariff on the OCS based on the FA's identity, and the FA's identity includes the FA's IP address or the FA's IP Address groups, including:

在OCS上设置“允许将FA切换事件上报”的命令,OCS将该命令发送给HA/CCG;具体的,OCS向HA/CCG发送认证控制应答(Credit Control Request,CCA)消息,该CCA消息中包括“允许将FA切换事件上报”的命令,可以在CCA消息的trigger-type属性中包含CHANGE_IN_FA_IP_ADDRESS标识,表示允许将FA切换事件上报,如表1所示,Set the command "allowing to report the FA switching event" on the OCS, and the OCS sends the command to the HA/CCG; specifically, the OCS sends a credit control response (Credit Control Request, CCA) message to the HA/CCG, in the CCA message Including the command "allowing to report FA switching events", you can include the CHANGE_IN_FA_IP_ADDRESS flag in the trigger-type attribute of the CCA message, indicating that the reporting of FA switching events is allowed, as shown in Table 1,

  Message Direction Parameters CCA OCS-->CCG trigger-type=CHANGE_IN_FA_IP_ADDRESS message direction Parameters CCA OCS-->CCG trigger-type=CHANGE_IN_FA_IP_ADDRESS

表1Table 1

在OCS上基于FA的IP地址为通过该FA入网的UE设置一个费率,如:设置FA的IP地址是192.168.1.1时UE的费率为x1;FA的IP地址是192.168.1.2时UE的费率为x2;FA的IP地址是192.168.1.3时UE的费率为x3;也可以把FA的IP地址进行分组,如将192.168.1.1、192.168.1.2、192.168.1.3设置为一个IP地址组,在该IP地址组内,UE的费率均为X等等。On the OCS, based on the IP address of the FA, set a rate for the UE that accesses the network through the FA, for example: when the IP address of the FA is set to 192.168.1.1, the rate of the UE is x1; when the IP address of the FA is 192.168.1.2, the rate The fee rate is x2; when the IP address of FA is 192.168.1.3, the fee rate of UE is x3; the IP addresses of FA can also be grouped, such as setting 192.168.1.1, 192.168.1.2, and 192.168.1.3 as an IP address group , in the IP address group, the charging rates of the UE are all X and so on.

202、可选地,在HA/CCG上设置“允许将FA切换事件上报”的命令,也可以基于FA的标识在HA/CCG上设置切换后需要上报的FA,FA的标识包括FA的IP地址或者FA的IP地址组,包括:202. Optionally, set the command "Allow to report FA switching events" on the HA/CCG, or set the FAs that need to be reported after switching on the HA/CCG based on the identification of the FA. The identification of the FA includes the IP address of the FA Or the IP address group of FA, including:

在HA/CCG上设置“允许将FA切换事件上报”的命令。On the HA/CCG, set the "Allow reporting of FA switching events" command.

也可以在HA/CCG上设置切换后需要向OCS进行上报的FA的IP地址或者IP地址组,You can also set the IP address or IP address group of the FA that needs to be reported to the OCS on the HA/CCG.

具体的:设置FA切换后的IP地址为192.168.1.2时,需要向OCS上报;FA切换后的IP地址为192.168.1.3时,不需要向OCS上报等等;也可以根据FA的IP地址组确定FA切换时是否需要向OCS上报,如FA的IP地址为192.168.1.1、192.168.1.2、192.168.1.3时,构成一个IP地址组,当FA切换后的IP地址变为该IP地址组内任意一个时,需要向OCS上报等等。Specifically: when the IP address after FA switching is set to 192.168.1.2, it needs to be reported to OCS; when the IP address after FA switching is 192.168.1.3, it does not need to be reported to OCS, etc.; it can also be determined according to the IP address group of FA Is it necessary to report to the OCS when the FA is switched? For example, when the IP address of the FA is 192.168.1.1, 192.168.1.2, or 192.168.1.3, an IP address group is formed. After the FA is switched, the IP address becomes any one in the IP address group. , it needs to be reported to the OCS and so on.

本步骤是一个可选步骤,如果没有本步骤,则直接执行步骤203。This step is an optional step, and if there is no such step, step 203 is performed directly.

203、HA/CCG获取FA切换后的IP地址,判断是否允许将FA切换事件上报,包括:203. The HA/CCG obtains the IP address after the FA switching, and judges whether to allow reporting of the FA switching event, including:

用户在入网的过程中,如果FA发生了切换,切换后的FA重新与HA/CCG建立隧道连接,UE需要向重新到HA进行注册,UE向FA发送注册请求Registration Request消息,FA将该消息转发给HA,Registration Request消息中包含FA的IP地址,或者FA发起UE的注册,FA发送Registration Request消息到HA,包含FA的IP地址,HA/CCG根据接收到的Registration Request消息获知FA发生了切换和FA切换后的IP地址。HA/CCG判断是否收到或保存有OCS发送的“允许将FA切换事件上报”的命令,如果有则执行步骤205,如果没有则执行步骤204;During the user's network access process, if the FA is switched, the switched FA re-establishes a tunnel connection with the HA/CCG, and the UE needs to re-register with the HA. The UE sends a Registration Request message to the FA, and the FA forwards the message. For the HA, the Registration Request message contains the IP address of the FA, or the FA initiates the registration of the UE, and the FA sends a Registration Request message to the HA, including the IP address of the FA. The HA/CCG learns that the FA has switched and received the Registration Request message. IP address after the FA switchover. The HA/CCG judges whether it has received or saved the command "allowing to report the FA switching event" sent by the OCS, and if so, executes step 205, and if not, executes step 204;

204、HA/CCG判断自身上是否设置有“允许将FA切换事件上报”的命令,如果有则执行步骤205,如果没有,则仍然按照UE原来的费率进行计费。204. The HA/CCG judges whether the command "allowing to report the FA handover event" is set on itself, and if so, executes step 205; if not, still performs charging according to the UE's original charging rate.

其中,步骤201和步骤202中的设置没有先后顺序,可以同时进行,也可以分别设置。在步骤203和步骤204中,可以同时在OCS上和HA/CCG上设置“允许将FA切换事件上报”的命令,也可以分别在OCS上或者HA/CCG上设置“允许将FA切换事件上报”的命令,在OCS上设置的“允许将FA切换事件上报”命令的优先级高于HA/CCG上设置的“允许将FA切换事件上报”命令的优先级,当HA/CCG收到OCS下发的“允许将FA切换事件上报”命令时,按照收到的命令进行上报,当HA/CCG没有收到OCS下发的“允许将FA切换事件上报”命令时,按照HA/CCG上设置的“允许将FA切换事件上报”的命令进行上报。Wherein, the settings in step 201 and step 202 are not in sequence, and can be performed simultaneously or separately. In step 203 and step 204, the command "Allow FA switching event to be reported" can be set on OCS and HA/CCG at the same time, or "Allow FA switching event to be reported" can be set on OCS or HA/CCG respectively The priority of the "Allow to report FA switching event" command set on OCS is higher than the priority of the "Allow to report FA switching event" command set on HA/CCG. When HA/CCG receives the When the "Allow to report FA switching event" command, report it according to the received command. When the HA/CCG does not receive the "Allow to report FA switching event" command issued by OCS, follow the " Allow reporting of FA switching events" command to report.

205、HA/CCG按照获取的FA切换后的IP地址和设置的切换后需要上报的FA的IP地址或者IP地址组进行判断,如果确定切换后该FA需要进行上报,则将FA切换后的IP地址上报给OCS,如果不需要上报,则仍然按照UE原来的费率进行计费。具体的:205. The HA/CCG judges according to the acquired IP address of the FA after switching and the set IP address or IP address group of the FA that needs to be reported after the switching. If it is determined that the FA needs to be reported after the switching, then the IP The address is reported to the OCS. If there is no need to report, the original charging rate of the UE is still charged. specific:

HA/CCG向OCS发送认证控制请求(Credit Control Request,CCR)消息中包含FA切换后的IP地址的标识,可以在在CCR消息的PDSN-Address属性中包含FA IP Address标识,该标识包含有FA切换后的IP地址,如表2所示:The HA/CCG sends the authentication control request (Credit Control Request, CCR) message to the OCS, which contains the identifier of the IP address after the FA switch, and can include the FA IP Address identifier in the PDSN-Address attribute of the CCR message, which includes the FA The switched IP address is shown in Table 2:

  Message Direction Parameters CCR CCG-->OCS trigger-type=CHANGE_IN_FA_IP_ADDRESSPDSN-Address=FA IP Address             message direction Parameters CCR CCG-->OCS trigger-type=CHANGE_IN_FA_IP_ADDRESSPDSN-Address=FA IP Address

表2Table 2

可选地,HA/CCG也可以将FA发生了切换的消息发送给OCS,具体包括:在CCR消息中携带FA切换事件,可以在CCR消息的trigger属性中包含CHANGE_IN_FA_IP_ADDRESS的标识,该标识表示FA发生了切换,如表2所示。Optionally, the HA/CCG may also send the message that the FA has been switched to the OCS, specifically including: carrying the FA switching event in the CCR message, and including the CHANGE_IN_FA_IP_ADDRESS flag in the trigger attribute of the CCR message, which indicates that the FA has occurred switch, as shown in Table 2.

在步骤205是一个可选步骤,HA/CCG也可以在确定保存有OCS发送的“允许将FA切换事件上报”的命令,或者确定在HA/CCG上设置有“允许将FA切换事件上报”的命令时,将FA切换后的IP地址上报给OCS,而不用再根据设置在HA/CCG上设置的切换后需要上报的FA的IP地址确定所述FA是否需要上报,具体的上报过程参照步骤205。Step 205 is an optional step. The HA/CCG may also determine that the command "allowing to report FA switching events" sent by the OCS is stored, or determine that the "allowing to report FA switching events" is set on the HA/CCG. When ordering, report the IP address of the FA after switching to the OCS, instead of determining whether the FA needs to be reported according to the IP address of the FA that needs to be reported after the switching set on the HA/CCG. For the specific reporting process, refer to step 205 .

206、OCS根据接收到的FA切换后IP地址和在OCS上设置的UE费率进行比较,确定FA切换后UE的费率是否发生变化,并按照FA切换后UE的费率向HA/CCG发送配额,具体的:206. The OCS compares the received IP address after the FA switch with the UE fee rate set on the OCS, determines whether the UE fee rate has changed after the FA switch, and sends it to the HA/CCG according to the UE fee rate after the FA switch Quotas, specifically:

OCS将接收到的CCR消息进行解析,获得FA切换后的IP地址,根据获得的FA的IP地址和设置在OCS上的UE费率进行对比,确定UE的费率是否发生变化,如果UE的费率发生变化,则按照新的费率向HA/CCG发送配额;The OCS parses the received CCR message to obtain the IP address after the FA switch, and compares the obtained IP address of the FA with the UE tariff set on the OCS to determine whether the UE tariff has changed. If the rate changes, the quota will be sent to HA/CCG according to the new rate;

如果UE的费率不发生变化,则OCS同样按照原来的费率向HA/CCG发送配额。If the charging rate of the UE does not change, the OCS also sends the quota to the HA/CCG according to the original charging rate.

HA/CCG统计UE的业务流量,并和接收到的配额进行比较,当流量大于等于配额时,继续向OCS申请配额,如果申请到配额,则允许UE继续访问,如果申请不到配额,则终止UE访问的业务。HA/CCG counts the UE's business traffic and compares it with the received quota. When the traffic is greater than or equal to the quota, it continues to apply for a quota from the OCS. If the quota is applied, the UE is allowed to continue accessing. If the quota is not applied, it is terminated. Services accessed by the UE.

本发明实施例所提供的计费方法,在HA/CCG上计费时,当FA发生了切换,HA/CCG能及时的将FA切换后的IP地址发送给OCS,OCS根据FA的IP地址和预先在OCS上设置的UE费率,确定FA切换后对应的UE费率,并按照确定的费率向HA/CCG发送配额,进行计费,使得计费更准确。The billing method provided by the embodiment of the present invention, when billing on HA/CCG, when FA is switched, HA/CCG can send the IP address after FA switching to OCS in time, and OCS will The UE charging rate set in OCS in advance determines the corresponding UE charging rate after FA switching, and sends the quota to the HA/CCG according to the determined charging rate for charging, making the charging more accurate.

在本发明实施例中,设置动作发生在FA切换之前,当FA发生切换时,按照预先的设置执行FA发生切换后计费网关和计费装置之间的操作即可。In the embodiment of the present invention, the setting action takes place before the FA switching, and when the FA switching occurs, the operation between the charging gateway and the charging device after the FA switching occurs according to the preset settings.

在本发明实施例中,计费网关为HA/CCG,当然HA和CCG也可以作为独立的网元设置在系统中,即计费网关为CCG,此时在HA上实现计费功能,在CCG上实现统计流量信息,转发报文等功能。可以将“允许将FA切换事件上报”的命令设置在CCG上,同时也在CCG上设置FA切换后是否进行上报,其计费流程和本发明实施例类似,只不过FA发生切换时,HA能及时获得FA发生了切换和FA切换后的IP地址,并将FA切换后的IP地址发送给CCG,CCG按照设置决定是否上报给OCS。In the embodiment of the present invention, the billing gateway is HA/CCG. Of course, HA and CCG can also be set in the system as independent network elements, that is, the billing gateway is CCG. At this time, the charging function is implemented on HA, and the CCG It realizes functions such as statistical traffic information and packet forwarding. The command "Allow to report the FA switching event" can be set on the CCG, and at the same time, whether to report after the FA switching is set on the CCG. The charging process is similar to the embodiment of the present invention, except that when the FA switches, the HA can Obtain the FA handover and the IP address after the FA handover in time, and send the FA handover IP address to the CCG, and the CCG decides whether to report it to the OCS according to the settings.

参照附图3,本发明实施例还提供了一种计费方法,当计费网关为CCG,计费装置为OCS时,在CCG上设置切换后需要上报的FA的IP地址,在OCS上设置“允许将FA切换事件上报”的命令,包括:Referring to accompanying drawing 3, the embodiment of the present invention also provides a charging method, when the charging gateway is CCG, and the charging device is OCS, the IP address of the FA that needs to be reported after switching is set on the CCG, and the IP address of the FA that needs to be reported is set on the OCS The command "allowing to report FA switching events" includes:

301、在OCS上设置UE的费率和“允许将FA切换事件上报”的命令,包括:301. Set the UE's charging rate and the command "allowing to report the FA handover event" on the OCS, including:

在OCS上设置“允许将FA切换事件上报”的命令,OCS将该命令发送给CCG,具体发送过程参照步骤201;Set the command "Allow to report the FA switching event" on the OCS, and the OCS sends the command to the CCG. For the specific sending process, refer to step 201;

在OCS上设置FA的IP地址是192.168.1.1时UE的费率为x1;FA的IP地址是192.168.1.2时UE的费率为x2。When the IP address of the FA is set to 192.168.1.1 on the OCS, the tariff rate of the UE is x1; when the IP address of the FA is 192.168.1.2, the tariff rate of the UE is x2.

302、在CCG上设置切换后需要上报的FA,包括:302. Set the FA that needs to be reported after the handover on the CCG, including:

在CCG上设置FA切换后的IP地址为192.168.1.2时,将FA切换后的IP地址发送给OCS;When the IP address after FA switching is set on CCG to 192.168.1.2, send the IP address after FA switching to OCS;

当FA发生切换时,参照图3,执行下列步骤:When the FA switches, referring to Figure 3, perform the following steps:

303、CCG获取FA切换后的IP地址,包括303. The CCG acquires the IP address after the FA switch, including

当FA发生切换时,FA的IP地址从192.168.1.1切换为192.168.1.2时,切换后的FA重新与HA建立隧道连接,FA向HA发送的Registration Request消息中包含FA切换后的IP地址,HA获得FA发生了切换和切换后的IP地址,并将FA切换后的IP地址发送给CCG。When the FA is switched and the IP address of the FA is switched from 192.168.1.1 to 192.168.1.2, the switched FA re-establishes a tunnel connection with the HA, and the Registration Request message sent by the FA to the HA contains the IP address after the FA switch. Obtain the IP address of the FA after switching and switching, and send the switched IP address of the FA to the CCG.

304、CCG判断是否允许将FA切换事件上报;304. The CCG judges whether to allow reporting of the FA switching event;

CCG确定收到OCS下发的“允许将FA切换事件上报”的命令,允许将FA切换事件上报,执行步骤305。The CCG determines that it has received the command "allow to report the FA switching event" issued by the OCS, and allows the reporting of the FA switching event, and executes step 305 .

305、CCG按照获取的FA切换后的IP地址和设置的切换后需要上报的FA的IP地址,确定切换后该FA需要进行上报;305. The CCG determines that the FA needs to be reported after switching according to the acquired IP address of the FA after switching and the set IP address of the FA that needs to be reported after switching;

CCG收到HA发送的FA切换后的IP地址为192.168.1.2,并根据在CCG上设置的FA切换后IP地址变为192.168.1.2时需要进行上报,确定该FA切换后需要进行上报,因此CCG将FA切换后的IP地址192.168.1.2通过CCR消息发送OCS,具体发送过程参照步骤205。CCG receives the IP address after the FA switch from the HA is 192.168.1.2, and needs to report when the IP address changes to 192.168.1.2 after the FA switch set on the CCG. It is determined that the FA switch needs to be reported, so the CCG The IP address 192.168.1.2 after the FA switching is sent to the OCS through the CCR message. Refer to step 205 for the specific sending process.

306、OCS根据FA切换后的IP地址和在OCS上设置的UE的费率,确定通过该切换后的FA入网的UE的费率,按照FA切换后UE的费率向CCG发送配额,包括:306. The OCS determines the charging rate of the UE that accesses the network through the switched FA according to the IP address after the FA switching and the charging rate of the UE set on the OCS, and sends the quota to the CCG according to the charging rate of the UE after the FA switching, including:

OCS收到CCR消息后,对CCR消息进行解析,得出FA发生了切换,并且获取FA切换后的IP地址为192.168.1.2,与设置的UE的费率进行比较,获得FA的IP地址是192.168.1.2时UE的费率为x2,UE的费率发生了变化,因此OCS按照新的费率x2向CCG发送配额,进行计费。After receiving the CCR message, the OCS analyzes the CCR message, and finds that the FA has switched, and obtains the IP address of the FA after the switch is 192.168.1.2, compares it with the set UE tariff, and obtains the IP address of the FA is 192.168 .1.2 UE's charging rate is x2, UE's charging rate has changed, so OCS sends quota to CCG according to new charging rate x2 for charging.

CCG统计UE的业务流量,并和接收到的配额进行比较,当流量大于等于配额时,继续向OCS申请配额,如果申请到配额,则允许UE继续访问,如果申请不到配额,则终止UE访问的业务。CCG counts the UE's business traffic and compares it with the received quota. When the traffic is greater than or equal to the quota, it continues to apply for a quota from the OCS. If the quota is applied, the UE is allowed to continue to access. If the quota cannot be applied, the UE's access is terminated. Business.

例如:CCG接收到OCS发送的1M流量的配额,则允许UE继续正在进行的业务,并统计UE访问业务的流量,当统计到的流量大于等于1M时,CCG继续向OCS申请配额,如果OCS该用户的配额还有200K,则继续向CCG下发200K的配额,并且在下发的CCA消息中包含配额耗尽时终止用户所访问的业务的命令。For example: CCG receives the quota of 1M traffic sent by OCS, then allows the UE to continue the ongoing business, and counts the traffic of the UE accessing the business. When the counted traffic is greater than or equal to 1M, CCG continues to apply for the quota from OCS. If OCS should If the user's quota is still 200K, then continue to deliver the 200K quota to the CCG, and the issued CCA message includes a command to terminate the service accessed by the user when the quota is exhausted.

采用本发明实施例所提供的方法,当FA发生切换时,HA将FA发生了切换和切换后的IP地址发送给CCG,CCG根据OCS发送的“允许将FA切换事件上报”的命令和在CCG上设置的切换后需要上报的FA的IP地址,确定将FA切换后的IP地址发送给OCS,OCS能及时获得FA切换后的IP地址,并确定通过所述FA入网的UE的费率,按照FA切换后所述UE的费率向发送配额,使计费更准确。Using the method provided by the embodiment of the present invention, when the FA is switched, the HA sends the FA switched and the switched IP address to the CCG, and the CCG sends the "Allow to report the FA switching event" command sent by the OCS and the CCG The IP address of the FA that needs to be reported after the switch is set on the above, and the IP address after the FA switch is determined to be sent to the OCS. After the FA switching, the charging rate of the UE is sent to the quota, so that the charging is more accurate.

参照附图4,本发明实施例还提供了一种计费方法,其中计费网关为HA/CCG,计费装置为OCS时,在HA/CCG上设置“允许将FA切换事件上报”的命令,包括:Referring to accompanying drawing 4, the embodiment of the present invention also provides a charging method, wherein the charging gateway is HA/CCG, and when the charging device is OCS, the command "Allow to report FA switching event" is set on HA/CCG ,include:

401、在OCS上设置UE的费率,包括:401. Set the UE rate on the OCS, including:

在OCS上设置FA的IP地址为192.168.1.1、192.168.1.2、192.168.1.3时构成0号IP地址组,其所对应的UE的费率为x,FA的IP地址为192.168.1.0时,UE的费率为y。When the IP address of the FA is set to 192.168.1.1, 192.168.1.2, and 192.168.1.3 on the OCS, IP address group 0 is formed. The rate is y.

402、在HA/CCG上设置“允许将FA切换事件上报”的命令,并且设置切换后需要上报的FA;包括:402. Set the command "allowing to report FA switching events" on the HA/CCG, and set the FAs that need to be reported after the switching; including:

在HA/CCG上设置“允许将FA切换事件上报”的命令;Set the command "allow to report FA switching events" on HA/CCG;

在HA/CCG上设置IP地址为192.168.1.1、192.168.1.4、192.168.1.5时,构成1号IP地址组,当FA的IP地址变为1号IP地址组中的任何一个时,需要将FA切换后的IP地址上报给OCS。When the IP addresses of HA/CCG are set to 192.168.1.1, 192.168.1.4, and 192.168.1.5, IP address group No. 1 is formed. When the IP address of FA becomes any one of IP address group No. 1, the FA The switched IP address is reported to the OCS.

当FA发生切换时,参照图4,执行下列步骤:When the FA is switched, refer to Figure 4 and perform the following steps:

403、HA/CCG获取FA切换后的IP地址,包括:403. The HA/CCG obtains the IP address after the FA switch, including:

当FA发生切换时,切换后的FA重新与HA/CCG建立隧道连接,FA向HA/CCG发送的Registration Request消息中包含有FA切换后的IP地址,HA/CCG接收到的Registration Request消息获得FA发生了切换和FA切换后的IP地址。When the FA is switched, the switched FA re-establishes a tunnel connection with the HA/CCG, and the Registration Request message sent by the FA to the HA/CCG contains the IP address after the FA switch, and the Registration Request message received by the HA/CCG obtains the FA IP address after the switchover and FA switchover.

404、HA/CCG判断是否允许切换事件上报;404. The HA/CCG judges whether to allow the reporting of the handover event;

HA/CCG确定没有收到OCS发送的“允许将FA切换事件上报”的命令;因此需要执行步骤405。The HA/CCG determines that it has not received the command "allowing to report the FA switching event" sent by the OCS; therefore, step 405 needs to be performed.

405、HA/CCG确定在HA/CCG上设置有“允许将FA切换事件上报”的命令,则允许将FA切换后的IP地址上报,执行步骤406;405. The HA/CCG determines that the command "allowing to report FA switching events" is set on the HA/CCG, then allows reporting the IP address after FA switching, and executes step 406;

406、HA/CCG根据FA切换后的IP地址和设置的切换后需要上报的FA的IP地址组,确定该FA切换后是否进行上报;406. The HA/CCG determines whether to report after the FA is switched according to the IP address of the FA after switching and the set IP address group of the FA that needs to be reported after switching;

HA/CCG获得FA切换后的IP地址为192.168.1.1,192.168.1.1是设置在HA/CCG上的1号IP地址组中的一个地址,确定该FA切换后需要上报。因此HAA/CCG FA切换后IP地址通过CCR消息发送给OCS,具体发送过程参照步骤205。The IP address obtained by HA/CCG after FA switching is 192.168.1.1. 192.168.1.1 is an address in the No. 1 IP address group set on HA/CCG. It needs to be reported after the FA switching is confirmed. Therefore, after the HAA/CCG FA is switched, the IP address is sent to the OCS through a CCR message, and the specific sending process refers to step 205.

407、OCS根据FA切换后的IP地址和设置的UE的费率,确定FA切换后UE的费率,按照所述UE的费率向HA/CCG发送配额。407. The OCS determines the fee rate of the UE after the FA switch according to the IP address after the FA switch and the set UE fee rate, and sends the quota to the HA/CCG according to the UE fee rate.

OCS收到CCR消息后,对CCR消息进行解析,获取FA切换后的IP地址为192.168.1.1;与在OCS上设置的FA的IP地址组进行比对,FA切换后的IP地址变为0号IP地址组中的一个,确定通过该FA接入的UE的费率变为x,UE的费率发生了变化,因此OCS按照新的费率x向HA/CCG发送配额。After the OCS receives the CCR message, it analyzes the CCR message, and obtains the IP address after the FA switch is 192.168.1.1; compares it with the IP address group of the FA set on the OCS, and the IP address after the FA switch becomes 0 One of the IP address groups determines that the charging rate of the UE accessed through the FA becomes x, and the charging rate of the UE changes, so the OCS sends a quota to the HA/CCG according to the new charging rate x.

HA/CCG统计UE的业务流量,并和接收到的配额进行比较,当流量大于等于配额时,继续向OCS申请配额,如果申请到配额,则允许UE继续访问,如果申请不到配额,则终止UE访问的业务。HA/CCG counts the UE's business traffic and compares it with the received quota. When the traffic is greater than or equal to the quota, it continues to apply for a quota from the OCS. If the quota is applied, the UE is allowed to continue accessing. If the quota is not applied, it is terminated. Services accessed by the UE.

采用本发明实施例所提供的方法,可以在HA/CCG上设置一个IP地址组,当HA/CCG确定设置有“允许将FA切换事件上报”的命令,并且FA切换后的IP地址为1号IP地址组内的一个地址时,允许将FA切换后的IP地址上报给OCS;OCS根据接收到的IP地址和设置的UE的费率确定,通过该切换后的FA入网的UE的费率发生了变化,按照变化后的费率进行计费。同时在同一个IP地址组内的FA所对应的UE的费率相同,使得UE在该FA的IP地址组所对应的区域内漫游时,按照同一费率计费,当漫游到该区域外时,则按照新的费率计费,使得计费更加准确、灵活。Using the method provided by the embodiment of the present invention, an IP address group can be set on the HA/CCG. When the HA/CCG determines that the command "allowing to report the FA switching event" is set, and the IP address after the FA switching is No. 1 When it is an address in the IP address group, it is allowed to report the IP address after FA switching to OCS; OCS determines according to the received IP address and the set UE fee rate, and the fee rate of the UE connected to the network through the switched FA occurs If there is a change, it will be billed according to the changed rate. At the same time, UEs corresponding to FAs in the same IP address group have the same charging rate, so that when the UE roams in the area corresponding to the IP address group of the FA, it will be billed according to the same charging rate. When roaming outside the area , it will be billed according to the new rate, making the billing more accurate and flexible.

参照附图5,本发明实施例提供了一种计费装置500,包括:Referring to accompanying drawing 5, the embodiment of the present invention provides a billing device 500, comprising:

接收单元501,用于接收计费网关发送的FA切换消息,所述FA切换消息包含FA切换后的IP地址;The receiving unit 501 is configured to receive the FA switching message sent by the charging gateway, where the FA switching message includes the IP address after the FA switching;

确定单元502,用于按照接收单元501中FA切换消息和在计费装置上设置的UE的费率,确定通过所述FA入网的UE的费率;The determining unit 502 is configured to determine the charging rate of the UE that accesses the network through the FA according to the FA switching message in the receiving unit 501 and the charging rate of the UE set on the charging device;

发送单元503,用于按照确定单元502种确定的所述UE的费率向计费网关发送配额。The sending unit 503 is configured to send the quota to the charging gateway according to the charging rate of the UE determined by the determining unit 502 .

本发明实施例所提供的计费装置,能及时获取FA切换后的IP地址,并按照预先的设置确定通过切换后的FA入网的UE的费率进行计费,使计费更加准确。The billing device provided by the embodiment of the present invention can obtain the IP address after the FA switching in time, and determine the billing rate of the UE connected to the network through the switched FA according to the preset setting, so that the billing is more accurate.

参照附图6,本发明实施例还提供了一种计费装置600,包括接收单元601、发送单元602、第一设置单元603和确定单元604,其中6, the embodiment of the present invention also provides a billing device 600, including a receiving unit 601, a sending unit 602, a first setting unit 603 and a determining unit 604, wherein

接收单元601,用于接收计费网关发送的FA切换消息,所述FA切换消息包含FA切换后的IP地址;The receiving unit 601 is configured to receive the FA switching message sent by the charging gateway, where the FA switching message includes the IP address after the FA switching;

第一设置单元603,用于在计费装置600上基于FA的标识设置UE的费率,所述FA的标识可以是FA的IP地址或者FA的IP地址组;The first setting unit 603 is configured to set the charging rate of the UE based on the identification of the FA on the charging device 600, and the identification of the FA may be the IP address of the FA or the IP address group of the FA;

确定单元604,用于按照接收单元601中的FA切换消息和在第一设置单元603上设置的UE的费率,确定通过所述FA入网的UE的费率;The determining unit 604 is configured to determine the charging rate of the UE that accesses the network through the FA according to the FA switching message in the receiving unit 601 and the charging rate of the UE set in the first setting unit 603;

发送单元602,用于按照确定单元604中确定的UE的费率向计费网关发送请配额。The sending unit 602 is configured to send the quota request to the charging gateway according to the charging rate of the UE determined in the determining unit 604 .

在本发明实施例中,还可以包括:In an embodiment of the present invention, it may also include:

第二设置单元605,用于计费装置600上设置“允许将FA切换事件上报”的命令;The second setting unit 605 is used to set the command "allowing to report the FA switching event" on the billing device 600;

发送单元602,还用于将第二设置单元603中设置“允许将FA切换事件上报”的命令发送给计费网关。The sending unit 602 is further configured to send the command for setting "allowing to report the FA switching event" in the second setting unit 603 to the charging gateway.

本发明实施例所提供的计费装置,在计费装置上设置“允许将FA切换事件上报”的命令并发送给计费网关,允许FA切换后进行上报;同时该计费装置能及时获取FA切换后的IP地址,并按照预先的设置确定通过切换后的FA入网的终端的费率,按照确定的终端费率进行计费,使计费更准确。In the billing device provided by the embodiment of the present invention, the command "allowing to report FA switching events" is set on the billing device and sent to the billing gateway to allow reporting after FA switching; at the same time, the billing device can obtain FA in time The IP address after switching, and determine the charging rate of the terminal connected to the network through the switching FA according to the preset setting, and charge according to the determined terminal charging rate, so that the charging is more accurate.

参照附图7,本发明实施例提供了一种计费网关700,包括获取单元701、第一判断单元702和发送单元703,其中Referring to FIG. 7 , an embodiment of the present invention provides a billing gateway 700, including an acquisition unit 701, a first judgment unit 702, and a sending unit 703, wherein

获取单元701,用于获取FA切换后的IP地址;An acquisition unit 701, configured to acquire an IP address after FA switching;

第一判断单元702,用于确定是否允许向计费装置发送FA切换消息;The first judging unit 702 is configured to determine whether to allow sending an FA switching message to the charging device;

发送单元703,用于在第一判断单元702中确定允许向计费装置发送FA切换消息时,将所述切换消息发送给计费装置,所述切换消息包括FA切换后的IP地址。The sending unit 703 is configured to send the switching message to the charging device when it is determined in the first judging unit 702 that the FA switching message is allowed to be sent to the charging device, and the switching message includes the IP address after the FA switching.

其中,in,

获取单元701,还用于接收计费装置发送的“允许将FA切换事件上报”的命令;The obtaining unit 701 is also configured to receive the command "Allow to report the FA switching event" sent by the billing device;

第一判断单元702根据获取单元701中接收到的“允许将FA切换事件上报”的命令,确定需要向计费装置发送FA切换消息。The first judging unit 702 determines that an FA switching message needs to be sent to the charging device according to the command "allow to report the FA switching event" received in the acquiring unit 701 .

在本发明实施例中,还可以包括:In an embodiment of the present invention, it may also include:

第四设置单元704,用于在计费网关700上设置切换后需要上报的FA的标识;The fourth setting unit 704 is used to set the identity of the FA that needs to be reported after switching on the billing gateway 700;

第二判断单元705,用于当获取单元701中确定接收到计费装置发送的“允许将FA切换事件上报”的命令时,按照第四设置单元704中设置的切换后需要上报的FA的标识,确定是否需要将所述FA切换消息上报。The second judging unit 705 is configured to, when the obtaining unit 701 determines to receive the command "allowing to report the FA switching event" sent by the charging device, according to the identification of the FA that needs to be reported after switching set in the fourth setting unit 704 , to determine whether to report the FA switching message.

本发明实施例所提供的计费网关,能及时获得FA发生了切换和FA切换后的IP地址,并按照预先的设置将FA切换后的IP地址发送给计费装置,使计费装置能及时获取FA切换后的IP地址,进而确定通过所述切换后的FA入网的终端的费率,使计费更准确。The billing gateway provided by the embodiment of the present invention can obtain the IP address after FA switching and FA switching in time, and send the IP address after FA switching to the billing device according to the preset settings, so that the billing device can timely The switched IP address of the FA is obtained, and then the charging rate of the terminal connected to the network through the switched FA is determined, so that the charging is more accurate.

参照附图8,本发明实施例提供了一种计费网关,包括:获取单元801、第一判断单元802、发送单元803和第三设置单元804,其中:Referring to FIG. 8 , an embodiment of the present invention provides a charging gateway, including: an acquisition unit 801, a first judgment unit 802, a sending unit 803, and a third setting unit 804, wherein:

获取单元801,用于获取FA切换后的IP地址,获取计费装置发送的“允许将FA切换事件上报”的命令;The obtaining unit 801 is configured to obtain the IP address after the FA switching, and obtain the command "allowing to report the FA switching event" sent by the billing device;

第三设置单元804,用于在计费网关800上设置“允许将FA切换事件上报”的命令;The third setting unit 804 is configured to set the command "allowing to report the FA switching event" on the charging gateway 800;

第一判断单元802,确定获取单元801中没有接收“允许将FA切换事件上报”的命令,确定第三设置单元804中设置有“允许将FA切换事件上报”的命令,确定需要向计费装置发送FA切换消息;The first judging unit 802 determines that the command "allowing to report the FA switching event" has not been received in the acquiring unit 801, determines that the command "allowing to report the FA switching event" is set in the third setting unit 804, and determines that it is necessary to report to the charging device Send FA switching message;

发送单元803,用于在第一判断单元802中确定允许向计费装置发送FA切换消息时,将所述切换消息发送给计费装置,所述切换消息包括FA切换后的IP地址。The sending unit 803 is configured to send the switching message to the charging device when it is determined in the first judging unit 802 that the FA switching message is allowed to be sent to the charging device, and the switching message includes the IP address after the FA switching.

在本发明实施例中,还可以包括:In an embodiment of the present invention, it may also include:

第四设置单元805,用于在计费网关800上设置切换后需要上报的FA的标识;The fourth setting unit 805 is used to set the identity of the FA that needs to be reported after switching on the billing gateway 800;

第二判断单元806,用于当获取单元801中确定接收到计费装置发送的“允许将FA切换事件上报”的命令或者在第一设置单元804中设置有“允许将FA切换事件上报”的命令时,按照第二设置单元805中设置的切换后需要上报的FA的标识,确定是否需要将所述FA切换消息上报。The second judging unit 806 is configured to determine in the acquiring unit 801 that the command "allowing to report the FA switching event" sent by the charging device is received or the first setting unit 804 is set with the command "allowing to report the FA switching event" When ordering, determine whether to report the FA switching message according to the identifiers of the FAs that need to be reported after switching set in the second setting unit 805 .

本发明实施例所提供的计费网关,在允许FA切换事件上报的情况下,按照预先在计费网关上的设置进一步判断FA切换后是否需要上报,为计费提供了多样化的选择。The billing gateway provided by the embodiment of the present invention, in the case of allowing the reporting of the FA switching event, further judges whether to report after the FA switching according to the setting in advance on the billing gateway, and provides diversified options for billing.

参照附图9,本发明实施例提供了一种计费系统,包括计费网关902和计费装置901,Referring to Figure 9, an embodiment of the present invention provides a billing system, including a billing gateway 902 and a billing device 901,

计费网关902,用于获取FA切换后的IP地址,向计费装置发送FA切换消息,所述FA切换消息包括FA切换后的IP地址;The charging gateway 902 is configured to obtain the IP address after FA switching, and send an FA switching message to the charging device, where the FA switching message includes the IP address after FA switching;

计费装置901,用于接收所述FA切换消息,按照所述FA切换消息和在计费装置901上UE的费率,确定通过所述FA入网的用户终端UE的费率,并按照所述UE的费率向计费网关902发送配额,进行计费。The charging device 901 is configured to receive the FA switching message, determine the charging rate of the user terminal UE that accesses the network through the FA according to the FA switching message and the charging rate of the UE on the charging device 901, and according to the The charging rate of the UE sends the quota to the charging gateway 902 for charging.

在本发明实施例所提供的计费系统中,In the billing system provided by the embodiment of the present invention,

计费网关902,还用于设置“允许将FA切换事件上报”的命令;The billing gateway 902 is also used to set the command "allowing to report the FA switching event";

计费装置901,还用于设置“允许将FA切换事件上报”的命令;The billing device 901 is also configured to set the command "Allow reporting of FA switching events";

计费网关902根据计费装置901发送的“允许将FA切换事件上报”的命令,或者根据设置在计费网关902上的“允许将FA切换事件上报”的命令,确定需要将FA切换消息发送给计费装置901。The billing gateway 902 determines that it is necessary to send the FA switching message according to the command "allow to report the FA switching event" sent by the billing device 901, or according to the command "allow to report the FA switching event" set on the billing gateway 902 To the billing device 901.

其中,in,

计费网关902,还用于设置切换后需要进行上报的FA的标识;The billing gateway 902 is also used to set the identification of the FA that needs to be reported after switching;

计费网关902获取FA切换后的IP地址,并根据计费装置901发送的“允许将FA切换事件上报”的命令,或者根据设置在计费网关902上的“允许将FA切换事件上报”的命令,同时根据FA切换后的IP地址和在计费网关802上设置的切换后需要上报的FA的标识,确定是否允许将FA切换消息发送给计费装置901。The billing gateway 902 acquires the IP address after the FA switch, and according to the command "Allow to report the FA switch event" sent by the billing device 901, or according to the "Allow to report the FA switch event" set on the billing gateway 902 command, and at the same time determine whether to allow the FA switching message to be sent to the charging device 901 according to the IP address after the switching of the FA and the identification of the FA that needs to be reported after switching set on the charging gateway 802 .

在本发明实施例所提供的计费系统中,计费网关获取FA发生切换和FA切换后的IP地址,及时将FA切换后的IP地址发送给计费装置,计费装置按照预先的设置,确定通过所述切换后的FA入网的终端的费率,并按照所述确定的费率向计费网关发送配额。本发明实施例所提供的计费系统能及时调整终端的费率,使计费更加准确。In the billing system provided by the embodiment of the present invention, the billing gateway acquires the FA switching and the IP address after the FA switching, and sends the IP address after the FA switching to the billing device in time, and the billing device follows the preset settings, Determine the charge rate of the terminal accessing the network through the switched FA, and send the quota to the charging gateway according to the determined charge rate. The billing system provided by the embodiment of the present invention can adjust the billing rate of the terminal in time to make the billing more accurate.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (20)

1, a kind of charging method is characterized in that, when external agent FA switches, comprising:
Receive the FA switching message that charging gateway sends, described FA switches the IP address after message comprises the FA switching;
According to the rate of described FA switching message and the user terminal UE on message accounting, determine rate, and send quota to charging gateway according to the rate of the described UE that determines by the UE of the networking of the FA after the described switching, charge.
2, a kind of charging method as claimed in claim 1 is characterized in that, also comprises:
The rate of UE is set based on the sign of FA on message accounting.
3, a kind of charging method as claimed in claim 2 is characterized in that, also comprises:
The order of " allowing the FA handover event is reported " is set on message accounting; Perhaps
The order of " allowing the FA handover event is reported " is set on charging gateway; Perhaps
The order of " allowing the FA handover event is reported " is set on message accounting and charging gateway.
4, a kind of charging method as claimed in claim 3, it is characterized in that, the order of " allowing the FA handover event is reported " is set on message accounting, the order of " allowing the FA handover event is reported " perhaps is set on message accounting and charging gateway, also comprise:
Described message accounting sends to charging gateway with the order of described " allowing the FA handover event is reported ".
5, a kind of charging method as claimed in claim 4 is characterized in that, also comprises:
Described charging gateway obtains the IP address after FA switches;
Determine to preserve on the charging gateway order of " allowing the FA handover event is reported " that message accounting sends;
Send described FA to message accounting and switch message, described FA switches the IP address after message comprises the FA switching.
6, as claim 4 or 5 arbitrary described a kind of charging methods, it is characterized in that, when charging gateway is content charging gateway CCG or the home agent HA/CCG that has realized the content charging function, when message accounting is Online Charging System OCS, described message accounting sends to charging gateway with described " allowing the FA handover event is reported " order, comprising:
OCS sends authentication control to charging gateway and replys CCA message, and described CCA message comprises the order of " allowing the FA handover event is reported ".
7, a kind of charging method as claimed in claim 3 is characterized in that, the order of " allowing the FA handover event is reported " is set on charging gateway, also comprises:
Described charging gateway obtains the IP address after FA switches;
Determine not preserve on the charging gateway order of " allowing the FA handover event is reported " that message accounting sends;
Determine that charging gateway is provided with the order of " allowing the FA handover event is reported ";
Send FA to message accounting and switch message, described FA switches the IP address after message comprises the FA switching.
As claim 5 or 7 arbitrary described a kind of charging methods, it is characterized in that 8, charging gateway is provided with the sign that needs the FA that reports after the switching, describedly send FA to message accounting and also comprise before switching message:
Determine and described FA need be switched information reporting according to the IP address that is arranged on after sign that needs the FA that reports on the charging gateway and the FA that obtains are switched.
9, a kind of charging method as claimed in claim 8 is characterized in that,
When charging gateway is CCG or HA/CCG, when message accounting was OCS, described charging gateway switched message with FA and sends to OCS, comprising:
Charging gateway sends authentication control request CCR message to OCS, and described CCR message comprises the IP address after FA switches.
As claim 2 or 8 arbitrary described a kind of charging methods, it is characterized in that 10, the sign of described FA is the IP address of FA or the IP group of addresses of FA.
11, a kind of message accounting is characterized in that, comprising:
Receiving element is used to receive the FA switching message that charging gateway sends, and described FA switches the IP address after message comprises the FA switching;
Determining unit is used for the rate according to receiving element FA switching message and the user terminal UE on message accounting, determines the rate by the UE of the networking of the FA after the described switching;
Transmitting element is used for asking quota according to the rate of the definite described UE of determining unit to the charging gateway transmission.
12, a kind of message accounting as claimed in claim 11 is characterized in that, also comprises:
First is provided with the unit, is used for being provided with based on the sign of FA on message accounting the rate of UE.
13, a kind of message accounting as claimed in claim 12 is characterized in that, also comprises:
Second is provided with the unit, is used for being provided with on message accounting the order of " allowing the FA handover event is reported ";
Transmitting element also sends to charging gateway with the order that will " allow the FA handover event is reported ".
14, a kind of charging gateway is characterized in that, comprising:
Acquiring unit is used to obtain the IP address after FA switches;
First judging unit is used to judge whether allow to send FA to message accounting and switches message;
Transmitting element is used for determining that at first judging unit permission when message accounting sends FA switching message, sends to message accounting with described FA switching message that described FA switches the IP address after message comprises the FA switching.
15, a kind of charging gateway as claimed in claim 14 is characterized in that, also comprises:
Acquiring unit also is used to receive the order of " allowing the FA handover event is reported " that message accounting sends;
First judging unit determines that according to the order of " allowing the FA handover event is reported " of receiving in the acquiring unit need send FA to message accounting switches message.
16, a kind of charging gateway as claimed in claim 14 is characterized in that, also comprises:
The 3rd is provided with the unit, is used for being provided with on charging gateway the order of " allowing the FA handover event is reported ";
First judging unit determines not receive in the acquiring unit order of " allowing the FA handover event is reported ", determines that first is provided with in the unit order that is provided with " allowing the FA handover event is reported ", determines that need send FA to message accounting switches message.
17, as claim 15 or 16 described a kind of charging gateways, it is characterized in that, also comprise:
The 4th is provided with the unit, needing after on the charging gateway switching being set to be used for the sign of the FA that reports;
Second judging unit, be used for determining to receive the order of " allowing the FA handover event is reported " that message accounting sends or when first is provided with in the unit order that is provided with " allowing the FA handover event is reported " when acquiring unit, the sign that needs the FA that reports after the switching that is provided with in the unit is set according to second, determines whether and described FA need be switched information reporting.
18, a kind of charge system is characterized in that, comprises charging gateway and message accounting, wherein
Charging gateway is used to obtain the IP address after FA switches, and sends FA to message accounting and switches message, and described FA switches the IP address after message comprises the FA switching;
Message accounting is used to receive described FA and switches message, according to the rate of described FA switching message and the UE on message accounting, determines the rate by the user terminal UE of described FA networking, and sends quota according to the rate of described UE to charging gateway, charges.
19, a kind of charge system as claimed in claim 18 is characterized in that,
Message accounting also is used for being provided with the order of " allowing the FA handover event is reported ";
Charging gateway also is used for being provided with the order of " allowing the FA handover event is reported ";
Charging gateway perhaps according to the order that is arranged on " allowing the FA handover event is reported " on the charging gateway, determines that FA need be switched message sends to message accounting according to the order of message accounting transmission " allowing the FA handover event is reported ".
20, a kind of charge system as claimed in claim 19 is characterized in that,
Charging gateway also is used to be provided with the sign that needs the FA that reports after the switching;
Charging gateway obtains the IP address after FA switches, and the order of " allowing the FA handover event is reported " of sending according to message accounting, perhaps according to the order that is arranged on " allowing the FA handover event is reported " on the charging gateway, IP address after switching according to FA simultaneously and the sign of the FA that needs report after the switching that is provided with on the charging gateway determine whether that FA need be switched message sends to message accounting.
CNA200810218382XA 2008-12-12 2008-12-12 Accounting method, accounting apparatus, accounting gateway and accounting system Pending CN101431422A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CNA200810218382XA CN101431422A (en) 2008-12-12 2008-12-12 Accounting method, accounting apparatus, accounting gateway and accounting system
PCT/CN2009/074929 WO2010066157A1 (en) 2008-12-12 2009-11-13 Charging method, charging device, charging gateway and charging system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA200810218382XA CN101431422A (en) 2008-12-12 2008-12-12 Accounting method, accounting apparatus, accounting gateway and accounting system

Publications (1)

Publication Number Publication Date
CN101431422A true CN101431422A (en) 2009-05-13

Family

ID=40646601

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA200810218382XA Pending CN101431422A (en) 2008-12-12 2008-12-12 Accounting method, accounting apparatus, accounting gateway and accounting system

Country Status (2)

Country Link
CN (1) CN101431422A (en)
WO (1) WO2010066157A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010066157A1 (en) * 2008-12-12 2010-06-17 华为技术有限公司 Charging method, charging device, charging gateway and charging system
CN102571368A (en) * 2010-12-27 2012-07-11 中兴通讯股份有限公司 Charging method and access device
CN105493441A (en) * 2013-08-29 2016-04-13 瑞典爱立信有限公司 A node and method for service usage reporting and quota establishment
CN105792161A (en) * 2014-12-22 2016-07-20 中国移动通信集团公司 An online billing method, system and SIM card device
CN108024023A (en) * 2016-10-28 2018-05-11 维布络有限公司 System and method for online charging in a communication network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6973309B1 (en) * 2002-03-14 2005-12-06 Utstarcom, Inc. Method and system for re-direction and handoff for pre-paid mobile services in third generation networks
CN100496154C (en) * 2005-11-03 2009-06-03 华为技术有限公司 A way to realize prepayment
CN101060703B (en) * 2006-04-21 2011-09-14 华为技术有限公司 User equipment switching policy and charging control method
US8489096B2 (en) * 2006-06-01 2013-07-16 Nokia Corporation Inter-access handover with access specific policy control functions
CN101431422A (en) * 2008-12-12 2009-05-13 华为技术有限公司 Accounting method, accounting apparatus, accounting gateway and accounting system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010066157A1 (en) * 2008-12-12 2010-06-17 华为技术有限公司 Charging method, charging device, charging gateway and charging system
CN102571368A (en) * 2010-12-27 2012-07-11 中兴通讯股份有限公司 Charging method and access device
CN102571368B (en) * 2010-12-27 2016-01-20 中兴通讯股份有限公司 A kind of charging method and access device
CN105493441A (en) * 2013-08-29 2016-04-13 瑞典爱立信有限公司 A node and method for service usage reporting and quota establishment
CN105493441B (en) * 2013-08-29 2019-06-28 瑞典爱立信有限公司 Nodes and methods for service usage reporting and quota establishment
CN105792161A (en) * 2014-12-22 2016-07-20 中国移动通信集团公司 An online billing method, system and SIM card device
CN108024023A (en) * 2016-10-28 2018-05-11 维布络有限公司 System and method for online charging in a communication network
CN108024023B (en) * 2016-10-28 2021-03-12 维布络有限公司 System, method and readable storage medium for online charging in a communication network

Also Published As

Publication number Publication date
WO2010066157A1 (en) 2010-06-17

Similar Documents

Publication Publication Date Title
JP5269980B2 (en) Billing in LTE / EPC communication networks
CN100370732C (en) A billing method and system
US8023926B2 (en) Offline charging for sessions over a 3GPP network and a WLAN access network
JP5373057B2 (en) Online billing for roaming users in visited network proxy online billing system
WO2009024048A1 (en) A method, network system, pdn gw and accounting system for managing accounting
CN103517245B (en) A kind of charging method and system of D2D communications
KR20110042102A (en) Online Billing Correlation in IMS Networks
CN101132291A (en) Billing system, billing point, and method for reporting user billing information by the billing point
CN101431422A (en) Accounting method, accounting apparatus, accounting gateway and accounting system
CN102308603B (en) Charge mode and network access device
US20070195801A1 (en) Context-based processing of data flows
CN110890967A (en) A charging processing method, network element and network system
CN101494554B (en) Method and device for reporting policy model information
CN100397820C (en) A method of billing in communication system
KR20130015602A (en) Method for providing selective call procedure in mobile communication service system, packet data network gateway and online charging system for selective call procedure
CN101848451B (en) Access processing method, core management network element and network system
CN101009744B (en) A method for providing billing information in a wireless access network system
CN100591018C (en) Service control device, roaming charging system and roaming charging method
CN1956482B (en) A method and system for realizing flexible billing
CN101227300B (en) Postpaid rate switching method and access service network gateway
KR100982397B1 (en) Method and system for providing packet data service based on specific location information
CN102439902B (en) Charging method, device and network system for local routing service
KR100551554B1 (en) Billing system and method for each content using AP in mobile communication system and mobile communication terminal for same
CN102334351A (en) Method and device for processing international roaming packet data service
CN102316433A (en) Ticket information reporting method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090513