Stateless design method based on CAP call signaling

Through distributed locks and REDIS clusters, the orderly processing of CAP call signaling messages and data consistency are achieved, and a single point of failure and performance bottleneck problems in CAP call signaling design is solved, load balancing and dynamic scaling are supported, and load balancing is supported to achieve The stateless and containerized deployment of telecom operator services.

CN119011479APending Publication Date: 2024-11-22EASTERN COMM
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410995844.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the prior art, CAP call signaling design is stateful, which limits the stateless execution of signaling between different processing modules, resulting in single point of failure, performance bottlenecks and load imbalance, making it difficult to realize the telecom operators. Cloud-based and containerized deployment.

Method used

Through distributed locks and REDIS clusters, the orderly processing and data consistency of CAP call signaling messages is realized, allowing call signaling to be randomly distributed among multiple processing modules, parsed and updated call information, generated call orders, and on Redis Save associated information in the cluster to solve single point of failure and performance bottlenecks, and support load balancing and dynamic scaling.

Benefits of technology

It realizes the stateless design of the CAP call signaling module, solves single point of failure and performance bottleneck problems, supports load balancing and dynamic expansion and scaling, and provides a stateless and containerized deployment solution for telecom operator services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011479A_ABST
    Figure CN119011479A_ABST
Patent Text Reader

Abstract

The invention relates to a stateless design method based on CAP call signaling. The CAP call signaling processing module is in butt joint with an operator signaling network, processes a CAP call signaling message, and is in butt joint with a Redis cluster to obtain call event association information; and the Redis cluster is used for storing the call event associated information. According to the invention, stateless signaling interaction in the CAP calling process is realized through the distributed lock and the REDIS cluster, a CAP calling function is realized, service losslessness under the abnormal condition of the CAP calling signaling module is realized, the problems of single-point failure and performance bottleneck of the CAP calling signaling module are solved at the same time, call service flow load balance is supported, and the service performance of the CAP calling signaling module is improved. The capacity of the CAP call signaling module is dynamically expanded and shrunk, lossless upgrading is achieved, and a new thought is provided for stateless and containerized deployment of telecom operator services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a stateless design method based on CAP call signaling. Background Art

[0002] Statelessness means multiple service modules are deployed redundantly, with completely equivalent functions. The processing results of requests to any service module are the same. These service modules do not store business-related information, but only perform corresponding business processing based on the data carried by each request. Business-related information is stored in a unified place, such as REDIS, cache middleware, etc.

[0003] New IT technologies are emerging and gradually penetrating into the telecom operator industry. In addition, as telecom operators upgrade their services, the decoupling, cloudification, and containerization of the operator network architecture are the evolution direction of their networks. Stateless design makes it possible to decouple telecom services, migrate services to the cloud, achieve high concurrency, high reliability, high maintainability, load balancing, and dynamic expansion and contraction.

[0004] Therefore, in order to adapt to the cloud evolution of telecom operators, realizing the stateless design of service modules is an important issue that needs to be solved urgently. Summary of the invention

[0005] In view of the problems existing in the prior art, the object of the present invention is to provide a stateless design method based on CAP call signaling.

[0006] The stateless design method based on CAP call signaling is characterized in that the stateless design is to desensitize its statefulness, allowing the same call signaling to be executed in different processing modules; the stateless design method for call flow is as follows: 1) Multiple CAP call signaling processing modules use distributed locks to operate the same call message in an orderly manner to ensure data consistency; the distributed lock is generated based on the unique transaction ID generated by the CAP initial IDP message and the ID combination of the CAP call signaling processing module that currently processes the IDP message. The distributed lock is stored in the REDIS cluster, and a timeout is set for the distributed lock; 2) When the CAP call signaling processing module receives any call signaling message, it determines whether it is a call initial IDP message, parses the call signaling message to obtain the calling and called numbers, IMSI, and call time, and generates a distributed lock for this call and stores it in the REDIS cluster; when it is determined that it is a message during a call, it first successfully obtains the distributed lock corresponding to this call from the REDIS cluster, then obtains the call information from the REDIS cluster, parses the call signaling message to obtain the current call status information, off-hook time, and call duration, updates the call information and saves it to the REDIS cluster, and releases the distributed lock at the same time; when it is determined that it is a call end message, it first successfully obtains the distributed lock corresponding to this call from the REDIS cluster, then obtains the call information from the REDIS cluster, parses the call signaling message, generates a call bill in combination with the call information in the REDIS cluster, and finally deletes the call information and distributed lock in the REDIS cluster.

[0007] The stateless design method based on CAP call signaling is characterized by: The CAP call signaling processing module processes CAP call signaling messages and obtains call-related information by connecting to Redis through the cluster. The Redis cluster is deployed in a three-master and three-standby cluster mode, saves call event information, and provides call association information for use by the CAP call signaling processing module.

[0008] The stateless design method based on CAP call signaling is characterized in that the stateless process of the CAP call signaling processing module is as follows: the CAP call signaling processing module processes signaling messages including IDP, RRBE, AC, FCI, CONTINUE, CONNECT, ERB, ACR, ETC, ARI, PAC, DFC, PCR, RC, TC_END, parses and extracts call status and call information in the message; deployed in REDIS cluster mode, saves the associated information of each call; multiple CAP call signaling processing modules are connected to the REDIS cluster, and call signaling messages are randomly sent to any CAP call signaling processing module. The CAP call signaling processing module obtains the call associated information from REDIS, and after processing the message, updates the call associated information in REDIS.

[0009] The present invention realizes the statelessness of signaling interaction in the CAP call process through distributed locks and REDIS clusters, realizes the CAP call function, and realizes lossless service in the case of abnormal CAP call signaling module. At the same time, it solves the single point failure problem and performance bottleneck problem of CAP call signaling module, supports call service traffic load balancing, dynamic expansion and contraction of CAP call signaling module, and lossless upgrade, which provides a way of thinking for stateless and containerized deployment of telecom operators' services. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a module diagram of the present invention; Figure 2 This is the processing flow chart of the CAP call signaling processing module. DETAILED DESCRIPTION

[0011] The present invention will be further described below in conjunction with the accompanying drawings: A stateless design method based on CAP call signaling. Conventional CAP call signaling is stateful and context-related and needs to be executed sequentially in the same processing module. The stateless design of the present invention desensitizes its statefulness and allows the same call signaling to be executed in different processing modules.

[0012] CAP call signaling processing module is stateless: The CAP call signaling processing module processes signaling messages including IDP, RRBE, AC, FCI, CONTINUE, CONNECT, ERB, ACR, ETC, ARI, PAC, DFC, PCR, RC, and TC_END, parses and extracts call status and call information in the message; it is deployed in REDIS cluster mode to save the associated information of each call; multiple CAP call signaling processing modules are connected to the REDIS cluster, and call signaling messages are randomly sent to any CAP call signaling processing module. The CAP call signaling processing module obtains the call associated information from REDIS, and after processing the message, updates the call associated information in REDIS.

[0013] CAP call signaling processing module: processes CAP call signaling messages; connects to Redis through the cluster to obtain call-related information; Redis cluster: deployed in three-active and three-standby cluster mode, saves call event information, and provides call association information for use by the CAP call signaling processing module.

[0014] CAP call signaling processing: including parsing IDP, RRBE, AC, FCI, CONTINUE, CONNECT, ERB, ACR, ETC, ARI, PAC, DFC, PCR, RC, TC_END signaling messages, and extracting call status and call information from the messages.

[0015] The design method of stateless call flow is as follows: 1) Multiple CAP call signaling processing modules use distributed locks to achieve orderly operations on the same call message to ensure data consistency; the distributed lock is generated based on the unique transaction ID generated by the CAP initial IDP message and the ID combination of the CAP call signaling processing module that currently processes the IDP message. The distributed lock is stored in the REDIS cluster, and a timeout is set for the distributed lock; 2) When the CAP call signaling processing module receives any call signaling message, it determines that it is the initial IDP message of the call, parses the call signaling message to obtain call information such as the calling and called numbers, IMSI, call time, etc., and generates a distributed lock for this call and stores it together Enter the REDIS cluster; when it is judged that it is a message in the call process, first successfully obtain the distributed lock corresponding to this call from the REDIS cluster, then obtain the call information from the REDIS cluster, parse the call signaling message to obtain the current call status information, off-hook time, call duration, etc., update the call information and save it to the REDIS cluster, and release the distributed lock at the same time; when it is judged that it is a call end message, first successfully obtain the distributed lock corresponding to this call from the REDIS cluster, then obtain the call information from the REDIS cluster, parse the call signaling message, combine the call information in the REDIS cluster to generate a call bill, and finally delete the call information and distributed lock in the REDIS cluster.

[0016] The present invention utilizes a stateless design method of CAP call signaling to implement CAP call functions, solve single point failure problems of CAP call signaling modules, performance bottleneck problems, and support load balancing, dynamic expansion and contraction, lossless upgrades, and containerized deployment.

[0017] See attached Figure 1 The CAP call signaling processing module in the present invention realizes the stateless call function based on the Redis three-master and three-standby cluster mode.

[0018] See attached Figure 2 , the processing flow of the CAP call signaling processing module is as follows: 1) Get the message sent to the CAP call signaling processing module from the message queue, including IDP, ERB, ACR, RC, TC_END; then execute 2), 3), 4); 2) According to the message type, it is determined that it is a call initiation IDP message. The CAP call signaling processing module parses the message to obtain call-related information, including transaction ID, calling and called numbers, call start time, etc.; then execute 5); 3) According to the message type, it is determined that it is a call process message ERB\ACR. The CAP call signaling processing module parses the message to obtain call-related messages, including transaction ID, call progress, call start time, etc.; then execute 6); 4) According to the message type, it is determined that it is a call end message RC\TRANS_END. The CAP call signaling processing module parses the message to obtain call-related messages, including transaction ID, end reason value, etc.; then execute 7); 5) The CAP call signaling processing module generates a distributed lock for this call, and saves the call association information, including transaction ID, calling and called numbers, call start time, etc., into REDIS; return 1); 6) The CAP call signaling processing module obtains the distributed lock from REDIS. If successful, it processes the current call message and executes 8); if failed, it continues to obtain the distributed lock and returns to execute 3); 7) The CAP call signaling processing module obtains the distributed lock from REDIS. If successful, it processes the current call message and executes 9); if failed, it continues to obtain the distributed lock and returns to execute 4); 8) The CAP call signaling processing module processes the call message and updates the call-related information in the REDIS cluster, including the off-hook time, on-hook time, release reason value, etc. After the operation is completed, the distributed lock is released; then return 1); 9) CAP call signaling processing module determines that it is an end event, processes the call process and generates a call record, deletes the REDIS call association information and distributed lock, and then returns to 1).

[0019] Notes: CAP (CAMEL Application Part): CAMEL application part protocol IDP (Initial DP): Start DP RRBE (RequestReportBCSMEvent): Request BCSM event report AC (Apply Charging): Apply charging FCI (Furnish Charging Information): Provides billing information CONTIINUE: continue CONNECT: Connect ERB (EventReportBCSM): BCSM event report ACR (ApplyChargingReport): Apply for charging report ETC (Establish Temporary Connection): Establish a temporary connection ARI (AssistRequestInstructions): Assist request instructions PAC (Play Announcement And Collect): Play announcement and collect numbers DFC (DisconnectForwardConnection): Disconnect the forward connection PCR (PAC Result): Receive PAC result indication RC (ReleaseCall): Release call CANCEL: Cancel TC_END: ​​End transaction IMSI (International Mobile Subscriber Identification Number): International Mobile Subscriber Identification Number Redis: REmote DIctionary Server (Redis) is a key-value storage system written by Salvatore Sanfilippo. It is a cross-platform non-relational database.

Claims

1. A stateless design method based on CAP call signaling, characterized in that Stateless is to desensitize its statefulness, allowing the same call signaling to be executed in different processing modules; the design method of stateless call flow is as follows: 1) Multiple CAP call signaling processing modules use distributed locks to operate the same call message in an orderly manner to ensure data consistency; the distributed lock is generated based on the unique transaction ID generated by the CAP initial IDP message and the ID combination of the CAP call signaling processing module that currently processes the IDP message. The distributed lock is stored in the REDIS cluster, and a timeout is set for the distributed lock; 2) When the CAP call signaling processing module receives any call signaling message, it determines whether it is a call initial IDP message, parses the call signaling message to obtain the calling and called numbers, IMSI, and call time, and generates a distributed lock for this call and stores it in the REDIS cluster; when it is determined that it is a message during a call, it first successfully obtains the distributed lock corresponding to this call from the REDIS cluster, then obtains the call information from the REDIS cluster, parses the call signaling message to obtain the current call status information, off-hook time, and call duration, updates the call information and saves it to the REDIS cluster, and releases the distributed lock at the same time; when it is determined that it is a call end message, it first successfully obtains the distributed lock corresponding to this call from the REDIS cluster, then obtains the call information from the REDIS cluster, parses the call signaling message, generates a call bill in combination with the call information in the REDIS cluster, and finally deletes the call information and distributed lock in the REDIS cluster.

2. According to claim 1, a stateless design method based on CAP call signaling is characterized in that: The CAP call signaling processing module processes CAP call signaling messages and obtains call-related information by connecting to Redis through the cluster. The Redis cluster is deployed in a three-master and three-standby cluster mode, saves call event information, and provides call association information for use by the CAP call signaling processing module.

3. The stateless design method based on CAP call signaling according to claim 1 is characterized in that The stateless process of the CAP call signaling processing module is as follows: the CAP call signaling processing module processes signaling messages including IDP, RRBE, AC, FCI, CONTINUE, CONNECT, ERB, ACR, ETC, ARI, PAC, DFC, PCR, RC, and TC_END, parses and extracts call status and call information in the message; deployed in REDIS cluster mode, saves the associated information of each call; multiple CAP call signaling processing modules are connected to the REDIS cluster, and call signaling messages are randomly sent to any CAP call signaling processing module. The CAP call signaling processing module obtains the call associated information from REDIS, and after processing the message, updates the call associated information in REDIS.