Rate adjustment method and device, equipment, storage medium and program product
By introducing the token bucket algorithm in the UPF of the 5G network, the problem of missing UE rate adjustment in the 5G network is solved, and the precise control of the data transmission rate of NB-IoT devices is achieved, efficiency and battery life are improved, and network stability is ensured. and resource utilization.
Patent Information
- Application Number
- CN202410846187.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-12-10
AI Technical Summary
The lack of UE rate regulation methods suitable for 5G networks in the prior art has resulted in the limitation of the data transmission efficiency and battery life of NB-IoT devices in the 5G network.
By introducing a token bucket algorithm in UPF, the rate control period of the UE to be controlled is determined in response to the rate control instruction, and a token is generated based on the period, thereby adjusting the data transmission rate of the UE to ensure that the data transmission permissions and cache conditions are met. Or store to avoid packet discarding.
It realizes precise control of UE data transmission rate in 5G network, improves resource utilization and terminal equipment battery life, reduces system load, and ensures effective utilization of network stability and bandwidth.
Smart Images

Figure CN119110354A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a rate adjustment method, device, equipment, storage medium and program product. Background Art
[0002] With the vigorous development and in-depth application of 5G technology, NB-IoT (Narrow Band Internet of Things), as a key technology in the field of Internet of Things, has shown great application potential in many fields with its massive device access, low-speed small data packet transmission, ultra-low cost of modules, ultra-low power consumption, wide coverage, delay insensitivity, and static or low-speed movement of major terminals.
[0003] IoT services are mainly based on small data packets. Although the data transmission rate required for these packets is relatively low, the access of massive devices will still trigger a large number of service requests, tracking area updates (TAU) and other operations, which will not only reduce the efficiency of IoT devices, but also affect the effectiveness of resource use, and may even cause the risk of system overload. Given that the communication behavior of NB-IoT services is relatively simple, mainly based on pure reporting data, or accompanied by a small amount of downlink data, and user terminal devices are usually in a static state or mobility-restricted state, it is necessary to simplify related functions such as mobility management, session management, and paging.
[0004] The current signaling interaction process between LTE / EPC and terminals is relatively cumbersome, which is in sharp contrast to the IoT terminal devices' demand for ultra-long battery life. Especially during small packet data transmission and its intervals, 5G networks need to frequently establish and release connections, resulting in a large amount of context transfer-related signaling, which is extremely unfavorable for energy saving of IoT terminal devices.
[0005] In order to fully adapt to these business characteristics, 3GPP proposed the CIoT 5GS (Cellular Internet 5G System) optimization function, which aims to improve the processing efficiency and resource utilization of 5G IoT services by optimizing the network architecture and signaling processes, while ensuring that IoT terminal devices have longer battery life.
[0006] At the core of the 5G network architecture, UPF (User Plane Function) plays a vital role. It is used to achieve accurate routing and efficient forwarding of user plane data packets, thereby ensuring that the entire 5G network can operate stably and efficiently.
[0007] NB-IoT devices are user terminal devices (UE) in 5G networks. In order to further optimize the performance of NB-IoT devices in 5G networks, 3GPP has specially introduced the concept of CIoT 5GS optimization function, among which UE data transmission rate control is the core of this concept. By implementing this function, 5G networks can manage UE data transmission traffic more finely, thereby ensuring that UE can achieve efficient, stable and low-power operation in 5G networks. In this process, UPF plays a key role in executing UE data transmission rate control.
[0008] In the existing concept of CIoT 5GS optimization function based on 3GPP protocol, only a mechanism for controlling UE data transmission rate through UPF is proposed, but the specific implementation details have not yet been designed. Therefore, in the field of narrowband Internet of Things, there is currently a lack of a UE rate adjustment method suitable for 5G networks. Summary of the invention
[0009] The present invention provides a rate adjustment method, device, equipment, storage medium and program product to solve the defect that there is still a lack of a UE rate adjustment method suitable for 5G networks in the prior art.
[0010] The present invention provides a rate adjustment method, which is applied to UPF, comprising: determining the rate control period of a UE to be controlled and a UE to be controlled in response to a rate control instruction; controlling a token bucket to generate tokens based on the rate control period; and adjusting the data transmission rate of the UE to be controlled based on the tokens.
[0011] According to a rate adjustment method provided by the present invention, a token is used to identify data transmission authority; based on the token, the data transmission rate of the UE to be controlled is adjusted, including: receiving a data packet sent by the UE to be controlled; the number of data packets is at least one; judging whether the number of tokens is greater than or equal to the number of data packets; if the number of tokens is greater than or equal to the number of data packets, transmitting the data packet to the service server.
[0012] According to a rate adjustment method provided by the present invention, a token is used to identify data transmission authority; based on the token, the data transmission rate of the UE to be controlled is adjusted, including: receiving a data packet sent by the UE to be controlled; the number of data packets is at least one; judging whether the number of tokens is greater than or equal to the number of data packets; if the number of tokens is less than the number of data packets, judging whether the data packets meet the cache condition; if the data packets meet the cache condition, storing the data packets in a cache queue; based on the rate control cycle, controlling the token bucket to continuously generate tokens until the number of tokens is greater than or equal to the number of data packets; transmitting the data packets to the service server.
[0013] According to a rate adjustment method provided by the present invention, a token is used to identify data transmission permission; based on the token, the data transmission rate of the UE to be controlled is adjusted, including: receiving a data packet sent by the UE to be controlled; the number of data packets is at least one; judging whether the number of tokens is greater than or equal to the number of data packets; if the number of tokens is less than the number of data packets, judging whether the data packets meet the caching conditions; if the data packets do not meet the caching conditions, discarding the data packets.
[0014] According to a rate adjustment method provided by the present invention, in response to a rate control instruction, before determining the UE to be controlled and the rate control period of the UE to be controlled, it also includes: receiving a CIoT 5GS optimization function instruction sent by an SMF; generating a rate control instruction based on the CIoT5GS optimization function instruction; wherein the rate control instruction includes a unique identifier of the UE to be controlled, the maximum number of tokens that can be generated by a token bucket, and the rate control period of the UE to be controlled.
[0015] According to a rate adjustment method provided by the present invention, in response to a rate control instruction, the rate control period of the UE to be controlled and the UE to be controlled is determined, including: in response to the rate control instruction, determining the UE session established between the UE to be controlled and the UE to be controlled; binding a global rate control timer for the UE session; and determining the rate control period of the UE to be controlled based on the global rate control timer.
[0016] The present invention also provides a rate adjustment device, including: a determination module, used to determine the rate control period of the UE to be controlled and the UE to be controlled in response to the rate control instruction; a generation module, used to control the token bucket to generate tokens based on the rate control period; and an adjustment module, used to adjust the data transmission rate of the UE to be controlled based on the token.
[0017] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned rate adjustment methods when executing the program.
[0018] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the computer program implements any of the above-mentioned rate adjustment methods.
[0019] The present invention also provides a computer program product, comprising a computer program, and when the computer program is executed by a processor, any of the above-mentioned rate adjustment methods is implemented.
[0020] The rate adjustment method, device, equipment, storage medium and program product provided by the present invention determine the rate control period of the UE to be controlled and the UE to be controlled in response to the rate control instruction; control the token bucket to generate tokens based on the rate control period; and adjust the data transmission rate of the UE to be controlled based on the token. Through the above method, the token bucket algorithm is introduced on the existing 5G network side, and the UPF responds to the rate control instruction, first determines the rate control period of the UE to be controlled and the UE to be controlled, and then controls the token bucket to generate tokens based on the rate control period, and then can adjust the data transmission rate of the UE to be controlled based on the generated token, thereby realizing UE rate adjustment suitable for 5G network UPF. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1 It is a schematic flow chart of the rate regulation method provided by the present invention.
[0023] Figure 2 It is a signaling interaction diagram of the rate adjustment method provided by the present invention.
[0024] Figure 3 It is a structural schematic diagram of the rate regulating device provided by the present invention.
[0025] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0027] See also Figure 1 , Figure 1 : is a flow chart of the rate adjustment method provided by the present invention. In this embodiment, the rate adjustment method is applied to the UPF network element on the 5G network side, and the rate adjustment method includes steps S110 to S130, and each step is as follows: S110: In response to the rate control instruction, determine the UE to be controlled and the rate control period of the UE to be controlled.
[0028] When the control plane of the 5G core network sends signaling or instructions related to rate limitation to the UPF, the UPF will start the data transmission rate control mechanism for the UE.
[0029] In this embodiment, it is necessary to introduce a token bucket algorithm on the existing 5G network side, and implement a data transmission rate control mechanism for the UE through the token bucket algorithm.
[0030] It should be noted that when transmitting data in the network, in order to prevent network congestion, it is necessary to limit the flow of traffic out of the network so that the traffic is sent out at a relatively uniform speed. The token bucket algorithm realizes this function, which can control the number of data sent to the network and allow the sending of burst data. The token bucket algorithm is the most commonly used algorithm in network traffic shaping (Traffic Shaping) and rate limiting (Rate Limiting): a token bucket of fixed size can generate tokens at a constant rate by itself. If the token is not consumed, or the speed of consumption is lower than the speed of generation, the token will continue to increase until the bucket is filled; the tokens generated later will overflow from the bucket, and the maximum number of tokens that can be stored in the bucket will never exceed the size of the bucket; the data packets transmitted to the token bucket need to consume tokens, and the number of tokens consumed by data packets of different sizes is different. The token bucket control mechanism indicates when traffic can be sent based on whether there are tokens in the token bucket, thereby achieving the purpose of controlling the data transmission rate.
[0031] Among them, in this embodiment, the signaling or instructions related to rate limiting sent by the control plane include information such as the maximum number of tokens that can be generated by the token bucket (i.e., the capacity of the token bucket) and the rate control period (i.e., the generation period or refresh period of the token). The signaling or instructions related to rate limiting can control the generation of tokens, thereby controlling the data transmission rate of the UE.
[0032] Specifically, NB-IoT devices are user terminal devices (i.e. UE) in the 5G network. For each UE accessing the 5G core network, the SMF (Session Management Function) network element of the 5G core network control plane decides whether to start the data transmission rate control mechanism for the UE.
[0033] If the control plane of the 5G core network needs to start a data transmission rate control mechanism for a certain UE, it can send a CIoT 5GS optimization function instruction to UPF through SMF at the critical moment when the UE creates or modifies a session, and UPF will then start the data transmission rate control mechanism for the UE; UPF can generate a rate control instruction based on the CIoT 5GS optimization function instruction.
[0034] The rate control instruction may include information such as a unique identifier of the UE to be controlled, a maximum number of tokens that can be generated by the token bucket, and a rate control period of the UE to be controlled.
[0035] Further, the UPF will start a token bucket algorithm in response to the rate control instruction, and determine the rate control period of the UE to be controlled and the UE to be controlled based on the rate control instruction.
[0036] S120: Based on the rate control period, control the token bucket to generate tokens.
[0037] Specifically, after determining the rate control period of the UE to be controlled and the UE to be controlled, the UPF can control the token bucket to generate tokens according to the rate control period specified in the session establishment or session modification signaling, and store the generated tokens in the token bucket.
[0038] Each token is used to identify the data transmission permission of a unit; one token is consumed for each data packet transmitted.
[0039] For example, each token is used to represent the data transmission right of a data packet, and each transmission of a data packet consumes one token.
[0040] S130: Based on the token, adjust the data transmission rate of the UE to be controlled.
[0041] The rate adjustment method provided in this embodiment determines the rate control period of the UE to be controlled and the UE to be controlled in response to the rate control instruction; controls the token bucket to generate tokens based on the rate control period; and adjusts the data transmission rate of the UE to be controlled based on the token. In the above manner, the token bucket algorithm is introduced on the existing 5G network side. The UPF determines the rate control period of the UE to be controlled and the UE to be controlled in response to the rate control instruction, and then controls the token bucket to generate tokens based on the rate control period. Then, the data transmission rate of the UE to be controlled can be adjusted based on the generated token, thereby realizing UE rate adjustment suitable for 5G network UPF.
[0042] In some embodiments, the token is used to identify data transfer permissions.
[0043] Based on the token, the data transmission rate of the UE to be controlled is adjusted, including: receiving a data packet sent by the UE to be controlled; the number of data packets is at least one; judging whether the number of tokens is greater than or equal to the number of data packets; if the number of tokens is greater than or equal to the number of data packets, transmitting the data packet to the service server.
[0044] See also Figure 2 , Figure 2 It is a signaling interaction diagram of the rate adjustment method provided by the present invention.
[0045] like Figure 2 As shown, if the control plane of the 5G core network needs to start a data transmission rate control mechanism for a certain UE, it can send a CIoT 5GS optimization function instruction to UPF through SMF at the critical moment when the UE creates or modifies a session, and UPF will then start the data transmission rate control mechanism for the UE; UPF can generate a rate control instruction based on the CIoT 5GS optimization function instruction.
[0046] The rate control instruction may include information such as a unique identifier of the UE to be controlled, a maximum number of tokens that can be generated by the token bucket, and a rate control period of the UE to be controlled.
[0047] Furthermore, the UPF will start a token bucket algorithm in response to the rate control instruction, determine the rate control period of the UE to be controlled and the UE to be controlled based on the rate control instruction; and control the token bucket to generate tokens based on the rate control period.
[0048] Further, uplink and downlink data packets sent by the UE to be controlled are received.
[0049] The number of packets is at least one.
[0050] When receiving uplink and downlink data packets sent by the UE, the UPF checks the number of tokens in the token bucket to determine whether the number of tokens is greater than or equal to the number of data packets.
[0051] In the token bucket algorithm, one token is consumed for each data packet transmitted. Therefore, if the number of tokens is greater than or equal to the number of data packets, it means that the current number of tokens meets the transmission requirements of the data packets, and UPF will transmit the data packets to the service server (DN).
[0052] In some embodiments, the token is used to identify data transfer permissions.
[0053] Based on the token, the data transmission rate of the UE to be controlled is adjusted, including: receiving a data packet sent by the UE to be controlled; the number of the data packet is at least one; judging whether the number of tokens is greater than or equal to the number of data packets; if the number of tokens is less than the number of data packets, judging whether the data packets meet the cache condition; if the data packets meet the cache condition, storing the data packets in the cache queue; based on the rate control period, controlling the token bucket to continuously generate tokens until the number of tokens is greater than or equal to the number of data packets; transmitting the data packets to the service server.
[0054] Specifically, a data packet sent by the UE to be controlled is received, and the number of the data packet is at least one.
[0055] When receiving uplink and downlink data packets sent by the UE, the UPF checks the number of tokens in the token bucket to determine whether the number of tokens is greater than or equal to the number of data packets.
[0056] In the token bucket algorithm, one token is consumed for each data packet transmitted. Therefore, if the number of tokens is less than the number of data packets, it means that the current number of tokens cannot meet the transmission requirements of the data packets. Therefore, you can consider caching the data packets and continuously generating tokens until the number of tokens can meet the transmission requirements of the data packets, and then continue to transmit the data packets.
[0057] Specifically, UPF can determine whether the data packet meets the caching conditions based on the current operating conditions and system policies of the 5G network.
[0058] If the data packet meets the cache conditions, the data packet is stored in the cache queue; at the same time, the token bucket is controlled to continuously generate tokens based on the rate control period until the number of tokens is greater than or equal to the number of data packets, and then the data packet is transmitted to the business server.
[0059] It can be understood that if UPF decides to cache the data packet, the data packet will be stored in the cache queue and wait for the token to be generated. Once a new token is generated and obtained by UPF, UPF will obtain the data packet from the cache queue and transmit it according to the first-in-first-out principle.
[0060] In some embodiments, the token is used to identify data transfer permissions.
[0061] Based on the token, the data transmission rate of the UE to be controlled is adjusted, including: receiving a data packet sent by the UE to be controlled; the number of the data packet is at least one; judging whether the number of tokens is greater than or equal to the number of data packets; if the number of tokens is less than the number of data packets, judging whether the data packet meets the cache condition; if the data packet does not meet the cache condition, discarding the data packet.
[0062] Specifically, a data packet sent by the UE to be controlled is received, and the number of the data packet is at least one.
[0063] When receiving uplink and downlink data packets sent by the UE, the UPF checks the number of tokens in the token bucket to determine whether the number of tokens is greater than or equal to the number of data packets.
[0064] In the token bucket algorithm, one token is consumed for each data packet transmitted. Therefore, if the number of tokens is less than the number of data packets, it means that the current number of tokens cannot meet the transmission requirements of the data packets. Therefore, you can consider caching the data packets and continuously generating tokens until the number of tokens can meet the transmission requirements of the data packets, and then continue to transmit the data packets.
[0065] Specifically, UPF can determine whether the data packet meets the caching conditions based on the current operating conditions and system policies of the 5G network.
[0066] If the data packet does not meet the cache conditions or the cache queue is full, the data packet will be discarded.
[0067] The rate regulation method provided in this embodiment, during the operation of the token bucket algorithm, if within a specific token period, the number of uplink and downlink data packets of the UE exceeds the number of tokens in the token bucket, the UPF will decide whether to cache these data packets based on the current operation of the 5G network and the system policy; if it is decided to cache, the data packet will be transmitted when the subsequent token is generated and acquired; if it cannot be cached or the caching conditions are not met, the data packet will be discarded to ensure the stability of the 5G network and the effective use of bandwidth; by adopting the token bucket algorithm, the generation and consumption of tokens are controlled, thereby achieving precise control of the UE data transmission rate.
[0068] In some embodiments, in response to the rate control instruction, before determining the rate control period of the UE to be controlled and the UE to be controlled, it also includes: receiving a CIoT 5GS optimization function instruction sent by the SMF; generating a rate control instruction based on the CIoT 5GS optimization function instruction; wherein the rate control instruction includes a unique identifier of the UE to be controlled, the maximum number of tokens that can be generated by the token bucket, and the rate control period of the UE to be controlled.
[0069] If the control plane of the 5G core network needs to start a data transmission rate control mechanism for a certain UE, it can send a CIoT 5GS optimization function instruction to UPF through SMF at the critical moment when the UE creates or modifies a session, and UPF will then start the data transmission rate control mechanism for the UE; UPF can receive the CIoT 5GS optimization function instruction sent by SMF, and generate a rate control instruction based on the CIoT5GS optimization function instruction.
[0070] The rate control instruction may include information such as a unique identifier of the UE to be controlled, a maximum number of tokens that can be generated by the token bucket, and a rate control period of the UE to be controlled.
[0071] Furthermore, the UPF will start a token bucket algorithm in response to the rate control instruction, determine the rate control period of the UE to be controlled and the UE to be controlled based on the rate control instruction; and control the token bucket to generate tokens based on the rate control period.
[0072] The rate adjustment method provided in this embodiment has a carefully designed process for issuing rate control instructions, which can ensure accurate rate management of the UE to be controlled, improve the accuracy of UE rate control, and effectively ensure the reasonable allocation and utilization of network resources.
[0073] In some embodiments, in response to a rate control instruction, determining the rate control period of the UE to be controlled and the UE to be controlled includes: determining a UE session established between the UE to be controlled and the UE to be controlled in response to the rate control instruction; binding a global rate control timer for the UE session; and determining the rate control period of the UE to be controlled based on the global rate control timer.
[0074] Given that the narrowband Internet of Things accepts access from a large number of UEs, and each UE is associated with at least one UE session, it is usually necessary to bind a different rate control cycle timer to each UE session (the rate control cycle timer is used to set or adjust the rate control cycle of the UE), but this will cause significant resource consumption and waste.
[0075] In order to optimize the resource utilization of 5G networks, a global timer strategy can be introduced: when the UPF is started, the global rate control timer can be started uniformly according to the rate control period defined in the 3GPP standard (for example, 1 minute, 6 minutes, 1 hour, 1 day, 1 week, etc.), and a unified rate control period can be adopted for all UEs accessing the narrowband Internet of Things, so as to improve resource utilization efficiency and reduce management complexity.
[0076] Specifically, after UPF receives the CIoT 5GS optimization function instruction sent by SMF, it can generate a rate control instruction based on the CIoT 5GS optimization function instruction; in response to the rate control instruction, UPF can determine the UE to be controlled and the UE session established by the UE to be controlled, and quickly and accurately associate and bind the UE session established by the UE to be controlled with the global rate control timer that has been started; based on the global rate control timer, determine the rate control period of the UE to be controlled.
[0077] The association operation between the UE session and the global rate control timer ensures that the rate control period for the UE session can be consistent with the global timer period pre-set by the global rate control timer, thereby achieving efficient management and utilization of network resources.
[0078] The present invention also provides a specific example of a rate adjustment method. Specifically, the specific steps of the rate adjustment method are as follows: (1) When the UPF is started, the global rate control timer is started uniformly according to the predefined rate control period.
[0079] (2) UPF receives the CIoT 5GS optimization function instructions sent from the 5G core network control plane, and generates rate control instructions based on the CIoT 5GS optimization function instructions.
[0080] The rate control instruction may include information such as a unique identifier of the UE to be controlled, a maximum number of tokens that can be generated by the token bucket, and a rate control period of the UE to be controlled.
[0081] (3) Determine the UE to be controlled and the UE session established by the UE to be controlled based on the unique identifier of the UE to be controlled in the rate control instruction; accurately associate and bind the UE session established by the UE to be controlled with the global rate control timer that has been started; and determine the rate control period of the UE to be controlled based on the global rate control timer.
[0082] (4) According to the rate control period of the UE to be controlled in the rate control signaling, a token bucket is configured, and the token bucket is controlled to generate tokens according to the rate control period specified in the session establishment or session modification signaling, and the generated tokens are stored in the token bucket.
[0083] (5) When the UE to be controlled sends or receives a data packet, the UPF checks the number of tokens in the token bucket and decides whether to allow the data packet to pass or cache it based on the number of tokens.
[0084] (6) If it is decided to cache the data packet, the data packet will be transmitted according to the first-in-first-out principle when the subsequent token is generated and obtained; if it cannot be cached or does not meet the caching conditions, the data packet will be discarded.
[0085] The present invention also provides a rate regulating device, see Figure 3 , Figure 3 3 is a schematic diagram of the structure of the rate regulating device provided by the present invention. In this embodiment, the rate regulating device includes a determining module 310, a generating module 320 and an regulating module 330.
[0086] The determination module 310 is used to determine the UE to be controlled and the rate control period of the UE to be controlled in response to the rate control instruction.
[0087] The generating module 320 is used to control the token bucket to generate tokens based on the rate control period.
[0088] The adjustment module 330 is used to adjust the data transmission rate of the UE to be controlled based on the token.
[0089] In some embodiments, the token is used to identify data transfer permissions.
[0090] The adjustment module 330 is used to receive data packets sent by the UE to be controlled; the number of data packets is at least one; determine whether the number of tokens is greater than or equal to the number of data packets; if the number of tokens is greater than or equal to the number of data packets, transmit the data packets to the service server.
[0091] In some embodiments, the token is used to identify data transfer permissions.
[0092] The adjustment module 330 is used to receive data packets sent by the UE to be controlled; the number of data packets is at least one; determine whether the number of tokens is greater than or equal to the number of data packets; if the number of tokens is less than the number of data packets, determine whether the data packets meet the cache conditions; if the data packets meet the cache conditions, store the data packets in the cache queue; based on the rate control period, control the token bucket to continuously generate tokens until the number of tokens is greater than or equal to the number of data packets; and transmit the data packets to the service server.
[0093] In some embodiments, the token is used to identify data transfer permissions.
[0094] The adjustment module 330 is used to receive a data packet sent by the UE to be controlled; the number of data packets is at least one; determine whether the number of tokens is greater than or equal to the number of data packets; if the number of tokens is less than the number of data packets, determine whether the data packet meets the cache condition; if the data packet does not meet the cache condition, discard the data packet.
[0095] In some embodiments, the determination module 310 is used to receive the CIoT 5GS optimization function instruction sent by the SMF; based on the CIoT 5GS optimization function instruction, a rate control instruction is generated; wherein the rate control instruction includes a unique identifier of the UE to be controlled, the maximum number of tokens that can be generated by the token bucket, and the rate control period of the UE to be controlled.
[0096] In some embodiments, the determination module 310 is used to determine the UE session established between the UE to be controlled and the UE to be controlled in response to the rate control instruction; bind a global rate control timer to the UE session; and determine the rate control period of the UE to be controlled based on the global rate control timer.
[0097] The present invention also provides an electronic device, Figure 4 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the rate adjustment method.
[0098] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0099] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the rate adjustment method provided by the above methods is implemented.
[0100] The present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the rate adjustment methods provided by the above methods.
[0101] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0102] Through the description of the above implementation methods, 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 this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0103] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. 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 embodiments of the present invention.
Claims
1. A rate adjustment method, characterized in that: Applications in UPF include: In response to the rate control instruction, determining a UE to be controlled and a rate control period of the UE to be controlled; Based on the rate control period, controlling the token bucket to generate tokens; Based on the token, the data transmission rate of the UE to be controlled is adjusted.
2. The rate adjustment method according to claim 1, characterized in that: The token is used to identify data transmission authority; and adjusting the data transmission rate of the UE to be controlled based on the token includes: Receiving a data packet sent by the UE to be controlled; the number of the data packet is at least one; Determining whether the number of the tokens is greater than or equal to the number of the data packets; If the number of the tokens is greater than or equal to the number of the data packets, the data packets are transmitted to the service server.
3. The rate adjustment method according to claim 1, characterized in that: The token is used to identify data transmission authority; and adjusting the data transmission rate of the UE to be controlled based on the token includes: Receiving a data packet sent by the UE to be controlled; the number of the data packet is at least one; Determining whether the number of the tokens is greater than or equal to the number of the data packets; If the number of the tokens is less than the number of the data packets, determining whether the data packets meet the cache condition; If the data packet meets the cache condition, storing the data packet in the cache queue; Based on the rate control period, controlling the token bucket to continuously generate tokens until the number of the tokens is greater than or equal to the number of the data packets; The data packet is transmitted to the service server.
4. The rate adjustment method according to claim 1, characterized in that: The token is used to identify data transmission authority; and adjusting the data transmission rate of the UE to be controlled based on the token includes: Receiving a data packet sent by the UE to be controlled; the number of the data packet is at least one; Determining whether the number of the tokens is greater than or equal to the number of the data packets; If the number of the tokens is less than the number of the data packets, determining whether the data packets meet the cache condition; If the data packet does not meet the cache condition, the data packet is discarded.
5. The rate adjustment method according to claim 1, characterized in that: Before determining the rate control period of the UE to be controlled and the rate control period of the UE to be controlled in response to the rate control instruction, the method further includes: Receive CIoT 5GS optimization function instructions sent by SMF; Based on the CIoT 5GS optimization function instruction, generate the rate control instruction; The rate control instruction includes a unique identifier of the UE to be controlled, a maximum number of tokens that can be generated by the token bucket, and a rate control period of the UE to be controlled.
6. The rate adjustment method according to claim 1, characterized in that: The step of determining, in response to the rate control instruction, a UE to be controlled and a rate control period of the UE to be controlled includes: In response to the rate control instruction, determining a UE session established between the UE to be controlled and the UE to be controlled; Binding a global rate control timer to the UE session; Based on the global rate control timer, a rate control period of the UE to be controlled is determined.
7. A rate regulating device, characterized in that: include: A determination module, configured to determine a UE to be controlled and a rate control period of the UE to be controlled in response to a rate control instruction; A generating module, used for controlling a token bucket to generate tokens based on the rate control period; The adjustment module is used to adjust the data transmission rate of the UE to be controlled based on the token.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the rate adjustment method according to any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the rate adjustment method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the rate adjustment method according to any one of claims 1 to 6 is implemented.
