Method and device for performing dynamic mtu conversion for cellular core network
Dynamic MTU conversion using UPF's LRO and GRO functions addresses packet processing inefficiencies by combining packets and distributing them across multiple RX queues, significantly improving network performance and throughput in wireless communication networks.
Patent Information
- Application Number
- PCT/KR2024/003033
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-13
- Filing Date
- 2024-03-08
- Publication Date
- 2024-09-19
AI Technical Summary
Current wireless communication networks face bottlenecks in packet processing due to fixed MTU sizes, leading to inefficiencies in handling increased network bandwidth and computational loads, particularly in the core network and user devices.
The method involves dynamically converting MTU sizes using the User Plane Function (UPF) through Large Receive Offload (LRO) and Generic Receive Offload (GRO) functions, combining packets into larger sizes, and distributing them across multiple RX queues to reduce rule lookup operations and CPU overhead.
This approach enhances packet processing rates and reduces computational load, improving network performance by increasing throughput and average packet size, as demonstrated by experimental results showing 3.1 to 4.9 times throughput improvement and 1.4 times performance enhancement.
Smart Images

Figure KR2024003033_19092024_PF_FP_ABST
Abstract
Description
Method and device for performing dynamic MTU conversion for cellular core networks
[0001] The present invention relates to a method and device for dynamically changing an MTU (maximum transmission unit) for a cellular core network, and proposes a method for more efficiently processing large-capacity traffic by dynamically changing the size of an MTU.
[0002] Looking back at the evolution of wireless communication over successive generations, technologies have primarily been developed for human-facing services such as voice, multimedia, and data. With the commercialization of 5G (5th-generation) communication systems, an explosive increase in connected devices is expected to be connected to communication networks. Examples of networked objects include vehicles, robots, drones, home appliances, displays, smart sensors installed in various infrastructures, construction equipment, and factory equipment. Mobile devices are expected to evolve into diverse form factors, including augmented reality glasses, virtual reality headsets, and holographic devices. In the 6th-generation (6G) era, efforts are being made to develop improved 6G communication systems to connect hundreds of billions of devices and objects and provide diverse services. For this reason, 6G communication systems are often referred to as "Beyond 5G" systems.
[0003] The 6G communication system, expected to be realized around 2030, will have a maximum transmission speed of terabytes per second (i.e., 1,000 gigabits per second) and a wireless latency of 100 microseconds (μsec). In other words, compared to 5G, the transmission speed in a 6G communication system will be 50 times faster, while the wireless latency will be reduced to one-tenth.
[0004] To achieve these high data rates and ultra-low latency, 6G communication systems are being considered for implementation in the terahertz band (e.g., from 95 gigahertz (GHz) to 3 terahertz (THz)). Compared to the millimeter wave (mmWave) band introduced in 5G, the terahertz band is expected to experience more severe path loss and atmospheric absorption, making it more crucial to ensure signal reach, or coverage, in this band. Key technologies to ensure coverage include radio frequency (RF) components, antennas, new waveforms that offer better coverage than orthogonal frequency division multiplexing (OFDM), beamforming, and multiple antenna transmission technologies such as massive multiple-input and multiple-output (MIMO), full-dimensional MIMO (FD-MIMO), array antennas, and large-scale antennas. In addition, new technologies such as metamaterial-based lenses and antennas, high-dimensional spatial multiplexing using orbital angular momentum (OAM), and reconfigurable intelligent surfaces (RIS) are being discussed to improve the coverage of terahertz band signals.
[0005] In addition, in order to improve frequency efficiency and system network, 6G communication systems are developing full duplex technology that utilizes the same frequency resources for uplink and downlink at the same time; network technology that integrates satellites and high-altitude platform stations (HAPS); network structure innovation technology that supports mobile base stations and enables optimization and automation of network operation; dynamic spectrum sharing technology through collision avoidance based on spectrum usage prediction; AI-based communication technology that utilizes artificial intelligence (AI) from the design stage and internalizes end-to-end AI support functions to realize system optimization; and next-generation distributed computing technology that realizes services with complexity that exceeds the limits of terminal computing capabilities by utilizing ultra-high-performance communication and computing resources (mobile edge computing (MEC), cloud, etc.). In addition, efforts are being made to further strengthen connectivity between devices, further optimize networks, promote softwareization of network entities, and increase the openness of wireless communications through the design of new protocols to be used in 6G communication systems, the implementation of hardware-based security environments, the development of mechanisms for the safe use of data, and the development of technologies for maintaining privacy.
[0006] Research and development of these 6G communication systems are expected to enable a new level of hyper-connected experience through the hyper-connectivity of 6G communication systems, which encompass not only connections between things but also connections between people and things. Specifically, 6G communication systems are expected to enable services such as truly immersive extended reality (XR), high-fidelity mobile holograms, and digital replicas. Furthermore, services such as remote surgery, industrial automation, and emergency response, which are provided through 6G communication systems through enhanced security and reliability, will be applied in diverse fields such as industry, medicine, automobiles, and home appliances.
[0007] MTU (maximum transmission unit) refers to the largest packet size that can be carried in a single packet on a specific IP network. Ethernet is the most commonly used link layer technology that constitutes an IP network, and the most commonly used MFS (maximum frame size) in Ethernet is composed of 1518 bytes (18 bytes are composed of the Ethernet header + FCS), so the MTU in most WAN (wide-area network) environments is mainly used as a size of 1500 bytes.
[0008] Although recent network devices support MTUs exceeding 1500 bytes, such as jumbo frames (9000 bytes), an MTU of 1500 bytes is still predominantly used in actual Internet network environments. This is to prevent packet processing performance degradation of public data network (PDU) packets due to IP fragmentation performed by routers when processing packets larger than the transmission link's MTU size. Accordingly, both wireless communication networks and user equipment (UE) use MTU sizes below 1500 bytes.
[0009] However, since 1500 bytes is the MTU size adopted in a 10Mbps shared Ethernet environment, there is significantly less reason to continue using an MTU size of 1500 bytes in the current situation where switched Ethernet is widely used and bandwidth has increased.
[0010] Network bandwidth is rapidly increasing, with network cards supporting 400 Gbps speeds emerging and commercial switches capable of tens of Tbps even being released. However, the performance of central processing units (CPUs) has slowed compared to the past, resulting in bottlenecks in network applications occurring at the CPU level, rather than network bandwidth.
[0011] The purpose of the present invention is to reduce the computational load required for packet processing within a core network and to improve the packet processing rate of a wireless network and a user device by dynamically adjusting the MTU size used in a PDN and the MTU size used within a wireless communication network.
[0012] According to one embodiment of the present invention, a method performed by a user plane function (UPF) in a wireless communication system may be disclosed, comprising: receiving a plurality of first size packets from a packet data network (PDN); converting at least some of the plurality of first size packets received from the PDN into a second size packet; performing a lookup for a packet processing rule on at least one of the second size packets and performing packet processing according to the lookup result; dividing the second size packet on which the packet processing has been performed into a plurality of third size packets; and transmitting the third size packets to a user terminal.
[0013] According to one embodiment, the step of converting at least some of the plurality of first-size packets into second-size packets may be characterized by first performing merging on the first packets through a Large Receive Offload (LRO) function, which is a hardware function of the UPF, and secondly performing merging on the first packets through a Generic Receive Offload (GRO) function, which is a software function of the UPF.
[0014] The algorithm for the above GRO function may be characterized by searching for a flow to which a packet to be merged belongs through a 5-tuple based hash table.
[0015] The algorithm for the above GRO function may be characterized by determining the bucket to which the flow to which the packet to be merged belongs exists through the RSS (Receive-Side Scaling) hash value.
[0016] The method of the UPF may further include the steps of: allocating a plurality of RX queues to at least some CPU cores among the CPU cores of the UPF based on the maximum number of RX queues supported by the UPF; and distributing flows received from the PDN to the plurality of RX queues.
[0017] The first size packet may be set to a size of 1500 bytes, and the third size packet may be set to a size of 9000 bytes.
[0018] The above UPF method may further include a step of modifying a TCP MSS (maximum segment size) value of a TCP SYN (Synchronization) packet transmitted from the terminal to the PDN to an MTU value of the PDN; and a step of modifying a TCP MSS value of a TCP SYN packet transmitted from the PDN to the terminal to an MTU value of the terminal.
[0019] According to another embodiment of the present invention, a UPF operating in a wireless communication system may be disclosed. The UPF may include a transceiver; and a control unit, wherein the control unit may be configured to receive a plurality of first size packets from a packet data network (PDN), combine at least some of the plurality of first size packets received from the PDN and convert them into second size packets, perform a lookup for a packet processing rule on at least one of the second size packets and perform packet processing according to the lookup result, divide the second size packet on which the packet processing has been performed into a plurality of third size packets, and transmit the third size packets to a user terminal.
[0020] According to one of the various embodiments of the present invention, since the UPF dynamically converts the MTU between the PDN and the core network, the MTU between the UPF and the PDN can be set to the existing size of 1500 bytes, and the MTU between the UPF and the core network can be set to the size of 9000 bytes. The rule lookups such as the forwarding action rule (FAR), the buffering action rule (BAR), the QoS enforcement rule (QER), the packet detection rule (PDR), and the usage reporting rule (URR) performed by the UPF are performed using only the header information of the packet. However, when packets belonging to the same flow are converted into a single large-sized packet through the dynamic MTU conversion proposed in the present invention, the number of rule lookup operations is also reduced as the total number of packets is reduced, so that the performance of the UPF can be improved.
[0021] According to one of the various embodiments of the present invention, by allocating a larger number of RX queues to each CPU core of the UPF than before, the number of flows processed by each RX queue can be reduced. Accordingly, more packets can be merged through large receive offload (LRO) or generic receive offload (GRO), and the average packet size can be increased and the total number of packets can be reduced, thereby improving the performance of the UPF.
[0022] According to one of the various embodiments of the present invention, by utilizing a hash table-based GRO algorithm, the performance of UPF can be improved compared to when using a GRO algorithm utilizing a linear search method.
[0023] FIG. 1 is a diagram briefly showing the structure of a cellular network according to one embodiment of the present invention.
[0024] FIG. 2 is a drawing showing the process of operating UPF in a prior art related to the present invention.
[0025] FIG. 3 is a diagram showing the process of operation of a UPF to which a technology according to one embodiment of the present invention is applied.
[0026] FIG. 4 is a drawing for explaining a method for improving the efficiency of LRO and GRO according to one embodiment of the present invention.
[0027] FIG. 5 is a diagram illustrating a method for improving a GRO algorithm disclosed according to one embodiment of the present invention.
[0028] FIG. 6 is a flowchart illustrating a method for UPF to merge packets according to a GRO function according to one embodiment of the present invention.
[0029] FIG. 7 is a flowchart illustrating a method in which a UPF according to one embodiment of the present invention performs processing on items included in a bucket queue according to a GRO function.
[0030] Figure 8 is a diagram illustrating the structure of a terminal according to one embodiment of the present invention.
[0031] FIG. 9 is a diagram illustrating the structure of a network entity according to one embodiment of the present invention.
[0032] In describing the embodiments herein, descriptions of technical details that are well-known in the technical field to which the present invention pertains and are not directly related to the present invention will be omitted. This is to avoid obscuring the gist of the present invention by omitting unnecessary explanations and to convey the gist more clearly.
[0033] For the same reason, some components in the attached drawings are exaggerated, omitted, or schematically depicted. Furthermore, the dimensions of each component do not entirely reflect its actual size. Identical or corresponding components in each drawing are assigned the same reference numbers.
[0034] The advantages and features of the present invention, and the methods for achieving them, will become clearer with reference to the embodiments described in detail below together with the accompanying drawings. However, the present invention is not limited to the embodiments disclosed below and may be implemented in various different forms. These embodiments are provided only to ensure that the disclosure of the present invention is complete and to fully inform those skilled in the art of the scope of the invention, and the present invention is defined only by the scope of the claims. Like reference numerals designate like elements throughout the specification.
[0035] At this time, it will be understood that each block of the processing flow diagrams and combinations of the flow diagrams can be performed by computer program instructions. These computer program instructions can be installed in a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing equipment, so that the instructions executed by the processor of the computer or other programmable data processing equipment create a means for performing the functions described in the flow diagram block(s). These computer program instructions can also be stored in a computer-available or computer-readable memory that can direct a computer or other programmable data processing equipment to implement the functions in a specific manner, so that the instructions stored in the computer-available or computer-readable memory can also produce a manufactured item that includes an instruction means for performing the functions described in the flow diagram block(s). Since the computer program instructions may be installed on a computer or other programmable data processing device, a series of operational steps may be performed on the computer or other programmable data processing device to create a computer-executable process, and the instructions that cause the computer or other programmable data processing device to perform the steps for performing the functions described in the flowchart block(s) may also provide steps for performing the functions described in the flowchart block(s).
[0036] Additionally, each block may represent a module, segment, or portion of code that contains one or more executable instructions for performing a specific logical function(s). It should also be noted that in some alternative implementation examples, the functions described in the blocks may occur out of order. For example, two blocks depicted in succession may actually be executed substantially concurrently, or the blocks may sometimes be executed in reverse order, depending on their respective functions.
[0037] Here, the term '~ unit' used in the present embodiment means a software or hardware component such as an FPGA or ASIC, and the '~ unit' performs certain roles. However, the '~ unit' is not limited to software or hardware. The '~ unit' may be configured to be on an addressable storage medium and may be configured to play one or more processors. Accordingly, as an example, the '~ unit' includes components such as software components, object-oriented software components, class components, and task components, processes, functions, properties, procedures, subroutines, segments of program code, drivers, firmware, microcode, circuits, data, databases, data structures, tables, arrays, and variables. The functions provided within the components and '~ units' may be combined into a smaller number of components and '~ units' or further separated into additional components and '~ units'. Additionally, components and '~parts' may be implemented to regenerate one or more CPUs within a device or secure multimedia card.
[0038] The operating principles of the present invention will be described in detail below with reference to the attached drawings. In the following description of the present invention, detailed descriptions of known functions or components will be omitted if they are deemed to unnecessarily obscure the gist of the invention. Furthermore, the terms described below are defined based on their functions in the present invention and may vary depending on the intentions or practices of the user or operator. Therefore, their definitions should be based on the overall content of this specification.
[0039] The terms used in the following description to identify connection nodes, terms referring to network entities, terms referring to messages, terms referring to interfaces between network entities, and terms referring to various identification information are provided for convenience of explanation. Therefore, the present invention is not limited to the terms described below, and other terms referring to objects with equivalent technical meanings may be used.
[0040] FIG. 1 is a diagram briefly showing the structure of a cellular network according to one embodiment of the present invention.
[0041] Referring to Fig. 1, a cellular network can be largely composed of a radio access network (NG-RAN), a 5G core network (5GC), and a public data network (PDN). A user equipment (UE) (110) can wirelessly exchange user plane and control plane data with a base station (gNodeB or eNodeB) (120).
[0042] The functions of the 5G core network can be classified into a user plane and a control plane. The control plane may include network entities such as an Access and Mobility Management Function (AMF) (140) that is responsible for network access and mobility of a terminal (110) and a Session Management Function (SMF) (150) that is responsible for sessions between the terminal and the data network. The user plane may include networks such as a User Plane Function (UPF) (130). Since modern wireless network functions use commercial-off-the-shelf (COTS) servers, it is important to improve the performance of each COTS server in order to configure a high-bandwidth cellular core network.
[0043] The UPF (130) is one of the core elements of the cellular core network and can receive rules related to packet processing from the SMF (150) and perform the role of routing and transmitting packets between the base station (120) and the PDN (160). The UPF (130) can route and transmit packets between the base station (120) and the PDN (160) through rules such as the Packet Detection Rule (PDR), the QoS Enforcement Rule (QER), the Forward Action Rule (FAR), the buffering action rule (BAR), and the usage reporting rule (URR). The rule lookup operation, which is the operation of the UPF (130) to look up such rules through the SMF, requires only the header information of the packet and the payload information is not utilized in the rule lookup.
[0044] FIG. 2 is a drawing showing the process of operating UPF in a prior art related to the present invention.
[0045] Referring to FIG. 2, in the past, the size of the MTU (Maximum Transmission Unit) was fixed and packets of the same size were used throughout the entire process in which the UPF (230) within the 5G core network received a packet from the PDN (260), processed the packet, and transmitted the processed packet to the terminal (210) via the base station (220) or in the opposite process. For example, an MTU size of 1500 bytes has been used in the wireless network, the 5G core network, and the PDN (260).
[0046] That is, when the NIC (Network Interface Card) within the UPF (230) receives a packet of 1500 bytes in size from the PDN (260) (S210) and transmits it to the CPU within the UPF (230), the CPU can perform GTP encapsulation or decapsulation on the packet (S220) and perform a lookup on rules such as PDR, QER, FAR, BAR, URR, etc. (S230). Thereafter, the UPF (230) can perform processing on the packet based on the rule confirmed through the lookup and transmit the packet to the base station (220) (S240).
[0047] In Fig. 2, the order of each step is illustrated as UPF (230) receiving and processing a packet from PDN (260) and then transmitting it to terminal (210) via base station (220), but alternatively, UPF (230) may operate in a manner in which it receives a packet from terminal (210), processes it, and then transmits it to PDN (260).
[0048] FIG. 3 is a diagram showing the process of operation of a UPF to which a technology according to one embodiment of the present invention is applied.
[0049] According to one embodiment, the UPF (330) disclosed in FIG. 3 may be configured as a PSA (PDU session anchor) UPF.
[0050] Referring to FIG. 3, UPF (330) can receive a packet of 1500 bytes in size from the PDN (S310). This operation can be performed by the NIC included in UPF (330).
[0051] The NIC included in the UPF (330) can merge packets belonging to the same TCP flow and having consecutive TCP sequence numbers into one packet (S320) through hardware functions such as LRO (Large Receive Offload), and then transmit the packets to the CPU of the UPF (330) through DMA (Direct Memory Access).
[0052] LRO is a hardware offload feature provided by most commercial NICs. It allows the receiver to merge packets belonging to the same TCP flow and with consecutive TCP sequence numbers into a single, larger TCP packet. This LRO feature can improve DMA efficiency between the host and the NIC, and by reducing TCP / IP header processing in the network stack, it can also reduce per-packet overhead. Furthermore, because LRO is processed in the NIC hardware, it has the advantage of not consuming the host's CPU resources.
[0053] The CPU of UPF (330) receives the primary merged packets from the NIC to the LRO via DMA, and can secondarily merge packets belonging to the same TCP flow and having consecutive TCP sequence numbers within a packet batch via the software function GRO (Generic Receive Offload) (S330). In one example, GRO can merge packets up to 64 KB in size.
[0054] GRO is a software feature provided by the NIC driver that allows packets received over a period of time or in a batch to be merged into a single, larger TCP packet if they belong to the same flow and have consecutive TCP sequence numbers. GRO reduces TCP / IP header processing, thereby reducing per-packet overhead. While LRO can only merge packets that arrive consecutively, GRO allows for the merge of packets received over a period of time or in a batch, allowing for the merge of more packets. However, unlike LRO, GRO is a software-based feature that utilizes the host's CPU resources.
[0055] Thereafter, the CPU of the UPF (330) can perform GTP encapsulation or decapsulation on the packets merged through LRO and GRO (S340) and perform a lookup on rules such as PDR, QER, FAR, BAR, URR, etc. (S350). Thereafter, the UPF (330) can perform processing on the packets based on the rules confirmed through the lookup.
[0056] After step S350, the NIC of the UPF (330) may segment the merged packets into a specific MTU size (e.g., 9000 bytes) through a hardware function such as TSO (TCP segmentation offload) (S360). According to one embodiment of the invention, the segmentation size may be determined based on the MTU size supported by the terminal (310).
[0057] UPF (330) can transmit packets of a specific MTU size divided in step S360 to the terminal (310) through the base station (320) (S370).
[0058] According to one embodiment of the present invention, the UPF (330) may modify the value of the TCP MSS (maximum segment size) option of the TCP SYN (Synchronization) packet transmitted from the terminal (310) to the PDN (360) to the MTU value of the PDN (360) (e.g., 1460), and conversely, may modify the value of the TCP MSS option of the TCP SYN packet transmitted from the PDN (360) to the terminal (310) to the MTU value of the terminal (310) (e.g., 8960), in order to set the terminal (310) and the PDN (360) to use MTUs of 9000 bytes and 1500 bytes, respectively.
[0059] FIG. 4 is a drawing for explaining a method for improving the efficiency of LRO and GRO according to one embodiment of the present invention.
[0060] Referring to FIG. 4, the present invention proposes a method of increasing the number of RX queues to improve the efficiency of LRO and GRO.
[0061] In the existing UPF, one RX queue is allocated per core of the CPU included in the UPF, and the flow is distributed to multiple cores through RSS.
[0062] RSS (Receive-Side Scaling) is a function that determines which RX queue to process a received packet in based on the 5-tuple information (source IP, destination IP, source port number, destination port number, protocol ID) of the packet when a network entity receives the packet. Specifically, it generates an RSS hash value based on the 5-tuple information and processes the packet based on the generated RSS hash value. Using RSS ensures flow-to-CPU core affinity, so that packets belonging to each flow can be processed on the same CPU core.
[0063] As the number of flows processed by the UPF increases, the number of flows entering the RX queues allocated to each CPU core also increases. As the number of flows processed by each RX queue increases, the efficiency of the LRO and GRO functions decreases.
[0064] Accordingly, in one embodiment of the present invention, a method is proposed to improve the efficiency of LRO and GRO functions by increasing the number of RX queues allocated to each core included in the CPU of the UPF and thereby reducing the number of flows processed in each RX queue.
[0065] According to one embodiment of the present invention, the total number of RX queues may be set to be no more than the maximum number of RX queues supported by the NIC of the UPF, based on the maximum number of RX queues supported by the NIC of the UPF. Accordingly, multiple RX queues may be allocated to some or all of the CPU cores of the UPF. Thereafter, the UPF may distribute TCP flows received from the PDN to the multiple RX queues.
[0066] According to an embodiment of the present invention, since each core included in the CPU of the UPF can be allocated a larger number of RX queues compared to the conventional technology, the number of flows allocated to each RX queue can be reduced, so that the efficiency of the LRO and GRO functions can be improved.
[0067] FIG. 5 is a diagram illustrating a method for improving a GRO algorithm disclosed according to one embodiment of the present invention.
[0068] UPF can process packets by merging them into individual flows via GRO, which can help improve the operational efficiency of both UPF and the cellular network as a whole. However, because GRO operations consume UPF CPU cycles, there is a need to minimize the overhead caused by GRO. Consequently, there is a need to improve the inefficiencies that arise during packet aggregation via GRO.
[0069] The GRO algorithm of the prior art operates using linear search, resulting in the following inefficiencies. For example, the conventional GRO algorithm could be provided through the Data Plane Development Kit (DPDK) library.
[0070] 1) The flow table is organized as a linked list, and a linear search is performed to find the flow to which each received packet belongs. That is, when UPF receives n packets belonging to k flows, performing a linear search of the flow table requires a cost of O(kn).
[0071] 2) In the case of linear search, there was a drawback that not all out-of-order packets could be merged because only one group of packets that were consecutive to the received packet within the searched flow was searched. For example, if packets were received in CAB order, merging could only be performed as (BC) and (A). Even in this way, packet A could be merged together, so only some packets were merged, resulting in inefficiency during the packet merging process.
[0072] Referring to FIG. 5, the improved GRO algorithm proposed in the present invention can perform flow search to which a packet belongs through a 5-tuple-based hash table. A 5-tuple is a data format for communication that can include a source IP, destination IP, source port number, destination port number, and protocol ID.
[0073] The improved GRO algorithm proposed in the present invention can operate in the following manner.
[0074] 1) UPF creates a 5-tuple based hash table when performing flow search and uses it to perform search at a cost of O(n).
[0075] 2) UPF can merge a larger number of out-of-order packets by searching for up to two consecutive packets within a flow. For example, there can be up to two consecutive packets for a single received TCP packet. According to the GRO algorithm proposed in the present invention, when packets are received in the order CAB, B and its consecutive C are merged first to form (BC), (A), and then B and A are further merged to form (ABC).
[0076] 3) If the NIC of the UPF provides the RSS hash value in hardware, the UPF can eliminate the overhead required for hash calculation by reusing the RSS hash value in the hash table lookup. Conversely, if the NIC does not provide the RSS hash value or the packet is distributed to each RX queue in a way other than the inner 5-tuple-based RSS, the UPF can calculate and use the RSS hash value based on the inner 5-tuple of the packet through software calculation. The inner 5-tuple is a concept distinct from the outer 5-tuple for the outer header that may be newly generated when the packet is encapsulated with another protocol.
[0077] In one embodiment of the present invention, the UPF's NIC can use a hardware-based RSS (Toeplitz Hash Value) hash value to evenly distribute packets across each core of the CPU. In this case, the UPF can configure the NIC to record the RSS hash value in the packet's metadata and provide it to the software side through a hardware driver. By default, RSS uses the inner 5-tuple as a key to generate a hash value, but it can be configured to use the fields included in each header up to the inner L4 as a key to generate a hash value.
[0078] Afterwards, the UPF's NIC can distribute packets to multiple RX queues via RSS and perform packet aggregation within each RX queue using the hardware-based LRO function. The GRO module can then read multiple packets in batches via a single RX I / O and perform additional packet aggregation using the GRO algorithm. In this case, the metadata for each packet can include an RSS hash value.
[0079] In another embodiment of the present invention, UPF may not use the inner 5-tuple as an input value for RSS, depending on specific purposes. In this case, the hash value may be determined based on a smaller number of fields, which may lead to frequent collisions in the hash table and thus uneven distribution of flows through RSS. In this case, UPF may not use the hash value from RSS, but instead receive packets from the GRO module and use a hash value calculated in software.
[0080] FIG. 6 is a flowchart illustrating a method for UPF to merge packets according to a GRO function according to one embodiment of the present invention.
[0081] Referring to FIGS. 6A and 6B, the GRO module utilizing the hash table proposed in the present invention can search from the first packet included in a specific batch and start the process of inserting the packet into the flow hash table (S601).
[0082] Afterwards, UPF verifies the hash value and determines the bucket containing the flow to which the packet belongs based on the hash value, and can then check whether the determined bucket is empty (S603). The utilized hash value may be a hash value generated via RSS using the inner 5-tuple as described above, or alternatively, a hash value calculated in software via the GRO module after packet reception.
[0083] If the bucket identified in step S603 is empty, step S623 may be performed by the UPF, which may insert the bucket into the bucket queue that stores non-empty buckets. This may be to query the bucket when performing a flush.
[0084] If the bucket identified in step S603 is not empty, the search can be performed starting from the first flow in the bucket in step S605. The bucket contains a linked list of flows inserted into the same bucket due to hash collisions. Based on this, UPF can search for the flow to which the packet belongs, starting from the first flow.
[0085] In detail, at step S607, the UPF can check whether the inner 5-tuple of the received packet is the same as the 5-tuple of the flow found in the bucket, and if not, compare the inner 5-tuple of the packet with the 5-tuple of the next flow. If the inner 5-tuple of the packet received by the UPF is the same as the 5-tuple of the flow found in the bucket, the loop of step S607 can be terminated and the operation of step S609 can be performed, and if the result of checking all flows in the bucket shows that no flow has the same 5-tuple as the inner 5-tuple of the received packet, the operation of step S625 can be performed.
[0086] Step S609 is when there is a flow to which the received packet belongs in the bucket, and UPF can start searching from the first item in the flow's linked list of items.
[0087] In this specification, an item may refer to a concatenation of packets with consecutive TCP sequence numbers. If the packets are discontinuous or exceed 64KB in size, the packet may be inserted as a new item into the flow's linked list of items.
[0088] In step S611, the UPF can search the linked list of items belonging to the corresponding flow and check whether there is an item that is consecutive to the TCP sequence number of the packet. If the sequence numbers are not consecutive, it continues to check whether the next item is consecutive to the TCP sequence number of the packet. If an item with a TCP sequence number that is consecutive to the TCP sequence number of the packet is found, the loop of step S611 is terminated and the operation of step S613 can be performed. Alternatively, if it is confirmed in step S611 that there is no item that is consecutive to the TCP sequence number of the packet, the operation of step S627 can be performed.
[0089] In step S613, when merging a packet with an item whose TCP sequence number is consecutive to the packet, it can be determined whether the size of the item at the time of merging (the length of the TCP packet after merging) is less than or equal to 64 KB or greater. If the size of the item after merging is less than 64 KB, the operation of step S615 can be performed, and if it is greater than or equal to 64 KB, the operation of step S627 can be performed.
[0090] At step S615, UPF can merge packets into items and continue searching from the next item to the merged item to find out whether there is a consecutive item.
[0091] If another consecutive item exists in step S617, the operation of step S619 may be performed, and if another consecutive item does not exist, the operation may proceed to step S629, where processing of the current packet is terminated and processing of the next packet may be performed.
[0092] At step S619, an attempt to merge the second item consecutive to the TCP sequence number of the packet may be performed, and if the size of the item after merging is less than 64 KB, the operation of step S621 may be performed, and if the size of the item after merging is 64 KB or more, the process may proceed to step S629, where processing of the current packet is terminated and processing of the next packet may be performed.
[0093] At step S621, UPF can remove the second item from the linked list of items after merging the second item with the first item.
[0094] Step S625 may proceed to a step after step S607 or step S623, and in step S625, UPF may create a new flow structure having a 5-tuple of the received packet and insert the created new flow structure into the flow linked list in the bucket.
[0095] Step S627 occurs when there is no item in the item linked list within the flow that can be merged with the current packet, or when there is an item that can be merged but the size at the time of merging is greater than 64KB. In step S627, UPF can insert the current packet as a new item into the item linked list.
[0096] Thereafter, in step 629, the UPF may finish processing the current packet and begin processing the next packet. Processing of the next packet may be performed in the same manner as steps S601 to S627 illustrated in FIG. 6.
[0097] According to one embodiment of the present invention, the present invention is applied to the processing of TCP packets, whereby UPF may perform packet merging through LRO and GRO, but may also be applied to the processing of UDP packets.
[0098] In one embodiment, unlike TCP packets, UDP packets do not include a sequence number in their headers, making it impossible to merge multiple UDP packets into a single, larger UDP packet.
[0099] Accordingly, the present invention proposes a method of simply bundling a plurality of UDP packets into a single large IP packet and configuring them in the form of a UDP packet caravan, and accordingly, the UPF proposed in the present invention can process a linked UDP packet caravan as a single packet, and accordingly, the packet processing efficiency of the UPF can be increased in an environment where UDP packets are used.
[0100] FIG. 7 is a flowchart illustrating a method in which a UPF according to one embodiment of the present invention performs processing on items included in a bucket queue according to a GRO function.
[0101] Referring to FIG. 7, the UPF can perform the operation described below through the GRO module, and the operation of FIG. 7 can be performed in connection after the packet merging operation described above through FIG. 6.
[0102] At step S701, UPF can start the flush operation by iterating from the first bucket in the bucket queue.
[0103] At step S703, UPF can start traversing from the start flow of the flow linked list stored in the bucket, and at step S705, UPF can start traversing from the start item of the item linked list stored in the flow structure.
[0104] In step S707, the UPF may perform a traversal in the same order as described in steps S703 and S705 and perform processing on each item within the flow. Specifically, in step S707, the UPF may determine whether each item within the flow is an item formed by merging two or more packets, and if a specific item is formed by merging two or more packets, the UPF may modify the packet length field of the IP header. In step S707, after determining whether each item is an item formed by merging two or more packets and performing processing accordingly, the item may be stored in a packet batch and removed from the item link list.
[0105] At step S709, the UPF can iterate over items, flows, and buckets and perform the aforementioned operations. That is, after processing all items stored in a flow structure is completed, processing is performed on items stored in the next flow structure. In this way, when processing is completed for all flow structures within a bucket, the process can move on to the next bucket and a flush operation can be performed until processing is performed for all buckets.
[0106] According to one embodiment of the present invention, all data structures utilized in steps S701 to S709 may be configured as an array having the same size as the packet batch size so that they can be loaded into the cache at once, and references between data structures (e.g., links between flows in a flow linked list, links between items in an item linked list, links from a flow to a starting item in an item linked list, links from a bucket to a starting flow in a flow linked list, etc.) may be performed through index numbers in the array.
[0107] According to one embodiment of the present invention, after all flush operations are performed, the bucket queue, the flow linked list of each bucket, and the item linked list of each flow all become empty, so that the empty data structures can be reused when receiving the next packet batch. Furthermore, since all data structures exist for each RX queue, even if GRO is performed on different RX queues, they may not affect each other.
[0108] Figure 8 is a diagram illustrating the structure of a terminal according to one embodiment of the present invention.
[0109] Referring to FIG. 8, the terminal may include a transceiver (810), a control unit (820), and a storage unit (830). In the present invention, the control unit may be defined as a circuit or an application-specific integrated circuit or at least one processor.
[0110] The transceiver (810) can transmit and receive signals with other network entities. The transceiver (810) can receive system information from a base station, for example, and can receive synchronization signals or reference signals.
[0111] The control unit (820) can control the overall operation of a terminal according to an embodiment proposed in the present invention. For example, the control unit (820) can control the overall functions of a terminal according to an embodiment proposed in the present invention. For example, the control unit (820) can control a terminal or UE to generate a request for a PDU session and transmit it to the AMF.
[0112] The storage unit (830) can store at least one of the information transmitted and received through the transmission and reception unit (810) and the information generated through the control unit (820). For example, the storage unit (830) can store information related to a PDU session and various data received from a PDN.
[0113] FIG. 9 is a diagram illustrating the structure of a network entity according to one embodiment of the present invention. The network entity may be composed of AMF, UPF, SMF, PCF, UDR, UDM, NEF, or AF.
[0114] The transceiver (910) can transmit and receive signals with other network entities. For example, the transceiver (910) can transmit PDU session-related information to a terminal.
[0115] The control unit (920) can control the overall operation of network entities according to the embodiments proposed in the present invention. For example, the control unit (920) can operate to control operations according to the flowchart described above. For example, the control unit (920) can control the UPF to perform an operation of merging packets through the GRO module.
[0116] The storage unit (930) can store at least one of the information transmitted and received through the transmission and reception unit (910) and the information generated through the control unit (920). For example, the storage unit (930) can store information about the GRO algorithm, information about how to assign flows to RX queues, information about received packets, etc.
[0117] According to the above-described embodiment of the present invention, the number of rule lookup operations performed in the UPF can be reduced by utilizing the dynamic MTU conversion technology to convert packets belonging to the same flow into a single large packet for processing, thereby improving the performance of the UPF. According to the results of an experiment, it was confirmed that the throughput was improved by 3.1 to 4.9 times in the UPF with the dynamic MTU conversion technology applied compared to the existing UPF when the same number of CPU cores was used.
[0118] According to the embodiment of the present invention described above, as a larger number of RX queues are allocated to each core of the CPU included in the UPF, the number of flows processed in each RX queue is reduced, and thus a larger number of packets can be merged through LRO or GRO. By merging a larger number of packets in this way and increasing the average packet size, the number of overall rule lookup operations performed in the UPF can be reduced, and thus the performance of the UPF can be improved. According to the results of an experiment, when the number of RX queues for each core of the CPU was increased to 6, the average packet size after processing through LRO and GRO was increased by 1.6 times to 13 KB, and it was confirmed that the performance of the UPF was improved by about 1.4 times.
[0119] According to the above-described embodiment of the present invention, since the GRO algorithm is improved to operate based on a hash table, the performance when processing a large number of flows can be improved compared to the existing linear search-based GRO algorithm. This is because the hash table-based GRO algorithm has a time complexity O(n) proportional to the total number of packets regardless of the total number of flows, compared to the existing GRO algorithm that had a time complexity proportional to the total number of flows and the total number of packets. According to the results of an experiment, it was confirmed that the performance of the UPF using the hash table-based GRO was improved by about 1.2 times compared to the performance of the UPF using the existing linear search-based GRO when the UPF operates using one CPU core.
[0120] The methods according to the embodiments described in the claims or specification of the present invention may be implemented in the form of hardware, software, or a combination of hardware and software.
[0121] When implemented in software, a computer-readable storage medium storing one or more programs (software modules) may be provided. The one or more programs stored in the computer-readable storage medium are configured for execution by one or more processors within an electronic device. The one or more programs include instructions that cause the electronic device to execute methods according to the embodiments described in the claims or specification of the present invention.
[0122] These programs (software modules, software) may be stored in random access memory, non-volatile memory including flash memory, read only memory (ROM), electrically erasable programmable read only memory (EEPROM), magnetic disc storage device, compact disc ROM (CD-ROM), digital versatile discs (DVDs) or other forms of optical storage device, magnetic cassette. Or, they may be stored in a memory configured as a combination of some or all of these. In addition, each configuration memory may be included in multiple numbers.
[0123] Additionally, the program may be stored in an attachable storage device that is accessible via a communication network such as the Internet, an intranet, a local area network (LAN), a wide local area network (WLAN), a storage area network (SAN), or a combination thereof. Such a storage device may be connected to a device implementing an embodiment of the present invention via an external port. Additionally, a separate storage device on the communication network may be connected to a device implementing an embodiment of the present invention.
[0124] In the specific embodiments of the present invention described above, components included in the invention are expressed in the singular or plural form depending on the specific embodiment presented. However, the singular or plural expressions are selected to suit the presented situation for convenience of explanation, and the present invention is not limited to singular or plural components. Even components expressed in the plural form may be composed of singular elements, or even components expressed in the singular form may be composed of plural elements.
[0125] The embodiments of the present invention disclosed in this specification and drawings are merely specific examples intended to facilitate easy explanation of the technical content of the present invention and aid understanding thereof, and are not intended to limit the scope of the present invention. It will be apparent to those skilled in the art that other modifications based on the technical concepts of the present invention are possible in addition to the embodiments disclosed herein.
Claims
1. A method performed by UPF (user plane function) in a wireless communication system, A step of receiving a plurality of first size packets from a PDN (packet data network); A step of converting at least some of the plurality of first size packets received from the PDN into second size packets; A step of performing a lookup for a packet processing rule for at least one of the second size packets and performing packet processing according to the lookup result; A step of dividing the second size packet on which the packet processing is performed into a plurality of third size packets; and A method comprising the step of transmitting the third size packets to a user terminal.
2. In paragraph 1, The step of converting at least some of the plurality of first size packets into second size packets is: A method characterized in that merging of the first packet is performed primarily through the LRO (Large Receive Offload) function, which is a hardware function of the UPF, and merging of the first packet is performed secondarily through the GRO (Generic Receive Offload) function, which is a software function of the UPF.
3. In paragraph 2, A method for the above GRO function, characterized in that the algorithm searches for a flow to which a packet to be merged belongs through a 5-tuple based hash table.
4. In paragraph 2, A method for the above GRO function, characterized in that the algorithm determines the bucket to which the flow to which the packet to be merged belongs exists through the RSS (Receive-Side Scaling) hash value.
5. In paragraph 1, A step of allocating a plurality of RX queues to at least some of the CPU cores of the UPF based on the maximum number of RX queues supported by the UPF; and A method further comprising the step of distributing flows received from the PDN to a plurality of RX queues.
6. In paragraph 1, A method wherein the first size packet is set to a size of 1500 bytes, and the third size packet is set to a size of 9000 bytes.
7. In paragraph 6, A step of modifying the TCP MSS (maximum segment size) value of a TCP SYN (Synchronization) packet transmitted from the terminal to the PDN to the MTU value of the PDN; and A method further comprising the step of modifying a TCP MSS value of a TCP SYN packet transmitted from the PDN to the terminal to an MTU value of the terminal.
8. In the UPF (user plane function) operating in a wireless communication system, Transmitter and receiver; and Includes a control unit, The above control unit, Receive a plurality of first size packets from a PDN (packet data network), Converting at least some of the first size packets received from the above PDN into a second size packet, Perform a lookup for a packet processing rule for at least one of the second size packets and perform packet processing according to the lookup result, The second size packet on which the above packet processing is performed is divided into a plurality of third size packets, UPF, which is set to transmit the above third size packets to the user terminal.
9. In paragraph 8, The above control unit, In the process of converting at least some of the above plurality of first size packets into second size packets, A UPF further configured to primarily perform merging of the first packet through the LRO (Large Receive Offload) function, which is a hardware function of the UPF, and secondarily perform merging of the first packet through the GRO (Generic Receive Offload) function, which is a software function of the UPF.
10. In paragraph 9, The algorithm for the above GRO function is characterized by searching the flow to which the packet to be merged belongs through a 5-tuple based hash table, UPF.
11. In paragraph 9, The algorithm for the above GRO function is characterized by determining the bucket to which the flow to which the packet to be merged belongs exists through the RSS (Receive-Side Scaling) hash value.
12. In paragraph 8, The above control unit, Allocate multiple RX queues to at least some of the CPU cores of the UPF based on the maximum number of RX queues supported by the UPF, A UPF further configured to distribute flows received from the above PDN to multiple RX queues.
13. In paragraph 8, UPF, where the first size packet is set to a size of 1500 bytes and the third size packet is set to a size of 9000 bytes.
14. In paragraph 13, The above control unit, The TCP MSS (maximum segment size) value of the TCP SYN (Synchronization) packet transmitted from the terminal to the PDN is modified to the MTU value of the PDN, UPF, which is further set to modify the TCP MSS value of the TCP SYN packet transmitted from the PDN to the terminal to the MTU value of the terminal.
Citation Information
Patent Citations
Method and system for simple pament using automatic payment information for mobile phone bill
KR1020210097072A
Method and apparatus for user plane resource selection for 5g core
US20210314264A1
Distributed user plane functions for radio-based networks
US20220386393A1
A method of and a session management function for provisioning a user plane function, a method of and a user plane function for processing user traffic and a method of and charging function for charging user traffic
WO2021144041A1
Maximum transmission unit size enforcement
WO2022238456A1
