Load-balanced SIP (Session Initiation Protocol) video signaling control method, system and equipment and storage medium

By introducing load balancing systems and microservice monitoring systems into SIP video signaling systems, the problems of load imbalance, single point failure and insufficient scalability of traditional systems under high concurrency are solved, and more efficient, reliable and scalable Video signaling control.

CN119402474APending Publication Date: 2025-02-07CRSC COMM & INFORMATION GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411466491.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

Traditional SIP video signaling systems have problems such as load imbalance, single point failure and insufficient scaling performance under high concurrent requests, which affects the stability and user experience of the system.

Method used

Using a load balancing system, the list of SIP signaling service nodes is obtained through the microservice monitoring system, traverse the list and determine whether there are nodes that meet the preset conditions, forward the SIP transaction request to the node with the smallest load, and realize the SIP transaction load and hardware load. load balancing algorithm.

Benefits of technology

It improves resource utilization, enhances system reliability and scalability, can maintain stable operation under high concurrency, simplifies cascaded access processes, and reduces integration complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402474A_ABST
    Figure CN119402474A_ABST
Patent Text Reader

Abstract

The invention relates to a load-balanced SIP (Session Initiation Protocol) video signaling control method, system and device and a storage medium, and the method comprises the following steps: when a load balancing system receives an SIP transaction request, the load balancing system requests an SIP signaling service node list from a micro-service monitoring system; traversing the SIP signaling service node list, judging whether an SIP signaling service node meeting a preset condition exists or not, if so, forwarding the received SIP transaction request to the corresponding SIP signaling service node, otherwise, directly returning a 5XX response signaling; and after receiving the SIP transaction request, the corresponding SIP signaling service node processes the SIP transaction request according to a preset rule. The method can be widely applied to the technical field of video monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video surveillance technology, and in particular to a load-balanced SIP video signaling control method, system, device and storage medium, which are used to solve the problem of unbalanced load of SIP signaling servers in a large-scale distributed video surveillance system based on the national standard 28181 protocol. Background Art

[0002] With the advancement of science and technology and the growth of social security needs, video surveillance systems have been widely used in the fields of public security, traffic management, industrial production, smart cities, etc. In particular, with the rapid development of big data and artificial intelligence, various intelligent application systems based on massive video resources have emerged in an endless stream, which has also prompted the expansion of the scale of video surveillance system construction.

[0003] As a universal standard in the field of video surveillance, the GB 28181 protocol realizes the interconnection and interoperability of equipment or platforms from different video surveillance manufacturers. As the core component of the video surveillance system based on the GB 28181 protocol, the SIP video signaling system is mainly responsible for processing control and video transmission instructions. However, under the current technical background, the traditional SIP video signaling system faces many challenges.

[0004] First, there is the problem of load balancing. Traditional SIP video signaling systems often use an end-to-end approach, that is, through manual division and configuration, each SIP signaling server interacts with one or more fixed lower-level devices or platforms. Due to the different call frequencies of resources on different devices or platforms, this approach can easily cause an unbalanced load on the SIP signaling server. In high-concurrency situations, some SIP signaling servers may have insufficient resources and slow responses, affecting user experience.

[0005] Secondly, the risk of single point failure. If a single SIP signaling server fails in a traditional SIP video signaling system, although it will not affect the cascade devices or platform resource requests of other SIP signaling servers and the overall function of the video surveillance system, it will cause the cascade devices or platform resources of the failed SIP signaling server to be unable to be called normally, which will still cause a poor user experience and affect the stability of the system.

[0006] Furthermore, the expansion performance is insufficient. When the SIP signaling service node needs to be expanded, since the traditional SIP video signaling system uses manual configuration, if you want to expand the SIP signaling server, you need to manually re-sort and modify the configuration, which consumes a lot of labor costs, and the system service may be suspended during the expansion process, affecting other business applications.

[0007] In summary, although the traditional SIP video signaling system has a simple architecture and clear logic in implementing the video resource access of the national standard 28181 protocol, it still has certain defects and shortcomings in load balancing, single point failure and scalability. Summary of the invention

[0008] In view of the above problems, the purpose of the present invention is to provide a load-balanced SIP video signaling control method, system, device and storage medium to solve the problems of load balancing, single point failure and insufficient scalability of traditional SIP video signaling systems under high concurrent requests, improve the stability, reliability and scalability of video access systems, and thus meet the needs of ultra-large-scale video access services.

[0009] To achieve the above object, the present invention adopts the following technical solutions:

[0010] In a first aspect, the present invention provides a load-balanced SIP video signaling control method, comprising the following steps:

[0011] When the load balancing system receives a SIP transaction request, the load balancing system requests the microservice monitoring system for a list of SIP signaling service nodes;

[0012] Traverse the SIP signaling service node list and determine whether there is a SIP signaling service node that meets the preset conditions. If so, forward the received SIP transaction request to the corresponding SIP signaling service node, otherwise directly return a 5XX response signaling;

[0013] After receiving the SIP transaction request, the corresponding SIP signaling service node processes the SIP transaction request according to a preset rule.

[0014] Further, the traversal of the SIP signaling service node list and determining whether there is a SIP signaling service node that meets the preset conditions, if so, forwarding the received SIP transaction request to the corresponding SIP signaling service node, otherwise directly returning a 5XX response signaling, includes the following steps:

[0015] Traverse the SIP signaling service node list, and compare the real-time hardware load P of each online SIP signaling service node with the preset threshold Y in turn, and put the SIP signaling service node whose real-time hardware load P is less than the preset threshold Y into the pre-selected node list;

[0016] Determine whether there is a SIP signaling service node in the pre-selected node list. If so, calculate the comprehensive load L of each SIP signaling service node, and forward the SIP transaction request to the SIP signaling service node with the smallest comprehensive load L, which will process the SIP transaction request. If not, directly return a 5XX response signaling, indicating that the system is busy and cannot respond.

[0017] Further, the real-time hardware load P of the SIP signaling service node is calculated according to the following formula:

[0018] P=κ c *P c +κ m *P m +κ n *P n

[0019] κ c +κ m +κ n =1

[0020] 0<κ c <1

[0021] 0<κ m <1

[0022] 0<κ n <1

[0023] Among them, κ c is the CPU load factor, P c is the CPU load, κ m is the memory load factor, P m is the memory load, κ n is the network load factor, P n is the network load.

[0024] Further, the load L of the SIP signaling service node is calculated according to the following formula:

[0025]

[0026] Where L represents the load of the SIP signaling service node, n represents the number of SIP transaction types being processed by the SIP signaling service node, and λ i represents the weight of the i-th SIP transaction, N i Indicates the total number of the i-th SIP transactions being processed by the SIP signaling service node.

[0027] Further, after receiving the SIP transaction request, the corresponding SIP signaling service node processes the SIP transaction request according to a preset rule, including:

[0028] Determine the type of SIP transaction request forwarded by the load balancing system:

[0029] If it is a non-SIP request initiated by an internal business system, the SIP signaling service node returns a non-SIP response to the load balancing system and directly initiates a corresponding SIP transaction request to the subordinate SIP service node;

[0030] If the SIP request is actively initiated by the lower-level SIP signaling service node, the SIP signaling service node directly processes the SIP transaction request, and after processing, forwards the SIP response to the lower-level SIP signaling service node through the load balancing system.

[0031] Further, the SIP signaling service node returns a non-SIP response to the load balancing system, and directly initiates a corresponding SIP transaction request to the subordinate SIP service node, including:

[0032] After the SIP signaling service node receives the non-SIP request from the load balancing system, the SIP signaling service node returns a non-SIP response to the load balancing system, and the load balancing system returns the non-SIP response to the internal business system; at the same time, the SIP signaling service node directly initiates a corresponding SIP request to the subordinate SIP signaling service node, and the Contact field in the SIP request is the information of the current SIP signaling service node; the subordinate SIP signaling service node correctly returns the response signaling to the current SIP signaling service node.

[0033] Further, the SIP signaling service node directly processes the SIP transaction request, and after the processing is completed, forwards the SIP response to the lower-level SIP signaling service node through the load balancing system, including:

[0034] The load balancing system forwards the received SIP request to the appropriate SIP signaling service node, and adds a Via header field containing the received field and the rport field when forwarding the SIP request signaling, which is used to save the IP address and port information of all SIP proxies that the SIP request signaling passes through during the forwarding process. The response signaling of the SIP signaling service node can be correctly returned to the load balancing system, and the load balancing system then forwards it to the lower-level SIP signaling service node.

[0035] In a second aspect, the present invention provides a load-balanced SIP video signaling control system, including: a SIP signaling system, a load-balancing system, and a microservice monitoring system;

[0036] The SIP signaling system adopts a distributed cluster architecture, including a plurality of SIP signaling service nodes, and the plurality of SIP signaling service nodes form a microservice cluster to provide SIP signaling services;

[0037] The microservice monitoring system is used to monitor and manage the online and offline events of each SIP signaling service node in the SIP signaling system in real time, and generate and maintain a list of SIP signaling service nodes;

[0038] The load balancing system is used to determine the SIP signaling service node with the smallest load to process the SIP transaction request according to the SIP signaling service node list maintained by the microservice monitoring system after receiving the SIP transaction request sent by the internal business system or the lower-level SIP service node.

[0039] In a third aspect, the present invention provides a computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform any method.

[0040] In a fourth aspect, the present invention provides a computing device, comprising: one or more processors and a memory, wherein the memory stores one or more programs and is configured to be executed by the one or more processors, and the one or more programs include instructions for executing any method.

[0041] The present invention adopts the above technical solution, which has the following advantages:

[0042] (1) Improving resource utilization: The present invention adopts a load balancing algorithm that takes into account both SIP transaction load and hardware load and overload protection, thereby ensuring load balancing of each SIP signaling server to the greatest extent and improving resource utilization.

[0043] (2) High-performance signaling forwarding: The load balancing system of the present invention realizes the forwarding of SIP signaling and can accurately receive responses by adding the Via header field. The load balancing system is only responsible for forwarding requests and does not process specific services. It can carry high concurrent requests.

[0044] (3) Enhanced system reliability: The load balancing system adopts a high-availability cluster architecture. When the main node fails, it can automatically switch to the backup node. The SIP signaling system adopts a microservice cluster architecture. When the microservice monitoring system detects a node failure, it automatically removes the node from the healthy service list and no longer forwards new requests to the node, thereby ensuring the continuous and stable operation of the system.

[0045] (4) Improve system scalability: The number of SIP signaling nodes can be increased or decreased as the business concurrency changes. The system automatically senses the changes in SIP signaling nodes without the need for additional configuration, and will not cause the video system business to be suspended.

[0046] (5) Increased system security: The active SIP requests of lower-level devices or platforms only need to interact with the load balancing system and cannot perceive the internal details of the system, thus increasing the security of the system.

[0047] (6) Simplified cascade access process: The lower-level device or platform only needs to establish a connection with the load balancing system and communicate with it. There is no need to actively establish a connection with each SIP signaling node, which simplifies the cascade access process and reduces the complexity of integration.

[0048] Therefore, the present invention can be widely applied in the field of video surveillance technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Throughout the accompanying drawings, the same reference numerals are used to represent the same components. In the accompanying drawings:

[0050] Figure 1 It is a schematic diagram of a load-balanced SIP video signaling system provided by an embodiment of the present invention;

[0051] Figure 2 It is a flow chart of a control method of a load-balanced SIP video signaling system provided by an embodiment of the present invention;

[0052] Figure 3 This is a schematic diagram of the first type of SIP video signaling provided by an embodiment of the present invention;

[0053] Figure 4 This is a schematic diagram of the second type of SIP video signaling provided by an embodiment of the present invention;

[0054] Figure 5 This is a first type of SIP video signaling workflow diagram provided by an embodiment of the present invention;

[0055] Figure 6 This is a second type of SIP video signaling workflow diagram provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.

[0057] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0058] In some embodiments of the present invention, a load-balanced SIP video signaling control system is provided, which mainly includes two parts: a SIP signaling system and a load-balancing system. Among them, the load-balancing system uses Keepalived technology to form a high-availability cluster to provide load-balancing services; the SIP signaling system is composed of a number of SIP signaling servers, and a number of SIP signaling servers form a microservice cluster to provide SIP signaling services. The present invention proposes a load-balancing algorithm that takes into account both SIP transaction load and hardware load and overload protection, which can ensure the load balancing of each SIP signaling server to the greatest extent.

[0059] Correspondingly, in some other embodiments of the present invention, a load-balanced SIP video signaling control method, device and storage medium are provided.

[0060] Example 1

[0061] like Figure 1 As shown, this embodiment provides a load-balanced SIP video signaling system, which includes: a SIP signaling system, a load-balancing system, and a microservice monitoring system. Among them, the SIP signaling system adopts a distributed cluster architecture, which includes a number of SIP signaling service nodes, and the number of SIP signaling service nodes form a microservice cluster to provide SIP signaling services; the microservice monitoring system is used to monitor and manage the online and offline events of each SIP signaling service node in the SIP signaling system in real time, and generate and maintain a list of SIP signaling service nodes; the load-balancing system is used to determine the SIP signaling service node with the smallest load to process the SIP transaction request according to the SIP signaling service node list maintained by the microservice monitoring system after receiving the SIP transaction request sent by the internal business system or the lower-level SIP service node.

[0062] Furthermore, the load balancing system includes two load balancing servers that serve as backup for each other, and the two load balancing servers use Keepalived technology to form a high-availability cluster to provide load balancing services. When the main load balancing server node fails, it can automatically switch to the backup load balancing server node.

[0063] Example 2

[0064] like Figure 2As shown, the above embodiment 1 provides a load-balanced SIP video signaling system, and this embodiment provides a load-balanced SIP video signaling control method, which includes the following steps:

[0065] (1) When the load balancing system receives a SIP transaction request, the load balancing system requests the microservice monitoring system for a list of SIP signaling service nodes;

[0066] (2) Traverse the SIP signaling service node list and determine whether there is a SIP signaling service node that meets the preset conditions. If so, forward the received SIP transaction request to the corresponding SIP signaling service node. Otherwise, directly return a 5XX response signaling, indicating that the system is busy and cannot respond;

[0067] (3) After receiving the SIP transaction request, the corresponding SIP signaling service node processes the SIP transaction request according to preset rules.

[0068] Furthermore, in the above step (2), for the SIP video signaling system, common SIP signaling includes INVITE, REGISTER, BYE, CANCEL, OPTIONS, REFER, MESSAGE, SUBSCRIBE, INFO and UPDATE, etc. Since the transaction logics of different types of SIP signaling are different, the processing time of different SIP transaction requests is also different. Based on this, the present invention adopts a load balancing algorithm with the least SIP transaction volume to distribute SIP transaction requests. The basic idea is to use the number of SIP transactions being processed by the SIP signaling service node as the load measurement standard, and consider the logical complexity of different SIP transactions, assign different weights to different SIP transactions, and then distribute new SIP transaction requests to the SIP signaling service node with the least SIP transaction volume for processing.

[0069] Specifically, in this embodiment, the load balancing algorithm includes the following steps:

[0070] (2.1) Traverse the SIP signaling service node list, and compare the real-time hardware load P of each online SIP signaling service node with the preset threshold Y in turn, and put the SIP signaling service node whose real-time hardware load P is less than the preset threshold Y into the pre-selected node list;

[0071] (2.2) Determine whether the size of the pre-selected node list is greater than 0. If it is greater than 0, proceed to step (2.3); otherwise, proceed to step (2.4);

[0072] (2.3) Calculate the comprehensive load L of each SIP signaling service node that meets the conditions, and forward the SIP transaction request to the SIP signaling service node with the smallest comprehensive load L, so that the SIP signaling service node processes the SIP transaction request;

[0073] (2.4) Directly returns a 5XX response signaling, indicating that the system is busy and unable to respond.

[0074] Furthermore, in the above step (2.1), the real-time hardware load P of the SIP signaling service node can be calculated according to the following formula:

[0075] P=κ c *P c +κ m *P m +κ n *P n

[0076] κ c +κ m +κ n =1

[0077] 0<κ c <1

[0078] 0<κ m <1

[0079] 0<κ n <1

[0080] Among them, κ c is the CPU load factor, P c is the CPU load, κ m is the memory load factor, P m is the memory load, κ n is the network load factor, P n is the network load.

[0081] Among them, CPU load P c It can be calculated as follows:

[0082]

[0083] Among them, Δu represents the difference of user state within a period of time, Δs represents the difference of system state within a period of time, and Δm represents the difference of CPU occupancy within a period of time.

[0084] Memory load P m It can be calculated as follows:

[0085]

[0086] Among them, M t Indicates the total memory capacity of the SIP signaling service node, M f Indicates the free memory capacity of the SIP signaling service node.

[0087] Network load Pn It can be calculated as follows:

[0088]

[0089] Among them, ΔR represents the difference in download bandwidth of SIP signaling service node within a period of time, ΔT represents the difference in upload bandwidth of SIP signaling service node within a period of time, Δt represents the time interval, BW t Indicates the total network bandwidth of the SIP signaling service node.

[0090] In addition, to ensure the stability of the system, the overload protection of the SIP signaling service node should also be considered to avoid serious consequences such as system crash. That is, when the load P of the SIP signaling service node reaches a certain threshold Y, the overload protection is triggered and the load balancing system no longer selects the node to process SIP transactions.

[0091] Furthermore, in the above step (2.3), the load L of the SIP signaling service node can be calculated according to the following formula:

[0092]

[0093] Where L represents the load of the SIP signaling service node, n represents the number of SIP transaction types being processed by the SIP signaling service node, and λ i represents the weight of the i-th SIP transaction, N i Indicates the total number of the i-th SIP transactions being processed by the SIP signaling service node.

[0094] For the weight of SIP transactions, a relative weight method is adopted. The weight of the INVITE signaling transaction with the most complex transaction logic is set to 1, and the weights of other SIP transactions are between 0 and 1.

[0095] In the SIP signaling server cluster, the hardware resources and network performance of each SIP signaling service node may be different. These factors will also affect the processing efficiency of the SIP signaling service node. Therefore, it is necessary to improve the load balancing algorithm of the minimum SIP transaction volume. The comprehensive load of the improved SIP signaling service node can be calculated according to the following formula:

[0096]

[0097] Wherein, μ represents the real-time hardware load coefficient of the SIP signaling service node, and P represents the real-time hardware load of the SIP signaling service node.

[0098] Furthermore, in the above step (3), if Figure 3 to Figure 6As shown, after receiving the SIP transaction request, the corresponding SIP signaling service node processes the SIP transaction request according to a preset rule, including:

[0099] (3.1) Determine the type of the SIP transaction request forwarded by the load balancing system. If it is a first-type request, proceed to step (3.2); if it is a second-type request, proceed to step (3.3);

[0100] (3.2) After receiving the first type of SIP transaction request forwarded by the load balancing system, the SIP signaling service node returns a non-SIP response to the load balancing system and directly initiates a corresponding SIP transaction request to the subordinate SIP service node;

[0101] (3.3) After receiving the second type of SIP transaction request forwarded by the load balancing system, the SIP signaling service node processes the SIP transaction request, and after processing, forwards the SIP response to the lower-level SIP signaling service node through the load balancing system.

[0102] Furthermore, in the above step (3.1), according to the request initiator, SIP video signaling can be divided into two categories: the first category is the signaling that the superior actively requests the subordinate (such as the real-time video and audio on-demand signaling INVITE), and the second category is the signaling that the subordinate actively requests the superior (such as the registration signaling REGISTER). Therefore, for the load balancing system, Figure 3-4 As shown, the requests it receives are also mainly divided into two categories: the first category is non-SIP requests sent by the internal business system, which are forwarded to the SIP signaling service node with the smallest load through the load balancing system. The SIP signaling service node directly initiates a SIP request to the subordinate SIP node and no longer forwards it through the load balancing system. This is referred to as the first category of requests in the present invention; the second category is SIP requests actively initiated by the subordinate SIP node, which are forwarded to the SIP signaling service node with the smallest load through the load balancing system. After processing, the SIP signaling service node returns a response signaling to the load balancing system, and the load balancing system forwards the response instruction to the subordinate SIP node. This is referred to as the second category of requests in the present invention.

[0103] Furthermore, in the above step (3.2), if Figure 5 As shown, the following steps are included: after the SIP signaling service node receives the non-SIP request of the load balancing system, the SIP signaling service node returns the non-SIP response to the load balancing system, and the load balancing system returns the non-SIP response to the internal business system; at the same time, the SIP signaling service node directly initiates a corresponding SIP request to the subordinate SIP node, and the Contact field in the SIP request is the information of the current SIP signaling service node; the subordinate SIP node correctly returns the response signaling to the current SIP signaling service node, and the whole process does not involve the forwarding of SIP signaling.

[0104] Furthermore, in the above step (3.3), if Figure 6 As shown, after the SIP signaling service node receives the SIP request forwarded by the load balancing system, the load balancing system needs to forward the received SIP request to the appropriate SIP signaling service node. To ensure that the SIP response can be correctly transmitted in the opposite direction of the request, it is necessary to add a Via header field containing the received field and the rport field when forwarding the SIP signaling, which is used to save the IP address and port information of all SIP proxies that the SIP signaling passes through during the forwarding process. In this way, the response signaling of the SIP signaling service node can be correctly returned to the load balancing system, and the load balancing system will forward it to the lower-level SIP node.

[0105] The load-balanced SIP video signaling system and control method thereof proposed in the present invention can effectively solve the risks and challenges of the traditional SIP video signaling system under high concurrent requests:

[0106] First, to address the problem of load imbalance, a load balancing algorithm that takes into account both SIP transaction load and hardware load and overload protection is used to establish a load balancing system, which can balance the load of each SIP signaling server to the greatest extent and improve resource utilization.

[0107] Secondly, to address the risk of single point failure, the load balancing system uses Keepalived technology to implement master-slave deployment. When the master node fails, it can automatically switch to the slave node to continue providing services. The SIP signaling system is deployed in a microservice cluster. When a node fails, the microservice monitoring system automatically removes the node. The load balancing system will not obtain the faulty node when requesting the SIP signaling service node list, thereby improving the reliability of the system.

[0108] Finally, in response to the lack of scalability, when the SIP signaling service node needs to be expanded, it is only necessary to add servers and deploy SIP signaling services normally. The microservice monitoring system automatically adds new nodes, and the load balancing system requests the SIP signaling service node list to obtain the new nodes. The entire process will not affect other system services and does not require manual configuration, thereby improving the scalability of the system.

[0109] In general, the present invention provides an efficient, stable and easily expandable solution for the SIP video signaling system based on the national standard 28181 protocol.

[0110] Example 3

[0111] This embodiment provides a processing device corresponding to the control method of the load-balanced SIP video signaling system provided in this embodiment 2. The processing device can be a processing device for a client, such as a mobile phone, a laptop computer, a tablet computer, a desktop computer, etc., to execute the method of embodiment 2.

[0112] The processing device includes a processor, a memory, a communication interface and a bus, and the processor, the memory and the communication interface are connected through the bus to complete mutual communication. The memory stores a computer program that can be run on the processor, and the processor executes the control method of the load-balanced SIP video signaling system provided in this embodiment 2 when running the computer program.

[0113] Preferably, the memory may be a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.

[0114] Preferably, the processor may be a central processing unit (CPU), a digital signal processor (DSP) or other general-purpose processors of various types, which are not limited here.

[0115] Example 4

[0116] The control method of the load-balanced SIP video signaling system of this embodiment 2 can be specifically implemented as a computer program product, which may include a computer-readable storage medium on which computer-readable program instructions for executing the control method of the load-balanced SIP video signaling system described in this embodiment 2 are loaded.

[0117] Computer readable storage media can be tangible devices that hold and store instructions used by instruction execution devices. Computer readable storage media can be, for example, but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any combination thereof.

[0118] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0119] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0120] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0121] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0122] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A load-balanced SIP video signaling control method, characterized in that: The following steps are involved: When the load balancing system receives a SIP transaction request, the load balancing system requests the microservice monitoring system for a list of SIP signaling service nodes; Traverse the SIP signaling service node list and determine whether there is a SIP signaling service node that meets the preset conditions. If so, forward the received SIP transaction request to the corresponding SIP signaling service node, otherwise directly return a 5XX response signaling; After receiving the SIP transaction request, the corresponding SIP signaling service node processes the SIP transaction request according to a preset rule.

2. A load-balanced SIP video signaling control method as claimed in claim 1, characterized in that: The traversal of the SIP signaling service node list and determining whether there is a SIP signaling service node that meets the preset conditions, if so, forwarding the received SIP transaction request to the corresponding SIP signaling service node, otherwise directly returning a 5XX response signaling, includes the following steps: Traverse the SIP signaling service node list, and compare the real-time hardware load P of each online SIP signaling service node with the preset threshold Y in turn, and put the SIP signaling service node whose real-time hardware load P is less than the preset threshold Y into the pre-selected node list; Determine whether there is a SIP signaling service node in the pre-selected node list. If so, calculate the comprehensive load L of each SIP signaling service node, and forward the SIP transaction request to the SIP signaling service node with the smallest comprehensive load L, which will process the SIP transaction request. If not, directly return a 5XX response signaling, indicating that the system is busy and cannot respond.

3. A load-balanced SIP video signaling control method as claimed in claim 2, characterized in that: The real-time hardware load P of the SIP signaling service node is calculated according to the following formula: P=k c *P c +k m *P m +k n *P n k c +k m +k n =1 0<κ c <1 0<κ m <1 0<κ n <1 Among them, κ c is the CPU load factor, P c is the CPU load, κ m is the memory load factor, P m is the memory load, κ n is the network load factor, P n is the network load.

4. A load-balanced SIP video signaling control method as claimed in claim 2, characterized in that: The load L of the SIP signaling service node is calculated according to the following formula: Where L represents the load of the SIP signaling service node, n represents the number of SIP transaction types being processed by the SIP signaling service node, and λ i represents the weight of the i-th SIP transaction, N i Indicates the total number of the i-th SIP transactions being processed by the SIP signaling service node.

5. A load-balanced SIP video signaling control method as claimed in claim 1, characterized in that: After receiving the SIP transaction request, the corresponding SIP signaling service node processes the SIP transaction request according to a preset rule, including: Determine the type of SIP transaction request forwarded by the load balancing system: If it is a non-SIP request initiated by an internal business system, the SIP signaling service node returns a non-SIP response to the load balancing system and directly initiates a corresponding SIP transaction request to the subordinate SIP service node; If the SIP request is actively initiated by the lower-level SIP signaling service node, the SIP signaling service node directly processes the SIP transaction request, and after processing, forwards the SIP response to the lower-level SIP signaling service node through the load balancing system.

6. A load-balanced SIP video signaling control method as claimed in claim 5, characterized in that: The SIP signaling service node returns a non-SIP response to the load balancing system, and directly initiates a corresponding SIP transaction request to the subordinate SIP service node, including: After the SIP signaling service node receives the non-SIP request from the load balancing system, the SIP signaling service node returns a non-SIP response to the load balancing system, and the load balancing system returns the non-SIP response to the internal business system; at the same time, the SIP signaling service node directly initiates a corresponding SIP request to the subordinate SIP signaling service node, and the Contact field in the SIP request is the information of the current SIP signaling service node; the subordinate SIP signaling service node correctly returns the response signaling to the current SIP signaling service node.

7. A load-balanced SIP video signaling control method as claimed in claim 6, characterized in that: The SIP signaling service node directly processes the SIP transaction request, and after the processing is completed, forwards the SIP response to the lower-level SIP signaling service node through the load balancing system, including: The load balancing system forwards the received SIP request to the appropriate SIP signaling service node, and adds a Via header field containing the received field and the rport field when forwarding the SIP request signaling, which is used to save the IP address and port information of all SIP proxies that the SIP request signaling passes through during the forwarding process. The response signaling of the SIP signaling service node can be correctly returned to the load balancing system, and the load balancing system then forwards it to the lower-level SIP signaling service node.

8. A load-balanced SIP video signaling system applicable to the method according to any one of claims 1 to 7, characterized in that: include: SIP signaling system, load balancing system and microservice monitoring system; The SIP signaling system adopts a distributed cluster architecture, including a plurality of SIP signaling service nodes, and the plurality of SIP signaling service nodes form a microservice cluster to provide SIP signaling services; The microservice monitoring system is used to monitor and manage the online and offline events of each SIP signaling service node in the SIP signaling system in real time, and generate and maintain a list of SIP signaling service nodes; The load balancing system is used to determine the SIP signaling service node with the smallest load to process the SIP transaction request according to the SIP signaling service node list maintained by the microservice monitoring system after receiving the SIP transaction request sent by the internal business system or the lower-level SIP service node.

9. A computer-readable storage medium storing one or more programs, characterized in that: The one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform any one of the methods of claims 1 to 7.

10. A computing device, characterized in that: include: One or more processors and a memory, wherein the memory stores one or more programs and is configured to be executed by the one or more processors, wherein the one or more programs include instructions for executing any one of the methods described in claims 1 to 7.