CN105744617B - Synchronization method and device - Google Patents

Synchronization method and device Download PDF

Info

Publication number
CN105744617B
CN105744617B CN201610101878.3A CN201610101878A CN105744617B CN 105744617 B CN105744617 B CN 105744617B CN 201610101878 A CN201610101878 A CN 201610101878A CN 105744617 B CN105744617 B CN 105744617B
Authority
CN
China
Prior art keywords
information
node
subordinate
superior
heartbeat
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.)
Expired - Fee Related
Application number
CN201610101878.3A
Other languages
Chinese (zh)
Other versions
CN105744617A (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.)
Puxing Mobile Telecom Equipment Co Ltd
Original Assignee
Puxing Mobile Telecom Equipment 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 Puxing Mobile Telecom Equipment Co Ltd filed Critical Puxing Mobile Telecom Equipment Co Ltd
Priority to CN201610101878.3A priority Critical patent/CN105744617B/en
Publication of CN105744617A publication Critical patent/CN105744617A/en
Application granted granted Critical
Publication of CN105744617B publication Critical patent/CN105744617B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • H04W56/002Mutual synchronization

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a synchronization method and a synchronization device, wherein the synchronization method comprises the following steps: reading an adjacent information table preset by a current node, wherein the adjacent information table comprises address information of a superior node; sending heartbeat request information to the address information of the superior node; if heartbeat response information based on the heartbeat request information is received, sending cache information to the superior node, wherein the cache information comprises data information in a preset time period; sending a user subscription information request to the superior node; and receiving the user subscription data information which is sent by the superior node and belongs to the current node, and updating data according to the user subscription data information of the current node. The invention can ensure the consistency of data of each node in the network by synchronizing the data information among each node in time, effectively solves the problem of cross-regional roaming in a miniaturized LTE network, saves the network erection cost and saves network resources.

Description

Synchronization method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a synchronization method and apparatus.
Background
At present, with the continuous development of communication technology, in more and more specific areas and industries, a small LTE (Long Term Evolution) communication network is adopted to perform data communication, so as to implement an end-to-end communication solution.
However, when the area is large and the network interconnection is required to be realized across the area, it is necessary to ensure that the data of different areas are consistent. Due to the limitations of cost and resources, the small LTE network cannot achieve data consistency by deploying an HSS (Home Subscriber Server) network element entity as in a conventional operator network. Therefore, how to achieve data consistency across areas in a small LTE network is an urgent problem to be solved.
Disclosure of Invention
Embodiments of the present invention provide a synchronization method and apparatus, which can synchronize data information between nodes in time, and ensure data consistency.
A first aspect of an embodiment of the present invention provides a synchronization method, including:
reading an adjacent information table preset by a current node, wherein the adjacent information table comprises address information of a superior node;
sending heartbeat request information to the address information of the superior node;
if heartbeat response information based on the heartbeat request information is received, sending cache information to the superior node, wherein the cache information comprises data information in a preset time period;
sending a user subscription information request to the superior node;
and receiving the user subscription data information which is sent by the superior node and belongs to the current node, and updating data according to the user subscription data information of the current node.
Optionally, after reading the adjacency information table preset by the current node, the method further includes:
establishing a cache table;
and storing the information of the superior node in the cache table, wherein the information of the superior node comprises address information and state information of the superior node, and the state information comprises a fault state and a normal state.
Optionally, the cache table further includes a counter, and an initial value of the counter is 0;
after sending the heartbeat request message to the target address of the superior node, the method further includes:
if not receiving the heartbeat response information based on the heartbeat request information, adding 1 to the value of the counter;
after waiting for a preset time, sending heartbeat request information to the target address of the superior node again;
if the value of the counter is 5, confirming that the current node is disconnected with the superior node;
and if heartbeat response information based on the heartbeat request information is received, resetting the value of the counter to be 0, and setting the state information of the superior node to be in a normal state.
A second aspect of the embodiments of the present invention provides a synchronization method, including:
if receiving heartbeat request information sent by a lower node, sending heartbeat response information according to the heartbeat request information;
receiving cache information sent by the subordinate node, wherein the cache information comprises user subscription data information in a preset time period;
and if a user subscription information request sent by the subordinate node is received, sending user subscription data information belonging to the subordinate node, so that the subordinate node performs data updating according to the user subscription data information.
Optionally, the receiving heartbeat request information sent by the lower node further includes:
establishing a cache table;
storing information of the subordinate node in the cache table, wherein the information of the subordinate node includes: address information and status information of the subordinate node;
and setting the state information of the subordinate node to be in a normal state.
A third aspect of an embodiment of the present invention provides a synchronization apparatus, including:
the reading module is used for reading an adjacent information table preset by a current node, and the adjacent information table comprises address information of a superior node;
the heartbeat request module is used for sending heartbeat request information to the address information of the superior node;
the sending module is used for sending cache information to the superior node when receiving heartbeat response information based on the heartbeat request information, wherein the cache information comprises data information in a preset time period;
the signing request module is used for sending a user signing information request to the superior node;
and the updating module is used for receiving the user subscription data information which is sent by the superior node and belongs to the current node, and updating data according to the user subscription data information of the current node.
Optionally, the synchronization apparatus further includes:
the first establishing module is used for establishing a cache table;
the first storage module is configured to store information of the upper node in the cache table, where the information of the upper node includes address information and state information of the upper node, and the state information includes a fault state and a normal state.
Optionally, the cache table further includes a counter, and an initial value of the counter is 0;
the synchronization apparatus further includes:
the counting module is used for adding 1 to the value of the counter when the heartbeat response information based on the heartbeat request information is not received;
the sending module is further configured to send heartbeat request information to the target address of the superior node again after waiting for a preset time;
the confirming module is used for confirming the broken link of the connection between the current node and the superior node when the value of the counter is 5;
the counting module is further used for resetting the value of the counter to 0 when heartbeat response information based on the heartbeat request information is received;
the confirmation module is further configured to set the state information of the superior node to a normal state.
A fourth aspect of the present invention provides a synchronization apparatus, including:
the response module is used for sending heartbeat response information according to the heartbeat request information when receiving the heartbeat request information sent by a lower node;
the receiving module is used for receiving cache information sent by the subordinate node, wherein the cache information comprises user subscription data information in a preset time period;
and the signing module is used for sending user signing data information belonging to the subordinate node when receiving a user signing information request sent by the subordinate node, so that the subordinate node performs data updating according to the user signing data information.
Optionally, the synchronization apparatus further includes:
the second establishing module is used for establishing a cache table;
a second storage module, configured to store information of the subordinate node in the cache table, where the information of the subordinate node includes address information and state information of the subordinate node;
and the setting module is used for setting the state information of the subordinate nodes to be in a normal state.
The embodiment of the invention has the following beneficial effects:
when the current node is started or re-accessed to the network, heartbeat request information is sent to the upper node, and cache information is sent to the upper node when heartbeat reply information is received, so that the information of the current node can be ensured to be synchronized to the upper node in time; meanwhile, the information of the superior node can be ensured to be synchronized to the current node by receiving the user subscription data information which is sent by the superior node and belongs to the current node and updating the data according to the user subscription data information; by synchronizing the data information among the nodes in time, the consistency of the data of the nodes in the network can be ensured, the problem of cross-region roaming in a miniaturized LTE network is effectively solved, the network erection cost is saved, and the network resources are saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is an implementation environment diagram of a synchronization method according to an embodiment of the present invention.
Fig. 2 is a signal flow diagram of a synchronization method according to an embodiment of the present invention.
Fig. 3 is a flowchart of a synchronization method according to a first embodiment of the present invention.
Fig. 4 is a flowchart of a synchronization method according to a second embodiment of the present invention.
Fig. 5 is a flowchart of another synchronization method according to a first embodiment of the present invention.
Fig. 6 is a flowchart of another synchronization method according to a second embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a synchronization apparatus according to a first embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a synchronization apparatus according to a second embodiment of the present invention.
Fig. 9 is a schematic structural diagram of another synchronization apparatus according to a first embodiment of the present invention.
Fig. 10 is a schematic structural diagram of another synchronization apparatus according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," and "third," etc. in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprises" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Fig. 1 is an implementation environment diagram of a synchronization method according to an embodiment of the present invention. As shown in the figure, the schematic diagram of the LTE network is a hierarchical structure, in which each level is provided with a plurality of nodes, the first level is node 100, the second level is node 200-. In this embodiment, the synchronization method is applied to each node, where each node may be Core network equipment, such as EPC (Evolved Packet Core) equipment, and each node may be used for terminal access in a certain area. As shown in the figure, the node 300 and the node 302 are located in different areas, and when a terminal belonging to the node 300 roams to an area covered by the node 302, since data information of the terminal is stored in the node 300, data of the node 300 needs to be synchronized in the node 302 in time to support terminal roaming. In this embodiment, the node 300 first sends the relevant data to the upper node 201, the upper node 201 further sends the data to the upper node 100, and the upper node 100 issues the data to the node 203, and the node 203 issues the data to the node 302, so that the data is unified and consistent, and the terminal roaming is supported.
Fig. 2 is a signal flow diagram of a synchronization method according to an embodiment of the present invention. The signal flow between the current node 300 and the upper node 201 is schematically shown, and it is understood that the present invention is also applicable to the signal flow between the node 201 and the upper node 100. As shown in the figure, when the node 300 is started, the address information of the upper node 201 is obtained by reading a preset adjacency list; the node 300 sends heartbeat request information to the upper node 201; after receiving the heartbeat request message, the upper node 201 replies a corresponding heartbeat response message; after receiving the heartbeat response message, the node 300 sends all cache messages on the node 300; when a cross-regional terminal requests to access the node 300, the node 300 sends a user subscription information request to the upper node 201 according to the request of the terminal; the superior node 201 receives the request and issues the user subscription information belonging to the node according to the request; the node 300 updates data according to the subscription information of the user, thereby realizing data consistency and unification in the network and realizing roaming support for the cross-regional terminal.
Fig. 3 is a flowchart of a synchronization method according to a first embodiment of the present invention. In this embodiment, the synchronization method is applied to a node device, which may be an EPC device, and network elements such as an MME (Mobile management entity), an SGW (Serving GateWay), a PGW (Packet data network GateWay), and an HSS (Home Subscriber Server) are integrated on the node device, and the network elements are presented in a form of being concentrated on one Server or in one small-sized machine frame device. The synchronization method in this embodiment is applied to information synchronization between a node device and an upper node, for example, the synchronization method may be applied to information synchronization between the node 300 and the upper node 201 shown in fig. 1, and may also be applied to information synchronization between the node 201 and the upper node 100 shown in fig. 1. The synchronization method comprises steps S101-S105.
In step S101, an adjacency information table preset by the current node is read, where the adjacency information table includes address information of a higher node.
Specifically, when a small LTE network is established, an adjacency information table of each node device is configured, where the adjacency information table includes address information of a higher node, and optionally, the address information refers to address information of a HSS of the higher node. In addition, each node device is also provided with corresponding user subscription data in an initial state, so as to provide services for terminals in a preset area. When the node device is started or replies from a disconnected state, the node device obtains the address information of the superior node by reading a preset adjacent information table.
In step S102, heartbeat request information is transmitted to address information of the upper node.
Specifically, the current node sends heartbeat request information to the superior node, and the heartbeat request information can be used for judging whether the connection with the superior node is normal or not.
In step S103, if heartbeat response information based on the heartbeat request information is received, cache information is sent to the upper node, where the cache information includes data information within a preset time period.
Specifically, when receiving heartbeat response information based on the heartbeat request information replied by the upper node, the connection with the upper node is normal at this time, and at this time, the cache information is sent to the upper node. When the node is in a disconnection state at a certain time period, the data information in the time period is stored as the cache information and is sent again after the connection is established, so that the reliability of the data can be enhanced.
In step S104, a user subscription information request is sent to the upper node.
Specifically, if a connection request of the cross-region terminal is received or a preset synchronization time point is reached, the current node may send a user subscription information request to the upper node.
In step S105, the user subscription data information belonging to the current node and sent by the upper node is received, and data updating is performed according to the user subscription data information of the current node.
Specifically, after receiving the user subscription information request, the superior node issues user subscription data information belonging to the current node, and the current node receives the user subscription data information and performs data update according to the user subscription data information of the current node. Wherein, the data updating comprises the data updating of covering the user subscription data information to the local and triggering the memory and the network management.
As can be seen from the above, in the synchronization method in the embodiment of the present invention, when the current node starts or re-accesses the network, the heartbeat request information is sent to the upper node, and when the heartbeat reply information is received, the cache information is sent to the upper node, so that it can be ensured that the information of the current node is synchronized to the upper node in time; meanwhile, the information of the superior node can be ensured to be synchronized to the current node by receiving the user subscription data information which is sent by the superior node and belongs to the current node and updating the data according to the user subscription data information; by synchronizing the data information among the nodes in time, the consistency of the data of the nodes in the network can be ensured, the problem of cross-region roaming in a miniaturized LTE network is effectively solved, the network erection cost is saved, and the network resources are saved.
Fig. 4 is a flowchart of a synchronization method according to a second embodiment of the present invention. Compared with the first embodiment shown in fig. 3, in this embodiment, the current node may also store information of other nodes by establishing a cache table, so as to facilitate network maintenance. The synchronization method comprises steps S201-S212.
In step S201, an adjacency information table preset by the current node is read, where the adjacency information table includes address information of a higher node.
In step S202, a cache table is established.
Specifically, in this embodiment, the node device establishes a cache table, where the cache table is used to store information of other node devices, where the cache table may be used not only to store information of a higher node but also to store information of a lower node when a heartbeat request of the lower node is received.
In step S203, information of the upper node is stored in the cache table, where the information of the upper node includes address information and status information of the upper node.
Specifically, information of a superior node is stored in a cache table, where the information includes address information and state information of the superior node. Optionally, the information may further include an IMSI (international mobile Subscriber identity) Number segment of the node and a counter. The initial value of the counter is 0, and the counter is used for counting to judge the connection state of the corresponding node. The status information includes a fault status and a normal status. Optionally, the initial state of the state information of the upper node is a fault state.
In step S204, heartbeat request information is sent to the address information of the upper node.
In step S205, it is determined whether heartbeat response information is received.
Specifically, it is determined whether heartbeat response information based on the heartbeat request information is received, and if so, the process proceeds to step S206; if not, the process proceeds to step S210.
In step S206, if heartbeat response information based on the heartbeat request information is received, the value of the counter is reset to 0, and the state information of the upper node is set to a normal state.
Specifically, when receiving the heartbeat response information, it indicates that the connection with the upper node is normal, and at this time, the state information of the upper node is set to be in a normal state.
In step S207, cache information is sent to the superordinate node, where the cache information includes data information within a preset time period.
In step S208, a user subscription information request is sent to the upper node.
In step S209, the user subscription data information belonging to the current node and sent by the upper node is received, and data updating is performed according to the user subscription data information of the current node.
In step S210, if the heartbeat response information based on the heartbeat request information is not received, the value of the counter is incremented by 1.
Specifically, if the heartbeat response message is not received, the value of the counter is incremented by 1, and the process goes to step S204 to send the heartbeat response message again. Optionally, a timer may be further set, and after the timer finishes timing, the step S204 is executed to perform the sending, where the time of the timer may be preset.
In step S211, it is determined whether the value of the counter is 5.
Specifically, in this step, before sending the heartbeat response information again, it is further necessary to determine whether the current counter value is 5. If the value of the counter is 5, it indicates that 5 heartbeat requests have been sent, and no heartbeat response has been received, and at this time, it can be considered that the connection with the upper node has been broken, and at this time, the process proceeds to step S212; if the value of the counter is not 5, the process proceeds to step S204, where it is transmitted.
It is understood that the step S211 is an optional step, that is, after the heartbeat response message is not received in the step S210, the step S204 may be directly entered for repeated transmission. The counter determination criterion value 5 in this step may also be other values, which is not limited in the embodiment of the present invention.
In step S212, the link disconnection between the current node and the upper node is confirmed.
Specifically, when the counter is 5, the link disconnection between the current node and the upper node is confirmed. At this time, it may be considered that a fault exists between the current node and the upper node, and related personnel may be notified to perform maintenance by sending a notification message.
As can be seen from the above, in the synchronization method in the embodiment of the present invention, when the current node starts or re-accesses the network, the heartbeat request information is sent to the upper node, and when the heartbeat reply information is received, the cache information is sent to the upper node, so that it can be ensured that the information of the current node is synchronized to the upper node in time; meanwhile, the information of the superior node can be ensured to be synchronized to the current node by receiving the user subscription data information which is sent by the superior node and belongs to the current node and updating the data according to the user subscription data information; in addition, the information of the corresponding nodes is stored by establishing the cache table, so that the subsequent management and maintenance are facilitated.
Fig. 5 is a flowchart of another synchronization method according to a first embodiment of the present invention. In this embodiment, the synchronization method is applied to a node device, which may be an EPC device, and network elements such as an MME (mobility Management Entity), an SGW (Serving GateWay), a PGW (Packet data network GateWay), and an HSS (Home Subscriber Server) are integrated on the node device, and the network elements are presented in a form of being concentrated on one Server or in one small-sized machine frame device. The synchronization method in this embodiment is applied to a node device receiving information of a subordinate node and performing information synchronization with the subordinate node. For example, the method may be applied to the node 100 receiving the information of the node 201, and may also be applied to the node 201 receiving the information of the node 300. The synchronization method comprises steps S301-S303.
In step S301, if heartbeat request information sent by a lower node is received, heartbeat response information is sent according to the heartbeat request information.
Specifically, when the current node device receives heartbeat request information sent by a lower node, the current node device replies heartbeat response information according to the heartbeat request information.
In step S302, cache information sent by the subordinate node is received, where the cache information includes user subscription data information within a preset time period.
Specifically, the lower node sends the cache information after receiving the heartbeat response information. At this time, the node device receives the cache information sent by the lower node. The cache information comprises user subscription data information in a preset time period.
In step S303, if a user subscription information request sent by the subordinate node is received, user subscription data information belonging to the subordinate node is sent to the subordinate node, so that the subordinate node performs data update according to the user subscription data information.
Specifically, if a user subscription information request sent by a subordinate node is received, user subscription data information belonging to the subordinate node is searched in a stored database, and the user subscription data information is sent to the subordinate node. And the subordinate node performs data updating according to the user subscription data information.
As can be seen from the above, in the synchronization method in the embodiment of the present invention, when a heartbeat request sent by a lower node is received, a heartbeat response message is replied, a cache message sent by the lower node is received, and a user subscription data message belonging to the lower node is issued according to the request of the lower node, so that information synchronization with the lower node can be completed, consistency of data of each node in a network is ensured, a problem of cross-region roaming in a small LTE network is effectively solved, network construction cost is saved, and network resources are saved.
Fig. 6 is a flowchart of another synchronization method according to a second embodiment of the present invention. Compared with the first embodiment shown in fig. 5, in this embodiment, the current node may also store information of other nodes by establishing a cache table, so as to facilitate network maintenance. The synchronization method comprises steps S401-S406.
In step S401, if heartbeat request information sent by a lower node is received, heartbeat response information is sent according to the heartbeat request information.
In step S402, a cache table is established.
Specifically, the node device establishes a cache table, where the cache table is used to store information of other node devices, and the cache table may be used to store information of a subordinate node when receiving a heartbeat request of the subordinate node, and may also be used to store information of a higher node.
In step S403, storing information of the lower node in the cache table, where the information of the lower node includes: address information and status information of the subordinate node.
Specifically, after receiving heartbeat request information of a subordinate node, the information of the subordinate node is stored in the cache table, where the information of the subordinate node includes: the address information and the state information of the lower node, optionally, the information may further include an IMSI (International Mobile subscriber identity) Number segment of the node. Wherein the status information includes a normal status and a fault status.
In step S404, the state information of the lower node is set to a normal state.
Specifically, since the heartbeat request information of the lower node is received, the heartbeat request information of the lower node is set to be in a normal state in the cache table.
In step S405, cache information sent by the subordinate node is received, where the cache information includes user subscription data information within a preset time period.
In step S406, if a user subscription information request sent by the subordinate node is received, user subscription data information belonging to the subordinate node is sent to the subordinate node, so that the subordinate node performs data update according to the user subscription data information.
As can be seen from the above, the synchronization method in the embodiment of the present invention replies heartbeat response information when receiving a heartbeat request sent by a subordinate node, receives cache information sent by the subordinate node, and issues user subscription data information belonging to the subordinate node according to the request of the subordinate node, so that information synchronization with the subordinate node can be completed, and consistency of data of each node in a network is ensured.
To facilitate a better implementation of the above-described aspects of embodiments of the present invention, the following also provides relevant means for implementing the above-described aspects in cooperation.
Fig. 7 is a schematic structural diagram of a synchronization apparatus according to a first embodiment of the present invention. In this embodiment, the synchronization apparatus is applied to a node device, which may be an EPC device, and network elements such as an MME (Mobile management entity), an SGW (Serving GateWay), a PGW (Packet data network GateWay), and an HSS (Home Subscriber Server) are integrated on the node device, and the network elements are concentrated on one Server or in one small-sized machine frame device. The synchronization device in this embodiment is applied to information synchronization between a node device and a superior node.
The synchronization device includes:
a reading module 501, configured to read an adjacency information table preset by a current node, where the adjacency information table includes address information of a higher node;
a heartbeat request module 502, configured to send heartbeat request information to address information of the upper node;
a sending module 503, configured to send, when heartbeat response information based on the heartbeat request information is received, cache information to the upper node, where the cache information includes data information in a preset time period;
a subscription request module 504, configured to send a user subscription information request to the upper node;
and the updating module 505 is configured to receive the user subscription data information, which is sent by the superior node and belongs to the current node, and update data according to the user subscription data information of the current node.
It can be understood that the functions of the functional modules of the apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
As can be seen from the above, the synchronization device in the embodiment of the present invention sends heartbeat request information to the upper node when the current node is started or re-accesses the network, and sends cache information to the upper node when receiving heartbeat reply information, so as to ensure that information of the current node is synchronized to the upper node in time; meanwhile, the information of the superior node can be ensured to be synchronized to the current node by receiving the user subscription data information which is sent by the superior node and belongs to the current node and updating the data according to the user subscription data information; by synchronizing the data information among the nodes in time, the consistency of the data of the nodes in the network can be ensured, the problem of cross-region roaming in a miniaturized LTE network is effectively solved, the network erection cost is saved, and the network resources are saved.
Fig. 8 is a schematic structural diagram of a synchronization apparatus according to a second embodiment of the present invention. In this embodiment, the synchronization device may further include:
a first establishing module 506, configured to establish a cache table;
the first storage module 507 is configured to store information of the upper node in the cache table, where the information of the upper node includes address information and state information of the upper node, and the state information includes a fault state and a normal state.
Optionally, the cache table further includes a counter, and an initial value of the counter is 0;
optionally, the synchronization apparatus may further include:
a counting module 508, configured to add 1 to the value of the counter when heartbeat response information based on the heartbeat request information is not received;
the sending module 503 is further configured to send heartbeat request information to the target address of the upper node again after waiting for a preset time;
a confirming module 509, configured to confirm the broken link between the current node and the upper node when the value of the counter is 5;
the counting module 508 is further configured to reset the counter to 0 when receiving heartbeat response information based on the heartbeat request information;
the confirming module 509 is further configured to set the state information of the upper node to a normal state.
It can be understood that the functions of the functional modules of the apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
As can be seen from the above, the synchronization device in the embodiment of the present invention sends heartbeat request information to the upper node when the current node is started or re-accesses the network, and sends cache information to the upper node when receiving heartbeat reply information, so as to ensure that information of the current node is synchronized to the upper node in time; meanwhile, the information of the superior node can be ensured to be synchronized to the current node by receiving the user subscription data information which is sent by the superior node and belongs to the current node and updating the data according to the user subscription data information; in addition, the information of the corresponding nodes is stored by establishing the cache table, so that the subsequent management and maintenance are facilitated.
Fig. 9 is a schematic structural diagram of another synchronization apparatus according to a first embodiment of the present invention. In this embodiment, the synchronization method is applied to a node device, which may be an EPC device, and network elements such as an MME (Mobile management entity), an SGW (Serving GateWay), a PGW (Packet data network GateWay), and an HSS (Home Subscriber Server) are integrated on the node device, and the network elements are presented in a form of being concentrated on one Server or in one small-sized machine frame device. The synchronization device in this embodiment is applied to a node device to receive information of a subordinate node and perform information synchronization with the subordinate node.
The synchronization device includes:
the response module 601 is configured to send heartbeat response information according to heartbeat request information when receiving the heartbeat request information sent by a lower node;
a receiving module 602, configured to receive cache information sent by the subordinate node, where the cache information includes user subscription data information in a preset time period;
the subscription module 603 is configured to send, when receiving a user subscription information request sent by the subordinate node, user subscription data information belonging to the subordinate node, so that the subordinate node performs data update according to the user subscription data information.
It can be understood that the functions of the functional modules of the apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
As can be seen from the above, the synchronization device in the embodiment of the present invention replies the heartbeat response information when receiving the heartbeat request sent by the subordinate node, receives the cache information sent by the subordinate node, and issues the user subscription data information belonging to the subordinate node according to the request of the subordinate node, so that information synchronization with the subordinate node can be completed, consistency of data of each node in the network is ensured, the problem of cross-region roaming in the miniaturized LTE network is effectively solved, network construction cost is saved, and network resources are saved.
Fig. 10 is a schematic structural diagram of another synchronization apparatus according to a second embodiment of the present invention. In this embodiment, the synchronization device may further include:
a second establishing module 604, configured to establish a cache table;
a second storing module 605, configured to store the information of the subordinate node in the cache table, where the information of the subordinate node includes address information and state information of the subordinate node;
a setting module 606, configured to set the state information of the subordinate node to a normal state.
It can be understood that the functions of the functional modules of the apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
As can be seen from the above, the synchronization device in the embodiment of the present invention replies heartbeat response information when receiving a heartbeat request sent by a subordinate node, receives cache information sent by the subordinate node, and issues user subscription data information belonging to the subordinate node according to the request of the subordinate node, so that information synchronization with the subordinate node can be completed, and consistency of data of each node in a network is ensured.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (6)

1. A synchronization method is applied to a miniaturized LTE network, the miniaturized LTE network adopts a hierarchical structure, each hierarchical layer is provided with a plurality of nodes, and each node is core network equipment, and the method comprises the following steps:
reading an adjacent information table preset by a current node, wherein the adjacent information table comprises address information of a superior node;
when a current node starts or accesses a network again, heartbeat request information is sent to address information of a superior node;
if receiving heartbeat response information based on the heartbeat request information, sending cache information to the superior node, and synchronizing the information of the current node to the superior node, wherein the cache information comprises data information in a preset time period;
sending a user subscription information request to the superior node;
receiving user subscription data information which is sent by the superior node and belongs to the current node, updating data according to the user subscription data information of the current node, and synchronizing the information of the superior node to the current node;
after reading the adjacency information table preset by the current node, the method further comprises the following steps:
establishing a cache table; the cache table is used for storing information of other node devices, wherein the cache table can be used for storing information of a superior node and storing information of a subordinate node when a heartbeat request of the subordinate node is received;
and storing the information of the superior node in the cache table, wherein the information of the superior node comprises address information and state information of the superior node, and the state information comprises a fault state and a normal state.
2. The synchronization method according to claim 1, wherein the cache table further comprises a counter, and an initial value of the counter is 0;
after sending the heartbeat request message to the target address of the superior node, the method further includes:
if not receiving the heartbeat response information based on the heartbeat request information, adding 1 to the value of the counter;
after waiting for a preset time, sending heartbeat request information to the target address of the superior node again;
if the value of the counter is 5, confirming that the current node is disconnected with the superior node;
and if heartbeat response information based on the heartbeat request information is received, resetting the value of the counter to be 0, and setting the state information of the superior node to be in a normal state.
3. A synchronization method is applied to a miniaturized LTE network, the miniaturized LTE network adopts a hierarchical structure, each hierarchical layer is provided with a plurality of nodes, and each node is core network equipment, and the method comprises the following steps:
if receiving heartbeat request information sent by a lower node, sending heartbeat response information according to the heartbeat request information;
receiving cache information sent by the subordinate node, and synchronizing the information of the subordinate node to the current node, wherein the cache information comprises user subscription data information in a preset time period;
if a user subscription information request sent by the subordinate node is received, sending user subscription data information belonging to the subordinate node, so that the subordinate node performs data updating according to the user subscription data information and synchronizes the information of the current node to the subordinate node;
the receiving of the heartbeat request information sent by the subordinate node further includes:
establishing a cache table; the cache table is used for storing information of other node devices, wherein the cache table can be used for storing information of a superior node and storing information of a subordinate node when a heartbeat request of the subordinate node is received;
storing information of the subordinate node in the cache table, wherein the information of the subordinate node includes: address information and status information of the subordinate node;
and setting the state information of the subordinate node to be in a normal state.
4. A synchronization device is applied to a miniaturized LTE network, the miniaturized LTE network adopts a hierarchical structure, a plurality of nodes are arranged on each level, and each node is a core network device, and the synchronization device comprises:
the reading module is used for reading an adjacent information table preset by a current node, and the adjacent information table comprises address information of a superior node;
the heartbeat request module is used for sending heartbeat request information to the address information of the superior node when the current node is started or re-accessed to the network;
the sending module is used for sending cache information to the superior node when receiving heartbeat response information based on the heartbeat request information, and synchronizing the information of the current node to the superior node, wherein the cache information comprises data information in a preset time period;
the signing request module is used for sending a user signing information request to the superior node;
the updating module is used for receiving the user subscription data information which is sent by the superior node and belongs to the current node, updating data according to the user subscription data information of the current node, and synchronizing the information of the superior node to the current node;
further comprising:
the first establishing module is used for establishing a cache table; the cache table is used for storing information of other node devices, wherein the cache table can be used for storing information of a superior node and storing information of a subordinate node when a heartbeat request of the subordinate node is received;
the first storage module is configured to store information of the upper node in the cache table, where the information of the upper node includes address information and state information of the upper node, and the state information includes a fault state and a normal state.
5. The synchronization apparatus according to claim 4, wherein the buffer table further comprises a counter, and an initial value of the counter is 0;
the synchronization apparatus further includes:
the counting module is used for adding 1 to the value of the counter when the heartbeat response information based on the heartbeat request information is not received;
the sending module is further configured to send heartbeat request information to the target address of the superior node again after waiting for a preset time;
the confirming module is used for confirming the broken link of the connection between the current node and the superior node when the value of the counter is 5;
the counting module is further used for resetting the value of the counter to 0 when heartbeat response information based on the heartbeat request information is received;
the confirmation module is further configured to set the state information of the superior node to a normal state.
6. A synchronization device is applied to a miniaturized LTE network, the miniaturized LTE network adopts a hierarchical structure, a plurality of nodes are arranged on each level, and each node is a core network device, and the synchronization device comprises:
the response module is used for sending heartbeat response information according to the heartbeat request information when receiving the heartbeat request information sent by a lower node;
the receiving module is used for receiving cache information sent by the subordinate node and synchronizing the information of the subordinate node to the current node, wherein the cache information comprises user subscription data information in a preset time period;
the signing module is used for sending user signing data information belonging to the subordinate node when receiving a user signing information request sent by the subordinate node, so that the subordinate node performs data updating according to the user signing data information and synchronizes the information of the current node to the subordinate node;
further comprising:
the second establishing module is used for establishing a cache table; the cache table is used for storing information of other node devices, wherein the cache table can be used for storing information of a superior node and storing information of a subordinate node when a heartbeat request of the subordinate node is received;
a second storage module, configured to store information of the subordinate node in the cache table, where the information of the subordinate node includes address information and state information of the subordinate node;
and the setting module is used for setting the state information of the subordinate nodes to be in a normal state.
CN201610101878.3A 2016-02-25 2016-02-25 Synchronization method and device Expired - Fee Related CN105744617B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610101878.3A CN105744617B (en) 2016-02-25 2016-02-25 Synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610101878.3A CN105744617B (en) 2016-02-25 2016-02-25 Synchronization method and device

Publications (2)

Publication Number Publication Date
CN105744617A CN105744617A (en) 2016-07-06
CN105744617B true CN105744617B (en) 2020-01-14

Family

ID=56248421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610101878.3A Expired - Fee Related CN105744617B (en) 2016-02-25 2016-02-25 Synchronization method and device

Country Status (1)

Country Link
CN (1) CN105744617B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547512B (en) * 2017-07-14 2020-04-17 新华三云计算技术有限公司 User authentication method and device in multi-level cloud platform
CN109298981A (en) * 2018-09-27 2019-02-01 郑州云海信息技术有限公司 Method of data synchronization, system between a kind of PCIE dual redundant chip
CN110149495A (en) * 2019-04-08 2019-08-20 视联动力信息技术股份有限公司 State display method and device based on view networking

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296502A (en) * 2007-04-28 2008-10-29 华为技术有限公司 Method and device for sending short messages after exception of user signing data
CN102801782A (en) * 2012-06-28 2012-11-28 大唐移动通信设备有限公司 Synchronous updating method and system for data
CN104504062A (en) * 2014-12-22 2015-04-08 浙江宇视科技有限公司 Data synchronization method and device of primary and standby databases

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9083762B2 (en) * 2010-05-28 2015-07-14 Greg Saunders System and method for providing hybrid on demand services to a work unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101296502A (en) * 2007-04-28 2008-10-29 华为技术有限公司 Method and device for sending short messages after exception of user signing data
CN102801782A (en) * 2012-06-28 2012-11-28 大唐移动通信设备有限公司 Synchronous updating method and system for data
CN104504062A (en) * 2014-12-22 2015-04-08 浙江宇视科技有限公司 Data synchronization method and device of primary and standby databases

Also Published As

Publication number Publication date
CN105744617A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
US20210105664A1 (en) Communication system, communication control apparatus, node apparatus, and communication method
CN110139387B (en) Uplink small data transmission method, network side DU and network side CU
US8837326B2 (en) Session management method and system based on M2M application, and apparatus
CN103858517A (en) Communication system, method and apparatus
CN103733658A (en) Mobile communications network, infrastructure equipment and method
EP2731365A1 (en) Method and system for implementing packet switch domain short message service, and user equipment
CN105744617B (en) Synchronization method and device
EP3989621A1 (en) Communication method and network element
CN107666688B (en) Public flow implementation method, device and system
CN109788507A (en) Communication means and device
US9955283B2 (en) Communication system
CN108632855B (en) Method and device for establishing interface between base stations
CN102045651A (en) Cluster call method, MSC, BSC and communication system
CN103379579A (en) Message transmitting method, message transmitting device and method for accessing terminal to PLMN
CN102215465A (en) Terminal calling processing and testing methods and long term evolution system
CN109802982B (en) Dual-connection implementation method, device and system
US11412355B2 (en) Method, device, and system for optimizing short message signaling
EP3035770B1 (en) Call service implementation method and device
CN106982472B (en) Bearer establishment method and system, MME (mobility management entity) and SGW (serving gateway)
CN105323792B (en) Mobility management entity and its disaster recovery method and disaster tolerance system
EP2663102A2 (en) Method, system and short message services center for sending short messages
JP5562317B2 (en) Wireless communication system and session sharing method
CN110971431B (en) Method and related device for acquiring configuration information of network equipment
CN108881019B (en) Terminal access method and equipment
CN114007238A (en) Method and device for service recovery after local point failure

Legal Events

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

Granted publication date: 20200114