Communication boundary session migration method and device, and storage medium
By synchronizing session data in the SIP boundary session and switching standby state, the communication interruption problem caused by resource exhaustion is solved, and the user terminal's senseless session migration and communication continuity are achieved.
Patent Information
- Application Number
- CN202510537218.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2025-08-08
AI Technical Summary
The SIP boundary session is exhausted when handling large meetings or emergencies, resulting in user terminal calls stuttering, video screen stagnation or session interruption, and the inability to process new session requests and existing session data in time.
After the host SIP boundary session is created, the session data is synchronized to the cache module of the standby SIP boundary session, and when a host exception is detected, the standby is switched to the running state, and the media engine is bound through the virtual Internet protocol address to take over the session communication between the user terminal and the media server.
It realizes the user terminal's senseless session migration, ensures the continuity and stability of communication, and avoids the need to re-establish a session.
Smart Images

Figure CN120455439A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a communication boundary session migration method, device, and storage medium. Background Art
[0002] When an enterprise's internal network communicates with an external network, employees in different offices, branches, and remote locations need to be able to seamlessly access the enterprise communication system and maintain communication continuity. Therefore, a SIP communication boundary session controller is typically used as the boundary device of the enterprise network, responsible for processing SIP signaling and media streams between different networks to achieve interconnection between internal and external networks. However, the processing power of the SIP boundary session controller, such as CPU, memory, and other resources, is limited. The large number of communication requests generated by large-scale meetings, events, or emergencies within the enterprise can quickly deplete the resources of the host SIP boundary session controller, making it unable to process new session requests and existing session data in a timely manner. At this time, the user terminal will experience call freezes, video freezes, or even complete session interruption, and will need to wait for the session to be re-established.
[0003] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art. Summary of the Invention
[0004] The main purpose of this application is to provide a communication boundary session migration method, device and storage medium, aiming to solve the technical problem of how to ensure the continuity of SIP boundary session communication.
[0005] To achieve the above objectives, the present application proposes a communication boundary session migration method, the method comprising: After the host SIP boundary session device creates a session, synchronizing the session data in the cache module of the host SIP boundary session device to the cache module of the standby SIP boundary session device in a standby state; If an abnormality is detected in the host SIP boundary session, the host SIP boundary session is controlled to switch to a standby state, and the backup SIP boundary session is controlled to switch to a running state; Bind a virtual Internet Protocol address in the master SIP boundary session controller that bridges the user terminal address and the media server address to the media engine of the backup SIP boundary session controller, so that the backup SIP boundary session controller can take over the session communication between the user terminal and the media server through the virtual Internet Protocol address and the session data.
[0006] In one embodiment, before synchronizing the session data in the cache module of the master SIP boundary session controller to the cache module of the standby SIP boundary session controller in a standby state, the method further includes: When the host SIP boundary session device detects a session data update, controlling the media engine of the host SIP boundary session device to obtain session description protocol information from the boundary session controller of the host SIP boundary session device; The media engine of the host SIP boundary session controller is controlled to synchronize the media information and the acquired session description protocol information to a cache module of the host SIP boundary session controller.
[0007] In one embodiment, after the step of binding the virtual Internet Protocol address that bridges the user terminal address and the media server address in the master SIP boundary session controller to the media engine of the backup SIP boundary session controller, the step further includes: Determine a first media port corresponding to the host SIP boundary session in the session description protocol information; Replacing the first media port with the second media port of the standby SIP boundary session controller and updating the session description protocol information; The media engine controlling the standby SIP boundary session controller takes over the session communication between the user terminal and the media server through the virtual Internet Protocol address and the updated session description protocol information.
[0008] In one embodiment, the step of controlling the media engine of the standby SIP boundary session controller to take over the session communication between the user terminal and the media server using the Internet Protocol address and the updated Session Description Protocol information includes: When the media engine of the standby SIP boundary session receives the first media information sent by the user terminal through the virtual Internet Protocol address and the second media port, controlling the media engine of the standby SIP boundary session to send the first media information to the media server through the second media port; When the media engine of the standby SIP boundary session receives the second media information sent by the media server through the virtual Internet Protocol address and the second media port, the media engine of the standby SIP boundary session is controlled to send the second media information to the user terminal through the second media port.
[0009] In one embodiment, before the steps of controlling the master SIP boundary session controller to switch to a standby state and the backup SIP boundary session controller to switch to an active state if an abnormality is detected in the master SIP boundary session controller, the process further includes: Controlling the migration module of the master SIP boundary session controller to send a first virtual router redundancy protocol message to the migration module of the backup SIP boundary session controller according to a preset period, wherein the first virtual router redundancy protocol message includes the virtual Internet Protocol address; If the migration module of the backup SIP boundary session controller does not receive the virtual router redundancy protocol message within a preset time period, it is determined that the host SIP boundary session controller is abnormal.
[0010] In one embodiment, after the step of binding the virtual Internet Protocol address that bridges the user terminal address and the media server address in the master SIP boundary session controller to the media engine of the backup SIP boundary session controller, the step further includes: If the migration module of the standby SIP boundary session controller receives the first virtual router redundancy protocol message sent by the migration module of the master SIP boundary session controller again, determining the priority of the master SIP boundary session controller according to the first virtual router redundancy protocol message; If the priority of the master SIP boundary session controller is higher than the priority of the backup SIP boundary session controller, the backup SIP boundary session controller is controlled to switch to a standby state, and the master SIP boundary session controller is controlled to switch to a running state, so that the master SIP boundary session controller takes over the session communication between the user mobile terminal and the media server again.
[0011] In one embodiment, the method further comprises: detecting resource usage of the SIP boundary session; When the resource usage of the SIP boundary session is greater than a preset threshold, the priority of the SIP boundary session is reduced according to a preset ratio based on the resource usage.
[0012] In one embodiment, after the steps of controlling the master SIP boundary session controller to switch to a standby state and the backup SIP boundary session controller to switch to an active state if an abnormality is detected in the master SIP boundary session controller, the process further includes: Controlling the migration module of the standby SIP boundary session device to send a second virtual router redundancy protocol message to the migration module of the host SIP boundary session device; The cache module of the standby SIP boundary session controller is controlled to synchronize new session data to the cache module of the host SIP boundary session controller in a standby state.
[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a communication boundary session migration method device, which includes: a memory, a processor, and a computer program stored on the memory and runnable on the processor, and the computer program is configured to implement the steps of the communication boundary session migration method as described above.
[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the communication boundary session migration method as described above are implemented.
[0015] The present application provides a communication boundary session migration method. When a master SIP boundary session is in an operating state, session data is synchronized to a second cache module of a backup SIP boundary session in a standby state through a first cache module of the master SIP boundary session. When the master SIP boundary session is detected to be in an abnormal state, the master SIP boundary session is controlled to switch to a standby state through the first migration module of the master SIP boundary session. Simultaneously, the backup SIP boundary session is controlled to switch to an operating state through the second migration module of the backup SIP boundary session. A virtual Internet Protocol address sent by the first migration module and received by the second migration module is bound to a second media engine of the backup SIP boundary session. The second media engine is controlled to take over the session communication between a user terminal and a media server using the virtual Internet Protocol address and the session data in the second cache module.
[0016] This method uses a series of operations, including session data synchronization, state switching, and virtual IP address binding, to enable the backup SIP boundary session controller to take over session communications between the user terminal and the media server using the virtual IP address and cached session data. Because the virtual IP address remains unchanged, the user terminal does not need to reconfigure the connection, achieving seamless session migration. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0018] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] Figure 1 A flow chart illustrating a first embodiment of the communication boundary session migration method of the present application; Figure 2 A flow chart illustrating a second embodiment of the communication boundary session migration method of the present application; Figure 3 A flowchart of the third embodiment of the communication boundary session migration method of the present application is provided; Figure 4A flowchart of the fourth embodiment of the communication boundary session migration method of the present application is provided; Figure 5 A flowchart of Embodiment 5 of the communication boundary session migration method of this application is provided; Figure 6 A flowchart of Example 6 of the communication boundary session migration method of this application is provided; Figure 7 A schematic diagram of a simplified flow chart of a communication boundary session migration method provided in Example 6 of the present application; Figure 8 This is a schematic diagram of the device structure of the hardware operating environment involved in the communication boundary session migration method in the embodiment of the present application.
[0020] The purpose, features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not intended to limit the present application.
[0022] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0023] When an enterprise's internal network communicates with an external network, employees in different offices, branches, and remote locations need to be able to seamlessly access the enterprise communication system and maintain communication continuity. Therefore, a SIP communication boundary session controller is typically used as the boundary device of the enterprise network, responsible for processing SIP signaling and media streams between different networks to achieve interconnection between internal and external networks. However, the processing power of the SIP boundary session controller, such as CPU, memory, and other resources, is limited. The large number of communication requests generated by large-scale meetings, events, or emergencies within the enterprise can quickly deplete the resources of the host SIP boundary session controller, making it unable to process new session requests and existing session data in a timely manner. At this time, the user terminal will experience call freezes, video freezes, or even complete session interruption, and will need to wait for the session to be re-established.
[0024] In view of the above problems, the present application proposes a communication boundary session migration method. After the host SIP boundary session controller creates a session, the session data in the cache module of the host SIP boundary session controller is synchronized to the cache module of the backup SIP boundary session controller in the standby state; if an abnormality is detected in the host SIP boundary session controller, the host SIP boundary session controller is controlled to switch to the standby state, and the backup SIP boundary session controller is controlled to switch to the running state; the virtual Internet Protocol address in the host SIP boundary session controller that bridges the user terminal address and the media server address is bound to the media engine of the backup SIP boundary session controller, so that the backup SIP boundary session controller can take over the session communication between the user terminal and the media server through the virtual Internet Protocol address and session data.
[0025] This method uses a series of operations, including session data synchronization, state switching, and virtual IP address binding, to enable the backup SIP boundary session controller to take over session communications between the user terminal and the media server using the virtual IP address and cached session data. Because the virtual IP address remains unchanged, the user terminal does not need to reconfigure the connection, achieving seamless session migration.
[0026] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, personal computer, mobile phone, etc., or an electronic device that can realize the above functions.
[0027] Based on this, the first embodiment proposed in this application provides a communication boundary session migration method, referring to Figure 1 In this embodiment, the communication boundary session migration method includes steps S10 to S40: Step S10: After the host SIP boundary session controller creates a session, the session data in the cache module of the host SIP boundary session controller is synchronized to the cache module of the standby SIP boundary session controller in a standby state.
[0028] A SIP (Session Initiation Protocol) edge session controller is a device that processes SIP signaling and media streams. It is typically deployed at the network edge and is responsible for establishing, managing, and terminating real-time communication sessions. When a primary SIP edge session controller is running and a session is established, it synchronizes all session data related to the session from its internal cache module to the cache module of the backup SIP edge session controller in real time. Session data includes a session identifier, session state, media parameters, user information, and signaling messages. The session identifier uniquely identifies a SIP session and is typically carried in the header field of SIP messages. Media parameters include media types such as audio, video, codec, bandwidth, and port number, and are typically defined in the Session Description Protocol (SDP). User information includes the identifier and address of the participating user terminals. Signaling messages include SIP signaling messages exchanged during the session, such as INVITE, ACK, and BYE. INVITE initiates a new session; ACK confirms session establishment; and BYE terminates a session.
[0029] Optionally, the master SIP boundary session controller encapsulates each updated session data into a message and sends it to the backup SIP boundary session controller via a message queue. The backup SIP boundary session controller reads the updated session data from the message queue and caches the updated session data locally.
[0030] Step S20: If it is detected that the master SIP boundary session controller is abnormal, the master SIP boundary session controller is controlled to switch to a standby state, and the backup SIP boundary session controller is controlled to switch to a running state.
[0031] When an abnormality is detected in the host SIP boundary session, such as hardware failure or network interruption, the host SIP boundary session is controlled to switch itself to the standby state, and the backup SIP boundary session is controlled to switch to the running state.
[0032] Optionally, the master SIP boundary session controller and the backup SIP boundary session controller maintain communication via heartbeat signals. The master SIP boundary session controller periodically sends heartbeat signals to the backup SIP boundary session controller, which then determines whether the master SIP boundary session controller is functioning properly based on the heartbeat signals. If the backup SIP boundary session controller does not receive a heartbeat signal within a specified period of time, the master SIP boundary session controller is deemed to be malfunctioning.
[0033] For example, the active and standby SIP boundary session controllers can establish a heartbeat link via a dedicated management port, such as GE1, using the Bidirectional Forwarding Detection (BFD) protocol for fault detection. This heartbeat link is independent of the media communication service network, preventing traffic congestion from interfering with detection accuracy. For example, the heartbeat packet transmission interval can be set to 1 second. If the timeout threshold is 3 seconds and no response is received three times in a row, an abnormality is detected.
[0034] If an abnormality is detected in the master SIP border session controller, the active / standby switchover mechanism is triggered. The migration module controlling the master SIP border session controller sends a state switchover instruction to its media engine and border session controller, switching the master SIP border session controller to a standby state. Simultaneously, the migration module controlling the standby SIP border session controller sends a state switchover instruction to its media engine and border session controller, switching the standby SIP border session controller to an active state. The migration module can be a high availability (HA) component in the SIP border session controller.
[0035] In step S30, a virtual Internet Protocol address in the host SIP boundary session controller that bridges the user terminal address and the media server address is bound to the media engine of the backup SIP boundary session controller, so that the backup SIP boundary session controller can take over the session communication between the user terminal and the media server through the virtual Internet Protocol address and the session data.
[0036] It should be noted that the media engine is a module that processes media information and is responsible for the actual transmission of session communications, including operations such as forwarding, transcoding, and mixing of media information, to ensure efficient transmission and processing of media information. A virtual Internet Protocol address (VIP) is a logical address that is not bound to a specific physical device and is used as a unified access point in a high-availability cluster. The media engine of the SIP boundary session only needs to bind the virtual Internet Protocol address and receive and send media information through the virtual Internet Protocol address without having to pay attention to the master-slave switching details of the underlying physical interface. In this embodiment, when the host SIP boundary session is abnormal, the migration module of the host SIP boundary session can be controlled to migrate the virtual Internet Protocol address to the backup SIP boundary session to ensure the continuity of communication services.
[0037] Optionally, the master-slave switching mechanism of the underlying physical interfaces of the master SIP boundary session controller and the backup SIP boundary session controller may be specifically implemented as follows: First, the Session Border Controller (SBC) in both the active and standby SIP border controllers configures the same virtual router identifier on the physical interface and binds it to a virtual Internet Protocol (IP) address. When the standby SIP border controller switches to the operational state, it generates a virtual Media Access Control (MAC) address based on the virtual router identifier and immediately notifies network devices, such as switches, via a Gratuitous Address Resolution Protocol (ARP) broadcast to update the MAC address table, mapping the virtual IP address to the virtual MAC address. After receiving the ARP message, the switch forwards the traffic to the physical interface of the standby SIP border controller, but the destination MAC address of the data packet remains the virtual MAC address. The SBC is the device or software that controls SIP sessions and processes SIP signaling messages, such as registrations and call requests, to ensure proper signaling forwarding and processing.
[0038] After a primary / backup switchover, the backup SIP boundary session controller's migration module receives the virtual Internet Protocol (IP) address sent by the primary SIP boundary session controller and binds it to the backup SIP boundary session controller's media engine. The backup SIP boundary session controller then uses the previously synchronized session data to take over session communications between the user terminal and the media server through its media engine. This allows seamless communication between the user terminal and the media server to the backup SIP boundary session controller, without the user being aware of the underlying primary / backup switchover. Communication continues using the virtual MAC address as the target address, achieving seamless session migration for the user terminal.
[0039] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above embodiment 1 can be referred to the above introduction and will not be described in detail later. Figure 2 Before step S10, the communication boundary session migration method further includes steps S40 to S50: Step S40: When the host SIP boundary session device detects that the session data is updated, the media engine of the host SIP boundary session device is controlled to obtain session description protocol information from the boundary session controller of the host SIP boundary session device.
[0040] Step S50: Control the media engine of the host SIP boundary session controller to synchronize the media information and the acquired session description protocol information to the cache module of the host SIP boundary session controller.
[0041] In this embodiment, changes in session data within the host SIP boundary session controller are monitored in real time, such as updates to session status and changes to media parameters. Upon detecting a session data update, the media engine controlling the host SIP boundary session controller retrieves Session Description Protocol (SDP) information from the boundary session controller within the host SIP boundary session controller. The SDP describes session parameters such as media type, codec, and port number, and is used to negotiate session media parameters. The host SIP boundary session controller's media engine synchronizes the retrieved SDP information with the media information currently being processed within the media engine into the host SIP boundary session controller's cache module, sharing the information in real time. This ensures that the backup SIP boundary session controller can quickly take over the session in the event of a failure within the host SIP boundary session controller.
[0042] Based on the above embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction and will not be described in detail later. Figure 3 After step S30, the communication boundary session migration method further includes steps S60 to S80: Step S60: Determine the first media port corresponding to the host SIP boundary session in the session description protocol information.
[0043] After the backup SIP boundary session controller switches to the running state, the media engine controlling the backup SIP boundary session controller obtains synchronized session description protocol information from the cache module of the backup SIP boundary session controller. The first media port of the master SIP boundary session controller is extracted from the session description protocol information. A media port is a port on a device used to receive and send media streams. Different sessions can use different media ports to distinguish different media streams.
[0044] The "m=" line in the session description protocol information contains information such as the media type and port number. For example, "m=audio 5004 RTP / AVP 0 8 9" indicates the audio media type and port number 5004. This audio media information uses the Real-time Transport Protocol (RTP) and Audio Video Profile (AVP), and specifies the Real-time Transport Protocol payload types 0, 8, and 9.
[0045] Step S70: Replace the first media port with the second media port of the backup SIP boundary session controller, and update the session description protocol information.
[0046] For example, the media port is replaced by modifying the "m=" line in the Session Description Protocol information. For example, the first media port of the primary SIP boundary session, such as "5004," is replaced with the second media port of the backup SIP boundary session, such as "5006." The modified SDP information is re-encapsulated into a SIP message to ensure that the new Session Description Protocol information can be correctly recognized and used by the user terminal and the media server.
[0047] Step S80: Control the media engine of the standby SIP boundary session controller to take over the session communication between the user terminal and the media server through the virtual Internet Protocol address and the updated session description protocol information.
[0048] The media engine controlling the backup SIP boundary session controller establishes a new media stream using the virtual Internet Protocol (IP) address based on the updated Session Description Protocol information, taking over the session communication between the user terminal and the media server. It should be noted that since the virtual IP address used for media communication remains unchanged, the backup SIP boundary session controller retains the previously synchronized bridge association between the user terminal address and the media server address. Instead of reestablishing a new session, the session is simply migrated to the backup SIP boundary session controller, where the media information is processed and exchanged using the backup SIP boundary session controller's media engine.
[0049] Optionally, step S80 further includes steps S81-S82: Step S81: When the media engine of the backup SIP boundary session receives the first media information sent by the user terminal through the virtual Internet Protocol address and the second media port, the media engine of the backup SIP boundary session is controlled to send the first media information to the media server through the second media port.
[0050] Step S82: When the media engine of the backup SIP boundary session receives the second media information sent by the media server through the virtual Internet Protocol address and the second media port, the media engine of the backup SIP boundary session is controlled to send the second media information to the user terminal through the second media port.
[0051] It is understandable that, because the primary SIP boundary session controller had already sent the virtual IP address and session data to the backup SIP boundary session controller when it was in an abnormal state, when the user terminal sent media information to the same virtual IP address, the backup SIP boundary session controller was able to receive the first media information sent by the user terminal via the second media port, process the first media information according to the session description protocol information, and then send it to the media server via the second media port. Similarly, the backup SIP boundary session controller can also forward the second media information sent by the media server to the user terminal according to the above process, taking over the session communication between the user terminal and the media server, thus ensuring the continuity and stability of communication.
[0052] Based on the above embodiments of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction and will not be described in detail later. Figure 4 Before step S20, the communication boundary session migration method further includes steps S90 to S100: Step S90: Control the migration module of the master SIP boundary session controller to send a first virtual router redundancy protocol message to the migration module of the backup SIP boundary session controller according to a preset period, wherein the first virtual router redundancy protocol message includes the virtual Internet Protocol address.
[0053] Step S100: If the migration module of the backup SIP boundary session controller does not receive the virtual router redundancy protocol message within a preset time period, it is determined that the host SIP boundary session controller is abnormal.
[0054] For example, the Virtual Router Redundancy Protocol (VRRP) is configured for the migration module of the host SIP boundary session controller, and a virtual Internet address is set. VRRP is a protocol used to improve network reliability. It allows a group of routers to form a virtual router, with one router acting as the primary router and the others acting as backups. If the primary router fails, the backup router can take over as the new primary router.
[0055] At a preset interval, such as one second, the migration module of the master SIP boundary session controller sends Virtual Router Redundancy Protocol (VRRP) messages to the migration module of the backup SIP boundary session controller. By regularly sending VRRP messages, the backup SIP boundary session controller can monitor the master's operating status in real time, ensuring timely detection and failover of any master SIP boundary session controller failure. The migration module of the backup SIP boundary session controller receives VRRP messages from the master SIP boundary session controller. If no VRRP messages are received within a preset period, such as three seconds, the migration module of the backup SIP boundary session controller determines that the master SIP boundary session controller is in an abnormal state and triggers the master-backup failover mechanism.
[0056] In this embodiment, by monitoring virtual router redundancy protocol messages, the backup SIP boundary session controller can quickly detect a host failure, ensuring timely takeover when an abnormality occurs in the host SIP boundary session controller, thereby improving system reliability and availability.
[0057] Based on the above embodiment of the present application, in the fifth embodiment of the present application, the same or similar contents as the above embodiment can be referred to the above introduction, and no further details will be given later. On this basis, the first virtual router redundancy protocol message includes the priority of the host SIP boundary session, please refer to Figure 5 After step S30, the communication boundary session migration method further includes steps S110 to S120: Step S110: If the migration module of the backup SIP boundary session controller receives the first virtual router redundancy protocol message sent by the migration module of the master SIP boundary session controller again, the priority of the master SIP boundary session controller is determined according to the first virtual router redundancy protocol message.
[0058] In step S120, if the priority of the master SIP boundary session controller is higher than that of the backup SIP boundary session controller, the backup SIP boundary session controller is controlled to switch to a standby state, and the master SIP boundary session controller is controlled to switch to a running state, so that the master SIP boundary session controller takes over the session communication between the user mobile terminal and the media server again.
[0059] Exemplarily, the migration module of the backup SIP boundary session controller receives a virtual router redundancy protocol message sent by the primary SIP boundary session controller. A protocol parser extracts the priority field in the virtual router redundancy protocol message to determine the priority of the primary SIP boundary session controller. The priority of the primary SIP boundary session controller is compared with the priority of the backup SIP boundary session controller to determine whether a switchover is required. If the priority of the primary SIP boundary session controller is higher than that of the backup SIP boundary session controller, a primary-backup switchover mechanism is triggered.
[0060] Optionally, the resource usage of the SIP boundary session is detected; when the resource usage of the SIP boundary session is greater than a preset threshold, the priority of the SIP boundary session is reduced according to a preset ratio based on the resource usage.
[0061] For example, select network management software that supports Simple Network Management Protocol (SNMP) and add the Internet Protocol address of the SIP boundary session controller to the management software. Enable the SNMP service on the SIP boundary session controller to ensure that the management software can obtain resource usage data, including CPU usage, memory usage, and bandwidth, through SNMP. If the usage of any resource exceeds its corresponding threshold, the priority adjustment process begins: first, the difference between the resource usage exceeding the threshold and its corresponding threshold is calculated. Based on this difference and the preset priority adjustment ratio, the required priority reduction is calculated. This calculated value is subtracted from the current SIP boundary session controller priority to obtain the new priority.
[0062] It's understood that a higher priority for the master SIP boundary session controller indicates it has more powerful hardware resources, such as higher CPU performance, more memory, and greater bandwidth, enabling it to handle greater loads and provide better performance. When the master SIP boundary session controller recovers, switching session traffic back to the master SIP boundary session controller reduces the risk of system failures caused by insufficient resources or performance limitations on the backup server.
[0063] Based on the above embodiments of the present application, in the sixth embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction and will not be described in detail later. Figure 6 After step S20, the communication boundary session migration method further includes steps S130 to S140: Step S130: Control the migration module of the backup SIP boundary session controller to send a second virtual router redundancy protocol message to the migration module of the host SIP boundary session controller.
[0064] Step S140: Control the cache module of the standby SIP boundary session controller to synchronize the new session data to the cache module of the host SIP boundary session controller in the standby state.
[0065] In this embodiment, when the master SIP boundary session switch switches to the standby state and the backup SIP boundary session switch switches to the master state, the backup SIP boundary session switch's migration module sends a second Virtual Router Redundancy Protocol message to the master SIP boundary session switch's migration module, enabling the master SIP boundary session switch to detect the backup SIP boundary session switch's status. Simultaneously, session data generated after the backup SIP boundary session switch takes over session communications is synchronized to the master SIP boundary session switch's cache module. This ensures that the master SIP boundary session switch can communicate based on the latest session data when it subsequently needs to take over session communications again, avoiding communication anomalies caused by data asynchrony and ensuring smooth session migration.
[0066] For example, to help understand the implementation process of the communication boundary session migration method obtained by combining this embodiment with the above embodiment 1, please refer to Figure 7 , Figure 7 A brief flowchart of a communication boundary session migration method is provided, specifically: After the master SIP boundary session establishes a session, step D1 is executed to control the master SIP boundary session's media engine to obtain session description protocol information from the master SIP boundary session's boundary session controller. Then, step D2 is executed to control the master SIP boundary session's media engine to synchronize the media information and the obtained session description protocol information with the master SIP boundary session's cache module. Thereafter, step D3 is executed to synchronize the session data in the master SIP boundary session's cache module with the backup SIP boundary session's cache module. Simultaneously, step D4 is executed to control the master SIP boundary session's migration module to send first virtual router redundancy protocol messages to the backup SIP boundary session's migration module at a preset interval.
[0067] When the master SIP boundary session controller is in an abnormal state, step D5 is first executed to control the migration module of the master SIP boundary session controller to send a state switching instruction to the boundary session controller and media engine of the master SIP boundary session controller, thereby switching the master SIP boundary session controller to a standby state. Simultaneously, step D6 is executed to control the migration module of the backup SIP boundary session controller to send a state switching instruction to the boundary session controller and media engine of the backup SIP boundary session controller, thereby switching the backup SIP boundary session controller to an operational state. Then, step D7 is executed to control the migration module of the backup SIP boundary session controller to send a second virtual router redundancy protocol message to the migration module of the master SIP boundary session controller according to a preset period.
[0068] Next, step D8 is executed to control the media engine of the standby SIP border session to obtain a virtual Internet Protocol address from the migration module of the standby SIP border session. Then, step D9 is executed to control the media engine of the standby SIP border session to obtain session description protocol information from the cache module of the standby SIP border session. After the media port is replaced, step D10 is executed to synchronize the updated session description protocol information with the border session controller of the standby SIP border session. This allows the border session controller of the standby SIP border session to take over the session between the user terminal and the media server, and the media engine of the standby SIP border session to take over the session communication between the user terminal and the media server.
[0069] After new session data is generated in the standby SIP boundary session controller, step D11 is executed to control the media engine of the standby SIP boundary session controller to obtain session description protocol information from the boundary session controller of the standby SIP boundary session controller. Then, step D12 is executed to control the media engine of the standby SIP boundary session controller to synchronize the media information and the obtained session description protocol information to the cache module of the standby SIP boundary session controller. Then, step D13 is executed to synchronize the session data in the cache module of the standby SIP boundary session controller to the cache module of the host SIP boundary session controller.
[0070] It should be noted that the above examples are only used to understand this application and do not constitute a limitation on the communication boundary session migration method of this application. More simple transformations based on this technical concept are all within the scope of protection of this application.
[0071] The present application provides a communication boundary session migration method and device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the communication boundary session migration method in the above-mentioned embodiment one.
[0072] Reference below Figure 8 , which shows a schematic diagram of the structure of a device suitable for implementing the communication boundary session migration method in an embodiment of the present application. The communication boundary session migration method device in the embodiment of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptops, and tablet computers (PADs), as well as fixed terminals such as desktop computers. Figure 8 The communication boundary session migration method and device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0073] like Figure 8As shown, the communication boundary session migration method and apparatus may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. RAM 1004 also stores various programs and data required for the operation of the communication boundary session migration method and apparatus. Processing device 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to I / O interface 1006: input device 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output device 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage device 1003 including, for example, a magnetic tape, hard disk, etc.; and communication device 1009. Communication device 1009 may allow the communication boundary session migration method apparatus to communicate wirelessly or wired with other devices to exchange data. While the figure illustrates the communication boundary session migration method apparatus with various systems, it should be understood that implementation or presence of all illustrated systems is not required. More or fewer systems may alternatively be implemented or present.
[0074] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0075] The communication boundary session migration method and device provided in this application, utilizing the communication boundary session migration method of the aforementioned embodiment, can solve the technical problem of ensuring the continuity of SIP boundary session communications. Compared to the prior art, the communication boundary session migration method and device provided in this application achieves the same beneficial effects as the communication boundary session migration method provided in the aforementioned embodiment. Other technical features of this communication boundary session migration method and device are the same as those disclosed in the aforementioned embodiment and are not further elaborated here.
[0076] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0077] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0078] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, a computer program) stored thereon, wherein the computer-readable program instructions are used to execute the communication boundary session migration method in the above-mentioned embodiment.
[0079] The computer-readable storage medium provided herein may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems, or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM) or flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including, but not limited to, wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.
[0080] The computer-readable storage medium may be included in the communication boundary session migration method device; or may exist independently without being assembled into the communication boundary session migration method device.
[0081] The computer-readable storage medium carries one or more programs. When executed by the communication boundary session migration method device, the one or more programs enable the communication boundary session migration method device to write computer program code for performing the operations of the present application in one or more programming languages, or a combination thereof. These programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as "C" or similar programming languages. The program code can be executed entirely on the user computer, partially on the user computer, as a stand-alone software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0082] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of code, and the module, program segment or part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, as well as the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.
[0083] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.
[0084] The computer-readable storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned communication boundary session migration method. This computer-readable storage medium can address the technical problem of ensuring the continuity of SIP boundary session communications. Compared to the prior art, the computer-readable storage medium provided in this application offers the same advantages as the communication boundary session migration method provided in the aforementioned embodiments, and will not be further elaborated upon here.
[0085] The above description is only part of the embodiments of the present application and does not limit the patent scope of the present application. All equivalent structural transformations made by using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect application in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A communication boundary session migration method, characterized in that: The communication boundary session migration method includes: After the host SIP boundary session device creates a session, synchronizing the session data in the cache module of the host SIP boundary session device to the cache module of the standby SIP boundary session device in a standby state; If an abnormality is detected in the host SIP boundary session, the host SIP boundary session is controlled to switch to a standby state, and the backup SIP boundary session is controlled to switch to a running state; Bind a virtual Internet Protocol address in the master SIP boundary session controller that bridges the user terminal address and the media server address to the media engine of the backup SIP boundary session controller, so that the backup SIP boundary session controller can take over the session communication between the user terminal and the media server through the virtual Internet Protocol address and the session data.
2. The communication boundary session migration method according to claim 1, wherein: Before the step of synchronizing the session data in the cache module of the host SIP boundary session controller to the cache module of the standby SIP boundary session controller in a standby state, the method further includes: When the host SIP boundary session device detects a session data update, controlling the media engine of the host SIP boundary session device to obtain session description protocol information from the boundary session controller of the host SIP boundary session device; The media engine of the host SIP boundary session controller is controlled to synchronize the media information and the acquired session description protocol information to a cache module of the host SIP boundary session controller.
3. The communication boundary session migration method according to claim 2, wherein: After the step of binding the virtual Internet Protocol address bridging the user terminal address and the media server address in the host SIP boundary session controller to the media engine of the backup SIP boundary session controller, the method further includes: Determine a first media port corresponding to the host SIP boundary session in the session description protocol information; Replacing the first media port with the second media port of the standby SIP boundary session controller and updating the session description protocol information; The media engine controlling the standby SIP boundary session takes over the session communication between the user terminal and the media server through the virtual Internet Protocol address and the updated session description protocol information.
4. The communication boundary session migration method according to claim 3, wherein: The step of controlling the media engine of the standby SIP boundary session controller to take over the session communication between the user terminal and the media server through the Internet Protocol address and the updated session description protocol information includes: When the media engine of the standby SIP boundary session receives the first media information sent by the user terminal through the virtual Internet Protocol address and the second media port, controlling the media engine of the standby SIP boundary session to send the first media information to the media server through the second media port; When the media engine of the standby SIP boundary session receives the second media information sent by the media server through the virtual Internet Protocol address and the second media port, the media engine of the standby SIP boundary session is controlled to send the second media information to the user terminal through the second media port.
5. The communication boundary session migration method according to claim 1, wherein: Before the steps of controlling the host SIP boundary session to switch to a standby state if an abnormality is detected in the host SIP boundary session, and controlling the backup SIP boundary session to switch to a running state, the method further includes: Controlling the migration module of the master SIP boundary session controller to send a first virtual router redundancy protocol message to the migration module of the backup SIP boundary session controller according to a preset period, wherein the first virtual router redundancy protocol message includes the virtual Internet Protocol address; If the migration module of the backup SIP boundary session controller does not receive the virtual router redundancy protocol message within a preset time period, it is determined that the host SIP boundary session controller is abnormal.
6. The communication boundary session migration method according to claim 5, wherein: After the step of binding the virtual Internet Protocol address bridging the user terminal address and the media server address in the host SIP boundary session controller to the media engine of the backup SIP boundary session controller, the method further includes: If the migration module of the standby SIP boundary session controller receives the first virtual router redundancy protocol message sent by the migration module of the master SIP boundary session controller again, determining the priority of the master SIP boundary session controller according to the first virtual router redundancy protocol message; If the priority of the master SIP boundary session controller is higher than the priority of the backup SIP boundary session controller, the backup SIP boundary session controller is controlled to switch to a standby state, and the master SIP boundary session controller is controlled to switch to a running state, so that the master SIP boundary session controller takes over the session communication between the user mobile terminal and the media server again.
7. The communication boundary session migration method according to claim 6, wherein: The method further comprises: detecting resource usage of the SIP boundary session; When the resource usage of the SIP boundary session is greater than a preset threshold, the priority of the SIP boundary session is reduced according to a preset ratio based on the resource usage.
8. The communication boundary session migration method according to claim 1, wherein: After the steps of controlling the host SIP boundary session to switch to a standby state if an abnormality is detected in the host SIP boundary session, and controlling the backup SIP boundary session to switch to a running state, the method further includes: Controlling the migration module of the standby SIP boundary session device to send a second virtual router redundancy protocol message to the migration module of the host SIP boundary session device; The cache module of the standby SIP boundary session controller is controlled to synchronize new session data to the cache module of the host SIP boundary session controller in a standby state.
9. A communication boundary session migration device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the communication boundary session migration method according to any one of claims 1 to 8.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium. A computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the communication boundary session migration method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
High-reliability media connection control method for IMS (IP Multimedia Subsystem)
CN118301141A
Methods, apparatus and systems to increase media resource function availability
US20160366189A1