A 5G network XDR multi-dimensional data collection and management method based on libpcap
Through the 5G network XDR multi-dimensional data collection and management method based on libpcap, the problem of insufficient processing capabilities of high-speed and large-scale multi-dimensional data streams in the 5G network is solved, accurate capture and efficient processing of data are achieved, and data security and management are improved. efficiency, optimizing resource utilization.
Patent Information
- Application Number
- CN202410943492.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-15
AI Technical Summary
Existing technologies are difficult to effectively process high-speed and large-scale multi-dimensional data flows in 5G networks. They lack optimization specific to 5G networks, resulting in insufficient data collection and governance capabilities and inability to meet the needs of data security and efficient processing.
Adopt the 5G network XDR multi-dimensional data collection and management method based on libpcap, identify key nodes by initializing the 5G network environment, optimize the data processing process, integrate and optimize the libpcap tool, use machine learning and Apache Kafka/Flink for data analysis and processing, and introduce data Bloodline tracking technology ensures data security and compliance.
It achieves accurate capture and efficient processing of high-speed data flows in the 5G network environment, provides multi-dimensional data analysis capabilities, improves data security and management efficiency, optimizes resource utilization, and reduces operating costs.
Smart Images

Figure CN118488477B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a 5G network XDR multi-dimensional data collection and management method based on libpcap, belonging to the field of digital information technology, in particular to the field of effective monitoring and management of 5G networks. Background Art
[0002] In 5G networks, XDR (Extended Data Record) is a multi-dimensional data that contains information about network traffic, user behavior, device status, etc. Through the collection method based on the packet capture library libpcap (Library for Packet Capture), XDR data in 5G networks can be captured in real time, and managed and analyzed to achieve the purpose of network monitoring, optimization and security protection.
[0003] The data acquisition technology mentioned above is based on libpcap. libpcap is a library for network packet capture and analysis. It is a widely used open source library that provides a low-level interface that allows applications to directly access network packets for network traffic capture and analysis. In other words, libpcap provides an effective way to capture packets on the network layer and can run on a variety of operating systems, including Unix-like systems and Windows. It supports the capture of multiple types of network data and allows users to filter and process data as needed. However, 5G networks introduce the characteristics of high-speed transmission and low-latency communication, which puts forward new requirements for the design and implementation of data acquisition technology.
[0004] In current technology, data collection work in 5G environments is usually performed using traditional network monitoring tools (such as Wireshark, tcpdump, etc.). These tools usually rely on the libpcap library to capture network traffic. In terms of implementation, these solutions mainly focus on data capture and basic analysis, but usually lack optimization for the unique needs of 5G networks, such as the ability to handle high-speed data streams and large-scale multi-dimensional data. In addition, these existing solutions usually do not involve data governance considerations, such as data lineage tracking and fine-grained security controls.
[0005] Therefore, it is necessary to provide a new data acquisition method based on libpcap, which is specially optimized for the characteristics of 5G networks, effectively processing high-speed and large-scale data streams, better meeting the needs of data security and efficient processing in 5G network environments, and solving the shortcomings of existing technical solutions in processing capabilities and data governance. Summary of the invention
[0006] The present invention provides a 5G network XDR multi-dimensional data collection and management method based on libpcap, which optimizes and improves the defects of the prior art in processing 5G network data collection and analysis, especially in terms of high-speed data processing, multi-dimensional data analysis, data management and resource utilization efficiency, and meets the more complex and stringent data processing requirements in the 5G network environment.
[0007] The technical solution adopted by the present invention to solve its technical problem is:
[0008] A 5G network XDR multi-dimensional data collection and management method based on libpcap specifically includes the following steps:
[0009] Step S1: Initialize 5G network data environment identification, identify key nodes in the 5G network, and build a network topology map. The network topology map assists machine learning to classify network traffic and identify key data flows;
[0010] Step S2: Optimizing the data processing flow according to the specific protocol characteristics of the 5G network to preliminarily obtain a cleaned data stream, wherein the optimization includes an improved data encoding and decoding mechanism, a new signaling control protocol, and enhanced security features;
[0011] Step S3: Based on the high-speed characteristics of the 5G network, the libpcap tool is integrated and optimized;
[0012] Step S4: Using the libpcap tool integrated and optimized in step S3, the data stream in step S2 is further processed. Specifically, the key fields of the 5G network data are extracted, and the key fields are converted into multi-dimensional feature vectors, which are input into the machine learning algorithm, that is, the optimal segmentation hyperplane is found in the high-dimensional space to maximize the interval between different categories of data and achieve accurate classification;
[0013] Step S5: Build a data processing module based on Apache Kafka, and use Apache Flink's time window technology to process time-sensitive data, and process and analyze key fields of 5G network data in real time;
[0014] Step S6: Build a user profile based on the u8XdrId and vs8Imsi fields in the 5G network data;
[0015] Step S7: Use data lineage tracing technology to track the source and flow of data during the data processing process. If data missing, data error, or data duplication is found during the data processing process, return to step S4 and repeat steps S4 to S6.
[0016] Step S8: Record and analyze the flow and conversion process of data in each processing stage from step S2 to step S7;
[0017] Step S9: Audit and trace back the data in step S1 to step S8 to ensure the integrity, security and compliance of the data;
[0018] As a further preferred embodiment of the present invention, in step S1, the specific steps of initializing 5G network data environment identification are:
[0019] Step S11, using the network detection tool Nmap to send a specific type of network request, deeply scan and analyze the 5G network and the captured data, and identify key nodes in the 5G network, wherein the key nodes include base stations, core network devices, and edge computing nodes;
[0020] Step S12, constructing a network topology graph using a graph theory algorithm, specifically using a shortest path algorithm, expressed as G=(V,E), where G represents the network graph, V represents the set of device nodes in the network, and E represents the set of edges connecting the devices;
[0021] Step S13, using machine learning to classify network traffic and identify key data flows, the machine learning method is a support vector machine algorithm, and its classification function formula is expressed as , x represents the data feature vector, represents the weight vector, and b represents the bias term;
[0022] As a further preferred embodiment of the present invention, in step S2, a unique identifier is assigned to each piece of 5G network data, and the u8XdrId and vs8Imsi fields are extracted, wherein u8XdrId is used as an identifier of the extended data record for tracking user data; vs8Imsi is used as an international mobile user identification code for identifying the user identity;
[0023] Desensitize the data to remove sensitive information, and store the desensitized data in a distributed storage system, including HDFS or HBase;
[0024] As a further preferred embodiment of the present invention, in step S2, the improved data encoding and decoding mechanism adopts a low-density parity check encoding and decoding algorithm, and the decoding algorithm formula is:
[0025] ,
[0026] In the formula, represents the likelihood ratio calculation, which is used to evaluate the correctness of the data bits; x represents the codeword or data bit to be evaluated, i represents the index of a specific bit or node in the codeword;
[0027] A new signaling control protocol is used for the NR-RRC protocol. The processing process is as follows:
[0028] Step S221, parsing the RRCSetup message in the RRC connection establishment process, extracting the capability information and network configuration of the user equipment, processing and parsing the RRC reconfiguration message, the RRC reconfiguration message including the modification of the radio bearer, the allocation of radio resources and the new indication to the user equipment;
[0029] Step S222, developing a state machine to manage the transition of the user equipment between different RRC states, wherein the transition includes monitoring network commands, UE responses, and processing state transition conditions;
[0030] Step S223, parsing the RRC reconfiguration message of downlink resource allocation;
[0031] Step S224, processing uplink resource allocation logic, including spectrum allocation, power control and time alignment;
[0032] Step S225, parsing the measurement report of the user equipment for network quality assessment and neighboring cell selection, thereby configuring measurement parameters of the user equipment based on network strategy and user equipment capabilities;
[0033] In view of the enhanced security features of 5G networks, the AES encryption algorithm and the key exchange protocol based on the ECDH algorithm are used. The formula of the ECDH algorithm is:
[0034] In the formula, K represents the shared key. Represents their respective private keys, Indicates the other party’s public key;
[0035] As a further preferred embodiment of the present invention, in step S3, the measures for integrating and optimizing the libpcap tool include adjusting the internal buffer for the high-speed data transmission characteristics of the 5G network, and the formula used is:
[0036]
[0037] In the formula, packet_size represents the size of a single data packet, packet_rate represents the arrival rate of data packets per second, and time_window represents the time window for data capture;
[0038] For data flow filtering and preprocessing, write BPF rules to capture key data flows;
[0039] In view of the high-speed characteristics of 5G networks, multi-threading technology is used to process data packets in parallel. The thread allocation formula is threads=CPU_cores−1;
[0040] Convert the data output by the libpcap tool into a unified format. Specifically, convert the raw data into the universal PCAP format by applying the function convert_to_pcap(raw_data);
[0041] As a further preferred embodiment of the present invention, in step S4, the step of further processing the data stream in step S2 is:
[0042] Step S41, parse the 5G network data from the libpcap package and extract key fields, wherein the key fields include u16Length indicating the data record length, u16LocalProvince indicating the local province code, u16LocalCity indicating the local city code, u16OwnerProvince indicating the province code to which the account belongs, u16OwnerCity indicating the city code to which the account belongs, u8RoamingType indicating the roaming type, u8Interface indicating the network interface type, u16ProbeID indicating the probe or device ID, u8XdrId indicating the extended data record identifier, u8xDRType indicating the extended data record type, and u8RAT indicating the radio access technology type;
[0043] Step S42, using the u16Length field to verify data integrity, remove damaged or incomplete records, and then continue to extract key fields in the 5G network data, and convert the original data into a format to be processed and analyzed;
[0044] Step S43, for the time series data in the original data, use the time series analysis technology moving average model to identify time-dependent patterns and trends, and for the text data in the original data, use the natural language processing technology word embedding to extract key features and semantic information;
[0045] Step S44, based on the data preprocessed in step S43, calculate the covariance matrix of the feature matrix to determine the correlation between the features, perform eigenvalue decomposition according to the covariance matrix, extract the eigenvalues and corresponding eigenvectors, select the main components in the data, and construct the feature matrix; the main components in the data are the eigenvalues that can explain the main percentage of the total variance;
[0046] Step S45, converting the feature vector into a few principal components through a principal component analysis algorithm;
[0047] Step S46, store the processed data in the data lake, and use the u16Length and u8XdrId fields to create an index;
[0048] As a further preferred embodiment of the present invention, in step S5, a streaming engine system based on Apache Kafka and Apache Flink is constructed to design and optimize the key fields of 5G network data. Specifically, the processing methods and logics for different fields are as follows:
[0049] For the u64CellID field, use the u64CellID field to analyze the user's movement trajectory and location information in the network;
[0050] For the u16Length field, use the u16Length field to ensure that each data packet is received and processed completely;
[0051] For the u16LocalProvince / City field, use the u16LocalProvince and u16LocalCity fields to perform geographic location analysis to understand user distribution;
[0052] By analyzing the u8RoamingType field, we can understand the user's roaming behavior, especially the cross-regional or international roaming situation.
[0053] By analyzing the u8Interface field, the network interface is optimized to improve the processing capability and efficiency of the network.
[0054] For the u16ProbeID field, monitor network performance and identify potential problem points by analyzing the data collected by the u16ProbeID field;
[0055] For the u8XdrId field, track and analyze the data records of a single user through the u8XdrId field;
[0056] Regarding the vs8Imsi / Msisdn field, the vs8Imsi and vs8Msisdn fields are key to the behavior analysis and identity recognition of individual users, and are used to provide personalized network services;
[0057] For the u8UpfIpAdd / GnbIpAdd field, by analyzing the IP addresses of UPF and gNB, network node and path selection are optimized to improve the efficiency and reliability of data transmission;
[0058] For the u8QosFlow15QI field, use the u8QosFlow15QI field to perform QoS analysis to ensure that network services meet quality standards and user expectations;
[0059] As a further preferred embodiment of the present invention, in step S6, the specific steps of constructing the user portrait are:
[0060] Step S61, cleaning and standardizing the u8XdrId field and vs8Imsi field extracted from the 5G network data, removing invalid or incomplete records, and standardizing the format to ensure the accuracy and consistency of the data;
[0061] Step S62, analyzing the data records associated with u8XdrId to understand the user's network usage pattern, traffic consumption, application type and usage duration, using vs8Imsi to identify the user, and combining geographic location data, roaming records and network connection logs to analyze the user's behavior pattern;
[0062] Step S63, after collecting and analyzing relevant data, construct a user profile based on user characteristics, where the user characteristics include the user's basic information, network usage habits and behavior patterns;
[0063] Step S64, providing personalized services based on the user portrait, designing customized marketing strategies and service proposals; at the same time, regularly updating the user portrait, combining the latest network data and user feedback, and continuously refining and optimizing the user portrait;
[0064] As a further preferred embodiment of the present invention, in step S7, the specific steps of data lineage tracing are:
[0065] Step S71, for each data source, a unique identifier is generated using a hash function, which involves converting the name, address or other unique information of the data source into a fixed-length hash value as its unique identifier. The basic form of the hash function is H(x)=y, where x is the input data source information and y is the generated hash value;
[0066] Step S72, recording detailed information of each operation step of the data in the system, including data reading, conversion, storage and output;
[0067] Step S73, using geographic information and user identification fields for analysis, that is, using the u16LocalProvince / City field to analyze the user's geographic distribution, using u8XdrId as the unique identifier of the data record, tracking and analyzing user-level data, providing data support for personalized services, and using the vs8Imsi / Msisdn field to analyze individual user behavior and identify identities, providing users with more personalized services and experiences;
[0068] Step S74, using a graph algorithm to construct and update a data transformation graph, represented as transform_graph(data, operation), where data is a data set and operation is a transformation operation;
[0069] Step S75, using a topological sorting algorithm to identify the dependency order in the data processing flow, the topological sorting algorithm is represented as topological_sort(dependency_graph), where dependency_graph is a dependency graph between data;
[0070] As a further preferred embodiment of the present invention, in step S8, the u16ProbeID field is used to track the source of the data, the u64CellID field is used to track the location change of the user in the 5G network, and the u8QosFlow15QI field is used to monitor the quality and service level of the 5G network traffic; the content of transferring data from one link to another generates a data flow log, including the timestamp, size, and processing time of the data;
[0071] As a further preferred embodiment of the present invention, in step S9, each access, modification and transmission event of the data is recorded, specifically including tracking all operations on the data, including creation, reading, updating and deletion operations, and the operation record includes the timestamp of the operation, the identity of the operator, the specific content of the operation and the context information of the operation;
[0072] Analyze the tracked data operations to identify abnormal behaviors, potential security threats, and compliance;
[0073] At the same time, audit logs and security alerts are generated according to predefined rules and thresholds; when data is improperly modified or deleted, the system restores the data to its original state based on the audit logs.
[0074] Through the above technical solution, compared with the prior art, the present invention has the following beneficial effects:
[0075] 1. The 5G network XDR multi-dimensional data collection and management method based on libpcap provided by the present invention optimizes the collection algorithm and enhances the processing capability for 5G high-speed data streams, which enables the accuracy and efficiency of data capture to be maintained at high data transmission rates, and solves the delay and packet loss problems of the prior art when processing high-speed data streams;
[0076] 2. The 5G network XDR multi-dimensional data collection and management method based on libpcap provided by the present invention can process and analyze multi-dimensional data in the 5G network, including control plane and user plane data, data of different protocol layers, etc., by integrating the multi-dimensional data collection function, providing a more comprehensive network data perspective than the prior art, making up for the deficiency that the prior art can only process a single data dimension;
[0077] 3. The 5G network XDR multi-dimensional data collection and management method based on libpcap provided by the present invention introduces advanced data management and security control mechanisms (data lineage tracking method) for the security and compliance of data in 5G networks, thereby improving data security and management efficiency;
[0078] 4. The 5G network XDR multi-dimensional data collection and management method based on libpcap provided by the present invention optimizes the data processing process and algorithm according to the characteristics of the 5G network, and improves the resource utilization efficiency, which is more significant when processing large amounts of data. This not only improves the system performance, but also helps to reduce operating costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0080] Figure 1 It is a flow chart of the 5G network XDR multi-dimensional data collection and management method based on libpcap provided by the present invention. DETAILED DESCRIPTION
[0081] The present invention will now be described in further detail with reference to the accompanying drawings.
[0082] As described in the background technology, traditional network monitoring tools are often unable to efficiently process high-speed data streams in 5G networks. This is because the data transmission rate of 5G networks is much higher than that of traditional networks, which makes it easy for data collection tools to experience delays or packet loss when capturing and analyzing data. In terms of data processing, existing technologies usually only focus on capturing single-dimensional network data and lack the ability to comprehensively process and analyze multi-dimensional data (such as control plane and user plane data, and various protocol layer data). Furthermore, since the security and compliance of network data are crucial to operators and users in the 5G network environment, traditional solutions usually lack governance mechanisms for collected data, such as data lineage tracking and fine-grained permission control. A large amount of computing resources are used to process large-scale data, resulting in low resource utilization.
[0083] In response to the above-mentioned problems of the prior art, the present application optimizes and improves the defects when processing 5G network data collection and analysis, especially in high-speed data processing, multi-dimensional data analysis, data governance and resource utilization efficiency, meeting the more complex and stringent data processing requirements in the 5G network environment.
[0084] This application provides a 5G network XDR multi-dimensional data collection and management method based on libpcap, such as Figure 1 As shown in the figure, it contains nine parts. These nine parts target the characteristics of 5G networks, use libpcap for data collection, and provide data governance methods with advanced functions such as data lineage tracking, so as to more effectively process high-speed and large-scale data streams and meet the needs of data security and efficient processing in the 5G network environment.
[0085] Next, we will combine these nine parts Figure 1 Let's explain them one by one in detail. First, step S1 initializes the 5G network environment identification, comprehensively utilizes a variety of technical means, deeply identifies the 5G network data environment, builds the network topology, identifies key nodes, and classifies network traffic and identifies key data flows, providing a basis for further network management and security analysis. In this step, building a network topology map can provide information on the overall structure and connection relationships of the network. This helps to understand the layout of the network and the relationship between each node, and provides background knowledge about the basic architecture of the network for the machine learning model. By understanding the topological structure, the possible flow paths and potential key nodes of the traffic can be better determined, thereby guiding the machine learning model to focus on specific areas or links during the classification and identification process. Specifically, the following steps are included:
[0086] Step S11, using the network detection tool Nmap (Network Mapper) to send a specific type of network request, such as TCP (SYN) packets, to deeply scan and analyze the 5G network and the captured data to obtain device information and network topology in the network, so as to identify key nodes in the 5G network, including base stations, core network devices, edge computing nodes, etc.; the identification operation can be implemented by the function send_packet (TCP (SYN), target_IP, target_port), where send_packet represents the data packet sent, target_IP represents the IP address of the target device, and target_port represents the port number of the target device;
[0087] Step S12, constructing a network topology graph using a graph theory algorithm, specifically using a shortest path algorithm (Dijkstra algorithm), expressed as G=(V,E), where G represents a network graph, V represents a set of device nodes in the network, and E represents a set of edges connecting the devices;
[0088] Step S13, using machine learning to classify network traffic and identify key data flows, the machine learning method is a support vector machine algorithm, and its classification function formula is expressed as , x represents the data feature vector, represents the weight vector and b represents the bias term.
[0089] Step S2, optimizes the data processing flow according to the specific protocol characteristics of the 5G network, mainly involving improved data encoding and decoding mechanisms, new signaling control protocols, and enhanced security features.
[0090] Improved data encoding and decoding mechanisms can improve the efficiency and accuracy of data processing, making data more reliable during transmission and storage, which lays a good foundation for the entire data processing process. In view of the high-speed data transmission characteristics of 5G, a more efficient low-density parity check (LDPC) encoding and decoding algorithm is adopted to reduce processing delays and improve throughput. The decoding algorithm formula is as follows:
[0091] ,
[0092] In the formula, represents the likelihood ratio calculation, which is used to evaluate the correctness of the data bits. x Indicates the codeword (or data bit) to be evaluated, usually used to represent the signal value currently being processed. In the decoding process, i is the signal obtained from the receiving end, which contains the noise that may be introduced during the transmission process. i Indicates the index of a specific bit or node in a codeword. In LDPC decoding, a codeword consists of multiple bits, each of which has an index. i , used to uniquely identify each data bit in the codeword.
[0093] For the processing of 5G network raw data, first assign a unique identifier to each piece of data, such as the u8XdrId and vs8Imsi fields, to ensure data traceability. Then desensitize the data to remove sensitive information, such as imsi, imei, mac address, etc. Finally, store the data in a distributed storage system such as HDFS or HBase for subsequent analysis and mining.
[0094] For the new signaling control protocol, it can better coordinate and manage the flow of data, ensure that data is transmitted according to specific rules and paths, and cooperate with the optimized data encoding and decoding mechanism to jointly improve the overall efficiency of data processing. In this step, a special processing logic is developed to parse and process NR-RRC (New Radio-Radio Resource Control, a key protocol layer in the 5G communication system, responsible for managing and controlling radio resources to ensure effective communication between the network and terminal devices.) These protocol messages can effectively parse and process 5G NR-RRC protocol messages to ensure efficient management of network resources and optimize the performance of wireless connections while maintaining network stability and security. The implementation of these protocols is crucial to achieving high speed, low latency and high reliability of 5G networks.
[0095] The following is a detailed description of some key processing logic and protocols developed for the NR-RRC protocol:
[0096] Step S221, parsing the RRCSetup (network response to the RRC request initiated by the user equipment) message in the RRC connection establishment process, extracting the capability information and network configuration of the user equipment (UE), processing and parsing the RRC reconfiguration message, the RRC reconfiguration message including the modification of the radio bearer, the allocation of radio resources and the new indication to the user equipment;
[0097] Step S222, develop a state machine to manage the transition of the user equipment between different RRC states (such as the radio resource control idle state RRC_IDLE, the radio resource control connected state RRC_CONNECTED), thereby managing the UE wireless connection. The transition includes monitoring network commands, UE responses, and processing state transition conditions;
[0098] Step S223, parsing the RRC reconfiguration message of downlink (DL) resource allocation, such as allocation of DL resource blocks;
[0099] Step S224, processing uplink (UL) resource allocation logic, including spectrum allocation, power control and time alignment;
[0100] Step S225: parsing the measurement report of the user equipment for network quality assessment and neighboring cell selection, thereby configuring measurement parameters of the user equipment based on network policy and user equipment capabilities.
[0101] In view of the enhanced security features of 5G, the AES (Advanced Encryption Standard) encryption algorithm and the key exchange protocol based on the ECDH (Elliptic Curve Diffie-Hellman) algorithm are used. The formula of the ECDH algorithm is
[0102] ,
[0103] In the formula, K represents the shared key. Represents their respective private keys, Indicates the other party's public key.
[0104] Through the above measures, this application ensures the effective identification and processing of 5G network data environment, providing a solid technical foundation for network management and optimization.
[0105] Step S3, based on the high-speed characteristics of the 5G network, the libpcap tool is integrated and optimized; as a widely used open source data packet capture library, the core function of libpcap is to capture the raw data of network traffic for analysis. Integrating and optimizing the libpcap tool can better combine the specific data fields of the 5G network (such as u16Length, u16LocalProvince, u16LocalCity), ensuring efficient capture and analysis of 5G network data, and making libpcap better adapted to processing 5G network traffic with specific data fields.
[0106] Integration and optimization measures include internal buffer adjustments for the high-speed data transmission characteristics of 5G networks, using the formula:
[0107] ,
[0108] In the formula, packet_size represents the size of a single data packet, packet_rate represents the arrival rate of data packets per second, and time_window represents the time window for data capture;
[0109] For data flow filtering and preprocessing, capture key data flows by writing BPF (Berkeley Packet Filter) rules. For example, use the rule tcp port=80 and host=192.168.1.1 to focus on capturing TCP traffic of a specific IP and port.
[0110] In view of the high-speed characteristics of 5G networks, multi-threading technology is used to process data packets in parallel. The thread allocation formula is threads=CPU_cores−1, where CPU_cores is the number of CPU cores, to make full use of CPU resources.
[0111] Convert the data output by the libpcap tool into a unified format, convert the raw captured network data into a unified format, and improve the usability and readability of the data. Specifically, by applying the function convert_to_pcap(raw_data), the raw data is converted into a universal PCAP format.
[0112] The above steps are one of the core advantages of this application. It optimizes and improves the collection method based on the high-speed transmission characteristics of the 5G network to improve the accuracy and processing speed of data capture, and solves the shortcomings of the existing technology in processing 5G high-speed data streams.
[0113] Step S4 aims to deeply analyze the XDR (Extended Data Record) data in the 5G network and accurately identify its multi-dimensional characteristics, such as packet size, type, and transmission frequency. First, the extracted key field features, such as u16Length, u16LocalProvince, u16LocalCity, u8RAT, and vs8Imsi, are abstracted and converted into multi-dimensional feature vectors, which are input into machine learning algorithms such as support vector machines (SVMs), that is, to find the optimal segmentation hyperplane in high-dimensional space to maximize the interval between different categories of data, thereby achieving accurate classification.
[0114] Then, the specific process of further processing the data stream in step S2 in this step is as follows:
[0115] Step S41, parse the 5G network data from the libpcap package and extract key fields, wherein the key fields include u16Length indicating the data record length, u16LocalProvince indicating the local province code, u16LocalCity indicating the local city code, u16OwnerProvince indicating the province code to which the account belongs, u16OwnerCity indicating the city code to which the account belongs, u8RoamingType indicating the roaming type, u8Interface indicating the network interface type, u16ProbeID indicating the probe or device ID, u8XdrId indicating the extended data record identifier, u8xDRType indicating the extended data record type, and u8RAT indicating the radio access technology type;
[0116] Step S42, clean and standardize the collected data, use the u16Length field to verify the data integrity, and remove damaged or incomplete records; then continue to extract key fields in the 5G network data, such as vs8Imsi (user identity) and vs8Msisdn (mobile phone number), to provide basic data for subsequent analysis; finally, convert the raw data into a format suitable for processing and analysis. For example, convert u8UpfIpAdd (UPFIP address) and u8GnbIpAdd (base station node BIP address) into standard IP format. And record the detailed information of each data conversion, including operation type, time and operator.
[0117] Step S43, for the time series data in the original data (such as the timestamp data based on u64ProcessStartTime and u64ProcessEndTime), use the time series analysis technology moving average model (MA) to identify time-dependent patterns and trends, and for the text data in the original data (such as vs8Imsi and vs8Msisdn), use the natural language processing technology word embedding to extract key features and semantic information;
[0118] Step S44, based on the data preprocessed in step S43, calculate the covariance matrix of the feature matrix to determine the correlation between the features, perform eigenvalue decomposition according to the covariance matrix, extract the eigenvalues and corresponding eigenvectors, select the main components in the data, and construct the feature matrix; the main components in the data are the eigenvalues that can explain the main percentage of the total variance;
[0119] Step S45, converting the feature vector into a few principal components through a principal component analysis (PCA) algorithm to reduce the data dimension while retaining the main information;
[0120] Step S46, store the processed data in the data lake and create an index using the u16Length and u8XdrId fields.
[0121] In step S5, the present application builds a streaming engine system based on Apache Kafka and Apache Flink, and combines key field information in the 5G network, such as u16Length, u16LocalProvince, u16LocalCity, u8RoamingType, u8Interface, u16ProbeID, u8XdrId, vs8Imsi, vs8Msisdn, u8UpfIpAdd, u8GnbIpAdd, u64CellID, and u8QosFlow15QI, to achieve efficient and accurate real-time data processing and network analysis of the 5G network.
[0122] Specifically, we first build a data processing module based on Apache Kafka, use Apache Kafka for high-speed data ingestion and buffering, and ensure real-time processing of large amounts of data streams; adopt the Protocol Buffers lightweight serialization format to reduce data size and improve processing efficiency; implement an adaptive partitioning strategy to dynamically adjust the partition size based on data traffic and key fields to meet different data processing requirements; introduce a custom data compression algorithm to optimize data storage and transmission and reduce network bandwidth requirements.
[0123] Leverage Apache Flink’s time window technology to process time-sensitive data, such as analysis based on u64CellID and u8QosFlow15QI. Perform in-depth analysis of the u8Interface and u8RoamingType fields to understand user behavior and network traffic patterns. Perform geographic location analysis based on u16LocalProvince and u16LocalCity to identify network usage and trends in different regions. Leverage vs8Imsi and vs8Msisdn to perform individual user analysis and provide personalized network services and optimization suggestions.
[0124] By analyzing u8Interface data, the network interface configuration is optimized and network performance is improved. Combined with multiple fields such as u8XdrId, vs8Imsi, and u64CellID, machine learning algorithms are used to detect abnormal behaviors and network problems.
[0125] In other words, the streaming engine processing details are carefully designed and optimized for the key fields of 5G network data. The following are the processing methods and logic for different fields:
[0126] 1. For u64CellID (cell ID) analysis, the u64CellID field is used to analyze the user's movement trajectory and location information in the network, which is crucial for understanding the user's geographical distribution and network usage pattern. Combined with timestamp information, the user's mobility pattern can be tracked to optimize network coverage and service quality.
[0127] 2. For u16Length (packet length) processing, the u16Length field is used to identify the total length of the packet, which is crucial for packet parsing and integrity verification. During data stream processing, this field is used to ensure that each packet is received and processed completely to avoid data loss or errors.
[0128] 3. For u16LocalProvince / City (geographic location information) analysis, use the u16LocalProvince and u16LocalCity fields to perform geographic location analysis to understand user distribution; this information helps with network planning and resource allocation to ensure that users in different regions receive balanced network services.
[0129] 4. Analyze u8RoamingType (roaming type) to understand user roaming behavior, especially cross-regional or international roaming. This helps optimize roaming service strategies and network configurations, and improve the service quality for roaming users.
[0130] 5. For u8Interface (network interface) analysis, the u8Interface field reflects the type of network interface the user is connected to, which is crucial for network performance and load analysis. By analyzing this information, the network interface can be optimized to improve the network's processing power and efficiency.
[0131] 6. For u16ProbeID (probe ID) applications, the u16ProbeID field is used to track the source of data to ensure the accuracy and reliability of data collection. By analyzing the data collected by the probe, you can monitor network performance and identify potential problem points.
[0132] 7. u8XdrId (XDR identifier) tracking: u8XdrId is a unique identifier for XDR, which is used to track and analyze the data records of a single user. This information is crucial for supporting user-level data analysis and personalized services.
[0133] 8. Regarding vs8Imsi / Msisdn (user identity information) processing, the vs8Imsi and vs8Msisdn fields are key to the behavior analysis and identity recognition of individual users. This information is used to provide personalized network services, such as customized traffic packages and optimized user experience.
[0134] 9. For the u8UpfIpAdd / GnbIpAdd (IP address) field, by analyzing the IP addresses of UPF and gNB, network node and path selection are optimized to improve the efficiency and reliability of data transmission; this is crucial for network planning and optimization, especially in high-load or high-density areas.
[0135] 10. For u8QosFlow15QI (QoS quality indicator) analysis, use the u8QosFlow15QI field to perform QoS analysis to ensure that network services meet quality standards and user expectations. This helps network operators adjust and optimize service strategies and improve user satisfaction and network performance.
[0136] Next is step S6, which constructs a user profile based on the u8XdrId and vs8Imsi fields in the 5G network data; the specific steps are:
[0137] Step S61, cleaning and standardizing the u8XdrId field and vs8Imsi field extracted from the 5G network data (these two fields have been emphasized in the above explanation to provide a unique identifier for each user, u8XdrId is an identifier of the extended data record, mainly used to track user data; vs8Imsi is an international mobile user identification code, mainly used to identify the user), removing invalid or incomplete records, and standardizing the format to ensure the accuracy and consistency of the data for subsequent processing;
[0138] Step S62, analyze the data records associated with u8XdrId to understand the user's network usage pattern, traffic consumption, application type and usage time, which helps to reveal the user's network usage habits and preferences; use vs8Imsi to identify the user, and combine geographic location data, roaming records and network connection logs to analyze the user's behavior pattern; for example, identify the user's movement trajectory, roaming behavior and network connection quality.
[0139] Step S63, after collecting and analyzing relevant data, a user profile is constructed based on user characteristics, which include basic user information (such as geographic location, device type), network usage habits (such as application preferences, traffic usage) and behavior patterns (such as roaming behavior, movement trajectory); through in-depth data analysis, the user profile is refined. For example, high-traffic users, commonly used application types, frequently roaming areas and areas with network quality problems are identified; and the time series pattern of user behavior can be analyzed to identify peak hours, active areas and potential service needs.
[0140] Step S64, provide personalized services (such as customized data packages, priority access to network resources, etc.) based on the user portrait, design customized marketing strategies and service proposals for specific user groups or individual users; at the same time, regularly update the user portrait to reflect changes in user behavior and emerging trends, and continuously refine and optimize the user portrait in combination with the latest network data and user feedback.
[0141] Steps S61 to S64 can provide an in-depth understanding of the behavior, preferences and experience of 5G network users, thereby providing personalized services to users and optimizing network performance. This process covers all aspects of data collection, processing, analysis and application.
[0142] Step S7 is another innovation of this application. After analyzing the multidimensional data in the 5G network, the data needs to be processed. The ability to process this multidimensional data is another innovation of this application, which solves the limitation of the prior art that only single-dimensional data can be processed. Data lineage tracking technology is used here, which is a technology for tracking and recording the source, flow and conversion process of data. It can help data analysts, data managers and other relevant personnel understand the data generation process, the relationship between data, and the quality and credibility of data, and ensure that the source and flow of data in the entire processing process can be accurately tracked and recorded. The specific steps are:
[0143] Step S71, for each data source, a unique identifier is generated using a hash function (such as MD5 or SHA series), which involves converting the name, address or other unique information of the data source into a fixed-length hash value as its unique identifier. The basic form of the hash function is H(x)=y, where x is the input data source information and y is the generated hash value; this hash value is used to track the data source during data processing.
[0144] Step S72, record the detailed information of each operation step of the data in the system, including the reading, conversion, storage and output of the data. These operation steps are associated with the unique identifier of the data. Implement a logging mechanism to track the flow of data. This involves recording every step of data processing, such as data extraction, cleaning, conversion and loading operations.
[0145] Step S73, using geographic information and user identification fields for analysis, that is, using the u16LocalProvince / City field to analyze the user's geographic distribution, which helps optimize network resource allocation and improve network service performance. Using u8XdrId as the unique identifier of the data record, tracking and analyzing user-level data, providing data support for personalized services, using vs8Imsi / Msisdn fields for individual user behavior analysis and identity recognition, and providing users with more personalized services and experiences;
[0146] Step S74, develop a special algorithm to track all the transformations that the data has undergone, including data cleaning, aggregation, analysis, etc. This can be achieved by building a data transformation graph, where nodes represent data sets and edges represent transformation operations. Use graph algorithms to build and update data transformation graphs, represented as transform_graph(data, operation), where data is a data set and operation is a transformation operation;
[0147] Step S75: Analyze the dependencies between data to determine the complete path of the data flow. This usually involves using a topological sorting algorithm to identify the dependency order in the data processing flow. The topological sorting algorithm is represented as topological_sort(dependency_graph), where topological_sort performs a topological sort on a directed acyclic graph (DAG). The result of the topological sorting is a linear ordering of the vertices in the graph, so that for each pair of vertices u and v If there is a line from u arrive v , then u Appears in the sort v Before. dependency_graph is the dependency graph between data.
[0148] By using data lineage tracking technology, the source and flow of data during the processing process can be easily tracked, which helps to find problems in the data processing process, such as data missing, data errors, data duplication, etc. If data missing, data errors, or data duplication are found during the data processing process, then continue to return to step S4 and repeat steps S4-S6. In addition, data lineage tracking technology can also be used to optimize the data processing process and improve the efficiency and reliability of data processing.
[0149] Step S8, the flow and conversion process of the data in each processing stage from step S2 to step S7 are recorded and analyzed to facilitate efficient data analysis and system optimization. The core of step S8 is that it can capture, record and analyze every link of the data in the entire life cycle, so as to ensure the integrity and traceability of the data. The u16ProbeID field is used to track the source of the data. This mechanism enables each piece of data to be accurately traced back to its original collection point, whether it is a physical location or a logical location, which is crucial to ensure the accuracy and reliability of data collection. The u64CellID field is used to track the location changes of users in the 5G network. This function is critical to understanding the network coverage and user mobility patterns, especially in mobile communications and large-scale distributed systems. u8QosFlow15QI is also used to monitor the quality and service level of network traffic, which is very important for maintaining the quality of network services and timely discovering and solving network performance problems. Another key feature of the proposal of this application is that it can record every step of the data flow process, including the entire path of data from collection, processing to storage. This includes not only the physical flow path of the data, but also the conversion and processing process of the data. The system generates detailed data flow logs that record all the details of data transfer from one link to another, including key information such as the data timestamp, size, and processing time. These logs are essential for analyzing the efficiency of data flow, identifying potential bottlenecks, and optimizing data processing processes. The system also has the ability to analyze data flow paths and identify patterns and potential bottlenecks in data flows. This is achieved by performing necessary conversions and processing on the raw data to ensure consistency and analyzability of the data format. This process is critical to improving the efficiency and accuracy of data processing, especially when dealing with large and complex data sets.
[0150] Finally, in step S9, the data in step S1-step S8 are audited and traced back to ensure the integrity, security and compliance of the data. The core of this step is that it can record every access, modification and transmission event of the data in detail, thereby providing transparency and traceability for the use and management of the data.
[0151] Specifically, the system uses advanced monitoring mechanisms to track all operations on data, including data creation, reading, updating, and deletion (CRUD) operations. The records of these operations contain the timestamp of the operation, the identity of the operator, the specific content of the operation, and the context information of the operation. This is crucial for tracking historical changes and usage patterns of data. Secondly, the system uses advanced log management technology to ensure that all logs of data operations are stored and protected securely and completely. These logs can not only be used for post-audit, but also for backtracking and recovery when data problems occur.
[0152] The system also has powerful data analysis capabilities, which can conduct in-depth analysis of collected audit logs to identify abnormal behaviors, potential security threats and compliance issues. This function is crucial for timely detection and response to security incidents and prevention of data leakage and abuse.
[0153] The system also provides a flexible reporting and alerting mechanism that can automatically generate audit reports and security alerts based on predefined rules and thresholds. This helps organizations understand and address data-related security and compliance issues in a timely manner. Another key feature of the system is that it supports comprehensive data backtracking. In the event that data is improperly modified or deleted, the system can use the stored audit logs to restore the original state of the data. This is not only critical for protecting the integrity of data, but also for responding to data leaks and other security incidents.
[0154] By optimizing algorithms and processing flows, we have improved resource utilization efficiency when processing large-scale data sets, which not only improves system performance but also reduces operating costs.
[0155] Finally, the system is designed with the user's convenience and flexibility in mind. By providing an intuitive user interface and rich configuration options, the system allows users to easily set audit rules, view audit logs, and generate reports. In addition, the system's scalability and compatibility are also important features. It can be seamlessly integrated with various data sources and applications, supports multiple data formats and protocols, and adapts to different business needs and technical environments. This makes the system not only suitable for current data auditing and backtracking needs, but also adaptable to future technological developments and business changes.
[0156] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless defined as herein.
[0157] The meaning of "and / or" described in this application means that the situations where each exists alone or both exist at the same time are included.
[0158] The term “connection” as used in this application may mean a direct connection between components or an indirect connection between components via other components.
[0159] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.
Claims
1. A 5G network XDR multi-dimensional data collection and management method based on libpcap, characterized by: The specific steps include: Step S1: Initialize 5G network data environment identification, identify key nodes in the 5G network, and build a network topology map. The network topology map assists machine learning to classify network traffic and identify key data flows; Step S2: Optimizing the data processing flow according to the specific protocol characteristics of the 5G network to preliminarily obtain a cleaned data stream, wherein the optimization includes an improved data encoding and decoding mechanism, a new signaling control protocol, and enhanced security features; Assign a unique identifier to each piece of 5G network data, extract the u8XdrId and vs8Imsi fields, where u8XdrId is used as the identifier of the extended data record to track user data; vs8Imsi is used as the user identification code for international mobile to identify the user; Desensitize the data to remove sensitive information, and store the desensitized data in a distributed storage system, including HDFS or HBase; The improved data encoding and decoding mechanism adopts a low-density parity check encoding and decoding algorithm, and its decoding algorithm formula is: In the formula, L(x) represents the likelihood ratio calculation, which is used to evaluate the correctness of the data bit; x represents the codeword or data bit to be evaluated, and i represents the index of a specific bit or node in the codeword; A new signaling control protocol is used for the NR-RRC protocol. The processing process is as follows: Step S221, parsing the RRCSetup message in the RRC connection establishment process, extracting the capability information and network configuration of the user equipment, processing and parsing the RRC reconfiguration message, the RRC reconfiguration message including the modification of the radio bearer, the allocation of radio resources and the new indication to the user equipment; Step S222, developing a state machine to manage the transition of the user equipment between different RRC states, wherein the transition includes monitoring network commands, UE responses, and processing state transition conditions; Step S223, parsing the RRC reconfiguration message of downlink resource allocation; Step S224, processing uplink resource allocation logic, including spectrum allocation, power control and time alignment; Step S225, parsing the measurement report of the user equipment for network quality assessment and neighboring cell selection, thereby configuring measurement parameters of the user equipment based on network strategy and user equipment capabilities; In view of the enhanced security features of 5G networks, the AES encryption algorithm and the key exchange protocol based on the ECDH algorithm are used. The formula of the ECDH algorithm is: K=x A ×y B =x B ×y A In the formula, K represents the shared key, x A 、x B Represents their respective private keys, y A ,y B Indicates the other party’s public key; Step S3: Based on the high-speed characteristics of the 5G network, the libpcap tool is integrated and optimized; Step S4: Using the libpcap tool integrated and optimized in step S3, the data stream in step S2 is further processed. Specifically, the key fields of the 5G network data are extracted, and the key fields are converted into multi-dimensional feature vectors, which are input into the machine learning algorithm, that is, the optimal segmentation hyperplane is found in the high-dimensional space to maximize the interval between different categories of data and achieve accurate classification; Step S5: Build a data processing module based on Apache Kafka, and use Apache Flink's time window technology to process time-sensitive data, and process and analyze key fields of 5G network data in real time; Step S6: Build a user profile based on the u8XdrId and vs8Imsi fields in the 5G network data; Step S7: Use data lineage tracing technology to track the source and flow of data during the data processing process. If data missing, data error, or data duplication is found during the data processing process, return to step S4 and repeat steps S4 to S6. Step S8: Record and analyze the flow and conversion process of data in each processing stage from step S2 to step S7; Step S9: Audit and backtrack the data in steps S1 to S8 to ensure the integrity, security and compliance of the data.
2. The 5G network XDR multi-dimensional data collection and management method based on libpcap according to claim 1 is characterized in that: In step S1, the specific steps of initializing 5G network data environment identification are: Step S11, using the network detection tool Nmap to send a specific type of network request, deeply scan and analyze the 5G network and the captured data, and identify key nodes in the 5G network, wherein the key nodes include base stations, core network devices, and edge computing nodes; Step S12, constructing a network topology graph using a graph theory algorithm, specifically using a shortest path algorithm, expressed as G = (V, E), where G represents a network graph, V represents a set of device nodes in the network, and E represents a set of edges connecting the devices; Step S13, using machine learning to classify network traffic and identify key data flows, the machine learning method is a support vector machine algorithm, and its classification function formula is expressed as f(x)=sign(ω T x+b), x represents the data feature vector, ω represents the weight vector, and b represents the bias term.
3. The 5G network XDR multi-dimensional data collection and management method based on libpcap according to claim 1 is characterized in that: In step S3, the measures for integrating and optimizing the libpcap tool include adjusting the internal buffer for the high-speed data transmission characteristics of the 5G network, using the formula: buffer_size=packet_size×packet_rate×time_window In the formula, packet_size represents the size of a single data packet, packet_rate represents the arrival rate of data packets per second, and time_window represents the time window for data capture; For data flow filtering and preprocessing, write BPF rules to capture key data flows; In view of the high-speed characteristics of 5G networks, multi-threading technology is used to process data packets in parallel. The thread allocation formula is threads = CPU_cores-1; The data output by the libpcap tool is converted into a unified format. Specifically, the raw data is converted into a universal PCAP format by applying the function convert_to_pcap(raw_data).
4. The 5G network XDR multi-dimensional data collection and management method based on libpcap according to claim 1 is characterized in that: In step S4, the steps of further processing the data stream in step S2 are: Step S41, parse the 5G network data from the libpcap package and extract key fields, wherein the key fields include u16Length indicating the data record length, u16LocalProvince indicating the local province code, u16LocalCity indicating the local city code, u16OwnerProvince indicating the province code to which the account belongs, u16OwnerCity indicating the city code to which the account belongs, u8RoamingType indicating the roaming type, u8Interface indicating the network interface type, u16ProbeID indicating the probe or device ID, u8XdrId indicating the extended data record identifier, u8xDRType indicating the extended data record type, and u8RAT indicating the radio access technology type; Step S42, using the u16Length field to verify data integrity, remove damaged or incomplete records, and then continue to extract key fields in the 5G network data, and convert the original data into a format to be processed and analyzed; Step S43, for the time series data in the original data, use the time series analysis technology moving average model to identify time-dependent patterns and trends, and for the text data in the original data, use the natural language processing technology word embedding to extract key features and semantic information; Step S44, based on the data preprocessed in step S43, calculate the covariance matrix of the feature matrix to determine the correlation between the features, perform eigenvalue decomposition according to the covariance matrix, extract the eigenvalues and corresponding eigenvectors, select the main components in the data, and construct the feature matrix; The principal components in the data are the eigenvalues that explain a major percentage of the total variance; Step S45, converting the feature vector into a few principal components through a principal component analysis algorithm; Step S46, store the processed data in the data lake and create an index using the u16Length and u8XdrId fields.
5. The 5G network XDR multi-dimensional data collection and management method based on libpcap according to claim 1 is characterized in that: In step S5, a streaming engine system based on Apache Kafka and Apache Flink is built to design and optimize the key fields of 5G network data. The specific processing methods and logics for different fields are as follows: For the u64CellID field, use the u64CellID field to analyze the user's movement trajectory and location information in the network; For the u16Length field, use the u16Length field to ensure that each data packet is received and processed completely; For the u16LocalProvince / City field, use the u16LocalProvince and u16LocalCity fields to perform geographic location analysis to understand user distribution; By analyzing the u8RoamingType field, we can understand the user's roaming behavior, especially the cross-regional or international roaming situation. By analyzing the u8Interface field, the network interface is optimized to improve the processing capability and efficiency of the network. For the u16ProbeID field, monitor network performance and identify potential problem points by analyzing the data collected by the u16ProbeID field; For the u8XdrId field, track and analyze the data records of a single user through the u8XdrId field; Regarding the vs8Imsi / Msisdn field, the vs8Imsi and vs8Msisdn fields are key to the behavior analysis and identity recognition of individual users, and are used to provide personalized network services; For the u8UpfIpAdd / GnbIpAdd field, by analyzing the IP addresses of UPF and gNB, network node and path selection are optimized to improve the efficiency and reliability of data transmission; For the u8QosFlow15QI field, the u8QosFlow15QI field is used to perform QoS analysis to ensure that the network service meets the quality standards and user expectations.
6. The 5G network XDR multi-dimensional data collection and management method based on libpcap according to claim 1 is characterized in that: In step S6, the specific steps of constructing the user portrait are: Step S61, cleaning and standardizing the u8XdrId field and vs8Imsi field extracted from the 5G network data, removing invalid or incomplete records, and standardizing the format to ensure the accuracy and consistency of the data; Step S62, analyzing the data records associated with u8XdrId to understand the user's network usage pattern, traffic consumption, application type and usage duration, using vs8Imsi to identify the user, and combining geographic location data, roaming records and network connection logs to analyze the user's behavior pattern; Step S63, after collecting and analyzing relevant data, construct a user profile based on user characteristics, where the user characteristics include the user's basic information, network usage habits and behavior patterns; Step S64, provide personalized services based on the user portrait, design customized marketing strategies and service proposals; at the same time, regularly update the user portrait, combine the latest network data and user feedback, and continuously refine and optimize the user portrait.
7. The 5G network XDR multi-dimensional data collection and management method based on libpcap according to claim 1 is characterized in that: In step S7, the specific steps of data lineage tracing are: Step S71, for each data source, a unique identifier is generated using a hash function, which involves converting the name, address or other unique information of the data source into a fixed-length hash value as its unique identifier. The basic form of the hash function is H(x)=y, where x is the input data source information and y is the generated hash value; Step S72, recording detailed information of each operation step of the data in the system, including data reading, conversion, storage and output; Step S73, using geographic information and user identification fields for analysis, that is, using the u16LocalProvince / City field to analyze the user's geographic distribution, using u8XdrId as the unique identifier of the data record, tracking and analyzing user-level data, providing data support for personalized services, and using the vs8Imsi / Msisdn field to analyze individual user behavior and identify identities, providing users with more personalized services and experiences; Step S74, using a graph algorithm to construct and update a data transformation graph, represented as transform_graph(data, operation), where data is a data set and operation is a transformation operation; Step S75, using a topological sorting algorithm to identify the dependency order in the data processing flow, the topological sorting algorithm is expressed as topological_sort(dependency_graph), where dependency_graph is a dependency graph between data.
8. The 5G network XDR multi-dimensional data collection and management method based on libpcap according to claim 1 is characterized in that: In step S8, the u16ProbeID field is used to track the source of the data, the u64CellID field is used to track the location changes of the user in the 5G network, and the u8QosFlow15QI field is used to monitor the quality and service level of the 5G network traffic; the content of transferring data from one link to another generates a data flow log, including the timestamp, size, and processing time of the data; In step S9, each access, modification and transmission event of the data is recorded, specifically including tracking all operations on the data, including creation, reading, updating and deletion operations, and the operation records include the timestamp of the operation, the identity of the operator, the specific content of the operation and the context information of the operation; Analyze the tracked data operations to identify abnormal behaviors, potential security threats and compliance; generate audit logs and security alerts based on predefined rules and thresholds; when data is improperly modified or deleted, the system restores the data to its original state based on the audit logs.
