CN110138572B - Charging synchronization method, device and equipment - Google Patents

Charging synchronization method, device and equipment Download PDF

Info

Publication number
CN110138572B
CN110138572B CN201810133834.8A CN201810133834A CN110138572B CN 110138572 B CN110138572 B CN 110138572B CN 201810133834 A CN201810133834 A CN 201810133834A CN 110138572 B CN110138572 B CN 110138572B
Authority
CN
China
Prior art keywords
bras
user
controller
charging
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810133834.8A
Other languages
Chinese (zh)
Other versions
CN110138572A (en
Inventor
韩瑞波
李晗
胡淑军
秦凤伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
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 China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN201810133834.8A priority Critical patent/CN110138572B/en
Publication of CN110138572A publication Critical patent/CN110138572A/en
Application granted granted Critical
Publication of CN110138572B publication Critical patent/CN110138572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04L12/1403Architecture for metering, charging or billing

Abstract

The invention provides a charging synchronization method, a device and equipment, relates to the technical field of communication and aims to improve the charging accuracy. The charging synchronization method of the invention comprises the following steps: detecting the communication state between the BRAS repeater and the BRAS repeater; if the communication between the BRAS transponder and the BRAS transponder is interrupted, entering a circular waiting state, and sending a state conversion message to an AAA server to enable the AAA server to enter the circular waiting state; if the communication between the BRAS transponder and the BRAS transponder is recovered, the user state information and the user charging information sent by the BRAS transponder are obtained, the stored user data are updated according to the user state information and the user charging information, and the AAA server is informed of charging. The invention can improve the accuracy of charging.

Description

Charging synchronization method, device and equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a device for charging synchronization.
Background
BRAS (Broadband Remote Access Server) is a novel Access gateway for Broadband network application. For BRAS equipment, the most important step in promoting its generalized evolution is the separation of forwarding and control.
The basic idea of the transfer control separation BRAS system is as follows: abstracting control surface functions on a plurality of BRAS devices and carrying out centralized cloud deployment to form a uniform BRAS controller (BRAS-CP); meanwhile, the BRAS device or other forwarding devices with the stripped control plane form a BRAS forwarder (BRAS-UP). The diversion separation BRAS system then consists of BRAS-CP and BRAS-UP.
In a BRAS system with separate control, one BRAS controller (C-plane) manages a plurality of BRAS repeaters (U-planes), and the C-plane and the U-plane directly perform information interaction through protocols such as VXLAN (Virtual eXtensible LAN), Openflow (open source), Netconf (network configuration), and the like.
The U plane receives and processes a PPPOE (point-to-point protocol over Ethernet) packet of a user, and then uploads a PPPOE control packet and charging information related to the user to the C plane. The C plane stores and maintains User state information and table entries such as PPPOE state machine, and is responsible for performing message interaction of related Authentication and charging request with AAA (Authentication, Authorization, Accounting, verification, Authorization, and Accounting) server through Radius (Remote Authentication Dial In User Service) protocol.
In a transfer control separation BRAS system, after the communication between a U surface and a C surface is disconnected due to faults, the charging information, offline messages and the like sent to the C surface by the U surface are lost, so that various access information and Log logs of a user are lost, and the charging information is inaccurate.
Disclosure of Invention
In view of this, the present invention provides a charging synchronization method, device and apparatus, so as to improve the charging accuracy in a handover control separation BRAS system.
To solve the foregoing technical problem, in a first aspect, an embodiment of the present invention provides a charging synchronization method applied to a BRAS controller, including:
detecting the communication state between the BRAS transponder and the BRAS transponder;
if the communication between the BRAS transponder and the BRAS transponder is interrupted, entering a circular waiting state, and sending a state conversion message to an AAA server to enable the AAA server to enter the circular waiting state;
if the communication between the BRAS transponder and the BRAS transponder is recovered, acquiring user state information and user charging information sent by the BRAS transponder, updating stored user data according to the user state information and the user charging information, and informing the AAA server of charging;
in the cyclic waiting state, the BRAS controller keeps all data of the current user from being updated and cleared; and the AAA server keeps all data of the current user from updating and clearing, and suspends charging.
Wherein, the sending the state transition message to the AAA server includes:
and sending a Radius message to the AAA server, wherein the packet type of the Radius message is a first preset value.
Wherein the notifying the AAA server of accounting comprises:
acquiring online users and offline users during the communication interruption with the BRAS repeater according to the user state information;
for an online user, sending a Radius charging request updating message to the AAA server, wherein the charging request updating message is used for updating the charging information of the online user to the AAA server so that the AAA server is switched from a circulating waiting state to a charging state and charges the online user;
and for the offline user, sending a Radius accounting request ending message to the AAA server, wherein the Radius accounting request ending message is used for informing the AAA server to end the accounting of the offline user, and switching from a circulating waiting state to a user offline state.
And the packet types of the Radius charging request updating message and the Radius charging request ending message are a second preset value.
Wherein the method further comprises:
and if the communication between the state maintaining time and the BRAS transponder is interrupted, sending the state maintaining time length to the AAA server.
In a second aspect, an embodiment of the present invention provides a charging synchronization method, applied to a BRAS forwarder, including:
detecting the communication state between the BRAS controller and the communication terminal;
if the communication between the BRAS controller and the BRAS controller is interrupted, acquiring user state information and user charging information during a communication terminal with the BRAS controller;
and if the communication between the user and the BRAS controller is recovered, the user state information and the user charging information are sent to the BRAS controller.
Wherein the acquiring of the subscriber status information and the subscriber billing information during the communication terminal with the BRAS controller comprises:
for the users who are on line during the communication interruption between the users and the BRAS controller, recording the time of the communication interruption between the users on line and the BRAS controller, and storing and maintaining the real-time charging information of the users on line;
and for the user who is offline during the communication interruption period between the user and the BRAS controller, processing the offline control message of the user who is offline, and recording the offline duration and the flow charging information.
In a third aspect, an embodiment of the present invention provides an accounting synchronization method, applied to an AAA server, including:
when the communication between the BRAS controller and the BRAS transponder is interrupted, receiving a state switching message of the BRAS controller, and entering a circular waiting state according to the state switching message;
when the communication between the BRAS controller and the BRAS transponder is recovered, charging according to the notice of the BRAS controller;
and in the circular waiting state, the AAA server keeps all data of the current user from updating or clearing, and suspends the charging.
Wherein, the receiving the status switching message of the BRAS controller includes:
and receiving a Radius message sent by the BRAS controller, wherein the packet type of the Radius message is a first preset value.
Wherein, the charging according to the notice of the BRAS controller comprises:
for an online user during the communication interruption between a BRAS controller and a BRAS transponder, receiving a Radius charging request updating message sent by the BRAS controller, and charging the online user according to the Radius charging request updating message;
and for the user who is offline during the communication interruption between the BRAS controller and the BRAS transponder, receiving a Radius charging request ending message sent by the BRAS controller, ending the charging of the user who is offline according to the Radius charging request ending message, and switching from a circulating waiting state to a user offline state.
And the packet types of the Radius charging request updating message and the Radius charging request ending message are a second preset value.
Wherein the method further comprises:
when the communication between a BRAS controller and a BRAS transponder is interrupted, receiving the state holding duration sent by the BRAS controller;
and when the time of entering the circular waiting state exceeds the state holding time, finishing the charging.
In a fourth aspect, an embodiment of the present invention provides a charging synchronization apparatus, which is applied to a BRAS controller, and includes a processor and a transceiver;
the processor is used for detecting the communication state between the BRAS repeater and the processor;
if the communication between the AAA server and the BRAS transponder is interrupted, entering a circular waiting state, and sending a state switching message to an AAA server through the transceiver to enable the AAA server to enter the circular waiting state;
if the communication between the BRAS transponder and the BRAS transponder is recovered, acquiring user state information and user charging information sent by the BRAS transponder, updating stored user data according to the user state information and the user charging information, and informing the AAA server of charging through the transceiver;
in the cyclic waiting state, the BRAS controller keeps all data of the current user from being updated and cleared; and the AAA server keeps all data of the current user from updating and clearing, and suspends charging.
The processor is further configured to send a Radius message to the AAA server through the transceiver, where a packet type of the Radius message is a first preset value.
Wherein the processor is further configured to,
acquiring online users and offline users during the communication interruption with the BRAS repeater according to the user state information;
for an online user, sending a Radius charging request updating message to the AAA server through the transceiver, wherein the charging request updating message is used for updating the charging information of the online user to the AAA server so that the AAA server is switched from a circulating waiting state to a charging state and charges the online user;
and for the offline user, sending a Radius accounting request ending message to the AAA server through the transceiver, wherein the Radius accounting request ending message is used for informing the AAA server to end the accounting of the offline user, and switching from a circulating waiting state to a user offline state.
And the packet types of the Radius charging request updating message and the Radius charging request ending message are a second preset value.
Wherein the processor is further configured to send a state holding duration to the AAA server via the transceiver if communication with the BRAS forwarder is interrupted.
In a fifth aspect, an embodiment of the present invention provides a charging synchronization apparatus, which is applied to a BRAS repeater, and includes a processor and a transceiver;
the processor is used for detecting the communication state between the BRAS controller and the processor; if the communication between the BRAS controller and the BRAS controller is interrupted, acquiring user state information and user charging information during a communication terminal with the BRAS controller; and if the communication between the BRAS controller and the BRAS controller is recovered, the user state information and the user charging information are sent to the BRAS controller through the transceiver.
Wherein the processor is further configured to,
for the users who are on line during the communication interruption between the users and the BRAS controller, recording the time of the communication interruption between the users on line and the BRAS controller, and storing and maintaining the real-time charging information of the users on line;
and for the user who is offline during the communication interruption period between the user and the BRAS controller, processing the offline control message of the user who is offline, and recording the offline duration and the flow charging information.
In a sixth aspect, an embodiment of the present invention provides an accounting synchronization apparatus, which is applied to an AAA server, and includes a processor and a transceiver;
the processor is used for receiving a state switching message of the BRAS controller through the transceiver when the communication between the BRAS controller and the BRAS transponder is interrupted, and entering a circular waiting state according to the state switching message; when the communication between the BRAS controller and the BRAS transponder is recovered, charging according to the notice of the BRAS controller;
and in the circular waiting state, the AAA server keeps all data of the current user from updating or clearing, and suspends the charging.
The processor is further configured to receive, through the transceiver, a Radius message sent by the BRAS controller, where a packet type of the Radius message is a first preset value.
Wherein the processor is further configured to,
for an online user during the communication interruption between a BRAS controller and a BRAS transponder, receiving a Radius charging request updating message sent by the BRAS controller, and charging the online user according to the Radius charging request updating message;
and for the user who is offline during the communication interruption between the BRAS controller and the BRAS transponder, receiving a Radius charging request ending message sent by the BRAS controller, ending the charging of the user who is offline according to the Radius charging request ending message, and switching from a circulating waiting state to a user offline state.
The processor is further configured to determine a packet type of the Radius charging request update packet and a packet type of the Radius charging request end packet to be a second preset value.
Wherein the processor is further configured to,
when the communication between a BRAS controller and a BRAS transponder is interrupted, receiving a state holding duration sent by the BRAS controller through the transceiver;
and when the time of entering the circular waiting state exceeds the state holding time, finishing the charging.
In a seventh aspect, an embodiment of the present invention provides a communication device, including: a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor; the computer program, when executed by a processor, implementing the steps in the method according to the first aspect; or which when executed by a processor implements the steps of the method according to the second aspect; or which when executed by a processor performs the steps of the method according to the third aspect.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing a computer program, which when executed by a processor implements the steps in the method according to the first aspect; or which when executed by a processor implements the steps of the method according to the second aspect; or which when executed by a processor performs the steps of the method according to the third aspect.
The technical scheme of the invention has the following beneficial effects:
in the embodiment of the invention, when the communication between the BRAS repeater and the BRAS controller is interrupted, the BRAS controller and the AAA server enter a circular waiting state; in the cyclic waiting state, the BRAS controller keeps all data of the current user from being updated and cleared; and the AAA server keeps all data of the current user from updating and clearing, and suspends charging. When the communication between the BRAS repeater and the BRAS controller is recovered, the BRAS controller updates according to the user state information and the user charging information sent by the BRAS repeater, and the AAA server performs charging. Therefore, the scheme of the embodiment of the invention can ensure that various information of the user can be still saved even when the communication between the BRAS repeater and the BRAS controller is interrupted, and the charging is carried out when the communication is recovered, thereby ensuring the accuracy of the charging information.
Drawings
Fig. 1 is a flowchart of a charging synchronization method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a Radius message in the prior art;
fig. 3 is a schematic diagram of a Radius message in an embodiment of the present invention;
fig. 4(a) and fig. 4(b) are schematic diagrams of a Radius message in an embodiment of the present invention, respectively;
fig. 5 is a flowchart of a charging synchronization method according to an embodiment of the present invention;
fig. 6 is a flowchart of a charging synchronization method according to an embodiment of the present invention;
fig. 7 is a flowchart of a charging synchronization method according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a charging synchronization apparatus according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a charging synchronization apparatus according to an embodiment of the present invention;
fig. 10 is a schematic diagram of a charging synchronization apparatus according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a communication device of an embodiment of the present invention;
fig. 12 is a schematic diagram of a communication device of an embodiment of the present invention;
fig. 13 is a schematic diagram of a communication device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention will be made with reference to the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
As shown in fig. 1, the charging synchronization method according to the embodiment of the present invention is applied to a BRAS controller, and includes:
and step 101, detecting the communication state between the BRAS repeater and the BRAS repeater.
The BRAS controller can periodically detect the communication state between the BRAS controller and the BRAS repeater so as to determine whether the communication connection is maintained.
Step 102, if the communication between the BRAS transponder and the BRAS transponder is interrupted, entering a circular waiting state, and sending a state conversion message to an AAA server to enable the AAA server to enter the circular waiting state.
In the embodiment of the present invention, a state is newly defined, which is referred to as a loop wait state (CRLoop state). In the cyclic waiting state, the BRAS controller keeps all data of the current user from being updated and cleared; and the AAA server keeps all data of the current user from updating and clearing, and suspends charging.
In the prior art, a Radius message structure is shown in fig. 2. Wherein:
code: indicating a packet type; 1 byte; indicating the type of RADIUS packet.
An Identifier: indicating a package identification; 1 byte; the identifiers for matching request packets and response packets should be the same for the same group of request packets and response packets.
Length: indicates the packet length; 2 bytes; the length of the entire packet.
The activator: representing a verification word; 16 bytes; for signing the package.
The Code field length is 1 byte, and is used for marking the type of the RADIUS message. The Code domains are 1, 2, 3, 4, 5 more common. A value of 1 indicates that the message type is an authentication request, a value of 2 indicates that the message type is an authentication accept, a value of 3 indicates that the message type is an authentication reject, a value of 4 indicates that the message type is a charging request (start/update/stop), and a value of 5 indicates that the message type is a charging response (start/update/stop).
In the embodiment of the invention, the Radius message is expanded, and the expanded Radius message is used for communicating with the AAA server.
Specifically, the BRAS controller sends a Radius message to the AAA server, and notifies the AAA server area of a circular waiting state. And the packet type of the Radius message is a first preset value. Wherein the first preset value may be 15.
In addition, in order to enable the AAA server to finish charging and offline the user by the AAA server no matter whether the BRAS controller sends an update notice to the AAA server or not, so as to avoid the user from being kept in a CRLoop state without limit, if the communication between the BRAS controller and the BRAS repeater is interrupted, the BRAS controller can also send state keeping duration to the AAA server. Wherein the duration can be set arbitrarily.
The structure of the expanded Radius message is shown in fig. 3. As illustrated in fig. 3, where Code 15. Meanwhile, an attribute 85 in this message has a value of Max CRLoop time, which is used to indicate the state holding time.
Step 103, if the communication between the BRAS transponder and the BRAS transponder is recovered, obtaining the user state information and the user charging information sent by the BRAS transponder, updating the stored user data according to the user state information and the user charging information, and informing the AAA server of charging.
In this step, the BRAS controller acquires a subscriber who is on-line and a subscriber who is off-line during a communication interruption with the BRAS repeater, according to the subscriber status information. For the online user, the BRAS controller sends a Radius accounting request updating message to the AAA server, where the accounting request updating message is used to update the accounting information of the online user to the AAA server, so that the AAA server switches from a loop waiting state to an accounting state, and accounts for the online user. For the offline user, the BRAS controller sends a Radius accounting request ending message to the AAA server, wherein the Radius accounting request ending message is used for informing the AAA server to end the accounting of the offline user, and the BRAS controller is switched from a circulating waiting state to a user offline state.
The packet types of the Radius charging request update packet and the Radius charging request end packet are a second preset value, for example, a value of 4 may be taken. The structures of the Radius charging request update message and the Radius charging request end message are shown in fig. 4(a) and fig. 4 (b). The Radius charging request updating message and the Radius charging request ending message can be distinguished through a combined attribute domain.
For example, as shown in fig. 4(a), the attribute 40, the value is 3; as shown in fig. 4(b), the attribute 40 of the Radius charging request end packet has a value of 2.
In the embodiment of the invention, when the communication between the BRAS repeater and the BRAS controller is interrupted, the BRAS controller and the AAA server enter a circular waiting state; in the cyclic waiting state, the BRAS controller keeps all data of the current user from being updated and cleared; and the AAA server keeps all data of the current user from updating and clearing, and suspends charging. When the communication between the BRAS repeater and the BRAS controller is recovered, the BRAS controller updates according to the user state information and the user charging information sent by the BRAS repeater, and the AAA server performs charging. Therefore, the scheme of the embodiment of the invention can ensure that various information of the user can be still saved even when the communication between the BRAS repeater and the BRAS controller is interrupted, and the charging is carried out when the communication is recovered, thereby ensuring the accuracy of the charging information.
As shown in fig. 5, the charging synchronization method according to the embodiment of the present invention is applied to a BRAS repeater, and includes:
step 501, detecting the communication state between the BRAS controller and the BRAS controller.
The BRAS repeater can periodically detect the communication state between the BRAS repeater and the BRAS controller to determine whether the communication connection is maintained.
Step 502, if the communication between the BRAS controller and the BRAS controller is interrupted, user state information and user charging information during the communication terminal with the BRAS controller are obtained.
Specifically, in this step, the BRAS repeater records, for a user who is online during a communication interruption period with the BRAS controller, a time of the communication interruption between the online user and the BRAS controller, and stores and maintains real-time charging information of the online user; and for the user who is offline during the communication interruption period between the user and the BRAS controller, processing the offline control message of the user who is offline, and recording the offline duration and the flow charging information.
Step 503, if the communication between the BRAS controller and the user is recovered, sending the user state information and the user charging information to the BRAS controller.
In the embodiment of the invention, when the communication between the BRAS repeater and the BRAS controller is interrupted, the BRAS controller and the AAA server enter a circular waiting state; in the cyclic waiting state, the BRAS controller keeps all data of the current user from being updated and cleared; the AAA server keeps all data of the current user not to be updated or reset, and suspends the charging. When the communication between the BRAS repeater and the BRAS controller is recovered, the BRAS controller updates according to the user state information and the user charging information sent by the BRAS repeater, and the AAA server performs charging. Therefore, the scheme of the embodiment of the invention can ensure that various information of the user can be still saved even when the communication between the BRAS repeater and the BRAS controller is interrupted, and the charging is carried out when the communication is recovered, thereby ensuring the accuracy of the charging information.
As shown in fig. 6, the accounting synchronization method according to the embodiment of the present invention is applied to an AAA server, and includes:
step 601, when the communication between the BRAS controller and the BRAS transponder is interrupted, receiving a state switching message of the BRAS controller, and entering a circular waiting state according to the state switching message.
And the AAA server receives a Radius message sent by the BRAS controller, wherein the packet type of the Radius message is a first preset value. Wherein, the first preset value may be 15. The structure of the Radius message is shown in fig. 3. And in the circular waiting state, the AAA server keeps all data of the current user from updating or clearing, and suspends the charging.
In addition, in order to enable the AAA server to finish charging and offline the user by the AAA server no matter whether the BRAS controller sends an update notice to the AAA server or not, so as to avoid the user from being kept in a CRLoop state without limit, if the communication between the BRAS controller and the BRAS repeater is interrupted, the BRAS controller can also send state keeping duration to the AAA server. Wherein the duration can be set arbitrarily. Correspondingly, when the communication between the BRAS controller and the BRAS transponder is interrupted, the AAA server receives the state holding time length sent by the BRAS controller, and when the time for entering the circular waiting state exceeds the state holding time length, the AAA server finishes the charging.
Step 602, when the communication between the BRAS controller and the BRAS repeater is recovered, charging is carried out according to the notice of the BRAS controller.
For the online user during the communication interruption between the BRAS controller and the BRAS transponder, the AAA server receives a Radius charging request updating message sent by the BRAS controller and charges the online user according to the Radius charging request updating message;
for the user who is offline during the communication interruption between the BRAS controller and the BRAS transponder, the AAA server receives a Radius charging request ending message sent by the BRAS controller, ends the charging of the user who is offline according to the Radius charging request ending message, and switches from a circular waiting state to a user offline state.
The packet types of the Radius charging request update packet and the Radius charging request end packet are a second preset value, for example, 4. The structures of these two messages can be referred to the aforementioned fig. 4(a) and fig. 4 (b).
In the embodiment of the invention, the functions of the BRAS repeater and the BRAS controller of the control separation BRAS and the Radius protocol are expanded, so that the charging information and the user state synchronization capacity during the communication interruption between the BRAS repeater and the BRAS controller and after the communication is recovered are improved.
1. After communication interruption between the BRAS repeater and the BRAS controller:
the BRAS repeater keeps the current online user alive and maintains the user charging information; and processing the control message and recording the charging information for the user applying for offline during the communication interruption period, and approving the user offline.
The BRAS controller and the AAA server both enter a CRLoop state, all data of the current user are kept not to be updated or cleared, and the AAA server suspends the charging.
2. After communication between the BRAS transponder and the BRAS controller is recovered:
the BRAS repeater updates the subscriber information to the BRAS controller. And the BRAS controller updates information to the AAA server, and jumps out of the CRLoop state with the AAA server to restart normal charging.
As shown in fig. 7, the charging synchronization method according to the embodiment of the present invention specifically includes:
step 701, the BRAS controller sends an authentication request packet to the Radius server.
Step 702, the Radius server sends an authentication acceptance packet to the BRAS controller.
Step 703, the BRAS controller sends a charging start request packet to the Radius server.
Step 704, the Radius server sends the accounting start request response packet to the BRAS controller.
Step 705, if the communication between the BRAS controller and the BRAS repeater is interrupted, the BRAS controller notifies the Radius server that the charging is suspended, and the state of CRLoop is entered.
If the BRAS repeater finds that normal communication with the BRAS controller cannot be achieved through a keep-alive mechanism between the C/U, the BRAS repeater keeps the current user still on line, starts to record the time of communication disconnection with the BRAS controller, and stores and maintains real-time charging information of the online user (a CP is not required to reply a charging response message). The BRAS transponder processes the user offline control message for the user applying offline during the communication interruption period, and records corresponding duration and flow charging information.
Step 706, if the communication between the BRAS controller and BRAS repeater is recovered, the BRAS repeater sends the stored subscriber status and billing information to the BRAS controller.
And step 707, the BRAS controller processes the charging and user state information during the communication interruption, and sends the information to the Radius server to inform the Radius server to recover the normal charging.
In the process, if the communication between the BRAS controller and the BRAS transponder is recovered, the U plane collects the user charging information and the state information and sends the user charging information and the state information to the C plane, and the C plane updates the related information. And the C surface updates the charging information and the state information of each user to the AAA server, informs the AAA server to change the CRLoop state and restarts normal charging.
After the communication between the BRAS controller and the BRAS transponder is recovered, the BRAS controller updates the accounting information to the AAA server for the user still on line, and informs the AAA server to switch from the CRLoop state to the normal accounting state. When the communication between CUs is interrupted, the BRAS controller sends an accounting request ending message to the AAA server to inform the AAA server to end accounting, and the CRLoop state is switched to the user offline state.
Step 708, the BRAS controller sends a charging end request packet to the Radius server.
Step 709, the Radius server sends a charging end request response packet to the BRAS controller.
In the embodiment of the invention, in consideration of a novel device form separated from BRAS transfer control and a novel data interaction form between devices, a new synchronization mechanism and a new synchronization state are introduced into a protocol stack and a Radius protocol on the devices, so that the reliability of user data storage and transmission is enhanced.
As shown in fig. 8, the charging synchronization apparatus according to the embodiment of the present invention is applied to a BRAS controller, and includes a processor 801 and a transceiver 802;
the processor 801 is configured to detect a communication status with a BRAS repeater; if the communication between the BRAS transponder and the BRAS transponder is interrupted, the state enters a circular waiting state, and a state switching message is sent to an AAA server through the transceiver 802, so that the AAA server enters the circular waiting state; if the communication between the BRAS transponder and the BRAS transponder is recovered, acquiring user state information and user charging information sent by the BRAS transponder, updating stored user data according to the user state information and the user charging information, and informing the AAA server of charging through the transceiver 802; in the cyclic waiting state, the BRAS controller keeps all data of the current user from being updated and cleared; and the AAA server keeps all data of the current user from updating and clearing, and suspends charging.
The processor 801 is further configured to send a Radius message to the AAA server through the transceiver, where a packet type of the Radius message is a first preset value.
The processor 801 is further configured to acquire an online user and an offline user during a communication interruption with the BRAS repeater according to the user status information; for an online user, sending a Radius charging request updating message to the AAA server through the transceiver, wherein the charging request updating message is used for updating the charging information of the online user to the AAA server so that the AAA server is switched from a circulating waiting state to a charging state and charges the online user; and for the offline user, sending a Radius accounting request ending message to the AAA server through the transceiver, wherein the Radius accounting request ending message is used for informing the AAA server to end the accounting of the offline user, and switching from a circulating waiting state to a user offline state.
And the packet types of the Radius charging request updating message and the Radius charging request ending message are a second preset value.
The processor 801 is further configured to send a status holding duration to the AAA server through the transceiver if the communication with the BRAS repeater is interrupted.
The working principle of the device according to the invention can be seen from the description of the method embodiments described above.
The scheme of the embodiment of the invention can ensure that various information of the user can be still stored even when the communication between the BRAS repeater and the BRAS controller is interrupted, and the charging is carried out when the communication is recovered, thereby ensuring the accuracy of the charging information.
As shown in fig. 9, the charging synchronization apparatus according to the embodiment of the present invention is applied to a BRAS repeater, and includes a processor 901 and a transceiver 902;
the processor 901 is configured to detect a communication status with a BRAS controller; if the communication with the BRAS controller is interrupted, acquiring user state information and user charging information during a communication terminal with the BRAS controller; if communication with the BRAS controller is restored, the subscriber status information and subscriber billing information is sent to the BRAS controller via the transceiver 902.
Wherein, the processor 901 is further configured to, for a user who is online during a communication interruption with the BRAS controller, record a time of the communication interruption between the online user and the BRAS controller, and store and maintain real-time charging information of the online user; and for the user who is offline during the communication interruption period between the user and the BRAS controller, processing the offline control message of the user who is offline, and recording the offline duration and the flow charging information.
The working principle of the device according to the invention can be referred to the description of the method embodiment described above.
The scheme of the embodiment of the invention can ensure that various information of the user can be still stored even when the communication between the BRAS repeater and the BRAS controller is interrupted, and the charging is carried out when the communication is recovered, thereby ensuring the accuracy of the charging information.
As shown in fig. 10, the accounting synchronization apparatus according to the embodiment of the present invention, applied to an AAA server, includes a processor 1001 and a transceiver 1002;
the processor 1001 is configured to receive a state transition packet of the BRAS controller through the transceiver when communication between the BRAS controller and the BRAS repeater is interrupted, and enter a loop waiting state according to the state transition packet; when the communication between the BRAS controller and the BRAS transponder is recovered, charging according to the notice of the BRAS controller; and in the circular waiting state, the AAA server keeps all data of the current user from updating or clearing, and suspends the charging.
The processor 1001 is further configured to receive, through the transceiver, a Radius packet sent by the BRAS controller, where a packet type of the Radius packet is a first preset value.
The processor 1001 is further configured to receive a Radius charging request update packet sent by the BRAS controller for an online user during a communication interruption between the BRAS controller and the BRAS repeater, and charge the online user according to the Radius charging request update packet; for a user who is offline during the communication interruption between the BRAS controller and the BRAS transponder, receiving a Radius charging request ending message sent by the BRAS controller, ending the charging of the user who is offline according to the Radius charging request ending message, and switching from a circular waiting state to a user offline state.
The processor 1001 is further configured to determine that packet types of the Radius charging request update packet and the Radius charging request end packet are a second preset value.
Wherein, the processor 1001 is further configured to receive, by the transceiver, a status holding duration sent by a BRAS controller when communication between the BRAS controller and a BRAS repeater is interrupted; and when the time of entering the circular waiting state exceeds the state holding time, finishing the charging.
The working principle of the device according to the invention can be referred to the description of the method embodiment described above.
The scheme of the embodiment of the invention can ensure that various information of the user can be still stored even when the communication between the BRAS repeater and the BRAS controller is interrupted, and the charging is carried out when the communication is recovered, thereby ensuring the accuracy of the charging information.
As shown in fig. 11, the communication device according to the embodiment of the present invention includes:
the processor 1100, which reads the program in the memory 1120, performs the following processes:
detecting the communication state between the BRAS transponder and the BRAS transponder; if the communication between the BRAS transponder and the BRAS transponder is interrupted, entering a circular waiting state, and sending a state conversion message to an AAA server to enable the AAA server to enter the circular waiting state; if the communication between the BRAS transponder and the BRAS transponder is recovered, acquiring user state information and user charging information sent by the BRAS transponder, updating stored user data according to the user state information and the user charging information, and informing the AAA server of charging; in the cyclic waiting state, the BRAS controller keeps all data of the current user from being updated and cleared; and the AAA server keeps all data of the current user from updating and clearing, and suspends charging.
A transceiver 1110 for receiving and transmitting data under the control of the processor 1100.
Where in fig. 11, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 1100, and various circuits, represented by memory 1120, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 1110 may be a number of elements including a transmitter and a transceiver providing a means for communicating with various other apparatus over a transmission medium. The processor 1100 is responsible for managing the bus architecture and general processing, and the memory 1120 may store data used by the processor 1100 in performing operations.
The processor 1100 is responsible for managing the bus architecture and general processing, and the memory 1120 may store data used by the processor 1100 in performing operations.
The processor 1100 is also adapted to read the computer program and perform the following steps:
and sending a Radius message to the AAA server, wherein the packet type of the Radius message is a first preset value.
The processor 1100 is also adapted to read the computer program and perform the following steps:
acquiring online users and offline users during the communication interruption with the BRAS repeater according to the user state information;
for an online user, sending a Radius charging request updating message to the AAA server, wherein the charging request updating message is used for updating the charging information of the online user to the AAA server so that the AAA server is switched from a circulating waiting state to a charging state and charges the online user;
and for the offline user, sending a Radius accounting request ending message to the AAA server, wherein the Radius accounting request ending message is used for informing the AAA server to end the accounting of the offline user, and switching from a circulating waiting state to a user offline state.
And the packet types of the Radius charging request updating message and the Radius charging request ending message are a second preset value.
The processor 1100 is also adapted to read the computer program and perform the following steps:
and if the communication between the state maintaining time and the BRAS transponder is interrupted, sending the state maintaining time length to the AAA server.
As shown in fig. 12, the communication device of the embodiment of the present invention includes:
a processor 1200 for reading the program in the memory 1220 and executing the following processes:
detecting the communication state between the BRAS controller and the communication terminal; if the communication between the BRAS controller and the BRAS controller is interrupted, acquiring user state information and user charging information during a communication terminal with the BRAS controller; and if the communication between the user and the BRAS controller is recovered, the user state information and the user charging information are sent to the BRAS controller.
A transceiver 1210 for receiving and transmitting data under the control of the processor 1200.
Where in fig. 12, the bus architecture may include any number of interconnected buses and bridges, with various circuits of one or more processors represented by processor 1200 and memory represented by memory 1220 being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 1210 may be a plurality of elements, including a transmitter and a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 1200 is responsible for managing the bus architecture and general processing, and the memory 1220 may store data used by the processor 1200 in performing operations.
The processor 1200 is responsible for managing the bus architecture and general processing, and the memory 1220 may store data used by the processor 1200 in performing operations.
The processor 1200 is further configured to read the computer program and execute the following steps:
for the users who are on line during the communication interruption between the users and the BRAS controller, recording the time of the communication interruption between the users on line and the BRAS controller, and storing and maintaining the real-time charging information of the users on line;
and for the user who is offline during the communication interruption period between the user and the BRAS controller, processing the offline control message of the user who is offline, and recording the offline duration and the flow charging information.
As shown in fig. 13, the communication device of the embodiment of the present invention includes:
a processor 1300, for reading the program in the memory 1320, for executing the following processes:
when the communication between the BRAS controller and the BRAS transponder is interrupted, receiving a state switching message of the BRAS controller, and entering a cyclic waiting state according to the state switching message; when the communication between the BRAS controller and the BRAS transponder is recovered, charging according to the notice of the BRAS controller; and in the circular waiting state, the AAA server keeps all data of the current user from updating or clearing, and suspends the charging. A transceiver 1310 for receiving and transmitting data under the control of the processor 1300.
In fig. 13, among other things, the bus architecture may include any number of interconnected buses and bridges with various circuits being linked together, particularly one or more processors represented by processor 1300 and memory represented by memory 1320. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 1310 can be a number of elements including a transmitter and a transceiver that provide a means for communicating with various other apparatus over a transmission medium. The processor 1300 is responsible for managing the bus architecture and general processing, and the memory 1320 may store data used by the processor 1300 in performing operations.
The processor 1300 is responsible for managing the bus architecture and general processing, and the memory 1320 may store data used by the processor 1300 in performing operations.
The processor 1300 is further configured to read the computer program and execute the following steps:
and receiving a Radius message sent by the BRAS controller, wherein the packet type of the Radius message is a first preset value.
The processor 1300 is further configured to read the computer program and execute the following steps:
for an online user during the communication interruption between a BRAS controller and a BRAS transponder, receiving a Radius charging request updating message sent by the BRAS controller, and charging the online user according to the Radius charging request updating message;
and for the user who is offline during the communication interruption between the BRAS controller and the BRAS transponder, receiving a Radius charging request ending message sent by the BRAS controller, ending the charging of the user who is offline according to the Radius charging request ending message, and switching from a circulating waiting state to a user offline state.
And the packet types of the Radius charging request updating message and the Radius charging request ending message are a second preset value.
The processor 1300 is further configured to read the computer program and execute the following steps:
when the communication between a BRAS controller and a BRAS transponder is interrupted, receiving the state holding duration sent by the BRAS controller;
and when the time of entering the circular waiting state exceeds the state holding time, finishing the charging.
A computer-readable storage medium of an embodiment of the present invention stores a computer program executable by a processor to implement:
detecting the communication state between the BRAS transponder and the BRAS transponder;
if the communication between the BRAS transponder and the BRAS transponder is interrupted, entering a circular waiting state, and sending a state conversion message to an AAA server to enable the AAA server to enter the circular waiting state;
if the communication between the BRAS transponder and the BRAS transponder is recovered, acquiring user state information and user charging information sent by the BRAS transponder, updating stored user data according to the user state information and the user charging information, and informing the AAA server of charging;
in the cyclic waiting state, the BRAS controller keeps all data of the current user from being updated and cleared; and the AAA server keeps all data of the current user from updating and clearing, and suspends charging.
Wherein, the sending the state transition message to the AAA server includes:
and sending a Radius message to the AAA server, wherein the packet type of the Radius message is a first preset value.
Wherein the notifying the AAA server of accounting comprises:
acquiring online users and offline users during the communication interruption with the BRAS repeater according to the user state information;
for an online user, sending a Radius charging request updating message to the AAA server, wherein the charging request updating message is used for updating the charging information of the online user to the AAA server so that the AAA server is switched from a circulating waiting state to a charging state and charges the online user;
and for the offline user, sending a Radius accounting request ending message to the AAA server, wherein the Radius accounting request ending message is used for informing the AAA server to end the accounting of the offline user, and switching from a circulating waiting state to a user offline state.
And the packet types of the Radius charging request updating message and the Radius charging request ending message are a second preset value.
Wherein the method further comprises:
and if the communication between the state maintaining time and the BRAS transponder is interrupted, sending the state maintaining time length to the AAA server.
A computer-readable storage medium of an embodiment of the present invention stores a computer program executable by a processor to implement:
detecting the communication state between the BRAS controller and the communication terminal;
if the communication between the BRAS controller and the BRAS controller is interrupted, acquiring user state information and user charging information during a communication terminal with the BRAS controller;
and if the communication between the user and the BRAS controller is recovered, the user state information and the user charging information are sent to the BRAS controller.
Wherein the acquiring of the subscriber status information and the subscriber billing information during the communication terminal with the BRAS controller comprises:
for the users who are on line during the communication interruption between the users and the BRAS controller, recording the time of the communication interruption between the users on line and the BRAS controller, and storing and maintaining the real-time charging information of the users on line;
and for the user who is offline during the communication interruption period between the user and the BRAS controller, processing the offline control message of the user who is offline, and recording the offline duration and the flow charging information.
A computer-readable storage medium of an embodiment of the present invention stores a computer program executable by a processor to implement:
when the communication between the BRAS controller and the BRAS transponder is interrupted, receiving a state switching message of the BRAS controller, and entering a cyclic waiting state according to the state switching message;
when the communication between the BRAS controller and the BRAS transponder is recovered, charging according to the notice of the BRAS controller;
and in the circular waiting state, the AAA server keeps all data of the current user from updating or clearing, and suspends the charging.
Wherein, the receiving the status switching message of the BRAS controller includes:
and receiving a Radius message sent by the BRAS controller, wherein the packet type of the Radius message is a first preset value.
Wherein, the charging according to the notice of the BRAS controller comprises:
for an online user during the communication interruption between a BRAS controller and a BRAS transponder, receiving a Radius charging request updating message sent by the BRAS controller, and charging the online user according to the Radius charging request updating message;
and for the user who is offline during the communication interruption between the BRAS controller and the BRAS transponder, receiving a Radius charging request ending message sent by the BRAS controller, ending the charging of the user who is offline according to the Radius charging request ending message, and switching from a circulating waiting state to a user offline state.
And the packet types of the Radius charging request updating message and the Radius charging request ending message are a second preset value.
Wherein the method further comprises:
when the communication between a BRAS controller and a BRAS transponder is interrupted, receiving the state holding duration sent by the BRAS controller;
and when the time of entering the circular waiting state exceeds the state holding time, finishing the charging.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the transceiving method according to various embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other media capable of storing program codes.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (20)

1. A charging synchronization method is applied to a Broadband Remote Access Server (BRAS) controller and comprises the following steps:
detecting the communication state between the BRAS transponder and the BRAS transponder;
if the communication between the BRAS transponder and the BRAS transponder is interrupted, entering a circular waiting state, and sending a state conversion message to an AAA server to enable the AAA server to enter the circular waiting state;
if the communication between the BRAS transponder and the BRAS transponder is recovered, acquiring user state information and user charging information sent by the BRAS transponder, updating stored user data according to the user state information and the user charging information, and informing the AAA server of charging;
in the cyclic waiting state, the BRAS controller keeps all data of the current user from being updated and cleared; the AAA server keeps all data of the current user not to be updated or reset, and suspends charging;
the informing the AAA server of accounting comprises:
acquiring online users and offline users during the communication interruption with the BRAS repeater according to the user state information;
for an online user, sending a Radius charging request updating message to the AAA server, wherein the charging request updating message is used for updating the charging information of the online user to the AAA server so that the AAA server is switched from a circulating waiting state to a charging state and charges the online user;
and for the offline user, sending a Radius accounting request ending message to the AAA server, wherein the Radius accounting request ending message is used for informing the AAA server to end the accounting of the offline user, and switching from a circulating waiting state to a user offline state.
2. The method of claim 1, wherein sending the state transition message to the AAA server comprises:
and sending a Radius message to the AAA server, wherein the packet type of the Radius message is a first preset value.
3. The method according to claim 1, wherein the packet types of the Radius charging request update packet and the Radius charging request end packet are a second preset value.
4. The method of claim 1, further comprising:
and if the communication between the AAA server and the BRAS transponder is interrupted, sending the state holding time length to the AAA server.
5. A charging synchronization method is applied to a BRAS repeater and comprises the following steps:
detecting the communication state between the BRAS controller and the communication terminal;
if the communication between the BRAS controller and the BRAS controller is interrupted, acquiring user state information and user charging information during a communication terminal with the BRAS controller;
if the communication between the BRAS controller and the BRAS controller is recovered, the user state information and the user charging information are sent to the BRAS controller;
the acquiring of the user state information and the user billing information during the communication terminal with the BRAS controller comprises:
for the users who are on line during the communication interruption between the users and the BRAS controller, recording the time of the communication interruption between the users on line and the BRAS controller, and storing and maintaining the real-time charging information of the users on line;
and for the user who is offline during the communication interruption period between the user and the BRAS controller, processing the offline control message of the user who is offline, and recording the offline duration and the flow charging information.
6. An accounting synchronization method applied to an AAA server includes:
when the communication between the BRAS controller and the BRAS transponder is interrupted, receiving a state switching message of the BRAS controller, and entering a cyclic waiting state according to the state switching message;
when the communication between the BRAS controller and the BRAS transponder is recovered, charging according to the notice of the BRAS controller;
in the cyclic waiting state, the AAA server keeps all data of the current user from updating and clearing, and stops charging;
the charging according to the notice of the BRAS controller comprises the following steps:
for an online user during the communication interruption between a BRAS controller and a BRAS transponder, receiving a Radius charging request updating message sent by the BRAS controller, and charging the online user according to the Radius charging request updating message;
and for the user who is offline during the communication interruption between the BRAS controller and the BRAS transponder, receiving a Radius charging request ending message sent by the BRAS controller, ending the charging of the user who is offline according to the Radius charging request ending message, and switching from a circulating waiting state to a user offline state.
7. The method of claim 6, wherein the receiving the status transition message of the BRAS controller comprises:
and receiving a Radius message sent by the BRAS controller, wherein the packet type of the Radius message is a first preset value.
8. The method according to claim 6, wherein the packet types of the Radius charging request update packet and the Radius charging request end packet are a second preset value.
9. The method of claim 6, further comprising:
when the communication between a BRAS controller and a BRAS transponder is interrupted, receiving the state holding duration sent by the BRAS controller;
and when the time of entering the circular waiting state exceeds the state holding time, finishing the charging.
10. A charging synchronization device is applied to a BRAS controller and comprises a processor and a transceiver;
the processor is used for detecting the communication state between the BRAS repeater and the processor;
if the communication between the AAA server and the BRAS transponder is interrupted, entering a circular waiting state, and sending a state switching message to an AAA server through the transceiver to enable the AAA server to enter the circular waiting state;
if the communication between the BRAS transponder and the BRAS transponder is recovered, acquiring user state information and user charging information sent by the BRAS transponder, updating stored user data according to the user state information and the user charging information, and informing the AAA server of charging through the transceiver;
in the cyclic waiting state, the BRAS controller keeps all data of the current user from being updated and cleared; the AAA server keeps all data of the current user not to be updated or reset, and suspends charging;
the processor is also configured to,
acquiring online users and offline users during the communication interruption with the BRAS repeater according to the user state information;
for an online user, sending a Radius charging request updating message to the AAA server through the transceiver, wherein the charging request updating message is used for updating the charging information of the online user to the AAA server so that the AAA server is switched from a circulating waiting state to a charging state and charges the online user;
and for the offline user, sending a Radius accounting request ending message to the AAA server through the transceiver, wherein the Radius accounting request ending message is used for informing the AAA server to end the accounting of the offline user, and switching from a circulating waiting state to a user offline state.
11. The apparatus of claim 10, wherein the processor is further configured to send a Radius packet to the AAA server through the transceiver, wherein a packet type of the Radius packet is a first preset value.
12. The apparatus of claim 10, wherein the packet types of the Radius charging request update packet and the Radius charging request end packet are a second preset value.
13. The apparatus of claim 10 wherein the processor is further configured to send a status hold duration to the AAA server via the transceiver if communication with the BRAS repeater is interrupted.
14. A charging synchronization device is applied to a BRAS repeater and comprises a processor and a transceiver;
the processor is used for detecting the communication state between the BRAS controller and the processor; if the communication between the BRAS controller and the BRAS controller is interrupted, acquiring user state information and user charging information during a communication terminal with the BRAS controller; if the communication between the BRAS controller and the BRAS controller is recovered, the user state information and the user charging information are sent to the BRAS controller through the transceiver;
for the users who are on line during the communication interruption between the users and the BRAS controller, recording the time of the communication interruption between the users on line and the BRAS controller, and storing and maintaining the real-time charging information of the users on line;
and for the user who is offline during the communication interruption period between the user and the BRAS controller, processing the offline control message of the user who is offline, and recording the offline duration and the flow charging information.
15. An accounting synchronization device, applied to an AAA server, comprises a processor and a transceiver;
the processor is used for receiving a state switching message of the BRAS controller through the transceiver when the communication between the BRAS controller and the BRAS transponder is interrupted, and entering a circular waiting state according to the state switching message; when the communication between the BRAS controller and the BRAS transponder is recovered, charging according to the notice of the BRAS controller;
in the cyclic waiting state, the AAA server keeps all data of the current user from updating and clearing, and stops charging;
the processor is also configured to,
for an online user during the communication interruption between a BRAS controller and a BRAS transponder, receiving a Radius charging request updating message sent by the BRAS controller, and charging the online user according to the Radius charging request updating message;
and for the user who is offline during the communication interruption between the BRAS controller and the BRAS transponder, receiving a Radius charging request ending message sent by the BRAS controller, ending the charging of the user who is offline according to the Radius charging request ending message, and switching from a circulating waiting state to a user offline state.
16. The apparatus of claim 15, wherein the processor is further configured to receive, through the transceiver, a Radius packet sent by the BRAS controller, wherein a packet type of the Radius packet is a first preset value.
17. The apparatus of claim 15, wherein the processor is further configured to determine packet types of the Radius charging request update packet and the Radius charging request end packet to be a second preset value.
18. The apparatus of claim 15, wherein the processor is further configured to,
when the communication between a BRAS controller and a BRAS transponder is interrupted, receiving a state holding duration sent by the BRAS controller through the transceiver;
and when the time of entering the circular waiting state exceeds the state holding time, finishing the charging.
19. A communication device, comprising: a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor; characterized in that the computer program realizes the steps in the method according to any one of claims 1 to 4 when executed by a processor; or which computer program, when being executed by a processor, carries out the steps of the method as claimed in claim 5; or which computer program, when being executed by a processor, carries out the steps of the method according to any one of claims 6 to 9.
20. A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the steps in the method according to any one of claims 1 to 4; or which computer program, when being executed by a processor, carries out the steps of the method as claimed in claim 5; or which computer program, when being executed by a processor, carries out the steps of the method of any one of claims 6 to 9.
CN201810133834.8A 2018-02-09 2018-02-09 Charging synchronization method, device and equipment Active CN110138572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810133834.8A CN110138572B (en) 2018-02-09 2018-02-09 Charging synchronization method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810133834.8A CN110138572B (en) 2018-02-09 2018-02-09 Charging synchronization method, device and equipment

Publications (2)

Publication Number Publication Date
CN110138572A CN110138572A (en) 2019-08-16
CN110138572B true CN110138572B (en) 2022-06-07

Family

ID=67567761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810133834.8A Active CN110138572B (en) 2018-02-09 2018-02-09 Charging synchronization method, device and equipment

Country Status (1)

Country Link
CN (1) CN110138572B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790961A (en) * 2012-06-29 2016-07-20 华为技术有限公司 Accounting information processing method and gateway device
CN106559292A (en) * 2015-09-29 2017-04-05 杭州华三通信技术有限公司 A kind of broad band access method and device
CN107040674A (en) * 2016-02-04 2017-08-11 华为技术有限公司 A kind of charging method, apparatus and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741746B (en) * 2009-12-11 2012-03-14 四川长虹电器股份有限公司 Method for realizing communication between two-way CAS gateway and user terminal based on IOCP
US9071449B2 (en) * 2012-08-07 2015-06-30 International Business Machines Corporation Charging and policy for services at the edge of a mobile data network
US9173117B2 (en) * 2013-05-02 2015-10-27 Telefonaktiebolaget L M Ericsson (Publ) Enhancing a mobile backup channel to address a node failure in a wireline network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790961A (en) * 2012-06-29 2016-07-20 华为技术有限公司 Accounting information processing method and gateway device
CN106559292A (en) * 2015-09-29 2017-04-05 杭州华三通信技术有限公司 A kind of broad band access method and device
CN107040674A (en) * 2016-02-04 2017-08-11 华为技术有限公司 A kind of charging method, apparatus and system

Also Published As

Publication number Publication date
CN110138572A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN108512703B (en) Backup method, device and equipment for BRAS transfer control separation and machine readable storage medium
CN108667695B (en) Backup method and device for BRAS transfer control separation
CN110572293B (en) Data message detection method, equipment and system
CN102185718B (en) System upgrading method and device
EP3208974A1 (en) Power line carrier communication terminal control device, system and method
JP5883743B2 (en) Method for reducing communication interruption time in packet communication networks
CN108667575B (en) Backup method and device for BRAS transfer control separation
US10469620B2 (en) Method for transferring a new software version to at least one electricity meter via a communication network
EP3879778A1 (en) Static route deployment method, device and system
CN111431787B (en) Tunnel establishment method and device and computer readable storage medium
CN108900441B (en) Network switching method, first electronic device and readable storage medium
CN106789279B (en) Gateway control method, remote control end control method and device
CN111886843A (en) Low power consumption Bluetooth network maintenance method, electronic device, Bluetooth network and medium
CN107222883B (en) Wireless controller backup method, backup switching method, device and system
CN108259442B (en) Slow protocol message processing method and related device
CN110138572B (en) Charging synchronization method, device and equipment
CN109728932A (en) Setting method, controller, interchanger and the computer readable storage medium of SDN
CN110830477B (en) Service identification method, device, gateway, system and storage medium
CN108429644A (en) network device management method, device and server
KR100315431B1 (en) Automatic Service Recovery Method on Network Management System
CN110784365A (en) Standby device of station control layer and entity device of transformer substation and automatic online method thereof
CN106302248B (en) Neighbor establishing method and device
CN106878051B (en) Multi-machine backup implementation method and device
CN115190168B (en) Edge server management system and server cluster
CN109088809A (en) Message processing method, network server and virtual private network system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant