WO2010139220A1 - Method and system for realizing cross-protocol failover - Google Patents

Method and system for realizing cross-protocol failover Download PDF

Info

Publication number
WO2010139220A1
WO2010139220A1 PCT/CN2010/072375 CN2010072375W WO2010139220A1 WO 2010139220 A1 WO2010139220 A1 WO 2010139220A1 CN 2010072375 W CN2010072375 W CN 2010072375W WO 2010139220 A1 WO2010139220 A1 WO 2010139220A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
diameter
radius
protocol
user data
Prior art date
Application number
PCT/CN2010/072375
Other languages
French (fr)
Chinese (zh)
Inventor
宋大猛
甘斌
陈刚
徐键
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2010139220A1 publication Critical patent/WO2010139220A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method and system for implementing failover between a Diameter protocol and a Radius protocol. Background technique
  • AAA Authentication, Authorization, Accounting
  • PPS PrePaid System
  • the Diameter protocol has become a new generation of AAA technology, and has attracted much attention due to the powerful scalability and security of the Diameter protocol.
  • International standards organizations such as the Alliance (3C), 3rd Generation Partnership Project (3GPP) and 3rd Generation Partnership Project 2 (3GPP2) have officially adopted the Diameter protocol as Next Generation Network (NGN), Wideband Code Division Multiple Access (WCDMA).
  • NTN Next Generation Network
  • WCDMA Wideband Code Division Multiple Access
  • the preferred AAA protocol for future communication networks such as Code Division Multiple Access (CDMA) 2000.
  • CDMA Code Division Multiple Access 2000.
  • OCS online charging system
  • FIG. 1 is a conventional charging system implemented by the Radius protocol
  • FIG. 2 is a charging system after the introduction of the Diameter protocol.
  • the existing charging system generally replaces the traditional charging with the charging system shown in FIG. System, ie: replace the traditional AAA system with an AAA system with protocol conversion; meanwhile, Replace the traditional PPS with OCS.
  • the existing billing system has certain defects, as follows: First, replacing the traditional billing system directly into the existing billing system will result in waste of certain resources; secondly, in the initial stage of the existing billing system, due to the system If the stability is not high, the service is not available, and the user experience is not good. For example, when the OCS fails or the link between the AAA system and the OCS is abnormal, the existing billing system cannot continue to provide services for the user, and Since the Failover mechanism cannot be applied to the existing billing system, the billing operation will not be possible once the existing billing system fails until the system returns to normal. Summary of the invention
  • the main object of the present invention is to provide a method and system for implementing Failover across protocols, so that the billing system can still provide services for users from the time of failure to failure recovery.
  • the present invention provides a system for implementing failover across protocols, the system comprising:
  • AAA system used to detect the working status of the Diameter server (Server), determine the accounting operation between the Diameter Server and the Diameter Server when determining that the Diameter Server is in normal working state; Fee operation
  • the Radius Server is configured to exchange charging messages with the AAA system to perform charging operations.
  • the Diameter Server is configured to exchange charging messages with the AAA system to perform charging operations.
  • the AAA system is further configured to perform a charging operation between the Diameter Server and the Diameter Server when the faulty Diameter Server returns to the normal working state.
  • the Radius Server further includes a protocol conversion module, configured to convert between a user data message of a Radius protocol update between the Diameter Server and the Radius Server and a user data message updated by the Diameter protocol;
  • the Radius Server for further converted into the Diameter protocol update user data upload message sent or received the Diameter Server 3 ⁇ 4 the Diameter Diameter Server Updated user data message for the protocol;
  • the Diameter Server is further configured to receive an updated user data message of a Diameter protocol uploaded by the Radius Server, or send an updated user data message of the Diameter protocol to the Radius Server.
  • the present invention also provides a method for implementing failover across protocols, the method comprising: detecting a working state of a Diameter Server, and when the Diameter Server is in a normal working state, the AAA system performs a charging operation between itself and the Diameter Server; When the Diameter Server fails, the AAA system performs its own accounting operation with the Radius Server.
  • the method further includes:
  • the AAA system performs a charging operation between itself and the Radius Server, which is specifically:
  • the AAA system sends the received Radius charging request message to the Radius Server, and the Radius Server replies to the charging response message to the AAA system; or,
  • the AAA system converts the Diameter Accounting Request message that is not processed by the Diameter Server into a Radius Accounting Request message, it sends it to the Radius Server, and the Radius Server replies with the charging response message to the AAA system; after that, the AAA system will receive the Radius charging request.
  • the message is sent to the Radius Server, and the Radius Server replies to the accounting response message to the AAA system.
  • the AAA system performs a charging operation between itself and the Diameter Server, specifically:
  • the AAA system converts the charging operation between itself and the Radius Server to the charging operation between itself and the Diameter Server, converts the received Radius charging request message into a Diameter charging request message, and sends it to the Diameter Server, and then sends it to the Diameter Server.
  • the Diameter Server replies to the Diameter Accounting Response message to the AAA system.
  • the method further includes:
  • the Radius Server receives and processes the charging request message sent by the AAA system, and stores the updated user data message of the Radius protocol. After the Diameter Server returns to normal, the Radius Server converts the updated user data message of the Radius protocol. The updated user data message of the Diameter protocol is uploaded to the Diameter Server;
  • the Diameter Server When the Diameter Server is restored, the Diameter Server sends the updated user data message of the Diameter protocol to the Radius Server.
  • the Radius Server converts the updated user data message into the updated user data message of the Radius protocol and stores it.
  • the detecting is specifically:
  • the AAA system detects the working status of the Diameter Server through the link handshake message DWR/DWA of the Diameter protocol or the heartbeat detection mechanism in the flow control transmission protocol SCTP.
  • the method further includes:
  • the Diameter Server When the Diameter Server is in the normal working state, the Diameter Server sends the updated user data message of the Diameter protocol to the Radius Server, and the Radius Server converts the updated user data message into the updated user data message of the Radius protocol and stores it.
  • the method and system for implementing Failover across protocols are provided, and two modules of Diameter Server and Radius Server are proposed, and the translation agent function in the Diameter protocol is combined with the Failover mechanism, and the AAA system detects the working state of the Diameter Server, when Diameter When the server is in normal working state, the AAA system performs the charging operation between itself and the Diameter Server; when the Diameter Server fails, enters the Failover process, and the AAA system performs the charging operation between itself and the Radius Server; therefore, the present invention improves The stability of the billing system can avoid the problem that the system is unavailable due to the failure of the new billing system in the initial stage of the upgrade, and the user experience is improved.
  • the invention can add only one processing node of the Diameter protocol, such as OCS, based on the Radius protocol charging system, and the Radius protocol module uses the traditional PPS, and only needs to add a protocol conversion module to the PPS, thereby saving Capital Source.
  • the translation proxy function in the Diameter protocol is combined with the Failback mechanism.
  • the Failback process is entered, and the AAA system performs the charging operation with the Diameter Server again, further improving. Utilization of the Diameter Server using the new Diameter protocol.
  • the invention also proposes a data synchronization method between the Diameter Server and the Radius Server, which ensures the consistency of the user data messages in the Diameter Server and the Radius Server before and after the Diameter Server failure recovery, and further improves the security and reliability of the charging system.
  • Figure 1 shows a conventional billing system implemented by the Radius protocol
  • FIG. 1 shows the charging system after the introduction of the Diameter protocol
  • FIG. 3 is a schematic structural view of a system of the present invention.
  • FIG. 4 is a schematic diagram showing the implementation process of the Failover method of the present invention. detailed description
  • the basic idea of the present invention is: Two functional modules of Diameter Server and Radius Server are proposed, and the translation proxy function in the Diameter protocol is combined with the Failover mechanism; the AAA system detects the working state of the Diameter Server, and the Diameter Server is in a normal working state. The AAA system performs the charging operation between itself and the Diameter Server; when the Diameter Server fails, enters the Failover process, and the AAA system performs the charging operation between itself and the Radius Server;
  • the translation proxy function in the Diameter protocol is combined with the Failback mechanism, and when the failed Diameter Server returns to the normal working state, the Failback processing process is entered, and the AAA system performs the charging operation with the Diameter Server again;
  • the invention also proposes a data synchronization method between the Diameter Server and the Radius Server. Used to ensure the consistency of user data messages in Diameter Server and Radius Server.
  • FIG. 3 is a schematic structural diagram of a charging system according to the present invention.
  • the system includes: a related network element 20, an AAA system 21, a Diameter Server 22, and a Radius Server 23, where the related network element 20 is used to pass
  • the Radius protocol sends a Radius charging request message to the AAA system 21 or receives a Radius charging response message returned by the AAA system 21;
  • the related network element 20 may be a PDSN or a Gateway GPRS Support Node (GGSN) or the like.
  • GGSN Gateway GPRS Support Node
  • the AAA system 21 is configured to detect the working status of the Diameter Server 22, determine that the Diameter Server 22 is working normally, convert the Radius charging request message sent by the related network element 20 into a Diameter charging request message, and send the message to the Diameter Server 22 or The Diameter charging response message returned by the Diameter Server 22 is converted into a Radius charging response message and sent to the relevant network element 20; when the Diameter Server 22 is determined to be faulty, the Radius charging request message sent by the related network element 20 is sent to the Radius Server. 23 or send the Radius charging response message returned by the Radius Server 23 to the relevant network element 20; when it is determined that the Diameter Server 22 is restored to normal, the subsequent information is transmitted again with the Diameter Server 22;
  • the AAA system 21 transmits the charging message to the Diameter Server 22 through the Diameter protocol, and transmits the charging message to the Radius Server 23 through the Radius protocol;
  • the Diameter Server 22 is configured to receive a Diameter Accounting Request message sent by the AAA system 21, and reply the Diameter Accounting Response message to the AAA system 21 according to the locally stored user quota information;
  • the Radius Server 23 is configured to receive a Radius charging request message sent by the AAA system 21, and reply the Radius charging response message to the AAA system 21 according to the locally stored user quota information;
  • the Radius Server 23 may be a PPS, and the Diameter Server 22 may For OCS; Diameter Server 22 and Radius Server 23 provide users with services such as authentication, authorization, and billing;
  • the Radius Server 23 further includes a protocol conversion module 24 for converting between an updated user data message of the Radius protocol between the Diameter Server 22 and the Radius Server 23 and an updated user data message of the Diameter protocol;
  • the Diameter Server 22 is further configured to receive an updated user data message of the Diameter protocol uploaded by the Radius Server 23, or send the updated user data message of the Diameter protocol to the Radius Server 23;
  • the Radius Server 23 is further configured to upload an updated user data message converted to the Diameter protocol to the Diameter Server 22, or receive an updated user data message of the Diameter protocol delivered by the Diameter Server 22, specifically,
  • the protocol conversion module 24 converts the updated user data message into an updated user data message of the Radius protocol and stores it; Diameter Server 22 When a fault occurs, the charging request message sent by the AAA system 21 is received and processed, and the updated user data message of the Radius protocol is stored. After the Diameter Server 22 returns to normal, the protocol conversion module 24 converts the updated user data message of the Radius protocol. The updated user data message of the Diameter protocol is uploaded to the Diameter Server 22;
  • the Diameter Server 22 or the Radius Server 23 will replace the original user data messages stored locally with the new user data messages.
  • the updated user data messages described here are: Diameter Server 22 fails to Diameter Server 22 to resume normal operation.
  • a changed user data message; the updated user data message of the Radius protocol is: a user data message that is stored locally by the Radius Server 23.
  • FIG. 4 is a schematic flowchart of a method for implementing a Failover between a Diameter and a Radius protocol according to the present invention. As shown in FIG. 4, the method includes the following steps:
  • Step 401 The AAA system 21 is powered on and initialized, and establishes a connection with the Diameter Server 22;
  • the establishing the connection process is specifically: the AAA system 21 first establishes a bearer link with the Diameter Server 22 through a bearer protocol, such as a flow control transport protocol (SCTP) or a transport control protocol (TCP), and then passes the capability.
  • a bearer protocol such as a flow control transport protocol (SCTP) or a transport control protocol (TCP)
  • SCTP flow control transport protocol
  • TCP transport control protocol
  • the exchange message (CER/CEA) establishes a Diameter connection with the Diameter Server 22.
  • Step 402 The related network element 20 sends a charging request message to the AAA system 21;
  • the related network element 20 sends a charging request message to the AAA system 21 in the form of a Radius protocol message.
  • Step 403 The AAA system 21 receives the charging request message.
  • the AAA system 21 receives the Radius charging request message sent by the related network element 20.
  • Step 404 The AAA system 21 detects the working status of the Diameter Server 22, and performs a corresponding charging operation according to different detection results.
  • step 405a if the Diameter Server 22 is in a normal working state, step 405a is performed; if the Diameter Server 22 is faulty, step 405b is executed to enter the Failover process; if the Diameter Server 22 is restored to the normal working state, step 405c is performed to enter Fallback process;
  • the AAA system 21 continuously detects the Diameter Server 22 during the operation of the charging system of the present invention, that is, when the charging system is running, the detecting operation is also performed simultaneously; the detecting is specifically: the AAA system 21 passes the Diameter The link handshake message D WR/D WA of the protocol or the heartbeat detection mechanism in the SCTP detects whether the working state of the Diameter Server 22 is normal; in the present invention, the AAA system 21 ensures the user datagram with the Radius Server 23.
  • the protocol (UDP) connection is smooth, and the purpose is: The billing system can still operate normally during the failure of Diameter Server 22.
  • Step 405a The AAA system 21 sends the received charging request message to the Diameter Server 22, and the Diameter Server 22 replies to the charging response message to the AAA system 21;
  • the AAA system 21 converts the received Radius charging request message into a Diameter charging request message and sends it to the Diameter Server 22, and then the Diameter Server 22 replies to the AAA system 21 according to the locally stored user quota information.
  • the AAA system 21 caches the converted Diameter Accounting Request message before sending the Diameter Accounting Request message to the Diameter Server 22.
  • the purpose of the AAA system 21 is to prevent the Diameter Accounting Request message from being lost if the Diameter Server 22 fails.
  • the subsequent operations are affected by: When the Diameter Server 22 fails, the AAA system 21 first scans the cached Diameter charging request message before performing the charging operation with the Radius Server 23, if the buffered charging request message has been received.
  • the reply of the Diameter Server 22 sends the Radius charging request message sent by the subsequent related network element 20 to the Radius Server 23 for processing; if the buffered charging request message does not receive the reply from the Diameter Server 22, that is: has not been processed yet.
  • the Diameter Accounting Request message is converted into a Radius Accounting Request message and sent to the Radius Server 23 for processing.
  • Step 405b The AAA system 21 sends the charging request message sent by the related network element 20 to the Radius Server 23, and the Radius Server 23 returns the charging response message to the AAA system 21; specifically: when the AAA system 21 detects that the Diameter Server 22 is faulty. , enter
  • the Failover process is as follows: The AAA system 21 first scans the cached Diameter Accounting Request message. If the AAA system 21 has received a reply from the Diameter Server 22, ie, the Diameter Accounting Request message has been processed by the Diameter Server 22, The received Radius charging request message is directly sent to the Radius Server 23, and then the Radius Server 23 replies to the Radius charging response message to the AAA system 21 according to the locally stored user quota information; The system 21 has not received a reply from the Diameter Server 22, that is, the Diameter Accounting Request message has not been processed by the Diameter Server 22, and the AAA system 21 first converts the Diameter Accounting Request message into a Radius Accounting Request message and sends it to the Radius.
  • Radius Server 23 replies to the Radius charging response message to the AAA system 21 according to the locally stored user quota information, and then sends the received Radius charging request message to the Radius Server 23, according to the locally stored user quota.
  • the information replies to the Radius Accounting Response message to the AAA system 21.
  • This step also includes the following steps:
  • the AAA system 21 After detecting the Diameter Server 22 failure, the AAA system 21 attempts to re-establish a connection with the Diameter Server 22 to detect whether the Diameter Server 22 is available, that is, whether the Diameter Server 22 is restored to the normal working state.
  • the AAA system 21 in this step continuously attempts to re-establish the connection with the Diameter Server 22 through the underlying bearer according to the characteristics of the Diameter protocol. Once the link is re-established, the capability negotiation is performed to ensure that the Diameter Server 22 is available.
  • the characteristics of the Diameter protocol are: The Dia meter protocol uses SCTP or TCP as the bearer protocol to provide secure and reliable connectivity.
  • Step 405c The AAA system 21 sends the received charging request message to the Diameter Server.
  • Diameter Server 22 replies to the charging response message to the AAA system 21;
  • the AAA system 21 detects that the Diameter Server 22 returns to the normal working state, it enters the Fallback process, and the AAA system 21 converts the charging operation performed with the Radius Server to the charging operation with the Diameter Server 22 again.
  • the received Radius charging request message is converted into a Diameter charging request message and sent to the Diameter Server 22, and then the Diameter Server 22 replies to the AAA system 21 according to the locally stored user quota information.
  • Step 406 The AAA system 21 returns the received charging response message to the relevant network element 20; specifically: the AAA system 21 converts the received Diameter charging response message into a Radius charging response message, and returns it to the relevant network element 20 Or return the received Radius charging response message.
  • the relevant network element 20 is given.
  • Step 407 Step 402 to step 406 are repeated until the current charging operation is completed.
  • the current charging operation process is: processing only a single charging request message or processing a plurality of charging request messages.
  • the invention further proposes a data synchronization method between the Diameter Server and the Radius Server, and the method steps are as follows:
  • the Radius Server 23 receives the updated user data message delivered by the Diameter Server 22 in the form of a Diameter protocol message, and the protocol conversion module 24 converts the updated user data message into the form of a Radius protocol message and stores it.
  • the sending process is: After the system processes one charging request message, the user data message stored locally by the Diameter Server 22 changes accordingly. At this time, the Diameter Server 22 sends an updated user data message to the Radius Server 23. That is, the Diameter Server 22 sends an updated user data message to the Radius Server 23 after the system processes one accounting request message;
  • the Radius Server 23 receives and processes the charging request message sent by the AAA system 21, and stores the updated user data message of the Radius protocol. After the Diameter Server 22 returns to normal, the protocol conversion module 24 will use the Radius protocol. The updated user data message is converted to the updated user data message of the Diameter protocol and uploaded to the Dia meter Server 22.
  • the Diameter Server 22 or the Radius Server 23 will use the new user data message.
  • the updated user data message described herein is: the user data message that the Diameter Server 22 fails to change during the normal recovery process of the Diameter Server 22; the update of the Radius protocol User data message, for: Radius Server 23 Stored user data messages that have changed.
  • the updated user data message needs to be sent to the counterpart server, that is: If Diameter The server 22 and the AAA system 21 perform the charging operation, and the Diameter Server 22 needs to send the updated user data message stored locally by the Diameter Server 22 to the Radius Server 23; if the Radius Ser ver 23 and the AAA system 21 perform the charging operation, The Radius Server 23 then needs to send updated user data messages stored locally by the Radius Server 23 to the Diameter Server 22.

Abstract

A method for realizing cross-protocol failover comprises the following steps that: a work state of a diameter server (22) is detected; and when the diameter server (22) is in normal work state, an authentication, authorization and accounting (AAA) system (21) executes accounting operation between itself and the diameter server (22); when the diameter server (22) fails to work, the AAA system (21) executes accounting operation between itself and a radius server (23). A system for realizing cross-protocol failover is provided. The method and the system can improve the stability of the accounting system, avoid system unavailability due to occurrence of failure in a new accounting system in the initial update stage and improve the user experience.

Description

一种跨协议实现故障切换的方法及系统 技术领域  Method and system for implementing failover across protocols
本发明涉及网络通信技术领域, 尤其涉及一种直径( Diameter )协议与 半径(Radius )协议间实现故障切换(Failover ) 的方法及系统。 背景技术  The present invention relates to the field of network communication technologies, and in particular, to a method and system for implementing failover between a Diameter protocol and a Radius protocol. Background technique
自网络通信技术诞生以来, 认证、 授权及计费(AAA, Authentication, Authorization、 Accounting )体制已成为通信网络运营的基础。 传统的通信 网络中多釆用 Radius协议实现 AAA技术, AAA系统与预付费系统(PPS, PrePaid System )之间釆用 Radius协议互相传输计费消息。  Since the birth of network communication technology, the authentication, authorization, and accounting (AAA, Authentication, Authorization, Accounting) system has become the basis of communication network operations. In the traditional communication network, the Radius protocol is used to implement the AAA technology, and the AAA system and the prepaid system (PPS, PrePaid System) use the Radius protocol to transmit the charging messages to each other.
目前, 随着第三代移动通信系统向基于全 IP 的网络架构的演进, Diameter协议已成为新一代的 AAA技术,且由于 Diameter协议具有强大的 可扩展性和安全性而备受关注, 国际电信联盟(ITU )、 第三代合作伙伴计 划 (3GPP )和第三代合作伙伴计划 2 ( 3GPP2 )等国际标准组织已正式将 Diameter协议作为下一代网络( NGN )、 宽带码分多址( WCDMA )和码分 多址(CDMA ) 2000等未来通信网络的首选 AAA协议。 在新的预付费规 范中, 将由在线计费系统(OCS )代替传统的 PPS完成预付费用户的费用 计算和配额分配, 因此, 传统的电信设备有升级的需求。  At present, with the evolution of the third-generation mobile communication system to the all-IP-based network architecture, the Diameter protocol has become a new generation of AAA technology, and has attracted much attention due to the powerful scalability and security of the Diameter protocol. International standards organizations such as the Alliance (3C), 3rd Generation Partnership Project (3GPP) and 3rd Generation Partnership Project 2 (3GPP2) have officially adopted the Diameter protocol as Next Generation Network (NGN), Wideband Code Division Multiple Access (WCDMA). The preferred AAA protocol for future communication networks such as Code Division Multiple Access (CDMA) 2000. In the new prepaid specification, the cost calculation and quota allocation of prepaid users will be completed by the online charging system (OCS) instead of the traditional PPS. Therefore, the traditional telecommunication equipment has an upgrade requirement.
传统的电信设备、 如分组数据交换节点 (PDSN )和 PPS与 AAA系统 的交互均釆用 Radius协议,而 OCS与 AAA系统的交互釆用 Diameter协议, 因此 AAA系统需要实现从 Radius协议到 Diameter协议的转换。 图 1为传 统的釆用 Radius协议实现的计费系统, 图 2为引入 Diameter协议后的计费 系统, 现有的计费系统一般釆用图 2 所示的计费系统直接替代传统的计费 系统, 即: 将具有协议转换功能的 AAA系统代替传统的 AAA系统; 同时, 用 OCS代替传统的 PPS。 但是, 现有的计费系统存在一定缺陷, 如下: 首 先, 将传统的计费系统直接替换成现有的计费系统会造成一定资源的浪费; 其次, 在现有计费系统实用初期由于系统的稳定性不高会导致业务不可用, 用户体验度不佳, 如: OCS发生故障时或 AAA系统到 OCS之间的链路出 现异常时现有计费系统将无法继续为用户提供服务, 并且, 由于 Failover 机制未能应用于现有计费系统中, 所以, 一旦现有计费系统出现故障直到 系统恢复正常过程中计费操作将无法进行。 发明内容 Traditional telecommunications equipment, such as packet data switching nodes (PDSNs) and PPS and AAA systems, use the Radius protocol, and the interaction between OCS and AAA systems uses the Diameter protocol. Therefore, the AAA system needs to implement the Radius protocol to the Diameter protocol. Conversion. 1 is a conventional charging system implemented by the Radius protocol, and FIG. 2 is a charging system after the introduction of the Diameter protocol. The existing charging system generally replaces the traditional charging with the charging system shown in FIG. System, ie: replace the traditional AAA system with an AAA system with protocol conversion; meanwhile, Replace the traditional PPS with OCS. However, the existing billing system has certain defects, as follows: First, replacing the traditional billing system directly into the existing billing system will result in waste of certain resources; secondly, in the initial stage of the existing billing system, due to the system If the stability is not high, the service is not available, and the user experience is not good. For example, when the OCS fails or the link between the AAA system and the OCS is abnormal, the existing billing system cannot continue to provide services for the user, and Since the Failover mechanism cannot be applied to the existing billing system, the billing operation will not be possible once the existing billing system fails until the system returns to normal. Summary of the invention
有鉴于此,本发明的主要目的在于提供一种跨协议实现 Failover的方法 及系统, 使计费系统从出现故障到故障恢复过程中仍能为用户提供服务。  In view of this, the main object of the present invention is to provide a method and system for implementing Failover across protocols, so that the billing system can still provide services for users from the time of failure to failure recovery.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明提供了一种跨协议实现故障切换的系统, 该系统包括:  The present invention provides a system for implementing failover across protocols, the system comprising:
AAA 系统, 用于检测 Diameter服务器 (Server ) 的工作状态, 确定 Diameter Server处于正常工作状态时, 执行自身与 Diameter Server间的计 费操作; 确定 Diameter Server出现故障时, 执行自身与 Radius Server间的 计费操作;  AAA system, used to detect the working status of the Diameter server (Server), determine the accounting operation between the Diameter Server and the Diameter Server when determining that the Diameter Server is in normal working state; Fee operation
Radius Server, 用于与 AAA系统互相传输计费消息, 执行计费操作; Diameter Server, 用于与 AAA系统互相传输计费消息,执行计费操作。 其中, 所述 AAA 系统, 进一步用于确定出现故障的 Diameter Server 恢复正常工作状态时, 执行自身与 Diameter Server间的计费操作。  The Radius Server is configured to exchange charging messages with the AAA system to perform charging operations. The Diameter Server is configured to exchange charging messages with the AAA system to perform charging operations. The AAA system is further configured to perform a charging operation between the Diameter Server and the Diameter Server when the faulty Diameter Server returns to the normal working state.
其中, 所述 Radius Server进一步包括协议转换模块, 用于 Diameter Server与 Radius Server之间 Radius协议更新的用户数据消息和 Diameter协 议更新的用户数据消息之间的转换; 相应的,  The Radius Server further includes a protocol conversion module, configured to convert between a user data message of a Radius protocol update between the Diameter Server and the Radius Server and a user data message updated by the Diameter protocol;
所述 Radius Server, 进一步用于将转换成 Diameter协议的更新的用户 数据消息上传到 Diameter Server ¾ 或接收 Diameter Server下发的 Diameter 协议的更新的用户数据消息; The Radius Server, for further converted into the Diameter protocol update user data upload message sent or received the Diameter Server ¾ the Diameter Diameter Server Updated user data message for the protocol;
所述 Diameter Server, 进一步用于接收 Radius Server上传的 Diameter 协议的更新的用户数据消息、 或将 Diameter协议的更新的用户数据消息下 发到 Radius Server。  The Diameter Server is further configured to receive an updated user data message of a Diameter protocol uploaded by the Radius Server, or send an updated user data message of the Diameter protocol to the Radius Server.
本发明还提供了一种跨协议实现故障切换的方法, 该方法包括: 检测 Diameter Server的工作 态, 当 Diameter Server处于正常工作^ 态时, AAA 系统执行自身与 Diameter Server间的计费操作; 当 Diameter Server出现故障时, AAA系统执行自身与 Radius Server间的计费操作。  The present invention also provides a method for implementing failover across protocols, the method comprising: detecting a working state of a Diameter Server, and when the Diameter Server is in a normal working state, the AAA system performs a charging operation between itself and the Diameter Server; When the Diameter Server fails, the AAA system performs its own accounting operation with the Radius Server.
该方法进一步包括:  The method further includes:
当出现故障的 Diameter Server恢复正常工作状态时, AAA系统执行与 When the faulty Diameter Server returns to normal working state, the AAA system performs
Diameter Server间的计费操作。 Billing operations between Diameter Servers.
本发明中, 所述 AAA系统执行自身与 Radius Server间的计费操作,具 体为:  In the present invention, the AAA system performs a charging operation between itself and the Radius Server, which is specifically:
AAA系统将接收到的 Radius计费请求消息发送到 Radius Server, Radius Server回复计费响应消息给 AAA系统; 或,  The AAA system sends the received Radius charging request message to the Radius Server, and the Radius Server replies to the charging response message to the AAA system; or,
AAA系统将未被 Diameter Server处理的 Diameter计费请求消息转换成 Radius计费请求消息后,发送到 Radius Server, Radius Server回复计费响应 消息给 AAA系统; 之后 AAA系统将接收到的 Radius计费请求消息发送到 Radius Server, Radius Server回复计费响应消息给 AAA系统。  After the AAA system converts the Diameter Accounting Request message that is not processed by the Diameter Server into a Radius Accounting Request message, it sends it to the Radius Server, and the Radius Server replies with the charging response message to the AAA system; after that, the AAA system will receive the Radius charging request. The message is sent to the Radius Server, and the Radius Server replies to the accounting response message to the AAA system.
本发明中, 所述 AAA系统执行自身与 Diameter Server间的计费操作 , 具体为:  In the present invention, the AAA system performs a charging operation between itself and the Diameter Server, specifically:
AAA 系统将自身与 Radius Server间进行的计费操作再次转为自身与 Diameter Server间进行的计费操作, 将接收的 Radius计费请求消息转换成 Diameter计费请求消息, 并发送到 Diameter Server, 之后 Diameter Server 回复 Diameter计费响应消息给 AAA系统。 该方法进一步包括: The AAA system converts the charging operation between itself and the Radius Server to the charging operation between itself and the Diameter Server, converts the received Radius charging request message into a Diameter charging request message, and sends it to the Diameter Server, and then sends it to the Diameter Server. The Diameter Server replies to the Diameter Accounting Response message to the AAA system. The method further includes:
Diameter Server出现故障时, Radius Server接收并处理 AAA系统发送 的计费请求消息, 且存储 Radius协议的更新的用户数据消息, 待 Diameter Server恢复正常后, Radius Server将 Radius协议的更新的用户数据消息转 换成 Diameter协议的更新的用户数据消息后上传给 Diameter Server;  When the Diameter Server fails, the Radius Server receives and processes the charging request message sent by the AAA system, and stores the updated user data message of the Radius protocol. After the Diameter Server returns to normal, the Radius Server converts the updated user data message of the Radius protocol. The updated user data message of the Diameter protocol is uploaded to the Diameter Server;
Diameter Server恢复正常时 , Diameter Server将 Diameter协议的更新的 用户数据消息下发到 Radius Server, Radius Server将更新的用户数据消息转 换成 Radius协议的更新的用户数据消息并存储。  When the Diameter Server is restored, the Diameter Server sends the updated user data message of the Diameter protocol to the Radius Server. The Radius Server converts the updated user data message into the updated user data message of the Radius protocol and stores it.
本发明中, 所述检测具体为:  In the present invention, the detecting is specifically:
AAA系统通过 Diameter协议的链路握手消息 DWR/DWA或流控制传 输协议 SCTP中的心跳检测机制 , 检测 Diameter Server的工作状态。  The AAA system detects the working status of the Diameter Server through the link handshake message DWR/DWA of the Diameter protocol or the heartbeat detection mechanism in the flow control transmission protocol SCTP.
进一步地, 该方法还包括:  Further, the method further includes:
Diameter Server处于正常工作^ 态时, Diameter Server将 Diameter协议 的更新的用户数据消息下发到 Radius Server, Radius Server将更新的用户数 据消息转换成 Radius协议的更新的用户数据消息并存储。  When the Diameter Server is in the normal working state, the Diameter Server sends the updated user data message of the Diameter protocol to the Radius Server, and the Radius Server converts the updated user data message into the updated user data message of the Radius protocol and stores it.
本发明提供的跨协议实现 Failover 的方法及系统, 提出了 Diameter Server和 Radius Server两个模块, 并将 Diameter协议中的翻译代理功能与 Failover机制相结合, AAA 系统检测 Diameter Server 的工作 态, 当 Diameter Server处于正常工作状态时, AAA系统执行自身与 Diameter Server 间的计费操作; 当 Diameter Server出现故障时, 进入 Failover处理过程, AAA系统执行自身与 Radius Server间的计费操作; 因此, 本发明提高了计 费系统的稳定性, 可避免升级初期由于新的计费系统出现故障而导致系统 不可用的问题, 提高了用户体验度。 本发明可在 Radius协议计费系统的基 础上只增加一个 Diameter协议的处理节点 , 如 OCS , 而 Radius协议模块就 用传统的 PPS , 只需在 PPS中增加一个协议转换模块即可, 因此节省了资 源。 The method and system for implementing Failover across protocols are provided, and two modules of Diameter Server and Radius Server are proposed, and the translation agent function in the Diameter protocol is combined with the Failover mechanism, and the AAA system detects the working state of the Diameter Server, when Diameter When the server is in normal working state, the AAA system performs the charging operation between itself and the Diameter Server; when the Diameter Server fails, enters the Failover process, and the AAA system performs the charging operation between itself and the Radius Server; therefore, the present invention improves The stability of the billing system can avoid the problem that the system is unavailable due to the failure of the new billing system in the initial stage of the upgrade, and the user experience is improved. The invention can add only one processing node of the Diameter protocol, such as OCS, based on the Radius protocol charging system, and the Radius protocol module uses the traditional PPS, and only needs to add a protocol conversion module to the PPS, thereby saving Capital Source.
进一步地,将 Diameter协议中的翻译代理功能与 Failback机制相结合, 当出现故障的 Diameter Server恢复正常工作状态时, 进入 Failback处理过 程, AAA系统再次执行与 Diameter Server间的计费操作, 进一步提高了应 用新 Diameter协议的 Diameter Server的利用率。  Further, the translation proxy function in the Diameter protocol is combined with the Failback mechanism. When the faulty Diameter Server returns to the normal working state, the Failback process is entered, and the AAA system performs the charging operation with the Diameter Server again, further improving. Utilization of the Diameter Server using the new Diameter protocol.
本发明还提出 Diameter Server与 Radius Server之间的数据同步方法, 保证了 Diameter Server故障恢复前后 Diameter Server与 Radius Server中用 户数据消息的一致, 进一步提高了计费系统的安全、 可靠性。 附图说明  The invention also proposes a data synchronization method between the Diameter Server and the Radius Server, which ensures the consistency of the user data messages in the Diameter Server and the Radius Server before and after the Diameter Server failure recovery, and further improves the security and reliability of the charging system. DRAWINGS
图 1为传统的釆用 Radius协议实现的计费系统;  Figure 1 shows a conventional billing system implemented by the Radius protocol;
图 2为引入 Diameter协议后的计费系统;  Figure 2 shows the charging system after the introduction of the Diameter protocol;
图 3为本发明的系统结构示意图;  3 is a schematic structural view of a system of the present invention;
图 4为本发明 Failover的方法实现流程示意图。 具体实施方式  FIG. 4 is a schematic diagram showing the implementation process of the Failover method of the present invention. detailed description
本发明的基本思想是: 提出了 Diameter Server和 Radius Server两个功 能模块,并将 Diameter协议中的翻译代理功能与 Failover机制相结合; AAA 系统检测 Diameter Server的工作状态, 当 Diameter Server处于正常工作状 态时, AAA 系统执行自身与 Diameter Server间的计费操作; 当 Diameter Server出现故障时, 进入 Failover处理过程, AAA系统执行自身与 Radius Server间的计费操作;  The basic idea of the present invention is: Two functional modules of Diameter Server and Radius Server are proposed, and the translation proxy function in the Diameter protocol is combined with the Failover mechanism; the AAA system detects the working state of the Diameter Server, and the Diameter Server is in a normal working state. The AAA system performs the charging operation between itself and the Diameter Server; when the Diameter Server fails, enters the Failover process, and the AAA system performs the charging operation between itself and the Radius Server;
进一步地,将 Diameter协议中的翻译代理功能与 Failback机制相结合, 当出现故障的 Diameter Server恢复正常工作状态时, 进入 Failback处理过 程 , AAA系统再次执行与 Diameter Server间的计费操作;  Further, the translation proxy function in the Diameter protocol is combined with the Failback mechanism, and when the failed Diameter Server returns to the normal working state, the Failback processing process is entered, and the AAA system performs the charging operation with the Diameter Server again;
本发明还提出 Diameter Server与 Radius Server之间的数据同步方法, 用于保证 Diameter Server与 Radius Server中用户数据消息的一致性。 The invention also proposes a data synchronization method between the Diameter Server and the Radius Server. Used to ensure the consistency of user data messages in Diameter Server and Radius Server.
下面结合附图及具体实施例对本发明作进一步详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
图 3为本发明计费系统结构示意图, 如图 3所述, 该系统包括: 相关 网元 20、 AAA系统 21、 Diameter Server 22和 Radius Server 23 , 其中, 所述相关网元 20, 用于通过 Radius协议向 AAA系统 21发出 Radius 计费请求消息或接收 AAA系统 21返回的 Radius计费响应消息;  FIG. 3 is a schematic structural diagram of a charging system according to the present invention. As shown in FIG. 3, the system includes: a related network element 20, an AAA system 21, a Diameter Server 22, and a Radius Server 23, where the related network element 20 is used to pass The Radius protocol sends a Radius charging request message to the AAA system 21 or receives a Radius charging response message returned by the AAA system 21;
这里, 所述相关网元 20可以为 PDSN或网关 GPRS支持节点( GGSN ) 等。  Here, the related network element 20 may be a PDSN or a Gateway GPRS Support Node (GGSN) or the like.
所述 AAA系统 21 , 用于检测 Diameter Server 22的工作状态, 确定 Diameter Server 22工作正常时,将相关网元 20发出的 Radius计费请求消息 转换成 Diameter计费请求消息并发送到 Diameter Server 22或将 Diameter Server 22返回的 Diameter计费响应消息转换成 Radius计费响应消息并发送 到相关网元 20; 确定 Diameter Server 22出现故障时, 将相关网元 20发出 的 Radius计费请求消息发送到 Radius Server 23或将 Radius Server 23返回 的 Radius计费响应消息发送到相关网元 20;确定 Diameter Server 22恢复正 常时, 再次与 Diameter Server 22进行后续信息的传输;  The AAA system 21 is configured to detect the working status of the Diameter Server 22, determine that the Diameter Server 22 is working normally, convert the Radius charging request message sent by the related network element 20 into a Diameter charging request message, and send the message to the Diameter Server 22 or The Diameter charging response message returned by the Diameter Server 22 is converted into a Radius charging response message and sent to the relevant network element 20; when the Diameter Server 22 is determined to be faulty, the Radius charging request message sent by the related network element 20 is sent to the Radius Server. 23 or send the Radius charging response message returned by the Radius Server 23 to the relevant network element 20; when it is determined that the Diameter Server 22 is restored to normal, the subsequent information is transmitted again with the Diameter Server 22;
这里 , AAA系统 21通过 Diameter协议与 Diameter Server 22互相传输 计费消息, 通过 Radius协议与 Radius Server 23互相传输计费消息;  Here, the AAA system 21 transmits the charging message to the Diameter Server 22 through the Diameter protocol, and transmits the charging message to the Radius Server 23 through the Radius protocol;
所述 Diameter Server 22, 用于接收 AAA系统 21发送的 Diameter计费 请求消息, 并根据本地存储的用户配额信息回复 Diameter计费响应消息给 AAA系统 21 ;  The Diameter Server 22 is configured to receive a Diameter Accounting Request message sent by the AAA system 21, and reply the Diameter Accounting Response message to the AAA system 21 according to the locally stored user quota information;
所述 Radius Server 23 , 用于接收 AAA系统 21发送的 Radius计费请求 消息, 并根据本地存储的用户配额信息回复 Radius计费响应消息给 AAA 系统 21 ;  The Radius Server 23 is configured to receive a Radius charging request message sent by the AAA system 21, and reply the Radius charging response message to the AAA system 21 according to the locally stored user quota information;
本发明中, 所述 Radius Server 23可为 PPS, 所述 Diameter Server 22可 为 OCS; Diameter Server 22和 Radius Server 23可为用户提供认证、授权和 计费等服务; In the present invention, the Radius Server 23 may be a PPS, and the Diameter Server 22 may For OCS; Diameter Server 22 and Radius Server 23 provide users with services such as authentication, authorization, and billing;
所述 Radius Server 23 进一步包括协议转换模块 24, 用于 Diameter Server 22与 Radius Server 23之间 Radius协议的更新的用户数据消息和 Diameter协议的更新的用户数据消息之间的转换; 相应的,  The Radius Server 23 further includes a protocol conversion module 24 for converting between an updated user data message of the Radius protocol between the Diameter Server 22 and the Radius Server 23 and an updated user data message of the Diameter protocol;
所述 Diameter Server 22 , 进一步用于接收 Radius Server 23 上传的 Diameter协议的更新的用户数据消息、 或将 Diameter协议的更新的用户数 据消息下发到 Radius Server 23 ;  The Diameter Server 22 is further configured to receive an updated user data message of the Diameter protocol uploaded by the Radius Server 23, or send the updated user data message of the Diameter protocol to the Radius Server 23;
所述 Radius Server 23 , 进一步用于将转换成 Diameter协议的更新的用 户数据消息上传到 Diameter Server 22、 或接收 Diameter Server 22下发的 Diameter协议的更新的用户数据消息 , 具体的 ,  The Radius Server 23 is further configured to upload an updated user data message converted to the Diameter protocol to the Diameter Server 22, or receive an updated user data message of the Diameter protocol delivered by the Diameter Server 22, specifically,
Diameter Server 22工作正常时,接收 Diameter Server 22下发的 Diameter 协议的更新的用户数据消息, 协议转换模块 24将该更新的用户数据消息转 换成 Radius协议的更新的用户数据消息并存储; Diameter Server 22出现故 障时, 接收并处理 AAA系统 21发送的计费请求消息, 且存储 Radius协议 的更新的用户数据消息, 待 Diameter Server 22恢复正常后, 协议转换模块 24将 Radius协议的更新的用户数据消息转换成 Diameter协议的更新的用户 数据消息后上传给 Diameter Server 22;  When the Diameter Server 22 is working normally, receiving the updated user data message of the Diameter protocol delivered by the Diameter Server 22, the protocol conversion module 24 converts the updated user data message into an updated user data message of the Radius protocol and stores it; Diameter Server 22 When a fault occurs, the charging request message sent by the AAA system 21 is received and processed, and the updated user data message of the Radius protocol is stored. After the Diameter Server 22 returns to normal, the protocol conversion module 24 converts the updated user data message of the Radius protocol. The updated user data message of the Diameter protocol is uploaded to the Diameter Server 22;
这里,因为系统在运行过程中 Diameter Server 22或 Radius Server 23本 地存储的用户数据消息会在每一次处理计费请求消息后将发生变化, 因此 Here, since the user data message stored locally by the Diameter Server 22 or the Radius Server 23 during the running of the system will change after each processing of the charging request message,
Diameter Server 22或 Radius Server 23将用新的用户数据消息替换各自本地 存储的原有用户数据消息, 此处所述更新的用户数据消息, 为: Diameter Server 22出现故障到 Diameter Server 22恢复正常过程中发生变化的用户数 据消息; 所述 Radius协议的更新的用户数据消息, 为: Radius Server 23本 地存储的发生变化的用户数据消息。 基于上述系统, 对本发明的实现方法进行详细描述。 The Diameter Server 22 or the Radius Server 23 will replace the original user data messages stored locally with the new user data messages. The updated user data messages described here are: Diameter Server 22 fails to Diameter Server 22 to resume normal operation. A changed user data message; the updated user data message of the Radius protocol is: a user data message that is stored locally by the Radius Server 23. The implementation method of the present invention will be described in detail based on the above system.
图 4为本发明 Diameter与 Radius协议间 Failover的方法实现流程示意 图, 如图 4所示, 该方法包括以下步骤:  FIG. 4 is a schematic flowchart of a method for implementing a Failover between a Diameter and a Radius protocol according to the present invention. As shown in FIG. 4, the method includes the following steps:
步骤 401 : AAA系统 21上电初始化, 并与 Diameter Server 22建立连 接;  Step 401: The AAA system 21 is powered on and initialized, and establishes a connection with the Diameter Server 22;
这里, 所述的建立连接过程具体为: AAA系统 21首先通过承载协议, 如:流控制传输协议( SCTP )或传输控制协议( TCP )建立与 Diameter Server 22之间的承载链路, 之后通过能力交换消息(CER/CEA )建立与 Diameter Server 22之间的 Diameter连接。  Here, the establishing the connection process is specifically: the AAA system 21 first establishes a bearer link with the Diameter Server 22 through a bearer protocol, such as a flow control transport protocol (SCTP) or a transport control protocol (TCP), and then passes the capability. The exchange message (CER/CEA) establishes a Diameter connection with the Diameter Server 22.
步骤 402: 相关网元 20向 AAA系统 21发出计费请求消息;  Step 402: The related network element 20 sends a charging request message to the AAA system 21;
具体为: 相关网元 20以 Radius协议消息的形式向 AAA系统 21发出 计费请求消息。  Specifically, the related network element 20 sends a charging request message to the AAA system 21 in the form of a Radius protocol message.
步骤 403: AAA系统 21接收计费请求消息;  Step 403: The AAA system 21 receives the charging request message.
具体为: AAA系统 21接收相关网元 20发送的 Radius计费请求消息。 步骤 404: AAA系统 21对 Diameter Server 22的工作状态进行检测, 根据不同检测结果执行对应计费操作;  Specifically, the AAA system 21 receives the Radius charging request message sent by the related network element 20. Step 404: The AAA system 21 detects the working status of the Diameter Server 22, and performs a corresponding charging operation according to different detection results.
具体为:如果 Diameter Server 22处于正常工作状态,则执行步骤 405a; 如果 Diameter Server 22出现故障, 则执行步骤 405b , 进入 Failover处理过 程; 如果 Diameter Server 22恢复正常工作状态时, 则执行步骤 405c, 进入 Fallback处理过程;  Specifically, if the Diameter Server 22 is in a normal working state, step 405a is performed; if the Diameter Server 22 is faulty, step 405b is executed to enter the Failover process; if the Diameter Server 22 is restored to the normal working state, step 405c is performed to enter Fallback process;
这里 ,所述 AAA系统 21在本发明计费系统运行过程中持续对 Diameter Server 22进行检测, 即: 计费系统运行时, 检测操作也在同时进行; 所述 检测具体为: AAA系统 21通过 Diameter协议的链路握手消息 D WR/D WA 或 SCTP中的心跳检测机制检测 Diameter Server 22的工作状态是否正常; 本发明中, AAA系统 21要确保与 Radius Server 23之间的用户数据报 协议( UDP )连接通畅, 目的在于: 在 Diameter Server 22出现故障过程中 计费系统仍能正常运行。 Here, the AAA system 21 continuously detects the Diameter Server 22 during the operation of the charging system of the present invention, that is, when the charging system is running, the detecting operation is also performed simultaneously; the detecting is specifically: the AAA system 21 passes the Diameter The link handshake message D WR/D WA of the protocol or the heartbeat detection mechanism in the SCTP detects whether the working state of the Diameter Server 22 is normal; in the present invention, the AAA system 21 ensures the user datagram with the Radius Server 23. The protocol (UDP) connection is smooth, and the purpose is: The billing system can still operate normally during the failure of Diameter Server 22.
步骤 405a: AAA系统 21将接收的计费请求消息发送到 Diameter Server 22 , Diameter Server 22回复计费响应消息给 AAA系统 21;  Step 405a: The AAA system 21 sends the received charging request message to the Diameter Server 22, and the Diameter Server 22 replies to the charging response message to the AAA system 21;
具体为: AAA系统 21将接收的 Radius计费请求消息转换成 Diameter 计费请求消息并发送到 Diameter Server 22 , 之后 Diameter Server 22根据本 地存储的用户配额信息回复 Diameter计费响应消息给 AAA系统 21 ;  Specifically, the AAA system 21 converts the received Radius charging request message into a Diameter charging request message and sends it to the Diameter Server 22, and then the Diameter Server 22 replies to the AAA system 21 according to the locally stored user quota information.
这里 , AAA系统 21将 Diameter计费请求消息发送到 Diameter Server 22 之前要緩存已转换成的 Diameter计费请求消息, 目的在于: 防止 Diameter Server 22出现故障时造成未发送成功的 Diameter计费请求消息丟失, 影响 后续操作 , 处理方法为: 当 Diameter Server 22出现故障时 , AAA系统 21 在与 Radius Server 23执行计费操作之前首先扫描緩存的 Diameter计费请求 消息 , 如果緩存的计费请求消息已经收到 Diameter Server 22的回复, 则将 后续相关网元 20发送的 Radius计费请求消息发送到 Radius Server 23进行 处理; 如果緩存的计费请求消息没有收到 Diameter Server 22的回复, 即: 还没得到处理, 则将 Diameter计费请求消息转换成 Radius计费请求消息后 发送到 Radius Server 23进行处理。  Here, the AAA system 21 caches the converted Diameter Accounting Request message before sending the Diameter Accounting Request message to the Diameter Server 22. The purpose of the AAA system 21 is to prevent the Diameter Accounting Request message from being lost if the Diameter Server 22 fails. The subsequent operations are affected by: When the Diameter Server 22 fails, the AAA system 21 first scans the cached Diameter charging request message before performing the charging operation with the Radius Server 23, if the buffered charging request message has been received. The reply of the Diameter Server 22 sends the Radius charging request message sent by the subsequent related network element 20 to the Radius Server 23 for processing; if the buffered charging request message does not receive the reply from the Diameter Server 22, that is: has not been processed yet. Then, the Diameter Accounting Request message is converted into a Radius Accounting Request message and sent to the Radius Server 23 for processing.
步骤 405b: AAA系统 21将相关网元 20发出的计费请求消息发送到 Radius Server 23 , Radius Server 23回复计费响应消息给 AAA系统 21; 具体为: AAA系统 21检测到 Diameter Server 22 出现故障时, 进入 Step 405b: The AAA system 21 sends the charging request message sent by the related network element 20 to the Radius Server 23, and the Radius Server 23 returns the charging response message to the AAA system 21; specifically: when the AAA system 21 detects that the Diameter Server 22 is faulty. , enter
Failover处理过程, 为: AAA系统 21首先扫描緩存的 Diameter计费请求消 息,如果此时 AAA系统 21已收到 Diameter Server 22的回复,即: Diameter 计费请求消息已得到 Diameter Server 22的处理, 则将收到的 Radius计费请 求消息直接发送到 Radius Server 23 , 之后 Radius Server 23根据本地存储的 用户配额信息回复 Radius计费响应消息给 AAA系统 21 ;如果此时 AAA系 统 21还未收到 Diameter Server 22的回复, 即: Diameter计费请求消息还未 得到 Diameter Server 22的处理,则 AAA系统 21首先将 Diameter计费请求 消息转换成 Radius计费请求消息并发送到 Radius Server 23 , Radius Server 23根据本地存储的用户配额信息回复 Radius计费响应消息给 AAA系统 21 , 之后再将收到的 Radius计费请求消息发送到 Radius Server 23 , Radius Server 23根据本地存储的用户配额信息回复 Radius计费响应消息给 AAA系统 21。 The Failover process is as follows: The AAA system 21 first scans the cached Diameter Accounting Request message. If the AAA system 21 has received a reply from the Diameter Server 22, ie, the Diameter Accounting Request message has been processed by the Diameter Server 22, The received Radius charging request message is directly sent to the Radius Server 23, and then the Radius Server 23 replies to the Radius charging response message to the AAA system 21 according to the locally stored user quota information; The system 21 has not received a reply from the Diameter Server 22, that is, the Diameter Accounting Request message has not been processed by the Diameter Server 22, and the AAA system 21 first converts the Diameter Accounting Request message into a Radius Accounting Request message and sends it to the Radius. Server 23, Radius Server 23 replies to the Radius charging response message to the AAA system 21 according to the locally stored user quota information, and then sends the received Radius charging request message to the Radius Server 23, according to the locally stored user quota. The information replies to the Radius Accounting Response message to the AAA system 21.
本步骤进行过程中还同时包括以下步骤:  This step also includes the following steps:
AAA系统 21检测到 Diameter Server 22故障后, 一直尝试与 Diameter Server 22重新建立连接, 检测 Diameter Server 22是否可用, 即: Diameter Server 22是否恢复正常工作状态。  After detecting the Diameter Server 22 failure, the AAA system 21 attempts to re-establish a connection with the Diameter Server 22 to detect whether the Diameter Server 22 is available, that is, whether the Diameter Server 22 is restored to the normal working state.
这里 , 本步骤 AAA系统 21依据 Diameter协议的特点通过底层承载不 断尝试与 Diameter Server 22重新建立连接,一旦链路重新建立,则重新能 力协商以确保 Diameter Server 22可用; 所述 Diameter协议的特点为: Dia meter协议以 SCTP或 TCP为承载协议, 具备安全、 可靠的连接性。  Here, the AAA system 21 in this step continuously attempts to re-establish the connection with the Diameter Server 22 through the underlying bearer according to the characteristics of the Diameter protocol. Once the link is re-established, the capability negotiation is performed to ensure that the Diameter Server 22 is available. The characteristics of the Diameter protocol are: The Dia meter protocol uses SCTP or TCP as the bearer protocol to provide secure and reliable connectivity.
步骤 405c: AAA系统 21将接收的计费请求消息发送到 Diameter Server Step 405c: The AAA system 21 sends the received charging request message to the Diameter Server.
22 , Diameter Server 22回复计费响应消息给 AAA系统 21; 22, Diameter Server 22 replies to the charging response message to the AAA system 21;
具体为: AAA系统 21检测到 Diameter Server 22恢复正常工作状态时, 进入 Fallback处理过程, 为: AAA系统 21将与 Radius Server间进行的计 费操作再次转为与 Diameter Server 22间进行的计费操作, 将接收的 Radius 计费请求消息转换成 Diameter计费请求消息并发送到 Diameter Server 22 , 之后 Diameter Server 22根据本地存储的用户配额信息回复 Diameter计费响 应消息给 AAA系统 21。  Specifically, when the AAA system 21 detects that the Diameter Server 22 returns to the normal working state, it enters the Fallback process, and the AAA system 21 converts the charging operation performed with the Radius Server to the charging operation with the Diameter Server 22 again. The received Radius charging request message is converted into a Diameter charging request message and sent to the Diameter Server 22, and then the Diameter Server 22 replies to the AAA system 21 according to the locally stored user quota information.
步骤 406: AAA系统 21将接收到的计费响应消息返回给相关网元 20; 具体为: AAA系统 21将接收到的 Diameter计费响应消息转换成 Radius 计费响应消息后返回给相关网元 20或将接收到的 Radius计费响应消息返回 给相关网元 20。 Step 406: The AAA system 21 returns the received charging response message to the relevant network element 20; specifically: the AAA system 21 converts the received Diameter charging response message into a Radius charging response message, and returns it to the relevant network element 20 Or return the received Radius charging response message. The relevant network element 20 is given.
步骤 407: 重复步骤 402至步骤 406, 直至完成当前计费操作; 这里, 所述当前计费操作过程为: 只处理单条计费请求消息或处理多 条计费请求消息。  Step 407: Step 402 to step 406 are repeated until the current charging operation is completed. Here, the current charging operation process is: processing only a single charging request message or processing a plurality of charging request messages.
本发明进一步提出了 Diameter Server与 Radius Server之间的数据同步 方法, 该方法步骤如下:  The invention further proposes a data synchronization method between the Diameter Server and the Radius Server, and the method steps are as follows:
Diameter Server 22工作正常时, Radius Server 23接收 Diameter Server 22以 Diameter协议消息的形式下发的更新的用户数据消息, 协议转换模块 24将更新的用户数据消息转换成 Radius协议消息的形式并存储, 这里, 所 述下发过程为: 系统每处理一条计费请求消息后 Diameter Server 22本地存 储的用户数据消息就会相应改变, 这时, Diameter Server 22 将向 Radius Server 23下发一次更新的用户数据消息, 即: 系统每处理一条计费请求消 息后 Diameter Server 22要向 Radius Server 23下发一次更新的用户数据消 息;  When the Diameter Server 22 is working normally, the Radius Server 23 receives the updated user data message delivered by the Diameter Server 22 in the form of a Diameter protocol message, and the protocol conversion module 24 converts the updated user data message into the form of a Radius protocol message and stores it. The sending process is: After the system processes one charging request message, the user data message stored locally by the Diameter Server 22 changes accordingly. At this time, the Diameter Server 22 sends an updated user data message to the Radius Server 23. That is, the Diameter Server 22 sends an updated user data message to the Radius Server 23 after the system processes one accounting request message;
Diameter Server 22 出现故障时, Radius Server 23 接收并处理 AAA 系统 21发送的计费请求消息, 且存储 Radius协议的更新的用户数据消息, 待 Diameter Server 22恢复正常后,协议转换模块 24将 Radius协议的更新 的用户数据消息转换成 Diameter协议的更新的用户数据消息后上传给 Dia meter Server 22。  When the Diameter Server 22 fails, the Radius Server 23 receives and processes the charging request message sent by the AAA system 21, and stores the updated user data message of the Radius protocol. After the Diameter Server 22 returns to normal, the protocol conversion module 24 will use the Radius protocol. The updated user data message is converted to the updated user data message of the Diameter protocol and uploaded to the Dia meter Server 22.
这里,因为系统在运行过程中 Diameter Server 22或 Radius Server 23本 地存储的用户数据消息会在每一次处理计费请求消息后将发生变化, 因此 Diameter Server 22或 Radius Server 23将用新的用户数据消息替换各自本地 存储的原有用户数据消息, 此处所述更新的用户数据消息, 为: Diameter Server 22出现故障到 Diameter Server 22恢复正常过程中发生变化的用户数 据消息; 所述 Radius协议的更新的用户数据消息, 为: Radius Server 23本 地存储的发生变化的用户数据消息。 Here, because the user data message stored locally by the Diameter Server 22 or the Radius Server 23 will change after each processing of the charging request message, the Diameter Server 22 or the Radius Server 23 will use the new user data message. Replacing the original user data message stored in the local area, the updated user data message described herein is: the user data message that the Diameter Server 22 fails to change during the normal recovery process of the Diameter Server 22; the update of the Radius protocol User data message, for: Radius Server 23 Stored user data messages that have changed.
本发明中,在 Diameter Server 22或 Radius Server 23与 AAA系统 21 执行计费操作且信息更新后, 即: 用户数据消息更新后, 都需要将更新的 用户数据消息发送到对方服务器, 即: 如果 Diameter Server 22与 AAA系 统 21执行计费操作, 则 Diameter Server 22需将每次 Diameter Server 22 本地存储的更新的用户数据消息发送到 Radius Server 23; 如果 Radius Ser ver 23与 AAA系统 21执行计费操作, 则 Radius Server 23需要将 Radius Server 23本地存储的更新的用户数据消息发送到 Diameter Server 22。  In the present invention, after the Diameter Server 22 or the Radius Server 23 and the AAA system 21 perform the charging operation and the information is updated, that is, after the user data message is updated, the updated user data message needs to be sent to the counterpart server, that is: If Diameter The server 22 and the AAA system 21 perform the charging operation, and the Diameter Server 22 needs to send the updated user data message stored locally by the Diameter Server 22 to the Radius Server 23; if the Radius Ser ver 23 and the AAA system 21 perform the charging operation, The Radius Server 23 then needs to send updated user data messages stored locally by the Radius Server 23 to the Diameter Server 22.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围, 凡在本发明的精神和原则之内所作的任何修改、 等同替换和改进 等, 均应包含在本发明的保护范围之内。  The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included. Within the scope of protection of the present invention.

Claims

权利要求书 Claim
1、 一种跨协议实现故障切换的系统, 其特征在于, 该系统包括: 认证、 授权及计费 AAA 系统, 用于检测直径服务器 Diameter Server 的工作状态, 确定 Diameter Server 处于正常工作状态时, 执行自身与 Diameter Server间的计费操作; 确定 Diameter Server出现故障时, 执行自 身与半径服务器 Radius Server间的计费操作;  A system for implementing failover across protocols, the system comprising: an authentication, authorization, and accounting AAA system, configured to detect a working state of a diameter server Diameter Server, and determine when the Diameter Server is in a normal working state, execute The charging operation between itself and the Diameter Server; when determining the failure of the Diameter Server, performing the charging operation between itself and the radius server Radius Server;
Radius Server, 用于与 AAA系统互相传输计费消息, 执行计费操作; Diameter Server, 用于与 AAA系统互相传输计费消息,执行计费操作。 The Radius Server is configured to exchange charging messages with the AAA system to perform charging operations. The Diameter Server is configured to exchange charging messages with the AAA system to perform charging operations.
2、 根据权利要求 1所述的跨协议实现故障切换的系统, 其特征在于, 所述 AAA系统 ,进一步用于确定出现故障的 Diameter Server恢复正常工作 状态时, 执行自身与 Diameter Server间的计费操作。 The system for implementing failover across protocols according to claim 1, wherein the AAA system is further configured to perform charging between the Diameter Server and the Diameter Server when the faulty Diameter Server is restored to the normal working state. operating.
3、 根据权利要求 1或 2所述的跨协议实现故障切换的系统, 其特征在 于, 所述 Radius Server进一步包括协议转换模块, 用于 Diameter Server与 Radius Server之间 Radius协议更新的用户数据消息和 Diameter协议更新的 用户数据消息之间的转换;  The system for implementing failover across protocols according to claim 1 or 2, wherein the Radius Server further comprises a protocol conversion module, and a user data message for updating the Radius protocol between the Diameter Server and the Radius Server. Conversion between user data messages updated by the Diameter protocol;
相应的, 所述 Radius Server, 进一步用于将转换成 Diameter协议的更 新的用户数据消息上传到 Diameter Server, 或接收 Diameter Server下发的 Diameter协议的更新的用户数据消息;  Correspondingly, the Radius Server is further configured to upload the updated user data message converted to the Diameter protocol to the Diameter Server, or receive the updated user data message of the Diameter protocol delivered by the Diameter Server;
所述 Diameter Server, 进一步用于接收 Radius Server上传的 Diameter 协议的更新的用户数据消息、 或将 Diameter协议的更新的用户数据消息下 发到 Radius Server。  The Diameter Server is further configured to receive an updated user data message of a Diameter protocol uploaded by the Radius Server, or send an updated user data message of the Diameter protocol to the Radius Server.
4、 一种跨协议实现故障切换的方法, 其特征在于, 该方法包括: 检测 Diameter Server的工作 态, 当 Diameter Server处于正常工作^ 态时, AAA 系统执行自身与 Diameter Server间的计费操作; 当 Diameter Server出现故障时, AAA系统执行自身与 Radius Server间的计费操作。 A method for implementing failover across protocols, the method comprising: detecting a working state of a Diameter Server, and when the Diameter Server is in a normal working state, the AAA system performs a charging operation between the self and the Diameter Server; When the Diameter Server fails, the AAA system performs its own accounting operation with the Radius Server.
5、 根据权利要求 4所述的跨协议实现故障切换的方法, 其特征在于, 该方法进一步包括: The method for implementing a failover across a protocol according to claim 4, wherein the method further comprises:
当出现故障的 Diameter Server恢复正常工作状态时, AAA系统执行与 Diameter Server间的计费操作。  When the failed Diameter Server returns to normal operation, the AAA system performs charging operations with the Diameter Server.
6、 根据权利要求 4或 5所述的跨协议实现故障切换的方法, 其特征在 于, 所述 AAA系统执行自身与 Radius Server间的计费操作, 具体为:  The method for implementing a failover across protocols according to claim 4 or 5, wherein the AAA system performs a charging operation between itself and the Radius Server, specifically:
AAA系统将接收到的 Radius计费请求消息发送到 Radius Server, Radius Server回复计费响应消息给 AAA系统; 或,  The AAA system sends the received Radius charging request message to the Radius Server, and the Radius Server replies to the charging response message to the AAA system; or,
AAA系统将未被 Diameter Server处理的 Diameter计费请求消息转换成 Radius计费请求消息后,发送到 Radius Server, Radius Server回复计费响应 消息给 AAA系统; 之后 AAA系统将接收到的 Radius计费请求消息发送到 Radius Server, Radius Server回复计费响应消息给 AAA系统。  After the AAA system converts the Diameter Accounting Request message that is not processed by the Diameter Server into a Radius Accounting Request message, it sends it to the Radius Server, and the Radius Server replies with the charging response message to the AAA system; after that, the AAA system will receive the Radius charging request. The message is sent to the Radius Server, and the Radius Server replies to the accounting response message to the AAA system.
7、 根据权利要求 4或 5所述的跨协议实现故障切换的方法, 其特征在 于 , 所述 AAA系统执行自身与 Diameter Server间的计费操作 , 具体为: AAA 系统将自身与 Radius Server间进行的计费操作再次转为自身与 The method for implementing the failover by using the cross-protocol according to claim 4 or 5, wherein the AAA system performs a charging operation between the AAA system and the Diameter Server, specifically: the AAA system performs the operation between itself and the Radius Server. Billing operation again turns itself into
Diameter Server间进行的计费操作, 将接收的 Radius计费请求消息转换成 Diameter计费请求消息, 并发送到 Diameter Server, 之后 Diameter Server 回复 Diameter计费响应消息给 AAA系统。 The accounting operation performed between the Diameter Servers converts the received Radius Accounting Request message into a Diameter Accounting Request message and sends it to the Diameter Server. The Diameter Server then replies to the Diameter Accounting Response message to the AAA system.
8、 根据权利要求 4或 5所述的跨协议实现故障切换的方法, 其特征在 于, 该方法进一步包括:  The method for implementing failover across protocols according to claim 4 or 5, wherein the method further comprises:
Diameter Server出现故障时, Radius Server接收并处理 AAA系统发送 的计费请求消息, 且存储 Radius协议的更新的用户数据消息, 待 Diameter Server恢复正常后, Radius Server将 Radius协议的更新的用户数据消息转 换成 Diameter协议的更新的用户数据消息后上传给 Diameter Server;  When the Diameter Server fails, the Radius Server receives and processes the charging request message sent by the AAA system, and stores the updated user data message of the Radius protocol. After the Diameter Server returns to normal, the Radius Server converts the updated user data message of the Radius protocol. The updated user data message of the Diameter protocol is uploaded to the Diameter Server;
Diameter Server恢复正常时 , Diameter Server将 Diameter协议的更新的 用户数据消息下发到 Radius Server, Radius Server将更新的用户数据消息转 换成 Radius协议的更新的用户数据消息并存储。 When the Diameter Server returns to normal, the Diameter Server will update the Diameter protocol. The user data message is sent to the Radius Server, and the Radius Server converts the updated user data message into an updated user data message of the Radius protocol and stores it.
9、 根据权利要求 4或 5所述的跨协议实现故障切换的方法, 其特征在 于, 所述检测具体为:  The method for implementing failover across protocols according to claim 4 or 5, wherein the detecting is specifically:
AAA系统通过 Diameter协议的链路握手消息 DWR/DWA、或流控制传 输协议 SCTP中的心跳检测机制 , 检测 Diameter Server的工作状态。  The AAA system detects the working status of the Diameter Server through the link handshake message DWR/DWA of the Diameter protocol or the heartbeat detection mechanism in the flow control transmission protocol SCTP.
10、 根据权利要求 8所述的跨协议实现故障切换的方法, 其特征在于, 该方法还包括:  The method for implementing a failover across a protocol according to claim 8, wherein the method further comprises:
Diameter Server处于正常工作^ 态时, Diameter Server将 Diameter协议 的更新的用户数据消息下发到 Radius Server, Radius Server将更新的用户数 据消息转换成 Radius协议的更新的用户数据消息并存储。  When the Diameter Server is in the normal working state, the Diameter Server sends the updated user data message of the Diameter protocol to the Radius Server, and the Radius Server converts the updated user data message into the updated user data message of the Radius protocol and stores it.
PCT/CN2010/072375 2009-06-01 2010-04-30 Method and system for realizing cross-protocol failover WO2010139220A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910085838.4 2009-06-01
CN2009100858384A CN101594602B (en) 2009-06-01 2009-06-01 Method and system for realizing cross-protocol failover

Publications (1)

Publication Number Publication Date
WO2010139220A1 true WO2010139220A1 (en) 2010-12-09

Family

ID=41408985

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/072375 WO2010139220A1 (en) 2009-06-01 2010-04-30 Method and system for realizing cross-protocol failover

Country Status (2)

Country Link
CN (1) CN101594602B (en)
WO (1) WO2010139220A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594602B (en) * 2009-06-01 2012-06-13 中兴通讯股份有限公司 Method and system for realizing cross-protocol failover
CN102045177A (en) * 2010-12-10 2011-05-04 中兴通讯股份有限公司 Network element interworking method and AAA (authentication, authorization and accounting) server
CN103188643B (en) * 2011-12-29 2015-11-04 中国移动通信集团河南有限公司 Based on the charging method of two center disaster recovery charge system, device and system thereof
CN105812337A (en) * 2014-12-31 2016-07-27 中兴通讯股份有限公司 Radius and Diameter combined authentication authorization method and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252788A (en) * 2008-04-11 2008-08-27 北京首信科技有限公司 Diameter-AAA server supporting RADIUS protocol and working method thereof
CN101355578A (en) * 2008-09-02 2009-01-28 中国科学院计算技术研究所 Compatible method and system for mobile IP application based on RADIUS and DIAMETER protocol
CN101594602A (en) * 2009-06-01 2009-12-02 中兴通讯股份有限公司 A kind of method and system of striding agreement realization failover

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1411676A1 (en) * 2002-10-17 2004-04-21 Alcatel Method, network access server, client and computer software product for dynamic definition of layer 2 tunneling connections

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252788A (en) * 2008-04-11 2008-08-27 北京首信科技有限公司 Diameter-AAA server supporting RADIUS protocol and working method thereof
CN101355578A (en) * 2008-09-02 2009-01-28 中国科学院计算技术研究所 Compatible method and system for mobile IP application based on RADIUS and DIAMETER protocol
CN101594602A (en) * 2009-06-01 2009-12-02 中兴通讯股份有限公司 A kind of method and system of striding agreement realization failover

Also Published As

Publication number Publication date
CN101594602A (en) 2009-12-02
CN101594602B (en) 2012-06-13

Similar Documents

Publication Publication Date Title
EP2441232B1 (en) Methods, apparatuses, and related computer program product for network element recovery
EP2245802B1 (en) Optimized SIP routing architecture using an integrated network and systems approach
CN104094577A (en) Method and apparatus for indirectly assessing a status of an active entity
US7966229B2 (en) Method and system for accounting access by users to data networks, related computer program product
EP1829267B1 (en) Redundant l2tp end points
US20100008218A1 (en) Termination Message for Wireless Wide Area Network Routers
WO2011020363A1 (en) Method and system for realizing load balance and diameter client
WO2007082446A1 (en) A method and system for offline charging
WO2012048585A1 (en) Switching method and router
WO2013097471A1 (en) Method, device and system for handling network failures
WO2010139220A1 (en) Method and system for realizing cross-protocol failover
WO2012122904A1 (en) Method and system for protecting basic session in dsn voip service system
WO2011020369A1 (en) Method for establishing diameter link and diameter network element
JP5309350B2 (en) Mobile communication gateway apparatus and mobile communication gateway control method
WO2009138016A1 (en) Information transmission method, apparatus and system
WO2012000366A1 (en) Relay method for service data and relay node system
CN108270593A (en) A kind of two-node cluster hot backup method and system
CN100450018C (en) Method for raising Diameter internodal communication reliability
CN103138957A (en) Method, device and system for business path failback
WO2015135280A1 (en) Method, system and access router for realizing on demand smart dialing
CN109257444B (en) Load sharing method, device and system
EP2815549A1 (en) Method and apparatus for improved handling of ims node blacklisting
JP4399500B2 (en) Construction method of billing process based on network element
WO2005025143A1 (en) Method of detecting the status of a media gateway controller by a media gateway
CN101753322A (en) Method, system and device for confirming whether packet data network connection is established or not

Legal Events

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

Ref document number: 10782924

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 10782924

Country of ref document: EP

Kind code of ref document: A1