CN117614894A - UPF implementation method, system and device based on programmable switching chip - Google Patents

UPF implementation method, system and device based on programmable switching chip Download PDF

Info

Publication number
CN117614894A
CN117614894A CN202311624339.4A CN202311624339A CN117614894A CN 117614894 A CN117614894 A CN 117614894A CN 202311624339 A CN202311624339 A CN 202311624339A CN 117614894 A CN117614894 A CN 117614894A
Authority
CN
China
Prior art keywords
message
rule
forwarding
user plane
control module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311624339.4A
Other languages
Chinese (zh)
Inventor
段雪飞
朱伏生
邵佳
闵丛丛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Communications and Networks Institute
Original Assignee
Guangdong Communications and Networks Institute
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 Guangdong Communications and Networks Institute filed Critical Guangdong Communications and Networks Institute
Priority to CN202311624339.4A priority Critical patent/CN117614894A/en
Publication of CN117614894A publication Critical patent/CN117614894A/en
Pending legal-status Critical Current

Links

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/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention discloses a UPF realization method based on a programmable exchange chip, which comprises the following steps: the message forwarding control module processes the message according to the message control protocol to generate an adaptive user plane forwarding rule; and the message forwarding execution module processes the message according to the user plane forwarding rule. The method and the device solve the forwarding requirements of the ultra-large bandwidth and the ultra-low delay of the future network and realize the forwarding capability of the ultra-large bandwidth and the ultra-low delay.

Description

UPF implementation method, system and device based on programmable switching chip
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for implementing UPF based on a programmable switching chip, and a storage medium.
Background
With the development of 5G networks and the research of 6G networks, the pressure of data traffic generated by UPF user planes by massive data generated by 6G multidimensional three-dimensional full-scene application is greatly increased, the demands of ultra-large capacity and ultra-low time delay of the user planes are increasingly highlighted, the highest forwarding capacity of soft forwarding by a server CPU can only reach more than 200G at present, the demands of ultra-large bandwidth cannot be met, a large number of servers are needed for distributed computation, and the cost problem is highlighted.
Traditional distributed computing cannot meet the requirements of ultra-large bandwidth and ultra-low latency in a 6G network. Distributed computing presents a cost problem, and thus exploring new high-performance load dynamic balancing is a way to solve large data network congestion.
Disclosure of Invention
According to one aspect of the invention, a UPF implementation method, a UPF implementation system and a UPF implementation device based on a programmable switching chip are provided, the forwarding requirements of ultra-large bandwidth and ultra-low time delay of a future network are met, and the forwarding capability of the ultra-large bandwidth and the ultra-low time delay is realized.
In order to solve the technical problems, the first aspect of the invention discloses a UPF implementation method based on a programmable switching chip, which comprises the following steps:
the message forwarding control module processes the message according to the message control protocol to generate an adaptive user plane forwarding rule;
and the message forwarding execution module processes the message according to the user plane forwarding rule.
In some embodiments, the message forwarding control module processes and adapts to generate a user plane forwarding rule according to a message control protocol, including:
the message forwarding control module establishes a coupling link with the session management module;
the message forwarding control module receives and analyzes the session establishment message of the session management module, and acquires and saves the establishment session rule information;
generating a user plane forwarding rule according to the session rule information and the session information; the user plane forwarding rule comprises a tunnel rule and a message processing rule;
and according to the user plane forwarding rule, the message is sent to a message forwarding execution module through a forwarding rule configuration interface, and the message response message of the message forwarding execution module is processed.
In some embodiments, the message forwarding execution module performs message processing according to the user plane forwarding rule, including:
in the uplink direction of the message, receiving a user plane forwarding rule of a message forwarding control module, decapsulating the user plane forwarding rule, analyzing GTP tunnel content, and performing Gtpu tunnel matching according to the content to obtain target information;
determining route information according to the destination information and the route rule;
converting the user plane forwarding rule into an ACL rule, and binding the ACL rule with the group rule according to the condition of the user plane forwarding control module sent by the matching metadata condition message, so as to establish a statistic ID;
and setting policy rules according to the rules issued by the control plane.
In some embodiments, the message forwarding execution module performs message processing according to the user plane forwarding rule, and further includes:
in the downlink direction of the message, receiving the rule issued by the message forwarding control module, creating and managing a downlink ACL rule base according to the ACL rule, and returning to determine the statistic ID;
performing policy rule control configuration on session downlink data;
carrying out downlink message encapsulation configuration according to encapsulation protocol rules;
and configuring a routing rule according to the downlink destination address.
In some embodiments, the message forwarding control module processes the message according to a message control protocol, including:
in the uplink direction, receiving a message request message sent by N3, performing GTPu tunnel matching, extracting five-tuple key value information and UFD information, performing decapsulation of a message header and an extension field, and obtaining a TEID of a session;
according to the extracted five-tuple and the message key value type, carrying out rule ID inquiry, if the message is a first packet, reporting destination IP information, carrying out route inquiry according to the destination IP, and storing the route information of the uplink message;
performing ACL rule matching to obtain an ACL matching result; the ACL matching result comprises determining whether the message is sent out or not and determining a sending path of the message;
and according to the ACL matching result and the policy rule, performing speed limiting or other QOS processing, and sending or discarding the message after executing the policy.
In some embodiments, the message forwarding control module processes the message according to a message control protocol, including:
in the downlink direction, receiving the message, and searching an ACL rule base to perform message matching;
performing policy execution according to the policy rules matched with the message;
packaging the forwarding message protocol, and performing tunnel packaging according to the message control protocol;
and carrying out route inquiry according to the encapsulated message header, and sending the message.
In some embodiments, the packet forwarding control module is deployed in a switch or a server.
In some embodiments, the message forwarding execution module or the message forwarding control module performs forwarding rules through a network socket interface, and communicates with UDP messages;
the message request message includes at least one or more of the following: specific rule information, request message sequence number, rule message type and check code;
the message reply message includes at least one or more of the following: request message sequence number, check code, rule message type, request message type, reply message type.
In a second aspect, a UPF implementation system based on a programmable switching chip is disclosed, including:
the message forwarding control module is used for processing the message according to the message control protocol and generating an adaptive user plane forwarding rule;
and the message forwarding execution module is used for processing the message according to the user plane forwarding rule.
In a third aspect, an apparatus is disclosed, the apparatus comprising:
a memory storing executable program code;
a processor coupled to the memory;
the processor invokes the executable program code stored in the memory to perform a UPF implementation method based on a programmable switching chip as described in any one of the above.
Compared with the prior art, the invention has the beneficial effects that:
the application provides a UPF implementation method, a UPF implementation system and a UPF implementation device based on a programmable switching chip, which solve the forwarding requirements of ultra-large bandwidth and ultra-low time delay of a future network by utilizing the self capacity of a forwarding chip. Through the architecture of separating the message forwarding control module from the message forwarding execution module, more CPU calculation power can be released for intelligent work such as control, statistics and prediction, meanwhile, the message forwarding execution module adopts a protocol independent programmable switching chip design, the limitation of the traditional user plane function protocol solidification is broken through, the message forwarding is carried out by a programmable ASIC chip, the user plane forwarding capacity is greatly improved, the forwarding delay is reduced, the user plane message format can be customized according to the service flow requirement, and the on-demand service characteristic of a future network is realized.
Drawings
Fig. 1 is a schematic flow chart of a UPF implementation method based on a programmable switching chip provided by the present invention;
fig. 2 is a schematic structural diagram of a UPF implementation method based on a programmable switching chip according to the present invention;
fig. 3 is a schematic flow chart of a message forwarding control rule processing session of a UPF implementation method based on a programmable switching chip provided by the present invention;
fig. 4 is a schematic structural diagram of a P4 white-box switch according to the UPF implementation method provided by the present invention;
fig. 5 is a schematic flow chart of downlink message processing performed by a message forwarding execution module of a UPF implementation method based on a programmable switching chip provided by the present invention;
fig. 6 is a schematic flow chart of uplink message processing performed by a message forwarding execution module of a UPF implementation method based on a programmable switching chip provided by the invention;
fig. 7 is a schematic flow chart of uplink message processing performed by a message forwarding control module of a UPF implementation method based on a programmable switching chip according to the present invention;
fig. 8 is a flow chart of downlink message processing by the message forwarding control module of the UPF implementation method based on the programmable switching chip.
Detailed Description
For a better understanding and implementation, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules that are expressly listed or inherent to such process, method, article, or apparatus.
The application provides a UPF realization method based on a programmable switching chip, which solves the forwarding requirements of ultra-large bandwidth and ultra-low time delay of a future network and realizes the forwarding capability of the ultra-large bandwidth and the ultra-low time delay.
Specifically, the method comprises the following steps:
step S1, a message forwarding control module processes a message according to a message control protocol to generate an adaptive user plane forwarding rule.
And S2, the message forwarding execution module processes the message according to the user plane forwarding rule.
Specifically, the message forwarding control module is responsible for processing, adapting and generating user plane forwarding rules and managing the user plane forwarding rules of the message control protocol. Wherein, the management user plane forwarding rules comprise an adding rule, an updating rule, a deleting rule and the like.
Specifically, the message forwarding control module includes a message control protocol processing unit, a user plane forwarding rule generating unit, and a user plane forwarding rule managing unit. The message control protocol processing unit is used for processing the message control protocol interface through the message control protocol interface, interfacing the session management function/simulation instrument and receiving a message control protocol (PFCP) message; decodes and processes the message control protocol (PFCP) protocol, saves the control rules in the local context, and replies to the session management function/emulation meter. The user plane forwarding rule generating unit adapts and generates a user plane forwarding rule according to the rule of the message control protocol, wherein the rule comprises a new rule, an update rule and a deletion rule. The user plane forwarding rule management unit sends the user plane forwarding rule to the message forwarding execution module through the forwarding rule configuration interface, including: when the session is established, issuing a new rule; when the session is updated, an updating rule is issued; when a session is deleted or a rule in the session is deleted, a deletion rule indication is issued.
And the message forwarding execution module receives and installs the user plane forwarding rule, and executes message processing on the outgoing user plane tunnel interface and the data network interface according to the forwarding rule. The message forwarding execution module can be divided into a plurality of sub-modules, such as a message encapsulation and decapsulation sub-module, a protocol processing module and the like.
As shown in fig. 3, the message forwarding control rule processing session flow includes the following steps:
step S31, a message forwarding control module establishes a coupling link with the session management module;
and step S32, the message forwarding control module analyzes the session establishment message of the session management module, and acquires and saves the establishment session rule information. And after receiving the session establishment message of the session management module, performing PFCP protocol message decoding on the session establishment message. The session rule information includes rules such as a Packet Detection Rule (PDR), a packet Forwarding Action Rule (FAR), a QoS Enforcement Rule (QER), a Usage Reporting Rule (URR), and a Buffer Action Rule (BAR); session rule information is processed and saved to the local context. And simultaneously, replying a session establishment response message to the session management function module.
Step S33, generating a user plane forwarding rule according to the session rule information and the session information; the user plane forwarding rule comprises a tunnel rule and a message processing rule. Specifically, the user IP address, the interface type, the tunnel identifier, the user quality requirement, the bandwidth requirement and other information in the local context are mapped into the user plane forwarding rule of the message forwarding execution module. The tunnel rule comprises IP addresses, TEID, qoS control extension heads and other information at two ends of the GTP tunnel; the message processing rule comprises associated information such as a tunnel rule, an inner address filter, a next operation of the message and the like.
And step S34, the message is sent to the message forwarding execution module through a forwarding rule configuration interface according to the user plane forwarding rule, and the message response message of the message forwarding execution module is processed. The message forwarding control module distributes the generated user plane forwarding rule to the message forwarding execution module through the forwarding rule configuration network interface, and correctly processes the response message of the message forwarding execution module.
The message forwarding control module is deployed in a container mode, can be deployed on an x86 system of the P4 white-box switch as shown in fig. 4, can also be deployed on a general x86 server, and is communicated with the message forwarding execution module through a network SOCKET interface mode by using a forwarding rule configuration interface to finish rule issuing and information collection.
The forwarding rule of the network SOCKET interface adopts UDP messages for communication, and the source and destination port numbers are available and are 10020 under the condition of no special assignment.
Wherein the message request message includes at least one or more of: specific rule information, request message sequence number, rule message type, check code. The specific format is shown in table 1:
TABLE 1
Wherein, all fields are network byte order, msg Tag is request message type, it is fixed, the code stream is 0x1004; sequence is the Sequence number of the request message, which is customized by the sender and brought back when the receiver answers; msg Type is a rule message Type and is used for distinguishing different types of rule messages; msg Body is specific rule information, the message Body format can adopt TLV format, JSON format, XML format and the like which are common in network messages, and the JSON format is recommended to be optimized; CRC Check is a CRC16 Check code for the entire message, calculated by first filling the CRC field with 0 and then doing CRC16 for the entire message (including the Msg Tag).
The message reply message includes at least one or more of the following: request message sequence number, check code, rule message type, request message type, reply message type. The specific format is shown in table 2:
TABLE 2
Wherein, all fields are network byte order, msg Tag is fixed, and the code stream is 0x1004; the Sequence is the Sequence number of the request message, and the Sequence number in the request message is directly brought back when the receiver answers; result definition see message definition below; CRC Check is a CRC16 Check code for the entire message, calculated in the same way as the request message.
Specific rule message types, request message types, reply message types are shown in table 3:
TABLE 3 Table 3
As shown in fig. 5, the message forwarding execution module performs message processing according to the user plane forwarding rule, including:
in the uplink direction of the message:
and S51, receiving a user plane forwarding rule of a message forwarding control module, decapsulating the user plane forwarding rule, analyzing GTP tunnel contents, and performing Gtpu tunnel matching according to the contents to obtain target information.
Specifically, the forwarding execution module receives a set of rules issued by the message forwarding control module, the parser UDF decapsulates the user plane forwarding rules, parses GTP tunnel contents, extracts matching fields required by user identification, performs Gtpu tunnel matching, extracts tunnel IDs, establishes statistical IDs, and binds a packet receiving interface.
And step S52, determining the routing information according to the destination information and the routing rule.
The query route queries the route according to the IP+VRID rule of the inner layer destination extracted in the step S51, and if the route is unknown under the rule, the route information is needed to be obtained according to the analysis of the uplink message.
And step S53, converting the user plane forwarding rule into an ACL rule, and binding the ACL rule with the group rule according to the condition that the user plane forwarding control module is uploaded by the message of the matching metadata condition, so as to establish a statistic ID.
The ACL part is mainly used for carrying out flow identification, a key value mode supported by a chip is selected according to the requirement, a service forwarding table of a user plane forwarding control module is required to be converted into ACL rules, the ACL rules are organized according to metadata +UFD +five-tuple key value types, the ACL is issued through an API provided by an SDK, basic ACL is provided at the same time, the capability of uploading a message to the user plane forwarding control module under the condition of metadata can be matched, ACL rules and group rule binding are carried out, and a statistic ID is established.
And S54, setting policy rules according to rules issued by the control plane.
And setting policy rules according to rules issued by the control plane, wherein the policy rules comprise bandwidth requirements, time delay requirements and the like of the rules, and acquiring policy IDs.
As shown in fig. 6, further includes:
in the downstream direction of the message:
step S61, receiving the rule issued by the message forwarding control module, creating and managing a downlink ACL rule base according to the ACL rule, and returning to determine the statistic ID;
the message forwarding execution module receives a group of rules issued by the message forwarding control module, creates a downlink ACL rule base, adds and deletes ACL entries, releases and deletes the ACL base according to the ACL rules, completes the process of binding the downlink ACL rules and the group rules, and returns a control plane statistic ID.
Step S62, performing policy rule control configuration on session downlink data;
and performing policy rule configuration, and performing policy control configuration on access of the session downlink data message, wherein policy granularity is APN/DNN+source destination IP+port number+protocol.
And step S63, carrying out downlink message encapsulation configuration according to encapsulation protocol rules.
And S64, configuring a routing rule according to the downlink destination address.
A packet forwarding control module, as understood by a P4 switch, allows a network administrator to define the processing logic of a packet according to their particular needs, rather than relying solely on fixed network protocols or packet processing rules. The P4 parser converts the incoming binary data packets into structured data, allowing for easier subsequent processing. This process involves extracting fields from the data packet, parsing the header and metadata, mapping them into a data structure. The Parser may parse the data packet according to a particular network protocol or custom rules. Parser typically comprises a Finite State Machine (FSM), which selects the appropriate parsing operation based on the contents and parsing state of the current packet, extracts the values of the fields and passes them to a subsequent processing unit, such as a processing engine (ingress pipeline).
The function of the reverse parser is to generate an outgoing data packet, repackaging the structured data into the original binary data packet format for transmission to the next network node or host. This typically involves recombining the various fields and headers, which remain the same as the incoming data packet format.
Depasser is the inverse of parsing, which can re-convert structured data into original packets, ensuring that network nodes can forward packets correctly.
The flow of processing the user data message by the message forwarding control module is as shown in fig. 7 and 8:
in the upstream direction:
step S71, receiving a message request message sent by N3, carrying out GTPu tunnel matching, extracting five-tuple key value information and UFD information, carrying out decapsulation of a message header and an extension field, and obtaining a TEID of a session.
Step S72, carrying out rule ID inquiry according to the extracted five-tuple and the message key value type, if the message is a first packet, reporting the destination IP information, carrying out route inquiry according to the destination IP, and storing the route information of the uplink message;
the message key value type comprises UDF (TEID+QFI) in the message, if the statistics under the ID is 0, the description is the first packet, the destination IP information needs to be reported, the route inquiry is carried out according to the destination IP, and the route information of the uplink message is stored.
Step 73, performing ACL rule matching to obtain an ACL matching result; the ACL matching result comprises determining whether the message is sent out or not and determining a sending path of the message;
and step S74, according to the ACL matching result and the policy rule, performing speed limiting or other QOS processing, and sending or discarding the message after executing the policy.
In the downstream direction of the message:
step S81, receiving the message, searching an ACL rule base and carrying out message matching.
And (6) connecting the N6 port to the downlink message, searching an ACL rule base to match the message, continuing the original message flow according to the search result, and if the original message flow needs to be discarded, marking a discarding reason and continuing the flow. ACL rules (match by priority): matching the five-tuple IP/MASK+PORT range+PRO (MASK) +priority of the original message; ACL post ACT can be: strategy + encapsulation + outgoing/packet loss; the statistics statsID is established according to ACL: default, packet number and byte number are included for sending traffic statistics.
And S82, executing the strategy according to the strategy rule matched with the message. The strategy comprises a speed limiting strategy, a UE access strategy and the like, the strategy is executed, if the strategy needs to discard the message, the message is discarded, meanwhile, the discard reason is set, the control module is reported, and if the strategy does not discard, the subsequent flow is continued. Speed limit rule (1-N): the speed limiting rate and the default barrel depth of the barrel type are suggested to be generated fixedly or through fixed calculation, and the speed limiting rate and the default barrel depth are bound with ACL rules, and the speed limiting rules have ACL exclusive sharing and sharing.
And S83, packaging the forwarding message protocol, and performing tunnel packaging according to the message control protocol.
The GTPu tunnel encapsulation information is that
SrcIP (IPV 4/IPV 6) +SrcPort+DstIP (IPV 4/IPV 6) +DstPort+TEID (4B) +QFI (1B) +RQI. Extension header information: gtp-flags, pdu type, extension header type, encapsulation length; the appointed tunnel road comprises a packet number and a byte number and is used for sending flow statistics; establishing statistics statsID: tunnel destination IP + out interface vrid.
And S84, carrying out routing query according to the encapsulated message header, and sending the message. The routing query is tunneled IP + egress interface vrid.
Based on the same inventive concept, the application further provides a user plane simulation network system, which comprises:
the message forwarding control module is used for processing the message according to the message control protocol and generating an adaptive user plane forwarding rule;
and the message forwarding execution module is used for processing the message according to the user plane forwarding rule.
The treatment process is the same as the above method, and will not be described here again.
The application provides a UPF implementation method, a UPF implementation system and a UPF implementation device based on a programmable switching chip, which solve the forwarding requirements of ultra-large bandwidth and ultra-low time delay of a future network by utilizing the self capacity of a forwarding chip. Through the architecture of separating the message forwarding control module from the message forwarding execution module, more CPU calculation power can be released for intelligent work such as control, statistics and prediction, meanwhile, the message forwarding execution module adopts a protocol independent programmable switching chip design, the limitation of the traditional user plane function protocol solidification is broken through, the message forwarding is carried out by a programmable ASIC chip, the user plane forwarding capacity is greatly improved, the forwarding delay is reduced, the user plane message format can be customized according to the service flow requirement, and the on-demand service characteristic of a future network is realized.
The application also provides a switch or device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes a UPF realization method based on the programmable switch chip when executing the computer program.
The apparatus may include: a memory storing executable program code;
a processor coupled to the memory;
a transceiver for communicating with other devices or a communication network, receiving or transmitting network messages;
and a bus for connecting the memory, the processor and the transceiver for internal communication.
The transceiver receives the information transmitted from the network, and transmits the information to the processor through the bus, the processor calls the executable program codes stored in the memory through the bus to process the information, and transmits the processing result to the transceiver through the bus to send the processing result, so that the method provided by the embodiment of the application is realized.
Embodiments of the present application also provide a non-transitory machine-readable storage medium having stored thereon an executable program, which when executed by a processor, causes the processor to perform the processing method as provided in the above embodiments. The embodiment of the invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method as described.
Embodiments of the present invention disclose a computer program product comprising a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform the method as yet described.
The embodiments described above are illustrative only, and the modules illustrated as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, may be located in one place, or may be distributed over multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above detailed description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course by means of hardware. Based on such understanding, the foregoing technical solutions may be embodied essentially or in part in the form of a software product that may be stored in a computer-readable storage medium including Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), programmable Read-Only Memory (Programmable Read-Only Memory, PROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), one-time programmable Read-Only Memory (OTPROM), electrically erasable programmable Read-Only Memory (EEPROM), compact disc Read-Only Memory (Compact Disc Read-Only Memory, CD-ROM) or other optical disc Memory, magnetic disc Memory, tape Memory, or any other medium that can be used for computer-readable carrying or storing data.
Finally, it should be noted that: the embodiment of the present invention is disclosed only in the preferred embodiment of the present invention, and is only used for illustrating the technical scheme of the present invention, but not limiting the technical scheme; although the invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that; the technical scheme recorded in the various embodiments can be modified or part of technical features in the technical scheme can be replaced equivalently; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (10)

1. The UPF implementation method based on the programmable exchange chip is characterized by comprising the following steps:
the message forwarding control module processes the message according to the message control protocol to generate an adaptive user plane forwarding rule;
and the message forwarding execution module processes the message according to the user plane forwarding rule.
2. The UPF implementation method based on a programmable switch chip as claimed in claim 1, wherein the packet forwarding control module processes and adapts to generate a user plane forwarding rule according to a packet control protocol, including:
the message forwarding control module establishes a coupling link with the session management module;
the message forwarding control module receives and analyzes the session establishment message of the session management module, and acquires and saves the establishment session rule information;
generating a user plane forwarding rule according to the session rule information and the session information; the user plane forwarding rule comprises a tunnel rule and a message processing rule;
and according to the user plane forwarding rule, the message is sent to a message forwarding execution module through a forwarding rule configuration interface, and the message response message of the message forwarding execution module is processed.
3. The method for implementing UPF based on programmable switch chip as in claim 1, wherein the message forwarding execution module performs message processing according to the user plane forwarding rule, and the method comprises:
in the uplink direction of the message, receiving a user plane forwarding rule of a message forwarding control module, decapsulating the user plane forwarding rule, analyzing GTP tunnel content, and performing Gtpu tunnel matching according to the content to obtain target information;
determining route information according to the destination information and the route rule;
converting the user plane forwarding rule into an ACL rule, and binding the ACL rule with the group rule according to the condition of the user plane forwarding control module sent by the matching metadata condition message, so as to establish a statistic ID;
and setting policy rules according to the rules issued by the control plane.
4. A method for implementing UPF based on a programmable switch chip according to claim 3, wherein the message forwarding execution module performs message processing according to the user plane forwarding rule, and further comprising:
in the downlink direction of the message, receiving the rule issued by the message forwarding control module, creating and managing a downlink ACL rule base according to the ACL rule, and returning to determine the statistic ID;
performing policy rule control configuration on session downlink data;
carrying out downlink message encapsulation configuration according to encapsulation protocol rules;
and configuring a routing rule according to the downlink destination address.
5. The method for implementing UPF based on programmable switch chip as in claim 4, wherein said message forwarding control module processes the message according to a message control protocol, comprising:
in the uplink direction, receiving a message request message sent by N3, performing GTPu tunnel matching, extracting five-tuple key value information and UFD information, performing decapsulation of a message header and an extension field, and obtaining a TEID of a session;
according to the extracted five-tuple and the message key value type, carrying out rule ID inquiry, if the message is a first packet, reporting destination IP information, carrying out route inquiry according to the destination IP, and storing the route information of the uplink message;
performing ACL rule matching to obtain an ACL matching result; the ACL matching result comprises determining whether the message is sent out or not and determining a sending path of the message;
and according to the ACL matching result and the policy rule, performing speed limiting or other QOS processing, and sending or discarding the message after executing the policy.
6. The method for implementing UPF based on programmable switch chip as in claim 5, wherein said message forwarding control module processes the message according to a message control protocol, comprising:
in the downlink direction, receiving the message, and searching an ACL rule base to perform message matching;
performing policy execution according to the policy rules matched with the message;
packaging the forwarding message protocol, and performing tunnel packaging according to the message control protocol;
and carrying out route inquiry according to the encapsulated message header, and sending the message.
7. The method for implementing UPF based on programmable switch chip according to any one of claims 1-4, wherein the message forwarding control module is deployed in a switch or a server.
8. The method for implementing UPF based on programmable switch chip as in any one of claims 1-4, wherein said message forwarding executing module or said message forwarding control module performs forwarding rules through a network socket interface, and communicates with UDP messages;
the message request message includes at least one or more of the following: specific rule information, request message sequence number, rule message type and check code;
the message reply message includes at least one or more of the following: request message sequence number, check code, rule message type, request message type, reply message type.
9. A user plane emulation network system, comprising:
the message forwarding control module is used for processing the message according to the message control protocol and generating an adaptive user plane forwarding rule;
and the message forwarding execution module is used for processing the message according to the user plane forwarding rule.
10. An apparatus, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing a UPF implementation method based on a programmable switching chip as claimed in any one of claims 1 to 8 when the computer program is executed.
CN202311624339.4A 2023-11-29 2023-11-29 UPF implementation method, system and device based on programmable switching chip Pending CN117614894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311624339.4A CN117614894A (en) 2023-11-29 2023-11-29 UPF implementation method, system and device based on programmable switching chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311624339.4A CN117614894A (en) 2023-11-29 2023-11-29 UPF implementation method, system and device based on programmable switching chip

Publications (1)

Publication Number Publication Date
CN117614894A true CN117614894A (en) 2024-02-27

Family

ID=89947842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311624339.4A Pending CN117614894A (en) 2023-11-29 2023-11-29 UPF implementation method, system and device based on programmable switching chip

Country Status (1)

Country Link
CN (1) CN117614894A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235196A (en) * 2020-09-03 2021-01-15 广州数物科技有限公司 Soft and hard cooperative UPF equipment and control method thereof
CN112235211A (en) * 2020-09-03 2021-01-15 广州数物科技有限公司 UPF system based on cooperation of switch and UPF equipment and control method thereof
WO2023219252A1 (en) * 2022-05-09 2023-11-16 삼성전자 주식회사 Device and method for processing traffic using switch

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235196A (en) * 2020-09-03 2021-01-15 广州数物科技有限公司 Soft and hard cooperative UPF equipment and control method thereof
CN112235211A (en) * 2020-09-03 2021-01-15 广州数物科技有限公司 UPF system based on cooperation of switch and UPF equipment and control method thereof
WO2023219252A1 (en) * 2022-05-09 2023-11-16 삼성전자 주식회사 Device and method for processing traffic using switch

Similar Documents

Publication Publication Date Title
US11882041B2 (en) Congestion notification packet indicating specific packet flow experiencing congestion to facilitate individual packet flow based transmission rate control
US20160323193A1 (en) Service Routing Method, Device, and System
CN112671641B (en) Message forwarding method and device
US8724630B2 (en) Method and system for implementing network intercommunication
US11102133B2 (en) Service packet processing method, apparatus, and system
US20170171039A1 (en) Network flow information collection method and apparatus
WO2019183919A1 (en) Method and apparatus for converged networking
WO2022022229A1 (en) Method and device for processing message
CN109218111B (en) Method for processing message and repeater
JP6480452B2 (en) Packet processing method and apparatus
CN1973503B (en) Flow processing
CN111788812B (en) Techniques for packet data conversion
EP1421801B1 (en) Method and apparatus for transmitting, receiving, and executing application query messages via an internet protocol transport
CN108848202B (en) Electronic device, data transmission method and related product
CN116095197B (en) Data transmission method and related device
CN117614894A (en) UPF implementation method, system and device based on programmable switching chip
WO2012000282A1 (en) Method for implementing time division multiplex (tdm) service relay in access device and access device thehrof
CN114363102A (en) Multicast implementation method and device based on multicast and VXLAN linkage
CN107612829B (en) Method and device for acquiring path information of data message
CN113973134A (en) Data transmission method and device, electronic equipment and computer storage medium
US11882039B1 (en) UDF-based traffic offloading methods and systems
CN111464449B (en) Inter-domain flow localization exchange method
US20240163208A1 (en) Packet processing method and apparatus, and storage medium and electronic apparatus
US10819631B2 (en) Network device supporting trill protocol and communication method thereof
CN116192777A (en) Path learning method, device 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