[go: up one dir, main page]

CN1464662A - Mobile phone user authentication charging method supporting grouped data prepayment characteristic - Google Patents

Mobile phone user authentication charging method supporting grouped data prepayment characteristic Download PDF

Info

Publication number
CN1464662A
CN1464662A CN 02122328 CN02122328A CN1464662A CN 1464662 A CN1464662 A CN 1464662A CN 02122328 CN02122328 CN 02122328 CN 02122328 A CN02122328 A CN 02122328A CN 1464662 A CN1464662 A CN 1464662A
Authority
CN
China
Prior art keywords
accounting
fee
aaa
request
pdsn
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.)
Granted
Application number
CN 02122328
Other languages
Chinese (zh)
Other versions
CN100345411C (en
Inventor
张�杰
李益民
赵晓东
卢选民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB021223289A priority Critical patent/CN100345411C/en
Publication of CN1464662A publication Critical patent/CN1464662A/en
Application granted granted Critical
Publication of CN100345411C publication Critical patent/CN100345411C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Meter Arrangements (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开一支持分组数据预付费特性的移动用户鉴权计费方法,其特征是AAA向PDSN发送的计费请求回应消息中包含有激活会话可维持时长信息;相应地,在PDSN中有会话激活触发器和计费周期触发器,该触发器能根据从AAA收到的信息进行参数重置,当触发器条件满足时,触发相应的中间计费请求信息,上报AAA;AAA收到任一中间计费请求信息后,重新计算激活会话可维持时长,并向PDSN发送计费请求回应消息。这样使得PDSN可以分段向AAA申请费用,突破了一次性费用预算的限制,不会导致透支,从而为预付费用户使用数据业务铺平了道路。同时,分段计费可以精确控制用户使用业务的时间,可以实现精确的预付费功能。

The invention discloses a mobile user authentication and charging method supporting packet data prepaid features, which is characterized in that the charging request response message sent by AAA to PDSN includes information on the duration of the active session; correspondingly, there is a session in the PDSN Activation trigger and billing cycle trigger. The trigger can reset parameters according to the information received from AAA. When the trigger condition is met, the corresponding intermediate billing request information is triggered and reported to AAA; AAA receives any After receiving the intermediate charging request information, recalculate the duration of the active session and send a charging request response message to the PDSN. In this way, PDSN can apply for fees from AAA in sections, which breaks through the limitation of one-time fee budget and does not cause overdraft, thus paving the way for prepaid users to use data services. At the same time, segment charging can accurately control the time when users use services, and can realize accurate prepayment functions.

Description

支持分组数据预付费特性的移动用户鉴权计费方法Mobile User Authentication and Billing Method Supporting Packet Data Prepaid Feature

技术领域:Technical field:

本发明涉及一种支持分组数据预付费特性的移动用户鉴权计费方法。The invention relates to a mobile user authentication and charging method supporting the packet data prepayment feature.

背景技术:Background technique:

标准的CDMA2000(Code Division Multiple Access,码分多址访问)网络结构如图1所示,按照业务特性不同,可以划分为语音网络和数据网络。CDMA2000的核心交换网对于语音网络和数据网络采用完全不同的设备,语音业务信令通过七号信令网传送,数据业务信令通过IP(Internet Protocol)网络传送。接入网则采用在现有基站控制器BSC(BaseStation Control)上加入分组控制功能(PCF,Packet Control Function)模块接入分组数据服务节点PDSN(Packet Data Serving)。The standard CDMA2000 (Code Division Multiple Access, Code Division Multiple Access) network structure is shown in Figure 1. According to different service characteristics, it can be divided into voice network and data network. The core switching network of CDMA2000 uses completely different equipment for the voice network and data network. The voice service signaling is transmitted through the SS7 signaling network, and the data service signaling is transmitted through the IP (Internet Protocol) network. The access network uses the existing base station controller BSC (BaseStation Control) to add a packet control function (PCF, Packet Control Function) module to access the packet data service node PDSN (Packet Data Serving).

传统语音网络通过WIN协议由移动交换中心MSC(Mobile SwitchControl)与业务控制点SCP(Service Control Point)进行交互,MSC完成交换功能,SCP完成鉴权、计费功能,两者结合实现对预付费用户帐号的费用控制。The traditional voice network interacts with the mobile switching center MSC (Mobile Switch Control) and the service control point SCP (Service Control Point) through the WIN protocol. The MSC completes the switching function, and the SCP completes the authentication and billing functions. Account cost control.

CDMA2000分组数据网络中,由分组数据服务节点PDSN完成交换功能,由AAA(Authentication,Authorization,and Accounting认证、授权、记帐)设备完成认证、鉴权、计费功能。两者之间的接口协议是符合CDMA2000分组设备规范的标准RADIUS(RemoteAuthentication Dial In User Service,远程认证用户拨号服务)协议,对于标准RADIUS协议可以参见RFC2865,RFC2866,RFC2869,CDMA2000的扩充部分可以参见《3GPP2 P.S0001-A Version 3.0.03 Wireless IPNetwork Standard》。In the CDMA2000 packet data network, the packet data service node PDSN completes the switching function, and the AAA (Authentication, Authorization, and Accounting authentication, authorization, and accounting) equipment completes the authentication, authentication, and accounting functions. The interface protocol between the two is the standard RADIUS (Remote Authentication Dial In User Service) protocol that conforms to the CDMA2000 grouping equipment specification. For the standard RADIUS protocol, please refer to RFC2865, RFC2866, RFC2869. For the extension of CDMA2000, please refer to " 3GPP2 P.S0001-A Version 3.0.03 Wireless IPNetwork Standard".

一次成功的移动用户鉴权计费流程中PDSN和AAA之间的交互信令可以用图2说明,其步骤包括:The interactive signaling between PDSN and AAA in a successful mobile user authentication and charging process can be illustrated in Figure 2, and its steps include:

a)移动用户要求上网,PDSN向AAA发送认证请求消息Access-Request;b)AAA对用户进行鉴权,确认用户有权登入,向PDSN发送认证接受消息Access-Accept;c)PDSN向AAA发送计费开始请求消息Accounting-Request(Start);d)AAA收到计费开始请求消息Accounting-Request(Start),开始对移动用户计费,向PDSN发送计费请求回应消息Accounting-Reponse;e)PDSN到达中间计费上报周期后,向AAA发送中间计费请求Accounting-Request(Interim);f)AAA收到中间计费请求Accounting-Request(Interim)后,产生临时记帐信息;g)移动用户结束上网,PDSN向AAA发送计费结束请求消息Accounting-Request(Stop);h)AAA结束对移动用户计费,向PDSN发送计费请求回应消息Accounting-Reponse。a) The mobile user requests to access the Internet, and the PDSN sends an authentication request message Access-Request to the AAA; b) AAA authenticates the user, confirms that the user has the right to log in, and sends an authentication acceptance message Access-Accept to the PDSN; c) the PDSN sends a counting message to the AAA Fee start request message Accounting-Request (Start); d) AAA receives the accounting start request message Accounting-Request (Start), starts charging the mobile user, and sends an accounting request response message Accounting-Reponse to PDSN; e) PDSN After reaching the intermediate charging reporting period, send an intermediate charging request Accounting-Request (Interim) to AAA; f) AAA generates temporary accounting information after receiving the intermediate charging request Accounting-Request (Interim); g) the mobile user ends When accessing the Internet, the PDSN sends an accounting end request message Accounting-Request (Stop) to the AAA; h) AAA finishes charging the mobile user, and sends an accounting request response message Accounting-Reponse to the PDSN.

PDSN和AAA之间的交互目前是基于符合CDMA2000规范的标准RADIUS协议。按照目前协议中定义的属性,只能实现在PDSN发送认证请求消息给AAA时,由AAA根据用户帐号资金进行一次性的预算,然后将可维持时间做为认证接受消息的一个参数下发给PDSN,PDSN在时间到达后发送计费结束请求消息结束此次会话。The interaction between PDSN and AAA is currently based on the standard RADIUS protocol conforming to the CDMA2000 specification. According to the attributes defined in the current protocol, it can only be realized that when the PDSN sends an authentication request message to the AAA, the AAA will make a one-time budget based on the user account funds, and then send the sustainable time as a parameter of the authentication acceptance message to the PDSN , the PDSN sends an Accounting End Request message to end the session after the time is up.

当向用户开放分组数据业务时,很有可能会有多个用户同时使用一个帐号,例如用户在上网的同时下载收费内容,上网的同时使用语音业务等,如果按照上述现有技术进行费用管理,要么会导致超支,要么会导致只能允许一个用户使用该帐号。When the packet data service is opened to users, it is very likely that multiple users will use one account at the same time. For example, users download paid content while surfing the Internet, and use voice services while surfing the Internet. Either it will result in an overage, or it will only allow one user to use the account.

因此,上述现有的技术不能实现分组数据业务的预付费功能,不能对用户费用进行实时控制,也就是说,传统语音网络的预付费用户无法使用分组数据业务。Therefore, the above-mentioned existing technology cannot realize the prepaid function of the packet data service, and cannot control the user fee in real time, that is to say, the prepaid user of the traditional voice network cannot use the packet data service.

CDMA2000网络的一大优势是可以提供内容丰富的数据类业务,增加移动用户对网络的使用频度,提高运营商的赢利能力。预付费用户在传统的语音网络(CDMA-IS95)中占有相当大的市场份额,这部分用户不能使用数据业务是一大损失。尤其当网络演进到CDMA20001X阶段,如何让属于传统语音网络的预付费用户也能够享受分组数据业务带来的便利就成为急需解决的一个问题。A major advantage of the CDMA2000 network is that it can provide rich data services, increase the frequency of mobile users using the network, and improve the profitability of operators. Prepaid users occupy a considerable market share in the traditional voice network (CDMA-IS95), and it is a big loss that these users cannot use data services. Especially when the network evolves to the CDMA20001X stage, how to make the prepaid subscribers belonging to the traditional voice network enjoy the convenience brought by the packet data service becomes an urgent problem to be solved.

发明内容:Invention content:

本发明的目的就是为了解决以上问题,提供一种支持分组数据预付费特性的移动用户鉴权计费方法,实现分组数据业务的预付费功能。The object of the present invention is to solve the above problems, provide a mobile user authentication and charging method supporting the packet data prepayment feature, and realize the prepayment function of the packet data service.

为实现上述目的,本发明提出的支持分组数据预付费特性的移动用户鉴权计费方法包括如下步骤:a)移动用户要求上网,PDSN向AAA发送认证请求消息(Access-Request);b)AAA对用户进行鉴权,如果确认用户有权登入,向PDSN发送认证接受消息(Access-Accept);c)PDSN向AAA发送计费开始请求消息(Accounting Request(Start));d)AAA收到计费开始请求消息(Accounting-Request(Start)),开始对移动用户计费,向PDSN发送计费请求回应消息(Accounting Reponse);e)PDSN到达中间计费上报周期后,向PDSN发送中间计费请求(Accounting-Request(Interim));f)AAA收到中间计费请求(Accounting-Request(Interim))后,产生临时记帐信息;g)移动用户结束上网时,PDSN向AAA发送计费结束请求消息(Accounting-Request(Stop));h)AAA结束对移动用户计费,向PDSN发送计费请求回应消息(Accounting Reponse);其特征是:AAA向PDSN发送的计费请求回应消息(Accounting Reponse)中包含有激活会话可维持时长信息;相应地,在PDSN中有会话激活触发器,该触发器能根据从AAA收到的激活会话可维持时长信息进行参数重置,当触发器条件满足时,即当激活会话可维持时长用完时,触发相应的中间计费请求信息(Accounting-Request(Interim-update)),上报AAA;在PDSN中还有计费周期触发器,该触发器能在计费周期到达时,触发相应的中间计费请求信息(Accounting-Request(Interim-update)),上报AAA;AAA收到任一中间计费请求信息(Accounting-Request(Interim-update))后,重新计算激活会话可维持时长,并向PDSN发送计费请求回应消息(Accounting Reponse)。In order to achieve the above object, the mobile user authentication and charging method supporting the packet data prepaid feature proposed by the present invention includes the following steps: a) the mobile user requires to surf the Internet, and the PDSN sends an authentication request message (Access-Request) to the AAA; b) the AAA Authenticate the user, if it is confirmed that the user has the right to log in, send an authentication acceptance message (Access-Accept) to the PDSN; c) PDSN sends an accounting start request message (Accounting Request (Start)) to the AAA; d) AAA receives the accounting Charge start request message (Accounting-Request (Start)), start charging the mobile user, and send an accounting request response message (Accounting Reponse) to the PDSN; e) After the PDSN reaches the intermediate accounting reporting period, send the intermediate accounting to the PDSN Request (Accounting-Request(Interim)); f) AAA generates temporary accounting information after receiving the intermediate accounting request (Accounting-Request(Interim)); g) When the mobile user ends the Internet, the PDSN sends the accounting end Request message (Accounting-Request (Stop)); h) AAA finishes billing the mobile user, and sends an Accounting Request Response message (Accounting Reponse) to PDSN; it is characterized in that: the Accounting Request Response message (Accounting Reponse) that AAA sends to PDSN Response) contains information on the duration of the active session; correspondingly, there is a session activation trigger in the PDSN, which can reset the parameters according to the information on the duration of the active session received from AAA. When the trigger condition is met , that is, when the duration of the active session is exhausted, the corresponding intermediate accounting request information (Accounting-Request (Interim-update)) is triggered and reported to AAA; there is also an accounting cycle trigger in the PDSN, which can When the accounting period arrives, trigger the corresponding intermediate accounting request information (Accounting-Request (Interim-update)) and report to AAA; AAA receives any intermediate accounting request information (Accounting-Request (Interim-update)) , recalculate the duration of the active session, and send an Accounting Response message (Accounting Response) to the PDSN.

由于采用了以上的方案,会话激活触发器计和费周期触发器的采用使得PDSN可以分段向AAA申请费用,这样就突破了一次性费用预算的限制,即使多个用户共用一个帐号也不会导致透支,从而为预付费用户使用数据业务铺平了道路。同时,分段计费可以精确控制用户使用业务的时间,可以实现精确的预付费功能。Due to the adoption of the above scheme, the adoption of the session activation trigger and billing cycle trigger enables PDSN to apply for fees from AAA in sections, thus breaking through the limitation of one-time fee budget, even if multiple users share one account, it will not Lead to overdraft, thus paving the way for prepaid users to use data services. At the same time, segment charging can accurately control the time when users use services, and can realize accurate prepayment functions.

附图说明:Description of drawings:

图1是CDMA2000网络结构示意图。Figure 1 is a schematic diagram of the CDMA2000 network structure.

图2是PDSN和AAA之间信令交互示意图。Fig. 2 is a schematic diagram of signaling interaction between PDSN and AAA.

图3是本发明实施例一(按时长计费、余额充足)业务流程示意图。Fig. 3 is a schematic diagram of the business process of Embodiment 1 of the present invention (billing by duration, sufficient balance).

图4是本发明实施例二(按时长计费、余额不足)业务流程示意图。Fig. 4 is a schematic diagram of the business process of Embodiment 2 of the present invention (billing by duration, insufficient balance).

图5是本发明实施例三(按流量计费、余额充足)业务流程示意图。Fig. 5 is a schematic diagram of the business process of Embodiment 3 (according to traffic flow, sufficient balance) of the present invention.

图6是本发明实施例四(按流量计费、余额不足)业务流程示意图。Fig. 6 is a schematic diagram of the business process of Embodiment 4 (according to flow rate, insufficient balance) of the present invention.

图7是本发明实施例五(按时长和流量计费、余额不足)业务流程示意图。Fig. 7 is a schematic diagram of the business process of Embodiment 5 of the present invention (charging based on duration and traffic, insufficient balance).

图8是本发明实施例六AAA主动切断PDSN的业务流程(按流量计费)。FIG. 8 is a service flow of AAA proactively disconnecting the PDSN (according to flow rate) according to Embodiment 6 of the present invention.

图中,RN为Radio Network(无线网络);MN为Mobile Node(移动节点)。In the figure, RN is Radio Network (wireless network); MN is Mobile Node (mobile node).

具体实施方式:Detailed ways:

下面通过具体的实施例并结合附图对本发明作进一步详细的描述。The present invention will be described in further detail below through specific embodiments and in conjunction with the accompanying drawings.

以下实施例可以实现分组预付费的以下关键特性:The following embodiments can realize the following key features of packet prepayment:

1、分段费用申请:对于CDMA移动用户而言,可能出现多个用户共用同一个帐号的情况。如何防止预付费用户的费用透支就是必需要考虑的一个问题。实现PDSN向AAA分段费用申请可以达到此目的。PDSN每隔一段时间向AAA申请费用,可以防止多个用户实际使用时间大于帐户余额可用实际可用时长的情况。1. Subsection fee application: For CDMA mobile users, it may happen that multiple users share the same account. How to prevent the overdraft of prepaid users is a problem that must be considered. This purpose can be achieved by realizing the application of the PDSN to the AAA segment fee. PDSN applies for fees from AAA at regular intervals, which can prevent the situation that the actual usage time of multiple users is greater than the actual available time of the account balance.

2、流量控制:按照流量计费是数据业务中很有可能采用的一种计费模式,而已有的标准RADIUS协议无法让AAA控制预付费用户的剩余可用流量。经过本发明的扩充,可以实现精确控制用户可维持的上行流量和下行流量。2. Traffic control: Charging according to traffic is a billing mode that is likely to be adopted in data services. The existing standard RADIUS protocol cannot allow AAA to control the remaining available traffic of prepaid users. Through the expansion of the present invention, accurate control of uplink traffic and downlink traffic that can be maintained by users can be realized.

3、费率切换:运营商在实际运营时很有可能对不同时段按不同费率收取用户费用。已有的标准RADIUS协议无法使PDSN向AAA报送费率切换前后的流量和时长。3. Rate switching: Operators are likely to charge users at different rates for different time periods during actual operation. The existing standard RADIUS protocol cannot enable PDSN to report the traffic and duration before and after rate switching to AAA.

为实现以上几个预付费关键特性,需要对标准RADIUS协议进行扩充。以下分四个部分对本发明进行描述:PDSN/AAA之间RADIUS协议报文扩展、AAA/SCP之间协议扩展、PDSN/AAA/SCP处理流程、典型的预付费用户协议流程。一、PDSN/AAA支持预付费特性RADIUS扩展In order to realize the above key prepaid features, the standard RADIUS protocol needs to be expanded. The present invention is described in four parts as follows: RADIUS protocol message extension between PDSN/AAA, protocol extension between AAA/SCP, PDSN/AAA/SCP processing flow, and typical prepaid user protocol flow. 1. PDSN/AAA supports prepaid feature RADIUS extension

1.1认证报文的扩展:1.1 Extension of authentication message:

在Access-Accept报文中增设预付费特性激活标志。此属性是AAA通知PDSN针对此用户是否需要激活预付费业务特性。若不包含该属性,则PDSN不激活预付费特性。其取值范围:Add a prepaid feature activation flag in the Access-Accept message. This attribute is AAA notifying PDSN whether to activate the prepaid service feature for this user. If this attribute is not included, the PDSN does not activate the prepaid feature. Its value range:

1=激活预付费特性1 = activate prepaid feature

0=不激活预付费特性0 = Disable prepaid feature

1.2计费报文的扩展:1.2 Expansion of billing message:

共包括以下几种:It includes the following types:

A)在Accounting-Response报文中增设用户可维持流量、激活会话可维持时长、最近的下一次费率切换时刻与当前时刻的时间间隔(S)、当前会话是否结束标志四个属性。A) In the Accounting-Response message, four attributes are added: the user can maintain the traffic, the duration of the active session, the time interval (S) between the next tariff switching time and the current time, and whether the current session ends.

B)在Accounting-Request(Interim-Update)报文中增设上报触发器类型属性;B) Add reporting trigger type attribute in the Accounting-Request (Interim-Update) message;

对上述扩展属性说明如下:The description of the above extended attributes is as follows:

1)用户可维持上行流量、用户可维持上行流量1) Users can maintain uplink traffic, users can maintain uplink traffic

分别表示该连接还能发或收多少千字节。如果该两个参数未出现,则PDSN不会因为使用的流量太多而切断连接。该两个参数出现在Accounting-Response中。设置目的:控制当前连接可转发的字节数。Indicates how many kilobytes the connection can send or receive, respectively. If these two parameters are not present, the PDSN will not cut off the connection because of too much traffic used. These two parameters appear in Accounting-Response. Setting purpose: to control the number of bytes that can be forwarded by the current connection.

2)激活会话可维持时长2) The duration of the activation session can be maintained

表示该连接在当前分段预留费用内处于会话激活状态的可维持时长,如果该参数未出现,则PDSN不会对会话激活状态可持续时长进行定时。Indicates the sustainable duration of the connection in the session active state within the current segment reservation fee. If this parameter does not appear, the PDSN will not time the sustainable duration of the session active state.

该参数与标准RADIUS参数Session-Timeout的区别:Session-Timeout表示当前分段预留费用内处于PPP(Point-to-PointProtocol,点对点协议)会话状态的可维持时长。The difference between this parameter and the standard RADIUS parameter Session-Timeout: Session-Timeout indicates the sustainable duration of the PPP (Point-to-Point Protocol, Point-to-Point Protocol) session state within the current segment reservation fee.

该参数出现在Accounting-Response中。设置目的:AAA控制PDSN在当前分段预留费用内处于会话激活状态的可维持时长。This parameter appears in Accounting-Response. Setting purpose: AAA controls the duration that PDSN can maintain the session active state within the current segment reservation fee.

3)费率切换点与当前时间的时间间隔3) The time interval between the tariff switching point and the current time

表示过多长时间后将发生费率切换。该时长是从这个连接最近一次发送Accounting-Request开始计的。如果该参数未出现,则PDSN认为不发生费率切换。设置目的:AAA设备通知PDSN设备费率切换点。Indicates how long after which a rate switch will occur. The duration is counted from the last Accounting-Request sent by this connection. If this parameter does not appear, the PDSN considers that tariff switching does not occur. Setting purpose: The AAA device notifies the PDSN device of the tariff switching point.

4)Interim-Update消息上报的触发器类型4) Trigger type reported by Interim-Update message

表示该值用于指示上报Accounting-Request(Interim-Update)的触发器类型。目前有四种类型:计费周期触发器、费率切换触发器、会话激活触发器、流量触发器。具体描述参见下文。Indicates that this value is used to indicate the trigger type for reporting Accounting-Request (Interim-Update). There are currently four types: billing cycle trigger, tariff switching trigger, session activation trigger, and traffic trigger. See below for a detailed description.

取值范围:Ranges:

1=计费周期触发器1 = billing cycle trigger

2=费率切换触发器2 = Rate switching trigger

3=会话激活触发器3 = session activation trigger

4=流量触发器4 = traffic trigger

5)当前会话是否结束标志5) Whether the current session ends flag

此属性出现在Accounting-Response中,表示该会话是否继续下去。如果该属性值为0,则PDSN马上上报Accounting-Request(stop),并终止会话;否则会话继续进行。如果该属性未在Accounting-Response中出现,PDSN不终止会话。This attribute appears in Accounting-Response and indicates whether the session should continue. If the value of this attribute is 0, the PDSN immediately reports Accounting-Request (stop) and terminates the session; otherwise, the session continues. If this attribute is not present in the Accounting-Response, the PDSN shall not terminate the session.

取值范围Ranges

0=false(终止会话)0 = false (terminate session)

1=true(继续会话)1 = true (continue session)

1.3增加支持AAA主动切断连接的Session-Control报文:1.3 Add the Session-Control message that supports AAA to actively disconnect the connection:

一次会话过程中,有时需要AAA主动切断当前呼叫。当前标准Radius协议无法支持这些特性。需要新增Session-Control报文,由AAA发送给PDSN,实现业务侧对设备侧的控制。During a session, sometimes AAA needs to take the initiative to cut off the current call. The current standard Radius protocol cannot support these features. A new Session-Control message needs to be added, and the AAA sends it to the PDSN to realize the control from the service side to the device side.

Session-Control为新增加的报文,Code=20,其编码方式同标准报文。Session-Control报文可以看作是一种自定义的新协议,只不过它采用了与标准Radius类同的包封闭方式、相同的UDP端口号(认证端口);该报文和Radius消息一起按照本文规定的顺序发送。Session-Control is a newly added message, Code=20, and its encoding method is the same as the standard message. The Session-Control message can be regarded as a self-defined new protocol, except that it adopts the same packet sealing method and the same UDP port number (authentication port) as the standard Radius; Sent in the order specified herein.

报文中必须有一个自定义的子属性为Command,内容为4字节的整数。目前只有一种情况:Terminate-Request报文,用于控制PDSN主动断开用户连接。其它属性如果在标准Radius中有定义,按放在Radius规定的位置;如果是扩充定义,则放在Vendor-Specific中。There must be a custom sub-attribute called Command in the message, and the content is a 4-byte integer. At present, there is only one case: the Terminate-Request message, which is used to control the PDSN to actively disconnect the user connection. If other attributes are defined in the standard Radius, they should be placed in the position specified by Radius; if they are extended definitions, they should be placed in Vendor-Specific.

但是,由于报文由AAA主动发起,则identifier值无效。PDSN可以根据Correlation ID找到连接;二、AAA/SCP协议扩展However, since the packet is initiated by AAA, the identifier value is invalid. PDSN can find the connection according to the Correlation ID; 2. AAA/SCP protocol extension

2.1接口综述2.1 Interface Overview

AAA在CDMA2000分组数据网络中完成对分组用户进行认证、授权、记帐功能,目前SCP在CDMA电路语音网络中也有对智能用户的认证、记帐功能(对于智能用户,帐户信息(金额、用户状态)存放于SCP中,费率、用户轮廓文件存放于AAA之中;对于普通非智能用户帐号存放于AAA上)。分组数据网络同样也需要支持存放于SCP中的智能帐号,目前标准网络模型中没有AAA与SCP之间的接口,因此需要对此接口进行扩充。AAA completes the authentication, authorization, and accounting functions for packet users in the CDMA2000 packet data network. At present, SCP also has the authentication and accounting functions for smart users in the CDMA circuit voice network (for smart users, account information (amount, user status) ) is stored in the SCP, and the rate and user profile files are stored in the AAA; for ordinary non-intelligent user accounts, they are stored on the AAA). The packet data network also needs to support smart accounts stored in the SCP. Currently, there is no interface between AAA and SCP in the standard network model, so this interface needs to be expanded.

通过AAA-SCP消息接口,SCP可以完成以下功能:Through the AAA-SCP message interface, SCP can complete the following functions:

1、用户帐号状态验证1. User account status verification

2、为AAA分配一段费用2. Allocate a period of fees for AAA

3、处理AAA返回给SCP的费用3. Handle the fees returned by AAA to SCP

4、扣除帐户使用费用4. Deduct account usage fees

它包括以下消息:It includes the following message:

1、鉴权请求消息:方向是从AAA到SCP,包括以下四个字段:会话标识(标志一次连续的会话,必选)、手机号码(必选)、AAA服务器的IP地址(可选)、AAA服务器的编号(可选)。1. Authentication request message: the direction is from AAA to SCP, including the following four fields: session identifier (marking a continuous session, required), mobile phone number (required), IP address of AAA server (optional), The number of the AAA server (optional).

2、鉴权请求回应消息:方向是从SCP到AAA,包括以下六个字段:会话标识(必选)、手机号码(必选)、AAA服务器的IP地址(可选)、AAA服务器的编号(可选)、申请到的费用(必选)、鉴权回应(必选),其中鉴权回应的取值包括:0=认证通过、1=用户数据不存在、2=储值卡失效、3=用户余额不大于零、4=用户已封锁、5=系统出现错误。2. Authentication request response message: the direction is from SCP to AAA, including the following six fields: session identifier (required), mobile phone number (required), IP address of AAA server (optional), number of AAA server ( Optional), application fee (required), authentication response (required), where the value of the authentication response includes: 0 = authentication passed, 1 = user data does not exist, 2 = stored value card invalid, 3 = The balance of the user is not greater than zero, 4 = the user is blocked, 5 = the system has an error.

3、费用请求消息:方向是从AAA到SCP,包括以下八个字段:会话标识(必选)、手机号码(必选)、AAA服务器的IP地址(可选)、AAA服务器的编号(可选)、操作类型(必选,1=费用申请消息、2=费用返还消息)、申请费用(操作类型为1时必选)、剩余费用(操作类型为1时可选)、返还费用(操作类型为2时可选)。3. Fee request message: the direction is from AAA to SCP, including the following eight fields: session identifier (required), mobile phone number (required), IP address of AAA server (optional), number of AAA server (optional) ), operation type (required, 1=fee application message, 2=fee return message), application fee (required when operation type is 1), remaining fee (optional when operation type is 1), return fee (operation type is optional when 2).

4、费用请求回应消息:方向是从SCP到AAA,包括以下六个字段:会话标识(必选)、手机号码(必选)、AAA服务器的IP地址(可选)、AAA服务器的编号(可选)、操作类型(必选,1=费用申请回应消息、2=费用返还确认消息)、申请到的费用(操作类型为1时必选)。三、PDSN/AAA/SCP处理方法4. Fee request response message: the direction is from SCP to AAA, including the following six fields: session identifier (required), mobile phone number (required), IP address of AAA server (optional), number of AAA server (optional) Optional), operation type (required, 1=fee application response message, 2=fee return confirmation message), applied fee (required when operation type is 1). 3. PDSN/AAA/SCP processing method

3.1处理流程综述3.1 Overview of processing flow

分段分配费用是支持分组预付费的一个重要特性,对于预付费用户,AAA需要分段分配PDSN费用,以防止多个用户共用一个帐号可能出现的透支。Charge allocation by segment is an important feature that supports group prepayment. For prepaid users, AAA needs to allocate PDSN charges by segment to prevent overdraft that may occur when multiple users share one account.

为支持按时长流量计费的分组预付费特性,PDSN需要支持四种触发器上报Accounting-Request(Interim-Update),列表如表一所示:表一:Accounting-Request(Interim-Update)的触发器列表 触发器名称     值 说明 适用场合 计费周期触发器     1 用于计费周期到达时上报AAA 按时长/流量计费 会话激活触发器     2 用于分段预留费用可维持时间内CDMA2000会话激活可用时长用尽后, 按时长计费 上报AAA 费率切换触发器     3 用于费率切换点到达时上报AAA 按时长/流量计费 流量触发器     4 用于分段预留费用可维持时间内可用流量用尽后,上报AAA 按流量计费 In order to support the packet prepayment feature of time-based traffic billing, the PDSN needs to support four triggers to report Accounting-Request (Interim-Update), the list is shown in Table 1: Table 1: Triggering of Accounting-Request (Interim-Update) device list trigger name value illustrate Applications Billing Cycle Trigger 1 Used to report AAA when the billing cycle arrives Billing by duration/traffic session activation trigger 2 After the available time for CDMA2000 session activation is exhausted, Billing by duration Report to AAA Rate Switching Trigger 3 Used to report AAA when the rate switching point arrives Billing by duration/traffic traffic trigger 4 It is used to report to AAA after the available traffic is exhausted within the maintenance period of segment reservation fees Pay by traffic

3.1.1 AAA/SCP处理综述3.1.1 Overview of AAA/SCP processing

AAA和SCP之间的消息流程存在以下三个阶段:The message flow between AAA and SCP has the following three stages:

一:鉴权阶段1: Authentication stage

AAA收到PDSN上报的Access-Request消息,做为鉴权处理流程的一部分向SCP发送Auth-Request消息,SCP鉴权通过后,返回Fee-Response消息,AuthResult=0,FeeApplied为SCP分配给AAA的一段费用。AAA receives the Access-Request message reported by the PDSN, and sends an Auth-Request message to the SCP as part of the authentication process. After the SCP passes the authentication, it returns a Fee-Response message, AuthResult=0, and FeeApplied is the one assigned to the AAA by the SCP. a fee.

二:申请费用阶段Two: Application fee stage

AAA接收到PDSN上报的Accounting-Request(Interim-Update),AAA根据消息中上报的时间和流量以及当前费率计算出用户在本分段时间内的已用费用,用本分段申请到的费用减去已用费用得到本分段的剩余费用,将此剩余费用和AAA保存的申请费用阀值(阀值由AAA决定,可配置)比较,如果小于该阀值,则AAA需要向SCP申请分段费用,并发送Fee-Request消息,SCP返回Fee-Response消息,FeeApplied为SCP分配给AAA的一段费用;如果大于或者等于该阀值,则AAA不向SCP申请分段费用,根据本分段的剩余费用及费率计算出剩余费用可维持的时长或流量。AAA receives the Accounting-Request (Interim-Update) reported by PDSN, AAA calculates the user's used fee in this segment according to the time and traffic reported in the message, and the current rate, and uses the fee applied for in this segment Subtract the used fee to get the remaining fee of this segment, and compare this remaining fee with the application fee threshold saved by AAA (the threshold is determined by AAA and can be configured). If it is less than the threshold, AAA needs to apply to SCP for points fee, and send Fee-Request message, SCP returns Fee-Response message, FeeApplied is the fee allocated by SCP to AAA; if it is greater than or equal to the threshold, AAA will not apply to SCP for fee, according to this section The remaining fee and rate calculate the duration or traffic that the remaining fee can maintain.

以上描述称为AAA费用申请策略The above description is called AAA Fee Application Policy

三:会话结束阶段AAA收到PDSN上报的Account-Request(Stop),AAA计算用户本分段已用费用,将本段未用完费用通过Fee-Request消息返还给SCP,OperationType参数=3,为费用返还消息,FeeReturn参数为返还的费用。Three: At the end of the session, AAA receives the Account-Request (Stop) reported by the PDSN, AAA calculates the user's used fee for this segment, and returns the unused fee for this segment to the SCP through the Fee-Request message, and the OperationType parameter = 3, which is Fee return message, the FeeReturn parameter is the returned fee.

3.1.2 PDSN/AAA处理综述3.1.2 Overview of PDSN/AAA processing

对于PDSN,需要维护上面提到的四种触发器,任何一个触发器条件满足则触发相应的Accounting-Request(Interim-Update),并有能力根据返回的Accounting-Response消息重置会话激活触发器、费率切换触发器、流量触发器。For PDSN, the four triggers mentioned above need to be maintained. If any trigger condition is satisfied, the corresponding Accounting-Request (Interim-Update) will be triggered, and the session activation trigger will be reset according to the returned Accounting-Response message. Rate switching trigger, traffic trigger.

当同时存在多个费用预算项目时,例如同时预算时长、上行流量、下行流量,需要确定一个预算金额分配策略,此策略由AAA决定,原则是确保运营商不受损失。建议将分段费用平均分配到各项预算(时长、上行流量、下行流量)中,这样可保证用户不会透支。When there are multiple cost budget items at the same time, such as the budget duration, uplink traffic, and downlink traffic at the same time, it is necessary to determine a budget amount allocation strategy. This strategy is decided by AAA, and the principle is to ensure that operators do not suffer losses. It is recommended that segment fees be evenly allocated to each budget (duration, uplink traffic, downlink traffic), so as to ensure that users will not be overdrawn.

对于AAA,按照计费方式不同,分成多种场合,下面针对只按时长计费、只按流量计费、同时按时长流量计费三种情况分别讨论:For AAA, it is divided into various scenarios according to different charging methods. The following discusses the three cases of charging only by duration, only by flow rate, and simultaneously by duration and flow rate:

(一)只按时长计费:(1) Billing only by duration:

AAA根据配置策略确定分段申请费用金额,在PDSN上报Accounting-Request(Start)后,根据下一计费周期内最新的激活会话计费费率计算出激活会话可维持时长,填入Accounting-Response消息的激活会话可维持时长参数并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,将Accounting-Response消息下发给PDSN。它又分为:AAA determines the segment application fee amount according to the configuration policy. After the PDSN reports the Accounting-Request (Start), it calculates the duration of the activation session according to the latest activation session charging rate in the next billing cycle, and fills it in the Accounting-Response The activation session of the message can maintain the duration parameter and determine the time interval between the next charging rate switching time and the current time, fill in the charging rate switching interval parameter, and send the Accounting-Response message to the PDSN. It is further divided into:

情况一:对于计费周期触发器和费率切换触发器上报的Accounting-Request(Interim-Update),AAA根据激活会话可维持时长参数(Acct-Session-Time)得出激活会话时长,进而得出本分段内用户已用费用,在本分段费用未使用完的情况下(属于绝大多数情况,例外情况是上报消息时恰好本分段费用用尽,此时需要向SCP重新申请费用,处理同情况二),AAA不需要重新申请分段费用,只需将分段预留费用减去用户已用费用再重新计算本分段预留费用内的激活会话可维持时长并填入Accounting-Response消息的激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,将Accounting-Response消息下发给PDSN。Scenario 1: For the Accounting-Request (Interim-Update) reported by the billing cycle trigger and tariff switching trigger, AAA calculates the activation session duration according to the activation session sustainable duration parameter (Acct-Session-Time), and then derives The user has used the fee in this segment. In the case that the fee for this segment has not been used up (in most cases, the exception is that the fee for this segment happens to be exhausted when the message is reported. At this time, it is necessary to re-apply for the fee to the SCP. The same as case 2), AAA does not need to re-apply for the segment fee, just subtract the user’s used fee from the segment reserved fee, recalculate the duration of the activation session in the reserved fee for this segment, and fill it in Accounting- The activation session of the Response message can maintain the duration parameter, and determine the time interval between the next charging rate switching time and the current time, fill in the charging rate switching interval parameter, and send the Accounting-Response message to the PDSN.

情况二:对于会话激活触发器上报的Accounting-Request(Interim-Update),AAA需要重新向SCP申请分段费用,然后根据分段预留费用计算出激活会话可维持时长,填入Accounting-Response消息的激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将Accounting-Response消息下发给PDSN。Case 2: For the Accounting-Request (Interim-Update) reported by the session activation trigger, AAA needs to re-apply for the segment fee from the SCP, then calculate the duration of the active session based on the segment reservation fee, and fill in the Accounting-Response message The activation session can maintain the duration parameter, and determine the time interval between the next time of the next rate switch and the current time, fill in the rate switch interval (rate switch time length), and send the Accounting-Response message to the PDSN.

(二)只按流量计费:(2) Billing only by flow rate:

AAA根据配置策略确定分段申请费用金额,在PDSN上报Accounting-Request(Start)后,根据根据预算金额分配策略确定用于预算上行流量和下行流量的费用,分别根据上行流量费率下行流量费率计算出用户可维持上行流量和下行流量,填入Accounting-Response消息的可维持上行流量、可维持下行流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,对激活会话可维持时长参数不做处理,然后将Accounting-Response消息下发给PDSN。AAA determines the segment application fee amount according to the configuration policy. After the PDSN reports the Accounting-Request (Start), it determines the budgeted upstream traffic and downstream traffic fees according to the budget amount allocation strategy, respectively according to the upstream traffic rate and the downlink traffic rate. Calculate the uplink traffic and downlink traffic that can be maintained by the user, fill in the uplink traffic and downlink traffic parameters of the Accounting-Response message, determine the time interval between the next tariff switching time and the current time, and fill in the tariff The interval parameter is switched, and the duration parameter of the active session is not processed, and then the Accounting-Response message is sent to the PDSN.

情况一:对于计费周期触发器和费率切换触发器上报的的Accounting-Request(Interim-Update),AAA根据帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数得出已用户已使用流量,进而得出本分段内用户已用费用,在本分段费用未使用完的情况下(属于绝大多数情况,例外情况是上报消息时恰好本分段费用用尽,此时需要向SCP重新申请费用,处理同情况二),AAA不需要重新申请分段费用,需要将分段预留费用减去用户已用费用再重新计算本分段预留费用内的可维持流量,填入Accounting-Response消息的可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,将Accounting-Response消息下发给PDSN;对激活会话可维持时长参数不做处理,将Accounting-Response消息下发给PDSN。Case 1: For the Accounting-Request (Interim-Update) reported by the billing cycle trigger and tariff switch Output-Octets) parameter to obtain the traffic used by the user, and then to obtain the user's used fee in this segment. The fee for this segment is exhausted. At this time, you need to re-apply for the fee from SCP. The processing is the same as in case 2). AAA does not need to re-apply for the segment fee. It needs to subtract the user’s used fee from the reserved fee for the segment and then recalculate this segment. Reserve the sustainable traffic within the fee, fill in the sustainable traffic parameters of the Accounting-Response message, and determine the time interval between the next time of the next rate switching time and the current time, fill in the rate switching interval parameters, and set the Accounting-Response Send the message to the PDSN; do not process the duration parameter of the active session, and send the Accounting-Response message to the PDSN.

情况二:对于流量触发器上报的Accounting-Request(Interim-Update),AAA需要重新向SCP申请分段费用,然后用申请到的费用或者剩余费用根据预算金额分配策略重新计算本分段预留费用内的可维持上行流量和下行流量,填入Accounting-Response消息的可维持上行流量和可维持下行流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,对激活会话可维持时长参数不做处理,然后将Accounting-Response消息下发给PDSN。Case 2: For the Accounting-Request (Interim-Update) reported by the traffic trigger, AAA needs to re-apply for the segment fee from the SCP, and then use the applied fee or the remaining fee to recalculate the reserved fee for this segment according to the budget allocation strategy Fill in the sustainable upstream traffic and downstream traffic in the Accounting-Response message, and determine the time interval between the next tariff switching time and the current time, and fill in the tariff switching Interval parameter, do not process the duration parameter of the activation session, and then send the Accounting-Response message to the PDSN.

(三)按时长和流量计费:(3) Billing according to duration and traffic:

AAA根据配置策略确定分段预留费用分配金额,在PDSN上报Accounting-Request(Start)后,根据根据预算金额分配策略确定用于预算时长和上行流量下行流量的费用,分别根据时长费率、上行流量费率、下行流量费率确定用户可维持时间、可维持上行流量、可维持上行流量,填入Accounting-Response消息的激活会话可维持时长、可维持上行流量、可维持下行流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,然后将Accounting-Response消息下发给PDSN。AAA determines the allocation amount of segment reserved fees according to the configuration policy. After the PDSN reports the Accounting-Request (Start), it determines the budgeted duration and upstream traffic and downstream traffic fees according to the budgeted amount allocation strategy. The traffic rate and downlink traffic rate determine the user's maintainable time, maintainable uplink traffic, and maintainable uplink traffic, fill in the Accounting-Response message activation session's maintainable duration, maintainable uplink traffic, and maintainable downlink traffic parameters, and determine Fill in the time interval between the next tariff switching time and the current time, and fill in the tariff switching interval parameter, and then send the Accounting-Response message to the PDSN.

情况一:对于计费周期触发器和费率切换触发器上报的的Accounting-Request(Interim-Update),AAA根据Acct-Session-Time和可维持流量参数得出用户激活会话时长和流量,进而得出本分段内用户已用费用,在本分段费用未使用完的情况下(绝大多数情况),AAA不需要重新申请分段费用,需要将分段预留费用减去用户已用费用并根据预算金额分配策略重新计算本分段预留费用内的可维持时长、可维持上行流量、可维持下行流量,填入Accounting-Response消息的激活会话可维持时长、可维持上行流量、可维持下行流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将Accounting-Response消息下发给PDSN。Scenario 1: For the Accounting-Request (Interim-Update) reported by the billing cycle trigger and tariff switching trigger, AAA calculates the user’s active session duration and traffic according to the Acct-Session-Time and the sustainable traffic parameters, and then obtains Pay the user's used fee in this segment. In the case that the segment fee is not used up (in most cases), AAA does not need to reapply for the segment fee, and needs to subtract the user's used fee from the segment reserved fee And according to the budget allocation strategy, recalculate the sustainable duration, sustainable upstream traffic, and sustainable downstream traffic in the reserved fee of this segment, and fill in the Accounting-Response message for the sustainable duration, sustainable upstream traffic, and sustainable Downlink traffic parameters, and determine the time interval between the next charging rate switching time and the current time, fill in the charging rate switching interval (tariff switching duration), and send the Accounting-Response message to the PDSN.

情况二:对于会话激活触发器上报的Accounting-Request(Interim-Update),AAA根据Acct-Session-Time、Acct-Input-Octets、Acct-Output-Octets参数计算当前已用分段费用,和当用户当前应由分段费用高于某阀值(阀值应由AAA决定,并且可配置)时,处理同情况一。当用户当前分段费用低于某阀值时,AAA需要重新向SCP申请分段费用,然后用申请到的费用或者剩余费用根据预算金额分配策略重新计算本分段预留费用内的可维持时长、可维持上行流量、可维持下行流量,填入Accounting-Response消息的激活会话可维持时长、可维持上行流量、可维持下行流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将Accounting-Response消息下发给PDSN。Case 2: For the Accounting-Request (Interim-Update) reported by the session activation trigger, AAA calculates the currently used segment fee according to the Acct-Session-Time, Acct-Input-Octets, and Acct-Output-Octets parameters, and when the user When the segment fee should be higher than a certain threshold (threshold should be determined by AAA and can be configured), the processing is the same as case 1. When the user's current segment fee is lower than a certain threshold, AAA needs to re-apply for the segment fee from SCP, and then use the applied fee or the remaining fee to recalculate the sustainable duration of the reserved fee for this segment according to the budget allocation strategy , can maintain uplink traffic, can maintain downlink traffic, the activation session filled in the Accounting-Response message can last for a long time, can maintain uplink traffic, can maintain downlink traffic parameters, and determine the time of the nearest next tariff switching time and the current time Interval, fill in the rate switch interval (rate switch duration), and send the Accounting-Response message to the PDSN.

情况三:对于流量触发器上报的Accounting-Request(Interim-Update),AAA根据Acct-Session-Time、Acct-Input-Octets、Acct-Output-Octets参数计算当前已用分段费用,当用户已用分段费用高于某阀值时,处理同情况一。当用户当前分段费用低于某阀值时,AAA需要向SCP发送费用请求消息,其中包含未用完分段费用参数FeeLeft,参数申请费用为需申请的分段费用,然后用申请到的费用或者剩余费用根据预算金额分配策略重新计算本分段预留费用内的可维持时长、可维持上行流量、可维持下行流量,填入Accounting-Response消息的激活会话可维持时长、可维持上行流量、可维持下行流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,将Accounting-Response消息下发给PDSN。Case 3: For the Accounting-Request (Interim-Update) reported by the traffic trigger, AAA calculates the currently used segment fee according to the Acct-Session-Time, Acct-Input-Octets, and Acct-Output-Octets parameters. When the segment fee is higher than a certain threshold, the processing is the same as case 1. When the user's current segment fee is lower than a certain threshold, AAA needs to send a fee request message to SCP, which includes the unused segment fee parameter FeeLeft, and the parameter application fee is the segment fee to be applied, and then use the applied fee Or the remaining fee is recalculated according to the budget amount allocation strategy for the sustainable duration, uplink traffic, and downlink traffic in the reserved fee of this segment, and the activation session that is filled in the Accounting-Response message can be maintained for a long time, uplink traffic, and It can maintain the downlink traffic parameters, determine the time interval between the next tariff switching time and the current time, fill in the tariff switching interval parameters, and send the Accounting-Response message to the PDSN.

3.1.2 AAA/SCP处理综述3.1.2 Overview of AAA/SCP processing

AAA和SCP之间的消息存在以下三类情况:There are three types of messages between AAA and SCP:

1、AAA收到PDSN上报的Access-Request消息,做为鉴权处理流程的一部分向SCP发送鉴权请求消息,SCP鉴权通过后,返回鉴权响应消息,并返回AAA一段申请到的费用。1. The AAA receives the Access-Request message reported by the PDSN, and sends an authentication request message to the SCP as part of the authentication process. After the SCP passes the authentication, it returns an authentication response message and a section of the fee applied for by AAA.

2、PDSN上报的Accounting-Request(Interim-Update)并且AAA计算用户本段费用已经全部使用完,AAA需要向SCP申请分段费用,发送费用请求消息,SCP返回费用申请回应消息,并返回AAA一段申请到的费用。2. The Accounting-Request (Interim-Update) reported by the PDSN and AAA calculates that the user's fee for this section has been used up. AAA needs to apply for a section fee from the SCP and send a fee request message. SCP returns a fee application response message and returns AAA for a section application fee.

3、AAA收到PDSN上报的Account-Request(Stop),AAA计算用户本段已用费用,将本段未使用完费用通过费用申请消息(操作类别=2)返还给SCP。3. AAA receives the Account-Request (Stop) reported by the PDSN, AAA calculates the user's used fee for this section, and returns the unused fee for this section to the SCP through a fee application message (operation type = 2).

3.2触发器处理流程3.2 Trigger processing flow

3.2.1计费周期触发器处理流程3.2.1 Billing cycle trigger processing flow

1、PDSN上报Access-Request消息并通过AAA认证后收到Access-Accept消息,根据Access-Accept消息中的Acct-Interim-Interval参数确定计费周期触发器上报的周期。做为可选项,PDSN也可以根据本地配置的情况在一个计费周期中途上报Accounting-Request(Interim-Update);1. The PDSN reports the Access-Request message and receives the Access-Accept message after passing the AAA authentication, and determines the reporting period of the charging cycle trigger according to the Acct-Interim-Interval parameter in the Access-Accept message. As an option, PDSN can also report Accounting-Request (Interim-Update) in the middle of a charging cycle according to the local configuration;

2、计费周期触发器触发条件满足,PDSN触发Accounting-Request(Interim-Update),触发器类型为1;2. The trigger condition of the billing cycle trigger is met, the PDSN triggers Accounting-Request (Interim-Update), and the trigger type is 1;

3、AAA收到Accounting-Request(Interim-Update)(触发器类别=1),根据上报时间在本分段预留费用内扣去从分段预留费用计费开始时间到上报时间的费用,然后根据分段预留费用剩余部分在Accounting-Response消息中重置激活会话可维持时长参数、费率切换间隔参数;3. AAA receives the Accounting-Request (Interim-Update) (trigger type = 1), and deducts the fee from the billing start time of the segment reservation fee to the report time from the reserved fee of this segment according to the reporting time, Then, according to the remaining portion of the segment reservation fee, reset the activation session maintenance duration parameter and rate switching interval parameter in the Accounting-Response message;

4、PDSN收到Accounting-Response消息后,根据激活会话可维持时长参数、费率切换间隔参数重置会话激活触发器、费率切换触发器。4. After receiving the Accounting-Response message, the PDSN resets the session activation trigger and the charging rate switching trigger according to the parameters of the duration of the active session and the parameters of the charging rate switching interval.

3.2.2费率切换触发器处理流程3.2.2 Tariff switching trigger processing flow

1、PSDN上报Accounting-Request(Start)或者Accounting-Request(Interim-Update)(触发器类别=1)后收到Accounting-Response消息,根据费率切换间隔参数设置费率切换触发器;1. PSDN reports Accounting-Request (Start) or Accounting-Request (Interim-Update) (trigger type = 1) and receives the Accounting-Response message, and sets the tariff switching trigger according to the tariff switching interval parameter;

2、费率切换触发器触发条件满足,PDSN触发Accounting-Request(Interim-Update),触发器类型为2;2. The trigger condition of the rate switching trigger is met, the PDSN triggers Accounting-Request (Interim-Update), and the trigger type is 2;

3、AAA收到Accounting-Request(Interim-Update)(触发器类别=2),根据上报时间在本分段预留费用内扣去从分段预留费用计费开始时间到上报时间的费用,如果按时间计费则根据分段预留费用剩余部分在Accounting-Response消息中重置激活会话可维持时长参数、费率切换间隔参数;如果按流量计费则分段预留费用剩余部分在Accounting-Response消息中重置可维持流量参数;3. AAA receives the Accounting-Request (Interim-Update) (trigger type = 2), and deducts the fee from the billing start time of the segment reserved fee to the report time from the reserved fee of this segment according to the reporting time, If billing is based on time, the remaining part of the segment reservation fee will be reset in the Accounting-Response message according to the remaining part of the segment reservation fee. -Reset the maintainable traffic parameters in the Response message;

4、PDSN收到Accounting-Response消息后,根据激活会话可维持时长参数、费率切换间隔参数重置会话激活触发器、费率切换触发器。4. After receiving the Accounting-Response message, the PDSN resets the session activation trigger and the charging rate switching trigger according to the parameters of the duration of the active session and the parameters of the charging rate switching interval.

3.2.3会话激活触发器触发处理流程(只按时长计费)3.2.3 Session activation trigger triggers processing flow (only billed by duration)

1、PSDN上报Accounting-Request(Start)或者Accounting-Request(Interim-Update)(触发器类别=1)后收到Accounting-Response消息,根据激活会话可维持时长参数设置会话激活触发器;1. PSDN reports Accounting-Request (Start) or Accounting-Request (Interim-Update) (trigger category = 1) and receives the Accounting-Response message, and sets the session activation trigger according to the duration parameter for activating the session;

2、会话激活触发器触发条件满足,PDSN触发Accounting-Request(Interim-Update),触发器类型为3;2. The trigger condition of the session activation trigger is met, the PDSN triggers Accounting-Request (Interim-Update), and the trigger type is 3;

3、AAA收到Accounting-Request(Interim-Update)(触发器类别=3),确认需要重新申请费用,向SCP发送费用请求消息申请分段费用;3. AAA receives the Accounting-Request (Interim-Update) (trigger type=3), confirms that it needs to reapply for the fee, and sends a fee request message to the SCP to apply for a segment fee;

4、SCP根据AAA申请额度和用户当前剩余费用向AAA发送费用申请回应消息,指明AAA申请到的费用;4. SCP sends a fee application response message to AAA according to the AAA application quota and the user's current remaining fee, indicating the fee applied by AAA;

5、PDSN根据申请到的费用在Accounting-Response消息中重置激活会话可维持时长参数、费率切换间隔参数;5. The PDSN resets the parameters of the duration of the activation session and the parameter of the rate switching interval in the Accounting-Response message according to the applied fee;

6、PDSN收到Accounting-Response消息后,根据激活会话可维持时长参数、费率切换间隔参数,重置会话激活触发器、费率切换触发器。6. After receiving the Accounting-Response message, the PDSN resets the session activation trigger and the charging rate switching trigger according to the parameters of the duration of the active session and the parameters of the charging rate switching interval.

3.2.4流量触发器处理流程(只按流量计费)3.2.4 Traffic trigger processing flow (only billed by traffic)

1、PSDN上报Accounting-Request(Start)或者Accounting-Request(Interim-Update)(触发器类别=1)后收到Accounting-Response消息,根据可维持流量参数设置流量触发器;1. PSDN reports Accounting-Request (Start) or Accounting-Request (Interim-Update) (trigger type = 1) and receives the Accounting-Response message, and sets the traffic trigger according to the maintainable traffic parameters;

2、流量触发条件满足,PDSN触发Accounting-Request(Interim-Update),触发器类型为4;2. When the traffic trigger condition is met, the PDSN triggers Accounting-Request (Interim-Update), and the trigger type is 4;

3、AAA收到Accounting-Request(Interim-Update)(触发器类别=4),确认需要重新申请费用,向SCP发送费用请求消息申请分段费用;3. AAA receives the Accounting-Request (Interim-Update) (trigger category=4), confirms that it needs to reapply for the fee, and sends a fee request message to the SCP to apply for a segment fee;

4、SCP根据AAA申请额度和用户当前剩余费用向AAA发送费用申请回应消息,参数指明AAA申请到的费用;4. The SCP sends a fee application response message to AAA according to the AAA application quota and the user's current remaining fee, and the parameter indicates the fee applied by AAA;

5、PDSN收到Accounting-Response消息后,根据可维持流量参数重置流量触发器。5. After receiving the Accounting-Response message, the PDSN resets the traffic trigger according to the maintainable traffic parameters.

3.3异常情况处理3.3 Abnormal Situation Handling

3.3.1 AAA未收到SCP费用请求回应消息的处理3.3.1 AAA does not receive the processing of the SCP fee request response message

3.3.1.1 AAA未收到鉴权请求回应消息3.3.1.1 AAA has not received the authentication request response message

AAA向SCP鉴权请求消息,未收到回应的情况下认为SCP鉴权不通过,向PDSN发送Access-Reject消息。The AAA sends an authentication request message to the SCP, and if no response is received, it considers that the SCP authentication fails, and sends an Access-Reject message to the PDSN.

3.3.1.2 AAA未收到操作类别=1的费用请求回应消息3.3.1.2 AAA has not received a fee request response message with operation category = 1

AAA向SCP发送操作类别=1的费用请求消息,未收到回应的情况下认为向SCP申请费用失败,向PDSN发送Account-Response消息,Session-Cont=0。The AAA sends a fee request message with operation type=1 to the SCP. If no response is received, it considers that the fee application to the SCP fails, and sends an Account-Response message to the PDSN, with Session-Cont=0.

3.3.1.3 AAA未收到操作类别=2的费用请求回应消息3.3.1.3 AAA has not received the fee request response message with operation type = 2

AAA向SCP发送操作类别=2的费用请求消息,未收到回应的情况下认为费用回退失败,AAA保留此段未用完费用用于该用户的下次会话。四、以下是几个支持预付费特性的典型协议流程实例。AAA sends a fee request message with operation category=2 to SCP, and considers that the fee rollback fails if no response is received, and AAA reserves the unused fee for the next session of the user. 4. The following are several examples of typical protocol processes that support prepaid features.

以下流程都假设AAA通知PDSN激活预付费特性(预付费激活标志属性置为1)。The following procedures all assume that the AAA notifies the PDSN to activate the prepaid feature (the attribute of the prepaid activation flag is set to 1).

实施例一:用户余额充足时的业务流程(按时长计费、包含费率切换点),如图3所示,它包括如下步骤:Embodiment 1: the business process when the user balance is sufficient (charging by duration, including a rate switching point), as shown in Figure 3, it includes the following steps:

a.移动用户请求接入,PDSN向AAA发送Access-Request请求认证;a. The mobile user requests access, and the PDSN sends an Access-Request to the AAA to request authentication;

b.AAA确认主叫为预付费用户,向SCP发送鉴权请求消息费用请求;b. AAA confirms that the calling party is a prepaid user, and sends an authentication request message fee request to the SCP;

c.SCP通过用户鉴权,根据鉴权请求消息申请费用参数和用户当前余额分配用户一段费用,向AAA返回鉴权回应消息,指明为分配用户的费用;c. After user authentication, the SCP allocates a period of fee to the user according to the application fee parameter of the authentication request message and the user's current balance, and returns an authentication response message to AAA, indicating the fee for the allocated user;

d.AAA验证通过,向PDSN返回鉴权请求回应Access-Accept消息;d. AAA verification is passed, and the authentication request response Access-Accept message is returned to the PDSN;

e.PDSN向AAA上报Accounting-Request(Start);e. PDSN reports Accounting-Request (Start) to AAA;

f.移动用户为预付费用户且按时长计费,AAA根据由SCP分配所得的费用计算激活会话可维持时间,填入Accounting-Response消息的激活会话可维持时长参数(激活会话时长),并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将Accounting-Response消息下发给PDSN;f. The mobile user is a prepaid user and is billed according to the length of time. AAA calculates the maintenance time of the activation session according to the fee allocated by the SCP, fills in the activation session maintenance time parameter (activation session duration) of the Accounting-Response message, and determines Fill in the time interval between the nearest next tariff switching time and the current time, fill in the tariff switching interval (tariff switching duration), and send the Accounting-Response message to the PDSN;

g.计费周期触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=1,消息包括激活会话可维持时长参数(Acct-Session-Time);g. When the billing cycle trigger arrives, the PDSN triggers an Accounting-Request (Interim-Update) to the AAA, the trigger category=1, and the message includes an activation session sustainable duration parameter (Acct-Session-Time);

h.AAA根据激活会话可维持时长参数(Acct-Session-Time)得出激活会话时长得出本分段内用户已用费用,AAA需要将当前分段费用减去用户已用费用再重新计算本分段预留费用内的激活会话可维持时长填入Accounting-Response消息的激活会话可维持时长参数(激活会话时长),并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将Accounting-Response消息下发给PDSN;h. AAA obtains the duration of the activation session based on the parameter (Acct-Session-Time) for the duration of the activation session to obtain the user's used fee in this segment. AAA needs to subtract the user's used fee from the current segment fee to recalculate the cost Fill in the sustainable duration of the activated session in the section reservation fee into the parameter of the sustainable duration of the activated session (activated session duration) of the Accounting-Response message, and determine the time interval between the next time of the next tariff switch and the current time, and fill in Rate switch interval (rate switch duration), send Accounting-Response message to PDSN;

i.费率切换触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=2;i. When the rate switching trigger arrives, the PDSN triggers Accounting-Request (Interim-Update) to AAA, trigger type = 2;

j.AAA根据激活会话可维持时长参数(Acct-Session-Time)得出激活会话时长得出本分段内用户已用费用,AAA需要将当前分段费用减去用户已用费用再重新计算本分段预留费用内的激活会话可维持时长填入Accounting-Response消息的激活会话可维持时长参数(激活会话时长),并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),指明继续会话,将Accounting-Response消息下发给PDSN;j. AAA obtains the duration of the activation session based on the parameter (Acct-Session-Time) for the duration of the activation session to obtain the user's used fee in this segment. AAA needs to subtract the user's used fee from the current segment fee to recalculate the cost Fill in the sustainable duration of the activated session in the section reservation fee into the parameter of the sustainable duration of the activated session (activated session duration) of the Accounting-Response message, and determine the time interval between the next time of the next tariff switch and the current time, and fill in Rate switching interval (rate switching duration), indicating the continuation of the session, and sending the Accounting-Response message to the PDSN;

k.激活会话触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=3;k. When the session trigger is activated, the PDSN triggers Accounting-Request (Interim-Update) to AAA, trigger category = 3;

l.AAA确认用户当前分段费用已用完,向SCP发送费用请求消息费用请求,操作类别=1(费用申请);l. AAA confirms that the user's current segment fee has been used up, and sends a fee request message fee request to the SCP, and the operation category=1 (fee application);

m.SCP根据费用请求消息申请费用参数和用户当前余额分配用户一段费用并向AAA返回费用请求回应,操作类别=1(费用申请回应)、指明为分配用户的费用;m. The SCP allocates a period of fees to the user according to the application fee parameters of the fee request message and the user's current balance, and returns a fee request response to the AAA, with operation category = 1 (fee application response), indicating the fee for the allocated user;

n.AAA根据由SCP分配所得的费用计算激活会话可维持时间,填入Accounting-Response消息的激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;n. AAA calculates the sustainable time of the active session based on the fee allocated by the SCP, fills in the parameter of the sustainable time of the activated session of the Accounting-Response message, and determines the time interval between the time of the next tariff switching time and the current time, and fills in Rate switching interval parameter, indicating to continue the session, and send the Accounting-Response message to the PDSN;

o.用户结束分组业务;o. The user ends the packet service;

p.PDSN向AAA上报Accounting-Request(Stop),包括激活会话可维持时长参数(Acct-Session-Time);p.PDSN reports Accounting-Request (Stop) to AAA, including the duration parameter (Acct-Session-Time) for activating the session;

q.AAA根据激活会话可维持时长参数(Acct-Session-Time)得出激活会话时长、进而得出本分段内用户已用费用和申请到分段费用中未使用完部分。AAA确认需要返还费用,向SCP发送费用请求消息,操作类别=2(费用返还);q. AAA calculates the duration of the activation session based on the sustainable duration parameter of the activation session (Acct-Session-Time), and then obtains the user's used fee in this segment and the unused part of the segment fee applied for. AAA confirms that the fee needs to be returned, and sends a fee request message to the SCP, with operation category=2 (fee return);

r.SCP根据费用请求消息返还费用参数为用户数据库加上费用,SCP向AAA返回费用申请回应消息,操作类别=2(费用返还确认);r.SCP adds fee to user database according to fee request message return fee parameter, SCP returns fee application response message to AAA, operation type=2 (fee return confirmation);

s.AAA向PDSN返回记帐请求回应消息Account-Response,指明结束会话。s. The AAA returns an accounting request response message Account-Response to the PDSN, indicating to end the session.

注:以上业务流程可以根据实际情况进行裁减,例如,可以不包括费率切换定时触发部分和激活会话定时触发部分Note: The above business process can be cut according to the actual situation, for example, the timing trigger part of rate switching and the timing trigger part of activation session may not be included

实施例二:用户余额不足时的业务流程(按时长计费、包含费率切换点),如图4所示,它包括如下步骤:Embodiment two: the business process when the user balance is insufficient (charging by duration, including a rate switching point), as shown in Figure 4, it includes the following steps:

a.移动用户请求接入,PDSN向AAA发送Access-Request请求认证;a. The mobile user requests access, and the PDSN sends an Access-Request to the AAA to request authentication;

b.AAA确认主叫为预付费用户,向SCP发送费用请求消息鉴权请求;b. AAA confirms that the calling party is a prepaid user, and sends a charge request message authentication request to the SCP;

c.SCP通过用户鉴权,根据鉴权请求消息申请费用参数和用户当前余额分配用户一段费用,向AAA返回鉴权回应消息,为分配用户的费用;c. The SCP passes the user authentication, allocates a period of fees to the user according to the application fee parameters of the authentication request message and the user's current balance, and returns an authentication response message to the AAA to allocate the user's fee;

d.AAA验证通过,向PDSN返回鉴权请求回应Access-Accept消息;d. AAA verification is passed, and the authentication request response Access-Accept message is returned to the PDSN;

e.PDSN向AAA上报Accounting-Request(Start);e. PDSN reports Accounting-Request (Start) to AAA;

f.移动用户为预付费用户且按时长计费,AAA根据由SCP分配所得的费用计算激活会话可维持时间,填入Accounting-Response消息的激活会话可维持时长参数(激活会话时长),并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将Accounting-Response消息下发给PDSN;f. The mobile user is a prepaid user and is billed according to the length of time. AAA calculates the maintenance time of the activation session according to the fee allocated by the SCP, fills in the activation session maintenance time parameter (activation session duration) of the Accounting-Response message, and determines Fill in the time interval between the nearest next tariff switching time and the current time, fill in the tariff switching interval (tariff switching duration), and send the Accounting-Response message to the PDSN;

g.计费周期触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=1,消息包括激活会话可维持时长参数(Acct-Session-Time);g. When the billing cycle trigger arrives, the PDSN triggers an Accounting-Request (Interim-Update) to the AAA, the trigger category=1, and the message includes an activation session sustainable duration parameter (Acct-Session-Time);

h.AAA根据激活会话可维持时长参数(Acct-Session-Time)得出激活会话时长得出本分段内用户已用费用,AAA需要将当前分段费用减去用户已用费用再重新计算本分段预留费用内的激活会话可维持时长填入Accounting-Response消息的激活会话可维持时长参数(激活会话时长),并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将Accounting-Response消息下发给PDSN;h. AAA obtains the duration of the activation session based on the parameter (Acct-Session-Time) for the duration of the activation session to obtain the user's used fee in this segment. AAA needs to subtract the user's used fee from the current segment fee to recalculate the cost Fill in the sustainable duration of the activated session in the section reservation fee into the parameter of the sustainable duration of the activated session (activated session duration) of the Accounting-Response message, and determine the time interval between the next time of the next tariff switch and the current time, and fill in Rate switch interval (rate switch duration), send Accounting-Response message to PDSN;

i.费率切换触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=2;i. When the rate switching trigger arrives, the PDSN triggers Accounting-Request (Interim-Update) to AAA, trigger type = 2;

j.AAA根据激活会话可维持时长参数(Acct-Session-Time)得出激活会话时长得出本分段内用户已用费用,AAA需要将当前分段费用减去用户已用费用再重新计算本分段预留费用内的激活会话可维持时长填入Accounting-Response消息的激活会话可维持时长参数(激活会话时长),并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将Accounting-Response消息下发给PDSN;j. AAA obtains the duration of the activation session based on the parameter (Acct-Session-Time) for the duration of the activation session to obtain the user's used fee in this segment. AAA needs to subtract the user's used fee from the current segment fee to recalculate the cost Fill in the sustainable duration of the activated session in the section reservation fee into the parameter of the sustainable duration of the activated session (activated session duration) of the Accounting-Response message, and determine the time interval between the next time of the next tariff switch and the current time, and fill in Rate switch interval (rate switch duration), send Accounting-Response message to PDSN;

k.激活会话触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=3;k. When the session trigger is activated, the PDSN triggers Accounting-Request (Interim-Update) to AAA, trigger category = 3;

l.AAA确认用户当前分段费用已用完,向SCP发送费用请求消息费用请求,操作类别=1(费用申请);l. AAA confirms that the user's current segment fee has been used up, and sends a fee request message fee request to the SCP, and the operation category=1 (fee application);

m.SCP确认用户余额已用尽,向AAA返回费用申请回应消息,操作类别=1(费用申请回应消息),申请到的费用=0;m. The SCP confirms that the user's balance has been exhausted, and returns a fee application response message to AAA, with the operation type = 1 (fee application response message), and the applied fee = 0;

n.AAA没有从SCP申请到费用,向PDSN发送Accounting-Reponse消息,其中激活会话会话结束标志参数=0,指明结束会话;n. AAA does not apply for a fee from the SCP, and sends an Accounting-Reponse message to the PDSN, wherein the activation session session end flag parameter = 0, indicating the end of the session;

o.PDSN根据会话结束标志参数结束用户业务;o. The PDSN terminates the user service according to the session end flag parameter;

p.PDSN向AAA上报Accounting-Request(Stop),包括激活会话可维持时长参数(Acct-Session-Time);p.PDSN reports Accounting-Request (Stop) to AAA, including the duration parameter (Acct-Session-Time) for activating the session;

q.AAA累积得出用户会话使用的总费用,返回Accounting-Reponse消息,指明结束会话。q. AAA accumulates the total fee for the user's session and returns an Accounting-Response message indicating the end of the session.

注:以上业务流程可以根据实际情况进行裁减,例如,可以不包括费率切换定时触发部分和激活会话定时触发部分。Note: The above business process can be cut according to the actual situation, for example, the timing triggering part of rate switching and the timing triggering part of activation session may not be included.

实施例三:用户余额充足时的业务流程(按流量计费、包含费率切换点),如图5所示,它包括如下步骤:Embodiment three: the business process when the user balance is sufficient (charging by traffic, including a rate switching point), as shown in Figure 5, it includes the following steps:

a.移动用户请求接入,PDSN向AAA发送Access-Request请求认证;a. The mobile user requests access, and the PDSN sends an Access-Request to the AAA to request authentication;

b.AAA确认主叫为预付费用户,向SCP发送费用请求消息鉴权请求;b. AAA confirms that the calling party is a prepaid user, and sends a charge request message authentication request to the SCP;

c.SCP通过用户鉴权,根据费用请求消息申请费用参数和用户当前余额分配用户一段费用,向AAA返回鉴权回应消息,指明为分配用户的费用;c. After user authentication, the SCP allocates a period of fees to the user according to the application fee parameters of the fee request message and the user's current balance, and returns an authentication response message to AAA, indicating the fee for the allocated user;

d.AAA验证通过,向PDSN返回鉴权请求回应Access-Accept消息;d. AAA verification is passed, and the authentication request response Access-Accept message is returned to the PDSN;

e.PDSN向AAA上报Accounting-Request(Start);e. PDSN reports Accounting-Request (Start) to AAA;

f.移动用户为预付费用户且按流量计费,AAA根据由SCP分配所得的费用计算可维持流量,填入Accounting-Response消息的可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;f. The mobile user is a prepaid user and is billed by traffic. AAA calculates the sustainable traffic according to the fee allocated by the SCP, fills in the sustainable traffic parameters of the Accounting-Response message, and determines the time and date of the next rate switching time. For the time interval at the current moment, fill in the tariff switching interval parameter, indicate to continue the session, and send the Accounting-Response message to the PDSN;

g.计费周期触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=1,消息包括激活会话可维持时长参数(Acct-Session-Time);g. When the billing cycle trigger arrives, the PDSN triggers an Accounting-Request (Interim-Update) to the AAA, the trigger category=1, and the message includes an activation session sustainable duration parameter (Acct-Session-Time);

h.AAA根据帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)计算当前已用分段费用参数得出激活会话时长得出本分段内用户已用费用,AAA需要将当前分段费用减去用户已用费用再重新计算本分段费用内的可维持流量并填入Accounting-Response消息的可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;h. AAA calculates the currently used segment fee parameters based on the account input bytes (Acct-Input-Octets) and account output bytes (Acct-Output-Octets) to obtain the activation session duration and obtain the user's time in this segment AAA needs to subtract the user’s used fee from the current segment fee to recalculate the sustainable traffic in this segment fee and fill in the sustainable traffic parameters of the Accounting-Response message, and determine the next rate switch recently For the time interval between time and current time, fill in the rate switching interval parameter, indicate the continuation of the session, and send the Accounting-Response message to the PDSN;

i.费率切换触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=2;i. When the rate switching trigger arrives, the PDSN triggers Accounting-Request (Interim-Update) to AAA, trigger type = 2;

j.AAA根据帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数用户已用本分段费用,AAA需要将当前分段费用减去已用费用再重新计算本分段费用内的可维持流量填入Accounting-Response消息的可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),指明继续会话,将Accounting-Response消息下发给PDSN;j.AAA according to the account input bytes (Acct-Input-Octets) and account output bytes (Acct-Output-Octets) parameters, the user has already used the segment fee, AAA needs to subtract the current segment fee from the used fee Then recalculate the sustainable traffic in this segment fee and fill in the sustainable traffic parameters of the Accounting-Response message, and determine the time interval between the next tariff switching time and the current time, and fill in the tariff switching interval (tariff handover duration), specify to continue the session, and send the Accounting-Response message to the PDSN;

k.流量触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=4;k. Traffic trigger arrives, PDSN triggers Accounting-Request (Interim-Update) to AAA, trigger category=4;

l.AAA确认用户当前分段费用已用完,向SCP发送费用请求消息费用请求,操作类别=2(费用申请);l. AAA confirms that the user's current segment fee has been used up, and sends a fee request message fee request to the SCP, and the operation category=2 (fee application);

m.SCP根据费用请求消息申请费用参数和用户当前余额分配用户一段费用并向AAA返回费用申请回应费用申请回应,操作类别=1(费用请求回应)、指明为分配用户的费用;m.SCP allocates a period of fees to the user according to the application fee parameters of the fee request message and the user's current balance, and returns a fee application response to the AAA. The operation type = 1 (fee request response), which is specified as the fee allocated to the user;

n.AAA根据由SCP分配所得的费用计算可维持流量,填入Accounting-Response消息的可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;n. AAA calculates the sustainable traffic based on the cost allocated by the SCP, fills in the sustainable traffic parameters of the Accounting-Response message, and determines the time interval between the next tariff switching time and the current time, and fills in the tariff switching interval Parameter, indicating to continue the session, and send the Accounting-Response message to the PDSN;

o.用户结束分组业务;o. The user ends the packet service;

p.PDSN向AAA上报Accounting-Request(Stop),包括帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数;p.PDSN reports Accounting-Request (Stop) to AAA, including account input bytes (Acct-Input-Octets) and account output bytes (Acct-Output-Octets) parameters;

q.AAA根据参数得出帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数已用流量、进而得出本分段内用户已用费用和申请到分段费用中未使用完部分。AAA确认需要返还费用,向SCP发送费用请求消息,操作类别=2(费用返还);q. AAA calculates the account input bytes (Acct-Input-Octets) and account output bytes (Acct-Output-Octets) parameters used traffic according to the parameters, and then obtains the user's used fees and applications in this segment to the unused portion of the segment fee. AAA confirms that the fee needs to be returned, and sends a fee request message to the SCP, with operation category=2 (fee return);

r.SCP根据费用请求消息返还费用参数为用户数据库加上费用,SCP向AAA返回费用返还确认消息,操作类别=2(费用返还确认);r.SCP adds the fee to the user database according to the fee return parameter of the fee request message, and the SCP returns a fee return confirmation message to AAA, and the operation category=2 (fee return confirmation);

s.AAA向PDSN返回记帐请求回应消息Account-Response,指明结束会话。s. The AAA returns an accounting request response message Account-Response to the PDSN, indicating to end the session.

实施例四:用户余额不足时的业务流程(按流量计费、包含费率切换点),如图6所示,它包括如下步骤:Embodiment 4: the business process (according to traffic billing, including rate switching point) when the user's balance is insufficient, as shown in Figure 6, it includes the following steps:

a.移动用户请求接入,PDSN向AAA发送Access-Request请求认证;a. The mobile user requests access, and the PDSN sends an Access-Request to the AAA to request authentication;

b.AAA确认主叫为预付费用户,向SCP发送费用请求消息费用请求;b. AAA confirms that the calling party is a prepaid user, and sends a charge request message charge request to the SCP;

c.SCP通过用户鉴权,根据鉴权请求消息申请费用参数和用户当前余额分配用户一段费用,向AAA返回鉴权请求回应,并指明分配用户的费用;c. Through user authentication, the SCP allocates a period of fees to the user according to the application fee parameters of the authentication request message and the user's current balance, returns an authentication request response to AAA, and specifies the allocated user fee;

d.AAA验证通过,向PDSN返回鉴权请求回应Access-Accept消息;d. AAA verification is passed, and the authentication request response Access-Accept message is returned to the PDSN;

e.PDSN向AAA上报Accounting-Request(Start);e. PDSN reports Accounting-Request (Start) to AAA;

f.移动用户为预付费用户且按流量计费,AAA根据由SCP分配所得的费用计算流量可维持时间,填入Accounting-Response消息的可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;f. The mobile user is a prepaid user and is billed by traffic. AAA calculates the maintenance time of the traffic according to the fee allocated by the SCP, fills in the sustainable traffic parameters of the Accounting-Response message, and determines the nearest time for the next rate switching For the time interval from the current time, fill in the tariff switching interval parameter, indicate the continuation of the session, and send the Accounting-Response message to the PDSN;

g.计费周期触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=1,消息包括激活会话可维持时长参数(Acct-Session-Time);g. When the billing cycle trigger arrives, the PDSN triggers an Accounting-Request (Interim-Update) to the AAA, the trigger category=1, and the message includes an activation session sustainable duration parameter (Acct-Session-Time);

h.AAA根据帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数计算当前已用分段费用参数得出激活会话时长得出本分段内用户已用费用,AAA需要将当前分段费用减去用户已用费用再重新计算本分段费用内的可维持流量并填入Accounting-Response消息的可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;h. AAA calculates the currently used segment cost parameters according to the account input bytes (Acct-Input-Octets) and account output bytes (Acct-Output-Octets) to obtain the activation session duration and obtain the users in this segment Used fee, AAA needs to subtract the user’s used fee from the current segment fee to recalculate the sustainable traffic in this segment fee and fill in the sustainable traffic parameters of the Accounting-Response message, and determine the latest next rate For the time interval between the switching time and the current time, fill in the tariff switching interval parameter, indicate the continuation of the session, and send the Accounting-Response message to the PDSN;

i.费率切换触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=2;i. When the rate switching trigger arrives, the PDSN triggers Accounting-Request (Interim-Update) to AAA, trigger type = 2;

j.AAA根据帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数用户已用本分段费用,AAA需要将当前分段费用减去已用费用再重新计算本分段费用内的可维持流量填入Accounting-Response消息的可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),指明继续会话,将Accounting-Response消息下发给PDSN;j.AAA according to the account input bytes (Acct-Input-Octets) and account output bytes (Acct-Output-Octets) parameters, the user has already used the segment fee, AAA needs to subtract the current segment fee from the used fee Then recalculate the sustainable traffic in this segment fee and fill in the sustainable traffic parameters of the Accounting-Response message, and determine the time interval between the next tariff switching time and the current time, and fill in the tariff switching interval (tariff handover duration), specify to continue the session, and send the Accounting-Response message to the PDSN;

k.流量触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=4;k. Traffic trigger arrives, PDSN triggers Accounting-Request (Interim-Update) to AAA, trigger category=4;

l.AAA确认用户当前分段费用已用完,向SCP发送费用请求消息费用请求,操作类别=1(费用申请);l. AAA confirms that the user's current segment fee has been used up, and sends a fee request message fee request to the SCP, and the operation category=1 (fee application);

m.SCP确认用户余额已用尽,向AAA返回费用申请回应消息,操作类别=1(费用申请回应消息),申请到的费用=0;m. The SCP confirms that the user's balance has been exhausted, and returns a fee application response message to AAA, with the operation type = 1 (fee application response message), and the applied fee = 0;

n.AAA没有从SCP申请到费用,向PDSN发送Accounting-Reponse消息,其中可维持流量=0,指明结束会话;n. AAA does not apply for a fee from the SCP, and sends an Accounting-Reponse message to the PDSN, wherein the maintainable flow rate = 0, indicating the end of the session;

o.PDSN根据会话结束标志参数结束用户业务;o. The PDSN terminates the user service according to the session end flag parameter;

p.PDSN向AAA上报Accounting-Request(Stop),包括帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数;p.PDSN reports Accounting-Request (Stop) to AAA, including account input bytes (Acct-Input-Octets) and account output bytes (Acct-Output-Octets) parameters;

q.AAA向PDSN返回记帐请求回应消息Account-Response,指明结束会话。q. The AAA returns an accounting request response message Account-Response to the PDSN, indicating to end the session.

实施例五:用户余额充足时的业务流程(按时长流量计费、包含费率切换点),如图7所示,它包括如下步骤:Embodiment five: the business process when the user balance is sufficient (according to the length of flow billing, including the rate switching point), as shown in Figure 7, it includes the following steps:

a.移动用户请求接入,PDSN向AAA发送Access-Request请求认证;a. The mobile user requests access, and the PDSN sends an Access-Request to the AAA to request authentication;

b.AAA确认主叫为预付费用户,向SCP发送费用请求消息费用请求;b. AAA confirms that the calling party is a prepaid user, and sends a charge request message charge request to the SCP;

c.SCP通过用户鉴权,根据费用请求消息申请费用参数和用户当前余额分配用户一段费用,向AAA返回鉴权请求回应消息,并指明为分配用户的费用;c. After user authentication, the SCP allocates a period of fees to the user according to the application fee parameters of the fee request message and the user's current balance, returns an authentication request response message to AAA, and specifies the fee for the allocated user;

d.AAA验证通过,向PDSN返回鉴权请求回应Access-Accept消息;d. AAA verification is passed, and the authentication request response Access-Accept message is returned to the PDSN;

e.PDSN向AAA上报Accounting-Request(Start);e. PDSN reports Accounting-Request (Start) to AAA;

f.移动用户为预付费用户且按时长流量计费,AAA根据时间流量金额分配策略确定用于预算时长和流量的费用,分别根据时长费率和流量费率计算用户可维持时间和可维持流量,分别填入Accounting-Response消息的激活会话可维持时长参数和可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;f. Mobile users are prepaid users and are billed according to the duration of traffic. AAA determines the cost of budget duration and traffic according to the time traffic amount allocation strategy, and calculates the user's sustainable time and sustainable traffic according to the duration rate and traffic rate. , respectively fill in the sustainable duration parameter and the sustainable traffic parameter of the Accounting-Response message, and determine the time interval between the next tariff switching time and the current time, fill in the tariff switching interval parameter, and indicate the continuation of the session, Send the Accounting-Response message to PDSN;

g.计费周期触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=1,消息包括激活会话可维持时长参数(Acct-Session-Time);g. When the billing cycle trigger arrives, the PDSN triggers an Accounting-Request (Interim-Update) to the AAA, the trigger category=1, and the message includes an activation session sustainable duration parameter (Acct-Session-Time);

h.AAA根据激活会话可维持时长参数(Acct-Session-Time)和帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数得出用户激活会话时长和流量,进而得出本分段内用户已用费用,AAA将分段预留费用减去用户已用费用并根据时间流量金额分配策略再重新计算本分段预留费用内的可维持时长和可维持流量,填入Accounting-Response消息的可维持流量参数和激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;h. AAA calculates the duration of the user's activation session based on the parameters of the sustainable duration of the activation session (Acct-Session-Time), the number of account input bytes (Acct-Input-Octets), and the number of account output bytes (Acct-Output-Octets) and traffic, and then get the user's used fee in this segment, AAA will subtract the segment reserved fee from the user's used fee, and then recalculate the sustainable duration and duration of the reserved fee in this segment according to the time traffic amount allocation strategy Sustainable traffic, fill in the sustainable traffic parameters of the Accounting-Response message and the sustainable duration parameters of the activated session, and determine the time interval between the next tariff switching time and the current time, fill in the tariff switching interval parameters, and indicate the continuation Session, send the Accounting-Response message to the PDSN;

i.费率切换触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=2;i. When the rate switching trigger arrives, the PDSN triggers Accounting-Request (Interim-Update) to AAA, trigger type = 2;

j.AAA根据激活会话可维持时长参数(Acct-Session-Time)和帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数得出用户激活会话时长和流量,进而得出本分段内用户已用费用,AAA将分段预留费用减去用户已用费用并根据时间流量金额分配策略再重新计算本分段预留费用内的可维持时长和可维持流量,填入Accounting-Response消息的可维持流量参数和激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;j. AAA calculates the duration of the user's activation session based on the parameters of the sustainable duration of the activation session (Acct-Session-Time), the number of account input bytes (Acct-Input-Octets), and the number of account output bytes (Acct-Output-Octets) and traffic, and then get the user's used fee in this segment, AAA will subtract the segment reserved fee from the user's used fee, and then recalculate the sustainable duration and duration of the reserved fee in this segment according to the time traffic amount allocation strategy Sustainable traffic, fill in the sustainable traffic parameters of the Accounting-Response message and the sustainable duration parameters of the activated session, and determine the time interval between the next tariff switching time and the current time, fill in the tariff switching interval parameters, and indicate the continuation Session, send the Accounting-Response message to the PDSN;

k.激活会话触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=2;k. When the session trigger is activated, the PDSN triggers Accounting-Request (Interim-Update) to AAA, trigger category = 2;

l.AAA根据Accounting-Request(Interim-Update)的激活会话可维持时长参数(Acct-Session-Time)、帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数计算当前已用分段费用,确认用户当前分段费用低于某阀值时,AAA需要重新向SCP申请分段费用,向SCP发送费用请求消息,申请费用参数为需要申请的费用,然后根据时间流量金额分配策略再重新计算本分段预留费用内的可维持时长和可维持流量分段预留费用分别计算出激活会话可维持时长,填入Accounting-Response消息的可维持流量参数和激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将Accounting-Response消息下发给PDSN;l. AAA can maintain the duration parameter (Acct-Session-Time), the number of account input bytes (Acct-Input-Octets), and the number of account output bytes (Acct-Output- Octets) parameter to calculate the currently used segment fee. When it is confirmed that the user’s current segment fee is lower than a certain threshold, AAA needs to re-apply for the segment fee from the SCP and send a fee request message to the SCP. The application fee parameter is the fee that needs to be applied. Then recalculate the sustainable duration in the segment reservation fee and the sustainable traffic segment reservation fee according to the time traffic amount allocation strategy to calculate the sustainable duration of the activation session, and fill in the sustainable traffic parameters of the Accounting-Response message And activate the session can maintain the length of time parameters, and determine the time interval between the next charging rate switching time and the current time, fill in the charging rate switching interval (tariff switching time length), and send the Accounting-Response message to the PDSN;

m.SCP根据费用请求消息申请费用参数和用户当前余额分配用户一段费用并向AAA返回费用申请回应费用申请回应,操作类别=1(费用请求回应)、指明为分配用户的费用;m.SCP allocates a period of fees to the user according to the application fee parameters of the fee request message and the user's current balance, and returns a fee application response to the AAA. The operation type = 1 (fee request response), which is specified as the fee allocated to the user;

n.AAA根据时间流量金额分配策略确定用于预算时长和流量的费用,分别根据时长费率和流量费率计算用户可维持时间和可维持流量,分别填入Accounting-Response消息的激活会话可维持时长参数和可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;n. AAA determines the cost of the budget duration and traffic according to the time traffic amount allocation strategy, calculates the user's maintainable time and maintainable traffic according to the duration rate and traffic rate respectively, and fills in the activation session of the Accounting-Response message respectively to maintain Duration parameters and maintainable traffic parameters, and determine the time interval between the next time of tariff switching and the current time, fill in the parameters of the tariff switching interval, indicate the continuation of the session, and send the Accounting-Response message to the PDSN;

o.流量触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)、触发器类别=2;o. Traffic trigger arrives, PDSN triggers Accounting-Request (Interim-Update) to AAA, trigger type=2;

p.AAA根据Accounting-Request(Interim-Update)的激活会话可维持时长参数(Acct-Session-Time)、帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数计算当前已用分段费用,确认用户当前分段费用低于某阀值时,AAA需要重新向SCP申请分段费用,然后根据时间流量金额分配策略再重新计算本分段预留费用内的可维持时长和可维持流量分段预留费用分别计算出激活会话可维持时长,填入Accounting-Response消息的可维持流量参数和激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将Accounting-Response消息下发给PDSN;p.AAA according to Accounting-Request (Interim-Update), the activation session can maintain the duration parameter (Acct-Session-Time), the number of account input bytes (Acct-Input-Octets), the number of account output bytes (Acct-Output- Octets) parameter to calculate the currently used segment fee. When it is confirmed that the user’s current segment fee is lower than a certain threshold, AAA needs to re-apply to the SCP for the segment fee, and then recalculate the reserved fee for this segment according to the time flow amount allocation strategy Calculate the sustainable duration of the active session and the sustainable duration of the activated session in the Accounting-Response message, and determine the next rate The time interval between the switching time and the current time, fill in the tariff switching interval (tariff switching duration), and send the Accounting-Response message to the PDSN;

q.SCP根据费用请求消息申请费用参数和用户当前余额分配用户一段费用并向AAA返回费用申请回应费用申请回应,操作类别=1(费用请求回应)、指明为分配用户的费用;q. The SCP allocates a period of fees to the user according to the application fee parameters of the fee request message and the user's current balance, and returns a fee application response to the AAA. The operation type = 1 (fee request response), which is specified as the fee allocated to the user;

r.AAA根据时间流量金额分配策略确定用于预算时长和流量的费用,分别根据时长费率和流量费率计算用户可维持时间和可维持流量,分别填入Accounting-Response消息的激活会话可维持时长参数和可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;r. AAA determines the cost of budget duration and traffic according to the time traffic amount allocation strategy, calculates the user's maintainable time and maintainable traffic according to the duration rate and traffic rate respectively, and fills in the activation session of the Accounting-Response message respectively to maintain Duration parameters and maintainable traffic parameters, and determine the time interval between the next time of tariff switching and the current time, fill in the parameters of the tariff switching interval, indicate the continuation of the session, and send the Accounting-Response message to the PDSN;

s.用户结束分组业务;s. The user ends the packet service;

t.PDSN向AAA上报Accounting-Request(Stop),包括激活会话可维持时长参数(Acct-Session-Time)、帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数;t.PDSN reports Accounting-Request (Stop) to AAA, including activation session duration parameter (Acct-Session-Time), account input bytes (Acct-Input-Octets), account output bytes (Acct-Output -Octets) parameter;

u.AAA根据激活会话可维持时长参数(Acct-Session-Time)、帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数已用流量和时长、进而得出本分段内用户已用费用和申请到分段费用中未使用完部分。AAA确认需要返还费用,向SCP发送费用请求消息费用请求,操作类别=2(费用返还);u.AAA according to the parameters of the activated session duration (Acct-Session-Time), the number of account input bytes (Acct-Input-Octets), the number of account output bytes (Acct-Output-Octets) used traffic and duration, Then it is obtained that the user's used fee in this segment and the unused part of the application to the segment fee. AAA confirms that the fee needs to be returned, and sends a fee request message fee request to the SCP, with operation category=2 (fee return);

v.SCP根据费用请求消息返还费用参数为用户数据库加上费用,SCP向AAA返回费用请求回应消息,操作类别=2(费用返还确认);v.SCP adds fee to user database according to fee request message return fee parameter, SCP returns fee request response message to AAA, operation category=2 (fee return confirmation);

w.AAA向PDSN返回记帐请求回应消息Account-Response,指明结束会话。w. The AAA returns an accounting request response message Account-Response to the PDSN, indicating the end of the session.

实施例六:AAA主动切断PDSN的业务流程(按流量计费),见图8,它包括如下步骤:Embodiment 6: AAA actively cuts off the service flow of PDSN (according to flow rate charging), see Fig. 8, it comprises the following steps:

a.移动用户请求接入,PDSN向AAA发送Access-Request请求认证;a. The mobile user requests access, and the PDSN sends an Access-Request to the AAA to request authentication;

b.AAA确认主叫为预付费用户,向SCP发送费用请求消息Fee-Request;b. AAA confirms that the calling party is a prepaid subscriber, and sends a fee request message Fee-Request to the SCP;

c.SCP通过用户鉴权,根据鉴权请求消息申请费用参数和用户当前余额分配用户一段费用,向AAA返回鉴权请求回应消息,并指明为分配用户的费用;c. After user authentication, the SCP allocates a period of fees to the user according to the application fee parameters of the authentication request message and the user's current balance, returns an authentication request response message to AAA, and specifies the fee for the allocated user;

d.AAA向验证通过,PDSN返回鉴权请求回应Access-Accept消息;d. The AAA passes the authentication, and the PDSN returns an Access-Accept message in response to the authentication request;

e.PDSN向AAA上报Accounting-Request(Start)消息;e. PDSN reports Accounting-Request (Start) message to AAA;

f.移动用户为预付费用户且按时长流量计费,AAA根据时间流量金额分配策略确定用于预算时长和流量的费用,分别根据时长费率和流量费率计算用户可维持时间和可维持流量,分别填入Accounting-Response消息的激活会话可维持时长参数和可维持上行下行流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;f. Mobile users are prepaid users and are billed according to the duration of traffic. AAA determines the cost of budget duration and traffic according to the time traffic amount allocation strategy, and calculates the user's sustainable time and sustainable traffic according to the duration rate and traffic rate. , respectively fill in the duration parameters of the activation session of the Accounting-Response message and the parameters of the uplink and downlink traffic that can be maintained, and determine the time interval between the next tariff switching time and the current time, fill in the tariff switching interval parameters, and indicate the continuation Session, send the Accounting-Response message to the PDSN;

g.将Accounting-Response消息下发给PDSN;g. Send the Accounting-Response message to the PDSN;

h.计费周期触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)消息、触发器类型=1,消息包括Acct-Session-Time参数;h. When the billing cycle trigger arrives, the PDSN triggers an Accounting-Request (Interim-Update) message to the AAA, the trigger type=1, and the message includes the Acct-Session-Time parameter;

i.AAA根据Acct-Session-Time和Acct-Input-Octets、Acct-Output-Octets参数得出用户激活会话时长和流量,进而得出本分段内用户已用费用,AAA将分段预留费用减去用户已用费用并根据时间流量金额分配策略再重新计算本分段预留费用内的可维持时长和可维持流量,填入Accounting-Response消息的可维持上行流量和下行流量参数和激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;i. AAA calculates the user activation session duration and traffic according to the Acct-Session-Time, Acct-Input-Octets, and Acct-Output-Octets parameters, and then obtains the user's used fee in this segment, and AAA will reserve the segmented fee Subtract the user's used fee and recalculate the sustainable duration and sustainable traffic in the reserved fee of this segment according to the time traffic amount allocation strategy, fill in the sustainable upstream traffic and downstream traffic parameters of the Accounting-Response message and activate the session It can maintain the duration parameter, and determine the time interval between the next charging rate switching time and the current time, fill in the charging rate switching interval parameter, indicate the continuation of the session, and send the Accounting-Response message to the PDSN;

j.将Accounting-Response消息下发给PDSN;j. Send the Accounting-Response message to PDSN;

k.费率切换触发器到,PDSN向AAA触发Accounting-Request(Interim-Update)消息、触发器类型=2;k. When the tariff switching trigger arrives, the PDSN triggers an Accounting-Request (Interim-Update) message to the AAA, and the trigger type=2;

l.AAA根据Acct-Session-Time和Acct-Input-Octets、Acct-0utput-Octets参数得出用户激活会话时长和流量,进而得出本分段内用户已用费用,AAA将分段预留费用减去用户已用费用并根据时间流量金额分配策略再重新计算本分段预留费用内的可维持时长和可维持流量,填入Accounting-Response消息的可维持上行流量和下行流量参数和激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,指明继续会话,将Accounting-Response消息下发给PDSN;l. According to the Acct-Session-Time, Acct-Input-Octets, and Acct-Output-Octets parameters, AAA obtains the user activation session duration and traffic, and then obtains the user's used fee in this segment, and AAA will reserve the segment fee Subtract the user's used fee and recalculate the sustainable duration and sustainable traffic in the reserved fee of this segment according to the time traffic amount allocation strategy, fill in the sustainable upstream traffic and downstream traffic parameters of the Accounting-Response message and activate the session It can maintain the duration parameter, and determine the time interval between the next charging rate switching time and the current time, fill in the charging rate switching interval parameter, indicate the continuation of the session, and send the Accounting-Response message to the PDSN;

m.将Accounting-Response消息下发给PDSN;m. Send the Accounting-Response message to the PDSN;

n.AAA决定结束呼叫,向PDSN发送Session-Control消息,Command参数=Terminate-Request;n.AAA decides to end the call, and sends a Session-Control message to the PDSN, Command parameter=Terminate-Request;

o.PDSN结束分组业务;o.PDSN ends the packet service;

p.PDSN向AAA上报Accounting-Request(Stop)消息,包括Acct-Session-Time、Acct-Input-Octets、Acct-Output-Octets参数;p.PDSN reports Accounting-Request (Stop) message to AAA, including Acct-Session-Time, Acct-Input-Octets, Acct-Output-Octets parameters;

q.AAA根据Acct-Session-Time、Acct-Input-Octets、Acct-Output-Octets参数已用流量和时长、进而得出本分段内用户已用费用和申请到分段费用中未使用完部分。AAA确认需要返还费用,向SCP发送费用请求消息,消息参数操作类别=2(费用返还);q. AAA calculates the user's used fee in this segment and the unused part of the application to the segment fee based on the used traffic and duration of the Acct-Session-Time, Acct-Input-Octets, and Acct-Output-Octets parameters . AAA confirms that the fee needs to be returned, and sends a fee request message to the SCP, and the message parameter operation category=2 (fee return);

r.SCP根据费用请求消息返还费用参数为用户数据库加上费用,SCP向AAA返回费用返还确认消息,消息参数操作类别=2(费用返还确认);r.SCP adds the fee to the user database according to the fee request message return fee parameter, and the SCP returns a fee return confirmation message to AAA, and the message parameter operation category=2 (fee return confirmation);

s.AAA向PDSN返回记帐请求回应消息Account-Response,指明结束会话;s. AAA returns the accounting request response message Account-Response to the PDSN, indicating the end of the session;

从以上描述可以看出,本发明实现了分组预付费的几大关健特性:1、分段费用申请、2、流量控制(区分上行流量下行流量)、3、费率切换。通过这些特性进而实现了用户费用的实时控制。It can be seen from the above description that the present invention realizes several key features of packet prepayment: 1. segment fee application, 2. flow control (distinguish uplink flow and downlink flow), and 3. charge rate switching. Through these features, real-time control of user fees is realized.

Claims (17)

1、一种支持分组数据预付费特性的移动用户鉴权计费方法,包括如下步骤:1. A mobile user authentication and charging method that supports packet data prepaid features, comprising the steps of: a)移动用户要求上网,PDSN向AAA发送认证请求消息(Access-Request);a) The mobile user requests to access the Internet, and the PDSN sends an authentication request message (Access-Request) to the AAA; b)AAA对用户进行鉴权,如果确认用户有权登入,向PDSN发送认证接受消息(Access-Accept);b) AAA authenticates the user, and if it confirms that the user has the right to log in, it sends an authentication acceptance message (Access-Accept) to the PDSN; c)PDSN向AAA发送计费开始请求消息(Accounting-Request(Start));c) The PDSN sends an accounting start request message (Accounting-Request(Start)) to the AAA; d)AAA收到计费开始请求消息(Accounting-Request(Start)),开始对移动用户计费,向PDSN发送计费请求回应消息(Accounting-Reponse);d) AAA receives an accounting start request message (Accounting-Request (Start)), starts charging the mobile user, and sends an accounting request response message (Accounting-Reponse) to the PDSN; e)PDSN到达中间计费上报周期后,向AAA发送中间计费请求(Accounting-Request(Interim));e) After the PDSN reaches the intermediate accounting reporting period, it sends an intermediate accounting request (Accounting-Request (Interim)) to the AAA; f)AAA收到中间计费请求(Accounting-Request(Interim))后,产生临时记帐信息;并发送计费请求回应消息Accounting-Response消息;f) After the AAA receives the intermediate accounting request (Accounting-Request (Interim)), it generates temporary accounting information; and sends an accounting-request response message Accounting-Response message; g)移动用户结束上网时,PDSN向AAA发送计费结束请求消息(Accounting-Request(Stop));g) When the mobile user finishes surfing the Internet, the PDSN sends an accounting end request message (Accounting-Request(Stop)) to the AAA; h)AAA结束对移动用户计费,向PDSN发送计费请求回应消息(Accounting-Reponse);h) AAA finishes charging the mobile user, and sends a charging request response message (Accounting-Reponse) to the PDSN; 其特征是:Its characteristics are: AAA向PDSN发送的计费请求回应消息(Accounting-Reponse)中包含有激活会话可维持时长信息;相应地,在PDSN中有会话激活触发器,该触发器能根据从AAA收到的激活会话可维持时长信息进行参数重置,当触发器条件满足时,即当激活会话可维持时长用完时,触发相应的中间计费请求信息(Accounting-Request(Interim-update)),上报AAA;The Accounting-Response message (Accounting-Reponse) sent by AAA to PDSN contains information on the duration of the active session; correspondingly, there is a session activation trigger in the PDSN, which can Maintain the duration information to reset the parameters. When the trigger condition is met, that is, when the duration of the activation session is exhausted, the corresponding intermediate accounting request information (Accounting-Request (Interim-update)) is triggered and reported to AAA; 在PDSN中还有计费周期触发器,该触发器能在计费周期到达时,触发相应的中间计费请求信息(Accounting-Request(Interim-update)),上报AAA;There is also an accounting cycle trigger in the PDSN, which can trigger the corresponding intermediate accounting request information (Accounting-Request (Interim-update)) and report to AAA when the accounting cycle arrives; AAA收到任一中间计费请求信息(Accounting-Request(Interim-update))后,重新计算激活会话可维持时长,并向PDSN发送计费请求回应消息(Accounting-Reponse)。After receiving any intermediate accounting request information (Accounting-Request (Interim-update)), the AAA recalculates the duration of the active session and sends an accounting-request response message (Accounting-Reponse) to the PDSN. 2、如权利要求1所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:AAA向PDSN发送的计费请求回应消息(Accounting-Reponse)中还包含有费率切换间隔参数,即最近的下一次费率切换时刻与当前时刻的时间间隔;相应地,在PDSN中有费率切换触发器,该触发器能根据从AAA收到的费率切换间隔参数进行参数重置,当触发器条件满足时,即当下一次费率切换时刻到来时,触发相应的中间计费请求信息(Accounting-Request(Interim-update)),上报AAA。2. The mobile user authentication and charging method supporting packet data prepaid features as claimed in claim 1, characterized in that: the charging request response message (Accounting-Reponse) sent by AAA to PDSN also includes charging rate switching Interval parameter, that is, the time interval between the next tariff switching moment and the current moment; correspondingly, there is a tariff switching trigger in the PDSN, which can perform parameter resetting according to the tariff switching interval parameter received from AAA When the trigger condition is satisfied, that is, when the time for the next rate switching arrives, the corresponding intermediate accounting request information (Accounting-Request (Interim-update)) is triggered and reported to AAA. 3、如权利要求1所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:AAA向PDSN发送的计费请求回应消息(Accounting-Reponse)中还包含有可维持流量参数;相应地,在PDSN中有流量触发器,该触发器能根据从AAA收到的可维持流量参数进行参数重置,当触发器条件满足时,即当用户传输的数据流量达到可维持流量参数值时,触发相应的中间计费请求信息(Accounting-Request(Interim-update)),上报AAA。3. The mobile user authentication and charging method supporting the packet data prepaid feature as claimed in claim 1, characterized in that: the accounting request response message (Accounting-Reponse) sent by AAA to PDSN also includes the maintainable flow rate Parameters; correspondingly, there is a traffic trigger in the PDSN, which can reset parameters according to the sustainable traffic parameters received from AAA, when the trigger condition is met, that is, when the data traffic transmitted by the user reaches the sustainable traffic When the parameter value is set, the corresponding intermediate accounting request information (Accounting-Request (Interim-update)) is triggered and reported to AAA. 4、如权利要求1或2或3所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是在其中步骤b)中对用户进行鉴权的过程为:b1)AAA向SCP发送费用请求消息和鉴权请求消息;b2)如果SCP通过用户鉴权,则SCP根据费用请求消息中的申请费用参数和用户当前余额分配用户一段费用,向AAA返回鉴权回应消息,指明为分配用户的费用。4. The mobile user authentication and charging method supporting the packet data prepaid feature as claimed in claim 1, 2 or 3, wherein the process of authenticating the user in step b) is: b1) AAA to The SCP sends a fee request message and an authentication request message; b2) if the SCP passes the user authentication, then the SCP allocates a period of fee to the user according to the application fee parameter in the fee request message and the user's current balance, and returns an authentication response message to the AAA, indicating as The cost of assigning users. 5、如权利要求4所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:当只按时长计费时,在步骤d),AAA收到计费开始请求消息(Accounting-Request(Start))后,根据下一计费周期内最新的激活会话计费费率计算出激活会话可维持时长,填入计费请求回应消息(Accounting-Response)的激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,将计费请求回应消息(Accounting-Response)下发给PDSN。5. The mobile user authentication and charging method supporting the packet data prepaid feature as claimed in claim 4, characterized in that: when charging only by duration, in step d), AAA receives the charging start request message ( Accounting-Request (Start)), calculate the duration of the activation session based on the latest billing rate for the activation session in the next billing cycle, and fill in the duration of the activation session in the Accounting-Response message (Accounting-Response) Parameters, and determine the time interval between the next charging rate switching time and the current time, fill in the charging rate switching interval parameter, and send the accounting request response message (Accounting-Response) to the PDSN. 6、如权利要求5所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:在步骤e),对于计费周期触发器和费率切换触发器上报的中间计费请求信息(Accounting-Request(Interim-Update)),AAA根据其中的激活会话可维持时长参数(Acct-Session-Time)得出激活会话时长,进而得出本分段内用户已用费用,在本分段费用未使用完的情况下,AAA将分段预留费用减去用户已用费用再重新计算本分段预留费用内的激活会话可维持时长,在本分段费用用尽的情况下,AAA需要重新向SCP申请分段费用,然后根据分段预留费用计算出激活会话可维持时长;计算后填入计费请求回应消息(Accounting-Response)中的激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,将计费请求回应消息(Accounting-Response)下发给PDSN。6. The mobile user authentication and charging method supporting packet data prepaid features as claimed in claim 5, characterized in that: in step e), for the intermediate charging reported by the charging cycle trigger and the charging rate switching trigger Request information (Accounting-Request(Interim-Update)), AAA obtains the duration of the activation session according to the parameter (Acct-Session-Time) in which the activation session can be maintained, and then obtains the cost used by the user in this segment. If the segment fee is not used up, AAA will subtract the segment reserved fee from the user's used fee and then recalculate the duration of the active session within the segment reserved fee. In the case that the segment fee is exhausted , AAA needs to re-apply for the segment fee from the SCP, and then calculate the duration of the active session based on the reserved fee for the segment; after calculation, fill in the parameter of the sustainable duration of the activation session in the Accounting-Response message, and Determine the time interval between the next charging rate switching time and the current time, fill in the charging rate switching interval parameter, and send the accounting request response message (Accounting-Response) to the PDSN. 7、如权利要求5所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:在步骤e),对于会话激活触发器上报的中间计费请求信息(Accounting-Request(Interim-Update)),AAA需要重新向SCP申请分段费用,然后根据分段预留费用计算出激活会话可维持时长,填入计费请求回应消息(Accounting-Response)的激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将计费请求回应消息(Accounting-Response)下发给PDSN。7. The mobile user authentication and charging method supporting packet data prepaid features as claimed in claim 5, characterized in that: in step e), for the intermediate charging request information (Accounting-Request( Interim-Update)), AAA needs to re-apply for the segment fee from the SCP, and then calculate the duration of the activation session based on the segment reservation fee, and fill in the duration parameter of the activation session in the Accounting-Response , and determine the time interval between the next charging rate switching time and the current time, fill in the charging rate switching interval (tariff switching duration), and send the accounting request response message (Accounting-Response) to the PDSN. 8、如权利要求4所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:当只按流量计费时,在步骤d),AAA收到计费开始请求消息(Accounting-Request(Start))后,根据根据预算金额分配策略确定用于预算上行流量和下行流量的费用,分别根据上行流量费率下行流量费率计算出用户可维持上行流量和下行流量,填入计费请求回应消息(Accounting-Response)的可维持上行流量、可维持下行流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,然后将计费请求回应消息(Accounting-Response)下发给PDSN。8. The mobile user authentication and charging method supporting the packet data prepaid feature as claimed in claim 4, characterized in that: when charging only by traffic, in step d), AAA receives the charging start request message ( Accounting-Request(Start)), according to the budget amount allocation strategy to determine the cost of the budgeted upstream traffic and downstream traffic, calculate the user can maintain the upstream traffic and downstream traffic according to the upstream traffic rate and downlink traffic rate, fill in Accounting-Response message (Accounting-Response) can maintain the upstream traffic, can maintain the downstream traffic parameters, and determine the time interval between the next tariff switching time and the current time, fill in the tariff switching interval parameters, and then calculate Accounting-Response is sent to PDSN. 9、如权利要求8所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:在步骤e),对于计费周期触发器和费率切换触发器上报的中间计费请求信息(Accounting-Request(Interim-Update)),AAA根据帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)得出用户已使用流量,进而得出本分段内用户已用费用,在本分段费用未使用完的情况下,AAA将分段预留费用减去用户已用费用再重新计算本分段预留费用内的可维持流量,在本分段费用用尽的情况下,AAA需要重新向SCP申请分段费用,然后根据分段预留费用计算出可维持流量;计算后将算得的可维持流量填入计费请求回应消息(Accounting-Response)的可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,将计费请求回应消息(Accounting-Response)下发给PDSN。9. The mobile user authentication and charging method supporting the packet data prepaid feature according to claim 8, characterized in that: in step e), for the intermediate charging reported by the charging cycle trigger and the rate switching trigger Request information (Accounting-Request(Interim-Update)), AAA obtains the traffic used by the user according to the number of account input bytes (Acct-Input-Octets) and the number of account output bytes (Acct-Output-Octets), and then obtains In this segment, the user has used the fee. If the segment fee is not used up, AAA will subtract the user's used fee from the reserved fee for the segment, and then recalculate the sustainable traffic in the reserved fee for this segment. When the segment fee is exhausted, AAA needs to re-apply for the segment fee from the SCP, and then calculate the sustainable traffic based on the segment reserved fee; after calculation, fill the calculated sustainable traffic into the accounting request response message (Accounting -Response), determine the time interval between the next charging rate switching time and the current time, fill in the charging rate switching interval parameter, and send the accounting request response message (Accounting-Response) to the PDSN. 10、如权利要求8所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:在步骤e),对于流量触发器上报的中间计费请求信息(Accounting-Request(Interim-Update)),AAA需要重新向SCP申请分段费用,然后根据分段预留费用计算可维持流量,填入Accounting-Response消息的可维持流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,然后将计费请求回应消息(Accounting-Response)下发给PDSN。10. The mobile user authentication and charging method supporting the packet data prepaid feature according to claim 8, characterized in that: in step e), for the intermediate charging request information (Accounting-Request (Interim -Update)), AAA needs to re-apply for the segment fee from the SCP, then calculate the sustainable traffic according to the segment reservation fee, fill in the sustainable traffic parameters of the Accounting-Response message, and determine the next time of the next rate switch and For the current time interval, fill in the tariff switching interval parameter, and then send the Accounting-Response message (Accounting-Response) to the PDSN. 11、如权利要求6或7或9或10所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:当AAA确认用户当前分段费用已用完,向SCP发送费用请求消息请求费用时,如果SCP确认用户余额已用尽,向AAA返回费用申请回应消息,申请到的费用=0;AAA没有从SCP申请到费用,向PDSN发送计费请求回应消息(Accounting-Reponse),其中会话结束标志=0,指明结束会话;PDSN根据会话结束标志参数结束用户业务。11. The mobile user authentication and charging method supporting packet data prepaid features as claimed in claim 6 or 7 or 9 or 10, characterized in that: when the AAA confirms that the user's current segment charge has been used up, the charge is sent to the SCP When requesting a message to request a fee, if the SCP confirms that the user balance has been exhausted, it returns a fee application response message to the AAA, and the applied fee = 0; AAA does not apply for a fee from the SCP, and sends an accounting request response message to the PDSN (Accounting-Reponse ), where the session end flag=0, indicating that the session is ended; the PDSN terminates the user service according to the session end flag parameter. 12、如权利要求4所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:当同时按时长和流量计费时,在步骤d),AAA收到计费开始请求消息(Accounting-Request(Start))后,根据根据预算金额分配策略确定用于预算时长和上行流量下行流量的费用,分别根据时长费率、上行流量费率、下行流量费率确定用户可维持时间、可维持上行流量、可维持上行流量,填入计费请求回应消息(Accounting-Response)的激活会话可维持时长、可维持上行流量、可维持下行流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,然后将计费请求回应消息(Accounting-Response)下发给PDSN。12. The mobile user authentication and charging method supporting the packet data prepaid feature as claimed in claim 4, characterized in that: when charging according to duration and traffic at the same time, in step d), AAA receives a charging start request After the message (Accounting-Request(Start)), determine the budget duration and uplink traffic and downlink traffic charges according to the budget amount allocation strategy, and determine the user's maintenance time according to the duration rate, uplink traffic rate, and downlink traffic rate respectively , can maintain upstream traffic, can maintain upstream traffic, fill in the accounting request response message (Accounting-Response) activation session can maintain the length of time, can maintain upstream traffic, can maintain downstream traffic parameters, and determine the latest next rate switch For the time interval between time and current time, fill in the tariff switching interval parameter, and then send the Accounting-Response message (Accounting-Response) to the PDSN. 13、如权利要求12所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:在步骤e),对于计费周期触发器和费率切换触发器上报的中间计费请求信息(Accounting-Request(Interim-Update)),AAA根据激活会话可维持时长参数(Acct-Session-Time)和可维持流量参数得出用户激活会话时长和流量,进而得出本分段内用户已用费用,在本分段费用未使用完的情况下,AAA将分段预留费用减去用户已用费用并根据预算金额分配策略重新计算本分段预留费用内的可维持时长、可维持上行流量、可维持下行流量,填入计费请求回应消息(Accounting-Response)的激活会话可维持时长、可维持上行流量、可维持下行流量参数,,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔(费率切换时长),将计费请求回应消息(Accounting-Response)下发给PDSN。13. The mobile user authentication and charging method supporting the packet data prepaid feature according to claim 12, characterized in that: in step e), the intermediate charging reported by the charging cycle trigger and the rate switching trigger Request information (Accounting-Request(Interim-Update)), AAA obtains the user activation session duration and traffic according to the activation session sustainable time parameter (Acct-Session-Time) and the sustainable traffic parameter, and then obtains the user in this segment The used fee, in the case that the fee for this segment is not used up, AAA will subtract the reserved fee for the segment from the user's used fee and recalculate the sustainable duration and available time in the reserved fee for this segment according to the budget allocation strategy. Upstream traffic can be maintained, downlink traffic can be maintained, and the activation session that fills in the Accounting-Response message (Accounting-Response) can be maintained for a long time, uplink traffic can be maintained, and downlink traffic parameters can be maintained, and the latest charging rate switching time is determined For the time interval from the current moment, fill in the tariff switching interval (tariff switching duration), and send the accounting request response message (Accounting-Response) to the PDSN. 14、如权利要求12或13所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:在步骤e),对于会话激活触发器上报的中间计费请求信息(Accounting-Request(Interim-Update)),AAA根据激活会话可维持时长参数(Acct-Session-Time)、帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数计算当前已用分段费用,如果用户当前分段费用低于预定的阀值,AAA重新向SCP申请分段费用,否则直接进入下一步:然后用申请到的费用或者剩余费用根据预算金额分配策略重新计算本分段预留费用内的可维持时长、可维持上行流量、可维持下行流量,填入计费请求回应消息(Accounting-Response)的激活会话可维持时长、可维持上行流量、可维持下行流量参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,将计费请求回应消息(Accounting-Response)下发给PDSN。14. The mobile user authentication and charging method supporting packet data prepaid features according to claim 12 or 13, characterized in that: in step e), for the intermediate charging request information (Accounting- Request (Interim-Update)), AAA according to the activation session can maintain the length of time parameters (Acct-Session-Time), account input bytes (Acct-Input-Octets), account output bytes (Acct-Output-Octets) parameters Calculate the currently used segment fee. If the user's current segment fee is lower than the predetermined threshold, AAA will re-apply for the segment fee from SCP, otherwise go directly to the next step: then use the applied fee or the remaining fee to allocate the strategy according to the budget amount Recalculate the sustainable duration, sustainable upstream traffic, and sustainable downstream traffic in the reserved fee of this segment, and fill in the accounting request response message (Accounting-Response) for the sustainable duration, sustainable upstream traffic, and sustainable Downlink traffic parameters, and determine the time interval between the next charging rate switching time and the current time, fill in the charging rate switching interval parameter, and send the accounting request response message (Accounting-Response) to the PDSN. 15、如权利要求12或13所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:在步骤e),对于流量触发器上报的中间计费请求信息(Accounting-Request(Interim-Update)),AAA根据激活会话可维持时长参数(Acct-Session-Time)、帐户输入字节数(Acct-Input-Octets)、帐户输出字节数(Acct-Output-Octets)参数计算当前已用分段费用,如果用户当前分段费用低于预定阀值,AAA需要向SCP发送费用请求消息,消息中包括未用完分段费用参数(FeeLeft)和需申请的分段费用,否则直接进入下一步:根据时间流量金额分配策略再重新计算本分段预留费用内的可维持时长和可维持流量分段预留费用分别计算出激活会话可维持时长,填入计费请求回应消息(Accounting-Response)的可维持流量参数和激活会话可维持时长参数,并确定最近的下一次费率切换时刻与当前时刻的时间间隔,填入费率切换间隔参数,将计费请求回应消息(Accounting-Response)下发给PDSN。15. The mobile user authentication and charging method supporting packet data prepaid features as claimed in claim 12 or 13, characterized in that: in step e), for the intermediate charging request information (Accounting-Request) reported by the traffic trigger (Interim-Update)), AAA is calculated according to the parameters of the activation session duration (Acct-Session-Time), the number of account input bytes (Acct-Input-Octets), and the number of account output bytes (Acct-Output-Octets) The currently used segment fee, if the current segment fee of the user is lower than the predetermined threshold, AAA needs to send a fee request message to the SCP, which includes the unused segment fee parameter (FeeLeft) and the segment fee to be applied, otherwise Go directly to the next step: recalculate the sustainable duration in the segment reservation fee and the sustainable traffic segment reservation fee according to the time traffic amount allocation strategy to calculate the sustainable duration of the activation session, and fill in the billing request response message (Accounting-Response) maintainable traffic parameters and activated session maintainable duration parameters, and determine the time interval between the latest next rate switching time and the current time, fill in the rate switching interval parameters, and send the accounting request response message ( Accounting-Response) to the PDSN. 16、如权利要求1所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:在步骤b),所述认证接受消息(Access-Accept)中包含有预付费特性激活标志。16. The mobile user authentication and charging method supporting the packet data prepaid feature according to claim 1, characterized in that: in step b), the authentication acceptance message (Access-Accept) includes the activation of the prepaid feature sign. 17、如权利要求1所述的支持分组数据预付费特性的移动用户鉴权计费方法,其特征是:当需要AAA主动切断当前呼叫时,由AAA向PSDN发送一个中断会话请求消息(Terminate-Request),请求结束呼叫。17. The mobile user authentication and charging method supporting packet data prepaid features according to claim 1, characterized in that: when AAA is required to actively cut off the current call, AAA sends a session termination request message (Terminate- Request), request to end the call.
CNB021223289A 2002-06-06 2002-06-06 Mobile phone user authentication charging method supporting grouped data prepayment characteristic Expired - Fee Related CN100345411C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021223289A CN100345411C (en) 2002-06-06 2002-06-06 Mobile phone user authentication charging method supporting grouped data prepayment characteristic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021223289A CN100345411C (en) 2002-06-06 2002-06-06 Mobile phone user authentication charging method supporting grouped data prepayment characteristic

Publications (2)

Publication Number Publication Date
CN1464662A true CN1464662A (en) 2003-12-31
CN100345411C CN100345411C (en) 2007-10-24

Family

ID=29743188

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021223289A Expired - Fee Related CN100345411C (en) 2002-06-06 2002-06-06 Mobile phone user authentication charging method supporting grouped data prepayment characteristic

Country Status (1)

Country Link
CN (1) CN100345411C (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006066508A1 (en) * 2004-12-21 2006-06-29 Huawei Technologies Co., Ltd. A call controlling method and system, business operation supporting system and service controlling point
CN1327652C (en) * 2004-11-08 2007-07-18 华为技术有限公司 On-line charge processing method
CN101212532B (en) * 2006-12-30 2010-05-19 中国电信股份有限公司 Combined billing system and method
CN101026664B (en) * 2006-02-17 2010-12-08 华为技术有限公司 A prepaid service charging method and system
CN101106464B (en) * 2006-07-14 2011-04-20 中兴通讯股份有限公司 A method for prepaying code division multi-address packet data service
CN101102542B (en) * 2007-06-14 2011-08-10 中兴通讯股份有限公司 A method and device for self-service account opening and charging of CDMA system
CN102201923A (en) * 2011-06-09 2011-09-28 杭州华三通信技术有限公司 Method and system for settling cross-period expenses of online user in AAA (authentication, authorization and accounting) system in real time
CN102572768A (en) * 2012-03-05 2012-07-11 华为技术有限公司 Charging method, authentication method, charging equipment and authentication equipment
CN1805442B (en) * 2004-11-30 2014-05-07 朗迅科技公司 Device and method for providing on-line billing in IMS networks
US20140242941A1 (en) * 2011-09-26 2014-08-28 Yafeng ZHANG Charging method, charging device, charging system, and authentication device
CN102137370B (en) * 2010-01-25 2015-10-21 中兴通讯股份有限公司 A kind ofly realize method and apparatus user being carried out to unified charging
CN106789119A (en) * 2016-11-30 2017-05-31 上海斐讯数据通信技术有限公司 A kind of duration based accounting method of the shared Portal accounts of different terminals
CN110019061A (en) * 2017-07-28 2019-07-16 中国移动通信有限公司研究院 End-to-end QoS analysis method, terminal and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6493547B1 (en) * 1999-05-17 2002-12-10 Ericsson Inc. Apparatus and methods for providing usage information in wireless communications systems
US6999449B2 (en) * 2000-08-18 2006-02-14 Telefonaktiebolaget Lm Ericsson (Publ) System and method of monitoring and reporting accounting data based on volume
ATE367051T1 (en) * 2000-12-22 2007-08-15 Nokia Corp METHOD AND SYSTEM FOR PROVIDING A PREPAID SERVICE IN AN 'ALL-IP' NETWORK

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1327652C (en) * 2004-11-08 2007-07-18 华为技术有限公司 On-line charge processing method
CN1805442B (en) * 2004-11-30 2014-05-07 朗迅科技公司 Device and method for providing on-line billing in IMS networks
WO2006066508A1 (en) * 2004-12-21 2006-06-29 Huawei Technologies Co., Ltd. A call controlling method and system, business operation supporting system and service controlling point
CN101026664B (en) * 2006-02-17 2010-12-08 华为技术有限公司 A prepaid service charging method and system
CN101106464B (en) * 2006-07-14 2011-04-20 中兴通讯股份有限公司 A method for prepaying code division multi-address packet data service
CN101212532B (en) * 2006-12-30 2010-05-19 中国电信股份有限公司 Combined billing system and method
CN101102542B (en) * 2007-06-14 2011-08-10 中兴通讯股份有限公司 A method and device for self-service account opening and charging of CDMA system
CN102137370B (en) * 2010-01-25 2015-10-21 中兴通讯股份有限公司 A kind ofly realize method and apparatus user being carried out to unified charging
CN102201923B (en) * 2011-06-09 2014-03-26 杭州华三通信技术有限公司 Method and system for settling cross-period expenses of online user in AAA (authentication, authorization and accounting) system in real time
WO2012167672A1 (en) * 2011-06-09 2012-12-13 Hangzhou H3C Technologies Co., Ltd. Online real-time accounting
CN102201923A (en) * 2011-06-09 2011-09-28 杭州华三通信技术有限公司 Method and system for settling cross-period expenses of online user in AAA (authentication, authorization and accounting) system in real time
US20140242941A1 (en) * 2011-09-26 2014-08-28 Yafeng ZHANG Charging method, charging device, charging system, and authentication device
US9800741B2 (en) * 2011-09-26 2017-10-24 Huawei Technologies Co., Ltd. Charging method, charging device, charging system, and authentication device
WO2013131382A1 (en) * 2012-03-05 2013-09-12 华为技术有限公司 Charging method, authentication method, charging device and authentication device
CN102572768A (en) * 2012-03-05 2012-07-11 华为技术有限公司 Charging method, authentication method, charging equipment and authentication equipment
US9357082B2 (en) 2012-03-05 2016-05-31 Huawei Technologies Co, Ltd. Charging method, authentication method, charging device, and authentication device
CN102572768B (en) * 2012-03-05 2016-06-08 华为技术有限公司 Charging method, authentication method, counting equipment and authenticating device
US9521266B2 (en) 2012-03-05 2016-12-13 Huawei Technologies Co., Ltd. Charging method, authentication method, charging device, and authentication device
CN106789119A (en) * 2016-11-30 2017-05-31 上海斐讯数据通信技术有限公司 A kind of duration based accounting method of the shared Portal accounts of different terminals
CN106789119B (en) * 2016-11-30 2020-12-22 台州市吉吉知识产权运营有限公司 Duration charging method for sharing Portal account number by different terminals
CN110019061A (en) * 2017-07-28 2019-07-16 中国移动通信有限公司研究院 End-to-end QoS analysis method, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN100345411C (en) 2007-10-24

Similar Documents

Publication Publication Date Title
CN100345411C (en) Mobile phone user authentication charging method supporting grouped data prepayment characteristic
CN1805442A (en) Call control with converged application server logic and gateway logic in IMS networks
CN1711784A (en) System and method for sending SMS and text messages
CN1437421A (en) Apparatus and method for rearranging service flow module in mobile communication system
CN101047515A (en) A billing association method and system for application services
CN1235740A (en) Mobile station and network having hierarchical index for cell broadcast service
CN1669255A (en) Packet-switched connections using dedicated channels
CN1635726A (en) Method for implementing CDMA20001X packet prepay service
CN101047989A (en) Strategy and charging control method at user roaming state
CN1735017A (en) Dialogue building method based on packet data flow charging
CN1809107A (en) Wireless communication system, base station, packet control function apparatus, node apparatus and accounting server
CN101047981A (en) System and method for implementing service quality consultation mechanism
CN1878083A (en) Method and system for recording usage network capability and application therefor
CN101075890A (en) Method and system for realizing group session experience quality
CN1859534A (en) Charging method and system for traffic service
CN101080941A (en) Advanced lawful interception of sms
CN101035001A (en) Method and system for processing the strategy control and charging
CN1889785A (en) Method and system for processing switch failure in group switching process
CN1272927C (en) Short message sending system for intelligent network user and method for authenticating and charging of the short message
CN1479485A (en) Bill merge processing method
CN1889619A (en) Metering method in 3G mobile communication system
CN1859533A (en) Telecommunication service charging system and method
CN1921404A (en) Method and device for realizing user professional ability control
CN101257444A (en) A method, device and system for packet data transmission
CN1259627C (en) Service information providing system, service information providing method and control station

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071024

Termination date: 20210606

CF01 Termination of patent right due to non-payment of annual fee