WO2011035639A1 - Method and apparatus for upgrade protection - Google Patents

Method and apparatus for upgrade protection Download PDF

Info

Publication number
WO2011035639A1
WO2011035639A1 PCT/CN2010/075239 CN2010075239W WO2011035639A1 WO 2011035639 A1 WO2011035639 A1 WO 2011035639A1 CN 2010075239 W CN2010075239 W CN 2010075239W WO 2011035639 A1 WO2011035639 A1 WO 2011035639A1
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade
message
session
server
access device
Prior art date
Application number
PCT/CN2010/075239
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 WO2011035639A1 publication Critical patent/WO2011035639A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1453Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network
    • H04L12/1471Methods or systems for payment or settlement of the charges for data transmission involving significant interaction with the data transmission network splitting of costs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Definitions

  • the present invention relates to the field of communications, and in particular, to an upgrade protection method and apparatus in an online charging system. Background technique
  • the Online Charging System can be used to implement online charging, providing prepaid and real-time account processing.
  • the existing online charging system can separate the customer's traffic control function from the charging function, and establish a direct interaction between the charging mechanism and the session/service control, so that the charging can participate in the use of the service.
  • the power of independent billing can be utilized to provide flexibility close to the quasi-real-time billing system, and the real-time characteristics of the participating processes can be utilized to minimize the cost of arrears.
  • the Online Charging Protocol (OCP) used for accessing the online charging system is usually based on the Diameter protocol.
  • the Diameter base protocol provides a secure, reliable, and easily scalable framework for a wide range of authentication, authorization, and billing services. Defining the Diameter application based on this, only need to define the application identifier of the application protocol, the network function entity participating in the communication, and the message content and protocol process between the functional entities communicating with each other, and can completely rely on the Diameter base protocol to complete the specific access and Application business.
  • One of the objects of the present invention is to provide an upgrade protection method and apparatus, which can improve the reliability of an online charging system.
  • An upgrade protection method for protecting an access device in an online charging system where the online charging system includes a client that performs business logic management, an access device that performs session management, and performs charging management. Server, the method includes:
  • the method further includes:
  • the method also includes:
  • a broken link message is sent to the client and the server.
  • the method further includes:
  • the method also includes:
  • An upgrade protection device that protects an upgrade of an access device in an online charging system, where the online charging system includes a client that performs business logic management, an access device that performs session management, and performs charging management.
  • the server, the upgrade protection device includes:
  • Upgrading a protection module for protecting information in the access device upgrade rejecting reception of a new session before upgrading, and notifying the client by sending an upgrade message to the client; and at the access device After the session processing is completed, sending a processing completion message to the access device. Upgrade.
  • the upgrade protection module includes:
  • a message sending unit configured to send the upgrade message to the client, and refuse to receive a new session
  • the session detecting unit is configured to detect whether the session is processed, and send a processing completion message to perform the upgrade when the detection session processing is completed.
  • the upgrade protection module further includes:
  • the chain breaking sending unit is configured to receive the processing completion message, and send a broken link message to the client and the server.
  • the upgrade protection module further includes:
  • an upgrade startup unit configured to: when receiving the feedback message of the client and the server, shut down the access device and perform an upgrade.
  • the message sending unit includes:
  • the end notification component is used to send an upgrade completion message to the client and server to notify the end of the upgrade.
  • the method and device for upgrading and protecting an access device in the online charging system of the present invention sending an upgrade message to the client before the access device is upgraded, rejecting the new session reception; and detecting the access device, determining that the session processing is completed,
  • the upgrade can be performed in the upgrade process of the access device, which will not cause information loss and improve the reliability of the online charging system.
  • FIG. 1 is a schematic structural view of an apparatus according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a device for reducing a call loss module according to an embodiment of the present invention
  • FIG. 3 is another schematic structural diagram of a device for reducing a call loss module according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of another apparatus according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of an upgrade protection module of a device according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a server protection module of a device according to an embodiment of the present invention; Schematic diagram of the steps of the method;
  • FIG. 9 is a schematic flow chart of steps of a method according to another embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a system according to another embodiment of the present invention.
  • FIG. 11 is another schematic structural diagram of a system according to another embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a system for reducing call loss according to another embodiment of the present invention
  • FIG. 13 is a schematic structural diagram of a system for managing a link of a system according to another embodiment of the present invention
  • FIG. 14 is another embodiment of the present invention
  • FIG. 15 is a schematic structural diagram of an upgrade protection module of a system according to another embodiment of the present invention
  • FIG. 16 is an upgrade of an access device of a system according to another embodiment of the present invention. Schematic diagram of the process flow in protection;
  • FIG. 17 is a schematic diagram of a processing flow of a client in an upgrade protection system according to another embodiment of the present invention.
  • FIG. 18 is a schematic structural diagram of a server protection module of a system according to another embodiment of the present invention
  • FIG. 19 is a schematic diagram of a processing flow of a server of a system in a restart protection according to another embodiment of the present invention
  • FIG. 20 is a schematic diagram of a processing flow of an access device of a system in a restart protection according to another embodiment of the present invention.
  • 21 is a schematic diagram of a processing flow of a client in a system in a restart protection according to another embodiment of the present invention.
  • 22 is a schematic flow chart showing the steps of a method according to another embodiment of the present invention.
  • Figure 24 is a flow chart showing still another step of the method according to another embodiment of the present invention. detailed description
  • the present invention connects a standalone access device between a client and a server of the OCS.
  • the access device controls the application layer session and maintains the link between it and the server.
  • the client (service control node) controls the business logic and maintains the link between it and the access device.
  • the above-mentioned client and the access device can use a custom message interface for connection communication; the access device and the OCS server can use the Diameter extended protocol interface for connection communication.
  • the access device establishes a physical connection with the server. After the capability exchange (CE, Capabilities-Exchange) is performed, the application layer link is established. After the link is stabilized, the client is notified to send the credit control (CC, Credit Control) Message, to avoid call loss caused by the link is not ready.
  • CE Capabilities-Exchange
  • the access device may dynamically adjust the message distribution policy according to the load condition of the server (multiple servers) to avoid message congestion caused by the server being too busy.
  • the access device can also detect the link through the Device-Watchdog message and find that the link is immediately notified to the client to prevent the message from being unreachable.
  • the access device may also resend the message after detecting the response timeout to avoid call loss.
  • the access device may notify the client to correct the message sending policy according to the reason of the DP, and avoid the call loss caused by the server being too busy or restarting.
  • DP Disconnect-Peer
  • the access device reduces call loss by performing session management such as load balancing management of the session, and performing link management such as emergency management, link configuration, and detection on the link with the service end.
  • session management such as load balancing management of the session
  • link management such as emergency management, link configuration, and detection on the link with the service end.
  • an apparatus 30 for reducing call loss by online charging is provided.
  • the device is connected to the online charging client 20 and the server 40, and the device 30 includes: an internal communication module 31, and communicates with the client 20 to perform information interaction;
  • the call loss module 32 is lowered, receives the information transmitted by the internal communication module 31, identifies the session message therein to distinguish the session, and performs session management;
  • the external communication module 33 is connected to the reduced call loss module 32 and the server 40 for information interaction.
  • the communication between the internal communication module 31 and the client 20 described above may be performed according to a custom protocol, which may be formulated according to specific needs.
  • the reduced call loss module 32 can communicate with the client 20 through the internal communication module 31 to receive the information transmitted by the client 20.
  • the reduced call loss module 32 can identify and manage session messages to generate session identifiers.
  • the above information may include a session message, an event message, a heartbeat message, an upgrade message, a broken link message, and the like.
  • the above session management may include load balancing, etc., and separate the business logic management from the session management to reduce the call loss.
  • the external communication module 33 can be connected to reduce the call loss module 32 and the server 40 so that the two can exchange information.
  • the external communication module 33 and the server 40 can communicate through the Diameter protocol.
  • the reduced call loss module 32 includes a session identification unit 321 and a load balancing unit 322.
  • the session identification unit 321 can identify the session message to generate a session identifier, and distinguish the session;
  • the load balancing unit 322 can detect the service load status of the server 40, and perform session allocation according to the service load condition; This can include traffic, and response time, and/or timeouts.
  • the session identification unit 321 identifies the received session message, generates a session identifier, and ensures the integrity and uniqueness of the session.
  • the load balancing unit 322 can detect the traffic load condition of the server 40 to which it is connected, and allocate the session according to the traffic load condition. In this way, the new session can be preferentially assigned to the service load light service.
  • the service traffic may be the communication traffic of the device 30 and the server 40 for reducing the call loss by the online charging; the response time may be a response time to the session request; the timeout number may be the number of times of responding to the session request, and the like.
  • the service-loaded server 40 may be a server 40 that has less communication traffic with the online charging reduction call loss device, less response time to the session request, and/or less response timeout for the session request.
  • the load balancing unit 322 can send the service group packet information in the session to the server 40 with the best load condition through the detection and selection of the server 40, thereby ensuring the session quality and reducing the call loss rate. To ensure the integrity of the above session, the service group package information of the same session can only be sent to the same server 40 for processing.
  • the above selection of the server 40 can also be determined by the client 20.
  • the client 20 can select the server 40 through load balancing determined by a specific service. For example, the client 20 can select the server 40 for service processing according to the type of the telephone number.
  • the reduced call loss module 32 further includes a link management sub-module 325 for detecting and managing the link, and maintaining the link through the maintenance of the link.
  • the link management sub-module 325 includes an emergency process unit 323 and/or a dynamic link unit 324.
  • the emergency process unit 323 can check and process the link, and perform timeout retransmission, busy notification, and/or in session transmission. Or active/standby switchover.
  • the emergency process unit 323 can perform the emergency process specified by the Diameter protocol.
  • the timeout retransmission may be an extension of the retransmission mode on the Diameter protocol, including a retransmission mode such as the original link retransmission and the same function link retransmission to implement session integrity; the emergency process unit 323 may notify the client.
  • the client 20 adjusts the timeout period of the session to prevent the service group packet information of the session from being dropped due to the timeout.
  • the above notification (internal message) to the client 20 can be performed by sending a Capabilities-Exchange-Request (CER) message.
  • CER Capabilities-Exchange-Request
  • the above busy notification is that when the return result of the server 40 is busy, the OCS replacement can be performed, and when the busy notification ends, the automatic rewind is performed.
  • the above-mentioned active/standby switchover is to divide the server 40 of the same function into groups, and mutually Active and standby.
  • the communication between the emergency process unit 323 and the server 40 may be a device monitoring request/device monitoring response (DWR/DWA, Device-Watchdog-Request/Device-Watchdog- Answer) process that is performed multiple times during link establishment. After that, the application layer message is allowed to be sent to prevent the link from being out of synchronization with the specific service process, and the call loss rate is reduced. This can be about 3 times.
  • DWR/DWA Device-Watchdog-Request/Device-Watchdog- Answer
  • the dynamic link unit 324 described above modifies the configuration and updates the link, allowing dynamic client 20 or server 40 replacement.
  • the dynamic link unit 324 can perform configuration modification after the dynamic link is added or removed.
  • This configuration modification includes related information and configuration modification of the Diameter protocol related information.
  • the link can be updated, and then a message is sent to the client 20 and the server 40 to inform the two to resume communication.
  • the message sent to the client 20 may be a quasi-message message; the message sent to the server 40 may be a CER message.
  • the online charging reduction call loss device 30 further includes an upgrade protection module 34 for information protection in the device 30 upgrade; rejecting a new session before upgrading. Receiving, and performing the upgrade of the above device 30 after processing the completion message.
  • the above upgrade protection module 34 includes a message transmitting unit 341, a session detecting unit 342, a broken link transmitting unit 343, and an upgrade starting unit 344.
  • the message sending unit 341 sends an upgrade message to the client 20, and refuses to receive a new session.
  • the session detecting unit 342 detects whether the session is processed, and sends a processing completion message.
  • the link sending unit 343 receives the processing completion message. Sending the broken link message to the client 20 and the server 40; the upgrade starting unit 344 receives the feedback message from the client 20 and the server, and closes the device 30 to perform the upgrade.
  • the message sending unit 341 sends an upgrade message to the client 20, notifying the client 20 that it will refuse to receive a new session; the client 20 will search for another network element through heartbeat detection (online charging)
  • the device 30 for reducing the call loss communicates.
  • the session detecting unit 342 detects whether the session in the device 30 is processed; if the process is not completed, the process may continue; if the process is completed, the chain disconnecting unit 343 will send a disconnect message (DPR, Disconnect-Peer-Request) to The client 20 and the server 40 are upgraded.
  • the client 20 continues to send an unprocessed session to the device 30 when the session requiring the upgrade device 30 is not processed, until the disconnection message sent by the device 30 is received; meanwhile, the client 20 can place a new session.
  • the upgrade starting unit 344 closes the device 30 and performs upgrade to prevent information loss during the upgrade process.
  • the end notification component 3410 of the above-described message transmitting unit 341 can transmit an upgrade end message to the client 20 to resume communication.
  • the device 30 for reducing the call loss in the online charging further includes a server protection module 35, configured to protect information in the restart of the server 40, and detect whether there is a backup server. 40 performs service switching, which can control the reception of new sessions before restarting.
  • the server protection module 35 may include a receiving and detecting unit 351, a second sending unit 352, a second detecting unit 353, and a link establishing unit 354.
  • the receiving and detecting unit 351 receives the disconnect sent by the server 40. a chain message (DPR), and detecting whether there is a backup server 40; the second sending unit 352, sending the server 40 to restart the message to the client 20, refusing to receive a new session; the second detecting unit 353, detecting whether the session is processed Upon completion, the processing completion message is sent; the link establishing unit 354 receives the server 40 link establishment message, re-establishes a link with the server 40, and sends a message to the client 20 to restore the new session.
  • DPR chain message
  • the receiving and detecting unit 351 receives the broken link message (DPR) sent by the server 40, and detects whether there is a backup server 40.
  • the device 30 can directly switch the service to the standby server 40.
  • the second sending unit 352 sends a server 40 to restart the message to the client 20 to reject the new session.
  • the second detecting unit 353 detects whether the session in the device 30 is processed and sent. Processing completion message; if If the processing is not completed, the receiving and detecting unit 351 continues to detect whether there is a standby server 40. If the processing is completed, the second detecting unit 353 will send a DPA message to the server 40, and the monthly server 40 receives the DPA message. Restart after the DPA message to prevent loss of information during the restart process.
  • the server 40 will send a link-building message to the device 30 after the restart is completed.
  • the link establishing unit 354 After receiving the link establishment message, the link establishing unit 354 sends a CER message to the server 40, and the server 40 returns a Capabilities Exchange Answer (CEA) message; then, the link establishing unit 354 redirects The server 40 sends a DWR message, and the server 40 returns a DWA message; after three DWR/DWA processes are continued, a link is established. Further, the link establishing unit 354 will send a message to restore the new session to the client 20 to resume the processing of the new session.
  • CEA Capabilities Exchange Answer
  • the present invention provides a method for reducing call loss by online charging according to another embodiment, which is applied to a client that includes service logic management, an access device that performs session management, and an online server that performs charging management.
  • the method includes:
  • Step S21 The access device receives the information sent by the client.
  • Step S22 Identify the session message in the received information to distinguish the session and perform session management.
  • Step S23 The access device sends the identifier and the managed session message to the server.
  • the client can load and control the business logic to group and identify the service information; the client can load at least one or more business logics, control the actual business process, and complete the deduction and authentication. And other business functions; and each business logic information group package, identification (allocating an identification code for each service) is differentiated and sent to the access device.
  • the client can also manage its link with the access device; the client can customize the internal communication mechanism, filter the unloaded service, encrypt the specific service information (assign the password to the information), and detect the link activity status. ( ⁇ Use heartbeat detection).
  • the access device may identify and manage the session message. Generate a session ID.
  • the above information may include a session message or the like.
  • the above session management may include load balancing, etc., and separate the business logic management from the session management to reduce the call loss.
  • the foregoing load balancing means that the access device can allocate a session to the corresponding server according to the service load condition by detecting the service load condition of the server (multiple servers) to which it is connected. This allows new session messages to be prioritized for servers with light traffic.
  • the service-loaded server may be a server that has less communication traffic with the access device, has a shorter response time to the session request, and/or has fewer response times to the session request.
  • the access device can send the service group packet information in the session to the server with the best load condition for processing by detecting and selecting the server, thereby ensuring the quality of the session and reducing the call loss rate. To ensure the integrity of the above session, the service group packet information of the same session can only be sent to the same server for processing.
  • the access device sends the session after the load balancing process to the server to perform the charging process.
  • the method before step S23, the method further includes: Step S24: detecting a link and maintaining management.
  • the access device may also detect and maintain the link between the access device and the server; the detection and maintenance management of the link includes emergency management, link configuration, and detection, etc., to reduce the call. loss.
  • the access device can perform an emergency process specified by the Diameter protocol.
  • the timeout retransmission may be an extension of the retransmission mode on the Diameter protocol, including retransmission mode such as the original link retransmission and the same function link retransmission, to implement session integrity; the access device may notify the client. Enables the client to properly adjust the timeout period of the session to prevent the service group packet information of the session from being dropped due to timeout.
  • the above notification to the client can be performed by sending a CER message.
  • the above busy notification is that when the return result of the server is busy, the OCS replacement can be performed, and when the busy notification ends, Automatically rewind.
  • the above-mentioned active/standby switchover is to divide the server terminals of the same function into one group, and they can mutually serve each other.
  • the communication between the access device and the server may be performed multiple times when the link is established.
  • application layer messages are allowed to be sent to prevent the link from being out of synchronization with the specific service process, and the call loss rate is reduced. This can be about 3 times.
  • the above link configuration and detection means that the access device can modify the configuration and update the link, allowing dynamic client or server replacement.
  • the access device can perform configuration modification after the dynamic link is increased or decreased.
  • This configuration modification includes related information and configuration modification of the Diameter protocol related information.
  • the link can be updated, and then a message is sent to the client and the server to notify the two to resume communication.
  • the message sent to the client may be a quasi-message message; the message sent to the server may be a CER message.
  • the present invention provides a system for online charging reduction call loss, which includes an online charging client 20 and a server 40, and an access device 50 for session control;
  • the terminal 20 controls and manages the service logic.
  • the access device 50 is connected to the client 20 and the server 40 to exchange information, and receives the information transmitted by the client 20, and identifies the session message to distinguish the session. And performing session management; the server 40 receives the session message and performs charging management.
  • the access device 50 described above can handle link maintenance, session control, and interface conversion.
  • the online charging client 20 and the access device 50 can use a custom internal message interface, which can be physically connected.
  • the client 20 can be any service control client 20 that needs to access the server 40 for online charging processing.
  • a plurality of the access device 50 and the server 40 may be configured, and the number of the clients 20 may be determined according to the maximum load of the access device 50 and the server 40.
  • the access device 50 can separately manage the service logic control and the session maintenance, and protect the service message security through mechanisms such as device redundancy, dynamic load feedback, timeout retransmission, link abnormality, and busy notification.
  • the client 20 may include a service logic control module 21 and a first communication module 22; the service logic control module 21 loads and controls service logic to group service information.
  • the first communication module 22 is connected to the service logic control module 21 and the access device 50 to perform information interaction.
  • the foregoing business logic control module 21 is configured to load at least one or more business logics, control an actual business process, and complete business functions such as deduction and authentication; and group and identify each business logic information group (one for each service) The identification code is differentiated and sent to the first communication module 22.
  • the first communication module 22 can manage the link between the client 20 and the access device 50; when there are multiple access devices 50, the redundancy of the multiple access device 50 can be implemented, and the access device 50 Communication between.
  • the first communication module 22 can customize the internal communication mechanism, filter the non-loading service, encrypt the specific service information (assign the password to the information), and detect the link activity status ( ⁇ intention ⁇ ).
  • the access device 50 includes an internal communication module 51, a reduced call loss module 52, and an external communication module 53.
  • the internal communication module 51 is in communication with the first communication module 22 of the client 20 to perform information exchange;
  • the module 52 receives the information transmitted by the internal communication module 51, identifies the session message to generate a session identifier, and performs session management.
  • the external communication module 53 is connected to the reduced call loss module 52 and the server 40 respectively. , for information interaction.
  • the reduced call loss module 52 includes a session identification unit 521, a load balancing unit 522, and a link management submodule 525.
  • the session identification unit 521 identifies a session message to generate a session identifier, and distinguishes the session;
  • the equalization unit 522 detects the service load condition of the server 40, and performs session allocation according to the service load condition; the service load situation includes service traffic, response time, and/or timeout number; the link management submodule 525 includes an emergency process.
  • the access device 50 further includes an upgrade protection module 54 for protecting the information in the upgrade of the access device 50; rejecting the reception of the new session before the upgrade, and After the completion message is processed, the upgrade of the access device 50 described above is performed.
  • the upgrade protection module 54 includes a message sending unit 541, a session detecting unit 542, a chain disconnect sending unit 543, and an upgrade starting unit 544, as shown in FIG.
  • the processing flow of the access device 50 mainly includes the following steps:
  • Step A Send an upgrade message to the client 20.
  • the upgrade message is sent by the message sending unit 541 to the client 20 first, informing the client 20 that it will refuse to receive the new session.
  • Step B Check if there is an unprocessed session.
  • the session detecting unit 542 performs processing on the session in the access device 50; if the processing is not completed, proceeds to step B1; otherwise, proceeds to step B2.
  • Step Bl the access device 50 can continue the session processing until the session processing is completed.
  • Step B2 Send a DPR message to the client 20 and the server 40 to perform an upgrade.
  • the disconnection sending unit 543 sends the DPR message to the client 20 and the server, disconnects from the client 20 and the server, and initiates the upgrade by the upgrade starting unit 544.
  • Step C Send an upgrade end message to the client 20.
  • the end notification component 5410 of the above-described message transmitting unit 541 transmits an upgrade end message to the client 20 to notify the end of the upgrade of the access device 50.
  • the processing flow of the client 20 described above, as shown in FIG. 17, mainly includes the following steps:
  • Step D Receive an upgrade message sent by the access device 50, and use the heartbeat detection to find another Heartbeat access device 50.
  • Step E Determine whether the received session is a new session, and if yes, proceed to step E1; otherwise, proceed to step E2.
  • Step E1 Send the session to the found access device 50 for processing.
  • Step E2 Send the session to the access device that needs to be upgraded 50 to continue processing.
  • Step F determining whether to receive the DPR message sent by the access device 50; if yes, proceed to step F1; otherwise, proceed to step F2.
  • Step Fl Disconnect the link of the access device 50 to be upgraded, return a DPA message, and perform step Fl l.
  • Step F11 the session is sent to the sought access device 50 for processing.
  • Step F2 Determine whether an upgrade end message is received, and if yes, perform step G; otherwise, return to step Fl l.
  • Step G Returning the feedback message, and reverting to the upgraded access device 50 for communication.
  • the access device 50 further includes a server protection module 55, which is used for information protection in the restart of the server 40, and detects whether the backup server 40 performs service switching. The reception of new sessions can be controlled before restarting.
  • the server protection module 55 can include a receiving and detecting unit 551, a second transmitting unit 552, a second detecting unit 553, and a link establishing unit 554, as shown in FIG.
  • the processing flow of the server 40 mainly includes the following steps:
  • Step a When restarting, send a DPR message to the access device 50; the cause of the DPR message may be written as Rebooting.
  • Step b Receive a DPA message sent by the access device 50, and restart.
  • Step c Receive a CER message sent by the access device 50, and send a CEA message to the access device 50.
  • Step d Receive three DWR messages sent by the access device 50, send three DWA messages to the access device 50, and establish a link with the access device 50.
  • the processing flow of the access device 50 mainly includes the following steps:
  • Step e The access device 50 receives the DPR message sent by the server 40.
  • the DPR message transmitted by the server 40 is received by the above receiving and detecting unit 551.
  • Step f Determine whether there is a spare server 40; if yes, perform step fl; otherwise, proceed to step .
  • the receiving and detecting unit 551 After receiving the DPR message, the receiving and detecting unit 551 detects whether the access device 50 is connected to the standby server 40.
  • Step fl sending a server restart message to the client 20, refusing to receive a new session.
  • the server restart message is sent by the second sending unit 552 to the client 20, and the client 20 is notified to reject the new session.
  • Steps switch to the alternate server 40 for processing.
  • Step g Detect whether there is a session unprocessed; if yes, return to step f; otherwise, go to step gl.
  • the second detecting unit 553 detects whether there is an unprocessed session in the access device 50.
  • Step gl Send a DPA message to the server 40, so that the server 40 performs step 13.
  • Step h The access device 50 sends a CER message to the server 40. If the server 40 restarts, step c is performed, and the access device 50 can receive the CEA message returned by the server 40.
  • the access device 50 transmits a CER message to the server 40 via the link establishing unit 554 to confirm the communication capability.
  • Step i The access device 50 sends three DWR messages to the server 40, and receives three DWA messages returned by the server 40, establishes a link with the server 40, and sends a recovery message to the client.
  • the terminal 20 resumes receiving a new session.
  • the access device 50 establishes a link with the server 40 through the link establishing unit 554 described above, and notifies the client 20 to resume new session reception.
  • the processing flow of the client 20, as shown in FIG. 21, mainly includes the following steps:
  • Step j Receive a server restart message sent by the access device 50, and refuse to receive a new session.
  • Step k Process the incomplete session.
  • Step 1 Receive a recovery message sent by the access device 50, and resume receiving a new session.
  • the present invention provides a method for reducing call loss by online charging according to another embodiment, which is applied to a client that includes service logic management, an access device that performs session management, and an online server that performs charging management.
  • the above methods include:
  • Step S10 Control the business logic by using the client.
  • Step S11 Identify, by the access device, the session message in the client transmission information to distinguish the session and perform session management.
  • the client can load and control the business logic to group and identify the service information; the client can load at least one or more business logics, control the actual business process, and complete the deduction and authentication. And other business functions; and each business logic information group package, identification (allocating an identification code for each service) is differentiated and sent to the access device.
  • the client can also manage its link with the access device; the client can customize the internal communication mechanism, filter the unloaded service, encrypt the specific service information (assign the password to the information), and detect the link activity status. ( ⁇ Use heartbeat detection).
  • the access device may identify and manage the session message to generate a session identifier.
  • the above information may include a session message or the like.
  • the above session management may include load balancing, etc., and separate business logic management from session management to reduce call loss.
  • the access device can also detect and maintain the link between the access device and the server.
  • the detection and maintenance management of the link includes emergency management, link configuration, and detection.
  • the foregoing load balancing means that the access device can allocate a session to the corresponding server according to the service load condition by detecting the service load condition of the server (multiple server) to which it is connected. In this way, the new session message can be preferentially assigned to the server with light traffic load.
  • the service-loaded server may be a server that has less communication traffic with the access device, has a shorter response time to the session request, and/or has fewer response times to the session request.
  • the access device can send the service group packet information in the session to the server with the best load condition through the detection and selection of the server, thereby ensuring the session quality and reducing the call loss rate.
  • the service group package information of the same session can only be sent to the same server for processing.
  • the access device may also detect and maintain the link between the access device and the server; the detection and maintenance management of the link includes emergency management, link configuration, and detection, etc., to reduce call loss.
  • the access device can perform the emergency process specified by the Diameter protocol.
  • the timeout retransmission may be an extension of the retransmission mode on the Diameter protocol, including a retransmission mode such as the original link retransmission and the same function link retransmission to implement session integrity; the access device may notify the above client.
  • the above notification to the client can be performed by sending a CER message.
  • the above busy notification is that when the return result of the server is busy, the OCS replacement can be performed, and when the busy notification ends, the automatic rewind is performed.
  • the above-mentioned active/standby switchover is to divide the server terminals of the same function into one group, and they can be mutually active and standby.
  • the communication between the access device and the server may be performed after the DWR/DWA process is performed multiple times after the link is established, and the application layer message is allowed to be sent to prevent the link from being out of synchronization with the specific service process. Call loss rate. This can be about 3 times.
  • the above link configuration and detection means that the access device can modify the configuration and update the link, allowing dynamic client or server replacement.
  • the access device can perform configuration modification after the dynamic link is added or removed.
  • the configuration modification includes related information and configuration modification of the Diameter protocol related information.
  • the link can be updated, and then a message is sent to the client and the server to notify the two to resume communication.
  • the message sent to the client may be a quasi-message message; the message sent to the server may be a CER message.
  • step S10 may include:
  • Step S100 Perform selection of an access device by using a heartbeat detection of the client.
  • step S100 when there are multiple access devices, redundancy of the multiple access devices can be implemented, and the multiple access devices are selected by using the heartbeat detection mode.
  • step S11 may include:
  • Step S110 Perform upgrade protection by using the access device.
  • the foregoing upgrade protection process may be: first, the access device sends an upgrade message to the client, notifying the client that it will refuse to receive a new session; the client will search for another network through heartbeat detection.
  • the element access device
  • the access device that needs to be upgraded detects whether the session is processed. If the processing is not completed, the access device can continue processing; if the processing is completed, it will send a DPR message to the client and the server for upgrade.
  • the client does not process the session of the access device, the client continues to send the unprocessed session to the access device until the disconnection message sent by the access device is received; meanwhile, the client may send the new session.
  • the client may send the new session.
  • the access device sends an upgrade message to the client, notifying the client that it will refuse to receive a new session; the client will search for another network through heartbeat detection.
  • the element access device
  • the access device that needs to be upgraded detects whether the session is processed. If the processing is not completed, the access device can continue processing
  • the access device to be upgraded After receiving the feedback message (DPA) of the client pair and the server to the DPR message, the access device to be upgraded closes the access device to perform the upgrade to prevent information loss during the upgrade process. Finally, after the upgrade is completed, the upgraded access device can send an upgrade end message to the above client to restart communication.
  • DPA feedback message
  • step S11 may further include:
  • the server restart protection is performed by using the access device.
  • the server restart protection process may be: First, the server sends a broken link message to the access device before restarting.
  • the access device detects whether there is a backup server after receiving the broken link message sent by the server; when there is a backup server, the access device can directly switch the service to the standby server; when there is no standby server, the access device
  • the ingress device will send a server restart message to the above client to refuse to receive a new session; and the access device can detect whether the session is processed successfully, and if the processing is not completed, continue to detect whether there is a backup server; if the processing is completed, then A DPA message will be sent to the server, and the server will restart after receiving the DPA message to prevent information loss during the restart process.
  • the server will send a link-building message to the access device.
  • the access device After receiving the above-mentioned link-building message, the access device sends a CER message to the server, and the server returns a CEA message; then, the access device sends a DWR message to the server, and the server returns a DWA message; After three DWR/DWA processes, a link is established. Then, the access device will send a recovery message to the client to resume processing of the new session.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Abstract

A method and an apparatus for upgrade protection in the field of communications are disclosed by the present invention. The upgrade protection method can perform protection for the upgrade of the access device in an Online Charging System (OCS). The system includes: a client end for performing service logic management; the access device for performing session management; and a service end for performing charging management. The upgrade protection method involves the steps: sending an upgrade message to the client end to inform the client end that a new session is refused to accept; after accomplishing the processing for the session in the access device, sending a processing accomplishment message to perform the upgrade. Through the upgrade protection apparatus, information protection for the access device is performed, and the information loss due to the upgrade of the access device is avoided.

Description

升级保护方法及装置 技术领域  Upgrade protection method and device
本发明涉及到通讯领域, 特别涉及到一种在线计费系统中的升级保护 方法及装置。 背景技术  The present invention relates to the field of communications, and in particular, to an upgrade protection method and apparatus in an online charging system. Background technique
在线计费系统( OCS , Online Charging System )可用于实现在线计费, 提供预付费和实时帐户处理等功能。 现有的在线计费体系可将客户的话务 控制功能与计费功能相分离, 建立计费机制与会话 /服务控制的直接交互, 使计费能够参与到服务的使用过程中。 如此, 既可以利用独立计费的强大 能力以提供接近于准实时计费系统的灵活性, 又可以利用参与使用过程的 实时特性, 将欠费成本降到最低。  The Online Charging System (OCS) can be used to implement online charging, providing prepaid and real-time account processing. The existing online charging system can separate the customer's traffic control function from the charging function, and establish a direct interaction between the charging mechanism and the session/service control, so that the charging can participate in the use of the service. In this way, the power of independent billing can be utilized to provide flexibility close to the quasi-real-time billing system, and the real-time characteristics of the participating processes can be utilized to minimize the cost of arrears.
目前, 接入在线计费系统釆用的在线计费协议( OCP, Online Charging Protocol )通常以直径 ( Diameter )协议为基础。 Diameter基础协议为各种 认证、 授权和计费业务提供了安全、 可靠以及易于扩展的框架。 以此为基 础定义 Diameter应用, 只需要定义应用协议的应用标识、 参与通信的网络 功能实体以及相互通信的功能实体间的消息内容以及协议过程, 就可以完 全依赖 Diameter基础协议完成特定的接入和应用业务。  At present, the Online Charging Protocol (OCP) used for accessing the online charging system is usually based on the Diameter protocol. The Diameter base protocol provides a secure, reliable, and easily scalable framework for a wide range of authentication, authorization, and billing services. Defining the Diameter application based on this, only need to define the application identifier of the application protocol, the network function entity participating in the communication, and the message content and protocol process between the functional entities communicating with each other, and can completely rely on the Diameter base protocol to complete the specific access and Application business.
由于软件更新速度快, 因此需常对在线计费系统中的软件进行升级处 理。 在升级过程中, 进行升级的设备将不能使用, 需要事先通知其他设备。 如果升级时机不当 (比如设备中消息未处理完成), 将会造成消息的丟失, 使在线计费系统的可靠性降低。 发明内容 Due to the fast software update, it is often necessary to upgrade the software in the online billing system. During the upgrade process, the upgraded device will not be available and other devices need to be notified in advance. If the upgrade timing is improper (for example, the message in the device is not processed), the message will be lost and the reliability of the online charging system will be reduced. Summary of the invention
本发明的目的之一为提供一种升级保护方法及装置, 可提升在线计费 系统的可靠性。  One of the objects of the present invention is to provide an upgrade protection method and apparatus, which can improve the reliability of an online charging system.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种升级保护方法, 对在线计费系统中的接入设备的升级进行保护, 所述在线计费系统包括进行业务逻辑管理的客户端、 进行会话管理的接入 设备、 以及进行计费管理的服务端, 该方法包括:  An upgrade protection method for protecting an access device in an online charging system, where the online charging system includes a client that performs business logic management, an access device that performs session management, and performs charging management. Server, the method includes:
拒绝接收新会话, 并通过向所述客户端发送升级消息告知所述客户端; 在所述接入设备的会话处理完成后, 发送处理完成消息进行所述接入 设备的升级。  Refusing to receive a new session, and informing the client by sending an upgrade message to the client; after the session processing of the access device is completed, sending a processing completion message to perform an upgrade of the access device.
在所述发送处理完成消息进行升级之前, 该方法还包括:  Before the sending process completion message is upgraded, the method further includes:
检测接入设备中是否有未处理完的会话; 如果有, 则继续进行会话处 理, 直至会话处理完成; 否则, 发送处理完成消息进行升级。  Detect whether there is an unprocessed session in the access device; if yes, continue the session processing until the session processing is completed; otherwise, send a processing completion message to upgrade.
该方法还包括:  The method also includes:
根据所述处理完成消息, 发送断链消息至客户端和服务端。  According to the processing completion message, a broken link message is sent to the client and the server.
在发送断链消息至客户端和服务端后, 该方法还包括:  After sending the broken link message to the client and the server, the method further includes:
接收所述客户端和服务端的反馈消息, 关闭所述接入设备, 进行升级。 该方法还包括:  Receiving the feedback message of the client and the server, shutting down the access device, and performing an upgrade. The method also includes:
发送升级完成消息至客户端和服务端, 通知升级结束。  Send an upgrade completion message to the client and server to notify the end of the upgrade.
一种升级保护装置, 对在线计费系统中的接入设备的升级进行保护, 所述在线计费系统包括进行业务逻辑管理的客户端、 进行会话管理的接入 设备、 以及进行计费管理的服务端, 所述升级保护装置包括:  An upgrade protection device that protects an upgrade of an access device in an online charging system, where the online charging system includes a client that performs business logic management, an access device that performs session management, and performs charging management. The server, the upgrade protection device includes:
升级保护模块, 用于所述接入设备升级中的信息保护; 在升级前拒绝 新会话的接收, 并通过向所述客户端发送升级消息告知所述客户端; 并在 所述接入设备的会话处理完成后, 发送处理完成消息进行所述接入设备的 升级。 Upgrading a protection module for protecting information in the access device upgrade; rejecting reception of a new session before upgrading, and notifying the client by sending an upgrade message to the client; and at the access device After the session processing is completed, sending a processing completion message to the access device. Upgrade.
所述升级保护模块包括:  The upgrade protection module includes:
消息发送单元, 用于发送所述升级消息至所述客户端, 拒绝接收新会 话;  a message sending unit, configured to send the upgrade message to the client, and refuse to receive a new session;
会话检测单元, 用于检测会话是否处理完成, 并在检测会话处理完成 时, 发送处理完成消息, 进行升级。  The session detecting unit is configured to detect whether the session is processed, and send a processing completion message to perform the upgrade when the detection session processing is completed.
所述升级保护模块还包括:  The upgrade protection module further includes:
断链发送单元, 用于接收所述处理完成消息, 发送断链消息至所述客 户端以及服务端。  The chain breaking sending unit is configured to receive the processing completion message, and send a broken link message to the client and the server.
所述升级保护模块还包括:  The upgrade protection module further includes:
升级启动单元, 用于在接收到所述客户端以及服务端的反馈消息时, 关闭所述接入设备, 进行升级。  And an upgrade startup unit, configured to: when receiving the feedback message of the client and the server, shut down the access device and perform an upgrade.
所述消息发送单元包括:  The message sending unit includes:
结束通知组件, 用于发送升级完成消息至客户端和服务端, 通知升级 结束。  The end notification component is used to send an upgrade completion message to the client and server to notify the end of the upgrade.
本发明在线计费系统中接入设备的升级保护方法及装置, 通过接入设 备升级前发送升级消息至客户端, 拒绝新会话接收; 并对接入设备进行检 测, 确定其会话处理完成后, 方可进行升级; 使得在接入设备的升级过程 中, 不会造成信息丟失, 提升在线计费系统的可靠性。 附图说明  The method and device for upgrading and protecting an access device in the online charging system of the present invention, sending an upgrade message to the client before the access device is upgraded, rejecting the new session reception; and detecting the access device, determining that the session processing is completed, The upgrade can be performed in the upgrade process of the access device, which will not cause information loss and improve the reliability of the online charging system. DRAWINGS
图 1是本发明一实施例所述装置的结构示意图;  1 is a schematic structural view of an apparatus according to an embodiment of the present invention;
图 2是本发明一实施例所述装置降低呼损模块的结构示意图; 图 3是本发明一实施例所述装置降低呼损模块的另一结构示意图; 图 4是本发明一实施例所述装置链路管理子模块的结构示意图; 图 5是本发明一实施例所述装置的另一结构示意图; 图 6是本发明一实施例所述装置的升级保护模块的结构示意图; 图 7是本发明一实施例所述装置的服务端保护模块的结构示意图; 图 8是本发明另一实施例所述方法的步骤流程示意图; 2 is a schematic structural diagram of a device for reducing a call loss module according to an embodiment of the present invention; FIG. 3 is another schematic structural diagram of a device for reducing a call loss module according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of another apparatus according to an embodiment of the present invention; FIG. 6 is a schematic structural diagram of an upgrade protection module of a device according to an embodiment of the present invention; FIG. 7 is a schematic structural diagram of a server protection module of a device according to an embodiment of the present invention; Schematic diagram of the steps of the method;
图 9是本发明另一实施例的一实施方式中所述方法的步骤流程示意图; 图 10是本发明另一实施例所述系统的结构示意图;  9 is a schematic flow chart of steps of a method according to another embodiment of the present invention; FIG. 10 is a schematic structural diagram of a system according to another embodiment of the present invention;
图 11是本发明另一实施例所述系统的另一结构示意图;  11 is another schematic structural diagram of a system according to another embodiment of the present invention;
图 12是本发明另一实施例所述系统的降低呼损模块的结构示意图; 图 13是本发明另一实施例所述系统链路管理子模块的结构示意图; 图 14是本发明另一实施例所述系统的接入设备的结构示意图; 图 15是本发明另一实施例所述系统的升级保护模块的结构示意图; 图 16是本发明另一实施例所述系统的接入设备在升级保护中的处理流 程示意图;  FIG. 12 is a schematic structural diagram of a system for reducing call loss according to another embodiment of the present invention; FIG. 13 is a schematic structural diagram of a system for managing a link of a system according to another embodiment of the present invention; FIG. 14 is another embodiment of the present invention; FIG. 15 is a schematic structural diagram of an upgrade protection module of a system according to another embodiment of the present invention; FIG. 16 is an upgrade of an access device of a system according to another embodiment of the present invention; Schematic diagram of the process flow in protection;
图 17是本发明另一实施例所述系统的客户端在升级保护中的处理流程 示意图;  17 is a schematic diagram of a processing flow of a client in an upgrade protection system according to another embodiment of the present invention;
图 18是本发明另一实施例所述系统的服务端保护模块的结构示意图; 图 19是本发明另一实施例所述系统的服务端在重启保护中的处理流程 示意图;  18 is a schematic structural diagram of a server protection module of a system according to another embodiment of the present invention; FIG. 19 is a schematic diagram of a processing flow of a server of a system in a restart protection according to another embodiment of the present invention;
图 20是本发明另一实施例所述系统的接入设备在重启保护中的处理流 程示意图;  20 is a schematic diagram of a processing flow of an access device of a system in a restart protection according to another embodiment of the present invention;
图 21是本发明另一实施例所述系统的客户端在重启保护中的处理流程 示意图;  21 is a schematic diagram of a processing flow of a client in a system in a restart protection according to another embodiment of the present invention;
图 22是本发明另一实施例所述方法的步骤流程示意图;  22 is a schematic flow chart showing the steps of a method according to another embodiment of the present invention;
图 23是本发明另一实施例所述方法的另一步骤流程示意图;  23 is a schematic flow chart of another step of the method according to another embodiment of the present invention;
图 24是本发明另一实施例所述方法的又一步骤流程示意图。 具体实施方式 Figure 24 is a flow chart showing still another step of the method according to another embodiment of the present invention. detailed description
本发明通过将独立的接入设备连接至 OCS的客户端和服务端之间。 该 接入设备可对应用层会话进行控制以及对其与服务端之间的链路进行维 护。 该客户端 (业务控制节点)可对业务逻辑进行控制以及对其与接入设 备之间的链路进行维护。  The present invention connects a standalone access device between a client and a server of the OCS. The access device controls the application layer session and maintains the link between it and the server. The client (service control node) controls the business logic and maintains the link between it and the access device.
上述客户端与接入设备之间可釆用自定义消息接口进行连接通信; 该 接入设备与 OCS 的服务端之间可釆用 Diameter扩展协议接口进行连接通 讯。  The above-mentioned client and the access device can use a custom message interface for connection communication; the access device and the OCS server can use the Diameter extended protocol interface for connection communication.
上述接入设备与服务端之间先建立物理连接, 在进行能力交换(CE, Capabilities-Exchange )后, 再进行应用层链路建立, 在链路稳定后通知上 述客户端发送信用控制 (CC, Credit Control ) 消息, 避免链路未准备好造 成的呼叫损失。  The access device establishes a physical connection with the server. After the capability exchange (CE, Capabilities-Exchange) is performed, the application layer link is established. After the link is stabilized, the client is notified to send the credit control (CC, Credit Control) Message, to avoid call loss caused by the link is not ready.
上述接入设备在处理 CC消息的过程中,可根据上述服务端(多个服务 端) 负载情况, 动态调整消息的分发策略, 避免服务端过忙而造成消息拥 塞。  In the process of processing the CC message, the access device may dynamically adjust the message distribution policy according to the load condition of the server (multiple servers) to avoid message congestion caused by the server being too busy.
上述接入设备还可通过设备监视 ( Device-Watchdog ) 消息检测链路, 发现断链立即通知客户端, 避免消息发送不可达。  The access device can also detect the link through the Device-Watchdog message and find that the link is immediately notified to the client to prevent the message from being unreachable.
上述接入设备还可在检测到应答超时后, 对消息进行重发, 避免呼叫 损失。  The access device may also resend the message after detecting the response timeout to avoid call loss.
上述接入设备可在接收到 OCS的断链( DP, Disconnect-Peer )请求后, 根据 DP的原因,通知客户端修正消息发送的策略,避免因为服务端过忙或 者重启而造成呼损。  After receiving the OCS broken link (DP, Disconnect-Peer) request, the access device may notify the client to correct the message sending policy according to the reason of the DP, and avoid the call loss caused by the server being too busy or restarting.
上述接入设备通过对会话的负载均衡管理等会话管理, 以及对其与服 务端的链路进行应急管理、 链路配置以及检测等链路管理, 降低呼叫损失。  The access device reduces call loss by performing session management such as load balancing management of the session, and performing link management such as emergency management, link configuration, and detection on the link with the service end.
参照图 1 , 本发明一实施例提出的一种在线计费降低呼损的装置 30, 分别与在线计费的客户端 20以及服务端 40连接通信, 该装置 30包括: 内部通信模块 31 , 与该客户端 20连接通信, 进行信息交互; Referring to FIG. 1, an apparatus 30 for reducing call loss by online charging according to an embodiment of the present invention is provided. The device is connected to the online charging client 20 and the server 40, and the device 30 includes: an internal communication module 31, and communicates with the client 20 to perform information interaction;
降低呼损模块 32,接收该内部通信模块 31传送的信息,对其中的会话 消息进行标识以区分会话, 并进行会话管理;  The call loss module 32 is lowered, receives the information transmitted by the internal communication module 31, identifies the session message therein to distinguish the session, and performs session management;
外部通信模块 33 ,分别与该降低呼损模块 32以及服务端 40连接通信, 进行信息交互。  The external communication module 33 is connected to the reduced call loss module 32 and the server 40 for information interaction.
上述内部通信模块 31与上述客户端 20之间的通信, 可根据自定义协 议进行, 该自定义协议可根据具体需要进行制定。  The communication between the internal communication module 31 and the client 20 described above may be performed according to a custom protocol, which may be formulated according to specific needs.
上述降低呼损模块 32可通过内部通信模块 31与客户端 20进行通信, 接收该客户端 20传送的信息。 该降低呼损模块 32可对会话消息进行标识 和管理, 产生会话标识。 上述信息可包括会话消息、 事件信息、 心跳消息、 升级消息以及断链消息等。 上述会话管理可包括负载均衡等, 将业务逻辑 管理与会话管理分开进行, 以减少呼损。  The reduced call loss module 32 can communicate with the client 20 through the internal communication module 31 to receive the information transmitted by the client 20. The reduced call loss module 32 can identify and manage session messages to generate session identifiers. The above information may include a session message, an event message, a heartbeat message, an upgrade message, a broken link message, and the like. The above session management may include load balancing, etc., and separate the business logic management from the session management to reduce the call loss.
上述外部通信模块 33可连接降低呼损模块 32与服务端 40, 使得两者 可进行信息交互。 该外部通信模块 33与服务端 40之间, 可通过 Diameter 协议进行通信。  The external communication module 33 can be connected to reduce the call loss module 32 and the server 40 so that the two can exchange information. The external communication module 33 and the server 40 can communicate through the Diameter protocol.
参照图 2, 在本实施例的一实施方式中, 上述降低呼损模块 32包括会 话标识单元 321以及负载均衡单元 322。 该会话标识单元 321 , 可对会话消 息进行标识以产生会话标识, 区分会话; 该负载均衡单元 322, 可检测服务 端 40的业务负载情况, 并根据该业务负载情况进行会话分配; 该业务负载 情况可包括业务流量、 和响应时间、 和 /或超时次数。  Referring to FIG. 2, in an embodiment of the embodiment, the reduced call loss module 32 includes a session identification unit 321 and a load balancing unit 322. The session identification unit 321 can identify the session message to generate a session identifier, and distinguish the session; the load balancing unit 322 can detect the service load status of the server 40, and perform session allocation according to the service load condition; This can include traffic, and response time, and/or timeouts.
上述会话标识单元 321 对接收的会话消息进行标识, 产生会话标识, 确保会话的完整性和唯一性。  The session identification unit 321 identifies the received session message, generates a session identifier, and ensures the integrity and uniqueness of the session.
上述负载均衡单元 322可检测其所连接的服务端 40的业务负载情况, 根据业务负载情况分配会话。 如此可将新会话优先分配给业务负载轻的服 务端 40。 上述业务流量可以是在线计费降低呼损的装置 30与服务端 40的 通信流量; 该响应时间可以是对会话请求的响应时间; 该超时次数可以是 对会话请求响应的超时次数等。 该业务负载轻的服务端 40, 可以是其与在 线计费降低呼损的装置 30通信流量少、对会话请求响应时间短和 /或对会话 请求响应超时次数少的服务端 40。 该负载均衡单元 322可通过对服务端 40 的检测与选择, 将会话中的业务组包信息发送至负载情况最好的服务端 40 进行处理, 可确保会话质量, 降低呼损率。 为确保上述会话的完整性, 同 一会话的业务组包信息只可发往同一服务端 40进行处理。 The load balancing unit 322 can detect the traffic load condition of the server 40 to which it is connected, and allocate the session according to the traffic load condition. In this way, the new session can be preferentially assigned to the service load light service. Terminal 40. The service traffic may be the communication traffic of the device 30 and the server 40 for reducing the call loss by the online charging; the response time may be a response time to the session request; the timeout number may be the number of times of responding to the session request, and the like. The service-loaded server 40 may be a server 40 that has less communication traffic with the online charging reduction call loss device, less response time to the session request, and/or less response timeout for the session request. The load balancing unit 322 can send the service group packet information in the session to the server 40 with the best load condition through the detection and selection of the server 40, thereby ensuring the session quality and reducing the call loss rate. To ensure the integrity of the above session, the service group package information of the same session can only be sent to the same server 40 for processing.
上述对服务端 40的选择也可由客户端 20来决定。 该客户端 20可通过 由具体业务决定的负载均衡, 对服务端 40进行选择。 比如客户端 20可根 据电话号码类型选择服务端 40进行业务处理。  The above selection of the server 40 can also be determined by the client 20. The client 20 can select the server 40 through load balancing determined by a specific service. For example, the client 20 can select the server 40 for service processing according to the type of the telephone number.
参照图 3和图 4, 上述降低呼损模块 32还包括链路管理子模块 325 , 对链路进行检测管理, 通过对链路的维护以保持链路畅通。 其中, 链路管 理子模块 325包括应急流程单元 323和 /或动态链路单元 324; 应急流程单 元 323 , 可对链路进行检查以及处理, 进行会话传输中的超时重发、 遇忙通 知和 /或主备倒换。  Referring to FIG. 3 and FIG. 4, the reduced call loss module 32 further includes a link management sub-module 325 for detecting and managing the link, and maintaining the link through the maintenance of the link. The link management sub-module 325 includes an emergency process unit 323 and/or a dynamic link unit 324. The emergency process unit 323 can check and process the link, and perform timeout retransmission, busy notification, and/or in session transmission. Or active/standby switchover.
上述应急流程单元 323可进行 Diameter协议规定的应急流程。 上述超 时重发可以是在 Diameter协议上进行重发方式的扩展, 包括原有链路重发 和同功能链路重发等重发方式, 实现会话的完整性; 该应急流程单元 323 可通知客户端 20,使该客户端 20对会话的超时时间做适当调整, 防止因超 时而丟弃会话的业务组包信息。 上述对客户端 20的通知(内部消息) 可以 通过发送能力交互消息 (CER, Capabilities-Exchange-Request ) 消息进行。  The emergency process unit 323 can perform the emergency process specified by the Diameter protocol. The timeout retransmission may be an extension of the retransmission mode on the Diameter protocol, including a retransmission mode such as the original link retransmission and the same function link retransmission to implement session integrity; the emergency process unit 323 may notify the client. At the end 20, the client 20 adjusts the timeout period of the session to prevent the service group packet information of the session from being dropped due to the timeout. The above notification (internal message) to the client 20 can be performed by sending a Capabilities-Exchange-Request (CER) message.
上述遇忙通知是当服务端 40的返回结果为忙碌时, 可进行 OCS替换, 并当忙碌通知结束时, 自动倒回。  The above busy notification is that when the return result of the server 40 is busy, the OCS replacement can be performed, and when the busy notification ends, the automatic rewind is performed.
上述主备倒换是将同一功能的服务端 40分为一组, 相互之间可以互为 主备。 The above-mentioned active/standby switchover is to divide the server 40 of the same function into groups, and mutually Active and standby.
上述应急流程单元 323与服务端 40之间的通信, 可以是在链路建立时 进行多 次 的设备监视请求 /设备监视应答 ( DWR/DWA , Device-Watchdog-Request/ Device- Watchdog- Answer ) 流程后, 才允许发送 应用层消息, 防止链路与具体业务流程出现不同步的现象, 降低呼损率。 该多次可为 3次左右。  The communication between the emergency process unit 323 and the server 40 may be a device monitoring request/device monitoring response (DWR/DWA, Device-Watchdog-Request/Device-Watchdog- Answer) process that is performed multiple times during link establishment. After that, the application layer message is allowed to be sent to prevent the link from being out of synchronization with the specific service process, and the call loss rate is reduced. This can be about 3 times.
上述动态链路单元 324,修改配置以及更新链路, 允许进行动态的客户 端 20或者服务端 40的更换。  The dynamic link unit 324 described above modifies the configuration and updates the link, allowing dynamic client 20 or server 40 replacement.
上述动态链路单元 324可在进行动态链路的增减后, 进行配置修改。 该配置修改包括相关信息以及 Diameter协议相关信息的配置修改。 上述修 改完成后, 可进行链路的更新, 然后向客户端 20和服务端 40发送消息, 通知两者恢复通信。 该发送给客户端 20的消息可以是准发消息; 该发送给 服务端 40的消息可以是 CER消息。  The dynamic link unit 324 can perform configuration modification after the dynamic link is added or removed. This configuration modification includes related information and configuration modification of the Diameter protocol related information. After the above modification is completed, the link can be updated, and then a message is sent to the client 20 and the server 40 to inform the two to resume communication. The message sent to the client 20 may be a quasi-message message; the message sent to the server 40 may be a CER message.
参照图 5 , 在本实施例的另一实施方式中, 上述在线计费降低呼损的装 置 30还包括升级保护模块 34, 用于上述装置 30升级中的信息保护; 在升 级前拒绝新会话的接收, 并在处理完成消息后进行上述装置 30的升级。  Referring to FIG. 5, in another embodiment of the embodiment, the online charging reduction call loss device 30 further includes an upgrade protection module 34 for information protection in the device 30 upgrade; rejecting a new session before upgrading. Receiving, and performing the upgrade of the above device 30 after processing the completion message.
参照图 6, 上述升级保护模块 34包括消息发送单元 341、 会话检测单 元 342、 断链发送单元 343以及升级启动单元 344。 该消息发送单元 341 , 发送升级消息至上述客户端 20, 拒绝接收新会话; 该会话检测单元 342, 检测会话是否处理完成, 发送处理完成消息; 该断链发送单元 343 , 接收上 述处理完成消息, 发送断链消息至上述客户端 20以及服务端 40; 该升级启 动单元 344,接收上述客户端 20以及服务端的反馈消息,关闭上述装置 30, 进行升级。  Referring to FIG. 6, the above upgrade protection module 34 includes a message transmitting unit 341, a session detecting unit 342, a broken link transmitting unit 343, and an upgrade starting unit 344. The message sending unit 341 sends an upgrade message to the client 20, and refuses to receive a new session. The session detecting unit 342 detects whether the session is processed, and sends a processing completion message. The link sending unit 343 receives the processing completion message. Sending the broken link message to the client 20 and the server 40; the upgrade starting unit 344 receives the feedback message from the client 20 and the server, and closes the device 30 to perform the upgrade.
上述消息发送单元 341向客户端 20发送升级消息, 通知客户端 20其 将拒绝接收新会话; 客户端 20将通过心跳检测寻找另外的网元(在线计费 降低呼损的装置 30 )进行通信。 上述会话检测单元 342检测装置 30内的会 话是否处理完成; 如果处理未完成, 可继续进行处理; 如果处理完成, 上 述断链发送单元 343将发送断链消息 (DPR, Disconnect-Peer-Request )至 客户端 20和服务端 40, 进行升级。 上述客户端 20在需升级装置 30的会话 未处理完成时, 继续向该装置 30发送未处理完成的会话, 直到接收到该装 置 30发送的断链消息; 同时, 该客户端 20可将新会话发送至另外寻找的 网元。 上述升级启动单元 344接收客户端 20以及服务端 40对 DPR消息的 反馈消息(DPA, Disconnect-Peer- Answer )后, 关闭上述装置 30进行升级, 防止升级过程中的信息丟失。 在升级完成后, 上述消息发送单元 341 的结 束通知组件 3410可发送升级结束消息至客户端 20, 重新开始通信。 The message sending unit 341 sends an upgrade message to the client 20, notifying the client 20 that it will refuse to receive a new session; the client 20 will search for another network element through heartbeat detection (online charging) The device 30 for reducing the call loss communicates. The session detecting unit 342 detects whether the session in the device 30 is processed; if the process is not completed, the process may continue; if the process is completed, the chain disconnecting unit 343 will send a disconnect message (DPR, Disconnect-Peer-Request) to The client 20 and the server 40 are upgraded. The client 20 continues to send an unprocessed session to the device 30 when the session requiring the upgrade device 30 is not processed, until the disconnection message sent by the device 30 is received; meanwhile, the client 20 can place a new session. Send to another network element you are looking for. After receiving the feedback message (DPA, Disconnect-Peer- Answer) of the DPR message by the client 20 and the server 40, the upgrade starting unit 344 closes the device 30 and performs upgrade to prevent information loss during the upgrade process. After the upgrade is completed, the end notification component 3410 of the above-described message transmitting unit 341 can transmit an upgrade end message to the client 20 to resume communication.
参照图 5 , 在本实施例的另一实施方式中, 上述在线计费降低呼损的装 置 30还包括服务端保护模块 35 , 用于服务端 40重启中的信息保护, 检测 是否有备用服务端 40进行业务倒换, 可在重启前控制新会话的接收。  Referring to FIG. 5, in another embodiment of the present embodiment, the device 30 for reducing the call loss in the online charging further includes a server protection module 35, configured to protect information in the restart of the server 40, and detect whether there is a backup server. 40 performs service switching, which can control the reception of new sessions before restarting.
参照图 7 , 上述服务端保护模块 35可包括接收与检测单元 351、 第二 发送单元 352、 第二检测单元 353以及链路建立单元 354; 该接收与检测单 元 351 , 接收服务端 40发送的断链消息(DPR ), 并检测是否有备用服务端 40; 该第二发送单元 352, 将发送服务端 40重启消息至客户端 20, 拒绝接 收新会话; 该第二检测单元 353 , 检测会话是否处理完成, 发送处理完成消 息; 该链路建立单元 354, 接收服务端 40建链消息, 与服务端 40重新建立 链接, 并向客户端 20发送恢复新会话的消息。  Referring to FIG. 7, the server protection module 35 may include a receiving and detecting unit 351, a second sending unit 352, a second detecting unit 353, and a link establishing unit 354. The receiving and detecting unit 351 receives the disconnect sent by the server 40. a chain message (DPR), and detecting whether there is a backup server 40; the second sending unit 352, sending the server 40 to restart the message to the client 20, refusing to receive a new session; the second detecting unit 353, detecting whether the session is processed Upon completion, the processing completion message is sent; the link establishing unit 354 receives the server 40 link establishment message, re-establishes a link with the server 40, and sends a message to the client 20 to restore the new session.
上述接收与检测单元 351 , 接收服务端 40发送的断链消息( DPR ), 并 检测是否有备用服务端 40; 在有备用服务端 40时, 上述装置 30可将业务 直接倒换给备用服务端 40; 在没有备用服务端 40 时, 上述第二发送单元 352, 将发送服务端 40重启消息至客户端 20, 拒绝接收新会话; 第二检测 单元 353 , 检测装置 30内的会话是否处理完成, 发送处理完成消息; 如果 未处理完成, 则通过上述接收与检测单元 351 继续检测是否有备用服务端 40; 如果处理完成, 则该第二检测单元 353将向服务端 40发送 DPA消息, 该月良务端 40在接收到 DPA消息后重新启动, 防止重启过程中的信息丟失。 该服务端 40在重启完成后, 将向该装置 30发送建链消息。 The receiving and detecting unit 351 receives the broken link message (DPR) sent by the server 40, and detects whether there is a backup server 40. When the standby server 40 is present, the device 30 can directly switch the service to the standby server 40. When there is no standby server 40, the second sending unit 352 sends a server 40 to restart the message to the client 20 to reject the new session. The second detecting unit 353 detects whether the session in the device 30 is processed and sent. Processing completion message; if If the processing is not completed, the receiving and detecting unit 351 continues to detect whether there is a standby server 40. If the processing is completed, the second detecting unit 353 will send a DPA message to the server 40, and the monthly server 40 receives the DPA message. Restart after the DPA message to prevent loss of information during the restart process. The server 40 will send a link-building message to the device 30 after the restart is completed.
上述链路建立单元 354接收建链消息后, 将向该服务端 40发送 CER 消息, 该服务端 40 将返回能力交互应答(CEA , Capabilities Exchange Answer )消息; 然后, 该链路建立单元 354再向服务端 40发送 DWR消息, 该服务端 40返回 DWA消息; 持续三个 DWR/DWA过程后, 建立链接。 再 是, 该链路建立单元 354将发送恢复新会话的消息给该客户端 20, 恢复新 会话的处理。  After receiving the link establishment message, the link establishing unit 354 sends a CER message to the server 40, and the server 40 returns a Capabilities Exchange Answer (CEA) message; then, the link establishing unit 354 redirects The server 40 sends a DWR message, and the server 40 returns a DWA message; after three DWR/DWA processes are continued, a link is established. Further, the link establishing unit 354 will send a message to restore the new session to the client 20 to resume the processing of the new session.
参照图 8, 本发明提出另一实施例的一种在线计费降低呼损的方法,应 用于包括进行业务逻辑管理的客户端、 进行会话管理的接入设备以及进行 计费管理的服务端的在线计费系统中, 该方法包括:  Referring to FIG. 8, the present invention provides a method for reducing call loss by online charging according to another embodiment, which is applied to a client that includes service logic management, an access device that performs session management, and an online server that performs charging management. In the billing system, the method includes:
步骤 S21、 接入设备接收客户端发送的信息。  Step S21: The access device receives the information sent by the client.
步骤 S22、对所接收信息中的会话消息进行标识以区分会话, 并进行会 话管理。  Step S22: Identify the session message in the received information to distinguish the session and perform session management.
步骤 S23、 接入设备将标识以及管理后的会话消息发送至服务端。  Step S23: The access device sends the identifier and the managed session message to the server.
如上述步骤 S21 所述, 该客户端可加载以及控制业务逻辑, 对业务信 息进行组包和标识; 该客户端可加载至少一个或多个业务逻辑, 控制实际 业务流程, 完成扣费、 鉴权等业务功能; 并将各个业务逻辑信息组包、 标 识 (为每个业务分配一个标识码)加以区分后发给上述接入设备。 并且, 该客户端还可管理其与接入设备之间的链路; 该客户端可自定义内部通信 机制, 过滤非加载业务、 加密具体业务信息 (给信息分配密码)和检测链 路活动状态 (釆用心跳检测 )。  As described in the foregoing step S21, the client can load and control the business logic to group and identify the service information; the client can load at least one or more business logics, control the actual business process, and complete the deduction and authentication. And other business functions; and each business logic information group package, identification (allocating an identification code for each service) is differentiated and sent to the access device. Moreover, the client can also manage its link with the access device; the client can customize the internal communication mechanism, filter the unloaded service, encrypt the specific service information (assign the password to the information), and detect the link activity status. (釆Use heartbeat detection).
如上述步骤 S22所述, 上述接入设备可对会话消息进行标识和管理, 产生会话标识。 上述信息可包括会话消息等。 上述会话管理可包括负载均 衡等, 将业务逻辑管理与会话管理分开进行, 以减少呼损。 As described in the foregoing step S22, the access device may identify and manage the session message. Generate a session ID. The above information may include a session message or the like. The above session management may include load balancing, etc., and separate the business logic management from the session management to reduce the call loss.
上述负载均衡是指接入设备可通过检测其所连接的服务端 (多个服务 端) 的业务负载情况, 根据业务负载情况分配会话给相应服务端。 如此可 将新会话消息优先分配给业务负载轻的服务端。 该业务负载轻的服务端, 可以是其与接入设备通信流量少、 对会话请求响应时间短和 /或对会话请求 响应超时次数少的服务端。 该接入设备可通过对服务端的检测与选择, 将 会话中的业务组包信息发送至负载情况最好的服务端进行处理, 可确保会 话质量, 降低呼损率。 为确保上述会话的完整性, 同一会话的业务组包信 息只可发往同一服务端进行处理。  The foregoing load balancing means that the access device can allocate a session to the corresponding server according to the service load condition by detecting the service load condition of the server (multiple servers) to which it is connected. This allows new session messages to be prioritized for servers with light traffic. The service-loaded server may be a server that has less communication traffic with the access device, has a shorter response time to the session request, and/or has fewer response times to the session request. The access device can send the service group packet information in the session to the server with the best load condition for processing by detecting and selecting the server, thereby ensuring the quality of the session and reducing the call loss rate. To ensure the integrity of the above session, the service group packet information of the same session can only be sent to the same server for processing.
如上述步骤 S23 所述, 接入设备将经过负载均衡处理后的会话发送给 服务端, 进行计费处理。  As described in the foregoing step S23, the access device sends the session after the load balancing process to the server to perform the charging process.
参照图 9, 在本实施例的一实施方式中, 在步骤 S23之前还包括: 步骤 S24、 对链路进行检测以及维护管理。  Referring to FIG. 9, in an embodiment of the present embodiment, before step S23, the method further includes: Step S24: detecting a link and maintaining management.
如上述步骤 S24所述, 接入设备还可以对接入设备与服务端的链路进 行检测以及维护管理; 所述对链路的检测以及维护管理包括应急管理、 链 路配置以及检测等, 降低呼叫损失。  As described in the foregoing step S24, the access device may also detect and maintain the link between the access device and the server; the detection and maintenance management of the link includes emergency management, link configuration, and detection, etc., to reduce the call. loss.
应急管理是指接入设备可对其与服务端的链路进行检查以及处理, 进 行会话传输中的超时重发、 遇忙通知和 /或主备倒换。  Emergency management means that the access device can check and process the link with the server, and perform timeout retransmission, busy notification and/or active/standby switchover during session transmission.
该接入设备可进行 Diameter协议规定的应急流程。 上述超时重发可以 是在 Diameter协议上进行重发方式的扩展, 包括原有链路重发和同功能链 路重发等重发方式, 实现会话的完整性; 该接入设备可通知客户端, 使该 客户端对会话的超时时间做适当调整, 防止因超时而丟弃会话的业务组包 信息。 上述对客户端的通知可以通过发送 CER消息进行。 上述遇忙通知是 当服务端的返回结果为忙碌时, 可进行 OCS替换, 并当忙碌通知结束时, 自动倒回。 上述主备倒换是将同一功能的服务端分为一组, 相互之间可以 互为主备。 The access device can perform an emergency process specified by the Diameter protocol. The timeout retransmission may be an extension of the retransmission mode on the Diameter protocol, including retransmission mode such as the original link retransmission and the same function link retransmission, to implement session integrity; the access device may notify the client. Enables the client to properly adjust the timeout period of the session to prevent the service group packet information of the session from being dropped due to timeout. The above notification to the client can be performed by sending a CER message. The above busy notification is that when the return result of the server is busy, the OCS replacement can be performed, and when the busy notification ends, Automatically rewind. The above-mentioned active/standby switchover is to divide the server terminals of the same function into one group, and they can mutually serve each other.
上述接入设备与服务端之间的通信, 可以是在链路建立时进行多次的 The communication between the access device and the server may be performed multiple times when the link is established.
DWR/DWA 流程后, 才允许发送应用层消息, 防止链路与具体业务流程出 现不同步的现象, 降低呼损率。 该多次可为 3次左右。 After the DWR/DWA process, application layer messages are allowed to be sent to prevent the link from being out of synchronization with the specific service process, and the call loss rate is reduced. This can be about 3 times.
上述链路配置以及检测是指接入设备可修改配置以及更新链路, 允许 进行动态的客户端或者服务端的更换。 该接入设备可在进行动态链路的增 减后, 进行配置修改。 该配置修改包括相关信息以及 Diameter协议相关信 息的配置修改。 上述修改完成后, 可进行链路的更新, 然后向客户端和服 务端发送消息, 通知两者恢复通信。 该发送给客户端的消息可以是准发消 息; 该发送给服务端的消息可以是 CER消息。  The above link configuration and detection means that the access device can modify the configuration and update the link, allowing dynamic client or server replacement. The access device can perform configuration modification after the dynamic link is increased or decreased. This configuration modification includes related information and configuration modification of the Diameter protocol related information. After the above modification is completed, the link can be updated, and then a message is sent to the client and the server to notify the two to resume communication. The message sent to the client may be a quasi-message message; the message sent to the server may be a CER message.
参照图 10, 本发明提出另一实施例的一种在线计费降低呼损的系统, 其包括在线计费的客户端 20和服务端 40,还包括进行会话控制的接入设备 50; 上述客户端 20, 对业务逻辑进行控制管理; 上述接入设备 50, 分别与 客户端 20以及服务端 40连接通信, 交互信息; 接收该客户端 20传送的信 息, 对其中的会话消息进行标识以区分会话, 并进行会话管理; 上述服务 端 40 , 接收该会话消息并进行计费管理。  Referring to FIG. 10, the present invention provides a system for online charging reduction call loss, which includes an online charging client 20 and a server 40, and an access device 50 for session control; The terminal 20 controls and manages the service logic. The access device 50 is connected to the client 20 and the server 40 to exchange information, and receives the information transmitted by the client 20, and identifies the session message to distinguish the session. And performing session management; the server 40 receives the session message and performs charging management.
上述接入设备 50可处理链路维护、 会话控制和接口转换等。 在线计费 的客户端 20与接入设备 50可使用自定义的内部消息接口, 物理连接上可 分可合。 上述客户端 20可为任何需接入服务端 40进行在线计费处理的业 务控制客户端 20。 上述接入设备 50和服务端 40都可设置多个, 上述客户 端 20的数量可以根据该接入设备 50和服务端 40的最大负载而定。  The access device 50 described above can handle link maintenance, session control, and interface conversion. The online charging client 20 and the access device 50 can use a custom internal message interface, which can be physically connected. The client 20 can be any service control client 20 that needs to access the server 40 for online charging processing. A plurality of the access device 50 and the server 40 may be configured, and the number of the clients 20 may be determined according to the maximum load of the access device 50 and the server 40.
上述接入设备 50可将业务逻辑控制与会话维护分开管理, 通过设备冗 余、 动态负载反馈、 超时重发、 链路异常和遇忙通知等机制保护业务消息 安全。 参照图 11 , 在本实施例的一实施方式中, 上述客户端 20可包括业务逻 辑控制模块 21以及第一通信模块 22; 该业务逻辑控制模块 21 , 加载以及 控制业务逻辑, 对业务信息进行组包和标识; 该第一通信模块 22 , 分别与 上述业务逻辑控制模块 21以及接入设备 50连接通信, 进行信息交互。 The access device 50 can separately manage the service logic control and the session maintenance, and protect the service message security through mechanisms such as device redundancy, dynamic load feedback, timeout retransmission, link abnormality, and busy notification. Referring to FIG. 11, in an embodiment of the present embodiment, the client 20 may include a service logic control module 21 and a first communication module 22; the service logic control module 21 loads and controls service logic to group service information. The first communication module 22 is connected to the service logic control module 21 and the access device 50 to perform information interaction.
上述业务逻辑控制模块 21用于加载至少一个或多个业务逻辑, 可控制 实际业务流程, 完成扣费、 鉴权等业务功能; 并将各个业务逻辑信息组包、 标识(为每个业务分配一个标识码)加以区分后发给第一通信模块 22。  The foregoing business logic control module 21 is configured to load at least one or more business logics, control an actual business process, and complete business functions such as deduction and authentication; and group and identify each business logic information group (one for each service) The identification code is differentiated and sent to the first communication module 22.
上述第一通信模块 22可管理客户端 20与接入设备 50之间的链路; 在 有多个接入设备 50时, 可实现多接入设备 50的冗余, 以及与接入设备 50 之间的通信。 该第一通信模块 22中可自定义内部通信机制, 过滤非加载业 务、 加密具体业务信息 (给信息分配密码)和检测链路活动状态 (釆用心 ^则)。  The first communication module 22 can manage the link between the client 20 and the access device 50; when there are multiple access devices 50, the redundancy of the multiple access device 50 can be implemented, and the access device 50 Communication between. The first communication module 22 can customize the internal communication mechanism, filter the non-loading service, encrypt the specific service information (assign the password to the information), and detect the link activity status (釆 intention ^).
上述接入设备 50包括内部通信模块 51、 降低呼损模块 52以及外部通 信模块 53 ; 该内部通信模块 51 , 与上述客户端 20的第一通信模块 22连接 通信, 进行信息交互; 该降低呼损模块 52 , 接收上述内部通信模块 51传送 的信息, 对其中的会话消息进行标识以产生会话标识, 并进行会话管理; 该外部通信模块 53 ,分别与上述降低呼损模块 52以及服务端 40连接通信, 进行信息交互。  The access device 50 includes an internal communication module 51, a reduced call loss module 52, and an external communication module 53. The internal communication module 51 is in communication with the first communication module 22 of the client 20 to perform information exchange; The module 52 receives the information transmitted by the internal communication module 51, identifies the session message to generate a session identifier, and performs session management. The external communication module 53 is connected to the reduced call loss module 52 and the server 40 respectively. , for information interaction.
参照图 12和 13 , 上述降低呼损模块 52包括会话标识单元 521、 负载 均衡单元 522、 链路管理子模块 525; 该会话标识单元 521 , 对会话消息进 行标识产生会话标识, 区分会话; 该负载均衡单元 522 , 检测上述服务端 40的业务负载情况, 并根据该业务负载情况进行会话分配; 上述业务负载 情况包括业务流量、 响应时间和 /或超时次数; 该链路管理子模块 525包括 应急流程单元 523和 /或动态链路单元 524, 该应急流程单元 523 ,对链路进 行检查以及处理, 进行会话传输中的超时重发、 遇忙通知和 /或主备倒换; 该动态链路单元 524, 修改配置以及更新链路, 允许进行动态的客户端 20 或者服务端 40的更换。 12 and 13, the reduced call loss module 52 includes a session identification unit 521, a load balancing unit 522, and a link management submodule 525. The session identification unit 521 identifies a session message to generate a session identifier, and distinguishes the session; The equalization unit 522 detects the service load condition of the server 40, and performs session allocation according to the service load condition; the service load situation includes service traffic, response time, and/or timeout number; the link management submodule 525 includes an emergency process. The unit 523 and/or the dynamic link unit 524, the emergency process unit 523, checks and processes the link, performs timeout retransmission, busy notification, and/or active/standby switching in the session transmission; The dynamic link unit 524, modifying the configuration and updating the link, allows for dynamic client 20 or server 40 replacement.
参照图 14在本实施例的另一实施方式中, 上述接入设备 50还包括升 级保护模块 54, 用于上述接入设备 50升级中的信息保护; 在升级前拒绝新 会话的接收, 并在处理完成消息后进行上述接入设备 50的升级。 该升级保 护模块 54包括消息发送单元 541、 会话检测单元 542、 断链发送单元 543 以及升级启动单元 544, 如图 15所示。  Referring to FIG. 14 , in another embodiment of the present embodiment, the access device 50 further includes an upgrade protection module 54 for protecting the information in the upgrade of the access device 50; rejecting the reception of the new session before the upgrade, and After the completion message is processed, the upgrade of the access device 50 described above is performed. The upgrade protection module 54 includes a message sending unit 541, a session detecting unit 542, a chain disconnect sending unit 543, and an upgrade starting unit 544, as shown in FIG.
在升级过程中, 上述接入设备 50的处理流程, 如图 16所示, 主要包 括以下步骤:  During the upgrade process, the processing flow of the access device 50, as shown in FIG. 16, mainly includes the following steps:
步骤 A、 向客户端 20发送升级消息。  Step A: Send an upgrade message to the client 20.
先由上述消息发送单元 541向客户端 20发送升级消息, 通知该客户端 20其将拒绝接收新会话。  The upgrade message is sent by the message sending unit 541 to the client 20 first, informing the client 20 that it will refuse to receive the new session.
步骤 B、 检测是否有未处理完的会话。  Step B: Check if there is an unprocessed session.
上述会话检测单元 542对上述接入设备 50内的会话是否处理完成; 如 果处理未完成, 进行步骤 B1 ; 否则, 进行步骤 B2。  The session detecting unit 542 performs processing on the session in the access device 50; if the processing is not completed, proceeds to step B1; otherwise, proceeds to step B2.
步骤 Bl、 接入设备 50可继续进行会话处理, 直至会话处理完成。 步骤 B2、 发送 DPR消息至客户端 20和服务端 40, 进行升级。  Step Bl, the access device 50 can continue the session processing until the session processing is completed. Step B2: Send a DPR message to the client 20 and the server 40 to perform an upgrade.
由上述断链发送单元 543发送 DPR消息至客户端 20和服务端, 与该 客户端 20和服务端断开链接, 由上述升级启动单元 544启动升级。  The disconnection sending unit 543 sends the DPR message to the client 20 and the server, disconnects from the client 20 and the server, and initiates the upgrade by the upgrade starting unit 544.
步骤 C、 发送升级结束消息至客户端 20。  Step C: Send an upgrade end message to the client 20.
由上述消息发送单元 541的结束通知组件 5410发送升级结束消息至客 户端 20, 通知其接入设备 50的升级结束。  The end notification component 5410 of the above-described message transmitting unit 541 transmits an upgrade end message to the client 20 to notify the end of the upgrade of the access device 50.
在升级过程中, 上述客户端 20的处理流程, 如图 17所示, 主要包括 以下步骤:  During the upgrade process, the processing flow of the client 20 described above, as shown in FIG. 17, mainly includes the following steps:
步骤 D、 接收接入设备 50发送的升级消息, 利用心跳检测寻找另外有 心跳的接入设备 50。 Step D: Receive an upgrade message sent by the access device 50, and use the heartbeat detection to find another Heartbeat access device 50.
步骤 E、 判断所接收会话是否为新会话, 如是, 进行步骤 E1 ; 否则, 进行步骤 E2。  Step E: Determine whether the received session is a new session, and if yes, proceed to step E1; otherwise, proceed to step E2.
步骤 E1、 将会话发送给寻找的接入设备 50进行处理。  Step E1: Send the session to the found access device 50 for processing.
步骤 E2、 将会话发送给需升级的接入设备 50继续处理。  Step E2: Send the session to the access device that needs to be upgraded 50 to continue processing.
步骤 F、判断是否接收上述接入设备 50发送的 DPR消息; 如是进行步 骤 F1 , 否则进行步骤 F2。  Step F: determining whether to receive the DPR message sent by the access device 50; if yes, proceed to step F1; otherwise, proceed to step F2.
步骤 Fl、 断开与需升级的接入设备 50的链路, 返回 DPA消息, 进行 步骤 Fl l。  Step Fl. Disconnect the link of the access device 50 to be upgraded, return a DPA message, and perform step Fl l.
步骤 F11 , 将会话发送给寻找的接入设备 50进行处理。  Step F11, the session is sent to the sought access device 50 for processing.
步骤 F2、 判断是否接收到升级结束消息, 如是, 进行步骤 G; 否则返 回步骤 Fl l。  Step F2: Determine whether an upgrade end message is received, and if yes, perform step G; otherwise, return to step Fl l.
步骤 G、 返回反馈消息, 倒回升级完成的接入设备 50进行通信。  Step G: Returning the feedback message, and reverting to the upgraded access device 50 for communication.
参照图 14, 在本实施例的另一实施方式中, 上述接入设备 50还包括服 务端保护模块 55 , 用于服务端 40重启中的信息保护,检测是否有备用服务 端 40进行业务倒换, 可在重启前控制新会话的接收。 该服务端保护模块 55 可包括接收与检测单元 551、 第二发送单元 552、 第二检测单元 553以及链 路建立单元 554, 如图 18所示。  Referring to FIG. 14, in another embodiment of the present embodiment, the access device 50 further includes a server protection module 55, which is used for information protection in the restart of the server 40, and detects whether the backup server 40 performs service switching. The reception of new sessions can be controlled before restarting. The server protection module 55 can include a receiving and detecting unit 551, a second transmitting unit 552, a second detecting unit 553, and a link establishing unit 554, as shown in FIG.
在服务端 40重启的过程中,上述服务端 40的处理流程,如图 19所示, 主要包括以下步骤:  During the process of restarting the server 40, the processing flow of the server 40, as shown in FIG. 19, mainly includes the following steps:
步骤 a、 重启时, 向接入设备 50发送 DPR消息; 该 DPR消息的原因 ( Cause )可写为重启 ( Rebooting )。  Step a. When restarting, send a DPR message to the access device 50; the cause of the DPR message may be written as Rebooting.
步骤 b、 收到接入设备 50发送的 DPA消息, 进行重启。  Step b: Receive a DPA message sent by the access device 50, and restart.
步骤 c、 接收接入设备 50发送的 CER消息, 发送 CEA消息至该接入 设备 50。 步骤 d、接收接入设备 50发送的 3个 DWR消息,发送 3个 DWA消息 至该接入设备 50 , 与该接入设备 50建立链接。 Step c: Receive a CER message sent by the access device 50, and send a CEA message to the access device 50. Step d: Receive three DWR messages sent by the access device 50, send three DWA messages to the access device 50, and establish a link with the access device 50.
在服务端 40重启的过程中, 上述接入设备 50的处理流程, 如图 20所 示, 主要包括以下步骤:  During the process of restarting the server 40, the processing flow of the access device 50, as shown in FIG. 20, mainly includes the following steps:
步骤 e、 该接入设备 50接收上述服务端 40发送的 DPR消息。  Step e: The access device 50 receives the DPR message sent by the server 40.
由上述接收与检测单元 551接收服务端 40发送的 DPR消息。  The DPR message transmitted by the server 40 is received by the above receiving and detecting unit 551.
步骤 f、 判断是否有备用的服务端 40; 如是, 进行步骤 fl ; 否则, 进 行步骤 。  Step f. Determine whether there is a spare server 40; if yes, perform step fl; otherwise, proceed to step .
上述接收与检测单元 551在接收该 DPR消息后, 检测该接入设备 50 是否连接有备用的服务端 40。  After receiving the DPR message, the receiving and detecting unit 551 detects whether the access device 50 is connected to the standby server 40.
步骤 fl、 向客户端 20发送服务端重启消息, 拒绝接收新会话。  Step fl, sending a server restart message to the client 20, refusing to receive a new session.
由上述第二发送单元 552发送服务端重启消息至客户端 20, 通知客户 端 20拒绝接收新会话。  The server restart message is sent by the second sending unit 552 to the client 20, and the client 20 is notified to reject the new session.
步骤 、 倒换至备用的服务端 40进行处理。  Steps, switch to the alternate server 40 for processing.
步骤 g、 检测是否有会话未处理; 如是, 返回步骤 f; 否则, 进行步骤 gl。  Step g: Detect whether there is a session unprocessed; if yes, return to step f; otherwise, go to step gl.
由上述第二检测单元 553检测该接入设备 50 中是否还有未处理的会 话。  The second detecting unit 553 detects whether there is an unprocessed session in the access device 50.
步骤 gl、 发送 DPA消息至服务端 40, 使得服务端 40进行步骤13。 步骤 h、 该接入设备 50向服务端 40发送 CER消息, 如果服务端 40重 启完成将进行步骤 c, 该接入设备 50可接收服务端 40返回的 CEA消息。  Step gl: Send a DPA message to the server 40, so that the server 40 performs step 13. Step h: The access device 50 sends a CER message to the server 40. If the server 40 restarts, step c is performed, and the access device 50 can receive the CEA message returned by the server 40.
该接入设备 50通过上述链路建立单元 554向服务端 40发送 CER消息, 确认通信能力。  The access device 50 transmits a CER message to the server 40 via the link establishing unit 554 to confirm the communication capability.
步骤 i、 该接入设备 50向服务端 40发送 3个 DWR消息, 并接收服务 端 40返回的 3个 DWA消息, 与服务端 40建立链接; 并发送恢复消息至客 户端 20, 恢复接收新会话。 Step i: The access device 50 sends three DWR messages to the server 40, and receives three DWA messages returned by the server 40, establishes a link with the server 40, and sends a recovery message to the client. The terminal 20 resumes receiving a new session.
该接入设备 50通过上述链路建立单元 554与服务端 40建立链接, 并 通知客户端 20恢复新会话接收。  The access device 50 establishes a link with the server 40 through the link establishing unit 554 described above, and notifies the client 20 to resume new session reception.
在服务端 40重启的过程中,上述客户端 20的处理流程,如图 21所示, 主要包括以下步骤:  During the process of restarting the server 40, the processing flow of the client 20, as shown in FIG. 21, mainly includes the following steps:
步骤 j、 接收接入设备 50发送的服务端重启消息, 拒绝接收新会话。 步骤 k、 处理未完成会话。  Step j: Receive a server restart message sent by the access device 50, and refuse to receive a new session. Step k. Process the incomplete session.
步骤 1、 接收接入设备 50发送的恢复消息, 恢复接收新会话。  Step 1. Receive a recovery message sent by the access device 50, and resume receiving a new session.
参照图 22 , 本发明提出另一实施例的一种在线计费降低呼损的方法, 应用于包括进行业务逻辑管理的客户端、 进行会话管理的接入设备以及进 行计费管理的服务端的在线计费系统中, 上述方法包括:  Referring to FIG. 22, the present invention provides a method for reducing call loss by online charging according to another embodiment, which is applied to a client that includes service logic management, an access device that performs session management, and an online server that performs charging management. In the billing system, the above methods include:
步骤 S10、 通过客户端对业务逻辑进行控制。  Step S10: Control the business logic by using the client.
步骤 S11、通过接入设备对客户端传送信息中的会话消息进行标识以区 分会话, 并进行会话管理。  Step S11: Identify, by the access device, the session message in the client transmission information to distinguish the session and perform session management.
如上述步骤 S10所述, 该客户端可加载以及控制业务逻辑, 对业务信 息进行组包和标识; 该客户端可加载至少一个或多个业务逻辑, 控制实际 业务流程, 完成扣费、 鉴权等业务功能; 并将各个业务逻辑信息组包、 标 识 (为每个业务分配一个标识码)加以区分后发给上述接入设备。 并且, 该客户端还可管理其与接入设备之间的链路; 该客户端可自定义内部通信 机制, 过滤非加载业务、 加密具体业务信息 (给信息分配密码)和检测链 路活动状态 (釆用心跳检测 )。  As described in the foregoing step S10, the client can load and control the business logic to group and identify the service information; the client can load at least one or more business logics, control the actual business process, and complete the deduction and authentication. And other business functions; and each business logic information group package, identification (allocating an identification code for each service) is differentiated and sent to the access device. Moreover, the client can also manage its link with the access device; the client can customize the internal communication mechanism, filter the unloaded service, encrypt the specific service information (assign the password to the information), and detect the link activity status. (釆Use heartbeat detection).
如上述步骤 S11 所述, 上述接入设备可对会话消息进行标识和管理, 产生会话标识。 上述信息可包括会话消息等。 上述会话管理可包括负载均 衡等, 将业务逻辑管理与会话管理分开进行, 以减少呼损。  As described in the foregoing step S11, the access device may identify and manage the session message to generate a session identifier. The above information may include a session message or the like. The above session management may include load balancing, etc., and separate business logic management from session management to reduce call loss.
上述接入设备还可以对接入设备与服务端的链路进行检测以及维护管 理; 所述对链路的检测以及维护管理包括应急管理、 链路配置以及检测等。 上述负载均衡是指上述接入设备可通过检测其所连接的服务端 (多个 服务端) 的业务负载情况, 根据业务负载情况分配会话给相应服务端。 如 此可将新会话消息优先分配给业务负载轻的服务端。 该业务负载轻的服务 端, 可以是其与接入设备通信流量少、 对会话请求响应时间短和 /或对会话 请求响应超时次数少的服务端。 该接入设备可通过对服务端的检测与选择, 将会话中的业务组包信息发送至负载情况最好的服务端进行处理, 可确保 会话质量, 降低呼损率。 为确保上述会话的完整性, 同一会话的业务组包 信息只可发往同一服务端进行处理。 The access device can also detect and maintain the link between the access device and the server. The detection and maintenance management of the link includes emergency management, link configuration, and detection. The foregoing load balancing means that the access device can allocate a session to the corresponding server according to the service load condition by detecting the service load condition of the server (multiple server) to which it is connected. In this way, the new session message can be preferentially assigned to the server with light traffic load. The service-loaded server may be a server that has less communication traffic with the access device, has a shorter response time to the session request, and/or has fewer response times to the session request. The access device can send the service group packet information in the session to the server with the best load condition through the detection and selection of the server, thereby ensuring the session quality and reducing the call loss rate. To ensure the integrity of the above session, the service group package information of the same session can only be sent to the same server for processing.
上述接入设备还可以对接入设备与服务端的链路进行检测以及维护管 理; 所述对链路的检测以及维护管理包括应急管理、 链路配置以及检测等, 可降低呼叫损失。  The access device may also detect and maintain the link between the access device and the server; the detection and maintenance management of the link includes emergency management, link configuration, and detection, etc., to reduce call loss.
应急管理是指上述接入设备可对其与服务端的链路进行检查以及处 理, 进行会话传输中的超时重发、 遇忙通知和 /或主备倒换。  Emergency management means that the access device can check and process the link with the server, and perform timeout retransmission, busy notification, and/or active/standby switchover during session transmission.
该接入设备可进行 Diameter协议规定的应急流程。 上述超时重发可以 是在 Diameter协议上进行重发方式的扩展, 包括原有链路重发和同功能链 路重发等重发方式, 实现会话的完整性; 该接入设备可通知上述客户端, 使该客户端对会话的超时时间做适当调整, 防止因超时而丟弃会话的业务 组包信息。 上述对客户端的通知可以通过发送 CER消息进行。 上述遇忙通 知是当服务端的返回结果为忙碌时, 可进行 OCS替换, 并当忙碌通知结束 时, 自动倒回。 上述主备倒换是将同一功能的服务端分为一组, 相互之间 可以互为主备。  The access device can perform the emergency process specified by the Diameter protocol. The timeout retransmission may be an extension of the retransmission mode on the Diameter protocol, including a retransmission mode such as the original link retransmission and the same function link retransmission to implement session integrity; the access device may notify the above client. To enable the client to properly adjust the timeout period of the session to prevent the service group packet information of the session from being dropped due to timeout. The above notification to the client can be performed by sending a CER message. The above busy notification is that when the return result of the server is busy, the OCS replacement can be performed, and when the busy notification ends, the automatic rewind is performed. The above-mentioned active/standby switchover is to divide the server terminals of the same function into one group, and they can be mutually active and standby.
上述接入设备与服务端之间的通信, 可以是在链路建立时进行多次的 DWR/DWA 流程后, 才允许发送应用层消息, 防止链路与具体业务流程出 现不同步的现象, 降低呼损率。 该多次可为 3次左右。 上述链路配置以及检测是指上述接入设备可修改配置以及更新链路 , 允许进行动态的客户端或者服务端的更换。 该接入设备可在进行动态链路 的增减后, 进行配置修改。 该配置修改包括相关信息以及 Diameter协议相 关信息的配置修改。 上述修改完成后, 可进行链路的更新, 然后向客户端 和服务端发送消息, 通知两者恢复通信。 该发送给客户端的消息可以是准 发消息; 该发送给服务端的消息可以是 CER消息。 The communication between the access device and the server may be performed after the DWR/DWA process is performed multiple times after the link is established, and the application layer message is allowed to be sent to prevent the link from being out of synchronization with the specific service process. Call loss rate. This can be about 3 times. The above link configuration and detection means that the access device can modify the configuration and update the link, allowing dynamic client or server replacement. The access device can perform configuration modification after the dynamic link is added or removed. The configuration modification includes related information and configuration modification of the Diameter protocol related information. After the above modification is completed, the link can be updated, and then a message is sent to the client and the server to notify the two to resume communication. The message sent to the client may be a quasi-message message; the message sent to the server may be a CER message.
参照图 23 , 上述步骤 S10后可包括:  Referring to FIG. 23, the foregoing step S10 may include:
步骤 S100、 通过上述客户端的心跳检测对进行接入设备的选取。  Step S100: Perform selection of an access device by using a heartbeat detection of the client.
如上述步骤 S100所述, 在有多个接入设备时, 可实现对多接入设备的 冗余, 利用心跳检测方式对该多个接入设备进行选取。  As described in the foregoing step S100, when there are multiple access devices, redundancy of the multiple access devices can be implemented, and the multiple access devices are selected by using the heartbeat detection mode.
参照图 24, 上述步骤 S11后可包括:  Referring to FIG. 24, the foregoing step S11 may include:
步骤 S110、 通过上述接入设备进行升级保护。  Step S110: Perform upgrade protection by using the access device.
如上述步骤 S110所述, 上述升级保护流程可为: 首先由上述接入设备 向上述客户端发送升级消息, 通知该客户端其将拒绝接收新会话; 该客户 端将通过心跳检测寻找另外的网元(接入设备)进行通信。 然后, 上述需 升级的接入设备检测会话是否处理完成; 如果处理未完成, 该接入设备可 继续进行处理; 如果处理完成, 其将发送 DPR消息至客户端和服务端, 进 行升级。 上述客户端在接入设备的会话未处理完成时, 继续向该接入设备 发送未处理完成的会话, 直到接收到该接入设备发送的断链消息; 同时, 该客户端可将新会话发送至另外寻找的网元。 需升级的接入设备在接收上 述客户端对以及服务端对 DPR消息的反馈消息 (DPA )后, 关闭上述接入 设备进行升级, 防止升级过程中的信息丟失。 最后, 在升级完成后, 升级 完成的接入设备可发送升级结束消息至上述客户端, 重新开始通信。  As described in the foregoing step S110, the foregoing upgrade protection process may be: first, the access device sends an upgrade message to the client, notifying the client that it will refuse to receive a new session; the client will search for another network through heartbeat detection. The element (access device) communicates. Then, the access device that needs to be upgraded detects whether the session is processed. If the processing is not completed, the access device can continue processing; if the processing is completed, it will send a DPR message to the client and the server for upgrade. When the client does not process the session of the access device, the client continues to send the unprocessed session to the access device until the disconnection message sent by the access device is received; meanwhile, the client may send the new session. To another network element that is looking for. After receiving the feedback message (DPA) of the client pair and the server to the DPR message, the access device to be upgraded closes the access device to perform the upgrade to prevent information loss during the upgrade process. Finally, after the upgrade is completed, the upgraded access device can send an upgrade end message to the above client to restart communication.
上述步骤 S11后还可包括:  The above step S11 may further include:
步骤 Sl l l、 通过上述接入设备进行服务端重启保护。 如上述步骤 Si l l所述, 上述服务端重启保护流程可为: 先是该服务端 在重启前向接入设备发送断链消息。 该接入设备接收服务端发送的断链消 息后检测是否有备用服务端; 在有备用服务端时, 该接入设备可将业务直 接倒换给备用服务端; 在没有备用服务端时, 该接入设备将发送服务端重 启消息至上述客户端, 拒绝接收新会话; 且该接入设备可检测其会话是否 处理完成, 如果未处理完成, 则继续检测是否有备用服务端; 如果处理完 成,则将向服务端发送 DPA消息,该服务端在接收到 DPA消息后重新启动, 防止重启过程中的信息丟失。 该服务端在重启完成后, 将向该接入设备发 送建链消息。 In step S11, the server restart protection is performed by using the access device. As described in the foregoing step 111, the server restart protection process may be: First, the server sends a broken link message to the access device before restarting. The access device detects whether there is a backup server after receiving the broken link message sent by the server; when there is a backup server, the access device can directly switch the service to the standby server; when there is no standby server, the access device The ingress device will send a server restart message to the above client to refuse to receive a new session; and the access device can detect whether the session is processed successfully, and if the processing is not completed, continue to detect whether there is a backup server; if the processing is completed, then A DPA message will be sent to the server, and the server will restart after receiving the DPA message to prevent information loss during the restart process. After the server is restarted, the server will send a link-building message to the access device.
上述接入设备接收上述建链消息后, 将向该服务端发送 CER消息, 该 服务端将返回 CEA消息; 然后, 该接入设备再向服务端发送 DWR消息, 该服务端返回 DWA消息; 持续三个 DWR/DWA过程后, 建立链接。 再是, 该接入设备将发送恢复消息给该客户端, 恢复新会话的处理。  After receiving the above-mentioned link-building message, the access device sends a CER message to the server, and the server returns a CEA message; then, the access device sends a DWR message to the server, and the server returns a DWA message; After three DWR/DWA processes, a link is established. Then, the access device will send a recovery message to the client to resume processing of the new session.
以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直 接或间接运用在其他相关的技术领域, 均同理包括在本发明的专利保护范 围内。  The above description is only the preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent flow transformation made by the specification and the drawings of the present invention may be directly or indirectly applied to other related The technical field is equally included in the scope of patent protection of the present invention.

Claims

权利要求书 Claim
1、 一种升级保护方法, 其特征在于, 对在线计费系统中的接入设备的 升级进行保护, 所述在线计费系统包括进行业务逻辑管理的客户端、 进行 会话管理的接入设备、 以及进行计费管理的服务端, 该方法包括:  An upgrade protection method, which is characterized in that the upgrade of the access device in the online charging system is protected, and the online charging system includes a client that performs business logic management, an access device that performs session management, And a server for performing billing management, the method includes:
拒绝接收新会话, 并通过向所述客户端发送升级消息告知所述客户端; 在所述接入设备的会话处理完成后, 发送处理完成消息进行所述接入 设备的升级。  Refusing to receive a new session, and informing the client by sending an upgrade message to the client; after the session processing of the access device is completed, sending a processing completion message to perform an upgrade of the access device.
2、 根据权利要求 1所述升级保护方法, 其特征在于, 在所述发送处理 完成消息进行升级之前, 该方法还包括:  The method for upgrading the protection according to claim 1, wherein before the sending the processing completion message is upgraded, the method further includes:
检测接入设备中是否有未处理完的会话; 如果有, 则继续进行会话处 理, 直至会话处理完成; 否则, 发送处理完成消息进行升级。  Detect whether there is an unprocessed session in the access device; if yes, continue the session processing until the session processing is completed; otherwise, send a processing completion message to upgrade.
3、 根据权利要求 2所述升级保护方法, 其特征在于, 该方法还包括: 根据所述处理完成消息, 发送断链消息至客户端和服务端。  The method for upgrading the protection according to claim 2, wherein the method further comprises: sending a broken link message to the client and the server according to the processing completion message.
4、 根据权利要求 3所述升级保护方法, 其特征在于, 在发送断链消息 至客户端和服务端后, 该方法还包括:  The upgrade protection method according to claim 3, wherein after the disconnection message is sent to the client and the server, the method further includes:
接收所述客户端和服务端的反馈消息, 关闭所述接入设备, 进行升级。 Receiving the feedback message of the client and the server, shutting down the access device, and performing an upgrade.
5、 根据权利要求 4所述升级保护方法, 其特征在于, 该方法还包括: 发送升级完成消息至客户端和服务端, 通知升级结束。 The method for upgrading the protection according to claim 4, wherein the method further comprises: sending an upgrade completion message to the client and the server, and notifying the end of the upgrade.
6、 一种升级保护装置, 其特征在于, 对在线计费系统中的接入设备的 升级进行保护, 所述在线计费系统包括进行业务逻辑管理的客户端、 进行 会话管理的接入设备、 以及进行计费管理的服务端, 所述升级保护装置包 括:  An upgrade protection device, which is characterized in that the upgrade of the access device in the online charging system is protected, and the online charging system includes a client that performs business logic management, an access device that performs session management, And a server that performs billing management, and the upgrade protection device includes:
升级保护模块, 用于所述接入设备升级中的信息保护; 在升级前拒绝 新会话的接收, 并通过向所述客户端发送升级消息告知所述客户端; 并在 所述接入设备的会话处理完成后, 发送处理完成消息进行所述接入设备的 升级。 Upgrading a protection module for protecting information in the access device upgrade; rejecting reception of a new session before upgrading, and notifying the client by sending an upgrade message to the client; and at the access device After the session processing is completed, sending a processing completion message to the access device. Upgrade.
7、 根据权利要求 6所述升级保护装置, 其特征在于, 所述升级保护模 块包括:  The upgrade protection device according to claim 6, wherein the upgrade protection module comprises:
消息发送单元, 用于发送所述升级消息至所述客户端, 拒绝接收新会 话;  a message sending unit, configured to send the upgrade message to the client, and refuse to receive a new session;
会话检测单元, 用于检测会话是否处理完成, 并在检测会话处理完成 时, 发送处理完成消息, 进行升级。  The session detecting unit is configured to detect whether the session is processed, and send a processing completion message to perform the upgrade when the detection session processing is completed.
8、 根据权利要求 7所述升级保护装置, 其特征在于, 所述升级保护模 块还包括:  The upgrade protection device according to claim 7, wherein the upgrade protection module further comprises:
断链发送单元, 用于接收所述处理完成消息, 发送断链消息至所述客 户端以及服务端。  The chain breaking sending unit is configured to receive the processing completion message, and send a broken link message to the client and the server.
9、 根据权利要求 8所述升级保护装置, 其特征在于, 所述升级保护模 块还包括:  The upgrade protection device according to claim 8, wherein the upgrade protection module further comprises:
升级启动单元, 用于在接收到所述客户端以及服务端的反馈消息时, 关闭所述接入设备, 进行升级。  And an upgrade startup unit, configured to: when receiving the feedback message of the client and the server, shut down the access device and perform an upgrade.
10、 根据权利要求 7至 9任一项所述升级保护装置, 其特征在于, 所 述消息发送单元包括:  The upgrade protection device according to any one of claims 7 to 9, wherein the message sending unit comprises:
结束通知组件, 用于发送升级完成消息至客户端和服务端, 通知升级 结束。  The end notification component is used to send an upgrade completion message to the client and server to notify the end of the upgrade.
PCT/CN2010/075239 2009-09-24 2010-07-19 Method and apparatus for upgrade protection WO2011035639A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200910190255 CN101662390B (en) 2009-09-24 2009-09-24 Upgrade protecting method and device thereof
CN200910190255.8 2009-09-24

Publications (1)

Publication Number Publication Date
WO2011035639A1 true WO2011035639A1 (en) 2011-03-31

Family

ID=41790196

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/075239 WO2011035639A1 (en) 2009-09-24 2010-07-19 Method and apparatus for upgrade protection

Country Status (2)

Country Link
CN (1) CN101662390B (en)
WO (1) WO2011035639A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526409A (en) * 2020-04-26 2020-08-11 海信视像科技股份有限公司 Display device

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662390B (en) * 2009-09-24 2012-10-10 中兴通讯股份有限公司 Upgrade protecting method and device thereof
CN101697517B (en) * 2009-09-24 2012-06-06 中兴通讯股份有限公司 Device, system and method for reducing call loss in on-line billing
CN102710433B (en) 2012-04-28 2015-11-25 华为技术有限公司 A kind of online upgrading processing method, relevant apparatus and system
CN105897450B (en) * 2015-01-06 2020-02-04 阿尔卡特朗讯 Method and apparatus for Diameter connection management
CN107508848A (en) * 2016-06-14 2017-12-22 中兴通讯股份有限公司 Session method for handover control, device and access point apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968153A (en) * 2006-10-25 2007-05-23 华为技术有限公司 Method and apparatus for hot upgrade of network processor
CN101212532A (en) * 2006-12-30 2008-07-02 中国电信股份有限公司 Combined billing system and method
CN101662390A (en) * 2009-09-24 2010-03-03 中兴通讯股份有限公司 Upgrade protecting method and device thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1141822C (en) * 2002-01-08 2004-03-10 广东省电信科学技术研究院 Distributed authentication/charge server system and its implementation method
CN100589078C (en) * 2007-08-21 2010-02-10 中兴通讯股份有限公司 Multi-core terminal firmware upgrading method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968153A (en) * 2006-10-25 2007-05-23 华为技术有限公司 Method and apparatus for hot upgrade of network processor
CN101212532A (en) * 2006-12-30 2008-07-02 中国电信股份有限公司 Combined billing system and method
CN101662390A (en) * 2009-09-24 2010-03-03 中兴通讯股份有限公司 Upgrade protecting method and device thereof

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"3rd Generation Partnership Project; Technical Specification Group Service and System Aspects; Telecommunication management; Charging management; Diameter charging applications (Release 8)", 3GPP TS 32.299 V8.7.0, June 2009 (2009-06-01) *
"3rd Generation Partnership Project; Technical Specification Group Service and System Aspects; Telecommunication management; Charging management; Online Charging System (OCS): Applications and interfaces (Release 8)", 3GPP TS 32.296 V8.3.0, March 2009 (2009-03-01) *
"Diameter Base Protocol", RFC3588, September 2003 (2003-09-01) *
DING YA: "Design and Implementation of an Online Charging System Based on the Diameter Protocol", CHINESE MASTER'S THESIS FULL-TEXT DATABASE, no. 6, 15 December 2007 (2007-12-15), pages I133 - I136 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526409A (en) * 2020-04-26 2020-08-11 海信视像科技股份有限公司 Display device
CN111526409B (en) * 2020-04-26 2022-03-11 海信视像科技股份有限公司 Display device

Also Published As

Publication number Publication date
CN101662390A (en) 2010-03-03
CN101662390B (en) 2012-10-10

Similar Documents

Publication Publication Date Title
US8437305B2 (en) Method for providing home agent geographic redundancy
US8346264B2 (en) Transmission of data in a communication system
WO2011035639A1 (en) Method and apparatus for upgrade protection
WO2015154350A1 (en) Internet access traffic sharing method, device and terminal
US20090049180A1 (en) Gateway apparatus
RU2501178C2 (en) Background service process unit, agent system and call control method in said system
WO2013064067A1 (en) Method and system for controlling network congestion
WO2016180175A1 (en) Method, system and device for realizing online charging
WO2010121531A1 (en) Method for terminal management system updating terminal status and terminal management system
WO2015158058A1 (en) Method and system for implementing call saving and recovery
CN101394642A (en) Method, device and system for uploading link exception information
WO2012040988A1 (en) Service group management method and apparatus
CN101697517B (en) Device, system and method for reducing call loss in on-line billing
CN102957674A (en) Resource control method and resource control system for broadband network
WO2014176718A1 (en) Channel establishing method, base station, and channel establishing system
WO2022041152A1 (en) Network slice authentication and authorization method and apparatus
CN108924374B (en) Soft switch calling method, soft switch equipment and called end ONU
JPH11187146A (en) Communication system using public line
JP3430628B2 (en) Communication control device, communication system, and communication control method
JP2000201149A (en) Internet telephone system
CN105897450B (en) Method and apparatus for Diameter connection management
KR20240043292A (en) Voice call service method and voice call service system
KR100646568B1 (en) Method for duplexing pdf in ims network
CN117201677A (en) Incoming and outgoing call system and scheduling method for incoming and outgoing call system
CN111064598A (en) Method, system, gateway and storage medium for abnormal disconnection of media stream

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: 10818333

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: 10818333

Country of ref document: EP

Kind code of ref document: A1