5G private network flow monitoring method and system

By combining DPDK and nDPI technologies, real-time monitoring and analysis of 5G private network traffic is achieved, solving the problem of low efficiency in existing technologies, improving network performance and security, and is suitable for data-intensive and performance-sensitive 5G private networks. type scene.

CN118740698APending Publication Date: 2024-10-01LINYI YUPING NETWORK TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410813420.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing technology has low network traffic monitoring efficiency in 5G private networks and cannot respond in real time to high-rate data transmission and changes in network conditions, and the independent use of DPI and DPDK technologies fails to give full play to their advantages.

Method used

Combining DPDK and nDPI technologies, traffic data is captured through the DPDK interface to form a data queue, and the nDPI feature library is used for traffic identification and detection and the DPDK interface is used for traffic forwarding. The detection rules and processing strategies are regularly updated to realize alternate processing of data.

Benefits of technology

It realizes real-time monitoring and analysis of high-speed and large-scale network traffic on 5G private networks, improves network performance and security, reduces resource consumption, and is suitable for data-intensive and performance-sensitive scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740698A_ABST
    Figure CN118740698A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of 5G network communication, and discloses a 5G private network flow monitoring method and system, and the method comprises the steps: capturing flow data through a DPDK interface, and forming a data queue; acquiring a data packet from the data queue based on a predetermined data volume, and performing traffic identification detection on the data packet by using an nDPI feature library; under the condition that the flow identification result is that the data packet is the safe flow data, performing flow forwarding on the data packet by using a DPDK interface; and when the traffic identification result is that the data packet has potential security threat or network congestion, performing traffic security alarm. According to the invention, the flow monitoring is carried out by combining the nDPI and the DPDK in a data alternative processing mode, so that the time delay caused by multiple copying of a memory is avoided, the resource consumption of the server is reduced, the real-time monitoring and analysis of high-speed and large-amount network flow in the 5G private network can be realized, and the performance and the security of the network are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of 5G network communication technology, and in particular to a 5G private network traffic monitoring method and system. Background Art

[0002] With the development of 5G private networks, monitoring and management of network traffic within private networks has become particularly important. In existing technologies, network traffic monitoring usually uses DPI technology for traffic monitoring and analysis, and DPDK technology is used to accelerate data packet processing. However, these technologies are usually used independently and are not combined for application, failing to give full play to the advantages of both. In addition, when processing high-speed data transmission in 5G private networks, existing technologies have low data processing efficiency and cannot respond to changes in network conditions in real time. Summary of the invention

[0003] The embodiments of the present invention provide a 5G private network traffic monitoring method and system to solve the above-mentioned technical problems in the prior art.

[0004] In order to have a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. This summary is not intended to be a general review, nor is it intended to identify key / important components or to delineate the scope of protection of these embodiments. Its only purpose is to present some concepts in a simple form as a preface to the detailed description that follows.

[0005] According to a first aspect of an embodiment of the present invention, a 5G private network traffic monitoring method is provided.

[0006] In one embodiment, the 5G private network traffic monitoring method includes:

[0007] Use the DPDK interface to capture traffic data and form a data queue;

[0008] Acquire a data packet from the data queue based on a predetermined data volume, and perform flow identification and detection on the data packet using an nDPI feature library;

[0009] When the traffic identification result shows that the data packet is safe traffic data, the DPDK interface is used to forward the data packet;

[0010] When the traffic identification result indicates that the data packet has a potential security threat or network congestion, a traffic security alarm is issued.

[0011] In one embodiment, capturing traffic data using the DPDK interface includes:

[0012] Use the DPDK interface to capture traffic data from the 5G private network network card; and / or

[0013] Utilize the DPDK interface to capture flow data from the traffic forwarding path.

[0014] In one embodiment, the 5G private network traffic monitoring method further includes: regularly updating the traffic identification and detection rules of the nDPI feature library based on traffic monitoring results and network performance indicators.

[0015] In one embodiment, the 5G private network traffic monitoring method further includes: regularly updating the processing strategy of the DPDK interface based on traffic monitoring results and network performance indicators.

[0016] In one embodiment, the calculation formula of the predetermined data volume is:

[0017]

[0018] Where K is the average peak value of network traffic; N is the mean packet size; S1 is the packet processing speed of traffic analysis; S2 is the packet processing speed of traffic forwarding; D is a custom balancing parameter that allows users to dynamically adjust according to real-time monitoring status, and the default value is 1.

[0019] According to a second aspect of an embodiment of the present invention, a 5G private network traffic monitoring system is provided.

[0020] In one embodiment, the 5G private network traffic monitoring system includes:

[0021] The data acquisition module is used to capture traffic data using the DPDK interface and form a data queue;

[0022] A traffic analysis module, used to obtain data packets from the data queue based on a predetermined data volume, and perform traffic identification and detection on the data packets using an nDPI feature library;

[0023] A traffic forwarding module, used for forwarding the data packet using the DPDK interface when the traffic identification result indicates that the data packet is safe traffic data;

[0024] The traffic warning module is used to issue a traffic security alarm when the traffic identification result shows that the data packet has a potential security threat or network congestion.

[0025] In one embodiment, when the data acquisition module uses the DPDK interface to capture traffic data, it uses the DPDK interface to capture traffic data from the network card of the 5G private network; and / or uses the DPDK interface to capture traffic data from the traffic forwarding path.

[0026] In one embodiment, the 5G private network traffic monitoring method further includes: an analysis and update module, which is used to regularly update the traffic identification and detection rules of the nDPI feature library based on traffic monitoring results and network performance indicators.

[0027] In one embodiment, the 5G private network traffic monitoring method further includes: a forwarding update module, which is used to regularly update the processing strategy of the DPDK interface based on traffic monitoring results and network performance indicators.

[0028] In one embodiment, the calculation formula of the predetermined data volume is:

[0029]

[0030] Where K is the average peak value of network traffic; N is the mean packet size; S1 is the packet processing speed of traffic analysis; S2 is the packet processing speed of traffic forwarding; D is a custom balancing parameter that allows users to dynamically adjust according to real-time monitoring status, and the default value is 1.

[0031] The technical solution provided by the embodiment of the present invention may have the following beneficial effects:

[0032] The present invention combines nDPI and DPDK to monitor traffic in an alternating data processing mode, thereby not only avoiding the delay caused by multiple memory copies, but also reducing the resource consumption of the server, and can achieve real-time monitoring and analysis of high-speed and large-scale network traffic in 5G private networks, improving network performance and security. In addition, the present invention can also effectively improve the efficiency and accuracy of network traffic monitoring. This solution is particularly suitable for data-intensive, performance-sensitive, and resource-scarce 5G private network scenarios.

[0033] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0035] Figure 1 It is a flowchart of a 5G private network traffic monitoring method according to an exemplary embodiment;

[0036] Figure 2 It is a structural block diagram of a 5G private network traffic monitoring system according to an exemplary embodiment;

[0037] Figure 3 The figure is a schematic diagram showing the structure of a computer device according to an exemplary embodiment. DETAILED DESCRIPTION

[0038] The following description and accompanying drawings fully illustrate the specific embodiments of this article so that those skilled in the art can practice them. Parts and features of some embodiments may be included in or replace parts and features of other embodiments. The scope of the embodiments of this article includes the entire scope of the claims, as well as all available equivalents of the claims. Herein, the terms "first", "second", etc. are only used to distinguish one element from another, without requiring or implying any actual relationship or order between these elements. In fact, the first element can also be called the second element, and vice versa. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the structure, device or equipment including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also include elements inherent to such structure, device or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the structure, device or equipment including the elements. Each embodiment is described in a progressive manner herein, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other.

[0039] The terms "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. in this document indicate the orientation or position relationship based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing this document and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In the description of this document, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a mechanical connection or an electrical connection, it can also be the internal communication of two elements, it can be a direct connection, or it can be an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms can be understood according to specific circumstances.

[0040] As used herein, unless otherwise specified, the term "plurality" means two or more than two.

[0041] In this document, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B means: A or B.

[0042] In this article, the term "and / or" is a description of the association relationship between objects, indicating that three relationships may exist. For example, A and / or B means: A or B, or, A and B.

[0043] It should be understood that, although the various steps in the flow chart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0044] Each module in the device or system of the present application can be implemented in whole or in part by software, hardware, or a combination thereof. The above modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to the above modules.

[0045] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0046] Figure 1 An embodiment of a 5G private network traffic monitoring method of the present invention is shown.

[0047] In this optional embodiment, the 5G private network traffic monitoring method includes:

[0048] Step S101, using the DPDK interface to capture traffic data and form a data queue;

[0049] Step S103, obtaining a data packet from the data queue based on a predetermined data volume, and performing flow identification detection on the data packet using an nDPI feature library;

[0050] Step S105, when the traffic identification result shows that the data packet is security traffic data, the DPDK interface is used to forward the data packet;

[0051] Step S107: When the traffic identification result indicates that the data packet has a potential security threat or network congestion, a traffic security alarm is issued.

[0052] Figure 2 An embodiment of a 5G private network traffic monitoring system of the present invention is shown.

[0053] In this optional embodiment, the 5G private network traffic monitoring system includes:

[0054] The data acquisition module 201 is used to capture traffic data using the DPDK interface and form a data queue;

[0055] The traffic analysis module 203 is used to obtain data packets from the data queue based on a predetermined data volume, and perform traffic identification and detection on the data packets using an nDPI feature library;

[0056] The traffic forwarding module 205 is used to forward the data packet using the DPDK interface when the traffic identification result shows that the data packet is safe traffic data;

[0057] The traffic warning module 207 is used to issue a traffic security alarm when the traffic identification result indicates that the data packet has a potential security threat or network congestion.

[0058] In actual application, nDPI is an open source Deep Packet Inspection (DPI) library that can identify applications and protocols in network traffic. By analyzing the payload of the data packet (not just the header information), nDPI can identify a variety of protocols and applications, including encrypted traffic such as SSL / TLS. This makes nDPI very useful in network security, traffic analysis and management. In traffic monitoring, the role of nDPI is mainly reflected in: Traffic classification: Accurately identify the application type and protocol transmitted through the network, and provide data support for traffic management and optimization. Security monitoring: Identify potential malicious traffic and protocols to help network administrators detect and prevent security threats in a timely manner. User behavior analysis: Analyze users' network usage habits to provide a basis for network planning and policy formulation.

[0059] DPDK (Data Plane Development Kit) is an open source project initiated by Intel to improve the performance and throughput of packet processing. DPDK provides a series of optimized packet processing libraries and drivers that can run directly on the data plane of the processor, bypassing the traditional operating system network stack, thereby greatly improving the packet processing speed. In traffic monitoring, the role of DPDK is mainly reflected in: Accelerating packet processing: reducing processing delays and increasing data processing speed through efficient packet reception and transmission. Improving throughput: supporting high-speed network interfaces, being able to handle more data traffic, and adapting to high-speed network environments such as 5G. Flexible traffic distribution: supporting multi-core processing and load balancing, and being able to efficiently distribute network traffic to different processing threads.

[0060] In order to achieve data alternating processing, when using the DPDK interface to capture traffic data, the DPDK interface can be used to capture traffic data from the network card of the 5G private network; and / or the DPDK interface can be used to capture traffic data from the traffic forwarding path.

[0061] In actual application, the initial data acquisition uses DPDK to capture data packets from the network card, and as a data producer, it sends the data to the data queue for processing; in the later processing, traffic analysis and traffic forwarding act as consumers and consume data from the data queue. On the one hand, traffic analysis takes out data packets from the data queue, and after analysis is completed using nDPI, it needs to send the data packets to traffic forwarding; on the other hand, it also needs to passively receive data packets from traffic forwarding through the interface, and also use nDPI for analysis. Similarly, on the one hand, traffic forwarding takes out data packets from the data queue, and after analysis is completed using DPDK, it needs to send the data packets to traffic analysis; on the other hand, it also needs to passively receive data packets from traffic analysis through the interface, and also use DPDK for forwarding.

[0062] In addition, in actual application, the flow identification and detection rules of the nDPI feature library and the processing strategy of the DPDK interface can be regularly updated according to the flow monitoring results and network performance indicators to adjust the configuration of nDPI and DPDK to optimize the overall network flow processing and ensure that the system can adapt to new network applications and security threats. Correspondingly, the system includes: an analysis update module (not shown in the figure), which is used to regularly update the flow identification and detection rules of the nDPI feature library according to the flow monitoring results and network performance indicators; and a forwarding update module (not shown in the figure), which is used to regularly update the processing strategy of the DPDK interface according to the flow monitoring results and network performance indicators.

[0063] In addition, in actual applications, when traffic analysis and traffic forwarding act as consumers to consume data in the data queue according to a predetermined data volume, the size of the data volume can be dynamically calculated using the following formula:

[0064]

[0065] Where K is the average peak value of network traffic; N is the mean packet size; S1 is the packet processing speed of traffic analysis; S2 is the packet processing speed of traffic forwarding; D is a custom balancing parameter that allows users to dynamically adjust according to real-time monitoring status, and the default value is 1.

[0066] Figure 3An embodiment of a computer device of the present invention is shown. The computer device may be a server, and the computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store static information and dynamic information data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the steps in the above method embodiment are implemented.

[0067] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0068] In addition, the present invention also provides a computer device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiment when executing the computer program.

[0069] In addition, the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the above method embodiment are implemented.

[0070] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0071] The present invention is not limited to the structures which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A 5G private network traffic monitoring method, characterized in that: include: Use the DPDK interface to capture traffic data and form a data queue; Acquire a data packet from the data queue based on a predetermined data volume, and perform flow identification and detection on the data packet using an nDPI feature library; When the traffic identification result shows that the data packet is safe traffic data, the DPDK interface is used to forward the data packet; When the traffic identification result indicates that the data packet has a potential security threat or network congestion, a traffic security alarm is issued.

2. The 5G private network traffic monitoring method according to claim 1 is characterized in that: Capturing traffic data using the DPDK interface includes: Use the DPDK interface to capture traffic data from the 5G private network network card; and / or Utilize the DPDK interface to capture flow data from the traffic forwarding path.

3. The 5G private network traffic monitoring method according to claim 1 is characterized in that: Also includes: Based on traffic monitoring results and network performance indicators, the traffic identification and detection rules of the nDPI feature library are updated regularly.

4. The 5G private network traffic monitoring method according to claim 1 is characterized in that: Also includes: Regularly update the DPDK interface processing strategy based on traffic monitoring results and network performance indicators.

5. The 5G private network traffic monitoring method according to claim 1 is characterized in that: The calculation formula of the predetermined data volume is: Where K is the average peak value of network traffic; N is the mean packet size; S1 is the packet processing speed of traffic analysis; S2 is the packet processing speed of traffic forwarding; D is a custom balancing parameter that allows users to dynamically adjust according to real-time monitoring status, and the default value is 1.

6. A 5G private network traffic monitoring system, characterized in that: include: The data acquisition module is used to capture traffic data using the DPDK interface and form a data queue; A traffic analysis module, used to obtain data packets from the data queue based on a predetermined data volume, and perform traffic identification and detection on the data packets using an nDPI feature library; A traffic forwarding module, used for forwarding the data packet using the DPDK interface when the traffic identification result indicates that the data packet is safe traffic data; The traffic warning module is used to issue a traffic security alarm when the traffic identification result shows that the data packet has a potential security threat or network congestion.

7. The 5G private network traffic monitoring system according to claim 6 is characterized in that: When the data acquisition module uses the DPDK interface to capture traffic data, it uses the DPDK interface to capture traffic data from the network card of the 5G private network; and / or uses the DPDK interface to capture traffic data from the traffic forwarding path.

8. The 5G private network traffic monitoring system according to claim 6, characterized in that: Also includes: The analysis and update module is used to regularly update the traffic identification and detection rules of the nDPI feature library based on traffic monitoring results and network performance indicators.

9. The 5G private network traffic monitoring system according to claim 6, characterized in that: Also includes: The forwarding update module is used to regularly update the processing strategy of the DPDK interface based on traffic monitoring results and network performance indicators.

10. The 5G private network traffic monitoring system according to claim 6, characterized in that: The calculation formula of the predetermined data volume is: Where K is the average peak value of network traffic; N is the mean packet size; S1 is the packet processing speed of traffic analysis; S2 is the packet processing speed of traffic forwarding; D is a custom balancing parameter that allows users to dynamically adjust according to real-time monitoring status, and the default value is 1.