A network communication resource allocation method, apparatus, device, and medium
By acquiring service quality parameters and computing resource allocation labels, the problem of service quality mapping gap between the Internet protocol layer and the wireless bearer layer was solved, realizing the optimized allocation of network communication resources and improving resource utilization efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ANYSMART TECH CO LTD
- Filing Date
- 2026-02-10
- Publication Date
- 2026-06-05
AI Technical Summary
In 4G/5G network communication, there is a service quality mapping gap between the Internet protocol layer and the wireless bearer layer, which leads to a mismatch in resource allocation between the data wireless bearer and the end-to-end Internet protocol stream.
By proactively acquiring service quality parameters, and calculating resource allocation labels based on service quality level parameters, priority parameters, and preset weights, network communication resource allocation is configured to ensure the collaborative work of the Internet protocol layer and the wireless bearer layer.
It achieves consistent quality of service mapping between the Internet protocol layer and the wireless bearer layer, avoids resource allocation mismatch, and improves resource utilization efficiency.
Smart Images

Figure CN122160914A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network communication technology, specifically to a method, apparatus, device, and medium for allocating network communication resources. Background Technology
[0002] In 4G / 5G network communication scenarios, Quality of Service (QoS) is used to manage network communication and allocate network resources. QoS control requires the Internet Protocol Layer (IP) and the Radio Bearer Layer to work together. The IP layer defines differential service policies through Differentiated Services Code Points (DSCPs), while the Radio Bearer Layer ensures service latency and bandwidth requirements through QoS Class Identifier / 5G QoS Identifier (QCI / 5QI) parameters, while also relying on Packet Delay Budget (PDB) and Guaranteed Bit Rate (GBR) parameters.
[0003] In related technologies, during network communication, users can only configure the differential service policy of the Internet Protocol layer and cannot obtain the service quality parameters of the radio bearer layer. This results in a service quality mapping gap between the Internet Protocol layer and the radio bearer layer, leading to a mismatch in resource allocation between the Data Radio Bearer (DRB) and the end-to-end Internet Protocol stream. Summary of the Invention
[0004] This application provides a network communication resource allocation method, apparatus, device, and medium, aiming to solve the problem of service quality mapping gap between the Internet protocol layer and the wireless bearer layer, which leads to resource mismatch between data wireless bearer and end-to-end Internet protocol stream.
[0005] In a first aspect, embodiments of this application provide a method for allocating network communication resources, comprising the following steps:
[0006] Obtain service quality parameters; Priority parameters are determined based on service quality parameters; Based on the quality of service parameters, priority parameters, and preset weights, resource allocation tags are obtained. These resource allocation tags are used to configure network communication resource allocation.
[0007] In some embodiments, the service quality parameters include service quality level parameters; determining priority parameters based on the service quality parameters includes: Priority parameters are determined based on priority mapping rules according to service quality level parameters.
[0008] In some embodiments, the priority mapping rule includes a positive correlation between the service quality level parameter and the priority parameter.
[0009] In some embodiments, before determining the priority parameter based on the quality of service parameter, the method further includes: The business type is determined based on service quality parameters.
[0010] In some embodiments, the quality of service parameters also include packet delay budget parameters and bit rate parameters, and the preset weights include priority weight, delay weight, and bit rate weight; the priority weight is greater than the delay weight and bit rate weight. Resource allocation labels are obtained based on service quality parameters and priority parameters using a weighted allocation algorithm, including: Based on the priority parameter, priority weight, group delay budget parameter, delay weight, bit rate parameter, and bit rate weight, the resource allocation label is obtained. In the case of non-guaranteed bit rate service, the bit rate weight is set to the target value.
[0011] In some embodiments, obtaining service quality parameters includes: In a multi-packet data network, the names of multiple access points can be obtained in real time or periodically through the Quality of Service (QoS) interface. Obtain the corresponding quality of service parameters based on the access point name.
[0012] In some embodiments, the method further includes: Configure resource allocation tags in the Internet Protocol stack to allocate network communication resources for transmitted data.
[0013] Secondly, embodiments of this application provide a network communication resource allocation device, comprising: The data acquisition module is used to acquire service quality parameters; The priority determination module is used to determine priority parameters based on service quality parameters. The weight allocation module is used to obtain resource allocation tags based on service quality parameters, priority parameters, and preset weights. These resource allocation tags are used to configure network communication resource allocation.
[0014] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the computer program, when executed by the processor, implements the method as described in the first aspect.
[0015] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps of the method in the first aspect.
[0016] This application proactively obtains service quality parameters and, based on service quality level parameters, priority parameters, and preset weights, obtains resource allocation labels to configure network communication resource allocation. This avoids resource allocation mismatch caused by service quality mapping gaps between the Internet protocol layer and the wireless bearer layer, thereby improving resource utilization efficiency. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a flowchart illustrating a network communication resource allocation method provided by an exemplary embodiment of this disclosure; Figure 2 This is another flowchart illustrating a network communication resource allocation method provided by an exemplary embodiment of this disclosure; Figure 3 This is a flowchart illustrating step S201 of a network communication resource allocation method provided in an exemplary embodiment of this disclosure; Figure 4 This is a flowchart illustrating step S204 of a network communication resource allocation method provided in an exemplary embodiment of this disclosure; Figure 5 This is a schematic diagram of the structure of a network communication resource allocation device provided in an exemplary embodiment of this disclosure; Figure 6 This is another structural schematic diagram of a network communication resource allocation device provided in an exemplary embodiment of this disclosure; Figure 7 This is a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of this disclosure.
[0019] Explanation of reference numerals in the attached figures: 100. Host terminal; 101. Data acquisition module; 200. Modem terminal; 201. Service type identification module; 202. Priority determination module; 203. Weight allocation module; 204. Resource allocation module; 300. Electronic equipment; 301. Memory; 302. Processor; 303. Communication component; 304. Bus. Detailed Implementation
[0020] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0021] In the description of this application, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0022] "A and / or B" includes the following three combinations: A only, B only, and a combination of A and B.
[0023] The use of "applies to" or "configured to" in this application implies open and inclusive language, which does not exclude the applicability to or configuration to devices performing additional tasks or steps. Additionally, the use of "based on" implies openness and inclusivity, because processes, steps, calculations, or other actions "based on" one or more of the stated conditions or values may in practice be based on additional conditions or values beyond those stated.
[0024] In this application, the term "exemplary" is used to mean "used as an example, illustration, or description." Any embodiment described as "exemplary" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use this application. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that this application can be made without using these specific details. In other instances, well-known structures and processes are not described in detail to avoid obscuring the description of this application with unnecessary detail. Therefore, this application is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0025] Firstly, embodiments of this application provide a method for allocating network communication resources, such as... Figure 1 As shown, it includes the following steps: S101. Obtain service quality parameters.
[0026] Quality of Service (QoS) parameters are related to the model used to manage network communication and allocate network resources.
[0027] In traditional communication methods, users can only perceive Internet Protocol Layer (IP) parameters and cannot obtain the quality of service parameters that 4G / 5G networks can infinitely carry, thus creating a mapping gap.
[0028] In this application embodiment, by actively acquiring service quality parameters, data support is provided for subsequent priority judgment and resource allocation, avoiding and relying on Internet protocol layer parameters that could lead to mismatch in the differential service strategy defined by the Differentiated Services Code Point (DSCP).
[0029] S102. Determine priority parameters based on service quality parameters.
[0030] Priority parameters are used to characterize the importance of different services. Service quality parameters are quantified into priority parameters through preset mapping rules. High-priority services are core services with high latency and bandwidth requirements that cannot be terminated, while low-priority services are non-core services with lower latency and bandwidth requirements.
[0031] By prioritizing business operations, we can avoid competition for resources between different operations, ensure that core businesses receive priority protection, and lay the foundation for subsequent weighted resource allocation labels.
[0032] S103. Based on the service quality parameters, priority parameters, and preset weights, obtain the resource allocation label.
[0033] Resource allocation tags are used to configure network communication resource allocation. In one embodiment, the resource allocation tag is a Differential Service Code Point, a 6-bit field in the IPv4 / IPv6 packet header, used to define the IP layer differential service policy. Network devices identify the resource requirements of Internet Protocol flows through the value of the resource allocation tag and allocate corresponding bandwidth, queues, and other resources.
[0034] By assigning resource allocation labels to services with different priority parameters based on preset weights, the problem of insufficient core business resources and waste of non-core business resources can be avoided, thus achieving optimal resource scheduling.
[0035] This application also provides another method for allocating network communication resources, such as... Figure 2 As shown, it includes the following steps: S201. Obtain service quality parameters.
[0036] like Figure 3 As shown, it includes steps S2011-S2012.
[0037] S2011. Obtain multiple access point names in real time or periodically in a multi-path packet data network through the Quality of Service (QoS) interface.
[0038] A Packet Data Network (PDN) is a public data network connection that terminal devices can access simultaneously. An Access Point Name (APN) is an identifier that distinguishes different Packet Data Networks and is assigned by the operator.
[0039] When a packet data network connection changes at the terminal, such as adding a new access point name connection or disconnecting an access point name, the latest access point name list is obtained in real time to obtain all access point names currently connected.
[0040] When the terminal connection is stable, the list of access point names can be obtained periodically to obtain the names of all currently connected access points, thereby achieving fault redundancy and ensuring data reliability.
[0041] In related technologies, users cannot obtain the number of currently connected access point names and related parameters, making it impossible to distinguish different network resource allocation needs in multi-packet data network scenarios. By actively obtaining access point names, the system gains network topology awareness capabilities in multi-packet data network scenarios, providing a foundation for subsequent differentiated control based on access point names.
[0042] S2012. Obtain the corresponding quality of service parameters based on the access point name.
[0043] Quality of Service (QoS) parameters are bound to Access Point Names (APNs), with each APN corresponding to one QoS parameter. These QoS parameters include Quality of Service Class Identifier (QoS Class Identifier / 5G QoS Identifier, QCI / 5QI), Packet Delay Budget (PDB), and Guaranteed Bit Rate (GBR).
[0044] The Quality of Service (QoS) level parameters are radio bearer QoS parameters standardized by the 3rd Generation Partnership Project (3GPP). They are used to uniformly standardize the QoS assurance capabilities of radio bearers and realize functions such as network resource allocation, scheduling strategies, and service adaptation. The applicable value range is 1-9 or 1-255, with different values corresponding to predefined QoS characteristics.
[0045] The packet delay budget parameter is the maximum allowed end-to-end delay for data packets from the sender to the receiver, measured in milliseconds (ms). It is used to measure the real-time requirements of a service. The smaller the packet delay budget parameter, the more sensitive the service is to latency. For example, the packet delay budget for voice services is typically less than or equal to 50ms; if it exceeds 50ms, call stuttering will occur.
[0046] The bit rate parameter is the minimum bandwidth that the network promises to provide for the wireless bearer. That is, within the coverage area of the terminal, the bandwidth of the wireless bearer is guaranteed to be no less than the value specified by the bit rate parameter. If network resources are insufficient, services with the bit rate parameter will be given priority.
[0047] S202. Determine the business type based on service quality parameters.
[0048] The service type is determined based on the value of the service quality level parameter. For example, QCI=1 corresponds to voice calls, with the highest priority and requirements for low latency and high reliability; QCI=5 corresponds to multimedia subsystem signaling, ensuring smooth communication processes; QCI=9 corresponds to ordinary Internet services, with the lowest priority and no strict bandwidth or latency guarantees.
[0049] S203. Determine priority parameters based on service quality parameters.
[0050] Priority parameters are determined based on the service quality level parameters and priority mapping rules. The priority mapping rules include a positive correlation between the service quality level parameters and priority parameters. The higher the priority represented by the service quality level parameters, the higher the priority parameter obtained by mapping. The value range of the priority parameters is 0.1-1.0, which ensures that the priorities corresponding to different service quality level parameters can be directly compared horizontally and avoids numerical confusion.
[0051] The priority mapping rules are as follows: With QCI = 1, the priority is the highest, and the priority parameter is 1.0; With QCI = 9, the priority is the lowest, and the priority parameter is 0.1.
[0052] S204. Based on the service quality parameters, priority parameters, and preset weights, obtain the resource allocation label.
[0053] The resource allocation tag is used to configure network communication resource allocation.
[0054] The preset weights include priority weight, delay weight, and bit rate weight, which correspond to the priority parameter, packet delay budget parameter, and bit rate parameter, respectively.
[0055] like Figure 4 As shown, step S204 includes S2041-S2042.
[0056] S2041. Assign priority weights, delay weights, and bit rate weights to the priority parameter, packet delay budget parameter, and bit rate parameter, respectively.
[0057] Priority parameters emphasize the fundamental priority of service quality parameters, ensuring that core services always remain prioritized. Delay weights are used for latency-sensitive services; the smaller the packet delay budget parameter, the greater the contribution of the delay weight. Bitrate weights supplement bandwidth guarantee requirements, preventing high-bandwidth services from being degraded due to congestion.
[0058] Priority weight is greater than latency weight and bit rate weight. It is used to ensure service availability and to ensure that core services with higher priority will not become unavailable due to latency or bandwidth fluctuations. On the basis of ensuring service availability, latency weight and bit rate weight are further refined to meet latency and bandwidth requirements.
[0059] S2042. Obtain the resource allocation label based on the priority parameter, priority weight, group delay budget parameter, delay weight, bit rate parameter, and bit rate weight.
[0060] The formula for calculating resource allocation tags is as follows: ; in, Assign tags to resources, Priority weights For priority parameters, For delayed weights, For the packet delay budget parameter, For bit rate weights, This is the bit rate parameter.
[0061] In the case of a non-guaranteed bit rate service, the bit rate weight is set to a target value, which is set to 0 in one embodiment.
[0062] In one embodiment, the priority parameter, packet delay budget parameter, and bit rate parameter are 0.6, 0.3, and 0.1, respectively.
[0063] For example, in a voice call service, with a priority parameter of 1, a packet delay budget parameter of 10ms, and a bit rate parameter of 5Mbps, the calculated resource allocation label is: ; Voice call services receive the highest resource allocation label due to their highest priority and guaranteed packet delay budget parameters, ensuring priority allocation of network resources.
[0064] For example, in a regular data service, the priority parameter is 0.1, and the packet delay budget parameter is 100ms. Since regular data services are non-guaranteed bit rate services, the bit rate weight is set to 0. The calculated resource allocation label is: ; The resource allocation tag for ordinary data services is much smaller than that for voice call services. Therefore, when voice call services and ordinary data services coexist, voice call services will be given priority.
[0065] When using it, there is no need to manually set resource allocation labels. Instead, they are automatically calculated based on preset weights, making it suitable for complex network environments and improving ease of use.
[0066] S205. Configure the resource allocation label in the Internet Protocol stack to allocate network communication resources for transmitted data.
[0067] The Internet Protocol Stack (IPC) is a collection of software modules in a terminal that implement the Internet Protocol. It is used for the encapsulation, transmission, and reception of data packets. Resource allocation tags are configured in the IPC to allocate resources to the transmitted data packets.
[0068] Secondly, embodiments of this application provide a network communication resource allocation device, such as... Figure 5 As shown, it includes a data acquisition module 101, a priority determination module 202, and a weight allocation module 203.
[0069] The data acquisition module 101 is used to acquire service quality parameters. By actively acquiring service quality parameters, it provides data support for subsequent priority judgment and resource allocation, avoiding and avoiding the mismatch of differential service strategies caused by relying on Internet protocol layer parameters.
[0070] The priority determination module 202 is used to determine priority parameters based on service quality parameters. By prioritizing services, it avoids resource contention between different services, ensures that core services receive priority protection, and provides a foundation for subsequent weighted resource allocation labels.
[0071] The weight allocation module 203 is used to obtain resource allocation labels based on service quality parameters, priority parameters, and preset weights. These resource allocation labels are used to configure network communication resource allocation. By assigning resource allocation labels to services with different priority parameters through preset weights, the problem of insufficient core service resources and wasted non-core service resources is avoided, thus achieving optimal resource scheduling.
[0072] This application also provides a network communication resource allocation device, such as... Figure 6 As shown, it includes a host (100) and a modem (200).
[0073] The modem 200 is connected to the host 100 and the external Internet to establish a data exchange channel between the host 100 and the external Internet.
[0074] The modem 200 includes a data acquisition module 101 for acquiring quality of service parameters.
[0075] The data acquisition module 101 is equipped with a quality of service interface. The data acquisition module 101 obtains multiple access point names in real time or periodically in the multi-path packet data network through the quality of service interface, obtains the corresponding quality of service parameters according to the access point names, and reports them to the host 100.
[0076] The data acquisition module 101 reports the service quality parameters to the host 100 through the Unsolicited Result Code (URC), eliminating the need for polling by the host 100 and improving real-time performance.
[0077] The host terminal 100 includes a service type identification module 201, a priority determination module 202, a weight allocation module 203, and a resource allocation module 204.
[0078] The service type identification module 201 is used to determine the service type based on service quality parameters. The service type is determined according to the value of the service quality level parameters, providing a decision-making basis for the weight allocation module 203.
[0079] The priority determination module 202 is used to determine priority parameters based on service quality parameters. The priority parameters are determined based on a priority mapping rule, which states that the service quality level parameter and the priority parameter are positively correlated; the higher the priority represented by the service quality level parameter, the higher the mapped priority parameter. The priority parameter's value range is 0.1-1.0, ensuring that the priorities corresponding to different service quality level parameters can be directly compared horizontally, avoiding numerical confusion.
[0080] The weight allocation module 203 is used to obtain resource allocation labels based on service quality parameters, priority parameters, and preset weights. The preset weights include priority weight, latency weight, and bit rate weight, corresponding to the priority parameter, packet latency budget parameter, and bit rate parameter, respectively. The weight allocation module 203 assigns priority weight, latency weight, and bit rate weight to the priority parameter, packet latency budget parameter, and bit rate parameter, respectively, and obtains the resource allocation labels based on these parameters.
[0081] The resource allocation module 204 is used to configure resource allocation tags in the Internet Protocol stack to allocate network communication resources for transmitted data. The Internet Protocol stack is a collection of software modules in the terminal that implement the Internet protocol, used for data packet encapsulation, sending, and receiving. Resource allocation tags are configured in the Internet Protocol stack to achieve resource allocation for transmitted data packets.
[0082] Thirdly, such as Figure 7 As shown, an electronic device 300 is provided, including: a memory 301 and a processor 302; The memory 301 stores computer-executed instructions; The processor 302 executes the computer execution instructions stored in the memory 301, causing the processor 302 to perform the above-described method.
[0083] In one embodiment, the electronic device 300 includes at least one processor 302 and a memory 301. Optionally, the electronic device 300 further includes a communication component 303. The processor 302, memory 301, and communication component 303 are connected via a bus 304.
[0084] In a specific implementation, at least one processor 302 executes computer execution instructions stored in memory 301, causing at least one processor 302 to perform the above-described method.
[0085] The specific implementation process of processor 302 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0086] In the above embodiments, it should be understood that processor 302 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor, or processor 302 can be any conventional processor. The steps of the method disclosed in this invention can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules in processor 302.
[0087] Memory 301 may include high-speed memory 301 (random access memory, RAM), and may also include non-volatile memory 301. Volatile memory (NVM), such as at least one disk storage 301.
[0088] Bus 304 can be an industry standard architecture (ISA) bus, a peripheral component (PCI) bus, or an extended industry standard architecture (EISA) bus, etc. Bus 304 can be divided into address bus, data bus, control bus, etc. For ease of illustration, the bus 304 in the accompanying drawings of this application is not limited to only one bus 304 or one type of bus 304.
[0089] Fourthly, this application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by processor 302, implement the above-described method.
[0090] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0091] An exemplary readable storage medium is coupled to a processor, enabling the processor 302 to read information from and write information to the readable storage medium. Alternatively, the readable storage medium can be an integral part of the processor 302. The processor 302 and the readable storage medium can reside in application-specific integrated circuits (ASICs). Alternatively, the processor 302 and the readable storage medium can exist as discrete components in the device.
[0092] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0093] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0094] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0095] If the functionality is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device 300 (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes: a USB flash drive, a portable hard drive, and a read-only memory (ROM). Various media that can store program code, such as only memory, random access memory (RAM), magnetic disks, or optical disks.
[0096] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0097] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0098] The foregoing has provided a detailed description of a network communication resource allocation method, apparatus, device, and medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A method for allocating network communication resources, characterized in that, Includes the following steps: Obtain service quality parameters; Priority parameters are determined based on the service quality parameters; Based on the quality of service parameters, the priority parameters, and the preset weights, a resource allocation label is obtained, which is used to configure network communication resource allocation.
2. The method according to claim 1, characterized in that, The service quality parameters include service quality level parameters; determining the priority parameters based on the service quality parameters includes: The priority parameter is determined based on the service quality level parameter and a priority mapping rule.
3. The method according to claim 2, characterized in that, The priority mapping rule includes a positive correlation between the service quality level parameter and the priority parameter.
4. The method according to claim 2, characterized in that, Before determining the priority parameter based on the service quality parameter, the method further includes: The service type is determined based on the service quality parameters.
5. The method according to claim 4, characterized in that, The quality of service parameters also include packet delay budget parameters and bit rate parameters, and the preset weights include priority weight, delay weight, and bit rate weight; the priority weight is greater than the delay weight and the bit rate weight. Based on the service quality parameters and the priority parameters, a resource allocation label is obtained using a weighted allocation algorithm, including: The resource allocation label is obtained based on the priority parameter, the priority weight, the packet delay budget parameter, the delay weight, the bit rate parameter, and the bit rate weight, wherein the bit rate weight is a target value when the service type is a non-guaranteed bit rate service.
6. The method according to claim 1, characterized in that, Obtain service quality parameters, including: In a multi-packet data network, the names of multiple access points can be obtained in real time or periodically through the Quality of Service (QoS) interface. Obtain the corresponding quality of service parameters based on the access point name.
7. The method according to claim 1, characterized in that, The method further includes: The resource allocation tag is configured in the Internet Protocol stack to allocate network communication resources to the transmitted data.
8. A network communication resource allocation device, characterized in that, include: The data acquisition module is used to acquire service quality parameters; A priority determination module is used to determine priority parameters based on the service quality parameters; The weight allocation module is used to obtain a resource allocation label based on the service quality parameter, the priority parameter, and the preset weight. The resource allocation label is used to configure network communication resource allocation.
9. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program that, when executed by the processor, implements the method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to perform the steps of the method as described in any one of claims 1-7.