CN117545011A - Message transmission method and device based on DPDK technology and electronic equipment - Google Patents

Message transmission method and device based on DPDK technology and electronic equipment Download PDF

Info

Publication number
CN117545011A
CN117545011A CN202210916619.1A CN202210916619A CN117545011A CN 117545011 A CN117545011 A CN 117545011A CN 202210916619 A CN202210916619 A CN 202210916619A CN 117545011 A CN117545011 A CN 117545011A
Authority
CN
China
Prior art keywords
message
base station
dpdk
kni
board
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210916619.1A
Other languages
Chinese (zh)
Inventor
吕俊明
刘杰
张奇奇
赵昕
程方
温红根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN202210916619.1A priority Critical patent/CN117545011A/en
Publication of CN117545011A publication Critical patent/CN117545011A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0226Traffic management, e.g. flow control or congestion control based on location or mobility
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/08Load balancing or load distribution
    • H04W28/09Management thereof
    • H04W28/0958Management thereof based on metrics or performance parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/12Flow control between communication endpoints using signalling between network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints
    • H04W28/14Flow control between communication endpoints using intermediate storage

Abstract

The application provides a message transmission method, a message transmission device and electronic equipment based on a DPDK technology of a data plane software development kit, wherein the method comprises the following steps: based on a DPDK component in an AMF interface board, carrying out 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; and based on the DPDK component, reading the third message from a buffer area and sending the third message to the base station, wherein the buffer area is used for buffering the third message output by each AMF signaling board. According to the method and the device, the number of the access base stations can be increased through deployment of the DPDK component, the transverse capacity expansion of the AMF signaling board is realized, the load sharing of N2 flow is reduced, the time delay and jitter of N2 network data message transmission are reduced, and the use experience of a user is improved.

Description

Message transmission method and device based on DPDK technology and electronic equipment
Technical Field
The application relates to the technical field of communication, in particular to a message transmission method based on a DPDK (digital video broadcasting) technology of a data plane software development kit.
Background
In a new generation core Network (Next Generation Core Net, abbreviated as NGC) architecture of the fifth generation mobile communication technology, access control is responsible for serving as an independent Network Function (NF), a large number of base stations are accessed to the core Network through an N2 port of an access and mobility management Function (Access and Mobility Management Function, abbreviated as AMF), an N2 interface of an AMF interface board uses a SOCKET for message receiving and transmitting, and after the message is sent to an AMF signaling board, the AMF signaling board is responsible for processing the message, and an AMF global board is responsible for controlling Network element data and primary and secondary, so that the base stations access the core Network in a cooperative manner.
However, when a large number of base stations are accessed, the performance of an external N2 port of the AMF interface board is insufficient when SOCKET is used, so that data packet loss is caused, heartbeat disconnection of the connected base stations is caused due to high flow, and a series of problems such as offline of users, increased time delay of data transmission and the like are caused. Therefore, how to efficiently and reliably transmit the message has become a problem to be solved.
Disclosure of Invention
The application provides a message transmission method based on a DPDK technology of a data plane software development kit, which can increase the number of access base stations by deploying DPDK components, realize the transverse capacity expansion of an AMF signaling board, reduce the load sharing of N2 flow, reduce the time delay and jitter of N2 network data message transmission and improve the use experience of users.
According to a first aspect of the present application, a packet transmission method based on a DPDK technology of a data plane software development kit is provided, including: based on a DPDK component in an AMF interface board, carrying out 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; and based on the DPDK component, reading the third message from a buffer area and sending the third message to the base station, wherein the buffer area is used for buffering the third message output by each AMF signaling board.
In addition, the message transmission method based on the DPDK technology of the data plane software development kit provided in the first aspect of the present application may further have the following additional technical features:
according to an embodiment of the present application, the splitting processing is performed on the first packet sent by the base station based on the DPDK component in the AMF interface board to obtain a second packet, where the splitting processing includes: and carrying out shunting processing on the first message sent by the base station through a receiving end extension RSS component configured in the DPDK component, and shunting the first message to different queues to obtain the second message.
According to an embodiment of the present application, before forwarding the second packet to the corresponding target AMF signaling board for processing, the method includes: and acquiring a target AMF signaling board corresponding to the second message from the AMF signaling boards based on the triplet table information of the second message.
According to an embodiment of the present application, the obtaining, from a plurality of AMF signaling boards, the target AMF signaling board corresponding to the second message based on the triplet table information of the second message includes: acquiring triple table information of the second message; and performing triple table information matching on the second message according to the triple table information so as to acquire a target AMF signaling board corresponding to the second message.
According to one embodiment of the present application, the triplet table information includes: a source internet protocol IP address, a destination IP address, a protocol type, and an IP address of the AMF signaling board.
According to an embodiment of the present application, performing triplet table information matching on the second packet according to the triplet table information to obtain a target AMF signaling board corresponding to the second packet includes: and matching the triplet list information of the second message with the triplet list information of the AMF signaling board, and taking the AMF signaling board as a target AMF signaling board corresponding to the second message if the triplet list information of the second message is consistent with the triplet list of the AMF signaling board.
According to an embodiment of the present application, the forwarding the second packet to the corresponding target AMF signaling board for processing includes: acquiring a physical address MAC of a network card required by the second message when the second message is forwarded to the target AMF signaling board; according to the MAC address, performing two-layer encapsulation on the MAC address through an Address Resolution Protocol (ARP) component; and forwarding the second message to the corresponding target AMF signaling board according to the MAC address after the two-layer encapsulation.
According to an embodiment of the present application, the reading, based on the DPDK module, the third packet from the buffer area includes: transmitting the third message to a buffer area in a user space in a mode of group data transmission DMA, and reading the third message from the buffer area based on the DPDK component.
According to one embodiment of the present application, the method further comprises: creating a kernel network interface KNI component and a KNI virtual interface through the DPDK component; transmitting another message transmitted by the base station to the KNI virtual interface, and processing the message by the KNI virtual interface to obtain a fourth message; forwarding the fourth message to an AMF signaling board for processing based on a KNI virtual interface; monitoring the processing process of the AMF signaling board to the fourth message; and determining whether to send feedback information of the fourth message to the base station through the KNI virtual interface according to the monitoring result.
According to an embodiment of the present application, the determining, according to a monitoring result, whether to send feedback information of the fourth packet to the base station through the KNI virtual interface includes: monitoring response message data of the fourth message, and if the response message data is monitored, sending the response message data to the KNI virtual interface as the feedback information; and sending the feedback information to the base station through the KNI virtual interface.
According to an embodiment of the present application, the determining, according to the monitoring result, whether to send feedback information of the fourth packet to the base station through the KNI virtual interface is further characterized by comprising:
and monitoring response message data of the fourth message, and if the response message data is not monitored, restarting the establishment of the SCTP link by the base station.
According to one embodiment of the present application, the method further comprises: acquiring a monitoring time length threshold value of the response message data of the fourth message; and under the condition that the response message data is not monitored within the monitoring duration threshold, the base station can reinitiate the establishment of the SCTP link.
The second aspect of the present application further provides a packet transmission device based on a DPDK technology of a data plane software development kit, where the device includes: the processing module is used for carrying out shunting processing on the first message sent by the base station based on a DPDK component in the AMF interface board of the access and mobility management function 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 the sending module is used for reading the third message from a buffer area based on the DPDK component and sending the third message to the base station, wherein the buffer area is used for buffering the third message output by each AMF signaling board.
The message transmission device based on the DPDK technology of the software development kit for data plane provided in the second aspect of the present application may further have the following additional technical features:
according to an embodiment of the present application, the processing module is configured to perform, based on a DPDK component in an AMF interface board, a splitting process on a first packet sent by a base station to obtain a second packet, where the splitting process is specifically: and carrying out shunting processing on the first message sent by the base station through a receiving end extension RSS component configured in the DPDK component, and shunting the first message to different queues to obtain the second message.
According to an embodiment of the present application, the processing module is configured to, before forwarding the second packet to a corresponding target AMF signaling board for processing, further be configured to: and acquiring a target AMF signaling board corresponding to the second message from the AMF signaling boards based on the triplet table information of the second message.
According to an embodiment of the present application, the processing module is configured to obtain, from a plurality of AMF signaling boards, a target AMF signaling board corresponding to the second packet based on the triplet table information of the second packet, where the target AMF signaling board specifically is: acquiring triple table information of the second message; and performing triple table information matching on the second message according to the triple table information so as to acquire a target AMF signaling board corresponding to the second message.
According to one embodiment of the present application, the triplet table information includes: a source internet protocol IP address, a destination IP address, a protocol type, and an IP address of the AMF signaling board.
According to an embodiment of the present application, the processing module is configured to perform triplet table information matching on the second packet according to the triplet table information, so as to obtain a target AMF signaling board corresponding to the second packet, and specifically is: and matching the triplet list information of the second message with the triplet list information of the AMF signaling board, and taking the AMF signaling board as a target AMF signaling board corresponding to the second message if the triplet list information of the second message is consistent with the triplet list of the AMF signaling board.
According to an embodiment of the present application, the processing module is configured to forward the second packet to a corresponding target AMF signaling board for processing, specifically: acquiring a physical address MAC of a network card required by the second message when the second message is forwarded to the target AMF signaling board; according to the MAC address, performing two-layer encapsulation on the MAC address through an Address Resolution Protocol (ARP) component; and forwarding the second message to the corresponding target AMF signaling board according to the MAC address after the two-layer encapsulation.
According to an embodiment of the present application, the sending module is configured to read, based on the DPDK module, a third packet from a buffer, specifically: transmitting the third message to a buffer area in a user space in a mode of group data transmission DMA, and reading the third message from the buffer area based on the DPDK component.
According to one embodiment of the application, the processing module is further configured to: creating a kernel network interface KNI component and a KNI virtual interface through the DPDK component; the sending module is further configured to: transmitting another message transmitted by the base station to the KNI virtual interface, and processing the message by the KNI virtual interface to obtain a fourth message; the sending module is further configured to: forwarding the fourth message to an AMF signaling board for processing based on a KNI virtual interface; the processing module is further configured to: monitoring the processing process of the AMF signaling board to the fourth message; the processing module is further configured to: and determining whether to send feedback information of the fourth message to the base station through the KNI virtual interface according to the monitoring result.
According to an embodiment of the present application, the processing module is further configured to determine, according to a monitoring result, whether to send feedback information of the fourth packet to the base station through the KNI virtual interface, where the feedback information is specifically: and monitoring response message data of the fourth message, if the response message data is monitored, informing the sending module to send the response message data to the KNI virtual interface as the feedback information, and sending the feedback information to the base station through the KNI virtual interface. According to an embodiment of the present application, the processing module is further configured to determine, according to a monitoring result, whether to send feedback information of the fourth packet to the base station through the KNI virtual interface, where the feedback information is specifically: and monitoring response message data of the fourth message, and if the response message data is not monitored, restarting the establishment of the SCTP link by the base station.
According to an embodiment of the present application, the processing module is further configured to determine, according to a monitoring result, whether to send feedback information of the fourth packet to the base station through the KNI virtual interface, where the feedback information is specifically: acquiring a monitoring time length threshold value of the response message data of the fourth message; and under the condition that the response message data is not monitored within the monitoring duration threshold, the base station reinitiates SCTP link establishment.
In order to achieve the above objective, an embodiment of a third aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the foregoing method for transmitting a packet based on the DPDK technology of the data plane software development kit when executing the program.
To achieve the above object, a fourth aspect of the present application proposes a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the aforementioned method for transmitting a message based on the DPDK technique of the data plane software development kit.
To achieve the above object, an embodiment of a fifth aspect of the present application proposes a computer program product comprising a computer program which, when executed by a processor, implements a method for transmitting a message based on the data plane software development kit DPDK technique as described above.
The technical scheme provided by the embodiment of the application at least comprises the following beneficial effects:
the application provides a message transmission method based on a DPDK technology of a data plane software development kit, which is based on a DPDK component in an AMF interface board of an access and mobility management function, and the method comprises the steps of carrying out 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; and based on the DPDK component, reading the third message from a buffer area and sending the third message to the base station, wherein the buffer area is used for buffering the third message output by each AMF signaling board. According to the method and the device, the number of the access base stations can be increased through deployment of the DPDK component, the transverse capacity expansion of the AMF signaling board is realized, the load sharing of N2 flow is reduced, the time delay and jitter of N2 network data message transmission are reduced, and the use experience of a user is improved.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
fig. 1 is a flow chart of a message transmission method based on a DPDK technology of a data plane software development kit according to an embodiment of the present application;
fig. 2 is a schematic diagram of a DPDK assembly and linux processing hierarchy chart according to an embodiment of the present application;
fig. 3 is a schematic diagram of a linux system socks processing data according to an embodiment of the present application;
fig. 4 is a schematic diagram of processing data based on a DPDK component according to an embodiment of the present application;
fig. 5 is a flowchart of another message transmission method based on the DPDK technology of the data plane software development kit according to an embodiment of the present application;
fig. 6 is a flowchart of another message transmission method based on the DPDK technology of the data plane software development kit according to an embodiment of the present application;
fig. 7 is a schematic diagram of packet transmission based on a DPDK technology of a data plane software development kit according to an embodiment of the present application;
Fig. 8 is a flowchart of another packet transmission method based on the DPDK technology of the data plane software development kit according to an embodiment of the present application;
fig. 9 is a schematic diagram of another message transmission based on the DPDK technology of the data plane software development kit according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a message transmission device based on a DPDK technology of a data plane software development kit according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The following adopts the embodiments to describe the message transmission method, the device and the electronic equipment based on the DPDK technology of the data plane software development kit in detail.
Fig. 1 is a flow chart of a message transmission method based on a DPDK technology of a data plane software development kit according to an embodiment of the present application. It should be noted that, the execution body of the packet transmission method based on the data plane software development kit DPDK technology in this embodiment is a packet transmission device based on the data plane software development kit DPDK technology, and the packet transmission device based on the data plane software development kit DPDK technology may specifically be a hardware device, or software in a hardware device, etc. Wherein the hardware devices such as terminal devices, servers, etc.
As shown in fig. 1, the message transmission method based on the DPDK technology of the data plane software development kit according to this embodiment includes the following steps:
s101, based on a DPDK component in an AMF interface board, carrying out 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.
The AMF network element is divided into an AMF interface board, an AMF signaling board and an AMF global board. The amf interface board N2 interface is used for receiving and transmitting messages, the amf signaling board is used for processing the messages, the amf global board is used for controlling network element data and the master and slave, and the base station is connected to the core network in a cooperative mode.
The data plane development suite (Data Plane Development Kit, abbreviated as DPDK) is mainly operated based on a Linux system, and is used for a function library and a driving set for rapid data packet processing, so that data processing performance and throughput can be greatly improved, and working efficiency of a data plane application program can be improved.
It should be noted that, in the present application, the first message is not limited, and may be set according to actual situations.
Alternatively, the first packet may be an application layer signaling protocol packet, a flow control transmission protocol packet, or the like.
It should be noted that, the DPDK component may be disposed in the AMF interface board, and the first packet sent by the base station may be split, so that the first packet may be split into different queues, and a corresponding multithreading pipeline may be created based on a multi-queue manner, and dequeuing operation may be performed on each queue.
In this embodiment of the present application, after the second packet is obtained, the second packet may be forwarded to a corresponding target AMF signaling board for processing, so as to obtain a third packet.
Optionally, the processing flow of the second message of the target AMF signaling board may be a processing flow of base station access, user mobility management, registration management, and the like.
S102, based on the DPDK component, reading the third message from a buffer area and sending the third message to the base station, wherein the buffer area is used for buffering the third message output by each AMF signaling board.
It should be noted that, in the related art, a linux kernel of a DPDK component is not used, the DPDK component and a linux processing hierarchy chart are shown in fig. 2, and an AMF interface board SOCKET packet is used to notify a central processing unit (central processing unit, abbreviated as CPU) that there is a data packet by using a linux system in an interrupt manner, where the SOCKET is an endpoint in respective communication connection of two networks, and a process of processing data by using the linux system SOCKET is shown in fig. 3. However, when the traffic of the network is larger and larger, the linux system wastes more and more time to process the interrupt, and when the traffic rate reaches the upper limit, the linux system may be submerged by the interrupt, which wastes much CPU resources.
Therefore, the present application proposes a process for processing data based on a DPDK (digital versatile disc) technology of a data plane software development kit, as shown in fig. 4, based on a polling mode driver of a DPDK component user space, the user space driver enables an application program to access a network device card without passing through a linux kernel, and the network device can transmit a data packet to a buffer area allocated in advance in a group data transmission manner, wherein the buffer area is located in the user space, the application program can read the data packet in a continuous polling manner and directly process the data packet at an original address without interruption, and meanwhile, a data packet copying process from the kernel to an application layer is omitted.
It should be noted that, after the second message is forwarded to the corresponding target AMF signaling board for processing, the third message may be read from the buffer area based on the DPDK component, and the third message may be sent to the base station.
Alternatively, the third message may be transferred to a buffer located in the user space by means of group data transfer (Direct Memory Access, abbreviated as DMA), and the third message may be read from the buffer based on the DPDK component.
According to the message transmission method based on the DPDK technology of the data plane software development kit, the first message sent by the base station is subjected to split processing through the DPDK component in the AMF interface board based on the access and mobility management function to obtain the second message, the second message is forwarded to the corresponding target AMF signaling board to be processed, the third message is read from the buffer area based on the DPDK component, and the third message is sent to the base station, wherein the buffer area is used for buffering the third message output by each AMF signaling board. According to the method and the device, the number of the access base stations can be increased through deployment of the DPDK component, the transverse capacity expansion of the AMF signaling board is realized, the load sharing of N2 flow is reduced, the time delay and jitter of N2 network data message transmission are reduced, and the use experience of a user is improved.
When the first message sent by the base station is subjected to splitting processing to obtain the second message, the first message sent by the base station can be subjected to splitting processing through a receiving end extension (Receive Side Scaling, abbreviated as RSS) component configured in the DPDK component, and the first message is split into different queues to obtain the second message.
Among other things, a receiver side extension (Receive Side Scaling, abbreviated RSS), also known as multi-queue reception, may distribute network reception processing among multiple hardware-based receive queues, allowing multiple CPUs to handle inbound network traffic, RSS may be used to alleviate reception interruption processing bottlenecks caused by single central processor overload, and reduce network latency.
Specifically, the RSS component configured in the DPDK component may calculate a hash value of the first packet through a hash function, take a least significant bit of the hash value as an index of a redirection table (Redirection Table, referred to as RETA for short), and allocate the first packet to different queues according to a stored index value in the RETA, so as to obtain the second packet.
Further, after the second message is acquired, the target AMF signaling board corresponding to the second message can be acquired from the multiple AMF signaling boards based on the triplet table information of the second message, and the second message is forwarded to the corresponding target AMF signaling board for processing.
As a possible implementation manner, as shown in fig. 5, on the basis of the foregoing embodiment, a specific process of obtaining a target AMF signaling board corresponding to the second packet includes the following steps:
s501, acquiring triple table information of a second message.
It should be noted that the triplet table information of the second packet includes a source internet protocol (Internet Protocol, abbreviated as IP) address, a destination IP address, a protocol type, and an IP address of the AMF signaling board.
S502, performing triple table information matching on the second message according to the triple table information to obtain a target AMF signaling board corresponding to the second message.
In this embodiment of the present application, after the triplet table information of the second packet is obtained, the triplet table information of the second packet may be matched with the triplet table information of the AMF signaling board, and if the triplet table information of the second packet is consistent with the match of the triplet table of the AMF signaling board, the AMF signaling board is used as the target AMF signaling board corresponding to the second packet.
According to the message transmission method based on the DPDK technology of the data plane software development kit, a plurality of AMF signaling boards can be deployed, the transverse capacity expansion of AMF signaling processing capacity is realized, and load balancing among the signaling boards can be realized.
As a possible implementation manner, as shown in fig. 6, on the basis of the foregoing embodiment, a specific process of forwarding the second packet to the corresponding target AMF signaling board for processing includes the following steps:
s601, acquiring the physical address MAC of the network card required by forwarding the second message to the target AMF signaling board.
It should be noted that, when the message is transmitted, the message includes physical addresses of the sender and the receiver, and the message is sent from the origin to the destination, so that in order to correctly send the message, it is necessary to obtain the physical address MAC of the network card required when the second message is forwarded to the target AMF signaling board.
Wherein a physical address (Media Access Control, MAC for short) can be used to identify the address of the network device location.
It should be noted that, the setting of the network card is not limited in this application, and may be selected according to actual situations. Optionally, an AVS virtual network card, an SR-IOV virtual network card PASSTHROUGH network card and the like can be selected according to performance requirements.
S602, according to the MAC address, the MAC address is subjected to two-layer encapsulation through an address resolution protocol (Address Resolution Protocol, ARP for short) component.
It should be noted that, the address resolution protocol ARP component may learn the MAC address, and perform two-layer encapsulation on the learned MAC address of the AMF signaling board.
S603, forwarding the second message to the corresponding target AMF signaling board according to the MAC address after the two-layer encapsulation.
In this embodiment of the present application, after the two-layer encapsulated MAC address is obtained, the second packet may be forwarded to the corresponding target AMF signaling board according to the two-layer encapsulated MAC address, and further, the target AMF signaling board may process the second packet.
The following explains a message transmission method based on the DPDK technology of the data plane software development kit.
For example, as shown in fig. 7, a DPDK component may be deployed in the AMF interface board, when the number of base stations that are connected increases, the AMF interface board may distribute the message data of each base station, that is, utilize the receiving end to expand the RSS component to shunt the message data to different queues, and perform dequeuing operation on each queue, perform distribution table matching by locally configuring and distributing a triplet table (source IP, destination IP, protocol type and corresponding AMF signaling board IP), match the triplet table information of the message data with the triplet table information of the AMF signaling board, if the triplet table information of the message data matches with the triplet table of the AMF signaling board, obtain the AMF signaling board IP corresponding to the message data, perform two-layer encapsulation after learning the MAC address of the AMF signaling board by using the address resolution protocol ARP component, send the message to the target AMF signaling board based on the DPDK component, send the message to the AMF interface board after the message processing is completed, and send the message to the AMF interface board to the corresponding router module through the base station. Therefore, based on deployment of DPDK components, more base stations can be supported to be accessed, a plurality of AMF signaling boards are deployed, transverse capacity expansion and load balancing of AMF signaling processing capacity are achieved, and time delay and jitter of N2 network message data transmission are reduced.
It should be noted that, the kernel network interface KNI component and the KNI virtual interface may also be created by the DPDK component to implement message transmission.
As a possible implementation manner, as shown in fig. 8, based on the above embodiment, a specific procedure of a packet transmission method based on the data plane software development suite DPDK technology includes the following steps:
s801, a kernel network interface KNI component and a KNI virtual interface are created through a DPDK component.
It should be noted that, the KNI component and the KNI virtual interface may be created based on a kernel network interface (Kernel NIC Interface, abbreviated as KNI) technology provided by DPDK.
S802, transmitting another message transmitted by the base station to the KNI virtual interface, and processing the message by the KNI virtual interface to obtain a fourth message.
It should be noted that, the other message sent by the base station may be the same as or different from the first message, which is not limited in this application.
It should be noted that, the KNI component may send another message sent by the base station to the KNI virtual interface, and the KNI virtual interface processes the another message to obtain a fourth message.
Optionally, the first message sent by the base station may be handed to the kernel protocol stack by the KNI virtual interface for processing.
Note that, the fourth message is not limited in this application, and may be set according to actual situations.
Optionally, the fourth packet may be an application layer signaling protocol packet, a flow control transmission protocol packet, or the like.
S803, forwarding the fourth message to the AMF signaling board for processing based on the KNI virtual interface.
In this embodiment of the present application, after the fourth packet is obtained, the fourth packet may be forwarded to the AMF signaling board for processing based on the KNI virtual interface.
S804, monitoring the processing process of the AMF signaling board to the fourth message.
Optionally, after forwarding the fourth message to the AMF signaling board for processing, the processing procedure of the AMF signaling board on the fourth message may be monitored, that is, whether the AMF signaling board processes the fourth message and has corresponding message data or not is monitored.
S805, determining whether to send feedback information of the fourth message to the base station through the KNI virtual interface according to the monitoring result.
Optionally, the response message data of the fourth message is monitored, if the response message data is monitored, the response message data can be used as feedback information to be sent to the KNI virtual interface, and the feedback information can be sent to the base station through the KNI virtual interface.
Further, by monitoring the response message data of the fourth message, if the response message data is not monitored, the base station will reinitiate the link establishment of the flow control protocol (Stream Control Transmission Protocol, abbreviated as SCTP).
Further, a monitoring duration threshold for monitoring the response message data of the fourth message can be obtained, and if the response message data is not monitored within the monitoring duration threshold, the base station can reinitiate the establishment of the stream control protocol SCTP link.
The following explains the procedure of the message transmission method of the DPDK technology of the data plane software development kit.
As shown in fig. 9, the AMF network element is in a miniaturized environment, that is, a packet is hit to the N2 port IP of the version through the destination IP by using the kernel network interface library KNI technology provided by DPDK. The method comprises the steps that a KNI module and a KNI virtual interface device are built by a DPDK module in an AMF interface board, message data are transmitted between a user space and a kernel protocol stack through a virtual interface, when the network card receives the message data, an AMF interface board application program obtains the message data to the user space through a user space driver, the KNI module sends the message data to the KNI virtual interface, the KNI virtual interface gives the kernel protocol stack to be processed, and if a response message exists after the processing of the AMF signaling board, the response message is given to the KNI virtual interface to be returned to the AMF interface board application program. The process that the application program is not blocked to enable the kernel protocol stack to send data packets or receive the data packets from the kernel protocol stack is carried out by two different logic cores respectively, and the whole transmission process is carried out by multithreading, so that the efficiency is high.
In order to implement the above embodiment, the present embodiment provides a packet transmission device based on the DPDK technology of the data plane software development kit, and fig. 10 is a schematic structural diagram of the packet transmission device based on the DPDK technology of the data plane software development kit provided in the embodiment of the present application.
As shown in fig. 10, the packet transmission device 1000 based on the DPDK technology of the data plane software development kit includes: a processing module 110 and a transmitting module 120. Wherein,
the processing module 110 is configured to perform splitting processing on the first message sent by the base station based on the DPDK component in the 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 the sending module 120 is configured to read the third packet from a buffer area based on the DPDK module, and send the third packet to the base station, where the buffer area is used to buffer the third packet output by each AMF signaling board.
According to an embodiment of the present application, the processing module 110 is configured to perform, based on a DPDK component in an AMF interface board, a splitting process on a first packet sent by a base station to obtain a second packet, where the second packet is specifically: and carrying out shunting processing on the first message sent by the base station through a receiving end extension RSS component configured in the DPDK component, and shunting the first message to different queues to obtain the second message.
According to an embodiment of the present application, the processing module 110 is configured to, before forwarding the second packet to the corresponding target AMF signaling board for processing, further be configured to: and acquiring a target AMF signaling board corresponding to the second message from the AMF signaling boards based on the triplet table information of the second message.
According to an embodiment of the present application, the processing module 110 is configured to obtain, from a plurality of AMF signaling boards, a target AMF signaling board corresponding to the second message based on the triplet table information of the second message, where the target AMF signaling board specifically is: acquiring triple table information of the second message; and performing triple table information matching on the second message according to the triple table information so as to acquire a target AMF signaling board corresponding to the second message.
According to one embodiment of the present application, triplet table information includes: a source internet protocol IP address, a destination IP address, a protocol type, and an IP address of the AMF signaling board.
According to an embodiment of the present application, the processing module 110 is configured to perform triplet table information matching on the second packet according to the triplet table information to obtain a target AMF signaling board corresponding to the second packet, specifically: and matching the triplet list information of the second message with the triplet list information of the AMF signaling board, and taking the AMF signaling board as a target AMF signaling board corresponding to the second message if the triplet list information of the second message is consistent with the triplet list of the AMF signaling board.
According to an embodiment of the present application, the processing module 110 is configured to forward the second packet to a corresponding target AMF signaling board for processing, specifically: acquiring a physical address MAC of a network card required by the second message when the second message is forwarded to the target AMF signaling board; according to the MAC address, performing two-layer encapsulation on the MAC address through an Address Resolution Protocol (ARP) component; and forwarding the second message to the corresponding target AMF signaling board according to the MAC address after the two-layer encapsulation.
According to an embodiment of the present application, the sending module 120 is configured to read, based on the DPDK module, a third packet from the buffer, specifically: transmitting the third message to a buffer area in a user space in a mode of group data transmission DMA, and reading the third message from the buffer area based on the DPDK component.
According to one embodiment of the present application, the processing module 110 is further configured to: creating a kernel network interface KNI component and a KNI virtual interface through the DPDK component; the sending module 120 is further configured to: transmitting another message transmitted by the base station to the KNI virtual interface, and processing the message by the KNI virtual interface to obtain a fourth message; the sending module 120 is further configured to: forwarding the fourth message to an AMF signaling board for processing based on a KNI virtual interface; the processing module 110 is further configured to: monitoring the processing process of the AMF signaling board to the fourth message; the processing module 110 is further configured to: and determining whether to send feedback information of the fourth message to the base station through the KNI virtual interface according to the monitoring result.
According to an embodiment of the present application, the processing module 110 is further configured to determine, according to a monitoring result, whether to send feedback information of the fourth message to the base station through the KNI virtual interface, specifically: and monitoring response message data of the fourth message, and if the response message data is monitored, notifying the sending module 120 to send the response message data to the KNI virtual interface as the feedback information, and sending the feedback information to the base station through the KNI virtual interface.
According to an embodiment of the present application, the processing module 110 is further configured to determine, according to a monitoring result, whether to send feedback information of the fourth message to the base station through the KNI virtual interface, specifically: and monitoring response message data of the fourth message, and if the response message data is not monitored, restarting the establishment of the SCTP link by the base station.
According to an embodiment of the present application, the processing module 110 is further configured to determine, according to a monitoring result, whether to send feedback information of the fourth message to the base station through the KNI virtual interface, specifically: acquiring a monitoring time length threshold value of the response message data of the fourth message; and under the condition that the response message data is not monitored within the monitoring duration threshold, the base station reinitiates SCTP link establishment.
According to the message transmission device based on the DPDK technology of the data plane software development kit, the first message sent by the base station is subjected to splitting processing through the DPDK component in the AMF interface board based on the access and mobility management function to obtain a second message, the second message is forwarded to the corresponding target AMF signaling board to be processed to obtain a third message, the third message is read from the buffer area based on the DPDK component, and the third message is sent to the base station, wherein the buffer area is used for buffering the third message output by each AMF signaling board. According to the method and the device, the number of the access base stations can be increased through deployment of the DPDK component, the transverse capacity expansion of the AMF signaling board is realized, the load sharing of N2 flow is reduced, the time delay and jitter of N2 network data message transmission are reduced, and the use experience of a user is improved.
In order to implement the above embodiment, the application further provides an electronic device 2000, as shown in fig. 11, including a memory 210, a processor 220, and a computer program stored in the memory 210 and capable of running on the processor 220, where the processor implements the foregoing method for transmitting a message based on the DPDK technology of the data plane software development kit when executing the program.
In order to implement the above embodiment, the present application further proposes a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the aforementioned method for transmitting a message based on the DPDK technology of the data plane software development kit.
In order to implement the above embodiments, the present application further proposes a computer program product comprising a computer program which, when executed by a processor, implements a method for transmitting messages based on the data plane software development kit DPDK technique as described above.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (26)

1. The message transmission method based on the DPDK technology of the data plane software development kit is characterized by comprising the following steps:
based on a DPDK component in an AMF interface board, carrying out 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;
and based on the DPDK component, reading the third message from a buffer area and sending the third message to the base station, wherein the buffer area is used for buffering the third message output by each AMF signaling board.
2. The method for transmitting a message according to claim 1, wherein the splitting the first message sent by the base station to obtain the second message based on the DPDK component in the AMF interface board includes:
and carrying out shunting processing on the first message sent by the base station through a receiving end extension RSS component configured in the DPDK component, and shunting the first message to different queues to obtain the second message.
3. The method for transmitting a message according to claim 1, wherein before forwarding the second message to the corresponding target AMF signaling board for processing, the method comprises:
And acquiring a target AMF signaling board corresponding to the second message from the AMF signaling boards based on the triplet table information of the second message.
4. The method for transmitting a message according to claim 3, wherein the obtaining, from the plurality of AMF signaling boards, the target AMF signaling board corresponding to the second message based on the triplet table information of the second message includes:
acquiring triple table information of the second message;
and performing triple table information matching on the second message according to the triple table information so as to acquire a target AMF signaling board corresponding to the second message.
5. The method for transmitting messages according to claim 4, wherein said triplet list information comprises:
a source internet protocol IP address, a destination IP address, a protocol type, and an IP address of the AMF signaling board.
6. The method for transmitting a message according to claim 4, wherein performing ternary table information matching on the second message according to the ternary table information to obtain a target AMF signaling board corresponding to the second message includes:
and matching the triplet list information of the second message with the triplet list information of the AMF signaling board, and taking the AMF signaling board as a target AMF signaling board corresponding to the second message if the triplet list information of the second message is consistent with the triplet list of the AMF signaling board.
7. The method for transmitting a message according to claim 1, wherein forwarding the second message to a corresponding target AMF signaling board for processing includes:
acquiring a physical address MAC of a network card required by the second message when the second message is forwarded to the target AMF signaling board;
according to the MAC address, performing two-layer encapsulation on the MAC address through an Address Resolution Protocol (ARP) component;
and forwarding the second message to the corresponding target AMF signaling board according to the MAC address after the two-layer encapsulation.
8. The method for transmitting a message according to claim 1, wherein the reading, based on the DPDK module, the third message from the buffer area includes:
transmitting the third message to a buffer area in a user space in a mode of group data transmission DMA, and reading the third message from the buffer area based on the DPDK component.
9. The method for transmitting a message according to claim 1, further comprising:
creating a kernel network interface KNI component and a KNI virtual interface through the DPDK component;
transmitting another message transmitted by the base station to the KNI virtual interface, and processing the message by the KNI virtual interface to obtain a fourth message;
Forwarding the fourth message to an AMF signaling board for processing based on a KNI virtual interface;
monitoring the processing process of the AMF signaling board to the fourth message;
and determining whether to send feedback information of the fourth message to the base station through the KNI virtual interface according to the monitoring result.
10. The method for transmitting a message according to claim 9, wherein the determining whether to send feedback information of the fourth message to the base station through the KNI virtual interface according to the monitoring result includes:
monitoring response message data of the fourth message, and if the response message data is monitored, sending the response message data to the KNI virtual interface as the feedback information;
and sending the feedback information to the base station through the KNI virtual interface.
11. The method for transmitting a message according to claim 9, wherein the determining whether to send feedback information of the fourth message to the base station through the KNI virtual interface according to the monitoring result is further characterized by comprising:
and monitoring response message data of the fourth message, and if the response message data is not monitored, restarting the establishment of the SCTP link by the base station.
12. The method for transmitting a message according to claim 9, wherein the determining whether to send feedback information of the fourth message to the base station through the KNI virtual interface according to the monitoring result further comprises:
acquiring a monitoring time length threshold value of the response message data of the fourth message;
and under the condition that the response message data is not monitored within the monitoring duration threshold, the base station can reinitiate the establishment of the SCTP link.
13. The message transmission device based on the DPDK technology of the data plane software development kit is characterized by comprising:
the processing module is used for carrying out shunting processing on the first message sent by the base station based on a DPDK component in the AMF interface board of the access and mobility management function 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 the sending module is used for reading the third message from a buffer area based on the DPDK component and sending the third message to the base station, wherein the buffer area is used for buffering the third message output by each AMF signaling board.
14. The apparatus for transmitting a packet according to claim 13, wherein the processing module is configured to perform a splitting process on the first packet sent by the base station based on a DPDK component in an AMF interface board to obtain a second packet, where the processing module is specifically configured to:
And carrying out shunting processing on the first message sent by the base station through a receiving end extension RSS component configured in the DPDK component, and shunting the first message to different queues to obtain the second message.
15. The message transmission device according to claim 13, wherein the processing module is configured to, before forwarding the second message to the corresponding target AMF signaling board for processing, further:
and acquiring a target AMF signaling board corresponding to the second message from the AMF signaling boards based on the triplet table information of the second message.
16. The message transmission device according to claim 15, wherein the processing module is configured to obtain, from a plurality of AMF signaling boards, a target AMF signaling board corresponding to the second message based on triple table information of the second message, specifically:
acquiring triple table information of the second message;
and performing triple table information matching on the second message according to the triple table information so as to acquire a target AMF signaling board corresponding to the second message.
17. The message transmission apparatus of claim 16, wherein the triplet list information comprises:
A source internet protocol IP address, a destination IP address, a protocol type, and an IP address of the AMF signaling board.
18. The message transmission device according to claim 16, wherein the processing module is configured to perform triplet table information matching on the second message according to the triplet table information, so as to obtain a target AMF signaling board corresponding to the second message, specifically: and matching the triplet list information of the second message with the triplet list information of the AMF signaling board, and taking the AMF signaling board as a target AMF signaling board corresponding to the second message if the triplet list information of the second message is consistent with the triplet list of the AMF signaling board.
19. The message transmission device according to claim 13, wherein the processing module is configured to forward the second message to a corresponding target AMF signaling board for processing, specifically:
acquiring a physical address MAC of a network card required by the second message when the second message is forwarded to the target AMF signaling board;
according to the MAC address, performing two-layer encapsulation on the MAC address through an Address Resolution Protocol (ARP) component;
and forwarding the second message to the corresponding target AMF signaling board according to the MAC address after the two-layer encapsulation.
20. The message transmission device according to claim 13, wherein the sending module is configured to read, based on the DPDK module, a third message from a buffer, specifically:
transmitting the third message to a buffer area in a user space in a mode of group data transmission DMA, and reading the third message from the buffer area based on the DPDK component.
21. The message transmission device of claim 13, wherein the processing module is further configured to: creating a kernel network interface KNI component and a KNI virtual interface through the DPDK component;
the sending module is further configured to: transmitting another message transmitted by the base station to the KNI virtual interface, and processing the message by the KNI virtual interface to obtain a fourth message;
the sending module is further configured to: forwarding the fourth message to an AMF signaling board for processing based on a KNI virtual interface;
the processing module is further configured to: monitoring the processing process of the AMF signaling board to the fourth message;
the processing module is further configured to: and determining whether to send feedback information of the fourth message to the base station through the KNI virtual interface according to the monitoring result.
22. The message transmission device according to claim 21, wherein the processing module is further configured to determine, according to a monitoring result, whether to send feedback information of the fourth message to the base station through the KNI virtual interface, specifically:
and monitoring response message data of the fourth message, if the response message data is monitored, informing the sending module to send the response message data to the KNI virtual interface as the feedback information, and sending the feedback information to the base station through the KNI virtual interface.
23. The message transmission device according to claim 21, wherein the processing module is further configured to determine, according to a monitoring result, whether to send feedback information of the fourth message to the base station through the KNI virtual interface, specifically:
and monitoring response message data of the fourth message, and if the response message data is not monitored, restarting the establishment of the SCTP link by the base station.
24. The message transmission device according to claim 21, wherein the processing module is configured to determine, according to the monitoring result, whether to send feedback information of the fourth message to the base station through the KNI virtual interface, specifically:
Acquiring a monitoring time length threshold value of the response message data of the fourth message;
and under the condition that the response message data is not monitored within the monitoring duration threshold, the base station reinitiates SCTP link establishment.
25. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable 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 stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1-12.
CN202210916619.1A 2022-08-01 2022-08-01 Message transmission method and device based on DPDK technology and electronic equipment Pending CN117545011A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210916619.1A CN117545011A (en) 2022-08-01 2022-08-01 Message transmission method and device based on DPDK technology and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210916619.1A CN117545011A (en) 2022-08-01 2022-08-01 Message transmission method and device based on DPDK technology and electronic equipment

Publications (1)

Publication Number Publication Date
CN117545011A true CN117545011A (en) 2024-02-09

Family

ID=89792402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210916619.1A Pending CN117545011A (en) 2022-08-01 2022-08-01 Message transmission method and device based on DPDK technology and electronic equipment

Country Status (1)

Country Link
CN (1) CN117545011A (en)

Similar Documents

Publication Publication Date Title
CN108270676B (en) Network data processing method and device based on Intel DPDK
CN101217464B (en) UDP data package transmission method
CN100466629C (en) Network equipment and message transferring method based on multiple-core processor
US8953631B2 (en) Interruption, at least in part, of frame transmission
WO2020019159A1 (en) Method, device and computer readable medium for delivering data-plane packets by using separate transport service vnfc
US9455916B2 (en) Method and system for changing path and controller thereof
JP4925218B2 (en) Intelligent failback in a load-balanced network environment
US9661550B2 (en) Communication apparatus, communication method, and communication system
US20190238949A1 (en) Multicast service providing method and software defined networking controller
CN111193756B (en) VXLAN tunnel load balancing method and related equipment
CN111211999A (en) OVS-based real-time virtual network implementation method
EP3136666B1 (en) Flow switch, controller and relay apparatus
CN107483628B (en) DPDK-based one-way proxy method and system
CN117063454A (en) Network card management system, message processing method and device
US9537764B2 (en) Communication apparatus, control apparatus, communication system, communication method, method for controlling communication apparatus, and program
JP6296578B2 (en) Access node, mobility management network element, and paging message processing method
JP6525256B2 (en) Virtual network system and virtual network route setting method
KR101996337B1 (en) Switch processing method, controller, switch, and switch processing system
US8467311B2 (en) Method and system for avoiding flooding of packets in switches
CN117545011A (en) Message transmission method and device based on DPDK technology and electronic equipment
CN115915098A (en) Method for realizing BMCA in 5G and TSN cross-domain PTP
Zhang et al. Virtualized network coding functions on the Internet
CN111866046A (en) Method for realizing cluster and related equipment
CN115225708B (en) Message forwarding method computer equipment and storage medium
KR20200051196A (en) Electronic device providing fast packet forwarding with reference to additional network address translation table

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination