Implementation method of 5G signaling DPI session data persistence

By persisting session information to disk in the signaling DPI program and restoring it upon restart, the problem of session information loss after the signaling DPI program restarts is solved, ensuring the continuity and integrity of XDR call detail records.

CN119767343BActive Publication Date: 2025-12-19BEIJING HENGAN JIAXIN SAFETY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411891408.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-12-19
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

After the signaling DPI program restarted, the session information filling rate in the XDR call detail records of each interface dropped significantly, resulting in data loss and information discontinuity.

Method used

When the signaling DPI program exits, the session information is persisted to a disk file, and a cache unit is loaded from the disk file when the program starts. The consistency and integrity of the data are ensured through checksum and compression mechanisms.

Benefits of technology

It achieves continuous preservation of session information after the signaling DPI program restarts, ensuring that the session information fill rate of XDR call detail records does not decrease and the data loss rate is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119767343B_ABST
    Figure CN119767343B_ABST
Patent Text Reader

Abstract

The application provides a 5G signaling DPI session data persistence implementation method, comprising the following steps: when a signaling DPI program exits, initializing a persistent data context in a signaling processing module, maintaining a single cache unit in a persistent module through the persistent data context, and writing description information of persistent data in the cache unit; reading the persistent data in the signaling processing module and writing the persistent data in the single cache unit; when the data written in the single cache unit reaches a set threshold, writing the cache data in the cache unit to a disk; when the signaling DPI program starts, reading the description information of the persistent data from the signaling processing module, reading the cache data in the disk to the cache unit, checking whether the description information of the persistent data is consistent with the description information in the cache data, and returning the persistent context to the signaling processing module if the description information is consistent.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of communication, and particularly relates to a 5G signaling DPI session data persistence implementation method. BACKGROUND

[0002] At present, a signaling face DPI (Deep Packet Inspection) program needs to do a backfill of part of session information (such as SUPI, IMSIEV, MSISDN and the like) when outputting an XDR call form, and the session information needs to be saved in a memory so as to be quickly updated and searched.

[0003] In actual production, when the program or device is restarted, the session information is lost, resulting in a cliff-like drop of the session information filling rate of the XDR call form after restarting. SUMMARY

[0004] The application aims to solve the problem of a great drop of the session information backfill rate in each interface XDR call form after the signaling DPI program is restarted in the prior art, and provides a 5G signaling DPI session data persistence implementation method, which persists the session information of multiple interfaces in the signaling DPI program to a disk file and loads the session information from the disk file to the signaling DPI program.

[0005] In order to achieve the above purpose, the application adopts the following technical scheme.

[0006] The 5G signaling DPI session data persistence implementation method initializes a persistent data context in a signaling processing module when the signaling DPI program exits, maintains a single cache unit in a persistent module through the persistent data context, and writes description information of the persistent data in the cache unit.

[0007] The persistent data in the signaling processing module is read and written in the single cache unit.

[0008] When the data written in the single cache unit reaches a set threshold, the cache data in the cache unit is written in a disk.

[0009] When the signaling DPI program starts, the description information of the persistent data is read from the signaling processing module, the cache data in the disk is read to the cache unit, and it is checked whether the description information of the persistent data is consistent with the description information in the cache data, and if yes, the persistent context is returned to the signaling processing module.

[0010] Further, the description information of the persistent data includes a persistent data structure, length and check information written in the cache unit.

[0011] Further, the writing of the cache data in the cache unit into the disk includes:

[0012] The cache space of the single cache unit is set according to a session service model in the signaling processing module.

[0013] Further, the cache data in the cache unit is compressed and written into the disk file, and when reading, if the cache data in the disk is a compressed file, the compressed file is decompressed and read into the cache unit.

[0014] Further, the writing of the cache data in the cache unit into the disk includes: releasing the cache data in the cache unit, and resetting the cache space of the cache unit.

[0015] Further, the checking of whether the description information of the persistent data and the description information in the cache data are consistent includes: returning an error if the description information is inconsistent.

[0016] Further, the returning of the persistent context to the signaling processing module if consistent includes: reading the persistent data from the cache unit, checking the checking information of the persistent data, and discarding the current data if the checking is incorrect.

[0017] Further, the reading of the cache data in the disk into the cache unit, the checking of whether the description information of the persistent data and the description information in the cache data are consistent, and the returning of the persistent context to the signaling processing module if consistent include: reading the next disk file into the cache unit if the cache unit reading is completed, and returning empty if all files in the disk are read.

[0018] In order to achieve the above purpose, the application further provides an electronic device comprising a memory and a processor, wherein the memory stores a program running on the processor, and the processor executes the steps of the implementation method of 5G signaling DPI session data persistence as described above when running the program.

[0019] In order to achieve the above purpose, the application further provides a computer readable storage medium, which stores computer instructions, and the computer instructions execute the steps of the implementation method of 5G signaling DPI session data persistence as described above when running.

[0020] The application provides an implementation method of 5G signaling DPI session data persistence, which has the following beneficial effects:

[0021] The application realizes a general signaling DPI session information persistence module, which serializes and saves session information of different interfaces in the signaling DPI program in the disk when the signaling DPI program exits; and deserializes and loads the session information of each interface saved in the disk into the signaling DPI when the signaling DPI program starts, so as to ensure that the session information filling rate of the XDR bill will not decrease after the signaling DPI restarts.

[0022] Other features and advantages of the present application will be set forth in the following description, and in part will become apparent to those skilled in the art from the description, or can be learned by practice of the application. BRIEF DESCRIPTION OF DRAWINGS

[0023] The accompanying drawings are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application, and do not limit the application. In the drawings:

[0024] Figure 1 A flowchart of a 5G signaling DPI session data persistence implementation method according to the application;

[0025] Figure 2 A schematic diagram of a DPI product and an actual communication network deployment according to the application;

[0026] Figure 3 A schematic diagram of signaling DPI session information persistence to a disk file structure according to the application;

[0027] Figure 4 A schematic diagram of signaling DPI session information persistence to a disk file flow according to the application;

[0028] Figure 5 A schematic diagram of a disk file loading session information structure according to the application;

[0029] Figure 6 A schematic diagram of a disk file loading session information flow according to the application. DETAILED DESCRIPTION

[0030] The preferred embodiments of the application are described below in conjunction with the accompanying drawings, and it should be understood that the preferred embodiments described herein are only used to explain and illustrate the application, and do not limit the application.

[0031] Embodiment 1

[0032] Figure 1 A flowchart of a 5G signaling DPI session data persistence implementation method according to the application, which will be described in detail below Figure 1 , the 5G signaling DPI session data persistence implementation method according to the application.

[0033] DPI: Deep Packet Inspection is a network monitoring technology that can deeply analyze network traffic data packets, identify protocols, applications and content.

[0034] Signaling DPI: DPI device used to analyze control plane signaling traffic in the mobile network core network.

[0035] S1mme interface: interface between 4G mobile network eNB and MME.

[0036] S11 interface: interface between MME and SGW in 4G core network.

[0037] S58 interface: interface between SGW and PGW in 4G core network.

[0038] 4G-GUTI (Globally Unique Temporary Identifier) is a temporary identifier used to identify user equipment (UE) in LTE network. It is mainly used to enhance user privacy and security, while reducing the risk of user identity leakage.

[0039] Three code information: IMSI (International Mobile Subscriber Identity), MSISDN, IMEI.

[0040] N1N2 interface: interface between 5G mobile network gNB and AMF.

[0041] N4 interface: interface between SMF and UPF in 5G core network.

[0042] N7 interface: interface between SMF and PCF in 5G core network.

[0043] N11 interface: interface between AMF and SMF in 5G core network.

[0044] 5G-GUTI (Globally Unique Temporary Identifier) is used to identify user equipment (UE), and the design of 5G GUTI is similar to that of LTE.

[0045] In step 101, initialize the persistent context and pass in the description information of the persistent data. A buffer cache is maintained in the persistent context, and the description information Description of the persistent data is written at the head of the buffer cache.

[0046] In this embodiment, the persistent context: buffer, buffer_size (the size of the buffer), buffer_length (the length of the content written in the buffer). The process of initializing the context includes passing in a parameter length, default 1GB; applying for a 1GB buffer, assigning buffer_size to 1GB, and assigning buffer_length to 0.

[0047] Optionally, the description information in the buffer cache includes the structure, length, and verification information of the persistent data.

[0048] In this embodiment, the data accumulated during the program running process of 4G or 5G multiple service sessions is stored in the signaling processing module, and the data to be persisted is continuously transmitted to the persistent module, and the description information is a specific service description, such as "N1N2 interface" and "N4 interface".

[0049] In this embodiment, as shown in Figure 2 , the DPI product is deployed in parallel with the actual communication network, and accesses the communication traffic through splitting, converging, and shunting devices. The message information in the communication traffic is deeply analyzed, and a communication detail list is output.

[0050] In step 102, the length len, verification information magic, and data data of the data are written into the buffer cache of the persistent context.

[0051] In step 103, when the size of the content in the buffer cache of the persistent context reaches the set write-to-disk threshold, it is written into the disk file.

[0052] Optionally, the cache space of each cache unit is set according to the 4G or 5G service model. For example, the buffer cache space is set to 1G when applying, multiple cache units are set, and the size of the content in the buffer cache of the persistent context has reached the set write-to-disk threshold service related setting, then it is written to the disk file.

[0053] In this embodiment, before writing to the disk, the data in the cache unit can be compressed and written to the disk file, reducing the disk load.

[0054] Optionally, the persistent context is released, the currently maintained buffer cache is written to the disk file, and the buffer cache is reset.

[0055] In step 104, the program initializes the persistent module when starting, transmits the description information Description of the persistent data from the signaling processing module, reads the file from the disk to the buffer cache, checks whether the Description transmitted and the Description in the file are consistent, if not consistent, it represents that the data is not matched or the data is damaged, returns an error; if consistent, returns the persistent context.

[0056] In this embodiment, the data in the disk is read to the buffer cache when the program starts.

[0057] In step 105, the data length len, the check information magic and the data data are continuously read from the buffer cache, the magic information is checked, if the magic check is wrong, an error is returned.

[0058] Optionally, Magic is a check information of fixed length and fixed content, when the data is read from the disk, the Magic is checked, which is used to judge whether the data is damaged.

[0059] In step 106, if the buffer cache reading is completed, the next file is read to the buffer cache, if all the files are read, an empty is returned.

[0060] Optionally, if the file in the disk is compressed, the file is decompressed before being read to the buffer cache.

[0061] The application provides a 5G signaling DPI session data persistence implementation method, a general signaling DPI session information persistence module is realized, when the signaling DPI program exits, the session information of different interfaces in the signaling DPI program is serialized and saved in the disk; when the signaling DPI program starts, the session information of each interface saved in the disk is deserialized and loaded into the signaling DPI, so that the session information filling rate of the XDR bill is not reduced after the signaling DPI restarts.

[0062] The application further provides an electronic device including a memory and a processor, the memory stores a program running on the processor, and the processor executes the steps of the 5G signaling DPI session data persistence implementation when running the program.

[0063] The application further provides a computer readable storage medium, which stores computer instructions, and the computer instructions execute the 5G signaling DPI session data persistence implementation when running, and the 5G signaling DPI session data persistence implementation is described in the foregoing part and will not be described again.

[0064] Those skilled in the art can understand that the above only describes the preferred embodiments of the present application and is not used to limit the present application, and although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments, or make equivalent replacements to some technical features. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for implementing 5G signaling DPI session data persistence, characterized in that, The method comprises the following steps: When the signaling DPI program exits, initialize the persistent data context in the signaling processing module, maintain a single cache unit in the persistent module through the persistent data context, and write the description information of the persistent data in the cache unit; Read the persistent data in the signaling processing module and write it in the single cache unit; When the data written in the single cache unit reaches a set threshold, write the cache data in the cache unit to the disk; When the signaling DPI program starts, read the description information of the persistent data from the signaling processing module, read the cache data in the disk to the cache unit, check whether the description information of the persistent data and the description information in the cache data are consistent, and if they are consistent, return the persistent context to the signaling processing module. 2.The method of claim 1, wherein, The description information of the persistent data includes the persistent data structure, length and check information written in the cache unit. 3.The method of claim 1, wherein, The step of writing the cache data in the cache unit to the disk includes: According to the session service model in the signaling processing module, set the cache space of the single cache unit.

4. The method of claim 1 or 3, wherein, Further, the cache data in the cache unit is compressed and written to the disk file, and when reading, if the cache data in the disk is a compressed file, the compressed file is decompressed and read to the cache unit.

5. The method of claim 1, wherein, The step of writing the cache data in the cache unit to the disk includes releasing the cache data in the cache unit and resetting the cache space of the cache unit.

6. The method of claim 1 or 5, wherein, The step of checking whether the description information of the persistent data and the description information in the cache data are consistent includes returning an error if the description information is inconsistent.

7. The method of claim 1, wherein the method further comprises: The step of returning the persistent context to the signaling processing module if they are consistent includes reading the persistent data from the cache unit, checking the check information of the persistent data, and discarding the current data if the check is incorrect.

8. The method of claim 1, wherein the method further comprises: The step of reading the cache data in the disk to the cache unit, checking whether the description information of the persistent data and the description information in the cache data are consistent, and returning the persistent context to the signaling processing module if they are consistent includes reading the next disk file to the cache unit if the cache unit reading is completed, and returning empty if all files in the disk are read.

9. An electronic device, comprising: The computer program product comprises a memory and a processor, and the memory stores a program running on the processor, and the processor executes the implementation method of the 5G signaling DPI session data persistence according to any one of claims 1-8 when running the program.

10. A computer readable storage medium having stored thereon computer instructions, wherein, The computer program product comprises a memory and a processor, and the memory stores a program running on the processor, and the processor executes the implementation method of the 5G signaling DPI session data persistence according to any one of claims 1-8 when running the program.

Citation Information

Patent Citations

  • DPI association rule backfill processing method, device and equipment and medium

    CN109992427A

  • Data management method and system, associated subsystem and computer readable medium

    WO2021135950A1