[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114978872B - SCTP protocol stack synchronization method and device - Google Patents

SCTP protocol stack synchronization method and device Download PDF

Info

Publication number
CN114978872B
CN114978872B CN202210427979.5A CN202210427979A CN114978872B CN 114978872 B CN114978872 B CN 114978872B CN 202210427979 A CN202210427979 A CN 202210427979A CN 114978872 B CN114978872 B CN 114978872B
Authority
CN
China
Prior art keywords
synchronization
sctp
network element
message
mode
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
CN202210427979.5A
Other languages
Chinese (zh)
Other versions
CN114978872A (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.)
Inspur Communication Technology Co Ltd
Original Assignee
Shandong Inspur Scientific Research Institute 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 Shandong Inspur Scientific Research Institute Co Ltd filed Critical Shandong Inspur Scientific Research Institute Co Ltd
Priority to CN202210427979.5A priority Critical patent/CN114978872B/en
Publication of CN114978872A publication Critical patent/CN114978872A/en
Application granted granted Critical
Publication of CN114978872B publication Critical patent/CN114978872B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The invention provides a synchronization method and device of an SCTP protocol stack, wherein the method comprises the following steps: acquiring the synchronization performance index of the main network element and the synchronization performance index of the standby network element; determining a synchronization mode based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element, and sending a notification message carrying the synchronization mode to the standby network element; under the condition that the synchronous mode is a strong synchronous mode and the SCTP state context information is updated based on the SCTP message sent by the target equipment, sending the SCTP synchronous message carrying the SCTP state context information to the standby network element, so that the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronous message; the synchronization performance index includes at least one of a synchronization message success rate, a synchronization message delay, and a synchronization message jitter value. The SCTP protocol stack synchronization method and the device provided by the invention can improve the success rate of SCTP connection processing when the master and standby network elements are switched.

Description

SCTP protocol stack synchronization method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for SCTP protocol stack synchronization.
Background
The stream control transmission protocol (Stream Control Transmission Protocol, SCTP) is a transmission protocol based on which multiple data streams can be transmitted simultaneously between the two ends of a network connection. In the 4G/5G core network, SCTP has a wide application, for example, signaling messages between a base station and a core network element are transmitted through SCTP between the base station and a UE (User Equipment), and a DIAMETER protocol is carried between a network element MME (Mobility Management Entity ) and HSS (Home Subscriber Server, home subscriber server) in 4G through SCTP.
The core network serves as a central hub of the entire mobile communication network, and has high reliability requirements for the system. One common reliability scheme is a 1+1 primary/standby scheme, that is, one network element is used as a primary core network element (called a primary network element for short) to process related messages and service processing, the other network element is used as a backup core network element (called a backup network element for short), and when the primary network element fails, the backup network element is raised to be the primary network element and accepts service processing. In the 1+1 main/standby scheme, a key link is how to quickly switch the service to the standby network element when the main network element fails, and the external network element cannot perceive that the 1+1 main/standby network element fails and the main/standby is switched. The refinement to the network element with SCTP connection is how to ensure that the SCTP connection between the external base station or the network element and the 1+1 main/standby network element is not interrupted when the main/standby network element is switched.
In order to ensure that the SCTP connection between the external base station or network element and the 1+1 main and standby network elements is not interrupted, a method for synchronizing the SCTP protocol stacks of the 1+1 main and standby network elements can be adopted. The external base station or network element establishes SCTP connection with the main network element in the 1+1 main and standby network elements, and the main network element synchronizes the SCTP connection protocol stack state information into the SCTP protocol stack of the standby network element, thereby ensuring the synchronization of the SCTP protocol stacks of the main and standby network elements. Therefore, after the main network element fails, the standby network element SCTP protocol has SCTP protocol stack information consistent with the main network element, so that the SCTP message sent to the local network element can be normally processed and received. If the standby network element only synchronizes part of the SCTP protocol stack state context information, the SCTP connection is interrupted after the primary and standby are switched possibly due to different SCTP serial numbers and the like.
In the prior art, a main network element is adopted to send an SCTP synchronization message to a data storage middleware, and a standby network element acquires the SCTP synchronization message from the data storage middleware and performs SCTP protocol stack synchronization based on the SCTP synchronization message. However, the method has the possibility of asynchronous primary and standby SCTP protocol stacks, and if the primary and standby SCTP protocol stacks are inconsistent, the standby network elements can not connect with the SCTP connection between the opposite base station or the network elements due to the inconsistent state of the SCTP protocol stacks, and the SCTP connection is operated to be abnormally interrupted, so that the normal operation of the business of the user under the core network is influenced, and the success rate of the SCTP connection during primary and standby switching is reduced.
Disclosure of Invention
The invention provides a synchronization method and device of an SCTP protocol stack, which are used for solving the defect of lower success rate of SCTP connection when a main network element and a standby network element are switched in the prior art and improving the success rate of SCTP connection processing when the main network element and the standby network element are switched.
The invention provides a synchronization method of an SCTP protocol stack, which comprises the following steps:
acquiring the synchronization performance index of the main network element and the synchronization performance index of the standby network element;
determining a synchronization mode based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element, and sending a notification message carrying the synchronization mode to the standby network element;
Under the condition that the synchronization mode is a strong synchronization mode and SCTP state context information is updated based on SCTP information sent by target equipment, SCTP synchronization information carrying the SCTP state context information is sent to the standby network element, so that the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization information;
the synchronization performance index comprises at least one of a synchronization message success rate, a synchronization message delay and a synchronization message jitter value.
According to the SCTP protocol stack synchronization method provided by the present invention, after determining a synchronization mode based on the synchronization performance index of the primary network element and the synchronization performance index of the standby network element, and sending a notification message carrying the synchronization mode to the standby network element, the method further includes:
under the condition that the synchronization mode is a weak synchronization mode and SCTP state context information is updated based on SCTP information sent by the target equipment, sending the SCTP synchronization information carrying the SCTP state context information to a data storage middleware so that the standby network element acquires the SCTP synchronization information from the data storage middleware and performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization information;
And returning an SCTP response message to the target equipment.
According to the SCTP protocol stack synchronization method provided by the present invention, when the synchronization mode is a strong synchronization mode and SCTP state context information is updated based on SCTP messages sent by a target device, sending an SCTP synchronization message carrying the SCTP state context information to the standby network element, so that after the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization message, the method further includes:
and under the condition that the SCTP synchronization confirmation message returned by the standby network element is received in a preset time period, returning an SCTP response message to the target equipment.
According to the SCTP protocol stack synchronization method provided by the present invention, when the synchronization mode is a strong synchronization mode and SCTP state context information is updated based on SCTP messages sent by a target device, sending an SCTP synchronization message carrying the SCTP state context information to the standby network element, so that after the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization message, the method further includes:
and under the condition that the SCTP synchronization confirmation message returned by the standby network element is not received within a preset time period, the SCTP connection with the target equipment is interrupted.
According to the SCTP protocol stack synchronization method provided by the present invention, the synchronization mode is determined based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element, and the method includes:
acquiring a performance value based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element;
and determining that the synchronous mode is a strong synchronous mode when the performance value is larger than or equal to a preset value, and determining that the synchronous mode is a weak synchronous mode when the performance value is smaller than the preset value.
According to the SCTP protocol stack synchronization method provided by the present invention, the obtaining a performance value based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element includes:
and acquiring a weighted sum of the minimum value in the success rate of the synchronous messages of the main network element and the standby network element, the minimum value in the forward synchronous message delay of the main network element and the standby network element and the minimum value in the forward synchronous message jitter value of the main network element and the standby network element as the performance value based on the weights of the success rate of the synchronous messages, the synchronous message delay and the synchronous message jitter value.
The invention also provides an SCTP protocol stack synchronization device, which comprises:
The acquisition module is used for acquiring the synchronous performance index of the main network element and the synchronous performance index of the standby network element;
the determining module is used for determining a synchronous mode based on the synchronous performance index of the main network element and the synchronous performance index of the standby network element and sending a notification message carrying the synchronous mode to the standby network element;
a synchronization module, configured to, when the synchronization mode is a strong synchronization mode and SCTP state context information is updated based on an SCTP message sent by a target device, send an SCTP synchronization message carrying the SCTP state context information to the standby network element, so that the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization message;
the synchronization performance index comprises at least one of a synchronization message success rate, a synchronization message delay and a synchronization message jitter value.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the SCTP protocol stack synchronization method according to any one of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a SCTP protocol stack synchronization method as described in any of the above.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements the SCTP protocol stack synchronization method as described in any of the above.
According to the SCTP protocol stack synchronization method and device, the synchronization mode is determined according to the synchronization performance indexes of the main and standby network elements, the strong consistency of the main and standby network element SCTP protocol stacks is ensured through the strong synchronization mode, and the success rate of SCTP connection processing during the switching of the main and standby network elements can be improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an SCTP protocol stack synchronization method provided by the present invention;
FIG. 2 is a second flow chart of the SCTP protocol stack synchronization method according to the present invention;
fig. 3 is a schematic flow chart of a strong synchronization mode in the SCTP protocol stack synchronization method provided by the present invention;
Fig. 4 is a schematic flow chart of a weak synchronization mode in the SCTP protocol stack synchronization method provided by the present invention;
fig. 5 is a schematic structural diagram of an SCTP protocol stack synchronization device provided in the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of embodiments of the present invention, the terms "first," "second," "third," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance and not order.
In describing embodiments of the present invention, it should be noted that, unless explicitly stated and limited otherwise, the terms "mounted," "connected," and "connected" should be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in embodiments of the present invention will be understood in detail by those of ordinary skill in the art.
The SCTP protocol stack synchronization method and apparatus provided by the present invention are described below with reference to fig. 1 to 6.
Fig. 1 is a schematic flow chart of an SCTP protocol stack synchronization method provided by the present invention. As shown in fig. 1, an execution body of the SCTP protocol stack synchronization method provided by the embodiment of the present invention may be an SCTP protocol stack synchronization device, where the method includes: step 101, step 102 and step 103.
Specifically, the SCTP protocol stack synchronization method may be applied to a primary network element, so that the SCTP protocol stack synchronization device may be the primary network element.
Step 101, acquiring a synchronization performance index of a main network element and a synchronization performance index of a standby network element; the synchronization performance index comprises at least one of a synchronization message success rate, a synchronization message delay and a synchronization message jitter value.
Specifically, the standby network element can periodically report the synchronization performance index to the performance collector, so that the SCTP protocol stack synchronization device can also periodically obtain the synchronization performance index of the standby network element from the performance collector.
It can be understood that under the condition that the SCTP protocol stack synchronization device is a main network element, the synchronization performance index of the SCTP protocol stack synchronization device can be directly obtained, or the synchronization performance index can be periodically reported to the performance collector, and the synchronization performance index of the SCTP protocol stack synchronization device can be periodically obtained from the performance collector.
Alternatively, the synchronization performance index may be obtained as follows:
in the strong synchronization mode, the success rate of synchronization messages reported by the main network element= (the number of received SCTP synchronization acknowledgement messages/the number of sent SCTP synchronization messages) ×100%; the synchronization message delay reported by the main network element=the time when the SCTP synchronization confirmation message is received-the time when the SCTP synchronization message is sent (in the last synchronization process); synchronization message jitter value reported by the main network element = difference in synchronization message delay reported by the main network element (in the last synchronization process and in the last synchronization process).
In the strong synchronization mode, the success rate of synchronization messages reported by the standby network element= (the number of sent SCTP synchronization acknowledgement messages/the number of received SCTP synchronization messages) ×100%; synchronous message delay=infinity reported by the standby network element; synchronous message jitter value reported by the standby network element=infinity.
In the weak synchronization mode, the success rate of the synchronization message reported by the main network element=infinity; synchronous message delay=infinity reported by the main network element; the synchronization message jitter value reported by the main network element=infinity.
In the weak synchronization mode, the success rate of synchronization messages reported by the standby network element= (the successful times of SCTP synchronization/the number of received SCTP synchronization messages) is 100%; the time delay of the synchronization message reported by the standby network element=the time of successful synchronization of the SCTP-the generation time of the SCTP synchronization message (in the last synchronization process); the jitter value of the synchronization message reported by the standby network element=the difference value of the synchronization message delay reported by the standby network element (in the last synchronization process and in the last synchronization process).
Step 102, determining a synchronization mode based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element, and sending a notification message carrying the synchronization mode to the standby network element.
Specifically, the synchronization performance index of the main network element and the synchronization performance index of the standby network element can be used for indicating the synchronization performance between the main network element and the standby network element. The success rate of the synchronous message is a forward index of the synchronous performance; the synchronization message delay and synchronization message jitter values are inverse indicators of synchronization performance.
And determining the current synchronization performance between the main network element and the standby network element based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element.
Under the condition that the current synchronization performance between the main network element and the standby network element is higher, a strong synchronization mode can be determined as a synchronization mode of next synchronization; and under the condition that the current synchronization performance between the main network element and the standby network element is poor, the weak synchronization mode can be determined as the synchronization mode of the next synchronization.
Ideally, the main network element can perform subsequent processing of the SCTP protocol stack only when the SCTP state context information of the main network element is completely consistent with the SCTP state context information of the standby network element. In the embodiment of the present application, a mode that the primary network element receives the SCTP message and can be processed later after the primary and standby SCTP protocol stacks are synchronized is defined as a strong synchronization mode. However, due to the stability of the communication line or the abnormal conditions such as the instantaneous load of the active and standby network elements, the SCTP synchronization messages between the active and standby network elements may be lost, and the conditions such as delay time-out may occur. In this case, if the strong synchronization mode is adopted, the SCTP timeout problem is caused. In addition to the strong synchronization mode, a weak synchronization mode (the mode is a traditional synchronization mode) is defined in the embodiment of the application, and in the weak synchronization mode, the primary network element processes the SCTP message without waiting for the result of the SCTP protocol stack state context synchronization of the primary and the secondary network elements.
In the strong synchronous mode, the complete consistency of the SCTP protocol stacks of the main network element and the standby network element can be ensured. Therefore, when the primary and the secondary are switched, the SCTP connection is migrated to the SCTP protocol stack of the secondary network element, the protocol stack information is completely consistent, and the SCTP connection interruption is not generated. In the weak synchronization mode, the main network element does not need to block and wait for the result of SCTP protocol stack synchronization when processing SCTP messages, so that SCTP communication between the main network element and the opposite base station or the network element is not influenced by the SCTP synchronization mechanism of the main network element and the opposite base station or the network element, and the problems of SCTP connection overtime and the like caused by SCTP main and standby synchronization are avoided. However, in the weak synchronization mode, there is a possibility that the SCTP state context information of the primary and secondary network elements is inconsistent. Under the condition that the primary and the standby SCTP protocol stacks are inconsistent, if the switching of the primary and the standby network elements occurs, the standby network elements can not connect with the SCTP connection between the opposite base station or the network elements due to the inconsistent state of the SCTP protocol stacks, and the SCTP connection is operated to be abnormally interrupted, so that the normal operation of the service of the user under the core network is influenced.
The reliability scheme of the main and standby network elements needs an SCTP protocol stack synchronization mechanism, and the synchronization is divided into two modes, namely a strong synchronization mode and a weak synchronization mode in the embodiment of the invention. The strong synchronous mode can ensure the consistency of the primary and the secondary SCTP protocol stacks and the success rate of SCTP connection processing during primary and secondary switching; however, the method has the problems of high synchronization requirement and SCTP timeout and disconnection of the master network element. The weak synchronization mode can ensure that the processing of the SCTP message by the main mode is not influenced by the synchronization of the main and standby SCTP, and the problem of the overtime broken link of the main network element SCTP caused by the synchronization of the main and standby SCTP is avoided; however, the possibility of asynchronous master-slave SCTP protocol stacks exists, and the success rate of SCTP connection during master-slave switching is reduced.
SCTP protocol stacks are divided into two types, namely a user mode protocol stack and an operating system kernel mode protocol stack. The user state protocol stack means that the user state program codes and decodes the network protocol message, and the information such as the protocol state machine, the protocol context and the like is stored in the user state space. The protocol stack in kernel mode of the operating system, i.e. the network protocol message is sent to the protocol processing module in kernel by the bottom network driver, and all the protocol state information is stored in the kernel space of the operating system. In the kernel mode protocol stack of the operating system, the protocol state information is stored in the kernel space of the operating system, and the application program cannot access. In the embodiment of the invention, a user state protocol stack is adopted, and the transmission of SCTP protocol stack state information is completed in the user space of an operating system through network communication by a 1+1 network element.
Fig. 2 is a second flow chart of the SCTP protocol stack synchronization method provided by the present invention. As shown in fig. 2, the method for adaptively adjusting the SCTP synchronization mode may include the following steps:
step 1, periodically reporting performance indexes to a performance collector by the main network element and the standby network element respectively.
The performance indicators include synchronization message success rate, synchronization message delay, and synchronization message jitter values.
And step 2, periodically acquiring performance indexes by the main network element.
And 3, selecting a synchronous mode.
And step 4, informing the synchronous mode selected in the step 3 to the standby network element through IP network communication.
And the master and slave network elements complete the setting of the synchronous mode at the same time.
And step 5, the master and slave network elements synchronize SCTP protocol stacks through the selected synchronization mode.
And step 6, periodically acquiring performance indexes by the main network element and selecting a synchronous mode by adopting the same calculation method as that of the step 3. When the mode changes, go to step 7.
And 7, informing the synchronous mode selected in the step 6 to the standby network element through IP network communication. And the master and slave network elements complete the setting of the synchronous mode at the same time.
In the embodiment of the invention, a strong synchronous mode is optimized, so that the strong consistency of the SCTP protocol stacks of the main and standby network elements is ensured; when the primary and standby synchronization performance indexes are reduced, the mode is reduced to a weak synchronization mode, and consistency of an SCTP protocol stack is guaranteed in a best effort mode; and returning to the strong synchronous mode after the main and standby synchronous performance indexes are recovered to be normal.
After determining that the next synchronization mode changes compared with the current synchronization mode, the main network element can set the next synchronization mode as a corresponding mode, and can send a notification message carrying the synchronization mode to the standby network element, so that the standby network element sets the next synchronization mode as a corresponding mode according to the notification message.
Alternatively, the primary network element may communicate over an IP network, sending the notification message to the backup network element.
Step 103, when the synchronization mode is a strong synchronization mode and the SCTP state context information is updated based on the SCTP message sent by the target device, sending the SCTP synchronization message carrying the SCTP state context information to the standby network element, so that the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization message.
In particular, the target device may be a terminating base station or a network element. The target device may send an SCTP message to the primary network element; after receiving the SCTP message, the master network element may process the SCTP protocol stack, perform SCTP association status and SCTP status context information, and generate an SCTP synchronization message. The SCTP sync message may carry the SCTP state context information.
In the embodiment of the invention, the SCTP protocol message is encoded and decoded by adopting the user state program, and the information such as the protocol state machine, the protocol context and the like is stored in the user state space.
Optionally, the primary and standby network elements can communicate through an IP network to realize the transmission of the state uplink information of the SCTP protocol stack.
In the strong synchronization mode, the main network element directly transmits the SCTP synchronization message to the standby network element. After the standby network element receives the SCTP synchronization message, the SCTP protocol stack held by the standby network element is synchronously set according to the SCTP state context information sent by the main network element, and the SCTP state context information of the standby network element is updated to be the same as the SCTP state context information of the main network element, so that the synchronization of the SCTP protocol stack of the main network and the standby network is realized.
According to the embodiment of the invention, the synchronization mode is determined according to the synchronization performance index of the master and slave network elements, the strong consistency of the master and slave network element SCTP protocol stacks is ensured through the strong synchronization mode, and the success rate of SCTP connection processing during the switching of the master and slave network elements can be improved.
Based on the content of any of the foregoing embodiments, determining a synchronization mode based on the synchronization performance index of the primary network element and the synchronization performance index of the standby network element, and after sending a notification message carrying the synchronization mode to the standby network element, further includes: and under the condition that the synchronization mode is a weak synchronization mode and the SCTP state context information is updated based on the SCTP message sent by the target equipment, sending the SCTP synchronization message carrying the SCTP state context information to the data storage middleware so that the standby network element acquires the SCTP synchronization message from the data storage middleware and performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization message.
Specifically, in the weak synchronization mode, the master network element sends the SCTP synchronization message to the standby network element and to the data storage middleware.
The data storage middleware can be deployed in a main network element, a standby network element or other electronic equipment different from the main network element and the standby network element.
The standby network element acquires the SCTP synchronization message from the data storage middleware, then synchronously sets the SCTP protocol stack held by the standby network element according to the SCTP state context information sent by the main network element, and updates the SCTP state context information of the standby network element to be the same as the SCTP state context information of the main network element, thereby realizing the synchronization of the SCTP protocol stack of the main network and the standby network.
And returning an SCTP response message to the target equipment.
Specifically, in the weak synchronization mode, after the master network element sends the SCTP synchronization message to the data storage middleware, the master network element does not wait for confirmation of the standby network element, and directly returns an SCTP response message to the target device, which indicates that the SCTP response message sent by the target device has been responded.
The embodiment of the invention can ensure the consistency of the SCTP protocol stack through the weak synchronous mode as best as possible, and can avoid the problem of SCTP overtime broken link of the main network element.
Based on the foregoing in any one of the foregoing embodiments, when the synchronization mode is a strong synchronization mode and SCTP state context information is updated based on an SCTP message sent by the target device, sending an SCTP synchronization message carrying SCTP state context information to the standby network element, so that after the standby network element performs SCTP protocol stack synchronization with the primary network element based on the SCTP synchronization message, the method further includes: and under the condition that the SCTP synchronization confirmation message returned by the network element is received in a preset time period, returning an SCTP response message to the target equipment.
Specifically, the preset time period refers to a time period with a time of sending the SCTP synchronization message as a starting time and a time length as a preset time length.
The preset time length can be set according to actual requirements. For a specific value of the preset duration, the embodiment of the present invention is not specifically limited.
If the SCTP synchronization confirmation message returned by the network element is received within the preset time period, an SCTP response message can be returned to the target device, wherein the SCTP response message indicates that the SCTP message sent by the target device is responded.
The embodiment of the invention ensures the strong consistency of the SCTP protocol stacks of the master and standby network elements through the strong synchronous mode, and can improve the success rate of the SCTP connection processing during the switching of the master and standby network elements.
Based on the foregoing in any one of the foregoing embodiments, when the synchronization mode is a strong synchronization mode and SCTP state context information is updated based on an SCTP message sent by the target device, sending an SCTP synchronization message carrying SCTP state context information to the standby network element, so that after the standby network element performs SCTP protocol stack synchronization with the primary network element based on the SCTP synchronization message, the method further includes: and under the condition that the SCTP synchronization confirmation message returned by the standby network element is not received within a preset time period, the SCTP connection with the target equipment is interrupted.
Specifically, after the primary network element sends the SCTP synchronization message, if the SCTP synchronization confirmation message returned by the standby network element is not received within a preset time period, the SCTP connection with the target device may be interrupted.
The failure to receive the SCTP synchronization confirmation message returned by the standby network element within the preset time period may include that the standby network element fails to return the SCTP synchronization confirmation message and that the standby network element returns the SCTP synchronization confirmation message, but the time when the main network element receives the SCTP synchronization confirmation message is not within the preset time period (i.e. overtime).
The SCTP synchronization confirmation message returned by the standby network element is not received in a preset time period, which indicates that the main network element and the standby network element have faults through the network, or the standby network element operates abnormally or has high load, the SCTP protocol stack synchronization may not be successful, and the main network element can interrupt the SCTP connection with the target equipment.
According to the embodiment of the invention, under the condition that the SCTP synchronization confirmation message returned by the standby network element is not received in the preset time period, the SCTP connection with the target equipment is interrupted, and invalid active-standby switching can be avoided.
Based on the content of any of the foregoing embodiments, determining a synchronization mode based on the synchronization performance index of the primary network element and the synchronization performance index of the backup network element includes: and acquiring a performance value based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element.
Specifically, a method such as mathematical statistics can be adopted to obtain a performance value based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element.
Illustratively, the synchronization message delay of the main network element and the standby network element and the synchronization message jitter value can be forward-oriented; then adopting the same method to normalize the success rate of the synchronous message of the main network element, the time delay of the synchronous message after forward conversion and the jitter value of the synchronous message after forward conversion, and normalize the success rate of the synchronous message of the standby network element, the time delay of the synchronous message after forward conversion and the jitter value of the synchronous message after forward conversion; and obtaining the sum of the synchronous performance index of the normalized main network element and the synchronous performance index of the standby network element as a performance value.
Illustratively, forward conversion may be performed by an inverse transform method or an inverse method, but is not limited thereto.
For example, in the case where the synchronization performance index includes a synchronization message success rate, a smaller one of the synchronization message success rate of the primary network element and the synchronization message success rate of the backup network element may be determined as the performance value.
And determining that the synchronous mode is a strong synchronous mode when the performance value is greater than or equal to a preset value, and determining that the synchronous mode is a weak synchronous mode when the performance value is less than the preset value.
Specifically, when the current synchronization mode is the strong synchronization mode, after the performance value is smaller than the configured threshold (i.e., a preset value), the selection mode is the weak synchronization mode. Otherwise, the mode is still a strong synchronization mode.
When the current sync mode is the weak sync mode, the selected mode is the strong sync mode after the cal value is greater than the configured threshold. Otherwise, the mode is still a weak synchronization mode. If the pattern changes.
The preset value may be configured in advance according to actual conditions. The embodiment of the present invention is not particularly limited as to the specific value of the preset value.
According to the embodiment of the invention, the performance value is obtained based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element, the synchronization mode is determined to be the strong synchronization mode under the condition that the performance value is larger than or equal to the preset value, and the synchronization mode is determined to be the weak synchronization mode under the condition that the performance value is smaller than the preset value, so that the synchronization mode can be more accurately determined, and the success rate of SCTP connection processing during the switching of the main network element and the standby network element can be improved.
Based on the content of any of the foregoing embodiments, obtaining a performance value based on the synchronization performance index of the primary network element and the synchronization performance index of the backup network element includes: and acquiring a minimum value in the success rate of the synchronous messages of the main network element and the standby network element, and a weighted sum of the minimum value in the forward synchronous message time delay of the main network element and the standby network element and the minimum value in the forward synchronous message jitter value of the main network element and the standby network element as performance values based on the success rate of the synchronous messages, the time delay of the synchronous messages and the weight of the synchronous message jitter value.
Specifically, selecting the minimum value of the synchronous performance indexes of the same type reported by the main network element and the standby network element, and according to the formula: the performance value=w1×minimum value of index 1+w2×minimum value of index 2+w3×minimum value of index 3, and the performance value is calculated.
Wherein w1, w2 and w3 represent weights of index 1, index 2 and index 3, respectively. The index 1, the index 2 and the index 3 can correspond to the success rate of the synchronous message, the time delay of the synchronous message after forward conversion and the jitter value of the synchronous message after forward conversion.
The weight of the synchronization performance index can be configured in advance according to the actual situation. The embodiment of the present invention is not particularly limited with respect to the specific value of the weight.
According to the embodiment of the invention, the minimum value in the success rate of the synchronous messages of the main network element and the standby network element, the weighted sum of the minimum value in the forward synchronous message time delay of the main network element and the standby network element and the minimum value in the forward synchronous message jitter value of the main network element and the standby network element are obtained as the performance value based on the weights of the success rate of the synchronous messages, the time delay of the synchronous messages and the jitter value of the synchronous messages, so that the performance value which more accurately characterizes the synchronous performance between the main network element and the standby network element can be obtained, the synchronous mode can be more accurately determined, and the success rate of SCTP continuous processing during the switching of the main network element and the standby network element can be improved.
Based on the foregoing content of any one of the foregoing embodiments, fig. 3 is a schematic flow diagram of a strong synchronization mode in the SCTP protocol stack synchronization method provided by the present invention. As shown in fig. 3, the implementation of the strong synchronization mode is as follows:
and step 1, sending SCTP information by the opposite terminal base station or the network element.
And step 2, the master network element receives the SCTP message, and transmits the SCTP message to the SCTP protocol stack for processing, and generates an SCTP state context synchronous message.
And step 3, the main network element transmits the SCTP synchronous message to the standby network element through the IP network.
And 4, the main network element waits for receiving the SCTP synchronization confirmation message of the standby network element.
And step 5, after receiving the SCTP synchronization message, the standby network element updates the user state SCTP protocol stack, and synchronizes the SCTP coupling state and the context with the main network element to be consistent.
And 6, after the standby network element synchronizes the SCTP, sending an SCTP synchronization confirmation message to the main network element through the IP network. If the primary/backup network fails or the backup network element is running abnormally or the load is high, the process goes to step 8 (step 8a or step 8 b).
And 7, the master network element receives the SCTP synchronization confirmation message, and the SCTP protocol processing continues to send an SCTP response message to the opposite terminal base station or the network element.
Step 8a, if the primary and secondary network fails or the secondary network element runs abnormally or the load is high, the secondary network element does not send an SCTP synchronization confirmation message to the primary network element, and the step 9 is shifted.
Step 8b, if the primary and the secondary network fail or the secondary network element operates abnormally or the load is high, the secondary network element sends the SCTP synchronization confirmation message to the primary network element to delay and overtime, and the step 9 is shifted.
And 9, interrupting the connection between the main network element and the opposite base station or the network cloud SCTP.
Based on the foregoing content of any one of the foregoing embodiments, fig. 4 is a schematic flow diagram of a weak synchronization mode in the SCTP protocol stack synchronization method provided by the present invention. As shown in fig. 4, the implementation of the weak synchronization mode is as follows:
And step 1, sending SCTP information by the opposite terminal base station or the network element.
And step 2, the master network element receives the SCTP message, and transmits the SCTP message to the SCTP protocol stack for processing, and generates an SCTP state context synchronous message.
And step 3, the master network element transmits the SCTP synchronous message to the data storage middleware through the IP network.
And 4, the main network element continues the subsequent processing of the SCTP message and sends an SCTP response message to the opposite terminal base station or the network element.
And step 5, the standby network element pulls the SCTP synchronization message from the data storage middleware.
And step 6, after receiving the SCTP synchronization message, the standby network element updates the user state SCTP protocol stack, and synchronizes the SCTP coupling state and the context with the main network element to be consistent. And when the standby network element cannot receive the SCTP synchronous message from the data storage middleware due to network failure or abnormal operation or high load of the standby network element, turning to the step 7.
And 7, due to SCTP synchronization failure, primary and standby SCTP synchronization is inconsistent. After the primary and standby are switched, after the opposite terminal base station or the network element sends the SCTP message to the standby network element, the SCTP protocol stack information is incorrect, so that the SCTP is broken.
The description of the SCTP protocol stack synchronization device provided by the present invention is provided below, and the SCTP protocol stack synchronization device described below and the SCTP protocol stack synchronization method described above may be referred to correspondingly.
Fig. 5 is a schematic structural diagram of an SCTP protocol stack synchronization device provided by the present invention. Based on the foregoing content of any one of the foregoing embodiments, as shown in fig. 5, the apparatus includes an acquisition module 501, a determination module 502, and a synchronization module 503, where:
an obtaining module 501, configured to obtain a synchronization performance index of a primary network element and a synchronization performance index of a standby network element;
a determining module 502, configured to determine a synchronization mode based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element, and send a notification message carrying the synchronization mode to the standby network element;
a synchronization module 503, configured to, when the synchronization mode is a strong synchronization mode and SCTP state context information is updated based on an SCTP message sent by the target device, send an SCTP synchronization message carrying SCTP state context information to the standby network element, so that the standby network element performs SCTP protocol stack synchronization with the primary network element based on the SCTP synchronization message;
the synchronization performance index comprises at least one of a synchronization message success rate, a synchronization message delay and a synchronization message jitter value.
Specifically, the acquisition module 501, the determination module 502, and the synchronization module 503 may be electrically connected in sequence.
The obtaining module 501 may periodically obtain the synchronization performance index of the standby network element from the performance collector.
The acquiring module 501 may directly acquire the own synchronization performance index, or may periodically report the synchronization performance index to the performance collector, and periodically acquire the own synchronization performance index from the performance collector.
The determining module 502 may determine the current synchronization performance between the primary and the secondary network elements based on the synchronization performance index of the primary network element and the synchronization performance index of the secondary network element; under the condition that the current synchronization performance between the main network element and the standby network element is higher, a strong synchronization mode can be determined as a synchronization mode of next synchronization; and under the condition that the current synchronization performance between the main network element and the standby network element is poor, the weak synchronization mode can be determined as the synchronization mode of the next synchronization.
The synchronization module 503 may process the SCTP message sent by the target device by the SCTP protocol stack, perform the SCTP association state and the SCTP state context information, and generate an SCTP synchronization message. The SCTP sync message may carry the SCTP state context information.
In the strong synchronization mode, the synchronization module 503 may also directly send the SCTP synchronization message to the standby network element. After the standby network element receives the SCTP synchronization message, the SCTP protocol stack held by the standby network element is synchronously set according to the SCTP state context information sent by the main network element, and the SCTP state context information of the standby network element is updated to be the same as the SCTP state context information of the main network element, so that the synchronization of the SCTP protocol stack of the main network and the standby network is realized.
Optionally, the synchronization module 503 may be further configured to, when the synchronization mode is a weak synchronization mode and SCTP state context information is updated based on an SCTP message sent by the target device, send an SCTP synchronization message carrying SCTP state context information to the data storage middleware, so that the standby network element obtains the SCTP synchronization message from the data storage middleware, and performs SCTP protocol stack synchronization with the primary network element based on the SCTP synchronization message;
the apparatus may further include:
and the communication module is used for returning the SCTP response message to the target equipment.
Optionally, the communication module may be further configured to, when receiving the SCTP synchronization acknowledgement message returned by the network element in the preset period of time, return an SCTP response message to the target device.
Optionally, the apparatus may further include:
and the interruption module is used for interrupting the SCTP connection with the target equipment under the condition that the SCTP synchronization confirmation message returned by the standby network element is not received within a preset time period.
Optionally, the determining module 502 may include:
an obtaining unit, configured to obtain a performance value based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element;
and the determining unit is used for determining that the synchronous mode is a strong synchronous mode when the performance value is larger than or equal to a preset value and determining that the synchronous mode is a weak synchronous mode when the performance value is smaller than the preset value.
Optionally, the obtaining unit may be configured to obtain, as the performance value, a weighted sum of a minimum value in the success rate of the synchronization message of the main network element and the standby network element, a minimum value in the forward synchronization message delay of the main network element and the standby network element, and a minimum value in the forward synchronization message jitter value of the main network element and the standby network element, based on weights of the success rate of the synchronization message, the synchronization message delay, and the synchronization message jitter value.
The SCTP protocol stack synchronization device provided by the embodiment of the present invention is configured to execute the above SCTP protocol stack synchronization method of the present invention, and its implementation manner is consistent with the implementation manner of the SCTP protocol stack synchronization method provided by the present invention, and the same beneficial effects can be achieved, which is not described herein again.
The SCTP protocol stack synchronization device is used for the SCTP protocol stack synchronization method of the previous embodiments. Therefore, the description and definition in the SCTP protocol stack synchronization method in the foregoing embodiments may be used for understanding each execution module in the embodiments of the present invention.
According to the embodiment of the invention, the synchronization mode is determined according to the synchronization performance index of the master and slave network elements, the strong consistency of the master and slave network element SCTP protocol stacks is ensured through the strong synchronization mode, and the success rate of SCTP connection processing during the switching of the master and slave network elements can be improved.
Fig. 6 is a schematic structural diagram of an electronic device according to the present invention, and as shown in fig. 6, the electronic device may include: processor 610, communication interface (Communications Interface) 620, memory 630, and communication bus 640, wherein processor 610, communication interface 620, and memory 630 communicate with each other via communication bus 640. The processor 610 may invoke logic instructions in the memory 630 to perform SCTP protocol stack synchronization methods, including: acquiring the synchronization performance index of the main network element and the synchronization performance index of the standby network element; determining a synchronization mode based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element, and sending a notification message carrying the synchronization mode to the standby network element; under the condition that the synchronous mode is a strong synchronous mode and the SCTP state context information is updated based on the SCTP message sent by the target equipment, sending the SCTP synchronous message carrying the SCTP state context information to the standby network element, so that the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronous message; the synchronization performance index comprises at least one of a synchronization message success rate, a synchronization message delay and a synchronization message jitter value.
Further, the logic instructions in the memory 630 may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The processor 610 in the electronic device provided in the embodiment of the present application may call the logic instruction in the memory 630, and its implementation manner is consistent with the implementation manner of the SCTP protocol stack synchronization method provided in the present application, and may achieve the same beneficial effects, which are not described herein again.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the SCTP protocol stack synchronization method provided by the above methods, the method comprising: acquiring the synchronization performance index of the main network element and the synchronization performance index of the standby network element; determining a synchronization mode based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element, and sending a notification message carrying the synchronization mode to the standby network element; under the condition that the synchronous mode is a strong synchronous mode and the SCTP state context information is updated based on the SCTP message sent by the target equipment, sending the SCTP synchronous message carrying the SCTP state context information to the standby network element, so that the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronous message; the synchronization performance index comprises at least one of a synchronization message success rate, a synchronization message delay and a synchronization message jitter value.
When the computer program product provided in the embodiment of the present application is executed, the above SCTP protocol stack synchronization method is implemented, and a specific implementation manner of the method is consistent with an implementation manner described in the embodiment of the foregoing method, and may achieve the same beneficial effects, which are not described herein again.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the SCTP protocol stack synchronization methods provided above, the method comprising: acquiring the synchronization performance index of the main network element and the synchronization performance index of the standby network element; determining a synchronization mode based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element, and sending a notification message carrying the synchronization mode to the standby network element; under the condition that the synchronous mode is a strong synchronous mode and the SCTP state context information is updated based on the SCTP message sent by the target equipment, sending the SCTP synchronous message carrying the SCTP state context information to the standby network element, so that the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronous message; the synchronization performance index comprises at least one of a synchronization message success rate, a synchronization message delay and a synchronization message jitter value.
When the computer program stored on the non-transitory computer readable storage medium provided in the embodiment of the present application is executed, the above SCTP protocol stack synchronization method is implemented, and a specific implementation manner of the method is consistent with an implementation manner described in the embodiment of the foregoing method, and may achieve the same beneficial effects, which are not described herein.
The apparatus embodiments described above are merely illustrative, wherein elements illustrated as separate elements may or may not be physically separate, and elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product, which may be stored in a computer-readable storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the various embodiments or methods of some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for synchronizing an SCTP protocol stack, comprising:
acquiring the synchronization performance index of the main network element and the synchronization performance index of the standby network element;
determining a synchronization mode based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element, and sending a notification message carrying the synchronization mode to the standby network element;
under the condition that the synchronization mode is a strong synchronization mode and SCTP state context information is updated based on SCTP information sent by target equipment, SCTP synchronization information carrying the SCTP state context information is sent to the standby network element, so that the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization information;
The synchronization performance index comprises at least one of a synchronization message success rate, a synchronization message time delay and a synchronization message jitter value;
and when the synchronization mode is a strong synchronization mode and SCTP state context information is updated based on the SCTP message sent by the target device, sending an SCTP synchronization message carrying the SCTP state context information to the standby network element, so that the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization message, and then further includes:
and under the condition that the SCTP synchronization confirmation message returned by the standby network element is received in a preset time period, returning an SCTP response message to the target equipment.
2. The SCTP protocol stack synchronization method of claim 1, wherein after determining a synchronization pattern based on the synchronization performance index of the primary network element and the synchronization performance index of the standby network element, and sending a notification message carrying the synchronization pattern to the standby network element, the method further comprises:
under the condition that the synchronization mode is a weak synchronization mode and SCTP state context information is updated based on SCTP information sent by the target equipment, sending the SCTP synchronization information carrying the SCTP state context information to a data storage middleware so that the standby network element acquires the SCTP synchronization information from the data storage middleware and performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization information;
And returning an SCTP response message to the target equipment.
3. The SCTP protocol stack synchronization method of claim 1, wherein, in the case that the synchronization mode is a strong synchronization mode and SCTP state context information is updated based on an SCTP message sent by a target device, sending an SCTP synchronization message carrying the SCTP state context information to the standby network element, so that after the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization message, the method further comprises:
and under the condition that the SCTP synchronization confirmation message returned by the standby network element is not received within a preset time period, the SCTP connection with the target equipment is interrupted.
4. The SCTP protocol stack synchronization method of claim 1, wherein determining a synchronization pattern based on the synchronization performance index of the primary network element and the synchronization performance index of the backup network element comprises:
acquiring a performance value based on the synchronization performance index of the main network element and the synchronization performance index of the standby network element;
and determining that the synchronous mode is a strong synchronous mode when the performance value is larger than or equal to a preset value, and determining that the synchronous mode is a weak synchronous mode when the performance value is smaller than the preset value.
5. The SCTP protocol stack synchronization method of claim 4, wherein the obtaining the performance value based on the synchronization performance index of the primary network element and the synchronization performance index of the standby network element comprises:
and acquiring a weighted sum of the minimum value in the success rate of the synchronous messages of the main network element and the standby network element, the minimum value in the forward synchronous message delay of the main network element and the standby network element and the minimum value in the forward synchronous message jitter value of the main network element and the standby network element as the performance value based on the weights of the success rate of the synchronous messages, the synchronous message delay and the synchronous message jitter value.
6. An SCTP protocol stack synchronization apparatus, comprising:
the acquisition module is used for acquiring the synchronous performance index of the main network element and the synchronous performance index of the standby network element;
the determining module is used for determining a synchronous mode based on the synchronous performance index of the main network element and the synchronous performance index of the standby network element and sending a notification message carrying the synchronous mode to the standby network element;
a synchronization module, configured to, when the synchronization mode is a strong synchronization mode and SCTP state context information is updated based on an SCTP message sent by a target device, send an SCTP synchronization message carrying the SCTP state context information to the standby network element, so that the standby network element performs SCTP protocol stack synchronization with the main network element based on the SCTP synchronization message;
The synchronization performance index comprises at least one of a synchronization message success rate, a synchronization message time delay and a synchronization message jitter value;
and the communication module is used for returning an SCTP response message to the target equipment under the condition that the SCTP synchronization confirmation message returned by the standby network element is received in a preset time period.
7. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the SCTP protocol stack synchronization method of any of claims 1-5 when the program is executed by the processor.
8. A non-transitory computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the SCTP protocol stack synchronization method of any of claims 1 to 5.
CN202210427979.5A 2022-04-21 2022-04-21 SCTP protocol stack synchronization method and device Active CN114978872B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210427979.5A CN114978872B (en) 2022-04-21 2022-04-21 SCTP protocol stack synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210427979.5A CN114978872B (en) 2022-04-21 2022-04-21 SCTP protocol stack synchronization method and device

Publications (2)

Publication Number Publication Date
CN114978872A CN114978872A (en) 2022-08-30
CN114978872B true CN114978872B (en) 2023-06-06

Family

ID=82978974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210427979.5A Active CN114978872B (en) 2022-04-21 2022-04-21 SCTP protocol stack synchronization method and device

Country Status (1)

Country Link
CN (1) CN114978872B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118433013A (en) * 2023-02-01 2024-08-02 腾讯科技(深圳)有限公司 Data packet transmission control method and device based on main and standby machine, equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254099A (en) * 2016-07-26 2016-12-21 杭州华三通信技术有限公司 A kind of information synchronization method based on network element device and device
CN111130921A (en) * 2019-11-28 2020-05-08 中盈优创资讯科技有限公司 Method and device for processing performance index of core network element

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254099A (en) * 2016-07-26 2016-12-21 杭州华三通信技术有限公司 A kind of information synchronization method based on network element device and device
CN111130921A (en) * 2019-11-28 2020-05-08 中盈优创资讯科技有限公司 Method and device for processing performance index of core network element

Also Published As

Publication number Publication date
CN114978872A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
CN111372272B (en) Abnormality recovery method and device for wireless bridging network
CN101621819B (en) Information synchronization detection method for active-standby switching interface module, network element system and link
CN102088372B (en) Heartbeat detecting method, system and equipment
CN111447094A (en) Master-slave switching method of dual computers, terminal equipment and computer readable storage medium
CN114978872B (en) SCTP protocol stack synchronization method and device
EP2928229B1 (en) Cross-device linear multiplex section overhead method, gateway and controller
CN103281720B (en) The hot standby changing method of wireless controller and device, wireless controller, connecting system
WO2012159570A1 (en) Link switchover method and apparatus
CN113271687B (en) Data transmission method, service base station and anchor point base station
CN108964984B (en) Seamless switching method for redundant channel of power system main station and sub station communication
CN101568135B (en) Communication method, communication equipment and communication system
CN101686081A (en) Method for reestablishing synchronous connection, device and system thereof
CN112383414A (en) Method and device for fast switching of dual-computer hot backup
CN111787559A (en) Gateway WiFi (Wireless Fidelity) fault transfer method, device, equipment and medium
CN113498621A (en) Failure recovery for multiple UE devices
CN116028278A (en) Main/standby dual-machine switching method, medium and system
CN102026243B (en) Method and system for processing user equipment
US11350385B2 (en) Paging failure processing method, access network device, and core network device
WO2021029796A1 (en) Methods for maintaining an ongoing communication even after site outage
US10237886B2 (en) Communication relay device and communication relay method
CN112702439B (en) Method for synchronizing status of gatekeeper and isolated gatekeeper
CN115842751B (en) Link detection method, device, system, equipment and readable storage medium
CN111405599A (en) Wireless controller fault switching method, system, electronic equipment and storage medium
CN115412424B (en) Double-master device detection method and device in MLAG environment
CN118301789A (en) Communication method, 5G network system and equipment

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

Effective date of registration: 20231025

Address after: 266107 No. 2, Xiangtan Road, Danshan Industrial Park, Chengyang District, Qingdao, Shandong

Patentee after: Inspur Communication Technology Co.,Ltd.

Address before: 250101 Inspur science and Technology Park, 1036 Inspur Road, hi tech Zone, Jinan City, Shandong Province

Patentee before: Shandong Inspur Scientific Research Institute Co.,Ltd.