A message transmission method, device and electronic equipment based on DPDK technology

CN117545011BActive Publication Date: 2026-10-30DATANG MOBILE COMM EQUIP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210916619.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-01
Publication Date
2026-10-30
Estimated Expiration
2042-08-01

AI Technical Summary

Technical Problem

[0003]然而,在大量基站接入时,AMF接口板对外的N2口在使用SOCKET时出现性能不足导致数据丢包,偶现的大流量导致已经连接的基站出现心跳断开导致用户离线,增大数据传输的时延等一系列问题

Benefits of technology

[0035]本申请提供了一种基于数据面软件开发套件DPDK技术的报文传输方法,基于接入和移动性管理功能AMF接口板中DPDK组件,对基站发送的第一报文进行分流处理,得到第二报文,并将第二报文转发给对应的目标AMF信令板进行处理,得到第三报文;基于DPDK组件,从缓存区中读取第三报文,并将第三报文发送给所述基站,其中,缓存区用于缓存每个AMF信令板输出的第三报文。本申请通过部署DPDK组件,可以增加接入基站的数量,实现了AMF信令板的横向扩容,减小了N2流量的负载分担,降低N2网络数据报文传输的时延和抖动,提高了用户的使用体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117545011B_ABST
    Figure CN117545011B_ABST
Patent Text Reader

Abstract

The application provides a message transmission method and device based on a data plane development kit (DPDK) technology and electronic equipment. The method comprises the following steps: based on a DPDK component in an access and mobility management function (AMF) interface board, performing shunting processing on a first message sent by a base station to obtain a second message, and forwarding the second message to a corresponding target AMF signaling board for processing to obtain a third message; based on the DPDK component, reading the third message from a cache area, and sending the third message to the base station, wherein the cache area is used to cache the third message output by each AMF signaling board. By deploying the DPDK component, the number of access base stations can be increased, the horizontal expansion of the AMF signaling board is realized, the load sharing of N2 traffic is reduced, the time delay and jitter of N2 network data message transmission are reduced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a message transmission method based on the Data Plane Software Development Kit (DPDK) technology. Background Technology

[0002] In the Next Generation Core Net (NGC) architecture of fifth-generation mobile communication technology, access control is an independent Network Function (NF). A large number of base stations access the core network through the N2 interface of the Access and Mobility Management Function (AMF). The N2 interface of the AMF interface board uses sockets to send and receive messages, and then sends the messages to the AMF signaling board. The AMF signaling board is responsible for message processing, and the AMF global board is responsible for network data and primary / backup control. Together, they complete the base station access to the core network.

[0003] However, with the access of a large number of base stations, the N2 port of the AMF interface board experienced insufficient performance when using SOCKET, leading to data packet loss. Occasional large traffic spikes caused heartbeat disconnections at connected base stations, resulting in user offline status and increased data transmission latency, among other problems. Therefore, how to transmit packets efficiently and reliably has become an urgent issue to be addressed. Summary of the Invention

[0004] This application provides a message transmission method based on the Data Plane Software Development Kit (DPDK) technology. By deploying DPDK components, this application can increase the number of access base stations, realize the horizontal expansion of the AMF signaling board, reduce the load sharing of N2 traffic, reduce the latency and jitter of N2 network data packet transmission, and improve the user experience.

[0005] According to a first aspect of this application, a message transmission method based on Data Plane Software Development Kit (DPDK) technology is provided, comprising: performing splitting processing on a first message sent by a base station based on a DPDK component in an Access and Mobility Management Function (AMF) interface board to obtain a second message, and forwarding the second message to a corresponding target AMF signaling board for processing to obtain a third message; and reading the third message from a buffer based on the DPDK component and sending the third message to the base station, wherein the buffer is used to buffer the third message output by each AMF signaling board.

[0006] In addition, the message transmission method based on the Data Plane Software Development Kit (DPDK) technology proposed in the first aspect of this application may also have the following additional technical features:

[0007] According to one embodiment of this application, the DPDK component in the Access and Mobility Management Function (AMF) interface board performs diversion processing on a first message sent by the base station to obtain a second message, including: diverting the first message sent by the base station through a receiver extended RSS component configured in the DPDK component, and diverting the first message to different queues to obtain the second message.

[0008] According to one embodiment of this application, before forwarding the second message to the corresponding target AMF signaling board for processing, the method includes: obtaining the target AMF signaling board corresponding to the second message from among the multiple AMF signaling boards based on the triple table information of the second message.

[0009] According to one embodiment of this application, obtaining the target AMF signaling board corresponding to the second message from multiple AMF signaling boards based on the triplet table information of the second message includes: obtaining the triplet table information of the second message; and performing triplet table information matching on the second message according to the triplet table information to obtain the target AMF signaling board corresponding to the second message.

[0010] According to one embodiment of this application, the triplet table information includes: source Internet Protocol (IP) address, destination IP address, protocol type, and the IP address of the AMF signaling board.

[0011] According to one embodiment of this application, the step of matching the third tuple information of the second message with the third tuple information to obtain the target AMF signaling board corresponding to the second message includes: matching the third tuple information of the second message with the third tuple information of the AMF signaling board; if the third tuple information of the second message matches the third tuple information of the AMF signaling board, then the AMF signaling board is taken as the target AMF signaling board corresponding to the second message.

[0012] According to one embodiment of this application, the step of forwarding the second message to the corresponding target AMF signaling board for processing includes: obtaining the physical address (MAC) of the network card required to forward the second message to the target AMF signaling board; performing Layer 2 encapsulation on the MAC address using the Address Resolution Protocol (ARP) component; and forwarding the second message to the corresponding target AMF signaling board based on the Layer 2 encapsulated MAC address.

[0013] According to one embodiment of this application, reading a third message from a buffer based on the DPDK component includes: transmitting the third message to a buffer located in user space via a group data transfer (DMA) method, and reading the third message from the buffer based on the DPDK component.

[0014] According to one embodiment of this application, the method further includes: creating a kernel network interface (KNI) component and a KNI virtual interface through the DPDK component; sending another message sent by the base station to the KNI virtual interface, which processes it to obtain a fourth message; forwarding the fourth message to the AMF signaling board for processing based on the KNI virtual interface; monitoring the AMF signaling board's processing of the fourth message; and determining whether to send feedback information of the fourth message to the base station through the KNI virtual interface based on the monitoring result.

[0015] According to one embodiment of this application, determining whether to send the feedback information of the fourth message to the base station through the KNI virtual interface based on the monitoring result includes: monitoring the response message data of the fourth message; if the response message data is detected, sending the response message data as the feedback information to the KNI virtual interface; and sending the feedback information to the base station through the KNI virtual interface.

[0016] According to one embodiment of this application, the step of determining whether to send the fourth message to the base station through the KNI virtual interface based on the monitoring result is characterized by further comprising:

[0017] The base station listens for the response message data of the fourth message. If the response message data is not heard, the base station will re-initiate the Flow Control Protocol (SCTP) link establishment.

[0018] According to one embodiment of this application, the method further includes: obtaining a listening duration threshold for listening to the response message data of the fourth message; if the response message data is not listened to within the listening duration threshold, the base station will re-initiate the Flow Control Protocol (SCTP) link establishment.

[0019] A second aspect of this application also proposes a message transmission device based on Data Plane Software Development Kit (DPDK) technology. The device includes: a processing module, configured to perform splitting processing on a first message sent by a base station based on the DPDK component in the Access and Mobility Management Function (AMF) interface board to obtain a second message, and forward the second message to a corresponding target AMF signaling board for processing to obtain a third message; and a sending module, configured to read the third message from a buffer based on the DPDK component, and send the third message to the base station, wherein the buffer is used to buffer the third message output by each AMF signaling board.

[0020] The message transmission apparatus based on the Data Plane Software Development Kit (DPDK) technology proposed in the second aspect of this application may also have the following additional technical features:

[0021] According to one embodiment of this application, the processing module is used to perform diversion processing on a first message sent by the base station based on the DPDK component in the Access and Mobility Management Function (AMF) interface board to obtain a second message. Specifically, the first message sent by the base station is diverted through the receiver extended RSS component configured in the DPDK component, and the first message is diverted to different queues to obtain the second message.

[0022] According to one embodiment of this application, before forwarding the second message to the corresponding target AMF signaling board for processing, the processing module is further configured to: obtain the target AMF signaling board corresponding to the second message from among the multiple AMF signaling boards based on the triple table information of the second message.

[0023] According to one embodiment of this application, the processing module is configured to obtain the target AMF signaling board corresponding to the second message from multiple AMF signaling boards based on the triplet table information of the second message. Specifically, the module obtains the triplet table information of the second message and performs triplet table information matching on the second message according to the triplet table information to obtain the target AMF signaling board corresponding to the second message.

[0024] According to one embodiment of this application, the triplet table information includes: source Internet Protocol (IP) address, destination IP address, protocol type, and the IP address of the AMF signaling board.

[0025] According to one embodiment of this application, the processing module is configured to perform triplet table information matching on the second message based on the triplet table information to obtain the target AMF signaling board corresponding to the second message. Specifically, the triplet table information of the second message is matched with the triplet table information of the AMF signaling board. If the triplet table information of the second message matches the triplet table information of the AMF signaling board, then the AMF signaling board is selected as the target AMF signaling board corresponding to the second message.

[0026] According to one embodiment of this application, the processing module is used to forward the second message to the corresponding target AMF signaling board for processing. Specifically, it obtains the physical address (MAC) of the network card required to forward the second message to the target AMF signaling board; performs Layer 2 encapsulation on the MAC address using the Address Resolution Protocol (ARP) component; and forwards the second message to the corresponding target AMF signaling board based on the Layer 2 encapsulated MAC address.

[0027] According to one embodiment of this application, the sending module is used to read a third message from a buffer based on the DPDK component, specifically by: transmitting the third message to a buffer located in user space via Group Data Transfer (DMA) and reading the third message from the buffer based on the DPDK component.

[0028] According to one embodiment of this application, the processing module is further configured to: create a kernel network interface (KNI) component and a KNI virtual interface through the DPDK component; the sending module is further configured to: send another message sent by the base station to the KNI virtual interface, which processes it to obtain a fourth message; the sending module is further configured to: forward the fourth message to the AMF signaling board for processing based on the KNI virtual interface; the processing module is further configured to: monitor the processing of the fourth message by the AMF signaling board; the processing module is further configured to: determine whether to send feedback information of the fourth message to the base station through the KNI virtual interface based on the monitoring result.

[0029] According to one embodiment of this application, the processing module is further configured to determine whether to send the feedback information of the fourth message to the base station through the KNI virtual interface based on the monitoring result. Specifically, it monitors the response message data of the fourth message; if the response message data is detected, it notifies the sending module to send the response message data as the feedback information to the KNI virtual interface, and sends the feedback information to the base station through the KNI virtual interface. According to another embodiment of this application, the processing module is further configured to determine whether to send the feedback information of the fourth message to the base station through the KNI virtual interface based on the monitoring result. Specifically, it monitors the response message data of the fourth message; if the response message data is not detected, the base station will re-initiate the Flow Control Protocol (SCTP) link establishment.

[0030] According to one embodiment of this application, the processing module is further configured to determine whether to send the feedback information of the fourth message to the base station through the KNI virtual interface based on the monitoring result, specifically: obtaining a monitoring duration threshold for monitoring the response message data of the fourth message; if the response message data is not detected within the monitoring duration threshold, the base station will re-initiate SCTP link establishment.

[0031] To achieve the above objectives, a third aspect of this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the aforementioned message transmission method based on the Data Plane Software Development Kit (DPDK) technology.

[0032] To achieve the above objectives, a fourth aspect of this application provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the aforementioned message transmission method based on the Data Plane Software Development Kit (DPDK) technology.

[0033] To achieve the above objectives, a fifth aspect of this application provides a computer program product, including a computer program that, when executed by a processor, implements the message transmission method based on the Data Plane Software Development Kit (DPDK) technology as described above.

[0034] The technical solutions provided in this application have at least the following beneficial effects:

[0035] This application provides a message transmission method based on Data Plane Software Development Kit (DPDK) technology. Using the DPDK component in the Access and Mobility Management Function (AMF) interface board, a first message sent by the base station is split to obtain a second message. This second message is then forwarded to the corresponding target AMF signaling board for processing to obtain a third message. Based on the DPDK component, the third message is read from a buffer and sent to the base station. The buffer is used to cache the third message output by each AMF signaling board. By deploying the DPDK component, this application can increase the number of access base stations, achieving horizontal expansion of the AMF signaling board, reducing the load balancing of N2 traffic, lowering the latency and jitter of N2 network data packet transmission, and improving the user experience.

[0036] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description

[0037] The accompanying drawings are provided for a better understanding of this solution and do not constitute a limitation of this application. Wherein:

[0038] Figure 1 A flowchart illustrating a message transmission method based on the Data Plane Software Development Kit (DPDK) technology, provided for an embodiment of this application;

[0039] Figure 2 A schematic diagram of a DPDK component and a Linux processing hierarchy provided for embodiments of this application;

[0040] Figure 3 A schematic diagram illustrating how a Linux system processes data via a SOCKET, provided as an embodiment of this application;

[0041] Figure 4 This application provides a schematic diagram of data processing based on a DPDK component.

[0042] Figure 5 A flowchart illustrating another message transmission method based on the Data Plane Software Development Kit (DPDK) technology provided in this application embodiment;

[0043] Figure 6 A flowchart illustrating another message transmission method based on the Data Plane Software Development Kit (DPDK) technology provided in this application embodiment;

[0044] Figure 7 A schematic diagram illustrating message transmission based on the Data Plane Software Development Kit (DPDK) technology, provided as an embodiment of this application;

[0045] Figure 8 A flowchart illustrating another message transmission method based on the Data Plane Software Development Kit (DPDK) technology provided in this application embodiment;

[0046] Figure 9 A schematic diagram illustrating another message transmission based on the Data Plane Software Development Kit (DPDK) technology provided in this application embodiment;

[0047] Figure 10 A schematic diagram of the structure of a message transmission device based on the Data Plane Software Development Kit (DPDK) technology provided in this application embodiment;

[0048] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0049] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of this application, including various details to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this application. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0050] The following embodiments provide a detailed description of the message transmission method, apparatus, and electronic device based on the Data Plane Software Development Kit (DPDK) technology of this application.

[0051] Figure 1 This is a flowchart illustrating a message transmission method based on Data Plane Software Development Kit (DPDK) technology, provided in an embodiment of this application. It should be noted that the execution entity of this message transmission method based on DPDK technology is a message transmission device based on DPDK technology. Specifically, the message transmission device based on DPDK technology can be a hardware device or software within a hardware device. Examples of hardware devices include terminal devices and servers.

[0052] like Figure 1 As shown, the message transmission method based on the Data Plane Software Development Kit (DPDK) technology proposed in this embodiment includes the following steps:

[0053] S101, based on the DPDK component in the Access and Mobility Management Function (AMF) interface board, performs diversion processing on the first message sent by the base station to obtain the second message, and forwards the second message to the corresponding target AMF signaling board for processing to obtain the third message.

[0054] The AMF network element is divided into the AMF interface board, the AMF signaling board, and the AMF global board. The N2 interface of the AMF interface board is used for message transmission and reception, the AMF signaling board is responsible for message processing, and the AMF global board is responsible for network data and primary / backup control. Together, they complete the base station's access to the core network.

[0055] The Data Plane Development Kit (DPDK) is primarily based on the Linux system and is a collection of function libraries and drivers for fast packet processing. It can greatly improve data processing performance and throughput, and increase the efficiency of data plane applications.

[0056] It should be noted that this application does not impose any restrictions on the first message, which can be set according to the actual situation.

[0057] Optionally, the first message can be an application layer signaling protocol message, a flow control transmission protocol message, etc.

[0058] It should be noted that the DPDK component can be deployed in the AMF interface board to perform diversion processing on the first packet sent by the base station, diverting the first packet to different queues. A corresponding multi-threaded pipeline can be created based on the multi-queue method, and dequeue operation can be performed on each queue.

[0059] In this embodiment of the application, after obtaining the second message, the second message can be forwarded to the corresponding target AMF signaling board for processing to obtain the third message.

[0060] Optionally, the processing flow of the second message of the target AMF signaling board can be a base station access, user mobility management, registration management, or other processing flow.

[0061] S102, based on the DPDK component, reads the third message from the buffer and sends the third message to the base station. The buffer is used to cache the third message output by each AMF signaling board.

[0062] It should be noted that in related technologies, the Linux kernel that does not use DPDK components, the DPDK components, and the Linux processing hierarchy diagram are as follows: Figure 2 As shown, the AMF interface board's socket receives packets by using the Linux system to notify the central processing unit (CPU) of the presence of data packets via interrupts. The socket is an endpoint in the communication connection between two networks. The Linux system's socket data processing process is as follows: Figure 3As shown. However, as network traffic increases, the Linux system wastes more and more time processing interrupts. When the traffic rate reaches its limit, the Linux system may be overwhelmed by interrupts, wasting a lot of CPU resources.

[0063] Therefore, this application proposes a data processing procedure based on the Data Surface Software Development Kit (DPDK) technology, such as... Figure 4 As shown, the polling mode driver based on the DPDK component in user space allows the application to access the network device card without going through the Linux kernel. The network card device can transmit data packets to a pre-allocated buffer via group data transfer. The buffer is located in user space. The application can read the data packets by continuously polling and process them directly at the original address without interruption. It also saves the process of copying data packets from the kernel to the application layer.

[0064] It should be noted that after the second message is forwarded to the corresponding target AMF signaling board for processing, the third message can be read from the buffer based on the DPDK component and sent to the base station.

[0065] Optionally, the third message can be transmitted to a buffer in user space via Direct Memory Access (DMA), and the third message can be read from the buffer based on the DPDK component.

[0066] The packet transmission method proposed in this application, based on the Data Plane Software Development Kit (DPDK) technology, splits the first packet sent by the base station into a second packet using the DPDK component in the Access and Mobility Management Function (AMF) interface board. This second packet is then forwarded to the corresponding target AMF signaling board for processing. Based on the DPDK component, a third packet is read from the buffer and sent to the base station. The buffer is used to cache the third packet output by each AMF signaling board. By deploying the DPDK component, this application can increase the number of access base stations, achieving horizontal scaling of the AMF signaling board, reducing the load balancing of N2 traffic, lowering the latency and jitter of N2 network data packet transmission, and improving the user experience.

[0067] It should be noted that when the first message sent by the base station is split to obtain the second message, the Receive Side Scaling (RSS) component configured in the DPDK component can be used to split the first message sent by the base station and split the first message into different queues to obtain the second message.

[0068] Receive Side Scaling (RSS), also known as multi-queue receive, can distribute network receive processing among multiple hardware-based receive queues, thereby allowing multiple CPUs to handle inbound network traffic. RSS can be used to alleviate the bottleneck of receive interrupt processing caused by overload of a single central processing unit and reduce network latency.

[0069] Specifically, the RSS component configured in the DPDK component can calculate the hash value of the first message using a hash function, take the least significant bit of the hash value as the index of the Redirection Table (RETA), and allocate the first message to different queues according to the index value stored in the RETA to obtain the second message.

[0070] Furthermore, after obtaining the second message, the target AMF signaling board corresponding to the second message can be obtained from multiple AMF signaling boards based on the triple table information of the second message, and the second message can be forwarded to the corresponding target AMF signaling board for processing.

[0071] As one possible way to achieve this, such as Figure 5 As shown, based on the above embodiments, the specific process of obtaining the target AMF signaling board corresponding to the second message includes the following steps:

[0072] S501, obtain the triplet table information of the second message.

[0073] It should be noted that the triplet table information of the second message includes the source Internet Protocol (IP) address, the destination IP address, the protocol type, and the IP address of the AMF signaling board.

[0074] S502, based on the ternary table information, performs ternary table matching on the second message to obtain the target AMF signaling board corresponding to the second message.

[0075] In this embodiment of the application, after obtaining the triplet table information of the second message, the triplet table information of the second message can be matched with the triplet table information of the AMF signaling board. If the triplet table information of the second message matches the triplet table of the AMF signaling board, then the AMF signaling board is taken as the target AMF signaling board corresponding to the second message.

[0076] The message transmission method based on the Data Plane Software Development Kit (DPDK) technology proposed in this application can deploy multiple AMF signaling boards to achieve horizontal expansion of AMF signaling processing capabilities and load balancing among the signaling boards.

[0077] As one possible way to achieve this, such as Figure 6As shown, based on the above embodiment, the specific process of forwarding the second message to the corresponding target AMF signaling board for processing includes the following steps:

[0078] S601, obtain the physical address (MAC) of the network card required when forwarding the second message to the target AMF signaling board.

[0079] It should be noted that during message transmission, the message contains the physical addresses of the sender and receiver. The message is sent from the origin to the destination. In order to send the message correctly, it is necessary to obtain the physical address (MAC address) of the network card required for forwarding the second message to the target AMF signaling board.

[0080] The physical address (Media Access Control, or MAC) is used to identify the location of a network device.

[0081] It should be noted that this application does not impose any restrictions on the network card configuration; the appropriate configuration can be selected based on the actual situation. Optionally, AVS virtual network card, SR-IOV virtual network card, PASSTHROUGH network card, etc., can be selected based on performance requirements.

[0082] S602 encapsulates the MAC address using the Address Resolution Protocol (ARP) component, based on the MAC address.

[0083] It should be noted that MAC addresses can be learned through the Address Resolution Protocol (ARP) component, and the learned MAC addresses of the AMF signaling board can be encapsulated at Layer 2.

[0084] S603 forwards the second message to the corresponding target AMF signaling board based on the MAC address after Layer 2 encapsulation.

[0085] In this embodiment of the application, after obtaining the MAC address after Layer 2 encapsulation, the second message can be forwarded to the corresponding target AMF signaling board according to the MAC address after Layer 2 encapsulation. Furthermore, the target AMF signaling board can process the second message.

[0086] The following explains the message transmission method based on the Data Plane Software Development Kit (DPDK) technology proposed in this application.

[0087] For example, such as Figure 7As shown, a DPDK component can be deployed in the AMF interface board. When the number of connected base stations increases, the AMF interface board can distribute the packet data of each base station. That is, it uses the receiver extended RSS component to split the packet data into different queues and performs dequeue operation on each queue. It performs distribution table matching by configuring the distribution triple table (source IP, destination IP, protocol type, and corresponding AMF signaling board IP) locally. It matches the triple table information of the packet data with the triple table information of the AMF signaling board. If the triple table information of the packet data matches the triple table information of the AMF signaling board, it obtains the AMF signaling board IP corresponding to the packet data. It learns the MAC address of the peer through the Address Resolution Protocol (ARP) component. After learning the MAC address of the AMF signaling board, it performs Layer 2 encapsulation and sends it to the target AMF signaling board based on the DPDK component. After the AMF signaling board processes the packet, it sends the packet to the AMF interface board. After receiving the packet, the AMF interface board sends it to the corresponding base station through the routing module. Therefore, by deploying DPDK components, it is possible to support the access of more base stations and the deployment of multiple AMF signaling boards, thereby achieving horizontal expansion and load balancing of AMF signaling processing capabilities and reducing latency and jitter in N2 network packet data transmission.

[0088] It should be noted that the DPDK component can also be used to create the Kernel Network Interface (KNI) component and the KNI virtual interface to achieve packet transmission.

[0089] As one possible way to achieve this, such as Figure 8 As shown, based on the above embodiments, the specific process of the message transmission method based on the Data Plane Software Development Kit (DPDK) technology includes the following steps:

[0090] S801 uses the DPDK component to create the kernel network interface KNI component and KNI virtual interface.

[0091] It should be noted that KNI components and KNI virtual interfaces can be created based on the Kernel NIC Interface (KNI) technology provided by DPDK.

[0092] S802 sends another message sent by the base station to the KNI virtual interface, which processes it to obtain the fourth message.

[0093] It should be noted that the other message sent by the base station may be the same as or different from the first message; this application does not impose any restrictions.

[0094] It should be noted that the KNI component can send another message sent by the base station to the KNI virtual interface, which will then process it to obtain a fourth message.

[0095] Optionally, the KNI virtual interface can hand over the first message sent by the base station to the kernel protocol stack for processing.

[0096] It should be noted that this application does not impose any restrictions on the fourth message, which can be set according to the actual situation.

[0097] Optionally, the fourth message can be an application layer signaling protocol message, a flow control transmission protocol message, etc.

[0098] S803 forwards the fourth message to the AMF signaling board for processing based on the KNI virtual interface.

[0099] In this embodiment of the application, after obtaining the fourth message, the fourth message can be forwarded to the AMF signaling board for processing based on the KNI virtual interface.

[0100] S804 monitors the AMF signaling board's processing of the fourth message.

[0101] Optionally, after forwarding the fourth message to the AMF signaling board for processing, the processing of the fourth message by the AMF signaling board can be monitored, that is, whether there is corresponding message data after the AMF signaling board processes the fourth message.

[0102] S805 determines whether to send a fourth message feedback information to the base station through the KNI virtual interface based on the monitoring results.

[0103] Optionally, the response message data of the fourth message can be monitored. If the response message data is detected, it can be sent as feedback information to the KNI virtual interface, and the feedback information can be sent to the base station through the KNI virtual interface.

[0104] Furthermore, by monitoring the response message data of the fourth message, if no response message data is detected, the base station will re-initiate the Stream Control Transmission Protocol (SCTP) link establishment.

[0105] Furthermore, the monitoring duration threshold for the response message data of the fourth message can be obtained. If no response message data is detected within the monitoring duration threshold, the base station will re-initiate the Flow Control Protocol (SCTP) link establishment.

[0106] The following explains the message transmission method of the Data Plane Software Development Kit (DPDK) technology.

[0107] like Figure 9As shown, the AMF network element is designed for a miniaturized environment. This is achieved by using the KNI (Kernel Network Interface) technology provided by DPDK to route packets to the local N2 port IP address via the destination IP. Specifically, the DPDK component in the AMF interface board creates the KNI component and the KNI virtual interface device. Packet data is transmitted between user space and the kernel protocol stack via the virtual interface. When the network card receives packet data, the AMF interface board application retrieves the packet data to user space via the user space driver. The KNI component then sends the packet data to the KNI virtual interface, which hands it over to the kernel protocol stack for processing. If the AMF signaling board receives a response packet, it returns it to the KNI virtual interface and sends it back to the AMF interface board application. The sending of packet data to the kernel protocol stack and the receiving of packet data from the kernel protocol stack are processed by two different logical cores, without blocking the application's process of sending or receiving data packets from the kernel protocol stack. The entire transmission process is handled by multi-threading, resulting in high efficiency and speed.

[0108] To implement the above embodiments, this embodiment provides a message transmission device based on the Data Plane Software Development Kit (DPDK) technology. Figure 10 This is a schematic diagram of the structure of a message transmission device based on the Data Plane Software Development Kit (DPDK) technology, which is provided as an embodiment of this application.

[0109] like Figure 10 As shown, the message transmission device 1000 based on the Data Plane Software Development Kit (DPDK) technology includes: a processing module 110 and a sending module 120. Wherein,

[0110] Processing module 110 is used to perform diversion processing on the first message sent by the base station based on the DPDK component in the Access and Mobility Management Function (AMF) interface board to obtain the second message, and forward the second message to the corresponding target AMF signaling board for processing to obtain the third message;

[0111] The sending module 120 is used to read the third message from the buffer based on the DPDK component and send the third message to the base station, wherein the buffer is used to buffer the third message output by each AMF signaling board.

[0112] According to one embodiment of this application, the processing module 110 is used to perform diversion processing on a first message sent by a base station based on the DPDK component in the Access and Mobility Management Function (AMF) interface board to obtain a second message. Specifically, the first message sent by the base station is diverted through the receiver extended RSS component configured in the DPDK component, and the first message is diverted to different queues to obtain the second message.

[0113] According to one embodiment of this application, before forwarding the second message to the corresponding target AMF signaling board for processing, the processing module 110 is further configured to: obtain the target AMF signaling board corresponding to the second message from among the multiple AMF signaling boards based on the triple table information of the second message.

[0114] According to one embodiment of this application, the processing module 110 is configured to obtain the target AMF signaling board corresponding to the second message from multiple AMF signaling boards based on the triplet table information of the second message. Specifically, the module obtains the triplet table information of the second message and performs triplet table information matching on the second message according to the triplet table information to obtain the target AMF signaling board corresponding to the second message.

[0115] According to one embodiment of this application, the triplet table information includes: source Internet Protocol (IP) address, destination IP address, protocol type, and the IP address of the AMF signaling board.

[0116] According to one embodiment of this application, the processing module 110 is configured to perform triplet table information matching on the second message based on the triplet table information to obtain the target AMF signaling board corresponding to the second message. Specifically, the triplet table information of the second message is matched with the triplet table information of the AMF signaling board. If the triplet table information of the second message matches the triplet table information of the AMF signaling board, then the AMF signaling board is selected as the target AMF signaling board corresponding to the second message.

[0117] According to one embodiment of this application, the processing module 110 is used to forward the second message to the corresponding target AMF signaling board for processing. Specifically, it obtains the physical address (MAC) of the network card required when forwarding the second message to the target AMF signaling board; performs Layer 2 encapsulation on the MAC address using the Address Resolution Protocol (ARP) component; and forwards the second message to the corresponding target AMF signaling board based on the Layer 2 encapsulated MAC address.

[0118] According to one embodiment of this application, the sending module 120 is used to read a third message from a buffer based on the DPDK component, specifically: transmitting the third message to a buffer located in user space via Group Data Transfer (DMA) and reading the third message from the buffer based on the DPDK component.

[0119] According to one embodiment of this application, the processing module 110 is further configured to: create a kernel network interface (KNI) component and a KNI virtual interface through the DPDK component; the sending module 120 is further configured to: send another message sent by the base station to the KNI virtual interface, which processes it to obtain a fourth message; the sending module 120 is further configured to: forward the fourth message to the AMF signaling board for processing based on the KNI virtual interface; the processing module 110 is further configured to: monitor the processing of the fourth message by the AMF signaling board; the processing module 110 is further configured to: determine whether to send feedback information of the fourth message to the base station through the KNI virtual interface based on the monitoring result.

[0120] According to one embodiment of this application, the processing module 110 is further configured to determine whether to send the feedback information of the fourth message to the base station through the KNI virtual interface based on the monitoring result. Specifically, it monitors the response message data of the fourth message. If the response message data is detected, it notifies the sending module 120 to send the response message data as the feedback information to the KNI virtual interface, and sends the feedback information to the base station through the KNI virtual interface.

[0121] According to one embodiment of this application, the processing module 110 is further configured to determine whether to send the feedback information of the fourth message to the base station through the KNI virtual interface based on the monitoring result. Specifically, it monitors the response message data of the fourth message. If the response message data is not monitored, the base station will re-initiate the Flow Control Protocol (SCTP) link establishment.

[0122] According to one embodiment of this application, the processing module 110 is further configured to determine whether to send the feedback information of the fourth message to the base station through the KNI virtual interface based on the monitoring result, specifically: obtaining a monitoring duration threshold for monitoring the response message data of the fourth message; if the response message data is not detected within the monitoring duration threshold, the base station will re-initiate SCTP link establishment.

[0123] According to the message transmission device based on Data Plane Software Development Kit (DPDK) technology provided in this application, the first message sent by the base station is split and processed by the DPDK component in the Access and Mobility Management Function (AMF) interface board to obtain a second message. The second message is then forwarded to the corresponding target AMF signaling board for processing to obtain a third message. Based on the DPDK component, the third message is read from the buffer and sent to the base station. The buffer is used to cache the third message output by each AMF signaling board. This application, by deploying the DPDK component, can increase the number of access base stations, achieve horizontal expansion of the AMF signaling board, reduce the load sharing of N2 traffic, lower the latency and jitter of N2 network data packet transmission, and improve the user experience.

[0124] To implement the above embodiments, this application also proposes an electronic device 2000, such as... Figure 11 As shown, it includes a memory 210, a processor 220, and a computer program stored on the memory 210 and capable of running on the processor 220. When the processor executes the program, it implements the aforementioned message transmission method based on the Data Plane Software Development Kit (DPDK) technology.

[0125] To implement the above embodiments, this application also proposes a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the aforementioned message transmission method based on the Data Plane Software Development Kit (DPDK) technology.

[0126] To implement the above embodiments, this application also proposes a computer program product, including a computer program that, when executed by a processor, implements the message transmission method based on the Data Plane Software Development Kit (DPDK) technology as described above.

[0127] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this application can be achieved, and this is not limited herein.

[0128] The specific embodiments described above do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A message transmission method based on the Data Plane Software Development Kit (DPDK) technology, characterized in that, include: Based on the DPDK component deployed in the Access and Mobility Management Function (AMF) interface board, the first message sent by the base station is split to obtain the second message, and the second message is forwarded to the corresponding target AMF signaling board for processing to obtain the third message; Based on the DPDK component, the third message is read from the buffer and sent to the base station, wherein the buffer is used to cache the third message output by each AMF signaling board.

2. The message transmission method according to claim 1, characterized in that, The DPDK component in the Access and Mobility Management Function (AMF) interface board performs traffic splitting on the first message sent by the base station to obtain a second message, including: The first message sent by the base station is split into different queues by the receiver extended RSS component configured in the DPDK component to obtain the second message.

3. The message transmission method according to claim 1, characterized in that, Before forwarding the second message to the corresponding target AMF signaling board for processing, the following steps are included: From the multiple AMF signaling boards, based on the triple table information of the second message, the target AMF signaling board corresponding to the second message is obtained.

4. The message transmission method according to claim 3, characterized in that, The step of obtaining the target AMF signaling board corresponding to the second message from multiple AMF signaling boards based on the triple table information of the second message includes: Obtain the triplet table information of the second message; Based on the triplet table information, the second message is matched with the triplet table information to obtain the target AMF signaling board corresponding to the second message.

5. The message transmission method according to claim 4, characterized in that, The triplet table information includes: Source Internet Protocol (IP) address, destination IP address, protocol type, and the IP address of the AMF signaling board.

6. The message transmission method according to claim 4, characterized in that, The step of matching the second message with the triplet table information to obtain the target AMF signaling board corresponding to the second message includes: The triplet table information of the second message is matched with the triplet table information of the AMF signaling board. If the triplet table information of the second message matches the triplet table information of the AMF signaling board, then the AMF signaling board is designated as the target AMF signaling board corresponding to the second message.

7. The message transmission method according to claim 1, characterized in that, The step of forwarding the second message to the corresponding target AMF signaling board for processing includes: Obtain the physical address (MAC) of the network interface card required when forwarding the second message to the target AMF signaling board; Based on the MAC address, the MAC address is encapsulated in Layer 2 using the Address Resolution Protocol (ARP) component; Based on the MAC address after the second layer encapsulation, the second message is forwarded to the corresponding target AMF signaling board.

8. The message transmission method according to claim 1, characterized in that, The step of reading a third message from the buffer based on the DPDK component includes: The third message is transmitted to a buffer in user space via group data transfer (DMA) and read from the buffer based on the DPDK component.

9. The message transmission method according to claim 1, characterized in that, The method further includes: The DPDK component is used to create the kernel network interface KNI component and the KNI virtual interface; Another message sent by the base station is sent to the KNI virtual interface, which processes it to obtain a fourth message; The fourth message is forwarded to the AMF signaling board for processing based on the KNI virtual interface; Monitor the AMF signaling board's processing of the fourth message; Based on the monitoring results, determine whether to send the feedback information of the fourth message to the base station through the KNI virtual interface.

10. The message transmission method according to claim 9, characterized in that, The step of determining whether to send the fourth message to the base station through the KNI virtual interface based on the monitoring results includes: Listen to the response message data of the fourth message. If the response message data is detected, send the response message data as the feedback information to the KNI virtual interface. The feedback information is sent to the base station through the KNI virtual interface.

11. The message transmission method according to claim 9, characterized in that, The step of determining whether to send the fourth message to the base station through the KNI virtual interface based on the monitoring results is characterized by further comprising: The base station listens for the response message data of the fourth message. If the response message data is not heard, the base station will re-initiate the Flow Control Protocol (SCTP) link establishment.

12. The message transmission method according to claim 9, characterized in that, The step of determining whether to send the fourth message to the base station through the KNI virtual interface based on the monitoring results further includes: Obtain the listening duration threshold for the response message data of the fourth message; If no response message data is detected within the specified listening time threshold, the base station will re-initiate the Flow Control Protocol (SCTP) link establishment.

13. A message transmission device based on the Data Plane Software Development Kit (DPDK) technology, characterized in that, include: The processing module is used to perform diversion processing on the first message sent by the base station based on the DPDK component deployed in the Access and Mobility Management Function (AMF) interface board to obtain the second message, and forward the second message to the corresponding target AMF signaling board for processing to obtain the third message; The sending module is used to read the third message from the buffer based on the DPDK component and send the third message to the base station, wherein the buffer is used to buffer the third message output by each AMF signaling board.

14. The message transmission apparatus according to claim 13, characterized in that, The processing module is used to perform traffic splitting processing on the first packet sent by the base station based on the DPDK component in the Access and Mobility Management Function (AMF) interface board to obtain the second packet, specifically: The first message sent by the base station is split into different queues by the receiver extended RSS component configured in the DPDK component to obtain the second message.

15. The message transmission apparatus according to claim 13, characterized in that, Before forwarding the second message to the corresponding target AMF signaling board for processing, the processing module is further configured to: From the multiple AMF signaling boards, based on the triple table information of the second message, the target AMF signaling board corresponding to the second message is obtained.

16. The message transmission apparatus according to claim 15, characterized in that, The processing module is used to obtain the target AMF signaling board corresponding to the second message from multiple AMF signaling boards based on the triplet table information of the second message, specifically: Obtain the triplet table information of the second message; Based on the triplet table information, the second message is matched with the triplet table information to obtain the target AMF signaling board corresponding to the second message.

17. The message transmission apparatus according to claim 16, characterized in that, The triplet table information includes: Source Internet Protocol (IP) address, destination IP address, protocol type, and the IP address of the AMF signaling board.

18. The message transmission apparatus according to claim 16, characterized in that, The processing module is configured to perform triplet table information matching on the second message according to the triplet table information to obtain the target AMF signaling board corresponding to the second message. Specifically, the triplet table information of the second message is matched with the triplet table information of the AMF signaling board. If the triplet table information of the second message matches the triplet table information of the AMF signaling board, then the AMF signaling board is selected as the target AMF signaling board corresponding to the second message.

19. The message transmission apparatus according to claim 13, characterized in that, The processing module is used to forward the second message to the corresponding target AMF signaling board for processing, specifically: Obtain the physical address (MAC) of the network interface card required when forwarding the second message to the target AMF signaling board; Based on the MAC address, the MAC address is encapsulated in Layer 2 using the Address Resolution Protocol (ARP) component; Based on the MAC address after the second layer encapsulation, the second message is forwarded to the corresponding target AMF signaling board.

20. The message transmission apparatus according to claim 13, characterized in that, The sending module is used to read the third message from the buffer based on the DPDK component, specifically: The third message is transmitted to a buffer in user space via group data transfer (DMA) and read from the buffer based on the DPDK component.

21. The message transmission apparatus according to claim 13, characterized in that, The processing module is further configured to: create a kernel network interface KNI component and a KNI virtual interface through the DPDK component; The sending module is further configured to: send another message sent by the base station to the KNI virtual interface, and have the KNI virtual interface process it to obtain a fourth message; The sending module is further configured to: forward the fourth message to the AMF signaling board for processing based on the KNI virtual interface; The processing module is also used to: monitor the AMF signaling board's processing of the fourth message; The processing module is further configured to: determine, based on the monitoring results, whether to send the feedback information of the fourth message to the base station through the KNI virtual interface.

22. The message transmission apparatus according to claim 21, characterized in that, The processing module is further configured to determine, based on the monitoring results, whether to send the feedback information of the fourth message to the base station through the KNI virtual interface, specifically: The system monitors the response message data of the fourth message. If the response message data is detected, the system notifies the sending module to send the response message data as feedback information to the KNI virtual interface, and then sends the feedback information to the base station through the KNI virtual interface.

23. The message transmission apparatus according to claim 21, characterized in that, The processing module is further configured to determine, based on the monitoring results, whether to send the feedback information of the fourth message to the base station through the KNI virtual interface, specifically: The base station listens for the response message data of the fourth message. If the response message data is not heard, the base station will re-initiate the Flow Control Protocol (SCTP) link establishment.

24. The message transmission apparatus according to claim 21, characterized in that, The processing module is used to determine, based on the monitoring results, whether to send the fourth message to the base station via the KNI virtual interface, specifically as follows: Obtain the listening duration threshold for the response message data of the fourth message; If no response message data is detected within the specified listening time threshold, the base station will re-initiate SCTP link establishment.

25. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-12.

26. A non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method of any one of claims 1-12.

Citation Information

Patent Citations

  • Shunting method, device and system, processing equipment and storage medium

    CN111371694A