CN111555973B - Data packet forwarding method and device based on 5G data forwarding plane - Google Patents

Data packet forwarding method and device based on 5G data forwarding plane Download PDF

Info

Publication number
CN111555973B
CN111555973B CN202010348971.0A CN202010348971A CN111555973B CN 111555973 B CN111555973 B CN 111555973B CN 202010348971 A CN202010348971 A CN 202010348971A CN 111555973 B CN111555973 B CN 111555973B
Authority
CN
China
Prior art keywords
forwarding
data packet
user
network card
intelligent network
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.)
Active
Application number
CN202010348971.0A
Other languages
Chinese (zh)
Other versions
CN111555973A (en
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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew Technologies 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 Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202010348971.0A priority Critical patent/CN111555973B/en
Publication of CN111555973A publication Critical patent/CN111555973A/en
Application granted granted Critical
Publication of CN111555973B publication Critical patent/CN111555973B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a data packet forwarding method and a device based on a 5G data forwarding plane, wherein the method comprises the following steps: the CPU sends a forwarding rule corresponding to a user to the intelligent network card according to the user accessing the 5G network; the intelligent network card receives a data packet and acquires data packet information from the data packet; and the intelligent network card acquires a forwarding rule corresponding to the data packet information according to the data packet information, and forwards the data packet according to the forwarding rule. The invention utilizes the programmable function of the intelligent network card, when the data packet is forwarded, the intelligent network card receives the data packet and forwards the data packet according to the forwarding rule, and the CPU only needs to send the forwarding rule corresponding to the user accessing the 5G network to the intelligent network card, thereby avoiding the high-load working state of the CPU and reducing the forwarding time delay of the data packet.

Description

Data packet forwarding method and device based on 5G data forwarding plane
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data packet forwarding method and apparatus based on a 5G data forwarding plane.
Background
The information technology field becomes an important power engine for improving the national technological innovation strength, promoting the economic and social development and improving the overall competition. 5G is a new generation of basic productivity that opens up a new era of industrial digitization and Internet of things. The countries in the world take the highest point of the 5G communication technology as an important strategy for national development, and the active layout starts in the aspects of key components, upstream material preparation, network deployment and the like, so that the preemptive development is advanced.
In the existing 5G network, a program for forwarding a data packet through a 5G data forwarding plane is called a forwarding program. Due to the complex and changeable forwarding rules of the user data packet, a special chip cannot be designed through a fixed forwarding algorithm model (a switch two-layer forwarding algorithm or a router IP forwarding algorithm and the like) to forward the data packet. A schematic structural diagram of a forwarding data packet of an existing 5G data forwarding plane is shown in fig. 1, where after a CPU of a server operates a forwarding program to calculate the forwarding data packet, the forwarding data packet is sent to a network port, and the network port forwards the calculated data packet. As can be seen from fig. 1, when the existing 5G data forwarding plane forwards a data packet, it completely depends on the server CPU to run a forwarding program to calculate and forward the data packet, which increases the computation pressure on the CPU and easily causes an increase in forwarding delay.
Therefore, the prior art is subject to further improvement.
Disclosure of Invention
In view of the foregoing disadvantages in the prior art, an object of the present invention is to provide a method and an apparatus for forwarding a data packet based on a 5G data forwarding plane, which overcome the problem that when the existing 5G data forwarding plane forwards a data packet, the existing 5G data forwarding plane completely depends on a server CPU to run a forwarding program to calculate the forwarded data packet, thereby increasing a large calculation pressure on the CPU and easily causing an increase in forwarding delay.
The first embodiment disclosed by the invention is a data packet forwarding method based on a 5G data forwarding plane, wherein the method is applied to a data packet forwarding device based on the 5G data forwarding plane; the device comprises a CPU and an intelligent network card; the method comprises the following steps:
the CPU sends a forwarding rule corresponding to a user to the intelligent network card according to the user accessing the 5G network;
the intelligent network card receives a data packet and acquires data packet information from the data packet;
and the intelligent network card acquires a forwarding rule corresponding to the data packet information according to the data packet information, and forwards the data packet according to the forwarding rule.
The data packet forwarding method based on the 5G data forwarding plane, wherein the step of sending, by the CPU, the forwarding rule corresponding to the user to the intelligent network card according to the user accessing the 5G network specifically includes:
the CPU acquires first user information corresponding to a user according to the user accessing the 5G network;
and acquiring a forwarding rule corresponding to the user according to the first user information, and sending the forwarding rule corresponding to the user to the intelligent network card.
The data packet forwarding method based on the 5G data forwarding plane is characterized in that the forwarding rule table comprises second user information, a first data packet type and forwarding operation;
the step of acquiring the forwarding rule corresponding to the user according to the first user information and sending the forwarding rule corresponding to the user to the intelligent network card specifically includes:
comparing the first user information with a pre-stored forwarding rule table, and judging whether second user information corresponding to the first user information exists in the forwarding rule table;
if yes, obtaining a forwarding rule corresponding to the second user information, determining the forwarding rule corresponding to the second user information as the forwarding rule corresponding to the user, and sending the forwarding rule corresponding to the second user information to the intelligent network card.
The data packet forwarding method based on the 5G data forwarding plane, wherein the step of acquiring the forwarding rule corresponding to the data packet information by the intelligent network card according to the data packet information specifically includes:
the intelligent network card judges whether a forwarding rule corresponding to the data packet information exists in the forwarding rules;
and if so, acquiring a forwarding rule corresponding to the data packet information.
The data packet forwarding method based on the 5G data forwarding plane is characterized in that the data packet information comprises third user information and a second data packet type;
the step of the intelligent network card judging whether there is a forwarding rule corresponding to the data packet information in the forwarding rules specifically includes:
the intelligent network card judges whether second user information corresponding to the third user information exists in the forwarding rule or not;
if yes, judging whether a first data packet type corresponding to the second data packet type exists in the forwarding rule;
if yes, judging that the forwarding rules have the forwarding rules corresponding to the data packet information.
The data packet forwarding method based on the 5G data forwarding plane, wherein the step of judging whether the forwarding rule corresponding to the data packet information exists in the forwarding rule by the intelligent network card further includes:
if not, discarding the data packet.
The data packet forwarding method based on the 5G data forwarding plane, wherein the step of forwarding the data packet by the intelligent network card according to the forwarding rule specifically includes:
the intelligent network card acquires the forwarding operation from the forwarding rule;
and forwarding the data packet according to the forwarding operation.
The data packet forwarding method based on the 5G data forwarding plane, wherein the step of forwarding the data packet according to the forwarding operation specifically includes:
modifying the destination IP address in the data packet according to the forwarding operation to obtain a modified data packet;
and forwarding the modified data packet.
A data packet forwarding device based on a 5G data forwarding plane comprises: a processor, a storage medium communicatively coupled to the processor, the storage medium adapted to store a plurality of instructions; the processor is adapted to invoke instructions in the storage medium to perform the steps of implementing the 5G data forwarding plane based packet forwarding method.
A storage medium, wherein a control program of a packet forwarding method based on a 5G data forwarding plane is stored on the storage medium, and when executed by a processor, the control program of the packet forwarding method based on the 5G data forwarding plane implements the steps of the packet forwarding method based on the 5G data forwarding plane.
The invention has the beneficial effects that the invention provides a data packet forwarding method and a device based on a 5G data forwarding plane, and the forwarding rule table corresponding to a user accessing a 5G network is sent to an intelligent network card through a CPU; then the intelligent network card receives the data packet, and obtains a forwarding rule corresponding to the data packet information from a forwarding rule table according to the data packet information; and finally, the intelligent network card forwards the data packet according to the forwarding rule. The method and the device utilize the programmable function of the intelligent network card, when the data packet is forwarded, the intelligent network card receives the data packet and forwards the data packet according to the forwarding rule, and the CPU only needs to send the forwarding rule table corresponding to the user accessing the 5G network to the intelligent network card, thereby avoiding the high-load working state of the CPU and reducing the forwarding time delay of the data packet.
Drawings
Fig. 1 is a schematic structural diagram of a forwarding data packet of a conventional 5G data forwarding plane;
fig. 2 is a flowchart of a preferred embodiment of a packet forwarding method based on a 5G data forwarding plane according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data packet forwarding method based on a 5G data forwarding plane according to an embodiment of the present invention;
fig. 4 is a flowchart of an embodiment of specific application of a CPU to forward a data packet in a data packet forwarding method based on a 5G data forwarding plane according to an embodiment of the present invention;
fig. 5 is a flowchart of a specific application embodiment of an intelligent network card forwarding data packet in the data packet forwarding method based on the 5G data forwarding plane provided in the embodiment of the present invention;
fig. 6 is a functional schematic diagram of a packet forwarding apparatus based on a 5G data forwarding plane according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The data packet forwarding method based on the 5G data forwarding plane can be applied to terminals. The terminal may be, but is not limited to, various personal computers, notebook computers, mobile phones, tablet computers, vehicle-mounted computers, and portable wearable devices. The terminal of the invention adopts a multi-core processor. The processor of the terminal may be at least one of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Video Processing Unit (VPU), and the like.
The problem that when the existing 5G data forwarding plane forwards a data packet, a forwarding program is completely operated by a CPU of a server to calculate and forward the data packet, so that great calculation pressure is added to the CPU, and forwarding delay is easily increased is solved. The invention provides a data packet forwarding method based on a 5G data forwarding plane.
Referring to fig. 2, fig. 2 is a flowchart illustrating a packet forwarding method based on a 5G data forwarding plane according to a preferred embodiment of the present invention.
In the embodiment of the invention, the data packet forwarding method based on the 5G data forwarding plane is applied to a data packet forwarding device based on the 5G data forwarding plane; the device comprises a CPU and an intelligent network card; the data packet forwarding method based on the 5G data forwarding plane comprises the following three steps:
s100, the CPU sends forwarding rules corresponding to users to the intelligent network card according to the users accessing the 5G network;
s200, the intelligent network card receives a data packet and acquires data packet information from the data packet;
s300, the intelligent network card obtains a forwarding rule corresponding to the data packet information according to the data packet information, and forwards the data packet according to the forwarding rule.
A schematic structural diagram of forwarding a data packet by using an existing 5G data forwarding plane is shown in fig. 1, where after a CPU of a server runs a forwarding program to calculate and forward the data packet, the forwarding data packet is sent to a common network port, and the common network port forwards the calculated data packet. When the existing 5G data forwarding plane forwards the data packet, the forwarding plane completely depends on a server CPU to operate a forwarding program to calculate and forward the data packet, so that great calculation pressure is added to the CPU, and the forwarding delay is easily increased. Therefore, in this embodiment, after detecting that a user accesses the 5G network, the CPU sends a forwarding rule corresponding to the user to the intelligent network card according to the user accessing the 5G network; then the intelligent network card receives the data packet and acquires the data packet information from the data packet; and finally, the intelligent network card acquires a forwarding rule corresponding to the data packet information according to the data packet information, and forwards the data packet according to the forwarding rule. As shown in fig. 3, which is a schematic structural diagram of a data packet forwarding method based on a 5G data forwarding plane according to an embodiment of the present invention, the present invention utilizes a programmable function of an intelligent network card, and when forwarding a data packet, the intelligent network card receives the data packet and forwards the data packet according to a forwarding rule, and a CPU only needs to send the forwarding rule corresponding to a user accessing a 5G network to the intelligent network card, so as to avoid a high-load operating state of the CPU and reduce a data packet forwarding delay.
In a specific embodiment, the step S100 specifically includes:
s110, the CPU obtains first user information corresponding to a user according to the user accessed to the 5G network;
s120, obtaining the forwarding rule corresponding to the user according to the first user information, and sending the forwarding rule table corresponding to the user to the intelligent network card.
In specific implementation, after a user accesses a 5G network through a data packet forwarding device based on a 5G data forwarding plane, a CPU obtains first user information corresponding to the user according to the user accessing the 5G network, where the first user information is a unique identifier of the user accessing the 5G network, and may be a user name, a user ID, and the like. After acquiring first user information corresponding to a user, the CPU acquires a forwarding rule corresponding to the user according to the first user information, and sends a forwarding rule table corresponding to the user to the intelligent network card.
In a specific embodiment, the forwarding rule table includes second user information, a first packet type, and a forwarding operation, and the step S120 specifically includes:
s121, comparing the first user information with a pre-stored forwarding rule table, and judging whether second user information corresponding to the first user information exists in the forwarding rule table;
and S122, if yes, obtaining a forwarding rule corresponding to the second user information, determining the forwarding rule corresponding to the second user information as the forwarding rule corresponding to the user, and sending the forwarding rule corresponding to the second user information to the intelligent network card.
In specific implementation, the pre-stored forwarding rule table is shown in table 1, the forwarding rule table includes a plurality of forwarding rules, each forwarding rule includes second user information, a first data packet type and forwarding operation, the second user information is similar to the first user information, and may be information capable of uniquely representing a user identity, such as a user name and a user ID, the second data packet type represents a data packet usage, and may include downloading an APP, receiving a wechat voice, sending a wechat voice, and the like, and a destination address of the forwarding data packet is defined in the forwarding rule, and is used for forwarding the data packet to the intelligent network card.
TABLE 1
Second user information First data packet type Forwarding operations
A Downloading an APP Forward to IP1
A Receiving WeChat speech Forward to IP1
A Sending WeChat speech Forward to IP2
B Downloading an APP Forward to IP3
B Receiving WeChat speech Forward to IP3
B Sending WeChat speech Forward to IP4
Further, after acquiring first user information corresponding to a user accessing the 5G network, the CPU compares the first user information with a pre-stored forwarding rule table, and judges whether second user information corresponding to the first user information exists in the forwarding rule table; if so, acquiring a forwarding rule corresponding to second user information, determining the forwarding rule corresponding to the second user information as the forwarding rule corresponding to the user, and sending the forwarding rule corresponding to the second user information to the intelligent network card. For example: the first user information is A, and after the CPU acquires the first user information, the CPU judges whether a second user information A corresponding to the first user information A exists in a pre-stored forwarding rule table or not; and if so, sending the forwarding rule table corresponding to the second user information A to the intelligent network card as the forwarding rule corresponding to the user accessing the 5G network.
In a specific embodiment, in step S300, the step of acquiring, by the intelligent network card according to the data packet information, the forwarding rule corresponding to the data packet information specifically includes:
s310, the intelligent network card judges whether a forwarding rule corresponding to the data packet information exists in the forwarding rules;
and S320, if so, acquiring a forwarding rule corresponding to the data packet.
In specific implementation, after the user accesses the 5G network, the CPU sends the forwarding rule corresponding to the user to the intelligent network, when the user sends a data packet by using the 5G network, the intelligent network card receives the data packet sent by the user, acquires data packet information in the data packet, and judges whether the forwarding rule sent by the CPU has the forwarding rule corresponding to the data packet information; if yes, obtaining a forwarding rule corresponding to the data packet information, and forwarding the data packet according to the forwarding rule. In the process of forwarding the data packet, the CPU is only responsible for sending the forwarding rule corresponding to the user accessing the 5G network to the intelligent network card, the intelligent network receives the data packet, and obtains the forwarding rule corresponding to the data packet information from the forwarding rule to forward the data packet, so that the high-load working state of the CPU is avoided, and the forwarding delay of the data packet is reduced.
In a specific embodiment, the packet information includes third user information and a second packet type, and the step S310 specifically includes:
s311, the intelligent network card judges whether second user information corresponding to the third user information exists in the forwarding rule;
s312, if yes, judging whether a first data packet type corresponding to the second data packet type exists in the forwarding rule;
and S313, if yes, judging that the forwarding rules have forwarding rules corresponding to the data packet information.
In specific implementation, the data packet information includes third user information and a second data packet type, and when the intelligent network card judges whether a forwarding rule corresponding to the data packet information exists in the forwarding rule, the intelligent network card firstly judges whether second user information corresponding to the third user information exists in the forwarding rule; if yes, further judging whether a first data packet type corresponding to the second data packet type exists in the forwarding rule; if yes, judging that the forwarding rules have the forwarding rules corresponding to the data packet information. That is, when the intelligent network card determines whether there is a forwarding rule corresponding to the data packet information in the forwarding rule, it needs to determine whether there is second user information corresponding to the third user information and a first data packet type corresponding to the second data packet type in the forwarding rule at the same time. For example, the third user information in the data packet information obtained from the data packet is a, the second data packet type is downloading an APP, and the intelligent network card first searches whether the second user information a corresponding to the third user information a exists in the user information in the forwarding rule; if yes, further searching whether a first data packet type corresponding to downloading of a certain APP exists in the data packet types in the forwarding rules, and if yes, determining the forwarding rules as the forwarding rules corresponding to the data packet information.
In a specific embodiment, after the step S310, the method further includes:
s330, if not, discarding the data packet.
In a specific implementation, when the intelligent network card determines whether a forwarding rule corresponding to the data packet information exists in the forwarding rule, a situation that there is no forwarding rule corresponding to the data packet information in the forwarding rule may occur, and specifically, when the intelligent network card determines that there is no second user information corresponding to the third user information in the forwarding rule or determines that there is no first data packet type corresponding to the second data packet type in the forwarding rule, it determines that there is no forwarding rule corresponding to the data packet information in the forwarding rule. And if the intelligent network card judges that the forwarding rule corresponding to the data packet information does not exist in the forwarding rules, discarding the received data packet.
In a specific embodiment, in step S300, the step of forwarding, by the intelligent network card, the data packet according to the forwarding rule specifically includes:
s340, the intelligent network card obtains the forwarding operation from the forwarding rule;
and S350, forwarding the data packet according to the forwarding operation.
When the intelligent network card is implemented specifically, after the forwarding rule corresponding to the data package information is obtained from the forwarding rule according to the data package information, the intelligent network card obtains the forwarding operation from the forwarding rule, and forwards the data package according to the forwarding operation, and after the intelligent network card receives the data package, the intelligent network card directly forwards the data package according to the forwarding operation, so that the transmission of the data package between a CPU and the intelligent network card is avoided, the high-load work of the CPU is further reduced, the forwarding time delay is reduced, and the forwarding efficiency of the data package is improved. For example: and if the forwarding operation in the forwarding rule received by the intelligent network card is to forward to the IP1, the intelligent network card forwards the data packet to the port with the IP address being the IP1 according to the forwarding operation.
In a specific embodiment, the step S350 specifically includes:
s351, modifying the destination IP address in the data packet according to the forwarding operation to obtain a modified data packet;
and S352, forwarding the modified data packet.
In the specific implementation, the forwarding operation in the forwarding rule is defined as a destination IP address for forwarding the data packet, after the intelligent network card obtains the forwarding operation from the forwarding rule, the destination IP address for forwarding the data packet is obtained from the forwarding operation, the destination IP address in the data packet is modified into the IP address in the forwarding operation, and the modified data packet is forwarded, so that the forwarding delay of the data packet is reduced, and the forwarding efficiency of the data packet is improved. For example: if the forwarding operation is forwarding to the IP1, the intelligent network card extracts the IP1 from the forwarding operation, modifies the destination IP address of the data packet into the IP1 and forwards the data packet to a port with the IP address being the IP 1.
The invention also provides a flow chart of a specific application embodiment of the CPU forwarding data packet in the data packet forwarding method based on the 5G data forwarding plane, as shown in fig. 4, the method comprises the following steps:
s41, monitoring a user accessing the 5G network;
s42, acquiring first user information corresponding to a user;
s43, judging whether second user information corresponding to the first user information exists in the forwarding rule table; if yes, go to step S44; if not, executing step S41;
s44, acquiring a forwarding rule corresponding to the second user information;
and S45, sending the forwarding rule corresponding to the second user information to the intelligent network card.
The invention also provides a flow chart of a specific application embodiment of the intelligent network card forwarding data packet in the data packet forwarding method based on the 5G data forwarding plane, as shown in fig. 5, the method comprises the following steps:
s51, receiving a forwarding rule sent by the CPU;
step S52, receiving a data packet;
step S53, acquiring data packet information;
step S54, judging whether second user information corresponding to third user information exists in the forwarding rule; if not, step S55 is executed. If yes, go to step S56;
step S55, discarding the data packet;
step S56, judging whether a first data packet type corresponding to a second data packet type exists in the forwarding rule; if not, step S55 is executed. If yes, go to step S57;
step S57, obtaining a forwarding rule corresponding to the data packet information;
step S58, obtaining forwarding operation from the forwarding rule;
and step S59, forwarding the data packet according to the forwarding operation.
Based on the above embodiments, the present invention further provides a data packet forwarding apparatus based on a 5G data forwarding plane, and a schematic block diagram thereof may be as shown in fig. 6. The device comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein the processor of the device is configured to provide computational and control capabilities. The memory of the device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a 5G data forwarding plane based packet forwarding method. The display screen of the device can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the device is arranged in the computer equipment in advance and used for detecting the current operating temperature of the internal equipment.
It will be appreciated by those skilled in the art that the block diagram of fig. 6 is only a block diagram of a portion of the structure associated with the inventive arrangements and is not intended to limit the devices to which the systems of the inventive arrangements may be applied, and that a particular device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a packet forwarding apparatus based on a 5G data forwarding plane is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor executes the computer program to implement at least the following steps:
the CPU sends forwarding rules corresponding to the user to the intelligent network card according to the user accessing the 5G network;
the intelligent network card receives a data packet and acquires data packet information from the data packet;
and the intelligent network card acquires a forwarding rule corresponding to the data packet information according to the data packet information, and forwards the data packet according to the forwarding rule.
In one embodiment, the processor, when executing the computer program, may further implement: the CPU acquires first user information corresponding to a user according to the user accessing the 5G network; and acquiring a forwarding rule corresponding to the user according to the first user information, and sending the forwarding rule corresponding to the user to the intelligent network card.
In one embodiment, the processor, when executing the computer program, may further implement: the CPU compares the first user information with a pre-stored forwarding rule table and judges whether second user information corresponding to the first user information exists in the forwarding rule table; if yes, obtaining a forwarding rule corresponding to the second user information, determining the forwarding rule corresponding to the second user information as the forwarding rule corresponding to the user, and sending the forwarding rule to the intelligent network card.
In one embodiment, the processor, when executing the computer program, may further implement: the intelligent network card judges whether a forwarding rule corresponding to the data packet information exists in the forwarding rules; and if so, acquiring a forwarding rule corresponding to the data packet information.
In one embodiment, the processor, when executing the computer program, may further implement: the intelligent network card judges whether second user information corresponding to the third user information exists in the forwarding rule or not; if yes, judging whether a first data packet type corresponding to the second data packet type exists in the forwarding rule; if yes, judging that the forwarding rules have forwarding rules corresponding to the data packet information.
In one embodiment, the processor, when executing the computer program, may further implement: and when the intelligent network card judges that the forwarding rule corresponding to the data packet information does not exist in the forwarding rules, discarding the data packet.
In one embodiment, the processor, when executing the computer program, may further implement: the intelligent network card acquires the forwarding operation from the forwarding rule; and forwarding the data packet according to the forwarding operation.
In one embodiment, the processor, when executing the computer program, may further implement: the intelligent network card modifies the destination IP address in the data packet according to the forwarding operation to obtain a modified data packet; and forwarding the modified data packet.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases or other media used in the embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM), among others.
In summary, the present invention provides a method and an apparatus for forwarding a data packet based on a 5G data forwarding plane, where the method includes: the CPU sends a forwarding rule corresponding to a user to the intelligent network card according to the user accessing the 5G network; the intelligent network card receives a data packet and acquires data packet information from the data packet; and the intelligent network card acquires a forwarding rule corresponding to the data packet information according to the data packet information, and forwards the data packet according to the forwarding rule. The invention utilizes the programmable function of the intelligent network card, when the data packet is forwarded, the intelligent network card receives the data packet and forwards the data packet according to the forwarding rule, and the CPU only needs to send the forwarding rule corresponding to the user accessing the 5G network to the intelligent network card, thereby avoiding the high-load working state of the CPU and reducing the forwarding time delay of the data packet.
It should be understood that the system application of the present invention is not limited to the above examples, and that modifications or changes may be made by those skilled in the art based on the above description, and all such modifications and changes are intended to fall within the scope of the appended claims.

Claims (8)

1. A data packet forwarding method based on a 5G data forwarding plane is characterized by being applied to a data packet forwarding device based on the 5G data forwarding plane; the device comprises a CPU and an intelligent network card; the method comprises the following steps:
the CPU sends a forwarding rule corresponding to a user to the intelligent network card according to the user accessing the 5G network, wherein a destination address for forwarding a data packet is defined in the forwarding rule;
the intelligent network card receives a data packet and acquires data packet information from the data packet;
the intelligent network card acquires a forwarding rule corresponding to the data packet information according to the data packet information, and forwards the data packet according to the forwarding rule;
the intelligent network card receives the data packet, acquires data packet information from the data packet, and comprises the following steps:
when a user sends a data packet by using a 5G network, receiving the data packet sent by the user by the intelligent network card, and acquiring data packet information from the data packet;
the step of sending, by the CPU, the forwarding rule corresponding to the user to the intelligent network card according to the user accessing the 5G network specifically includes:
the CPU acquires first user information corresponding to a user according to the user accessing the 5G network, wherein the first user information is a unique identifier of the user accessing the 5G network;
acquiring a forwarding rule corresponding to the user according to the first user information, and sending the forwarding rule corresponding to the user to the intelligent network card;
the forwarding rule table comprises second user information, a first data packet type and forwarding operation;
the step of acquiring the forwarding rule corresponding to the user according to the first user information and sending the forwarding rule corresponding to the user to the intelligent network card specifically includes:
comparing the first user information with a pre-stored forwarding rule table, and judging whether second user information corresponding to the first user information exists in the forwarding rule table;
if yes, obtaining a forwarding rule corresponding to the second user information, determining the forwarding rule corresponding to the second user information as the forwarding rule corresponding to the user, and sending the forwarding rule to the intelligent network card.
2. The data packet forwarding method based on the 5G data forwarding plane according to claim 1, wherein the step of acquiring the forwarding rule corresponding to the data packet information by the intelligent network card according to the data packet information specifically includes:
the intelligent network card judges whether a forwarding rule corresponding to the data packet information exists in the forwarding rules;
and if so, acquiring a forwarding rule corresponding to the data packet information.
3. The packet forwarding method based on 5G data forwarding plane of claim 2, wherein the packet information comprises third user information and a second packet type;
the step of the intelligent network card determining whether there is a forwarding rule corresponding to the data packet information in the forwarding rules specifically includes:
the intelligent network card judges whether second user information corresponding to the third user information exists in the forwarding rule or not;
if yes, judging whether a first data packet type corresponding to the second data packet type exists in the forwarding rule;
if yes, judging that the forwarding rules have the forwarding rules corresponding to the data packet information.
4. The data packet forwarding method based on the 5G data forwarding plane according to claim 2, wherein the step of determining whether the forwarding rule corresponding to the data packet information exists in the forwarding rules by the intelligent network card further includes:
and if not, discarding the data packet.
5. The data packet forwarding method based on the 5G data forwarding plane according to claim 1, wherein the step of forwarding the data packet by the intelligent network card according to the forwarding rule specifically includes:
the intelligent network card acquires the forwarding operation from the forwarding rule;
and forwarding the data packet according to the forwarding operation.
6. The method according to claim 5, wherein the step of forwarding the packet according to the forwarding operation specifically includes:
modifying the destination IP address in the data packet according to the forwarding operation to obtain a modified data packet;
and forwarding the modified data packet.
7. A data packet forwarding device based on a 5G data forwarding plane is characterized by comprising: a processor, a storage medium communicatively coupled to the processor, the storage medium adapted to store a plurality of instructions; the processor is adapted to invoke instructions in the storage medium to perform the steps of implementing the 5G data forwarding plane based packet forwarding method of any of claims 1-6 above.
8. A storage medium, wherein a control program of a 5G data forwarding plane based packet forwarding method is stored on the storage medium, and the control program of the 5G data forwarding plane based packet forwarding method is executed by a processor to implement the steps of the 5G data forwarding plane based packet forwarding method according to any one of claims 1-6.
CN202010348971.0A 2020-04-28 2020-04-28 Data packet forwarding method and device based on 5G data forwarding plane Active CN111555973B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010348971.0A CN111555973B (en) 2020-04-28 2020-04-28 Data packet forwarding method and device based on 5G data forwarding plane

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010348971.0A CN111555973B (en) 2020-04-28 2020-04-28 Data packet forwarding method and device based on 5G data forwarding plane

Publications (2)

Publication Number Publication Date
CN111555973A CN111555973A (en) 2020-08-18
CN111555973B true CN111555973B (en) 2022-11-15

Family

ID=72004200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010348971.0A Active CN111555973B (en) 2020-04-28 2020-04-28 Data packet forwarding method and device based on 5G data forwarding plane

Country Status (1)

Country Link
CN (1) CN111555973B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115714984A (en) * 2021-08-20 2023-02-24 维沃移动通信有限公司 Data processing method, device, terminal, access network equipment and core network equipment

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7903796B1 (en) * 2001-02-27 2011-03-08 Verizon Data Services Llc Method and apparatus for unified communication management via instant messaging
CN102244579B (en) * 2010-05-12 2013-10-30 北京研华兴业电子科技有限公司 Network interface card and method for receiving network data
CN102624628B (en) * 2012-03-22 2016-12-14 深圳市共进电子股份有限公司 A kind of home gateway and the method realizing packet fast-forwarding thereof
CN102739473B (en) * 2012-07-09 2015-06-24 南京中新赛克科技有限责任公司 Network detecting method using intelligent network card
CN102752119B (en) * 2012-07-09 2015-06-24 南京中新赛克科技有限责任公司 Interface realizing method for intelligent network card
US9602437B1 (en) * 2012-10-03 2017-03-21 Tracey M. Bernath System and method for accelerating network applications using an enhanced network interface and massively parallel distributed processing
CN108924050A (en) * 2018-06-29 2018-11-30 优刻得科技股份有限公司 Data forwarding method and its device, storage medium and network card equipment
CN108989432B (en) * 2018-07-20 2022-01-07 南京中兴新软件有限责任公司 User-mode file sending method, user-mode file receiving method and user-mode file receiving and sending device
CN109936513A (en) * 2019-02-18 2019-06-25 网宿科技股份有限公司 Data message processing method, intelligent network adapter and CDN server based on FPGA
CN110149231B (en) * 2019-05-21 2022-05-31 优刻得科技股份有限公司 Method, device, storage medium and equipment for updating virtual switch
CN110391993B (en) * 2019-07-12 2022-12-30 苏州浪潮智能科技有限公司 Data processing method and system
CN110912836B (en) * 2019-11-14 2023-05-30 优刻得科技股份有限公司 Method for forwarding data by forwarding device, control device, storage medium and system

Also Published As

Publication number Publication date
CN111555973A (en) 2020-08-18

Similar Documents

Publication Publication Date Title
CN109189799B (en) Service data query method, device, computer equipment and storage medium
CN108924274B (en) Domain name system DNS processing method and device, storage medium and electronic equipment
CN110602169B (en) Service calling method and device, computer equipment and storage medium
WO2020228038A1 (en) Domain name processing method, apparatus, electronic device, and storage medium
WO2020181897A1 (en) Terminal device identification method, system, and storage medium
CN109413153B (en) Data crawling method and device, computer equipment and storage medium
CN110597709B (en) Interactive debugging method and device for mixed-mode mobile application and computer equipment
WO2019127890A1 (en) Vulnerability scanning method, device, computer apparatus, and storage medium
CN108717426B (en) Enterprise data updating method and device, computer equipment and storage medium
CN110213392B (en) Data distribution method and device, computer equipment and storage medium
CN113259479B (en) Data processing method and equipment
CN112612595A (en) Method and device for establishing micro-service calling relationship, computer equipment and storage medium
CN113259428A (en) Data access request processing method and device, computer equipment and medium
CN111555973B (en) Data packet forwarding method and device based on 5G data forwarding plane
WO2021031905A1 (en) Data management method, apparatus, device and system and computer-readable storage medium
CN112068818A (en) Service interaction method and device, computer equipment and storage medium
WO2019228012A1 (en) Method and apparatus for correcting transaction causal sequence, and electronic device
CN112579754A (en) Intelligent robot conversation interaction method and device, and computer equipment
CN111428169A (en) Optimization method, system, server and storage medium for page loading
WO2020173126A1 (en) Method and device for blockchain-based session data processing, equipment, and medium
CN113746856B (en) SSL selectable verification method and device, computer equipment and storage medium
CN109857344B (en) Heartbeat state judgment method and device based on shared memory and computer equipment
CN116561179A (en) Data query method, device, equipment and program product
CN110933514A (en) Video quality control method and device and computer equipment
CN115599571A (en) Data processing method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant