CN111736982A - Data forwarding processing method and server of 5G data forwarding plane - Google Patents

Data forwarding processing method and server of 5G data forwarding plane Download PDF

Info

Publication number
CN111736982A
CN111736982A CN202010397514.0A CN202010397514A CN111736982A CN 111736982 A CN111736982 A CN 111736982A CN 202010397514 A CN202010397514 A CN 202010397514A CN 111736982 A CN111736982 A CN 111736982A
Authority
CN
China
Prior art keywords
forwarding processing
forwarding
data
user
processing rule
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.)
Granted
Application number
CN202010397514.0A
Other languages
Chinese (zh)
Other versions
CN111736982B (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 CN202010397514.0A priority Critical patent/CN111736982B/en
Publication of CN111736982A publication Critical patent/CN111736982A/en
Application granted granted Critical
Publication of CN111736982B publication Critical patent/CN111736982B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/252Store and forward routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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

Abstract

The invention discloses a data forwarding processing method and a server of a 5G data forwarding plane, wherein the method comprises the following steps: when the forwarding program runs on a plurality of CPU cores simultaneously, dividing the forwarding processing rule table into a plurality of forwarding processing rule sub-tables, wherein the forwarding processing rules in each forwarding processing rule sub-table are different from each other, and each CPU core corresponds to one forwarding processing rule sub-table; when a first CPU core in the CPU cores receives a data packet of a user, the first CPU core acquires a corresponding first forwarding processing rule sub-table, and performs forwarding processing after searching for a forwarding processing rule in the first forwarding processing rule sub-table according to the data packet of the user. The invention realizes the purpose of multi-core concurrent high-speed forwarding processing of the data packet of the user and simultaneously avoids the conflict of accessing the memory.

Description

Data forwarding processing method and server of 5G data forwarding plane
Technical Field
The invention relates to the technical field of computer application, in particular to a data forwarding processing method and a server of a 5G data forwarding plane.
Background
The 5G data forwarding plane is a general name of hardware resources and software resources used for forwarding a user's data packet in a 5G network (the 5G network is a fifth generation mobile communication network, the peak theoretical transmission speed of which can reach 1GB per 8 seconds, which is more than 10 times faster than the transmission speed of a 4G network, and for the 5G network, it shows more obvious advantages and more powerful functions in the actual application process).
The 5G data forwarding plane is used to forward packets of a user in a 5G network, and a procedure for implementing the data forwarding plane is called a forwarding procedure. The number of users supported in the 5G network is very large, and the forwarding requirement can be customized based on the user traffic, and different forwarding processing rules are often applied to the data packets of different users according to the user information in the data packets of the users. Even different types of packets for the same user have different forwarding rules.
For example, the forwarding processing rule is exemplified as follows:
Figure BDA0002488209060000011
Figure BDA0002488209060000021
the user information is assumed to be in the form of a mobile phone number, and may also be in other forms.
In a server running a forwarding program, thousands or even tens of thousands of user data packet forwarding processing rules may be stored, a set of the forwarding processing rules is called a forwarding processing rule table, and when the forwarding program processes a user data packet, it needs to search and match a suitable forwarding processing rule according to information carried by the data packet.
In order to improve the processing capability of the forwarding program on a single server and reduce the average operation cost of a user, it is easy to think of processing a data packet by adopting a multi-core concurrency (a plurality of CPU cores can simultaneously forward the data packet, each operation core of the CPU can independently operate the program, and the plurality of operation cores simultaneously operate the program, which is called concurrency, namely the meaning of the CPU core).
If the forwarding program is simply run on a plurality of CPU cores, the actually improved forwarding capability is relatively limited; only one forwarding processing rule table is in the memory, so that a CPU core running the forwarding program needs to access the forwarding processing rule table, and frequent access may cause memory access conflicts. If the forwarding processing rule table is copied to each CPU core, the problem of access memory conflict can be solved, but when a certain rule needs to be added, deleted or changed, all the forwarding processing rule tables need to be updated synchronously, and when a plurality of forwarding processing rule tables exist, data are very difficult to update synchronously and efficiently.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention mainly aims to provide a data forwarding processing method and a server of a 5G data forwarding plane, and aims to solve the problems that a plurality of forwarding processing rule tables exist in the prior art, when one forwarding processing rule table needs to add, delete or change a certain rule, all the forwarding processing rule tables need to be updated synchronously, and data is very difficult to update synchronously and efficiently.
In order to achieve the above object, the present invention provides a data forwarding processing method for a 5G data forwarding plane, where the data forwarding processing method for the 5G data forwarding plane includes the following steps:
when the forwarding program runs on a plurality of CPU cores simultaneously, dividing the forwarding processing rule table into a plurality of forwarding processing rule sub-tables, wherein the forwarding processing rules in each forwarding processing rule sub-table are different from each other, and each CPU core corresponds to one forwarding processing rule sub-table;
when a first CPU core in the CPU cores receives a data packet of a user, the first CPU core acquires a corresponding first forwarding processing rule sub-table, and performs forwarding processing after searching for a forwarding processing rule in the first forwarding processing rule sub-table according to the data packet of the user.
Optionally, in the data forwarding processing method of the 5G data forwarding plane, the forwarding program running on each CPU core only reads the forwarding processing rule from the corresponding forwarding processing rule sub-table, and the forwarding program processes the data packet of the user according to the read forwarding processing rule.
Optionally, in the data forwarding processing method of the 5G data forwarding plane, both the data packet of the user and the forwarding processing rule table carry user information for identifying the user.
Optionally, the data forwarding processing method of the 5G data forwarding plane, where, when the forwarding program is simultaneously run on multiple CPU cores, the forwarding processing rule table is divided into multiple sub-tables of forwarding processing rules, the forwarding processing rules in each sub-table of forwarding processing rules are different from each other, and each CPU core corresponds to one sub-table of forwarding processing rules, specifically including:
loading a forwarding program to a plurality of CPU cores, and numbering the CPU cores in sequence respectively;
classifying all forwarding processing rules in the forwarding processing rule table into a plurality of forwarding processing rule sub-tables according to the user information in each forwarding processing rule, and numbering the forwarding processing rule sub-tables in sequence respectively;
and appointing the CPU core corresponding to each forwarding processing rule sub-table, wherein the forwarding processing rules in each forwarding processing rule sub-table are different from each other.
Optionally, in the data forwarding processing method of the 5G data forwarding plane, the forwarding processing rule of the same type of user and the data packet of the same type of user are both corresponding to the same CPU core.
Optionally, the data forwarding processing method of the 5G data forwarding plane, where when a first CPU core of the multiple CPU cores receives a data packet of a user, the first CPU core obtains a corresponding first forwarding processing rule sub-table, and performs forwarding processing after looking up a forwarding processing rule in the first forwarding processing rule sub-table according to the data packet of the user, before further including:
and receiving the data packet of the user through the network card drive, and distributing the data packet of the user to the corresponding CPU core processing according to the user information in the data packet of the user.
Optionally, the method for processing data forwarding of a 5G data forwarding plane, where the allocating, according to user information in a user data packet, the user data packet to a corresponding CPU core for processing specifically includes:
classifying the data packet of the user according to the user information in the data packet of the user, and sending the data packet of the user to a corresponding CPU core according to the classification type of the data packet of the user;
and when the CPU core receives the data packet of the user, searching the forwarding processing rule from the corresponding forwarding processing rule sub-table to forward the data packet of the user.
Optionally, in the data forwarding processing method of the 5G data forwarding plane, a number of each of the plurality of CPU cores is the same as a number of each of the plurality of forwarding processing rule sub-tables.
In addition, to achieve the above object, the present invention also provides a server, wherein the server includes: the data forwarding processing program of the 5G data forwarding plane is stored on the memory and can run on the processor, and when being executed by the processor, the data forwarding processing program of the 5G data forwarding plane realizes the steps of the data forwarding processing method of the 5G data forwarding plane.
In addition, in order to achieve the above object, the present invention further provides a storage medium, where the storage medium stores a data forwarding processing program of a 5G data forwarding plane, and the data forwarding processing program of the 5G data forwarding plane implements the steps of the data forwarding processing method of the 5G data forwarding plane when being executed by a processor.
When a forwarding program runs on a plurality of CPU cores simultaneously, a forwarding processing rule table is divided into a plurality of forwarding processing rule sub-tables, forwarding processing rules in each forwarding processing rule sub-table are different from each other, and each CPU core corresponds to one forwarding processing rule sub-table; when a first CPU core in the CPU cores receives a data packet of a user, the first CPU core acquires a corresponding first forwarding processing rule sub-table, and performs forwarding processing after searching for a forwarding processing rule in the first forwarding processing rule sub-table according to the data packet of the user. The forwarding processing rule table is divided into a plurality of forwarding processing rule sub-tables, each CPU core corresponds to one forwarding processing rule sub-table, the forwarding processing rules of the same user and the data packets of the same user correspond to the same CPU core, and the forwarding processing is carried out after the forwarding processing rules are searched in the corresponding forwarding processing rule sub-tables according to the data packets of the users, so that the purpose of carrying out multi-core concurrent high-speed forwarding processing on the data packets of the users is achieved, and meanwhile, the conflict of memory access is avoided.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a data forwarding processing method of the 5G data forwarding plane of the present invention;
FIG. 2 is a diagram illustrating an operating environment of a server according to a preferred embodiment of 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.
As shown in fig. 1, the data forwarding processing method of the 5G data forwarding plane according to the preferred embodiment of the present invention includes the following steps:
step S10, when the forwarding program is simultaneously run on multiple CPU cores, the forwarding processing rule table is divided into multiple sub-forwarding processing rule tables, where the forwarding processing rules in each sub-forwarding processing rule table are different from each other, and each CPU core corresponds to one sub-forwarding processing rule table.
Specifically, the 5G data forwarding plane is used for forwarding a data packet of a user in a 5G network, a program for implementing the data forwarding plane is called a forwarding program, in order to improve the processing capability of the forwarding program on a single server, a processing mode of multi-core concurrent (a plurality of CPU cores forward the data packet at the same time, each operation core of a CPU can independently run the program, and a plurality of operation cores run the program at the same time is called concurrent) is often adopted, the CPU cores (the CPU cores are CPU operation cores) load and run the same forwarding program, the plurality of CPU cores (i.e., multi-core CPUs, which are collectively called as CPUs having a plurality of operation cores) respectively share the forwarding processing work responsible for a part of the data packet, and the multi-core concurrent operation is that the plurality of CPU cores concurrently run the forwarding program.
Specifically, a forwarding program is loaded to a plurality of CPU cores, and the plurality of CPU cores are numbered in sequence, respectively; classifying all forwarding processing rules in the forwarding processing rule table into a plurality of forwarding processing rule sub-tables according to the user information in each forwarding processing rule, and numbering the forwarding processing rule sub-tables in sequence respectively; and appointing the CPU core corresponding to each forwarding processing rule sub-table, wherein the forwarding processing rules in each forwarding processing rule sub-table are different from each other.
For example, the forwarding program is loaded onto n CPU cores (where n is a positive integer, e.g., n is 8, that is, the forwarding program is loaded onto 8 CPU cores), and the n CPU cores are sequentially numbered as: 1, 2, 3.., n (when n is 8, i.e., 8 CPU cores are numbered 1-8 in sequence); classifying all forwarding processing rules in the forwarding processing rule table into n classes according to the user information in each forwarding processing rule, wherein each class corresponds to one forwarding processing rule sub-table, and numbering the multiple forwarding processing rule sub-tables sequentially is 1, 2, 3.
For example, a CPU core numbered 1 corresponds to a forwarding processing rule sub-table numbered 1, a CPU core numbered 2 corresponds to a forwarding processing rule sub-table numbered 2, a CPU core numbered i corresponds to a forwarding processing rule sub-table numbered i, and a CPU core numbered n corresponds to a forwarding processing rule sub-table numbered n, wherein i is greater than or equal to 1 and less than or equal to n, and the forwarding processing rule sub-table i is used by CPU cores i with equal numbers; it can be seen that the number of the CPU cores is the same as the number of the forwarding processing rule sub-tables, so that each CPU core corresponds to one forwarding processing rule sub-table, that is, a forwarding program running on the CPU core only reads a forwarding processing rule from the forwarding processing rule sub-table, thereby avoiding memory access conflict (each CPU core only needs to access its corresponding forwarding processing rule sub-table, and does not need to access other forwarding processing rule sub-tables), and not needing to update all forwarding processing rule sub-tables synchronously (that is, when a forwarding processing rule sub-table needs to be added, deleted, or changed, only a certain rule needs to be added, deleted, or changed, and all forwarding processing rule sub-tables do not need to be updated synchronously).
Further, the forwarding program running on each CPU core only reads the forwarding processing rule from the corresponding forwarding processing rule sub-table, and the forwarding program processes the data packet of the user according to the read forwarding processing rule, for example, the forwarding program running on the CPU core i only reads the forwarding processing rule from the corresponding forwarding processing rule sub-table i, and the forwarding program processes the data packet of the user according to the read forwarding processing rule.
The data packet of the user and the forwarding processing rule table both carry user information for identifying the user, and the user information in the data packet of the user and the forwarding processing rule table represent the same type of user (even though the presentation forms are different, the data packet of the user and the user information in the forwarding processing rule table are actually equivalent, that is, represent the same type of user, for example, represent the same user); then, the forwarding processing rule of the same type of user and the data packet of the same type of user may both correspond to the same CPU core (for example, the forwarding processing rule of the same user and the data packet of the same user may both correspond to the same CPU core, which means that as long as the users with the same user information are classified as the same type of user, in fact, the users with the same user information may only have one user or may have multiple users).
Step S20, when a first CPU core of the plurality of CPU cores receives a data packet of a user, the first CPU core acquires a corresponding first forwarding processing rule sub-table, and performs forwarding processing after looking up a forwarding processing rule in the first forwarding processing rule sub-table according to the data packet of the user.
Specifically, before step S20, receiving a data packet of a user through a network card driver, and allocating the data packet of the user to a corresponding CPU core process according to user information in the data packet of the user, specifically including: classifying the data packet of the user according to the user information in the data packet of the user, and sending the data packet of the user to a corresponding CPU core according to the classification type of the data packet of the user; and when the CPU core receives the data packet of the user, searching the forwarding processing rule from the corresponding forwarding processing rule sub-table to forward the data packet of the user.
For example, the users are classified into the ith class according to the user information in the user data packet (for example, the class 1 user may include multiple users), the user data packet may be sent to the corresponding CPU core i, the CPU core i reads the forwarding processing rule according to the corresponding forwarding processing rule sub-table i, and the forwarding program processes the data packet of the class i users according to the read forwarding processing rule.
When a first CPU core (where the first CPU core may refer to any one of the n CPU cores, for example, the CPU core numbered 4, that is, the first CPU core may be denoted as CPU core i) in a plurality of CPU cores (where the first CPU core may refer to any one of the n CPU cores), receives a data packet of a user, the first CPU core obtains a corresponding first forwarding processing rule sub-table (where the first forwarding processing rule sub-table represents that the first CPU core corresponds to, and all the CPU cores and all the forwarding processing rule sub-tables are in a one-to-one correspondence relationship, for example, when the first CPU core is the CPU core numbered 4, the first forwarding processing rule sub-table represents the forwarding processing rule sub-table numbered 4, that is, the first forwarding processing rule sub-table may be denoted as forwarding processing rule sub-table i), and forwards the data packet according to the data packet of the user (for example, the data packet of the class i user) after the forwarding processing rule is looked up in the first forwarding processing rule sub-table And (6) processing.
The following corresponding relationship can be established according to the relationship among the CPU core, the forwarding processing rule sub-table and the user data packet:
CPU core 1 Forwarding processing rules sub-table 1 Data packet of class 1 user
CPU core 2 Forwarding processing rules sub-table 2 Data packet of class 2 user
··· ··· ···
CPU core i Forwarding processing rules sub-table i Data packet of i-type user
··· ··· ···
CPU core n Forwarding processing rules sub-table n Data packet of n-type user
Therefore, as long as the user information in the forwarding processing rule is the same as the user information in the user data packet, the forwarding processing rule of the user and the user data packet are necessarily classified into the ith class and both correspond to the same CPU core i.
When receiving the data packet of the i-class user, the CPU core i queries the forwarding processing rule of the user from the forwarding processing rule sub-table i quickly and processes the data packet, without worrying that the forwarding processing rule of the user does not exist in the forwarding processing rule sub-table i, and without worrying that other CPU cores also access the forwarding processing rule sub-table i to cause access conflict, and without querying the forwarding processing rule of the user from a forwarding processing rule table with a large size slowly, thereby realizing the high-efficiency forwarding processing of the data packet of the user.
The invention provides a method for operating forwarding program on multiple CPU cores, which divides a forwarding processing rule table into multiple sub-tables of forwarding processing rules, wherein the forwarding processing rules in each sub-table of forwarding processing rules are different, each CPU core corresponds to a sub-table of forwarding processing rules, i.e. the forwarding program running on the CPU core will only read the forwarding processing rule from the forwarding processing rule sub-table, thereby avoiding the conflict of accessing the memory and not needing to synchronously update all the forwarding processing rule sub-tables, and after the forwarding processing rule sub-tables are divided into a plurality of forwarding processing rule sub-tables, the data volume in each forwarding processing rule sub-table is far smaller than the data volume in the original forwarding processing rule sub-table, therefore, the speed of searching the forwarding processing rule of the user in the forwarding processing rule sub-table is much faster than the speed of searching in the original forwarding processing rule table, and the forwarding processing speed is further improved.
Each CPU core only needs to process the data packet of the user matched with the forwarding processing rule in the forwarding processing rule sub-table corresponding to the CPU core, and the data packet of the user and the forwarding processing rule table both carry the user information for identifying the user.
Further, as shown in fig. 2, based on the data forwarding processing method of the 5G data forwarding plane, the present invention also provides a server, where the server includes a processor and a memory connected to the processor, where the memory stores a data forwarding processing program of the 5G data forwarding plane, and the data forwarding processing program of the 5G data forwarding plane is used to implement the steps of the data forwarding processing method of the 5G data forwarding plane in the first embodiment when executed by the processor.
In one embodiment, the following steps are implemented when the processor executes a data forwarding handler of the 5G data forwarding plane in the memory:
when the forwarding program runs on a plurality of CPU cores simultaneously, dividing the forwarding processing rule table into a plurality of forwarding processing rule sub-tables, wherein the forwarding processing rules in each forwarding processing rule sub-table are different from each other, and each CPU core corresponds to one forwarding processing rule sub-table;
when a first CPU core in the CPU cores receives a data packet of a user, the first CPU core acquires a corresponding first forwarding processing rule sub-table, and performs forwarding processing after searching for a forwarding processing rule in the first forwarding processing rule sub-table according to the data packet of the user.
The forwarding program running on each CPU core only reads the forwarding processing rule from the corresponding forwarding processing rule sub-table, and the forwarding program processes the data packet of the user according to the read forwarding processing rule.
The data packet and the forwarding processing rule table of the user both carry user information for identifying the user.
When the forwarding program is simultaneously run on a plurality of CPU cores, the forwarding processing rule table is divided into a plurality of forwarding processing rule sub-tables, the forwarding processing rules in each forwarding processing rule sub-table are different from each other, and each CPU core corresponds to one forwarding processing rule sub-table, which specifically includes:
loading a forwarding program to a plurality of CPU cores, and numbering the CPU cores in sequence respectively;
classifying all forwarding processing rules in the forwarding processing rule table into a plurality of forwarding processing rule sub-tables according to the user information in each forwarding processing rule, and numbering the forwarding processing rule sub-tables in sequence respectively;
and appointing the CPU core corresponding to each forwarding processing rule sub-table, wherein the forwarding processing rules in each forwarding processing rule sub-table are different from each other.
The forwarding processing rules of the users of the same class and the data packets of the users of the same class are corresponding to the same CPU core.
When a first CPU core of the plurality of CPU cores receives a data packet of a user, the first CPU core acquires a corresponding first forwarding processing rule sub-table, and performs forwarding processing after looking up a forwarding processing rule in the first forwarding processing rule sub-table according to the data packet of the user, which previously further includes:
and receiving the data packet of the user through the network card drive, and distributing the data packet of the user to the corresponding CPU core processing according to the user information in the data packet of the user.
The allocating the user data packet to a corresponding CPU core process according to the user information in the user data packet specifically includes:
classifying the data packet of the user according to the user information in the data packet of the user, and sending the data packet of the user to a corresponding CPU core according to the classification type of the data packet of the user;
and when the CPU core receives the data packet of the user, searching the forwarding processing rule from the corresponding forwarding processing rule sub-table to forward the data packet of the user.
The serial number of each CPU core of the plurality of CPU cores is the same as the serial number of each forwarding processing rule sub-table in the corresponding plurality of forwarding processing rule sub-tables.
The present invention further provides a storage medium, where the storage medium stores a data forwarding processing program of a 5G data forwarding plane, and the data forwarding processing program of the 5G data forwarding plane implements the steps of the data forwarding processing method of the 5G data forwarding plane when being executed by a processor.
In summary, the present invention provides a data forwarding processing method and a server for a 5G data forwarding plane, where the method includes: when the forwarding program runs on a plurality of CPU cores simultaneously, dividing the forwarding processing rule table into a plurality of forwarding processing rule sub-tables, wherein the forwarding processing rules in each forwarding processing rule sub-table are different from each other, and each CPU core corresponds to one forwarding processing rule sub-table; when a first CPU core in the CPU cores receives a data packet of a user, the first CPU core acquires a corresponding first forwarding processing rule sub-table, and performs forwarding processing after searching for a forwarding processing rule in the first forwarding processing rule sub-table according to the data packet of the user. The forwarding processing rule table is divided into a plurality of forwarding processing rule sub-tables, each CPU core corresponds to one forwarding processing rule sub-table, the forwarding processing rules of the same user and the data packets of the same user correspond to the same CPU core, and the forwarding processing is carried out after the forwarding processing rules are searched in the corresponding forwarding processing rule sub-tables according to the data packets of the users, so that the purpose of carrying out multi-core concurrent high-speed forwarding processing on the data packets of the users is achieved, and meanwhile, the conflict of memory access is avoided.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A data forwarding processing method of a 5G data forwarding plane is characterized in that the data forwarding processing method of the 5G data forwarding plane comprises the following steps:
when the forwarding program runs on a plurality of CPU cores simultaneously, dividing the forwarding processing rule table into a plurality of forwarding processing rule sub-tables, wherein the forwarding processing rules in each forwarding processing rule sub-table are different from each other, and each CPU core corresponds to one forwarding processing rule sub-table;
when a first CPU core in the CPU cores receives a data packet of a user, the first CPU core acquires a corresponding first forwarding processing rule sub-table, and performs forwarding processing after searching for a forwarding processing rule in the first forwarding processing rule sub-table according to the data packet of the user.
2. The data forwarding processing method of the 5G data forwarding plane according to claim 1, wherein the forwarding program running on each CPU core only reads the forwarding processing rule from the corresponding forwarding processing rule sub-table, and the forwarding program processes the user's data packet according to the read forwarding processing rule.
3. The data forwarding processing method for 5G data forwarding plane according to claim 2, wherein the user packet and the forwarding processing rule table both carry user information for identifying the user.
4. The data forwarding processing method of the 5G data forwarding plane according to claim 3, wherein when the forwarding program is simultaneously run on multiple CPU cores, the forwarding processing rule table is divided into multiple sub-tables of forwarding processing rules, the forwarding processing rules in each sub-table of forwarding processing rules are different from each other, and each CPU core corresponds to one sub-table of forwarding processing rules, which specifically includes:
loading a forwarding program to a plurality of CPU cores, and numbering the CPU cores in sequence respectively;
classifying all forwarding processing rules in the forwarding processing rule table into a plurality of forwarding processing rule sub-tables according to the user information in each forwarding processing rule, and numbering the forwarding processing rule sub-tables in sequence respectively;
and appointing the CPU core corresponding to each forwarding processing rule sub-table, wherein the forwarding processing rules in each forwarding processing rule sub-table are different from each other.
5. The data forwarding processing method of the 5G data forwarding plane according to claim 4, wherein the forwarding processing rules of the same class of users and the data packets of the same class of users are both corresponding to the same CPU core.
6. The data forwarding processing method of the 5G data forwarding plane according to claim 5, wherein when a first CPU core among the plurality of CPU cores receives a data packet of a user, the first CPU core obtains a corresponding first forwarding processing rule sub-table, and performs forwarding processing after looking up a forwarding processing rule in the first forwarding processing rule sub-table according to the data packet of the user, and before further comprising:
and receiving the data packet of the user through the network card drive, and distributing the data packet of the user to the corresponding CPU core processing according to the user information in the data packet of the user.
7. The data forwarding processing method of the 5G data forwarding plane according to claim 6, wherein the allocating the user data packet to a corresponding CPU core for processing according to user information in the user data packet specifically comprises:
classifying the data packet of the user according to the user information in the data packet of the user, and sending the data packet of the user to a corresponding CPU core according to the classification type of the data packet of the user;
and when the CPU core receives the data packet of the user, searching the forwarding processing rule from the corresponding forwarding processing rule sub-table to forward the data packet of the user.
8. The data forwarding processing method of the 5G data forwarding plane according to claim 4, wherein the number of each of the plurality of CPU cores is the same as the number of each of the corresponding plurality of forwarding processing rule sub-tables.
9. A server, characterized in that the server comprises: a memory, a processor and a data forwarding processing program of a 5G data forwarding plane stored on the memory and operable on the processor, the data forwarding processing program of the 5G data forwarding plane implementing the steps of the data forwarding processing method of the 5G data forwarding plane according to any one of claims 1 to 8 when executed by the processor.
10. A storage medium, characterized in that the storage medium stores a data forwarding processing program of a 5G data forwarding plane, and the data forwarding processing program of the 5G data forwarding plane implements the steps of the data forwarding processing method of the 5G data forwarding plane according to any one of claims 1 to 8 when executed by a processor.
CN202010397514.0A 2020-05-12 2020-05-12 Data forwarding processing method and server of 5G data forwarding plane Active CN111736982B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010397514.0A CN111736982B (en) 2020-05-12 2020-05-12 Data forwarding processing method and server of 5G data forwarding plane

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010397514.0A CN111736982B (en) 2020-05-12 2020-05-12 Data forwarding processing method and server of 5G data forwarding plane

Publications (2)

Publication Number Publication Date
CN111736982A true CN111736982A (en) 2020-10-02
CN111736982B CN111736982B (en) 2023-12-08

Family

ID=72647136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010397514.0A Active CN111736982B (en) 2020-05-12 2020-05-12 Data forwarding processing method and server of 5G data forwarding plane

Country Status (1)

Country Link
CN (1) CN111736982B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770344A (en) * 2021-01-26 2021-05-07 深圳震有科技股份有限公司 Method, system and terminal for controlling forwarding efficiency of 5G data forwarding plane
CN113141633A (en) * 2021-03-16 2021-07-20 深圳震有科技股份有限公司 5G communication data packet forwarding method and terminal
CN113141632A (en) * 2021-03-16 2021-07-20 深圳震有科技股份有限公司 Method and terminal for orderly forwarding data packets on 5G communication user plane

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789901A (en) * 2009-12-30 2010-07-28 北京天融信科技有限公司 Accelerating method and device of transmitting system positioned on multinuclear platform
CN104199800A (en) * 2014-07-21 2014-12-10 上海寰创通信科技股份有限公司 Method for eliminating mutual exclusion of table items in multi-core system
CN104348724A (en) * 2013-07-31 2015-02-11 华为技术有限公司 Multi-tenant supporting data forwarding method and device
CN104462144A (en) * 2013-09-24 2015-03-25 中兴通讯股份有限公司 Search method and device of packet classification rules
CN104965810A (en) * 2015-05-08 2015-10-07 国家计算机网络与信息安全管理中心 Method and device for rapidly processing data message in multi-core mode
CN105224692A (en) * 2015-11-03 2016-01-06 武汉烽火网络有限责任公司 Support the system and method for the SDN multilevel flow table parallel search of polycaryon processor
US20170118041A1 (en) * 2015-10-21 2017-04-27 Brocade Communications Systems, Inc. Distributed rule provisioning in an extended bridge
CN106997233A (en) * 2016-01-26 2017-08-01 英特尔公司 The access outside polycaryon processor SoC is provided voltage is independently configured
KR20170125564A (en) * 2016-05-04 2017-11-15 한국전자통신연구원 Packet distribution method and apparatus for parallel packet processing
CN109428945A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Data transmission method, equipment and system
CN110022330A (en) * 2018-01-09 2019-07-16 阿里巴巴集团控股有限公司 For the processing method of network packet, device and electronic equipment
CN110138662A (en) * 2019-05-08 2019-08-16 东软集团股份有限公司 Session entry processing method, device and multiple nucleus system in multiple nucleus system
CN110855629A (en) * 2019-10-21 2020-02-28 新华三信息安全技术有限公司 Matching method of IP address, generating method of matching table and related device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101789901A (en) * 2009-12-30 2010-07-28 北京天融信科技有限公司 Accelerating method and device of transmitting system positioned on multinuclear platform
CN104348724A (en) * 2013-07-31 2015-02-11 华为技术有限公司 Multi-tenant supporting data forwarding method and device
CN104462144A (en) * 2013-09-24 2015-03-25 中兴通讯股份有限公司 Search method and device of packet classification rules
CN104199800A (en) * 2014-07-21 2014-12-10 上海寰创通信科技股份有限公司 Method for eliminating mutual exclusion of table items in multi-core system
CN104965810A (en) * 2015-05-08 2015-10-07 国家计算机网络与信息安全管理中心 Method and device for rapidly processing data message in multi-core mode
US20170118041A1 (en) * 2015-10-21 2017-04-27 Brocade Communications Systems, Inc. Distributed rule provisioning in an extended bridge
CN105224692A (en) * 2015-11-03 2016-01-06 武汉烽火网络有限责任公司 Support the system and method for the SDN multilevel flow table parallel search of polycaryon processor
CN106997233A (en) * 2016-01-26 2017-08-01 英特尔公司 The access outside polycaryon processor SoC is provided voltage is independently configured
KR20170125564A (en) * 2016-05-04 2017-11-15 한국전자통신연구원 Packet distribution method and apparatus for parallel packet processing
CN109428945A (en) * 2017-08-29 2019-03-05 华为技术有限公司 Data transmission method, equipment and system
CN110022330A (en) * 2018-01-09 2019-07-16 阿里巴巴集团控股有限公司 For the processing method of network packet, device and electronic equipment
CN110138662A (en) * 2019-05-08 2019-08-16 东软集团股份有限公司 Session entry processing method, device and multiple nucleus system in multiple nucleus system
CN110855629A (en) * 2019-10-21 2020-02-28 新华三信息安全技术有限公司 Matching method of IP address, generating method of matching table and related device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
MEHRDAD MORADI: "SoftBox: A Customizable, Low-Latency, and Scalable 5G Core Network Architecture", 《IEEE JOURNAL ON SELECTED AREAS IN COMMUNICATIONS ( VOLUME: 36, ISSUE: 3, MARCH 2018)》 *
伏云翔: "5G切片中高速通信技术研究", 《中国优秀硕士论文全文数据库》 *
张润滋;王劲林;陈晓;叶晓舟;: "基于多核处理器的边缘数据采集分析节点架构", 网络新媒体技术, no. 02 *
王立文;王友祥;唐雄燕;杨文聪;张雪贝;李沸乐;: "5G核心网UPF硬件加速技术", 移动通信, no. 01 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770344A (en) * 2021-01-26 2021-05-07 深圳震有科技股份有限公司 Method, system and terminal for controlling forwarding efficiency of 5G data forwarding plane
CN112770344B (en) * 2021-01-26 2022-06-14 深圳震有科技股份有限公司 Method, system and terminal for controlling forwarding efficiency of 5G data forwarding plane
CN113141633A (en) * 2021-03-16 2021-07-20 深圳震有科技股份有限公司 5G communication data packet forwarding method and terminal
CN113141632A (en) * 2021-03-16 2021-07-20 深圳震有科技股份有限公司 Method and terminal for orderly forwarding data packets on 5G communication user plane

Also Published As

Publication number Publication date
CN111736982B (en) 2023-12-08

Similar Documents

Publication Publication Date Title
CN111736982B (en) Data forwarding processing method and server of 5G data forwarding plane
US10402424B1 (en) Dynamic tree determination for data processing
CN105740048A (en) Image management method, device and system
US8738645B1 (en) Parallel processing framework
US20180293257A1 (en) Method for accessing distributed database and distributed data service apparatus
CN112231052A (en) High-performance distributed container mirror image distribution system and method
CN110389812B (en) Method, apparatus, and computer-readable storage medium for managing virtual machines
US11386131B2 (en) System and method for multi-language search
US10642817B2 (en) Index table update method, and device
US20170060922A1 (en) Method and device for data search
US8606744B1 (en) Parallel transfer of data from one or more external sources into a database system
CN113779068B (en) Data query method, device, equipment and storage medium
US11461274B2 (en) Processing streams on external data sources
CN116010345A (en) Method, device and equipment for realizing table service scheme of flow batch integrated data lake
CN113342270A (en) Volume unloading method and device and electronic equipment
CN108268594B (en) Data query method and device
CN112527900A (en) Method, device, equipment and medium for database multi-copy reading consistency
US8832223B1 (en) View based streaming of GIS data
CN115544321B (en) Method and device for realizing graph database storage and storage medium
US11868352B2 (en) Systems and methods for spilling data for hash joins
CN116561106B (en) Configuration item data management method and system
CN117573730B (en) Data processing method, apparatus, device, readable storage medium, and program product
CN111611447B (en) Computer and server
WO2022156099A1 (en) Host upgrade method and apparatus, and electronic device and storage medium
CN117827905A (en) Method, storage medium and apparatus for remote database connection query

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