Method for realizing dynamic capacity expansion and shrinkage of SIP (Session Initiation Protocol) call based on routing consistency detection
By performing the routing consistency detection synchronization process between the SIP signaling processing module and the SIP load balancer and using message-specific channels, the problem of dynamic expansion and capacity of the SIP signaling processing module in the prior art is solved, and fast, reliable, lossless service adaptation and load balancing are achieved.
Patent Information
- Application Number
- CN202411678943.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-11-22
AI Technical Summary
The prior art is difficult to quickly, reliably and losslessly realize the dynamic expansion and scaling of SIP signaling processing modules, which makes it difficult to adapt to rapid service updates and changes, and may lead to uneven loads or service interruptions.
By executing the routing activation synchronization process and the routing deactivation synchronization process based on routing consistency detection between the SIP signaling processing module and the SIP load balancer, and accelerating information interaction using message-specific channels, the dynamic expansion and scaling of the SIP signaling processing module is realized.
It realizes reliable dynamic expansion and capacity expansion of SIP signaling processing module, shortens the expansion and capacity expansion time to within seconds, ensures rapid service adaptation and uniform load sharing, and avoids service interruption.
Smart Images

Figure CN119561932A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for realizing dynamic expansion and contraction of SIP calls based on route consistency detection. Background Art
[0002] SIP (Session initialization Protocol) technology is currently widely used in communication systems, especially in various value-added service systems that currently use SIP signaling to process services. There are many types of services, the business is developing rapidly, and the number of concurrent SIP signaling processing paths is high. It is often necessary to expand or shrink the SIP signaling processing module. At the same time, in order to ensure the stability of the network, the SIP signaling processing module is generally connected to the IMS (IP Multimedia Subsystem) core network through a SIP load balancer.
[0003] In the existing system, the route detection between the SIP signaling processing module and the SIP load balancer is often implemented through Ping (Packet Internet Groper) detection. Ping detection uses the ICMP (Internet Control Message Protocol) protocol to detect whether the route is reachable through the interaction of ICMP Echo Request and ICMP Echo Reply. The disadvantage is that it often takes more than seconds to complete the detection. More importantly, due to the lack of detection of the route between the SIP signaling processing module and the SIP load balancer, it is impossible to confirm whether the route of the SIP signaling processing module to be expanded or reduced is completely consistent with that of other modules. For example, due to configuration errors or configuration adjustments, or network abnormalities, the route changes or route abnormalities caused by factors such as routing changes cannot ensure that the service can be evenly shared after expansion or reduction, and it is even impossible to confirm whether the remaining SIP signaling processing modules can fully undertake the service after reduction. Therefore, the current network often adopts the static expansion and reduction method: when the service volume is small, such as at night, the configuration is modified and all modules are restarted to achieve expansion and reduction. This undoubtedly increases the difficulty of operation and maintenance and limits the rapid promotion and adjustment of services.
[0004] Therefore, how to reliably, quickly, losslessly and online realize the expansion and contraction of SIP signaling processing modules to adapt to the rapid updates and changes of services, and how to apply it to different networking environments, such as non-SingleIP networking and SingleIP networking, are important issues that need to be solved in the development of value-added communication services using current SIP technology. Summary of the invention
[0005] In view of the problems existing in the prior art, the object of the present invention is to provide a technical solution for a method for realizing dynamic expansion and contraction of SIP calls based on route consistency detection.
[0006] The method for realizing dynamic expansion and contraction of SIP calls based on route consistency detection is characterized in that the route activation synchronization process and route deactivation synchronization process based on route consistency detection are executed between the SIP signaling processing module and the SIP load balancer, and the message dedicated channel is used to accelerate information interaction, so as to realize reliable expansion and contraction of the SIP signaling processing module and reduce the expansion and contraction time to within seconds; when the SIP signaling processing module is expanded, the route activation synchronization process is executed, including five steps of route activation synchronization request, route activation synchronization response, route consistency query, route consistency query response and route activation confirmation; SI When the SIP signaling processing module is scaled down, the routing deactivation synchronization process is executed, including five steps: routing deactivation synchronization request, routing deactivation synchronization response, routing consistency query request, routing consistency query response and routing deactivation confirmation; the routing activation synchronization process and the routing deactivation synchronization process complete information interaction through messages, and quickly send and receive or resend messages through a dedicated message channel to achieve lossless dynamic expansion and contraction of the SIP signaling processing module within 1 second and at the level of hundreds of milliseconds; through the verification and confirmation mechanism of the routing information between the SIP signaling processing module and the SIP load balancer, the reliable dynamic expansion and contraction of the SIP signaling processing module is achieved.
[0007] The method for realizing dynamic expansion and contraction of SIP calls based on route consistency detection is characterized in that the route activation synchronization process and route deactivation synchronization process based on route consistency detection can be used for non-SingleIP mode of SIP load balancer and SingleIP mode of SIP load balancer.
[0008] The method for realizing dynamic expansion and contraction of SIP calls based on route consistency detection is characterized in that the message content of the route activation synchronization process and the route deactivation synchronization process based on route consistency detection includes the following information: the total number of configured routes, the total number of reachable routes, the route sequence number, the intranet port address of the SIP load balancer, the intranet address of the SIP signaling processing module, the IP version and the route status.
[0009] The method for realizing dynamic expansion and contraction of SIP calls based on route consistency detection is characterized in that the SIP signaling processing module and the SIP load balancer both use dedicated message channels to establish a dedicated message queue between the network card and the application layer of the process to transmit messages; at the same time, a UDP port different from that of the SIP signaling message is used to transmit interactive messages, so as to realize rapid identification, forwarding and processing of messages by the SIP signaling processing module and the SIP load balancer.
[0010] The method for realizing dynamic expansion and contraction of SIP calls based on route consistency detection is characterized in that the SIP signaling processing module periodically sends detection message messages through a dedicated message channel, the message sending interval is set to 20MS by default, and the default detection timeout multiple can be set to 3 times; if the detection timeout multiple is exceeded, an abnormality is reported, and the relevant configuration and network of the route that failed the detection are selected to be re-detected or checked according to the network management strategy; by adopting a dedicated message channel and a strategy of periodically sending detection messages, the route detection between the SIP signaling processing module and the SIP load balancer reaches within 1 second and hundreds of milliseconds.
[0011] The method for realizing dynamic expansion and contraction of SIP calls based on route consistency detection is characterized in that each SIP load balancer in the non-SingleIP mode is configured with a different external IP address, and each SIP load balancer in the SingleIP mode is configured with the same external IP address; in the SingleIP mode, SIP messages can be received on any SIP load balancer; in order to synchronize SIP session information, the SIP load balancer can synchronize SIP session information between SIP load balancers through the SIP flow table synchronization function; The SIP flow table synchronization function includes the creation, update and deletion of the synchronized SIP flow table. The content of the flow table synchronization message includes the configuration flow table identifier and the Call-Id field of the SIP protocol. In the SingleIP mode of the SIP load balancer, combined with the routing consistency detection and SIP flow table synchronization, the SIP signaling processing module can be quickly and losslessly dynamically expanded and reduced. If the routing consistency test result is normal during capacity expansion, the SIP load balancer will forward the new SIP call to the newly added SIP signaling processing module; if the routing consistency test result is normal during capacity reduction, the SIP load balancer will no longer forward the newly initiated SIP call to the reduced SIP signaling processing module, but will still forward the subsequent SIP messages of the previously online calls, so that the previously online calls can be terminated normally; The route activation synchronization process and route deactivation synchronization process based on route consistency detection are initiated by the network management notifying the SIP signaling processing module, and each SIP load balancer responds.
[0012] The method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection is characterized in that the process of dynamic expansion of the non-SingleIP mode SIP signaling processing module is as follows: (2.1): The network management triggers the expansion of the SIP signaling processing module, and the SIP signaling processing module to be expanded sends a routing activation synchronization request to each SIP load balancer in parallel; the SIP signaling processing module to be expanded n+1 sends a routing activation synchronization request message to SIP load balancer 1; (2.2): The SIP signaling processing module n+1 to be expanded sends a routing activation synchronization request message to the SIP load balancer 2; (2.3): The SIP signaling processing module n+1 to be expanded sends a routing activation synchronization request message to the SIP load balancer 3; (2.4): After receiving the route activation synchronization request, SIP load balancer 1 starts the route consistency detection to detect whether the routes with other SIP load balancers are consistent: send route consistency query requests to other SIP load balancers respectively, and the request message contains the route information of SIP load balancer 1 and all SIP signaling processing modules. The route information includes the IP version of the SIP signaling processing module and the IP address of the corresponding IP version, and whether the route status is available; SIP load balancer 1 sends a route consistency query request message to SIP load balancer 2; (2.5): SIP load balancer 1 sends a route consistency query request message to SIP load balancer 3; (2.6): After receiving the routing consistency query request message from SIP load balancer 1, SIP load balancer 2 parses the routing information in the message and compares it with the current routing information of the load balancer. If they are consistent, it returns success, otherwise it returns failure and sends a routing consistency query response message to feed back the routing consistency detection result to SIP load balancer 1; (2.7): SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 1; (2.8): SIP load balancer 1 receives the route consistency detection results of SIP load balancer 2 and SIP load balancer 3. If both are successful, it returns a successful route activation synchronization confirmation to the SIP signaling processing module n+1 to be expanded, otherwise it returns a failure confirmation; (2.9): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 1; (2.10): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 3; (2.11): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (2.12): SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (2.13): SIP load balancer 2 receives the route consistency detection results of SIP load balancer 1 and SIP load balancer 3. If both are successful, it returns a successful route activation synchronization confirmation to the SIP signaling processing module n+1 to be expanded, otherwise it returns a failure confirmation; (2.14): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 1; (2.15): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 2; (2.16): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (2.17): SIP load balancer 2 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (2.18): SIP load balancer 3 receives the route consistency detection results of SIP load balancer 1 and SIP load balancer 2. If both are successful, it returns a successful route activation synchronization confirmation to the SIP signaling processing module n+1 to be expanded, otherwise it returns a failure confirmation; (2.19): The SIP signaling processing module n+1 to be expanded receives the route activation synchronization confirmation from SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3. If all are successful, it sends a route activation confirmation message to SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 in parallel, otherwise it does not send; SIP signaling processing module n+1 sends a route activation confirmation message to SIP load balancer 1; (2.20): SIP signaling processing module n+1 sends a routing activation confirmation message to SIP load balancer 2; (2.21): The SIP signaling processing module n+1 sends a routing activation confirmation message to the SIP load balancer 3; (2.22): After SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 receive the routing activation confirmation message, it indicates that the capacity expansion of SIP signaling processing module n+1 is successful. After that, each SIP load balancer distributes the SIP signaling flow according to the expanded routing table, including sending the SIP signaling flow to SIP signaling processing module n+1. After receiving the SIP signaling processing module n+1, it continues to process the signaling message. If the routes of each SIP load balancer and the SIP signaling processing module n+1 to be expanded are inconsistent, the route activation process fails and an abnormal log needs to be output. The on-site engineering personnel need to check whether the configuration and network are abnormal.
[0013] The method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection is characterized in that the process of dynamic contraction of the non-SingleIP mode SIP signaling processing module is as follows: (3.1): The network management triggers the SIP signaling processing module to be scaled down, and the SIP signaling processing module to be scaled down sends a routing deactivation synchronization request to each SIP load balancer in parallel; the SIP signaling processing module to be scaled down n+1 sends a routing deactivation synchronization request message to SIP load balancer 1; (3.2): The SIP signaling processing module n+1 to be scaled down sends a routing deactivation synchronization request message to the SIP load balancer 2; (3.3): The SIP signaling processing module n+1 to be scaled down sends a routing deactivation synchronization request message to the SIP load balancer 3; (3.4): After receiving the route deactivation synchronization request, SIP load balancer 1 starts route consistency detection to detect whether the routes with other SIP load balancers are consistent: send route consistency query requests to other SIP load balancers respectively, and the request message contains the route information of SIP load balancer 1 and all SIP signaling processing modules. The route information includes the IP version of the SIP signaling processing module and the IP address of the corresponding IP version, and whether the route status is available; SIP load balancer 1 sends a route consistency query request message to SIP load balancer 2; (3.5): SIP load balancer 1 sends a route consistency query request message to SIP load balancer 3; (3.6): After receiving the routing consistency query request message from SIP load balancer 1, SIP load balancer 2 parses the routing information in the message and compares it with the current routing information of the load balancer. If they are consistent, it returns success, otherwise it returns failure and sends a routing consistency query response message to feed back the routing consistency detection result to SIP load balancer 1; (3.7): SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 1; (3.8): SIP load balancer 1 receives the route consistency detection results of SIP load balancers 2 and 3. If both are successful, it returns a successful route deactivation synchronization confirmation to the SIP signaling processing module n+1 to be scaled down, otherwise it returns a failure confirmation; (3.9): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 1; (3.10): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 3; (3.11): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (3.12): SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (3.13): SIP load balancer 2 receives the route consistency detection results of SIP load balancers 1 and 3. If both are successful, it returns a successful route deactivation synchronization confirmation to the SIP signaling processing module n+1 to be scaled down, otherwise it returns a failure confirmation; (3.14): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 1; (3.15): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 2; (3.16): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (3.17): SIP load balancer 2 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (3.18): SIP load balancer 3 receives the route consistency detection results of SIP load balancers 1 and 2. If both are successful, it returns a successful route deactivation synchronization confirmation to the SIP signaling processing module n+1 to be scaled down, otherwise it returns a failure confirmation; (3.19): The SIP signaling processing module n+1 to be scaled down receives the routing deactivation synchronization confirmation from SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3. If all are successful, a routing deactivation confirmation message is sent to SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 in parallel, otherwise no message is sent; SIP signaling processing module n+1 sends a routing deactivation confirmation message to SIP load balancer 1; (3.20): SIP signaling processing module n+1 sends a routing deactivation confirmation message to SIP load balancer 2; (3.21): SIP signaling processing module n+1 sends a routing deactivation confirmation message to SIP load balancer 3; (3.22): After SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 receive the route deactivation confirmation message, it means that the SIP signaling processing module n+1 has been successfully reduced in capacity. After that, each SIP load balancer distributes the SIP signaling flow according to the reduced routing table, that is, no new SIP call origination message is sent to SIP signaling processing module n+1, but the subsequent SIP signaling messages of the previous online call are forwarded; Wait for SIP signaling processing module n+1 to report that session resource release is complete; then delete the routing configuration of the shrunk SIP signaling processing module n+1 through the network management; and each SIP load balancer deletes the routing configuration to the shrunk SIP signaling processing module n+1; If the routes of each SIP load balancer and the SIP signaling processing module n+1 to be scaled down are inconsistent, the route deactivation process fails and an abnormal log needs to be output. On-site engineering personnel need to check whether the configuration and network are abnormal.
[0014] The method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection is characterized in that the process of dynamic expansion of the SingleIP mode SIP signaling processing module is as follows: (4.1): SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 send and receive SIP signaling flows with SIP signaling processing module n+1, but SIP signaling processing module n+1 has not yet received and processed the SIP message; (4.2): The SIP signaling processing module n+1 to be expanded and each SIP load balancer execute a route activation synchronization process based on route consistency detection; (4.3): CSCF sends a SIP origination message to SIP load balancer 3; (4.4): After receiving the SIP call origination message, SIP load balancer 3 sends SIP flow table synchronization requests to SIP load balancer 1 and SIP load balancer 2 in parallel, respectively. The request message includes the SIP flow table identifier and SIP Call-Id; SIP load balancer 3 sends the SIP flow table synchronization request to SIP load balancer 1; (4.5): SIP load balancer 3 sends a SIP flow table synchronization request to SIP load balancer 2; (4.6): If the SIP flow table synchronization is completed, each SIP load balancer distributes the SIP signaling flow according to the expanded routing table, including sending the SIP signaling flow to the SIP signaling processing module n+1, including the SIP call origination message; (4.7): SIP signaling processing module n+1 receives and processes SIP signaling messages.
[0015] The method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection is characterized in that the process of dynamic contraction of the SingleIP mode SIP signaling processing module is as follows: (5.1): The SIP load balancer and the SIP signaling processing module n+1 send and receive SIP signaling flows, and the SIP signaling processing module n+1 to be scaled down processes the SIP signaling messages normally; (5.2): The SIP signaling processing module n+1 to be reduced in capacity and each SIP load balancer perform a route deactivation synchronization process based on route consistency detection; (5.3): CSCF sends a SIP origination message to SIP load balancer 3; (5.4): After receiving the SIP call origination message, SIP load balancer 3 sends SIP flow table synchronization requests to SIP load balancer 1 and SIP load balancer 2 in parallel, and the request message includes a SIP flow table identifier, SIP Call-Id; SIP load balancer 3 sends a SIP flow table synchronization request to SIP load balancer 1; (5.5): SIP load balancer 3 sends a SIP flow table synchronization request to SIP load balancer 2; (5.6): After the route consistency check is completed, each SIP load balancer distributes the SIP signaling flow according to the reduced routing table, and no longer sends the SIP call origination message to the SIP signaling processing module n+1, but forwards the subsequent SIP signaling messages of the previous online call; (5.7): SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 send and receive SIP streams with SIP signaling processing module n+1; (5.8): Wait for SIP signaling processing module n+1 to report that session resource release is complete; Afterwards, the route configuration of the reduced SIP signaling processing module n+1 is deleted through the network management, and each SIP load balancer deletes the route configuration to the reduced SIP signaling processing module n+1.
[0016] The present invention proposes a method for detecting routing consistency, which can realize the online dynamic expansion and contraction of a SIP signaling processing module reliably and losslessly, and adopt a message-dedicated channel to quickly transmit and process interactive messages, thereby shortening the time of dynamic expansion and contraction to within 1 second and hundreds of milliseconds, and is applicable to both non-SingleIP mode and SingleIP mode scenarios of a SIP load balancer. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 Schematic diagram of the networking of each module of the SIP signaling processing described in the present invention; Figure 2The non-SingleIP mode SIP signaling processing module dynamic expansion flow chart of the present invention; Figure 3 The non-SingleIP mode SIP signaling processing module dynamic shrinking flow chart of the present invention; Figure 4 The flow chart of the dynamic expansion of the SingleIP mode SIP signaling processing module of the present invention; Figure 5 A flow chart of the dynamic shrinking of the SingleIP mode SIP signaling processing module described in the present invention. DETAILED DESCRIPTION
[0018] The present invention will be further described below in conjunction with the accompanying drawings: The present invention relates to IMS applications, 5G new call applications, and various communication value-added service applications based on SIP calls.
[0019] The present invention takes the networking of AS (Application Server) in the IMS network as an example, and Figure 1 The network includes a SIP service module, a SIP signaling processing module and a SIP load balancer, wherein the SIP signaling processing module and the SIP load balancer adopt the implementation method of the present invention to achieve reliable, fast and lossless dynamic expansion and contraction of the SIP signaling processing module, and are suitable for two scenarios of the SIP load balancer non-SingleIP mode and SingleIP mode.
[0020] 1) See attached Figure 1 The networking diagram of each module of SIP signaling processing is as follows: CSCF: Call Session Control Function is a key component of the IMS system, responsible for handling signaling control during multimedia call sessions; SIP load balancer: responsible for SIP signaling access and distribution; SIP signaling processing module: responsible for SIP protocol analysis, SIP session management, etc.; SIP service module: performs specific service control, such as establishing the connection between the calling party and the called party, playing and recording messages, etc. There is a full cross-network between the SIP load balancer and the SIP signaling processing module, and between the SIP signaling processing module and the SIP business module. The number of SIP load balancers generally remains unchanged, and the SIP signaling processing module may need to be expanded or reduced according to business changes.
[0021] 2) See attached Figure 2The flowchart of dynamic expansion of the SIP signaling processing module in non-SingleIP mode is as follows: Pre-configuration operation: Through the network management, the SIP signaling processing module (numbered n+1) to be expanded (the module number is directly indicated after the module name in the following text, such as the SIP signaling processing module (numbered n+1) is referred to as the SIP signaling processing module n+1) completes process loading and route configuration to each SIP load balancer; each SIP load balancer configures the route to the SIP signaling processing module n+1 to be expanded.
[0022] (2.1)-(2.21) is the route activation synchronization process based on route consistency detection, which is initiated by the network management and can be started automatically or manually according to the policy. After the route activation synchronization process is successful, the SIP call is automatically connected and the call load balancing is achieved.
[0023] (2.1): The network management triggers the expansion of the SIP signaling processing module, and the SIP signaling processing module to be expanded sends a routing activation synchronization request to each SIP load balancer in parallel. The message in the figure shows that the SIP signaling processing module to be expanded n+1 sends a routing activation synchronization request message to SIP load balancer 1; (2.2): The SIP signaling processing module n+1 to be expanded sends a routing activation synchronization request message to the SIP load balancer 2; (2.3): The SIP signaling processing module n+1 to be expanded sends a routing activation synchronization request message to the SIP load balancer 3; (2.4): After receiving the route activation synchronization request, SIP load balancer 1 starts the route consistency detection to detect whether the routes with other SIP load balancers are consistent: send route consistency query requests to other SIP load balancers respectively, and the request message contains the route information of SIP load balancer 1 and all SIP signaling processing modules, such as the IP version of the SIP signaling processing module and the IP address of the corresponding IP version, whether the route status is available, etc.; the message in the figure shows that SIP load balancer 1 sends a route consistency query request message to SIP load balancer 2; (2.5): Similar to (2.4), SIP load balancer 1 sends a route consistency query request message to SIP load balancer 3; (2.6): After receiving the routing consistency query request message from SIP load balancer 1, SIP load balancer 2 parses the routing information in the message and compares it with the current routing information of the load balancer. If they are consistent, it returns success, otherwise it returns failure and sends a routing consistency query response message to feed back the routing consistency detection result to SIP load balancer 1; (2.7): Similar to (2.6), SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 1; (2.8): SIP load balancer 1 receives the route consistency detection results from SIP load balancer 2 and SIP load balancer 3. If both are successful, it returns a successful route activation synchronization confirmation to the SIP signaling processing module n+1 to be expanded, otherwise it returns a failure confirmation.
[0024] (2.1), (2.4)-(2.7) and (2.8) are the routing consistency detection process from the SIP signaling processing module to be expanded to a SIP load balancer. If it is not completed within a detection cycle (the sending interval in the routing consistency detection message), the request needs to be resent.
[0025] (2.9)-(2.12) and (2.13): The process is similar to (2.4)-(2.7) and (2.8).
[0026] (2.9): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 1; (2.10): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 3; (2.11): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (2.12): SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (2.13): SIP load balancer 2 receives the route consistency detection results of SIP load balancers 1 and 3. If both are successful, it returns a successful route activation synchronization confirmation to the SIP signaling processing module n+1 to be expanded, otherwise it returns a failure confirmation.
[0027] (2.14)-(2.17) and (2.18): The process is similar to (2.4)-(2.7) and (2.8).
[0028] (2.14): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 1; (2.15): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 2; (2.16): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (2.17): SIP load balancer 2 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (2.18): SIP load balancer 3 receives the route consistency detection results of SIP load balancer 1 and SIP load balancer 2. If both are successful, it returns a successful route activation synchronization confirmation to the SIP signaling processing module n+1 to be expanded, otherwise it returns a failure confirmation; (2.19): The SIP signaling processing module n+1 to be expanded receives the route activation synchronization confirmation from SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3. If all are successful, it sends a route activation confirmation message to SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 in parallel, otherwise it does not send the message; the message in the figure shows that the SIP signaling processing module n+1 sends a route activation confirmation message to the SIP load balancer 1; (2.20): SIP signaling processing module n+1 sends a routing activation confirmation message to SIP load balancer 2; (2.21): The SIP signaling processing module n+1 sends a routing activation confirmation message to the SIP load balancer 3; (2.22): After SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 receive the route activation confirmation message, it means that the capacity expansion of SIP signaling processing module n+1 is successful. After that, each SIP load balancer distributes the SIP signaling flow according to the expanded routing table, including sending SIP signaling flow to SIP signaling processing module n+1, such as SIP call initiation message (SIPInvite message), etc. SIP signaling processing module n+1 continues to process the signaling message after receiving it.
[0029] Others: If the routes of each SIP load balancer and the SIP signaling processing module n+1 to be expanded are inconsistent, the route activation process fails and an abnormal log needs to be output. On-site engineering personnel need to check whether the configuration and network are abnormal.
[0030] 3) Reference Figure 3 The flowchart of dynamic shrinkage of the SIP signaling processing module in non-SingleIP mode is as follows: (3.1)-(3.21) is the route deactivation synchronization process based on route consistency detection, which is initiated by the network management and can be started automatically or manually according to the policy. After the route consistency detection is successful, the SIP call is automatically stopped.
[0031] (3.1): The network management triggers the SIP signaling processing module to be scaled down, and the SIP signaling processing module to be scaled down sends a routing deactivation synchronization request to each SIP load balancer in parallel; the message in the figure shows that the SIP signaling processing module to be scaled down n+1 sends a routing deactivation synchronization request message to SIP load balancer 1; (3.2): The SIP signaling processing module n+1 to be scaled down sends a routing deactivation synchronization request message to the SIP load balancer 2; (3.3): The SIP signaling processing module n+1 to be scaled down sends a routing deactivation synchronization request message to the SIP load balancer 3; (3.4): After receiving the route deactivation synchronization request, SIP load balancer 1 starts route consistency detection to detect whether the routes with other SIP load balancers are consistent: send route consistency query requests to other SIP load balancers respectively, and the request message contains the route information of SIP load balancer 1 and all SIP signaling processing modules, such as the IP version of the SIP signaling processing module and the IP address of the corresponding IP version, whether the route status is available, etc.; the message in the figure shows that SIP load balancer 1 sends a route consistency query request message to SIP load balancer 2; (3.5): Similar to (3.4), SIP load balancer 1 sends a route consistency query request message to SIP load balancer 3; (3.6): After receiving the routing consistency query request message from SIP load balancer 1, SIP load balancer 2 parses the routing information in the message and compares it with the current routing information of the load balancer. If they are consistent, it returns success, otherwise it returns failure and sends a routing consistency query response message to feed back the routing consistency detection result to SIP load balancer 1; (3.7): Similar to (3.6), SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 1; (3.8): SIP load balancer 1 receives the route consistency detection results of SIP load balancer 2 and SIP load balancer 3. If both are successful, it returns a successful route deactivation synchronization confirmation to the SIP signaling processing module n+1 to be scaled down, otherwise it returns a failure confirmation.
[0032] (3.1), (3.4)-(3.7) and (3.8) are the routing consistency detection process from the SIP signaling processing module to be scaled down to a SIP load balancer. If it is not completed within a detection cycle (the sending interval in the routing consistency detection message), the request needs to be resent.
[0033] (3.9)-(3.12) and (3.13): The process is similar to (3.4)-(3.7) and (3.8).
[0034] (3.9): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 1; (3.10): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 3; (3.11): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (3.12): SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (3.13): SIP load balancer 2 receives the route consistency detection results of SIP load balancers 1 and 3. If both are successful, it returns a successful route deactivation synchronization confirmation to the SIP signaling processing module n+1 to be scaled down, otherwise it returns a failure confirmation.
[0035] (3.14)-(3.17) and (3.18): The process is similar to (3.4)-(3.7) and (3.8).
[0036] (3.14): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 1; (3.15): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 2; (3.16): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (3.17): SIP load balancer 2 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (3.18): SIP load balancer 3 receives the route consistency detection results of SIP load balancer 1 and SIP load balancer 2. If both are successful, it returns a successful route deactivation synchronization confirmation to the SIP signaling processing module n+1 to be scaled down, otherwise it returns a failure confirmation; (3.19): The SIP signaling processing module n+1 to be scaled down receives the routing deactivation synchronization confirmation from SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3. If all are successful, a routing deactivation confirmation message is sent to SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 in parallel, otherwise no message is sent; the message in the figure shows that the SIP signaling processing module n+1 sends a routing deactivation confirmation message to the SIP load balancer 1; (3.20): SIP signaling processing module n+1 sends a routing deactivation confirmation message to SIP load balancer 2; (3.21): SIP signaling processing module n+1 sends a routing deactivation confirmation message to SIP load balancer 3; (3.22): After SIP load balancers 1, 2 and 3 receive the route deactivation confirmation message, it means that the SIP signaling processing module n+1 has been successfully reduced in capacity. After that, each SIP load balancer distributes the SIP signaling flow according to the reduced routing table, that is, no new SIP call origination message is sent to the SIP signaling processing module n+1, but the subsequent SIP signaling messages of the previous online call are forwarded.
[0037] Subsequent operations: Wait for SIP signaling processing module n+1 to report that session resource release is complete; then delete the routing configuration of the reduced SIP signaling processing module n+1 through the network management; and each SIP load balancer deletes the routing configuration to the reduced SIP signaling processing module n+1.
[0038] Others: If the routes of each SIP load balancer and the SIP signaling processing module n+1 to be scaled down are inconsistent, the route deactivation process fails and an exception log needs to be output. On-site engineering personnel need to check whether the configuration and network are abnormal.
[0039] 4) Reference Figure 4 The flowchart of the dynamic expansion of the SIP signaling processing module in SingleIP mode is as follows: Pre-configuration operation: Through the network management, the SIP signaling processing module n+1 to be expanded completes process loading and route configuration to each SIP load balancer; each SIP load balancer configures the route to the SIP signaling processing module n+1 to be expanded.
[0040] (4.1)-(4.7): The SIP load balancer works in the SingleIP scenario. The dynamic expansion function of the SIP signaling processing module is based on the route consistency detection function and the SIP flow table synchronization function. After successful execution, it can automatically access SIP calls and achieve call load balancing.
[0041] (4.1): SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 send and receive SIP signaling flows with SIP signaling processing modules (numbered 1 to numbered n), but SIP signaling processing module n+1 has not yet received and processed the SIP message; (4.2): The route activation synchronization process based on route consistency detection is performed between the SIP signaling processing module n+1 to be expanded and each SIP load balancer (numbered 1, 2 and 3); (4.3): CSCF (Call Session Control Function) sends a SIP origination message to the SIP load balancer (number 3 in the diagram); (4.4): After receiving the SIP origination message, SIP load balancer 3 sends SIP flow table synchronization requests to SIP load balancers (numbers 1 and 2) in parallel. The request message contains the SIP flow table identifier, SIP Call-Id (call identifier), etc. The message in the figure shows that SIP load balancer 3 sends a SIP flow table synchronization request to SIP load balancer 1.
[0042] (4.5): Similar to (4.4), SIP load balancer 3 sends a SIP flow table synchronization request to SIP load balancer 2; (4.6): If the SIP flow table synchronization is completed, each SIP load balancer will distribute the SIP signaling flow according to the expanded routing table, including sending the SIP signaling flow to the SIP signaling processing module n+1, such as the SIP call origination message; (4.7): SIP signaling processing module n+1 receives and processes SIP signaling messages; (4.4) and (4.5) are the SIP flow table synchronization process. If it is not completed within a synchronization cycle (the flow table sending interval in the flow table synchronization message, the default is 30MS), the request needs to be resent. At the same time, the SIP flow table synchronization process still needs to be executed during the expansion period, but during the expansion period, the route distribution before the expansion is followed. After receiving the route activation confirmation message based on the route consistency detection, the route distribution after the expansion is followed.
[0043] 5) Reference Figure 5 The flowchart of the dynamic shrinkage of the SIP signaling processing module in SingleIP mode is as follows: (5.1)-(5.7): The SIP load balancer works in the SingleIP scenario. The dynamic scaling function of the SIP signaling processing module is also based on the routing consistency detection function and the SIP flow table synchronization function. After successful execution, it automatically stops accepting SIP calls.
[0044] (5.1): SIP signaling flows are sent and received between the SIP load balancers (numbered 1, 2, and 3) and the SIP signaling processing modules (numbered 1 to n+1). The SIP signaling processing module n+1 to be scaled down processes SIP signaling messages normally. (5.2): The route deactivation synchronization process based on route consistency detection is performed between the SIP signaling processing module n+1 to be scaled down and each SIP load balancer (numbered 1, 2 and 3); (5.3): CSCF sends a SIP origination message to the SIP load balancer (number 3 in the diagram); (5.4): After receiving the SIP call origination message, SIP load balancer 3 sends SIP flow table synchronization requests to SIP load balancers (numbers 1 and 2) in parallel. The request message contains the SIP flow table identifier, SIP Call-Id, etc. The message in the figure shows that SIP load balancer 3 sends a SIP flow table synchronization request to SIP load balancer 1; (5.5): Similar to (5.4), SIP load balancer 3 sends a SIP flow table synchronization request to SIP load balancer 2; (5.6): After the route consistency check is completed, each SIP load balancer distributes the SIP signaling flow according to the reduced routing table, and no longer sends the SIP call origination message to the SIP signaling processing module n+1, as shown by the dotted line in the figure, but forwards the subsequent SIP signaling messages that have been online before; (5.7): SIP flows are sent and received between the SIP load balancers (numbered 1, 2, and 3) and the SIP signaling processing modules (numbered 1 to n); (5.8): Wait for SIP signaling processing module n+1 to report that session resource release is complete.
[0045] (5.4) and (5.5) are the SIP flow table synchronization process. If it is not completed within a synchronization cycle (the flow table sending interval in the flow table synchronization message), the request needs to be resent. At the same time, the SIP flow table synchronization process still needs to be executed during the reduction period, but during the reduction period, the route distribution before the reduction is followed. After the reduction is successful based on the route consistency detection, the route distribution after the reduction is followed.
[0046] Subsequent operations: Afterwards, delete the routing configuration of the reduced SIP signaling processing module n+1 through the network management system; and each SIP load balancer deletes the routing configuration to the reduced SIP signaling processing module n+1.
Claims
1. A method for dynamically scaling SIP calls based on route consistency detection, characterized in that By executing the route activation synchronization process and route deactivation synchronization process based on route consistency detection between the SIP signaling processing module and the SIP load balancer, and using a dedicated message channel to accelerate information interaction, the SIP signaling processing module can be reliably expanded and reduced in capacity, and the expansion and reduction time can be reduced to within seconds. When the SIP signaling processing module is expanded, the route activation synchronization process is executed, including the five-step process of route activation synchronization request, route activation synchronization response, route consistency query, route consistency query response and route activation confirmation; When the SIP signaling processing module is scaled down, the route deactivation synchronization process is executed, including a five-step process of route deactivation synchronization request, route deactivation synchronization response, route consistency query request, route consistency query response and route deactivation confirmation; The routing activation synchronization process and the routing deactivation synchronization process complete information exchange through messages, and quickly send, receive or resend messages through dedicated message channels, realizing lossless dynamic expansion and contraction of the SIP signaling processing module within 1 second and 100 milliseconds; through the verification and confirmation mechanism of the routing information between the SIP signaling processing module and the SIP load balancer, reliable dynamic expansion and contraction of the SIP signaling processing module is realized.
2. According to claim 1, a method for realizing dynamic expansion and contraction of SIP calls based on route consistency detection is characterized in that The route activation synchronization process and route deactivation synchronization process based on route consistency detection can be used in the non-SingleIP mode of the SIP load balancer and the SingleIP mode of the SIP load balancer.
3. A method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection according to claim 1, characterized in that The message contents of the routing activation synchronization process and routing deactivation synchronization process based on routing consistency detection include the following information: the total number of configured routes, the total number of reachable routes, the routing sequence number, the intranet port address of the SIP load balancer, the intranet address of the SIP signaling processing module, the IP version and the routing status.
4. A method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection according to claim 1, characterized in that The SIP signaling processing module and the SIP load balancer both use a dedicated message channel to establish an exclusive message queue between the network card and the application layer of the process to transmit messages; at the same time, a UDP port different from the SIP signaling message is used to transmit interactive messages, so that the SIP signaling processing module and the SIP load balancer can quickly identify, forward and process the messages.
5. A method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection according to claim 4, characterized in that The SIP signaling processing module periodically sends detection message packets through the message dedicated channel. The message sending interval is set to 20MS by default, and the default detection timeout multiple can be set to 3 times; If the detection timeout multiple is exceeded, the exception is reported, and the network management policy is used to select re-detection or check the relevant configuration and network of the route that failed the detection; by adopting a dedicated message channel and a strategy of periodically sending detection messages, the route detection between the SIP signaling processing module and the SIP load balancer can be achieved within 1 second and hundreds of milliseconds.
6. A method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection according to claim 2, characterized in that In the non-SingleIP mode, each SIP load balancer is configured with a different external IP address, and in the SingleIP mode, each SIP load balancer is configured with the same external IP address; In SingleIP mode, SIP messages can be received on any SIP load balancer. In order to synchronize SIP session information, the SIP load balancer can synchronize SIP session information between SIP load balancers through the SIP flow table synchronization function. The SIP flow table synchronization function includes the creation, update and deletion of the synchronized SIP flow table. The content of the flow table synchronization message includes the configuration flow table identifier and the Call-Id field of the SIP protocol. In the SingleIP mode of the SIP load balancer, combined with the routing consistency detection and SIP flow table synchronization, the SIP signaling processing module can be quickly and losslessly dynamically expanded and reduced. If the routing consistency test result is normal during capacity expansion, the SIP load balancer will forward the new SIP call to the newly added SIP signaling processing module; if the routing consistency test result is normal during capacity reduction, the SIP load balancer will no longer forward the newly initiated SIP call to the reduced SIP signaling processing module, but will still forward the subsequent SIP messages of the previously online calls, so that the previously online calls can be terminated normally; The route activation synchronization process and route deactivation synchronization process based on route consistency detection are initiated by the network management notifying the SIP signaling processing module, and each SIP load balancer responds.
7. A method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection according to claim 2, characterized in that The process of dynamic expansion of the non-SingleIP mode SIP signaling processing module is as follows: (2.1): The network management triggers the expansion of the SIP signaling processing module, and the SIP signaling processing module to be expanded sends a routing activation synchronization request to each SIP load balancer in parallel; the SIP signaling processing module to be expanded n+1 sends a routing activation synchronization request message to SIP load balancer 1; (2.2): The SIP signaling processing module n+1 to be expanded sends a routing activation synchronization request message to the SIP load balancer 2; (2.3): The SIP signaling processing module n+1 to be expanded sends a routing activation synchronization request message to the SIP load balancer 3; (2.4): After receiving the route activation synchronization request, SIP load balancer 1 starts the route consistency detection to detect whether the routes with other SIP load balancers are consistent: send route consistency query requests to other SIP load balancers respectively, and the request message contains the route information of SIP load balancer 1 and all SIP signaling processing modules. The route information includes the IP version of the SIP signaling processing module and the IP address of the corresponding IP version, and whether the route status is available; SIP load balancer 1 sends a route consistency query request message to SIP load balancer 2; (2.5): SIP load balancer 1 sends a route consistency query request message to SIP load balancer 3; (2.6): After receiving the routing consistency query request message from SIP load balancer 1, SIP load balancer 2 parses the routing information in the message and compares it with the current routing information of the load balancer. If they are consistent, it returns success, otherwise it returns failure and sends a routing consistency query response message to feed back the routing consistency detection result to SIP load balancer 1; (2.7): SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 1; (2.8): SIP load balancer 1 receives the route consistency detection results of SIP load balancer 2 and SIP load balancer 3. If both are successful, it returns a successful route activation synchronization confirmation to the SIP signaling processing module n+1 to be expanded, otherwise it returns a failure confirmation; (2.9): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 1; (2.10): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 3; (2.11): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (2.12): SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (2.13): SIP load balancer 2 receives the route consistency detection results of SIP load balancer 1 and SIP load balancer 3. If both are successful, it returns a successful route activation synchronization confirmation to the SIP signaling processing module n+1 to be expanded, otherwise it returns a failure confirmation; (2.14): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 1; (2.15): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 2; (2.16): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (2.17): SIP load balancer 2 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (2.18): SIP load balancer 3 receives the route consistency detection results of SIP load balancer 1 and SIP load balancer 2. If both are successful, it returns a successful route activation synchronization confirmation to the SIP signaling processing module n+1 to be expanded, otherwise it returns a failure confirmation; (2.19): The SIP signaling processing module n+1 to be expanded receives the route activation synchronization confirmation from SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3. If all are successful, it sends the route activation confirmation message to SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 in parallel, otherwise it does not send it; The SIP signaling processing module n+1 sends a routing activation confirmation message to the SIP load balancer 1; (2.20): SIP signaling processing module n+1 sends a routing activation confirmation message to SIP load balancer 2; (2.21): The SIP signaling processing module n+1 sends a routing activation confirmation message to the SIP load balancer 3; (2.22): After SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 receive the routing activation confirmation message, it indicates that the capacity expansion of SIP signaling processing module n+1 is successful. After that, each SIP load balancer distributes the SIP signaling flow according to the expanded routing table, including sending the SIP signaling flow to SIP signaling processing module n+1. After receiving the SIP signaling processing module n+1, it continues to process the signaling message. If the routes of each SIP load balancer and the SIP signaling processing module n+1 to be expanded are inconsistent, the route activation process fails and an abnormal log needs to be output. The on-site engineering personnel need to check whether the configuration and network are abnormal.
8. The method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection according to claim 2, characterized in that The process of dynamic shrinking of the non-SingleIP mode SIP signaling processing module is as follows: (3.1): The network management triggers the SIP signaling processing module to be scaled down, and the SIP signaling processing module to be scaled down sends a routing deactivation synchronization request to each SIP load balancer in parallel; the SIP signaling processing module to be scaled down n+1 sends a routing deactivation synchronization request message to SIP load balancer 1; (3.2): The SIP signaling processing module n+1 to be scaled down sends a routing deactivation synchronization request message to the SIP load balancer 2; (3.3): The SIP signaling processing module n+1 to be scaled down sends a routing deactivation synchronization request message to the SIP load balancer 3; (3.4): After receiving the route deactivation synchronization request, SIP load balancer 1 starts route consistency detection to detect whether the routes with other SIP load balancers are consistent: send route consistency query requests to other SIP load balancers respectively, and the request message contains the route information of SIP load balancer 1 and all SIP signaling processing modules. The route information includes the IP version of the SIP signaling processing module and the IP address of the corresponding IP version, and whether the route status is available; SIP load balancer 1 sends a route consistency query request message to SIP load balancer 2; (3.5): SIP load balancer 1 sends a route consistency query request message to SIP load balancer 3; (3.6): After receiving the routing consistency query request message from SIP load balancer 1, SIP load balancer 2 parses the routing information in the message and compares it with the current routing information of the load balancer. If they are consistent, it returns success, otherwise it returns failure and sends a routing consistency query response message to feed back the routing consistency detection result to SIP load balancer 1; (3.7): SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 1; (3.8): SIP load balancer 1 receives the route consistency detection results of SIP load balancers 2 and 3. If both are successful, it returns a successful route deactivation synchronization confirmation to the SIP signaling processing module n+1 to be scaled down, otherwise it returns a failure confirmation; (3.9): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 1; (3.10): SIP load balancer 2 sends a route consistency query request message to SIP load balancer 3; (3.11): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (3.12): SIP load balancer 3 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 2; (3.13): SIP load balancer 2 receives the route consistency detection results of SIP load balancers 1 and 3. If both are successful, it returns a successful route deactivation synchronization confirmation to the SIP signaling processing module n+1 to be scaled down, otherwise it returns a failure confirmation; (3.14): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 1; (3.15): SIP load balancer 3 sends a route consistency query request message to SIP load balancer 2; (3.16): SIP load balancer 1 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (3.17): SIP load balancer 2 sends a route consistency query response message and feeds back the route consistency detection result to SIP load balancer 3; (3.18): SIP load balancer 3 receives the route consistency detection results of SIP load balancers 1 and 2. If both are successful, it returns a successful route deactivation synchronization confirmation to the SIP signaling processing module n+1 to be scaled down, otherwise it returns a failure confirmation; (3.19): The SIP signaling processing module n+1 to be scaled down receives the routing deactivation synchronization confirmation from SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3. If all are successful, the routing deactivation confirmation message is sent to SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 in parallel, otherwise it is not sent; The SIP signaling processing module n+1 sends a routing deactivation confirmation message to the SIP load balancer 1; (3.20): SIP signaling processing module n+1 sends a routing deactivation confirmation message to SIP load balancer 2; (3.21): SIP signaling processing module n+1 sends a routing deactivation confirmation message to SIP load balancer 3; (3.22): After SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 receive the route deactivation confirmation message, it means that the SIP signaling processing module n+1 has been successfully reduced in capacity. After that, each SIP load balancer distributes the SIP signaling flow according to the reduced routing table, that is, no new SIP call origination message is sent to SIP signaling processing module n+1, but the subsequent SIP signaling messages of the previous online call are forwarded; Wait for SIP signaling processing module n+1 to report that session resource release is complete; Then, the route configuration of the reduced SIP signaling processing module n+1 is deleted through the network management; and each SIP load balancer deletes the route configuration to the reduced SIP signaling processing module n+1; If the routes of each SIP load balancer and the SIP signaling processing module n+1 to be scaled down are inconsistent, the route deactivation process fails and an abnormal log needs to be output. On-site engineering personnel need to check whether the configuration and network are abnormal.
9. A method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection according to claim 2, characterized in that The process of dynamic expansion of the SingleIP mode SIP signaling processing module is as follows: (4.1): SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 send and receive SIP signaling flows with SIP signaling processing module n+1, but SIP signaling processing module n+1 has not yet received and processed the SIP message; (4.2): The SIP signaling processing module n+1 to be expanded and each SIP load balancer execute a route activation synchronization process based on route consistency detection; (4.3): CSCF sends a SIP origination message to SIP load balancer 3; (4.4): After receiving the SIP call origination message, SIP load balancer 3 sends SIP flow table synchronization requests to SIP load balancer 1 and SIP load balancer 2 in parallel, and the request message includes the SIP flow table identifier and SIP Call-Id; SIP load balancer 3 sends a SIP flow table synchronization request to SIP load balancer 1; (4.5): SIP load balancer 3 sends a SIP flow table synchronization request to SIP load balancer 2; (4.6): If the SIP flow table synchronization is completed, each SIP load balancer distributes the SIP signaling flow according to the expanded routing table, including sending the SIP signaling flow to the SIP signaling processing module n+1, including the SIP call origination message; (4.7): SIP signaling processing module n+1 receives and processes SIP signaling messages.
10. The method for implementing dynamic expansion and contraction of SIP calls based on route consistency detection according to claim 2, characterized in that The process of dynamic shrinking of the SingleIP mode SIP signaling processing module is as follows: (5.1): The SIP load balancer and the SIP signaling processing module n+1 send and receive SIP signaling flows, and the SIP signaling processing module n+1 to be scaled down processes the SIP signaling messages normally; (5.2): The SIP signaling processing module n+1 to be reduced in capacity and each SIP load balancer perform a route deactivation synchronization process based on route consistency detection; (5.3): CSCF sends a SIP origination message to SIP load balancer 3; (5.4): After receiving the SIP call origination message, SIP load balancer 3 sends SIP flow table synchronization requests to SIP load balancer 1 and SIP load balancer 2 in parallel, and the request message includes a SIP flow table identifier, SIP Call-Id; SIP load balancer 3 sends a SIP flow table synchronization request to SIP load balancer 1; (5.5): SIP load balancer 3 sends a SIP flow table synchronization request to SIP load balancer 2; (5.6): After the route consistency check is completed, each SIP load balancer distributes the SIP signaling flow according to the reduced routing table, and no longer sends the SIP call origination message to the SIP signaling processing module n+1, but forwards the subsequent SIP signaling messages of the previous online call; (5.7): SIP load balancer 1, SIP load balancer 2 and SIP load balancer 3 send and receive SIP streams with SIP signaling processing module n+1; (5.8): Wait for SIP signaling processing module n+1 to report that session resource release is complete; Afterwards, the route configuration of the reduced SIP signaling processing module n+1 is deleted through the network management, and each SIP load balancer deletes the route configuration to the reduced SIP signaling processing module n+1.
Citation Information
Patent Citations
Method fro dynamic load balance in distributed system based on session origination protocol
CN101166176A
Short message center platform and calling method
CN102958085A
SIP center signaling control service load balancing method and load balancer thereof
CN111491007A
Load balancing system management method and device, equipment and storage medium
CN118802920A
Sip dynamic load balancing method and system, and device and storage medium
WO2024074091A1