CN108933873B - User data synchronization method and device - Google Patents

User data synchronization method and device Download PDF

Info

Publication number
CN108933873B
CN108933873B CN201810589768.5A CN201810589768A CN108933873B CN 108933873 B CN108933873 B CN 108933873B CN 201810589768 A CN201810589768 A CN 201810589768A CN 108933873 B CN108933873 B CN 108933873B
Authority
CN
China
Prior art keywords
main
standby
traffic information
user traffic
user
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
CN201810589768.5A
Other languages
Chinese (zh)
Other versions
CN108933873A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201810589768.5A priority Critical patent/CN108933873B/en
Publication of CN108933873A publication Critical patent/CN108933873A/en
Application granted granted Critical
Publication of CN108933873B publication Critical patent/CN108933873B/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/1432Metric aspects
    • H04L12/1435Metric aspects volume-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/70Administration or customization aspects; Counter-checking correct charges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/82Criteria or parameters used for performing billing operations
    • H04M15/8214Data or packet based

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a synchronization method and a device of user data, which relate to the field of communication, wherein the method is applied to a main forwarding plane (UP), and the method comprises the following steps: when a main/standby exchange instruction is received, acquiring reference user flow information; the reference user traffic information at least includes difference user traffic information which is monitored by the main UP and is not reported to the control plane CP; and sending the reference user traffic information to the standby UP so that the standby UP can report the reference user traffic information to the CP. Thus, the flow of CP during counting and charging includes the difference value user flow information which is not reported when main UP is switched between main and standby, thereby reducing the error value of the user flow information counted by CP before and after switching between main and standby, and improving the accuracy of counting and charging user flow information by CP before and after switching between main and standby.

Description

User data synchronization method and device
Technical Field
The present application relates to the field of technologies, and in particular, to a method and an apparatus for synchronizing user data.
Background
Compared with the BRAS device with the close coupling of the traditional forwarding plane and the control plane, the BRAS device has the advantages that the utilization rate of the UP is improved, the operation and maintenance of the CP are simplified, and the new charging service of the CP can be rapidly brought on line.
In the BRAS device with separated transfer control, in order to ensure high reliability of the forwarding service, a UP backup networking is usually adopted, the backup networking includes a main UP and a standby UP, and the main UP and the standby UP include the same user table entry. When the main UP works normally, the user flow of each user managed by the user list item is monitored, the monitored user flow information is transferred to the CP at a certain speed, the CP carries out flow statistics and charging, and meanwhile, the main UP transfers the user flow to ensure that the user service is normal. When the main UP and standby UP are switched due to the link failure of the main UP and the CP, the CP synchronizes the user traffic information reported successfully by the original main UP to the standby UP, and after the main UP and standby switching is completed, the standby UP continues to work as a new main UP with the user traffic information synchronized by the CP as a base value.
However, when the primary/secondary switching occurs, if the user traffic information processed by the original primary UP is large or a large number of users exist, the accuracy of traffic statistics and charging of the CP after the primary/secondary switching is seriously affected.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method and an apparatus for synchronizing user data, so as to improve accuracy of statistics and charging of user traffic information performed by a control plane CP before and after active/standby switching.
In a first aspect, an embodiment of the present application provides a method for synchronizing user data, which is applied to a main forwarding plane UP, and includes:
if a main/standby exchange instruction is received, acquiring reference user flow information; the reference user traffic information includes difference user traffic information which is monitored by the main UP and is not reported to the control plane CP;
and sending the reference user traffic information to the standby UP so that the standby UP can report the reference user traffic information to the CP.
In a second aspect, an embodiment of the present application further provides a method for synchronizing user data, where the method is applied to a standby forwarding plane UP, and includes:
receiving reference user traffic information sent by a main forwarding plane (UP), wherein the reference user traffic information comprises differential user traffic information which is monitored by the main UP when receiving a main/standby switching instruction and is not reported to a Control Plane (CP);
and reporting the reference user flow information to the CP so that the CP carries out flow statistics and charging processing based on the reference user flow information.
In a third aspect, an embodiment of the present application further provides a device for synchronizing user data, including:
the acquisition module is used for acquiring the reference user flow information when receiving the main/standby switching instruction; the reference user traffic information includes difference user traffic information which is monitored by the main UP and is not reported to the control plane CP;
and the first sending module is used for sending the reference user traffic information to the standby UP so that the standby UP can report the reference user traffic information to the CP.
In a fourth aspect, an embodiment of the present application further provides a device for synchronizing user data, including:
a receiving module, configured to receive reference user traffic information sent by a main forwarding plane UP, where the reference user traffic information includes difference user traffic information that is monitored by the main UP when receiving a main/standby switching instruction and is not reported to a control plane CP;
and the reporting module is used for reporting the reference user flow information to the CP so that the CP can carry out flow statistics and charging processing based on the reference user flow information.
In the method and apparatus for synchronizing user data provided in the embodiment of the present application, when receiving a main/standby switching instruction, a main UP obtains reference user traffic information that at least includes difference user traffic information that is monitored in a current period and is not reported to a control plane CP, and reports the reference user traffic information to the control plane CP through the main UP. Thus, the flow of CP during counting and charging includes the difference value user flow information which is not reported when main UP is switched between main and standby, thereby reducing the error value of the user flow information counted by CP before and after switching between main and standby, and improving the accuracy of counting and charging user flow information by CP before and after switching between main and standby.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a schematic structural diagram of a backup networking of a transfer control separation BRAS device provided in an embodiment of the present application.
Fig. 2 shows a flowchart of a method for synchronizing user data according to an embodiment of the present application.
Fig. 3 is a flowchart illustrating another method for synchronizing user data according to an embodiment of the present disclosure.
Fig. 4 is a flowchart illustrating another method for synchronizing user data according to an embodiment of the present disclosure.
Fig. 5 is a flowchart illustrating another method for synchronizing user data according to an embodiment of the present disclosure.
Fig. 6 is a flowchart illustrating another method for synchronizing user data according to an embodiment of the present disclosure.
Fig. 7 shows an application scenario diagram of a backup networking of a transfer control separation BRAS device according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram illustrating a device for synchronizing user data according to an embodiment of the present application.
Fig. 9 is a schematic structural diagram illustrating a device for synchronizing user data according to an embodiment of the present application.
Fig. 10 shows a schematic structural diagram of a computer device 40 provided in an embodiment of the present application.
Fig. 11 shows a schematic structural diagram of a computer device 50 provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, a schematic structural diagram of a backup networking of a relay and release BRAS (BRAS device) provided in this embodiment of the present application includes: main user plane/forwarding plane (UP), standby UP, Management and organization (MANO), and Control Plane (CP); wherein, the main UP and the standby UP pre-store the same user table entry. When the networking normally works, the main UP monitors the user traffic of each user managed by the user table entry, and when the user traffic changes, the main UP reports the corresponding user traffic information to the CP at a preset rate, and meanwhile, the main UP is also used for forwarding the user flow direction, namely forwarding the user flow direction of the user side to the destination side and forwarding the user traffic returned by the destination side to the user side; the user flow information refers to the traffic generated by the user accessing the network. And after receiving the user flow information reported by the main UP, the CP carries out flow statistics and charging. When the MANO detects the link failure of the main UP and the CP, the MANO sends a main-standby switching command to the main UP, the CP and the standby UP respectively for performing main-standby switching between the main UP and the standby UP, and after the main-standby switching is completed, the standby UP is used as a new main UP to monitor user traffic and report the work of monitoring user traffic information and forwarding the user traffic to the CP when the user traffic changes.
In the process of primary-secondary switching, the following two mechanisms are added in the embodiment of the application to reduce the error value of the user traffic information counted by the CP before and after the primary-secondary switching and improve the accuracy of counting and charging the user traffic information by the control plane CP before and after the primary-secondary switching, and the two mechanisms are as follows:
1. after the main UP successfully reports the user traffic information to the CP each time, a piece of successfully reported user traffic information (hereinafter, referred to as first user traffic information) is locally stored, where after the main UP successfully reports the user traffic information to the CP for multiple times, the successfully reported user traffic information at the next time replaces the successfully reported user traffic information at the previous time. Meanwhile, when the main UP switches between main and standby (that is, when a main/standby switching command sent by the MANO is received), user traffic information monitored at the current time point is stored, and the user traffic information is user traffic information monitored in the current period (hereinafter, referred to as second user traffic information).
2. A link for detection is added between the main UP and the standby UP, and data can be transmitted between the main UP and the standby UP through the link. Here, the link Detection mode may be implemented by a network protocol (Bidirectional Forwarding Detection, bfd) for detecting a fault between two Forwarding points, and bfd is in a suppression state under a normal condition. The following describes a method and an apparatus for synchronizing user data according to an embodiment of the present application based on two additional mechanisms.
As shown in fig. 2, a synchronization method for user data provided in an embodiment of the present application is applied to a main forwarding plane UP, and the method includes:
s101, if a main/standby exchange instruction is received, acquiring reference user flow information; wherein, the reference user traffic information includes difference user traffic information monitored by the main UP but not reported to the control plane CP.
In the embodiment of the present application, after detecting a link failure between a main UP and a CP, a MANO may issue a main/standby switching instruction to the main UP, a standby UP, and the CP, and after receiving the main/standby switching instruction, the standby UP may send a detection message (specifically, a detection message) to the main UP, and if receiving the detection message, the main UP may feed back a response message to the standby UP. After receiving the response information fed back by the main UP, the standby UP confirms that the link detection between the standby UP and the main UP is successful, at this time, the standby UP sends flow request information to the main UP, and after receiving the flow request information, the main UP synchronizes the acquired reference user flow information to the standby UP through the link which is successful in detection.
Here, the reference user traffic information may be difference user traffic information that is monitored by the main UP in the current period and is not reported to the control plane CP, or may be second user traffic information that is stored by the main UP and monitored when the main-standby switching instruction is received (where the second user traffic information includes the difference user traffic information and first user traffic information that is reported to the CP in the current period).
In the embodiment of the present application, the number of users managed by the user entry of the main UP is multiple, and when monitoring that the user traffic changes, the main UP reports the corresponding user traffic information to the CP at a preset rate. For example, when the number of users managed by the main UP is 10, and the rate at which the main UP reports the user traffic information to the CP is 2 users/s (that is, the main UP reports the user traffic information of two users to the CP within 1 s), then the user traffic information upload period of the main UP is 5s (that is, the main UP can report all the user traffic information of 10 users to the CP within 5 s). When the user traffic of 10 users changes, in the first 5s period (i.e., from 1 st to 5 th), the main UP reports the user traffic information of the user 1 and the user 2 to the CP in the 1 st s, the main UP reports the user traffic information of the user 3 and the user 4 to the CP in the 2 nd s, and so on, and the main UP reports the user traffic information of the user 9 and the user 10 to the CP in the 5 th s. In practice, when the main UP reports the user traffic information after the 2 nd s, the user traffic of the user 1 and the user 2 may continue to change, and so on, when the main UP reports the user traffic information at the 5 th s, the user traffic of the user 1 to the user 8 may continue to change. Thus, in the second 5s period (i.e. in the 6 th to 10 th s), the main UP first reports the user traffic information of the user 1 and the user 2 monitored in the current period at the 6 th s, and reports the user traffic information of the user 3 and the user 4 monitored in the current period at the 7 th s, at this time, the user traffic of the user 1 and the user 2 may still change, if the main UP is switched between the main and standby at the 8 th s, the difference user traffic information at this time includes the user traffic information of the user 5 to the user 10 monitored in the current period and the user traffic information of the user 1 to the user 4 monitored in the current period. The second user traffic information includes the user traffic information reported to the CP by the users 1 to 10 currently (at the 8 th time) and the difference user traffic information.
S102, sending the reference user flow information to the standby UP so that the standby UP can report the reference user flow information to the CP.
Here, if the traffic request information sent by the standby UP is used to request the differential user traffic information, the main UP reports the acquired differential user traffic information to the CP. If the traffic request information sent by the main UP is used for requesting the second user traffic information, the main UP reports the acquired second user traffic information to the CP.
Further, in the synchronization method for user data provided in the embodiment of the present application, the reference user traffic information further includes first user traffic information that has been reported to the CP; the reference user traffic information is second user traffic information stored by the main UP and monitored when the main-standby switching instruction is received. Correspondingly, step 102 sends the reference user traffic information to the standby UP, including:
and if the traffic request information sent by the standby UP is received within the time period from the receiving of the main/standby exchange instruction to the completion of the main/standby switching, sending reference user traffic information including the first user traffic information and the difference user traffic information to the standby UP.
In the embodiment of the application, when the main UP receives the main/standby switching instruction, the stored second user traffic information monitored when the main/standby switching instruction is received is firstly acquired, and if the detection message and the traffic request message from the standby UP are received before the main/standby switching is completed, the acquired second user traffic information is directly synchronized to the standby UP, so that the accuracy of counting and charging the user traffic information by the control plane CP before and after the main/standby switching is improved, and the response speed of the standby UP is improved.
If the main UP receives the detection message from the standby UP after the main-standby switching is completed, the main UP synchronizes the differential value user traffic information which is monitored in the current period and is not reported to the control plane CP to the standby UP after receiving the traffic request message. After receiving the traffic request message overtime, the primary UP synchronizes differential user traffic information to the backup UP because the backup UP has already obtained first user traffic information reported to the CP from the CP as a new primary UP after the primary-backup switching is completed, and monitors the updated traffic of the user based on the first user traffic information.
Further, as shown in fig. 3, in the synchronization method for user data provided in this embodiment of the present application, when the reference user traffic information may also be difference user traffic information that is monitored by the main UP but is not reported to the control plane CP, step 101 obtains the reference user traffic information, where the step includes:
s201, acquiring stored first user traffic information reported to the CP and stored monitored second user traffic information; wherein the second user traffic information comprises the first user traffic information and the difference user traffic information;
in this embodiment of the present application, when receiving a primary/secondary switching instruction, a primary UP first acquires second user traffic information monitored in a current period, and if a detection message sent by a secondary UP is not received before the primary/secondary switching is completed, acquires first user traffic information that has been reported to a CP in the current period.
Or, when receiving the primary/secondary switching command, the primary UP simultaneously obtains the first user traffic information reported to the CP in the current period and the stored second user traffic information monitored in the current period.
S202, according to the first user traffic information and the second user traffic information, determining difference value user traffic information which is monitored by the main UP and is not reported to a control plane CP as the reference user traffic information.
In this embodiment, the second user traffic information includes the first user traffic information and the difference user traffic information. After acquiring the first user traffic information and the second user traffic information, the main UP calculates a difference value between a user traffic value in the first user traffic information and a user traffic value in the second user traffic information, and uses the difference value user traffic information corresponding to the difference value as reference user traffic information.
As an implementation manner, if the main UP receives the detection message and the traffic request information from the standby UP after the main/standby switching is completed, the acquired differential value user traffic information is synchronized to the standby UP. Here, the contents of the traffic request messages sent by the standby UP before the completion of the primary-secondary switching and after the completion of the primary-secondary switching are different, the request message before the completion of the primary-secondary switching is used for requesting the second user traffic information, and the request message after the completion of the primary-secondary switching is used for requesting the difference user traffic information.
In addition, in this embodiment of the present application, as another implementation manner, no matter whether the main UP receives traffic request information from the standby UP before the main-standby switching is completed or receives traffic request information from the standby UP after the main-standby switching is completed, the main UP synchronizes the differential value user traffic information to the standby UP. Here, the traffic request information sent by the main UP includes the same contents, and is used for requesting the differential user traffic information.
In the method for synchronizing user data provided by the embodiment of the application, when a main UP receives a main/standby switching instruction, the main UP obtains reference user flow information at least including differential user flow information which is monitored in a current period and is not reported to a control plane CP, and reports the reference user flow information to the control plane CP through the standby UP, so that the flow for counting and charging of the CP includes the differential user flow information which cannot be reported when the main UP is switched between the main and standby, thereby reducing the error value of the user flow information counted by the CP before and after the main/standby switching, and improving the accuracy of counting and charging of the user flow information by the control plane CP before and after the main/standby switching.
As shown in fig. 4, an embodiment of the present application further provides a method for synchronizing user data, where the method is applied to a standby forwarding plane UP, and the method includes:
s301, receiving reference user traffic information sent by a main forwarding plane UP, wherein the reference user traffic information comprises difference value user traffic information which is monitored by the main UP when receiving a main/standby switching instruction and is not reported to a control plane CP.
In a specific embodiment, after detecting a link failure between a main UP and a CP, a MANO may issue a main/standby switching command to the main UP, a standby UP, and the CP, and after receiving the main/standby switching command, the standby UP may send a detection message (specifically, a detection message) to the main UP, and if receiving the detection message, the main UP may feed back a response message to the standby UP. After receiving the response information fed back by the main UP, the standby UP confirms that the link detection between the standby UP and the main UP is successful, at this time, the standby UP sends flow request information to the main UP, and after receiving the flow request information, the main UP synchronizes the acquired reference user flow information to the standby UP through the link.
In this embodiment, the reference user traffic information may be the difference user traffic information, or may be second user traffic information (where the second user traffic information includes the difference user traffic information) stored by the main UP and monitored when the main-standby switching instruction is received.
S302, reporting the reference user flow information to the CP, so that the CP carries out flow statistics and charging processing based on the reference user flow information.
In the embodiment of the application, after receiving the reference user traffic information, the standby UP can directly report the reference user traffic information to the reference user traffic information. Or, based on the received reference user traffic information and the updated user traffic information in the current period, the actual user traffic information that needs to be reported to the control plane CP in the current period is counted, and then the actual user traffic information is reported to the CP.
Further, as shown in fig. 5, when the reference user traffic information is the difference user traffic information, in the method for synchronizing user data provided in the embodiment of the present application, step S302 of reporting the reference user traffic information to the CP includes:
s401, sending flow request information to the CP, wherein the flow request information is used for requesting the main UP to report user flow information to the CP.
In the embodiment of the application, after receiving the main/standby switching command, the standby UP sends a detection message to the main UP and requests the CP for reporting user traffic information to the CP for the last time by the main UP.
After receiving the user traffic information reported by the main UP which normally works in each period, the CP replaces the user traffic information which is reported successfully in the previous period on the CP with the user traffic information received in the current period. Therefore, after receiving the primary/secondary switching command, the CP stores the user traffic information reported by the primary UP, which is reported by the primary UP for the last time.
Here, the user traffic information reported to the CP by the main UP for the last time is the user traffic information reported to the CP by the main UP in the current period of receiving the main/standby switching instruction.
S402, counting the actual user flow information which needs to be reported to the control plane CP in the current period based on the reported user flow information, the difference value user flow information in the reference user flow information and the updated user flow information.
After receiving reported user traffic information returned by the CP and switching to a new main UP, the standby UP monitors updated user traffic information of users managed by its own user table entry in the current period, and increases the updated user traffic information monitored in the current period on the basis that the sum of the reported user traffic information and the difference user traffic information is a base value, to obtain actual user traffic information that needs to be reported to the control plane CP in the current period.
And S403, reporting the actual user traffic information to the CP.
Here, the CP updates the stored historical user traffic information after receiving the actual user traffic information.
Further, as shown in fig. 6, in the synchronization method for user data provided in this embodiment of the present application, the reference user traffic information further includes user traffic information reported to the CP by the main UP, where the reference user traffic information is second user traffic information monitored by the main UP when receiving the main/standby switching instruction; step S302, reporting the reference user traffic information to the CP, including:
s501, counting the actual user traffic information required to be reported to the control plane CP in the current period based on the reference user traffic information including the reported user traffic information and the difference user traffic information and the updated user traffic information.
After receiving the second user traffic information synchronized with the main UP and switching to a new main UP, the standby UP monitors the updated user traffic information of the user managed by its user table entry in the current period, increases the updated user traffic information monitored in the current period on the basis of taking the second user traffic information as a base value, and counts to obtain the actual user traffic information required to be reported to the control plane CP in the current period.
And S502, reporting the actual user flow information to the CP.
Here, the CP updates the stored historical user traffic information after receiving the actual user traffic information.
In the method for synchronizing user data provided by the embodiment of the application, when a main UP receives a main/standby switching instruction, the main UP obtains reference user flow information at least including differential user flow information which is monitored in a current period and is not reported to a control plane CP, and reports the reference user flow information to the control plane CP through the standby UP, so that the flow for counting and charging of the CP includes the differential user flow information which cannot be reported when the main UP is switched between the main and standby, thereby reducing the error value of the user flow information counted by the CP before and after the main/standby switching, and improving the accuracy of counting and charging of the user flow information by the control plane CP before and after the main/standby switching.
In fig. 7, UP1 is the main UP, UP2 is the standby UP, UP1 is connected to CP through core router CR (CR) 1 and the switch, UP2 is connected to CP through CR2 and the UP1 and UP2 may be connected directly or through CR1, CR2 and the switch. Wherein:
after receiving a main/standby switching instruction sent by the MANO, the UP1 returns response information of the received main/standby switching instruction to the MANO; at the same time, UP1 also reports the stored second user traffic information to the CP and informs the CP to synchronize the second user traffic information to the standby UP. If the UP1 receives traffic request information from the UP2 before the master-slave switching is completed, synchronizing the stored second user traffic information to the UP2, and if the UP1 receives traffic request information from the UP2 after the master-slave switching is completed, synchronizing the difference value user traffic information of the second user traffic information from the first user traffic information reported to the CP in the current period to the UP 2.
After receiving the main/standby switching command sent by the MANO, the UP2 sends a probe message to the UP1, and if response information from the UP1 for the probe message is received before the main/standby switching is completed, sends first traffic request information for requesting second user traffic information to the UP 1. After receiving the UP1 synchronized second user traffic information, the UP2 stops sending the detection message to the UP1 (i.e., closes the detection mechanism), counts the actual user traffic information that needs to be reported to the control plane CP in the current period by using the second user traffic information as a base value, and sends the actual user traffic information counted in the current period to the CP. UP2, upon receiving the master-slave switching command sent by the MANO, also sends second traffic request information to the CP requesting the first user traffic information, after receiving the first user traffic information sent by the CP, if the response information from the UP1 for the probe message is not received before the active/standby switching is completed, the probe message is continuously sent to the UP1 until the response information from the UP1 for the probe message is received, a third request information for requesting the differential user traffic information is sent to the UP1, after receiving the difference user traffic information returned by the UP1, stopping sending the detection message to the UP1 (i.e. closing the detection mechanism), and meanwhile, counting the actual user flow information which needs to be reported to the control plane CP in the current period by taking the first user flow information and the difference value user flow information as basic values, and counting the actual user flow information counted in the current period to the CP.
After receiving a main/standby switching instruction sent by a MANO, a CP changes its own configuration information into configuration information matching a new main UP to be switched to (specifically, changes the configuration of a tunnel module, i.e., changes a tunnel with an original main UP into a tunnel with the new main UP), and if receives second traffic request information from UP1 for requesting first user traffic information, synchronizes the first user traffic information successfully reported by UP1 to UP2, and at the same time, sends first traffic request information for requesting second user traffic information to UP1, and after receiving the second user traffic information synchronized by UP1, stops sending a detection message (i.e., closes a detection mechanism) to UP1, and counts actual user traffic information required to be reported to a control plane CP in a current period with the second user traffic information as a base value.
In the method for synchronizing user data provided by the embodiment of the application, when a main UP receives a main/standby switching instruction, the main UP obtains reference user flow information at least including differential user flow information which is monitored in a current period and is not reported to a control plane CP, and reports the reference user flow information to the control plane CP through the standby UP, so that the flow for counting and charging of the CP includes the differential user flow information which cannot be reported when the main UP is switched between the main and standby, thereby reducing the error value of the user flow information counted by the CP before and after the main/standby switching, and improving the accuracy of counting and charging of the user flow information by the control plane CP before and after the main/standby switching.
It should be noted that, when detecting a link failure of UP1 by a MANO, whether the link between UP1 and a user side is disconnected or detecting a link between UP1 and a CP is disconnected, the MANO is a primary/secondary exchange instruction sent to UP1, UP2 and the CP, and the UP1 does not know a specific link failure point when receiving the primary/secondary exchange instruction, so the UP1 reports the second user traffic information to the CP when receiving the primary/secondary exchange instruction, and if a failure problem occurs between UP1 and the user side, the UP1 can successfully report the second user traffic information to the CP, and because a failure occurs between UP1 and the user side, the UP1 does not monitor updated user traffic information when receiving the primary/secondary exchange instruction, and therefore, the second user traffic information is the same as the first user traffic information.
At this time, after the link probing between the UP1 and the UP2 is successful, the UP1 may synchronize the second user traffic information to the UP2 through the probing link, and the UP2 does not need to request the second user traffic information to the CP after receiving the second user traffic information synchronized with the UP 1. Correspondingly, if the link probing between the UP1 and the UP2 fails, the UP1 may report the second user traffic information to the CP, which is synchronized by the CP to the UP2, and the UP2 continues to operate based on the CP-synchronized second user traffic information.
As shown in fig. 8, a synchronization apparatus for user data according to a fourth embodiment of the present application is configured to execute a synchronization method for user data according to the first embodiment, and includes:
an obtaining module 11, configured to obtain reference user traffic information when receiving a primary/secondary switching instruction; the reference user traffic information includes difference user traffic information which is monitored by the main UP and is not reported to the control plane CP;
a first sending module 12, configured to send the reference user traffic information to the standby UP, so that the standby UP reports the reference user traffic information to the CP.
Optionally, in the synchronization apparatus for user data provided in this embodiment of the present application, the reference user traffic information further includes first user traffic information that has been reported to the CP; the first sending module 12 is specifically configured to:
and if the traffic request information sent by the standby UP is received within the time period from the receiving of the main/standby exchange instruction to the completion of the main/standby switching, sending reference user traffic information including the first user traffic information and the difference user traffic information to the standby UP.
Optionally, in the synchronization apparatus for user data provided in the embodiment of the present application, the obtaining module 11 is specifically configured to:
acquiring stored first user traffic information reported to the CP and stored monitored second user traffic information; wherein the second user traffic information comprises the first user traffic information and the difference user traffic information;
and determining the difference value user traffic information which is monitored by the main UP and is not reported to the control plane CP as the reference user traffic information according to the first user traffic information and the second user traffic information.
As shown in fig. 9, a synchronization apparatus for user data according to a fifth embodiment of the present application is configured to execute a synchronization method for user data according to a second embodiment, and includes:
a receiving module 21, configured to receive reference user traffic information sent by a main forwarding plane UP, where the reference user traffic information includes difference user traffic information that is monitored by the main UP when receiving a main/standby switching instruction and is not reported to a control plane CP;
a reporting module 22, configured to report the reference user traffic information to the CP, so that the CP performs traffic statistics and charging processing based on the reference user traffic information.
Optionally, in the synchronization apparatus for user data provided in this embodiment of the present application, the reporting module 22 is specifically configured to:
sending flow request information to the CP, wherein the flow request information is used for requesting the main UP to report user flow information to the CP;
counting the actual user flow information which needs to be reported to the control plane CP in the current period based on the reported user flow information, the difference value user flow information in the reference user flow information and the updated user flow information;
and reporting the actual user flow information to the CP.
Optionally, in the synchronization apparatus for user data provided in this embodiment of the present application, the reference user traffic information further includes user traffic information reported to the CP by the main UP; the reporting module 22 is specifically configured to:
counting the actual user flow information which needs to be reported to the control plane CP in the current period based on the reference user flow information and the updated user flow information which comprise the reported user flow information and the difference value user flow information;
and reporting the actual user flow information to the CP.
In the synchronization apparatus for user data provided in the embodiment of the present application, when receiving a primary/secondary switching instruction, a primary UP obtains reference user traffic information at least including differential user traffic information that is monitored in a current period and is not reported to a control plane CP, and reports the reference user traffic information to the control plane CP through the primary UP, so that traffic for which statistics and charging are performed by the CP includes the differential user traffic information that cannot be reported when the primary/secondary switching occurs in the primary/secondary switching, thereby reducing a user traffic information error value of CP statistics before and after the primary/secondary switching, and improving accuracy of statistics and charging of user traffic information by the control plane CP before and after the primary/secondary switching.
Fig. 10 is a schematic structural diagram of a computer device 40 according to an embodiment of the present application, and as shown in fig. 10, the computer device is configured to execute a synchronization method of the user data in fig. 2, and the device includes a memory 401, a processor 402, and a computer program stored in the memory 401 and executable on the processor 402, where the processor 402 implements the steps of the synchronization method of the user data when executing the computer program.
Specifically, the memory 401 and the processor 402 can be general-purpose memory and processor, and are not limited to specific examples, and the processor 402 can execute the user data synchronization method when executing the computer program stored in the memory 401.
Corresponding to the user data synchronization method in fig. 2, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs the steps of the user data synchronization method.
In particular, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, etc., and the computer program on the storage medium can be executed when being executed to perform the above-mentioned synchronization method for user data.
Fig. 11 is a schematic structural diagram of a computer device 50 according to an embodiment of the present application, and as shown in fig. 11, the computer device is configured to execute a synchronization method of user data in fig. 4, where the device includes a memory 501, a processor 502, and a computer program stored in the memory 501 and executable on the processor 502, where the processor 502 implements the steps of the synchronization method of user data when executing the computer program.
Specifically, the memory 501 and the processor 502 can be general-purpose memory and processor, and are not limited to specific examples, and the processor 502 can execute the user data synchronization method when executing the computer program stored in the memory 501.
Corresponding to the user data synchronization method in fig. 4, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program performs the steps of the user data synchronization method.
In particular, the storage medium can be a general-purpose storage medium, such as a removable disk, a hard disk, etc., and the computer program on the storage medium can be executed when being executed to perform the above-mentioned synchronization method for user data.
The synchronization device for user data provided by the embodiment of the present application may be specific hardware on the device, or software or firmware installed on the device, and the like. The device provided by the embodiment of the present application has the same implementation principle and technical effect as the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments where no part of the device embodiments is mentioned. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the foregoing systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of 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 of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present application, and are used for illustrating the technical solutions of the present application, but not limiting the same, and the scope of the present application is not limited thereto, and although the present application is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope disclosed in the present application; such modifications, changes or substitutions do not depart from the spirit and scope of the present disclosure, which should be construed in light of the above teachings. Are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A synchronization method of user data is characterized in that the method is applied to a main forwarding plane UP, a detection link is included between the main UP and a standby UP, and the detection link is in a suppression state under the condition that the main UP normally operates; after receiving the main-standby exchange command, the standby UP sends a detection message to the main UP; the synchronization method comprises the following steps:
if the detection message is received, feeding back response information to the standby UP; after receiving the response information fed back by the main UP, the standby UP confirms that the link detection with the main UP is successful;
if a main/standby exchange instruction is received, acquiring reference user flow information; the reference user traffic information includes difference user traffic information which is monitored by the main UP and is not reported to the control plane CP;
sending the reference user traffic information to a standby UP through the detection link, so that the standby UP reports the reference user traffic information to the CP;
the reference user flow information also comprises first user flow information reported to the CP; the sending the reference user traffic information to the standby UP through the probing link includes:
if the traffic request information sent by the standby UP is received within the time period from the receiving of the main/standby switching instruction to the completion of the main/standby switching, sending reference user traffic information including the first user traffic information and the difference user traffic information to the standby UP through the detection link;
and if receiving the traffic request information sent by the standby UP after the completion of the main/standby switching, synchronizing the differential value user traffic information which is monitored in the current period and is not reported to the control plane CP to the standby UP through the detection link.
2. The method for synchronizing user data according to claim 1, wherein the obtaining of the reference user traffic information includes:
acquiring stored first user traffic information reported to the CP and stored monitored second user traffic information; wherein the second user traffic information comprises the first user traffic information and the difference user traffic information;
and determining the difference value user traffic information which is monitored by the main UP and is not reported to the control plane CP as the reference user traffic information according to the first user traffic information and the second user traffic information.
3. A synchronization method of user data is characterized in that the method is applied to a standby forwarding plane UP; the method comprises the steps that a detection link is arranged between a main UP and a standby UP, and the detection link is in a suppression state under the condition that the main UP normally operates; after receiving the main-standby exchange command, the standby UP sends a detection message to the main UP, and after receiving a response message fed back by the main UP, the standby UP confirms that the link detection with the main UP is successful; the synchronization method comprises the following steps:
receiving reference user traffic information sent by a main forwarding plane (UP), wherein the reference user traffic information comprises differential user traffic information which is monitored by the main UP when receiving a main/standby switching instruction and is not reported to a Control Plane (CP); wherein the content of the first and second substances,
reporting the reference user flow information to the CP so that the CP carries out flow statistics and charging processing based on the reference user flow information;
if the main UP receives a main/standby exchange command, acquiring reference user flow information; the reference user traffic information includes difference user traffic information which is monitored by the main UP and is not reported to the control plane CP; sending the reference user traffic information to a standby UP through the detection link, so that the standby UP reports the reference user traffic information to the CP;
the reference user flow information also comprises first user flow information reported to the CP; the sending the reference user traffic information to the standby UP through the probing link includes:
if the traffic request information sent by the standby UP is received within the time period from the receiving of the main/standby switching instruction to the completion of the main/standby switching, sending reference user traffic information including the first user traffic information and the difference user traffic information to the standby UP through the detection link;
and if receiving the traffic request information sent by the standby UP after the completion of the main/standby switching, synchronizing the differential value user traffic information which is monitored in the current period and is not reported to the control plane CP to the standby UP through the detection link.
4. The method according to claim 3, wherein the reporting the reference user traffic information to the CP comprises:
sending flow request information to the CP, wherein the flow request information is used for requesting the main UP to report user flow information to the CP;
counting the actual user flow information which needs to be reported to the control plane CP in the current period based on the reported user flow information, the difference value user flow information in the reference user flow information and the updated user flow information;
and reporting the actual user flow information to the CP.
5. The method of claim 3, wherein the reference user traffic information further includes reported user traffic information reported by the main UP to the CP; reporting the reference user traffic information to the CP, further comprising:
counting the actual user flow information which needs to be reported to the control plane CP in the current period based on the reference user flow information and the updated user flow information which comprise the reported user flow information and the difference value user flow information;
and reporting the actual user flow information to the CP.
6. A synchronization device of user data is characterized in that the synchronization device is applied to a main forwarding plane (UP), a detection link is included between the main UP and a standby UP, and the detection link is in a suppression state under the condition that the main UP normally operates; after receiving the main-standby exchange command, the standby UP sends a detection message to the main UP; the synchronization device includes:
a feedback module, configured to feed back response information to the standby UP if the detection message is received; after receiving the response information fed back by the main UP, the standby UP confirms that the link detection with the main UP is successful;
the acquisition module is used for acquiring the reference user flow information when receiving the main/standby switching instruction; the reference user traffic information includes difference user traffic information which is monitored by the main UP and is not reported to the control plane CP;
a first sending module, configured to send the reference user traffic information to a standby UP through the detection link, so that the standby UP reports the reference user traffic information to the CP;
the reference user flow information also comprises first user flow information reported to the CP; the first sending module is specifically configured to:
if the traffic request information sent by the standby UP is received within the time period from the receiving of the main/standby switching instruction to the completion of the main/standby switching, sending reference user traffic information including the first user traffic information and the difference user traffic information to the standby UP through the detection link;
and if receiving the traffic request information sent by the standby UP after the completion of the main/standby switching, synchronizing the differential value user traffic information which is monitored in the current period and is not reported to the control plane CP to the standby UP through the detection link.
7. The apparatus for synchronizing user data according to claim 6, wherein the obtaining module is specifically configured to:
acquiring stored first user traffic information reported to the CP and stored monitored second user traffic information; wherein the second user traffic information comprises the first user traffic information and the difference user traffic information;
and determining the difference value user traffic information which is monitored by the main UP and is not reported to the control plane CP as the reference user traffic information according to the first user traffic information and the second user traffic information.
8. A synchronizer of user data is characterized in that the synchronizer is applied to a standby forwarding plane UP, a detection link is included between a main UP and the standby UP, and the detection link is in a suppression state under the condition that the main UP normally operates; after receiving the main-standby exchange command, the standby UP sends a detection message to the main UP, and after receiving a response message fed back by the main UP, the standby UP confirms that the link detection with the main UP is successful; the synchronization device includes:
a receiving module, configured to receive reference user traffic information sent by a main forwarding plane UP, where the reference user traffic information includes difference user traffic information that is monitored by the main UP when receiving a main/standby switching instruction and is not reported to a control plane CP;
a reporting module, configured to report the reference user traffic information to the CP, so that the CP performs traffic statistics and charging processing based on the reference user traffic information;
if the main UP receives a main/standby exchange command, acquiring reference user flow information; the reference user traffic information includes difference user traffic information which is monitored by the main UP and is not reported to the control plane CP; sending the reference user traffic information to a standby UP through the detection link, so that the standby UP reports the reference user traffic information to the CP;
the reference user flow information also comprises first user flow information reported to the CP; the sending the reference user traffic information to the standby UP through the probing link includes:
if the traffic request information sent by the standby UP is received within the time period from the receiving of the main/standby switching instruction to the completion of the main/standby switching, sending reference user traffic information including the first user traffic information and the difference user traffic information to the standby UP through the detection link;
and if receiving the traffic request information sent by the standby UP after the completion of the main/standby switching, synchronizing the differential value user traffic information which is monitored in the current period and is not reported to the control plane CP to the standby UP through the detection link.
9. The apparatus for synchronizing user data according to claim 8, wherein the reporting module is specifically configured to:
sending flow request information to the CP, wherein the flow request information is used for requesting the main UP to report user flow information to the CP;
counting the actual user flow information which needs to be reported to the control plane CP in the current period based on the reported user flow information, the difference value user flow information in the reference user flow information and the updated user flow information;
and reporting the actual user flow information to the CP.
10. The apparatus of claim 8, wherein the reference user traffic information further includes reported user traffic information reported by the main UP to the CP; reporting the reference user traffic information to the CP, further comprising:
counting the actual user flow information which needs to be reported to the control plane CP in the current period based on the reference user flow information and the updated user flow information which comprise the reported user flow information and the difference value user flow information;
and reporting the actual user flow information to the CP.
CN201810589768.5A 2018-06-08 2018-06-08 User data synchronization method and device Active CN108933873B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810589768.5A CN108933873B (en) 2018-06-08 2018-06-08 User data synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810589768.5A CN108933873B (en) 2018-06-08 2018-06-08 User data synchronization method and device

Publications (2)

Publication Number Publication Date
CN108933873A CN108933873A (en) 2018-12-04
CN108933873B true CN108933873B (en) 2021-02-05

Family

ID=64449571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810589768.5A Active CN108933873B (en) 2018-06-08 2018-06-08 User data synchronization method and device

Country Status (1)

Country Link
CN (1) CN108933873B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112270495B (en) * 2020-11-13 2023-05-02 中盈优创资讯科技有限公司 Charging circuit flow acquisition guarantee and auditing method and device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1254042C (en) * 2002-02-04 2006-04-26 华为技术有限公司 Data flow quantity statistical method
US8107363B1 (en) * 2004-05-21 2012-01-31 Rockstar Bidco, LP Method and apparatus for accelerating failover of VPN traffic in an MPLS provider network
CN102075341B (en) * 2009-11-25 2015-06-10 中兴通讯股份有限公司 Method and system for main-standby synchronization
CN106341251A (en) * 2015-07-10 2017-01-18 中兴通讯股份有限公司 Master and slave switching method and device based on dual master control
CN107786356A (en) * 2016-08-29 2018-03-09 安徽皖通邮电股份有限公司 A kind of network equipment system of masterslave switchover and load sharing
CN107547444B (en) * 2017-07-31 2021-11-26 新华三技术有限公司 Traffic statistical method and switching equipment
CN107819591B (en) * 2017-10-25 2021-10-12 新华三技术有限公司 Data synchronization method, device, system and network equipment

Also Published As

Publication number Publication date
CN108933873A (en) 2018-12-04

Similar Documents

Publication Publication Date Title
CN108880917B (en) Switching method and device of control plane equipment and transfer control separation system
CN106330475B (en) Method and device for managing main and standby nodes in communication system and high-availability cluster
CN102404146B (en) Master-slave switching method, network device and DHCP server
CN111385107B (en) Main/standby switching processing method and device for server
CN109921942B (en) Cloud platform switching control method, device and system and electronic equipment
CN107066480B (en) Method, system and equipment for managing main and standby databases
EP2723017A1 (en) Method, apparatus and system for implementing distributed auto-incrementing counting
JP2013161251A (en) Computer failure monitoring program, method, and device
CN104901834A (en) Method and system for automatically switching between network servers
CN114265753A (en) Management method and management system of message queue and electronic equipment
EP2928229A1 (en) Cross-device linear multiplex section overhead method, gateway and controller
JP6007988B2 (en) Standby system apparatus, operational system apparatus, redundant configuration system, and load distribution method
CN108933873B (en) User data synchronization method and device
CN109189854B (en) Method and node equipment for providing continuous service
CN111698157B (en) Link management method, board card and switch
EP3525400A1 (en) Network service management method and system
CN110569303B (en) MySQL application layer high-availability system and method suitable for various cloud environments
CN111309515B (en) Disaster recovery control method, device and system
JP2004032452A (en) System changing method and system of cluster-configured machines
CN109274763B (en) Information synchronization method and dual-computer hot standby equipment
CN101217405B (en) SGSN backup method and communication system, communication device
CN114124803B (en) Device management method and device, electronic device and storage medium
EP3232646B1 (en) Apparatus for relaying data transmission in scada system
CN114301763A (en) Distributed cluster fault processing method and system, electronic device and storage medium
CN111064608A (en) Master-slave switching method and device of message system, electronic equipment and storage medium

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
TR01 Transfer of patent right

Effective date of registration: 20230625

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right