A UPF implementation method, system and device based on programmable switching chip
By adopting the UPF implementation method based on programmable switching chips in the 6G network, the problem that traditional distributed computing cannot meet the ultra-large bandwidth and ultra-low latency is solved, high-performance load dynamic balancing and on-demand services are achieved, and costs are reduced. .
Patent Information
- Application Number
- CN202311624339.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2043-11-29
AI Technical Summary
Traditional distributed computing cannot meet the ultra-large bandwidth and ultra-low latency requirements of 6G networks, and brings high cost problems.
Adopting the UPF implementation method based on programmable switching chips, through the separation architecture of the message forwarding control module and the message forwarding execution module, user plane forwarding rules are generated and executed, and programmable ASIC chips are used for message forwarding, breaking through the limitations of protocol solidification. Achieve high-performance dynamic load balancing.
It realizes the ultra-large bandwidth and ultra-low latency forwarding capabilities of future networks, frees up CPU computing power for intelligent work, reduces forwarding latency, and customizes message formats according to business traffic needs to achieve on-demand service features.
Smart Images

Figure CN117614894B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a UPF implementation method and system based on a programmable switching chip, and a storage medium. Background Art
[0002] With the development of 5G networks and the research on 6G networks, the massive data generated by 6G multi-dimensional and full-scene applications will greatly increase the data traffic pressure on the UPF user plane. The demand for ultra-large capacity and ultra-low latency on the user plane is becoming increasingly prominent. At present, the maximum forwarding capacity relying on the soft forwarding of the server CPU can only reach more than 200G, which cannot meet the future demand for ultra-large bandwidth. Distributed computing requires a large number of servers, and the cost issue is prominent.
[0003] Traditional distributed computing cannot meet the ultra-large bandwidth and ultra-low latency requirements of 6G networks. Distributed computing will bring cost issues, so exploring new high-performance dynamic load balancing is a way to solve big data network congestion. Summary of the invention
[0004] According to one aspect of the present invention, a method, system and device for implementing UPF based on a programmable switching chip are provided to solve the forwarding requirements of ultra-large bandwidth and ultra-low latency in future networks and to achieve forwarding capabilities with ultra-large bandwidth and ultra-low latency.
[0005] In order to solve the above technical problems, the first aspect of the present invention discloses a UPF implementation method based on a programmable switching chip, and the method comprises the following steps:
[0006] The message forwarding control module processes the message according to the message control protocol and generates an adapted user plane forwarding rule;
[0007] The message forwarding execution module processes the message according to the user plane forwarding rule.
[0008] In some implementations, the message forwarding control module processes and adapts the generated user plane forwarding rules according to the message control protocol, including:
[0009] The message forwarding control module establishes a coupling link with the session management module;
[0010] The message forwarding control module receives and parses the session establishment message of the session management module, and obtains and saves the session establishment rule information;
[0011] Generate a user plane forwarding rule according to the session rule information and the session information; the user plane forwarding rule includes a tunnel rule and a message processing rule;
[0012] According to the user plane forwarding rule, the message is sent to the message forwarding execution module through the forwarding rule configuration interface, and the message response message of the message forwarding execution module is processed.
[0013] In some implementations, the message forwarding execution module performs message processing according to the user plane forwarding rule, including:
[0014] In the uplink direction of the message, accept the user plane forwarding rule of the message forwarding control module, decapsulate the user plane forwarding rule, parse the GTP tunnel content, perform Gtpu tunnel matching according to the content, and obtain the destination information;
[0015] Determine routing information according to the destination information and routing rules;
[0016] Convert the user plane forwarding rules into ACL rules, send the packets to the user plane forwarding control module according to the matching metadata, bind the ACL rules with the group rules, and establish a statistical ID;
[0017] Set policy rules according to the rules issued by the control plane.
[0018] In some implementations, the message forwarding execution module performs message processing according to the user plane forwarding rule, further comprising:
[0019] In the downstream direction of the message, receiving the rules issued by the message forwarding control module, creating and managing the downstream ACL rule base according to the ACL rules, and returning a confirmed statistical ID;
[0020] Configure policy rules for session downlink data;
[0021] Perform downstream message encapsulation configuration according to the encapsulation protocol rules;
[0022] Configure routing rules based on the downstream destination address.
[0023] In some implementations, the message forwarding control module processes the message according to the message control protocol, including:
[0024] In the uplink direction, it receives the message request message sent by N3, performs GTPu tunnel matching, extracts the five-tuple key information and UFD information, decapsulates the message header and extension field, and obtains the TEID of the session;
[0025] Perform rule ID query based on the extracted five-tuple and message key type. If the message is the first packet, report the destination IP information, perform route query based on the destination IP, and save the route information of the uplink message.
[0026] Perform ACL rule matching to obtain an ACL matching result; the ACL matching result includes determining whether the message is sent outward and the sending path of the message;
[0027] According to the ACL matching results and policy rules, rate limiting or other QOS processing is performed. After the policy is executed, the message is sent or discarded.
[0028] In some implementations, the message forwarding control module processes the message according to the message control protocol, including:
[0029] In the downlink direction, the message is received and the ACL rule base is searched for message matching;
[0030] Execute the policy according to the policy rules matched by the message;
[0031] Encapsulate the forwarding message protocol and perform tunnel encapsulation according to the message control protocol;
[0032] According to the encapsulated message header, the routing query is performed and the message is sent.
[0033] In some implementations, the message forwarding control module is deployed in a switch or a server.
[0034] In some embodiments, the message forwarding execution module or the message forwarding control module performs forwarding rules through a network socket interface and communicates using UDP messages;
[0035] 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;
[0036] The message response message includes at least one or more of the following: request message sequence number, check code, rule message type, request message type, and response message type.
[0037] In a second aspect, a UPF implementation system based on a programmable switching chip is disclosed, comprising:
[0038] The message forwarding control module is used to process messages according to the message control protocol and generate adapted user plane forwarding rules;
[0039] The message forwarding execution module is used to process messages according to the user plane forwarding rules.
[0040] In a third aspect, a device is disclosed, the device comprising:
[0041] A memory storing executable program code;
[0042] a processor coupled to the memory;
[0043] The processor calls the executable program code stored in the memory to execute a UPF implementation method based on a programmable switching chip as described in any one of the above items.
[0044] Compared with the prior art, the present invention has the following beneficial effects:
[0045] The present application provides a method, system and device for implementing UPF based on a programmable switching chip, which utilizes the capabilities of the forwarding chip itself to solve the forwarding requirements of ultra-large bandwidth and ultra-low latency in future networks. Through the architecture in which the message forwarding control module is separated from the message forwarding execution module, more CPU computing power can be released for intelligent work such as control, statistics, and prediction. At the same time, the message forwarding execution module adopts a protocol-independent programmable switching chip design, breaking through the limitations of the traditional user plane functional protocol solidification. The message is forwarded by a programmable ASIC chip, which greatly improves the user plane forwarding capability and reduces the forwarding latency. At the same time, the user plane message format can be customized according to the business traffic requirements to realize the on-demand service characteristics of the future network. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 A schematic diagram of a flow chart of a method for implementing a UPF based on a programmable switching chip provided by the present invention;
[0047] Figure 2 A schematic diagram of the structure of a UPF implementation method based on a programmable switching chip provided by the present invention;
[0048] Figure 3 A 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;
[0049] Figure 4 A schematic diagram of the structure of a P4 white box switch of a UPF implementation method based on a programmable switching chip provided by the present invention;
[0050] Figure 5 A schematic diagram of a flow chart of a message forwarding execution module of a UPF implementation method based on a programmable switching chip provided by the present invention performing downlink message processing;
[0051] Figure 6 A schematic diagram of a flow chart of a UPF implementation method based on a programmable switching chip provided by the present invention for performing uplink message processing by a message forwarding execution module;
[0052] Figure 7 A schematic diagram of a flow chart of uplink message processing by a message forwarding control module of a UPF implementation method based on a programmable switching chip provided by the present invention;
[0053] Figure 8 A schematic diagram of the flow of downlink message processing by a message forwarding control module of a UPF implementation method based on a programmable switching chip provided by the present invention. DETAILED DESCRIPTION
[0054] For better understanding and implementation, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products or apparatus.
[0056] The present application provides a UPF implementation method based on a programmable switching chip to solve the forwarding requirements of future networks with ultra-large bandwidth and ultra-low latency, and to achieve forwarding capabilities with ultra-large bandwidth and ultra-low latency.
[0057] Specifically, the method comprises the following steps:
[0058] Step S1: The message forwarding control module processes the message according to the message control protocol and generates an adapted user plane forwarding rule.
[0059] Step S2: The message forwarding execution module processes the message according to the user plane forwarding rule.
[0060] Specifically, the message forwarding control module is responsible for message control protocol processing, adapting and generating user plane forwarding rules, and managing user plane forwarding rules. The management of user plane forwarding rules includes adding new rules, updating rules, deleting rules, etc.
[0061] Specifically, the message forwarding control module includes a message control protocol processing unit, a user plane forwarding rule generation unit, and a user plane forwarding rule management unit. The message control protocol processing unit is used to receive the message control protocol (PFCP) message through the message control protocol interface, the message control protocol processes the message control protocol interface, connects to the session management function / simulation instrument, decodes and processes the message control protocol (PFCP) protocol, saves the control rules in the local context, and replies to the session management function / simulation instrument. The user plane forwarding rule generation unit adapts and generates user plane forwarding rules according to the rules of the message control protocol, and the rules include new rules, update rules and deletion rules. The user plane forwarding rule management unit sends the user plane forwarding rules to the message forwarding execution module through the forwarding rule configuration interface, including: when the session is established, send the new rules; when the session is updated, send the update rules; when the session is deleted or the rules in the session are deleted, send the deletion rule indication.
[0062] The message forwarding execution module receives and installs the user plane forwarding rules, and performs message processing according to the forwarding rules for the outgoing user plane tunnel interface and the data network interface. The message forwarding execution module can be divided into multiple submodules, such as the message encapsulation and decapsulation submodule, the protocol processing module, etc.
[0063] like Figure 3 As shown, the message forwarding control rule processing session process includes the following steps:
[0064] Step S31, the message forwarding control module establishes a coupling link with the session management module;
[0065] Step S32, the message forwarding control module parses the session establishment message of the session management module, obtains and saves the session establishment rule information. After receiving the session establishment message of the session management module, the session establishment message is decoded by the PFCP protocol message. The session rule information includes rules such as message detection rules (PDR), message forwarding action rules (FAR), QoS execution rules (QER), usage reporting rules (URR) and cache action rules (BAR); the session rule information is processed and saved to the local context. At the same time, a session establishment response message is replied to the session management function module.
[0066] Step S33, generate user plane forwarding rules according to session rule information and session information; the user plane forwarding rules include tunnel rules and message processing rules. Specifically, according to the user IP address, interface type, tunnel identifier, user quality requirements, bandwidth requirements and other information in the local context, map them into user plane forwarding rules of the message forwarding execution module. Tunnel rules include information such as IP addresses at both ends of the GTP tunnel, TEID and QoS control extension headers; message processing rules include associated tunnel rules, inner address filters and message next step operations and other information.
[0067] Step S34: according to the user plane forwarding rule, the message forwarding execution module is sent to the message forwarding execution module through the forwarding rule configuration interface, and the message response message of the message forwarding execution module is processed. The message forwarding control module sends 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.
[0068] The message forwarding control module is deployed in container mode and can be deployed as follows: Figure 4 As shown in the x86 system of the P4 white box switch, it can also be deployed on a general x86 server. The message forwarding control module uses the forwarding rule configuration interface to communicate with the message forwarding execution module through the network SOCKET interface to complete the rule issuance and information collection.
[0069] The forwarding rules of the network SOCKET interface use UDP messages for communication. The source and destination port numbers are configurable. If no special specifications are made, the default source and destination port numbers are both 10020.
[0070] 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. Its specific format is shown in Table 1:
[0071] Table 1
[0072]
[0073] Among them, all fields are in network byte order. Msg Tag is the request message type, which is fixed and has a code stream of 0x1004. Sequence is the request message sequence number, which is customized by the sender and brought back by the receiver when responding. Msg Type is the rule message type, which is used to distinguish different types of rule messages. Msg Body is the specific rule information. The message body format can adopt the TLV format, JSON format, XML format, etc. commonly used in network messages. The JSON format is recommended. CRC Check is the CRC16 check code of the entire message. The calculation method is to first fill the CRC field with 0, and then perform CRC16 on the entire message (including Msg Tag).
[0074] The message response message includes at least one or more of the following: request message sequence number, check code, rule message type, request message type, and response message type. Its specific format is shown in Table 2:
[0075] Table 2
[0076]
[0077] Among them, all fields are in network byte order, Msg Tag is fixed, and the code stream is 0x1004; Sequence is the request message sequence number, and the receiver directly returns the sequence number in the request message when responding; Result is defined in the message definition below; CRCCheck is the CRC16 checksum of the entire message, and the calculation method is the same as the request message.
[0078] The specific rule message type, request message type, and response message type are shown in Table 3:
[0079] Table 3
[0080]
[0081]
[0082] like Figure 5 As shown, the message forwarding execution module performs message processing according to the user plane forwarding rule, including:
[0083] In the upstream direction of the message:
[0084] Step S51: accept the user plane forwarding rule of the message forwarding control module, decapsulate the user plane forwarding rule, parse the GTP tunnel content, perform Gtpu tunnel matching according to the content, and obtain destination information.
[0085] Specifically, the forwarding execution module receives a set of rules issued by the message forwarding control module, and the parser UDF decapsulates the user plane forwarding rules, parses the GTP tunnel content, extracts the matching fields required for user identification, performs Gtpu tunnel matching, extracts the tunnel ID, establishes a statistical ID, and binds the packet receiving interface.
[0086] Step S52: Determine routing information according to the destination information and routing rules.
[0087] The route query is performed according to the inner destination IP+VRID rule extracted in step S51. If the route is unknown under the rule, the route information needs to be obtained by parsing the uplink message.
[0088] Step S53: convert the user plane forwarding rule into an ACL rule, and according to the matching metadata situation message sent to the user plane forwarding control module, bind the ACL rule with the group rule and establish a statistical ID.
[0089] The ACL part is mainly used for flow identification. The key value method supported by the chip is selected according to the needs. The service forwarding table of the user-plane forwarding control module needs to be converted into ACL rules and organized according to the metadata + UFD + five-tuple key value type. It is sent to the ACL through the API provided by the SDK. At the same time, the basic ACL is provided, which can match the metadata to send the message to the user-plane forwarding control module, bind the ACL rules and group rules, and establish a statistical ID.
[0090] Step S54: Set policy rules according to the rules issued by the control plane.
[0091] According to the rules issued by the control plane, set the policy rules, which include the bandwidth requirements, latency requirements, etc. of the rule, and obtain the policy ID.
[0092] like Figure 6 As shown, it also includes:
[0093] In the downstream direction of messages:
[0094] Step S61, receiving the rules issued by the message forwarding control module, creating and managing a downlink ACL rule base according to the ACL rules, and returning a confirmed statistical ID;
[0095] The message forwarding execution module receives a set of rules issued by the message forwarding control module, creates a downstream ACL rule base, adds and deletes ACL entries, releases and deletes the ACL base according to the ACL rules, completes the binding of downstream ACL rules and group rules, and returns the control plane statistics ID.
[0096] Step S62: Control and configure policy rules for session downlink data;
[0097] Configure policy rules and configure policy control for access to session downlink data packets. The policy granularity is APN / DNN+source and destination IP+port number+protocol.
[0098] Step S63: Perform downlink message encapsulation configuration according to the encapsulation protocol rules.
[0099] Step S64: configure routing rules according to the downlink destination address.
[0100] The message forwarding control module can be understood as a P4 switch that allows network administrators to define the processing logic of data packets according to their specific needs, rather than just relying on fixed network protocols or packet processing rules. The P4 parser converts the input binary data packets into structured data, making subsequent processing easier. This process involves extracting fields from the data packet, parsing headers and metadata, and mapping them to data structures. The parser can parse data packets according to specific network protocols or custom rules. The parser usually includes a finite state machine (FSM), which selects the appropriate parsing operation based on the content and parsing status of the current data packet, extracts the value of the field and passes it to subsequent processing units, such as the processing engine (ingress pipeline).
[0101] The role of the deparser is to generate output packets, repackaging the structured data into the original binary packet format so that it can be sent to the next network node or host. This usually involves reassembling the individual fields and headers to keep the same format as the input packet.
[0102] Deparser is the reverse process of parsing, which can convert structured data back into original data packets to ensure that network nodes can forward data packets correctly.
[0103] The message forwarding control module processes user data messages as follows: Figure 7 , 8 As shown:
[0104] In the upstream direction:
[0105] Step S71: Receive the message request message sent by N3, perform GTPu tunnel matching, extract the five-tuple key information and UFD information, decapsulate the message header and extension field, and obtain the TEID of the session.
[0106] Step S72: perform a rule ID query based on the extracted five-tuple and the message key type. If the message is the first packet, report the destination IP information, perform a route query based on the destination IP, and save the route information of the uplink message.
[0107] The message key type includes the UDF (TEID+QFI) in the message. If the statistics under the ID is 0, it means that it is the first packet. The destination IP information needs to be reported, and a route query is performed based on the destination IP to save the route information of the uplink message.
[0108] Step S73: perform ACL rule matching to obtain an ACL matching result; the ACL matching result includes determining whether the message is sent outward and the sending path of the message;
[0109] Step S74: According to the ACL matching result and in combination with the policy rules, rate limiting or other QOS processing is performed. After executing the policy, the message is sent or discarded.
[0110] In the downstream direction of the message:
[0111] Step S81: Receive the message and search the ACL rule base for message matching.
[0112] The N6 interface receives the downlink message, searches the ACL rule base for message matching, and continues the original message process based on the search results. If it needs to be discarded, it will add the discard reason and continue the process. ACL rule (match by priority): match the original message quintuple IP / MASK+PORT range+PRO (mask)+priority; ACT after ACL can be: policy+encapsulation+outgoing / packet loss; establish statistics according to ACL statsID: default, including the number of packets and bytes, used for sending traffic statistics.
[0113] Step S82: Execute the policy according to the policy rules matched by the message. The policy includes the speed limit policy, UE access policy, etc. After executing the policy, if the message needs to be discarded by the policy, discard the message, set the discard reason at the same time, and report to the control module. If it is not discarded, continue the subsequent process. Speed limit rules (1-N): speed limit rate, bucket type default bucket depth is recommended to be fixed or fixed calculation generation, which needs to be bound to the ACL rule. There are two types of speed limit rules: ACL exclusive and shared.
[0114] Step S83: perform encapsulation of the forwarding message protocol and perform tunnel encapsulation according to the message control protocol.
[0115] GTPu tunnel encapsulation information is
[0116] SrcIP(IPV4 / IPV6)+SrcPort+DstIP(IPV4 / IPV6)+DstPort+TEID(4B)+QFI(1B)+RQI. Extended header information: Gtp-flags, pdu type, extended header type, encapsulation length; specify the tunnel path including the number of packets and bytes, used for sending traffic statistics; establish statistics statsID: tunnel destination IP+outgoing interface vrid.
[0117] Step S84: Perform route query according to the encapsulated message header and send the message. The route query is the tunnel destination IP + outgoing interface vrid.
[0118] Based on the same inventive concept, the present application also provides a user plane simulation network system, including:
[0119] The message forwarding control module is used to process messages according to the message control protocol and generate adapted user plane forwarding rules;
[0120] The message forwarding execution module is used to process messages according to the user plane forwarding rules.
[0121] The processing process is the same as the above method and will not be described in detail here.
[0122] The present application provides a method, system and device for implementing UPF based on programmable switching chip, which utilizes the capability of forwarding chip itself to solve the forwarding requirements of ultra-large bandwidth and ultra-low latency in future networks. Through the architecture of separating the message forwarding control module from the message forwarding execution module, more CPU computing power can be released for intelligent work such as control, statistics and prediction. At the same time, the message forwarding execution module adopts the design of protocol-independent programmable switching chip, which breaks through the limitation of traditional user plane functional protocol solidification. The message forwarding is performed by programmable ASIC chip, which greatly improves the user plane forwarding capability and reduces the forwarding latency. At the same time, the user plane message format can be customized according to the business traffic demand to realize the on-demand service characteristics of the future network.
[0123] The present application also provides a switch or device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements any of the above-described UPF implementation methods based on a programmable switching chip.
[0124] The apparatus may include: a memory storing executable program code;
[0125] a processor coupled to the memory;
[0126] A transceiver used to communicate with other devices or communication networks and to receive or send network messages;
[0127] A bus used to connect memory, processors, and transceivers for internal communication.
[0128] The transceiver receives messages transmitted over the network and passes them to the processor via the bus. The processor calls the executable program code stored in the memory through the bus for processing, and passes the processing results to the transceiver via the bus for sending, thereby realizing the method provided in the embodiment of the present application.
[0129] The embodiment of the present application also provides a non-transitory machine-readable storage medium, on which an executable program is stored, and when the executable program is executed by a processor, the processor is caused to execute the processing method provided in the above embodiment. The embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program for electronic data exchange, wherein the computer program causes a computer to execute the method described above.
[0130] An embodiment of the present invention discloses a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute the method described above.
[0131] The embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, and may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0132] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0133] Finally, it should be noted that the embodiments of the present invention disclose only preferred embodiments of the present invention, which are only used to illustrate the technical solutions of the present invention rather than to limit them. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for implementing a user plane function (UPF) based on a programmable switching chip. It is characterized in that The method comprises the following steps: The message forwarding control module processes messages according to the message control protocol and generates adapted user plane forwarding rules, including: The message forwarding control module establishes a coupling link with the session management module; The message forwarding control module receives and parses the session establishment message of the session management module, and obtains and saves the session establishment rule information; Generate a user plane forwarding rule according to the session rule information and the session information; the user plane forwarding rule includes a tunnel rule and a message processing rule; According to the user plane forwarding rule, the message is sent to the message forwarding execution module through the forwarding rule configuration interface, and the message response message of the message forwarding execution module is processed; 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 management unit; the message control protocol processing unit is used to receive message control protocol messages through a message control protocol interface, a message control protocol processing output message control protocol interface, a session management function / simulation instrument, and decode and process the message control protocol, save the control rules in a local context, and reply to the session management function / simulation instrument; The user plane forwarding rule generation unit adapts and generates user plane forwarding rules according to the rules of the message control protocol, and the user plane forwarding rules include new rules, update rules and deletion rules; the user plane forwarding rule management unit sends the user plane forwarding rules to the message forwarding execution module through the forwarding rule configuration interface, including: sending new rules when the session is established; sending update rules when the session is updated; sending deletion rule instructions when the session is deleted or the rules in the session are deleted; The message forwarding execution module processes the message according to the user plane forwarding rule; the message forwarding execution module adopts a protocol-independent programmable switching chip design.
2. According to claim 1, a method for implementing UPF based on a programmable switching chip, It is characterized in that The message forwarding execution module performs message processing according to the user plane forwarding rule, including: In the uplink direction of the message, the user plane forwarding rule of the message forwarding control module is accepted, the user plane forwarding rule is decapsulated, the GPRS tunnel protocol GTP content is parsed, and the user plane Gtpu tunnel is matched according to the content to obtain the destination information; Determine routing information according to the destination information and routing rules; Convert the user plane forwarding rules into access control list (ACL) rules, send the packets to the user plane forwarding control module according to the matching metadata, bind the ACL rules with the group rules, and establish a statistical identifier ID; Set policy rules according to the rules issued by the control plane.
3. According to claim 2, a method for implementing UPF based on a programmable switching chip, It is characterized in that The message forwarding execution module performs message processing according to the user plane forwarding rule, and also includes: In the downstream direction of the message, receiving the rules issued by the message forwarding control module, creating and managing the downstream ACL rule base according to the ACL rules, and returning a confirmed statistical ID; Configure policy rules for session downlink data; Perform downstream message encapsulation configuration according to the encapsulation protocol rules; Configure routing rules based on the downstream destination address.
4. A method for implementing UPF based on a programmable switching chip according to claim 3, It is characterized in that The message forwarding control module processes the message according to the message control protocol, including: In the uplink direction, it receives the message request message sent by the N3 interface, performs GTPu tunnel matching, extracts the five-tuple key value information and user feedback data UFD information, decapsulates the message header and extension field, and obtains the tunnel terminal identifier TEID of the session; Perform rule ID query based on the extracted five-tuple and message key type. If the message is the first packet, report the destination IP information, perform route query based on the destination IP, and save the route information of the uplink message. Perform ACL rule matching to obtain an ACL matching result; the ACL matching result includes determining whether the message is sent outward and the sending path of the message; According to the ACL matching results and policy rules, rate limiting or other service quality QOS processing is performed. After the policy is executed, the message is sent or discarded.
5. According to claim 4, a method for implementing UPF based on a programmable switching chip, It is characterized in that The message forwarding control module processes the message according to the message control protocol, including: In the downlink direction, the message is received and the ACL rule base is searched for message matching; Execute the policy according to the policy rules matched by the message; Encapsulate the forwarding message protocol and perform tunnel encapsulation according to the message control protocol; According to the encapsulated message header, the routing query is performed and the message is sent.
6. A method for implementing UPF based on a programmable switching chip according to any one of claims 1 to 3, It is characterized in that The message forwarding control module is deployed in a switch or a server.
7. A method for implementing UPF based on a programmable switching chip according to any one of claims 1 to 3, It is characterized in that The message forwarding execution module or the message forwarding control module performs forwarding rules through a network socket interface and communicates through a user datagram protocol UDP message; 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 response message includes at least one or more of the following: request message sequence number, check code, rule message type, request message type, and response message type.
8. A user plane simulation network system, It is characterized in that include: The message forwarding control module is used to process messages according to the message control protocol and generate adapted user plane forwarding rules; 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 management unit; the message control protocol processing unit is used to receive message control protocol messages through a message control protocol interface, a message control protocol processing output message control protocol interface, a session management function / simulation instrument, and so on; Decode and process the message control protocol, save the control rules in the local context, and reply to the session management function / simulation instrument; The user plane forwarding rule generation unit adapts and generates user plane forwarding rules according to the rules of the message control protocol, and the rules include adding rules, updating rules and deleting rules; 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: sending new rules when the session is established; sending updated rules when the session is updated; sending deletion rule instructions when the session is deleted or the rules in the session are deleted; The message forwarding control module is used to process messages according to the message control protocol and generate adapted user plane forwarding rules, including: the message forwarding control module establishes a coupling link with the session management module; The message forwarding control module receives and parses the session establishment message of the session management module, and obtains and saves the session establishment rule information; Generate a user plane forwarding rule according to the session rule information and the session information; the user plane forwarding rule includes a tunnel rule and a message processing rule; According to the user plane forwarding rule, the message is sent to the message forwarding execution module through the forwarding rule configuration interface, and the message response message of the message forwarding execution module is processed; The message forwarding execution module is used to process messages according to the user plane forwarding rules; the message forwarding execution module adopts a protocol-independent programmable switching chip design.
9. A device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a method for realizing UPF based on a programmable switching chip as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
UPF device with collaborative software and hardware and control method thereof
CN112235196A
UPF system based on cooperation of switch and UPF equipment and control method thereof
CN112235211A
Data packet processing method and device, computer equipment and storage medium
CN114244850A
Device and method for processing traffic using switch
WO2023219252A1
