CN111885733B - Resource allocation method, device, storage medium and network equipment - Google Patents

Resource allocation method, device, storage medium and network equipment Download PDF

Info

Publication number
CN111885733B
CN111885733B CN202010622163.9A CN202010622163A CN111885733B CN 111885733 B CN111885733 B CN 111885733B CN 202010622163 A CN202010622163 A CN 202010622163A CN 111885733 B CN111885733 B CN 111885733B
Authority
CN
China
Prior art keywords
service
target
bearer
resources
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010622163.9A
Other languages
Chinese (zh)
Other versions
CN111885733A (en
Inventor
黄晓庆
王振凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cloudminds Shanghai Robotics Co Ltd
Original Assignee
Cloudminds Shanghai Robotics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cloudminds Shanghai Robotics Co Ltd filed Critical Cloudminds Shanghai Robotics Co Ltd
Priority to CN202010622163.9A priority Critical patent/CN111885733B/en
Publication of CN111885733A publication Critical patent/CN111885733A/en
Application granted granted Critical
Publication of CN111885733B publication Critical patent/CN111885733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present disclosure provides a method, an apparatus, a storage medium, and a network device for resource allocation, where the method includes: determining a target bearing of resources to be allocated; acquiring the user priority of a terminal corresponding to the target bearer and the service priority of the target bearer; acquiring the service bearing grade of the target bearing according to the user priority and the service priority; and allocating resources for the target bearer according to the service bearer level of the target bearer. By adopting the method, the higher service bearing grade is obtained by setting higher priority to the core user and the core service, and the resource allocation of the part of bearing with high service bearing grade can be preferentially ensured, so that the rate of the core user when using the core service is improved.

Description

Resource allocation method, device, storage medium and network equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method, an apparatus, a storage medium, and a network device for resource allocation.
Background
Successful commercial use of 4G (the 4th Generation mobile communication technology, fourth generation mobile communication) has promoted rapid development of mobile internet services, and video services as a representative service among mobile internet services have also become one of core services in the 4G era. In the 5G (the 5th Generation mobile communication technology, fifth generation mobile communication) age, network rates will be greatly improved, and video services with resolution of 4K, 8K and above in the future, and services such as AR (Augmented Reality ), VR (Virtual Reality), MR (hybrid Reality) and the like will be popular, and become core services of the 5G network. The high requirements of the core services on the rate will bring great challenges to the bearing capacity of the 5G network, and especially in the scene of heavy traffic, the rate of the core services cannot be effectively ensured, and even the rate of the core users using the high-value packages of operators is lower when the core services are used.
Disclosure of Invention
In order to solve the above problems, the present disclosure provides a method, an apparatus, a storage medium, and a network device for resource allocation.
In a first aspect, the present disclosure provides a method for resource allocation, applied to a first network device, including: determining a target bearing of resources to be allocated; acquiring the user priority of a terminal corresponding to the target bearer and the service priority of the target bearer; acquiring the service bearing grade of the target bearing according to the user priority and the service priority; and allocating resources for the target bearing according to the service bearing grade of the target bearing.
Optionally, the allocating resources for the target bearer according to the service bearer level of the target bearer includes: determining a first service bearer group where the target bearer is located according to the service bearer level of the target bearer, wherein the first service bearer group comprises bearers with the same service bearer level as the target bearer in the bearers of the first network equipment; and determining the allocable resources of the first service bearing group in a preset transmission time window, and allocating resources for the target bearing according to the allocable resources.
Optionally, the determining the allocable resource of the first service bearer group within a preset transmission time window includes: determining a preset resource allocation proportion corresponding to the first service bearing group; acquiring target resources occupied by the preset resource allocation proportion in available resources of the first network equipment in the preset transmission time window; and taking the target resource as the allocable resource.
Optionally, before taking the target resource as the allocable resource, the method further comprises: acquiring first residual resources of a second service bearing group under the condition that unallocated first residual resources exist in the second service bearing group, wherein the service bearing grade of the second service bearing group is higher than that of the first service bearing group; the treating the target resource as the allocable resource includes: and taking the target resource and the first residual resource as the allocable resource.
Optionally, before said allocating resources for said target bearer according to said allocable resources, said method further comprises: acquiring the service demand rate of the target bearing; the allocating resources for the target bearer according to the allocable resources comprises: determining a target demand resource of the target bearer according to the service demand rate and the preset transmission time window; acquiring total required resources of all bearers in the first service bearer group; and distributing resources for the target bearing according to the allocable resources, the total required resources and the target required resources.
Optionally, the acquiring the service demand rate of the target bearer includes: receiving the service demand rate sent by the second network equipment; or, obtaining the screen resolution of the terminal from the second network device, analyzing the transmission data packet corresponding to the target bearer to obtain the service resolution, and obtaining the service demand rate according to the screen resolution and the service resolution.
Optionally, before the acquiring the service demand rate according to the screen resolution and the service resolution, the method further includes: analyzing a transmission data packet corresponding to the target bearer to obtain transmission data characteristic parameters, wherein the transmission data characteristic parameters comprise image bits and refreshing frequency; the obtaining the service demand rate according to the screen resolution and the service resolution further includes: and under the condition that the transmission data packet is not compressed, calculating to obtain the service demand rate according to the following formula: v=d×f×min (R1, R2), where V represents the service demand rate, D represents the number of image bits, F represents the refresh frequency, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents taking the minimum value of R1 and R2; in the case of compression of the transmission data packet, the transmission data characteristic parameter further includes a data compression ratio, and the service demand rate is calculated according to the following formula: v=d×f×c×min (R1, R2), where V represents the service demand rate, D represents the number of image bits, F represents the refresh frequency, C represents the data compression ratio, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents taking the minimum value of R1 and R2.
Optionally, the allocating resources for the target bearer according to the allocable resources, the total required resources and the target required resources includes: calculating the resource ratio of the target demand resource to the total demand resource; determining a minimum resource with minimum resources from the allocable resources and the total required resources; and allocating resources for the target bearing according to the product of the resource ratio and the minimum resource.
Optionally, the method further comprises: calculating the difference between the allocable resources and the total required resources to obtain second residual resources under the condition that the allocable resources are larger than the total required resources; determining a third service bearing group from a plurality of bearing groups under the first network equipment, wherein the service bearing grade of the third service bearing group is lower than that of the first service bearing group; and allocating the second residual resources to the third service bearing group so as to take the second residual resources as the allocable resources of the third service bearing group.
Optionally, the acquiring the user priority of the terminal corresponding to the target bearer includes: transmitting a user grade inquiry request message to the second network equipment; receiving a first query request response message sent by the second network device according to the user grade query request message; and determining the user priority according to the first query request response message.
Optionally, the determining the user priority according to the first query request response message includes: acquiring the user priority contained in the first query request response message; or, the user identifier of the terminal is included in the first query request response message, and the user priority corresponding to the user identifier is obtained through a preset user identifier corresponding relation, wherein the preset user identifier corresponding relation comprises user priorities corresponding to different user identifiers.
Optionally, the acquiring the service priority of the target bearer includes: a service level query request message is sent to a second network device, a second query request response message sent by the second network device according to the service level query request message is received, a service identifier containing the target bearer in the second query request response message is obtained, the service priority corresponding to the service identifier is obtained through a preset service identifier corresponding relation, and the preset service identifier corresponding relation comprises service priorities corresponding to different service identifiers; or analyzing the transmission data packet corresponding to the target bearer to obtain service feature information corresponding to the transmission data packet, and determining service priority corresponding to the service feature information through a preset feature corresponding relation, wherein the preset feature corresponding relation comprises service priority corresponding to different service feature information.
Optionally, before the allocating resources for the target bearer according to the service bearer level of the target bearer, the method further includes: determining whether the target bearing meets a preset allocation condition according to the user priority and the service priority; the allocating resources for the target bearer according to the service bearer level of the target bearer includes: and under the condition that the target bearing meets the preset allocation condition, allocating resources for the target bearing according to the service bearing grade.
Optionally, the preset allocation conditions include: the user priority is greater than a first preset level threshold; or, the service priority is greater than a second preset level threshold.
Optionally, the obtaining the service bearer level of the bearer according to the user priority and the service priority includes: acquiring a first preset weight of the user priority and a second preset weight of the service priority; and calculating the service bearing grade according to the first preset weight and the second preset weight.
In a second aspect, the present disclosure provides an apparatus for resource allocation, applied to a first network device, including: the load bearing determining module is used for determining a target load bearing of the resource to be allocated; the priority acquisition module is used for acquiring the user priority of the terminal corresponding to the target bearer and the service priority of the target bearer; the bearing grade obtaining module is used for obtaining the service bearing grade of the target bearing according to the user priority and the service priority; and the resource allocation module is used for allocating resources for the target bearing according to the service bearing grade of the target bearing.
Optionally, the resource allocation module is configured to determine, according to a service bearer level of the target bearer, a first service bearer group where the target bearer is located, where the first service bearer group includes a bearer with the same service bearer level as the target bearer in a bearer of the first network device; and determining the allocable resources of the first service bearing group in a preset transmission time window, and allocating resources for the target bearing according to the allocable resources.
Optionally, the resource allocation module is configured to determine a preset resource allocation proportion corresponding to the first service bearer group; acquiring target resources occupied by the preset resource allocation proportion in available resources of the first network equipment in the preset transmission time window; and taking the target resource as the allocable resource.
Optionally, the resource allocation module is further configured to obtain, when there is an unallocated first remaining resource in a second service bearer group, the first remaining resource in the second service bearer group, where a service bearer level of the second service bearer group is higher than that of the first service bearer group; the treating the target resource as the allocable resource includes: and taking the target resource and the first residual resource as the allocable resource.
Optionally, the resource allocation module is further configured to obtain a service demand rate of the target bearer; determining a target demand resource of the target bearer according to the service demand rate and the preset transmission time window; acquiring total required resources of all bearers in the first service bearer group; and distributing resources for the target bearing according to the allocable resources, the total required resources and the target required resources.
Optionally, the resource allocation module is further configured to receive the service demand rate sent by the second network device; or, obtaining the screen resolution of the terminal from the second network device, analyzing the transmission data packet corresponding to the target bearer to obtain the service resolution, and obtaining the service demand rate according to the screen resolution and the service resolution.
Optionally, the resource allocation module is further configured to parse a transmission data packet corresponding to the target bearer, and obtain a transmission data characteristic parameter, where the transmission data characteristic parameter includes an image bit number and a refresh frequency; and under the condition that the transmission data packet is not compressed, calculating to obtain the service demand rate according to the following formula: v=d×f×min (R1, R2), where V represents the service demand rate, D represents the number of image bits, F represents the refresh frequency, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents taking the minimum value of R1 and R2; in the case of compression of the transmission data packet, the transmission data characteristic parameter further includes a data compression ratio, and the service demand rate is calculated according to the following formula: v=d×f×c×min (R1, R2), where V represents the service demand rate, D represents the number of image bits, F represents the refresh frequency, C represents the data compression ratio, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents taking the minimum value of R1 and R2.
Optionally, the resource allocation module is further configured to calculate a resource ratio of the target required resource to the total required resource; determining a minimum resource with minimum resources from the allocable resources and the total required resources; and allocating resources for the target bearing according to the product of the resource ratio and the minimum resource.
Optionally, the resource allocation module is further configured to calculate a difference between the allocable resource and the total required resource to obtain a second remaining resource when the allocable resource is greater than the total required resource; determining a third service bearing group from a plurality of bearing groups under the first network equipment, wherein the service bearing grade of the third service bearing group is lower than that of the first service bearing group; and allocating the second residual resources to the third service bearing group so as to take the second residual resources as the allocable resources of the third service bearing group.
Optionally, the priority obtaining module is configured to send a user level query request message to the second network device; receiving a first query request response message sent by the second network device according to the user grade query request message; and determining the user priority according to the first query request response message.
Optionally, the priority obtaining module is configured to obtain the user priority included in the first query request response message; or, the user identifier of the terminal is included in the first query request response message, and the user priority corresponding to the user identifier is obtained through a preset user identifier corresponding relation, wherein the preset user identifier corresponding relation comprises user priorities corresponding to different user identifiers.
Optionally, the priority obtaining module is configured to send a service level query request message to a second network device, receive a second query request response message sent by the second network device according to the service level query request message, obtain a service identifier that includes the target bearer in the second query request response message, and obtain, through a preset service identifier correspondence, the service priority corresponding to the service identifier, where the preset service identifier correspondence includes service priorities corresponding to different service identifiers; or analyzing the transmission data packet corresponding to the target bearer to obtain service feature information corresponding to the transmission data packet, and determining service priority corresponding to the service feature information through a preset feature corresponding relation, wherein the preset feature corresponding relation comprises service priority corresponding to different service feature information.
Optionally, the apparatus further comprises: the priority judging module is used for determining whether the target bearing meets a preset allocation condition according to the user priority and the service priority; the resource allocation module is further configured to allocate resources to the target bearer according to the service bearer level if it is determined that the target bearer meets a preset allocation condition.
Optionally, the priority determining module is further configured to determine, by the user priority being greater than a first preset level threshold, or the service priority being greater than a second preset level threshold, that the target bearer meets a preset allocation condition.
Optionally, the service bearer level obtaining module is configured to obtain a first preset weight of the user priority and a second preset weight of the service priority; and calculating the service bearing grade according to the first preset weight and the second preset weight.
In a third aspect, the present disclosure provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of the first aspect of the present disclosure.
In a fourth aspect, the present disclosure provides a network device comprising: a memory having a computer program stored thereon; a processor for executing the computer program in the memory to implement the steps of the method of the first aspect of the disclosure.
Through the technical scheme, the service bearing grades are divided according to the user priority and the service priority, the resource allocation is carried out according to the service bearing grades, the higher service bearing grade is obtained by setting higher priority to the core user and the core service, and the resource allocation of the part of the bearing with the higher service bearing grade can be preferentially ensured, so that the rate of the core user when using the core service is improved.
Additional features and advantages of the present disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosure, and are incorporated in and constitute a part of this specification, illustrate the disclosure and together with the description serve to explain, but do not limit the disclosure. In the drawings:
FIG. 1 is a flow chart of a method of resource allocation provided by an embodiment of the present disclosure;
FIG. 2 is a flow chart of another method of resource allocation provided by an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an apparatus for resource allocation according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of another apparatus for resource allocation according to an embodiment of the present disclosure;
Fig. 5 is a block diagram of a network device provided by an embodiment of the present disclosure.
Detailed Description
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the disclosure, are not intended to limit the disclosure.
In the following description, the words "first," "second," and the like are used merely for distinguishing between the descriptions and not for indicating or implying a relative importance or order.
First, an application scenario of the present disclosure will be described. The present disclosure may be applied to wireless communication scenarios, particularly 5G scenarios, in the 5G era, video services with mobile end resolution of 4K, 8K and above, and services such as AR, VR, MR will become core services of the 5G network. The high requirements of the core services on the rate will bring great challenges to the bearing capacity of the 5G network, and especially in the scene of heavy traffic, the rate of the core services cannot be effectively ensured, and even the rate of the core users using the high-value packages of operators is lower when the core services are used.
The inventors found that: in the related art, the user characteristics and the service characteristics cannot be combined to match the network bearing capacity, and the resource allocation is unreasonable in the scene of busy telephone traffic, so that the rate of core users in the network when using core services cannot be effectively ensured, and the service experience is greatly reduced.
In order to solve the above problems, the present disclosure provides a method, an apparatus, a storage medium, and a network device for resource allocation, where service bearer classes are classified according to user priorities and service priorities, and resource allocation is performed according to service bearer classes, so that by setting higher priorities for core users and core services, a higher service bearer class is obtained, and resource allocation of a portion of bearers with a high service bearer class can be preferentially guaranteed, so that a rate of the core users when using the core services is improved.
Specific embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
Fig. 1 is a method for resource allocation according to an embodiment of the present disclosure, as shown in fig. 1, an execution body of the method may be a first network device, where the first network device may be a base station, and the method includes:
s101, determining a target bearing of resources to be allocated.
The target bearer of the resource to be allocated may be a bearer in which data is to be sent in the first network device.
S102, acquiring the user priority of the terminal corresponding to the target bearer and the service priority of the target bearer.
The higher the user priority, the higher the service level of the corresponding user of the terminal, for example, the user may be a normal user or a VIP (Very Important Person, important client) user, the higher the user priority of the VIP user is than the user priority of the normal user, and similarly, the higher the service priority, the higher the service level of the corresponding service of the target bearer, for example, the service may be a video service or a file downloading service, and the service priority of the video service is higher than the service priority of the file downloading service.
In this step, the user priority of the terminal corresponding to the target bearer may be obtained by:
first, a user class query request message is sent to a second network device.
The user level query request message is used for requesting to query the user priority of the terminal corresponding to the target bearer, and the message can contain a terminal identifier. The terminal identity may be, for example, an IMSI (International Mobile Subscriber Identity ) or a TMSI (Temporary Mobile Subscriber Identity, temporary mobile subscriber identity). The second network device may be a core network device.
And secondly, receiving a first query request response message sent by the second network equipment according to the user grade query request message.
There are two alternatives: in an optional manner, the second network device obtains the user priority corresponding to the terminal identifier, and includes the user priority in the first query request response message. In another alternative, the second network device obtains the user identifier corresponding to the terminal identifier, and includes the user identifier in the first query request response message.
And finally, determining the user priority according to the first query request response message.
The user priority may be determined in two ways, that is, the first network device may obtain the user priority included in the first query request response message when the first query request response message includes the user priority of the user, and in another possible implementation, the first network device may obtain the user identifier of the terminal included in the first query request response message, and obtain the user priority corresponding to the user identifier through a preset user identifier correspondence relationship, where the preset user identifier correspondence relationship includes user priorities corresponding to different user identifiers.
In addition, the traffic priority of the target bearer may be determined by either of the following two ways:
in a first mode, a service level query request message is sent to a second network device, the service level query request message carries a service identifier of the target bearer, a second query request response message sent by the second network device is received, and a service priority of the target bearer included in the second query request response message is obtained. The second network device obtains and transmits service priority of the service identifier according to a preset service identifier grade relation, wherein the preset service identifier grade relation comprises a corresponding relation between a preset service identifier and the service priority, for example, the service identifier A corresponds to the first service priority, and the service is represented as X video; the service identifier B corresponds to a second service priority, indicating that the service is Y video.
And in a second mode, analyzing the transmission data packet corresponding to the target bearer to obtain service characteristic information corresponding to the transmission data packet, and determining the service priority corresponding to the service characteristic information through a preset characteristic corresponding relation.
The preset feature corresponding relation comprises service priorities corresponding to different service feature information. For example, the service characteristic information may include at least one of the following information obtained from the transmission data packet: DNS (Domain Name System, domain name system protocol) domain name, IP (Internet Protocol ) address, port, HTTP (Hyper Text Transfer Protocol ) protocol HOST field, URL (Uniform Resource Locator, uniform resource location system) key field identification, average packet length of a transport packet, average time interval of a plurality of transport packets. For example: the DNS nameincludes the string "qq.com" corresponding to the first service priority, indicating that the service is X video.
S103, acquiring the service bearing grade of the target bearing according to the user priority and the service priority.
The higher the service bearer level, the higher the service level of the target bearer, and the target bearer may allocate resources preferentially.
In one possible implementation manner, a first preset weight of the user priority and a second preset weight of the service priority may be obtained, and the service bearer level is calculated according to the first preset weight and the second preset weight.
For example, a first product of the user priority and a first preset weight and a second product of the service priority and a second preset weight may be calculated, and a sum of the first product and the second product may be used as the service bearer level.
S104, distributing resources for the target bearing according to the service bearing grade of the target bearing.
In this step, whether the target bearer meets a preset allocation condition may be determined according to the user priority and the service priority, and resources may be allocated to the target bearer according to the service bearer level if it is determined that the target bearer meets the preset allocation condition.
Wherein the preset allocation condition may include the user priority being greater than a first preset level threshold; or, the service priority is greater than a second preset level threshold.
In one possible implementation manner, a first service bearer group where the target bearer is located may be determined according to a service bearer level of the target bearer, where the first service bearer group includes a bearer having the same service bearer level as the target bearer in the bearers of the first network device, and the allocable resource of the first service bearer group in a preset transmission time window is determined, and resources are allocated to the target bearer according to the allocable resource.
For example, according to the service bearer level of the target bearer, the number of bearers under the first service bearer group is determined, and the allocable resources of the first service bearer group in the preset time window are determined, and then the ratio of the allocable resources to the number of bearers is used as the resources allocated by the target bearer.
By adopting the method, the service bearing grades are divided according to the user priority and the service priority, the resource allocation is carried out according to the service bearing grades, the higher service bearing grade is obtained by setting higher priority to the core user and the core service, and the resource allocation of the part of the bearing with high service bearing grade can be preferentially ensured, so that the rates of the core user and the core service are improved.
Fig. 2 is another method for allocating resources according to an embodiment of the present disclosure, as shown in fig. 2, an execution body of the method may be a first network device, and the first network device may be a base station, where the method includes:
s201, determining a target bearing of the resource to be allocated.
S202, acquiring the user priority of the terminal corresponding to the target bearer and the service priority of the target bearer.
In this step, the user priority of the terminal corresponding to the target bearer may be obtained by:
First, a user class query request message is sent to a second network device.
The user level query request message is used for requesting to query the user priority of the terminal corresponding to the target bearer, and the message can contain a terminal identifier. The terminal identity may be, for example, an IMSI (International Mobile Subscriber Identity ) or a TMSI (Temporary Mobile Subscriber Identity, temporary mobile subscriber identity). The second network device may be a core network device.
And secondly, receiving a first query request response message sent by the second network equipment according to the user grade query request message.
There are two alternatives: in an optional manner, the second network device obtains the user priority corresponding to the terminal identifier, and includes the user priority in the first query request response message. In another alternative, the second network device obtains the user identifier corresponding to the terminal identifier, and includes the user identifier in the first query request response message.
And finally, determining the user priority according to the first query request response message.
The user priority may be determined in two ways, that is, the first network device may obtain the user priority included in the first query request response message when the first query request response message includes the user priority of the user, and in another possible implementation, the first network device may obtain the user identifier of the terminal included in the first query request response message, and obtain the user priority corresponding to the user identifier through a preset user identifier correspondence relationship, where the preset user identifier correspondence relationship includes user priorities corresponding to different user identifiers.
In addition, the traffic priority of the target bearer may be determined by either of the following two ways:
in a first mode, a service level query request message is sent to a second network device, the service level query request message carries a service identifier of the target bearer, a second query request response message sent by the second network device is received, and a service priority of the target bearer included in the second query request response message is obtained. The second network device obtains and transmits service priority of the service identifier according to a preset service identifier grade relation, wherein the preset service identifier grade relation comprises a corresponding relation between a preset service identifier and the service priority, for example, the service identifier A corresponds to the first service priority, and the service is represented as X video; the service identifier B corresponds to a second service priority, indicating that the service is Y video.
And in a second mode, analyzing the transmission data packet corresponding to the target bearer to obtain service characteristic information corresponding to the transmission data packet, and determining the service priority corresponding to the service characteristic information through a preset characteristic corresponding relation.
The preset feature corresponding relation comprises service priorities corresponding to different service feature information. The service characteristic information may include at least one of the following information obtained from the transmission data packet: DNS (Domain Name System, domain name system protocol) domain name, IP (Internet Protocol ) address, port, HTTP (Hyper Text Transfer Protocol ) protocol HOST field, URL (Uniform Resource Locator, uniform resource location system) key field identification, average packet length of a transport packet, average time interval of a plurality of transport packets. For example: the DNS nameincludes the string "qq.com" corresponding to the first service priority, indicating that the service is X video.
S203, determining whether the target bearing meets the preset allocation condition according to the user priority and the service priority.
In this step, it may be determined whether the target bearer satisfies a preset allocation condition by:
the target bearer meets any one of the following conditions, and the target bearer is determined to meet a preset allocation condition: the value of the user priority of the target bearer is greater than a first preset level threshold; or the value of the service priority of the target bearer is larger than a second preset level threshold. Wherein the first preset level threshold and the second preset level threshold are preset by the first network device and may be any value greater than or equal to 0. In contrast, if the target bearer does not meet any of the above conditions, it is determined that the target bearer does not meet the preset allocation condition.
It may also be determined whether the target bearer satisfies a preset allocation condition in the following second manner:
the target bearer meets any one of the following conditions, and the target bearer is determined to meet a preset allocation condition: the value of the user priority of the target bearer is smaller than a first preset level threshold; or the value of the service priority of the target bearer is smaller than a second preset level threshold. Wherein the first preset level threshold and the second preset level threshold are preset by the first network device and may be any value greater than or equal to 0. In contrast, if the target bearer does not meet any of the above conditions, it is determined that the target bearer does not meet the preset allocation condition.
By adopting the method, the users or services for carrying out the resource allocation can be further limited, the resource allocation guarantee is carried out only for a small number of core users and core services meeting the preset allocation conditions, and the influence on other non-core users and non-core services can be reduced through reasonable preset allocation conditions.
In the case where it is determined that the target bearer satisfies the preset allocation condition, steps S204 to S209 are performed.
And under the condition that the target bearing does not meet the preset allocation condition, the resource allocation of the target bearing in the subsequent steps of the embodiment is not executed.
It should be noted that, in the case that it is determined that the target bearer does not meet the preset allocation condition, the target bearer may be allocated according to the resource allocation manner in the related art.
S204, determining a first service bearing group where the target bearing is located according to the service bearing grade of the target bearing.
Wherein the first service bearer group includes bearers having the same service bearer level as the target bearer in the bearers of the first network device;
s205, determining the allocable resource of the first service bearing group in a preset transmission time window.
The preset transmission time window is a resource allocation window preset by the first network device and is used for calculating allocable resources and bearing required resources. The preset transmission time window may be any value between a preset 1ms and 1000 ms.
In this step, a preset resource allocation proportion corresponding to the first service bearer group may be determined, a target resource occupied by the preset resource allocation proportion in available resources of the first network device within a preset transmission time window may be obtained, and the target resource may be used as the allocable resource. For example, when the preset resource allocation proportion of the first service bearer group is 70%, the target resource is 70% of available resources of the first network device in a preset transmission time window; when the preset resource allocation proportion of the first service bearer group is 20%, the target resource is 20% of available resources of the first network device in a preset transmission time window. By adopting the method, different resources are allocated to different grades by reasonably setting the preset resource allocation proportion of different service bearing grades, and the influence of high-grade bearing on low-grade bearing can be also realized.
It should be noted that, considering that when a service bearer group is allocated with a service bearer level higher than that of the first service bearer group, there may be an unallocated remaining resource, before taking a target resource as an allocable resource, if a second service bearer group has an unallocated first remaining resource, the first remaining resource of the second service bearer group may be obtained, where the service bearer level of the second service bearer group is higher than that of the first service bearer group, and the sum of the target resource and the first remaining resource is taken as the allocable resource. In this way, the allocable resources of the low-level bearer are increased, and the rate of the low-level bearer is increased, so that the resources in the first network device are effectively utilized.
The service bearer level of the second service bearer group may be one level higher than the service bearer level of the first service bearer group.
S206, obtaining the service demand rate of the target bearing.
In this step, the service demand rate may be obtained by either of the following two methods:
mode one: and receiving the service demand rate sent by the second network equipment.
In this manner, the second network device may obtain the rate required by the current service of the target bearer by analyzing the transmission data packet corresponding to the target bearer, and send the rate required by the service to the first network device.
Mode two: and acquiring the screen resolution of the terminal from the second network equipment, analyzing the transmission data packet corresponding to the target bearing to acquire the service resolution, and acquiring the service demand rate according to the screen resolution and the service resolution.
The second network device obtains the screen resolution of the terminal, which may be obtained by obtaining terminal IMEI (International Mobile Equipment Identity ) information in a preset terminal information base, where the preset terminal information base includes a correspondence between the terminal IMEI information and the terminal screen resolution.
In this manner, the service demand rate may be obtained by:
before the service demand rate is obtained according to the screen resolution and the service resolution, a transmission data packet corresponding to the target bearing can be analyzed to obtain transmission data characteristic parameters, wherein the transmission data characteristic parameters comprise image bit numbers and refreshing frequency.
In the case where the transmission packet is not compressed, the service demand rate can be calculated according to the following formula:
V=D*F*min(R1,R2),
wherein V represents the service demand rate, D represents the number of image bits, F represents the refresh frequency, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents the minimum value of R1 and R2.
For example, the screen resolution of the terminal acquired from the second network device is 4K, and the following data are obtained by analyzing the transmission data packet carried by the target: service resolution is 8K, and the number of image bits is 24bits; the refresh frequency was 60fps. The resolution corresponding to the 4K resolution is 3840×2160, and the resolution corresponding to the 8K resolution is 7680×4320.
According to the above formula, the service demand rate is 11.9Gbps, i.e. 24×60×min (3840×2160, 7680×4320) =11.9 Gbps.
In the case of the transmission data packet compression, the transmission data characteristic parameter further includes a data compression ratio, and the service demand rate may be calculated according to the following formula:
V=D*F*C*min(R1,R2),
Wherein V represents the service demand rate, D represents the number of image bits, F represents the refresh frequency, C represents the data compression ratio, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents the minimum value of R1 and R2.
For example, the screen resolution of the terminal acquired from the second network device is 4K, and the following data are obtained by analyzing the transmission data packet carried by the target: service resolution is 8K, and the number of image bits is 24bits; the refresh frequency is 60fps; the data compression ratio was 1/350. The resolution corresponding to the 4K resolution is 3840×2160, and the resolution corresponding to the 8K resolution is 7680×4320.
According to the above formula, the service demand rate is 34Mbps, i.e. 24×60 (1/350) ×min (3840×2160, 7680×4320) =34 Mbps.
The video coding standard through which the data compression ratio can be obtained, for example, the video coding standard h.265 has a compression ratio of 1/350 to 1/1000, and the minimum compression ratio may be determined as the data compression ratio, or the maximum compression ratio may be determined as the data compression ratio.
It should be noted that, a specific method for analyzing the transmission data packet corresponding to the target bearer to obtain the service resolution, the image bit number, the refresh frequency and the data compression ratio may refer to the related art, and this disclosure will not be repeated.
S207, determining the target demand resource of the target bearing according to the service demand rate and the preset transmission time window.
The target demand resource may be a required data amount, and a product of a service demand rate and a preset transmission time window may be used as the target demand resource.
S208, obtaining the total required resources of all the bearers in the first service bearer group.
In this step, the required resources of all the bearers in the first service bearer set may be obtained, and the total required resources may be obtained by adding the required resources of all the bearers, where the obtaining manner of the required resources of all the bearers in the first service bearer set may refer to the obtaining manner of the target required resources of the target bearer, which is not described herein.
S209, allocating resources for the target bearer according to the allocable resources, the total required resources and the target required resources.
In this step, a resource ratio of the required resource to the total required resource may be calculated, and a minimum resource with a minimum resource is determined from the allocable resource and the total required resource, and the resource is allocated to the target bearer according to a product of the resource ratio and the minimum resource. Thus, when the allocable resources of the service bearing group are greater than or equal to the total required resources, the required target required resources can be allocated to all target bearings under the service bearing group, and when the allocable resources of the service bearing group are smaller than the total required resources, the required resources can be reduced for all target bearings under the service bearing group according to the same proportion, the allocated resources are obtained, and the bearing resource allocation fairness under the same service bearing group is ensured.
Illustratively, the resources allocated by the target bearer can be calculated by the following formula:
D assign_1_j =D 1_j /D 1_all *min(D total_1 ,D 1_all ),
wherein D is assign_1_j Representing the resources allocated for the target bearer, D 1_j Representing the required resources, D 1_all Representing the total demand resource, min representing a function of obtaining the smallest one of the given two or more parameters, D total_1 The band represents the allocable resource.
It should be noted that, in the case where the allocable resource is greater than the total required resource, it indicates that there are unallocated remaining resources, and in this case, if these resources are discarded, resource waste is caused, so in order to solve the above problem, in another embodiment of the present disclosure, the first network device may calculate, in the case where the allocable resource is greater than the total required resource, a difference between the allocable resource and the total required resource, to obtain a second remaining resource; determining a third service bearer group from a plurality of bearer groups under the first network device, wherein the service bearer level of the third service bearer group is lower than that of the first service bearer group; and allocating the second residual resource to the third service bearing group so as to take the second residual resource as an allocable resource of the third service bearing group. In this way, by allocating the remaining resources to the service bearer group with the service bearer level lower than the first service bearer level, the remaining resources can be effectively utilized, the resources which can be allocated by the low-level bearer are increased, and the rate of the low-level bearer is improved, so that the resources in the first network device are effectively utilized.
For example, the allocable resource of the first service bearer set in the preset transmission time window determined according to the method in S205 is 70 parts, and the total required resource of all bearers in the first service bearer set obtained according to the method in S208 is 50 parts, so that the remaining resource of the first service bearer set may be 20 parts of the difference between the two, and the remaining resource may be used as a part of the allocable resource of the third service bearer set with a low service bearer level.
By adopting the method, the service bearing grades are divided according to the user priority and the service priority, the service demand rate of each bearing is obtained, and the resource allocation is carried out according to the service bearing grade and the service demand rate of the bearing, so that the network resource allocation strategy can be effectively matched by combining the service characteristics, the on-demand allocation of resources is realized, the allocation of the required resources of the core users and the core services with high service bearing grades is preferentially ensured, and the rates of the core users and the core services are improved. When the resource demands of the core users and the core service are satisfied, the residual resources still exist, and can be used for the bearing of the low service bearing grade, so that the resource waste is avoided, and the network resource utilization rate is improved.
Fig. 3 is a schematic structural diagram of an apparatus for resource allocation according to an embodiment of the present disclosure, where the apparatus may be applied to a first network device, as shown in fig. 3, and the apparatus includes:
a bearer determining module 301, configured to determine a target bearer of a resource to be allocated;
a priority obtaining module 302, configured to obtain a user priority of a terminal corresponding to the target bearer and a service priority of the target bearer;
a bearer level obtaining module 303, configured to obtain a service bearer level of the target bearer according to the user priority and the service priority;
a resource allocation module 304, configured to allocate resources for the target bearer according to the service bearer level of the target bearer.
Optionally, the resource allocation module 304 is configured to determine, according to a service bearer level of the target bearer, a first service bearer group where the target bearer is located, where the first service bearer group includes a bearer, in the bearers of the first network device, and a bearer having the same service bearer level as the target bearer; and determining the allocable resources of the first service bearing group in a preset transmission time window, and allocating resources for the target bearing according to the allocable resources.
Optionally, the resource allocation module 304 is configured to determine a preset resource allocation ratio corresponding to the first service bearer group; acquiring target resources occupied by the preset resource allocation proportion in the available resources of the first network equipment in the preset transmission time window; the target resource is taken as the allocable resource.
Optionally, the resource allocation module 304 is further configured to obtain, in a case where there is an unallocated first remaining resource in the second service bearer set, the first remaining resource in the second service bearer set, where a service bearer level of the second service bearer set is higher than that of the first service bearer set; the treating the target resource as the allocatable resource includes: the target resource and the first remaining resource are used as the allocable resource.
Optionally, the resource allocation module 304 is further configured to obtain a service demand rate of the target bearer; determining a target demand resource of the target bearing according to the service demand rate and the preset transmission time window; acquiring total required resources of all bearers in the first service bearer group; and allocating resources for the target bearing according to the allocable resources, the total required resources and the target required resources.
Optionally, the resource allocation module 304 is further configured to receive the service demand rate sent by the second network device; or, the screen resolution of the terminal is obtained from the second network device, the transmission data packet corresponding to the target bearing is analyzed to obtain the service resolution, and the service demand rate is obtained according to the screen resolution and the service resolution.
Optionally, the resource allocation module 304 is further configured to parse a transmission data packet corresponding to the target bearer, to obtain a transmission data characteristic parameter, where the transmission data characteristic parameter includes an image bit number and a refresh frequency; under the condition that the transmission data packet is not compressed, the service demand rate is calculated according to the following formula: v=d×f×min (R1, R2), where V represents the service demand rate, D represents the number of image bits, F represents the refresh frequency, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents the minimum value of R1 and R2; in the case of the transmission data packet compression, the transmission data characteristic parameter further includes a data compression ratio, and the service demand rate is calculated according to the following formula: v=d×f×c×min (R1, R2), where V represents the service demand rate, D represents the number of image bits, F represents the refresh frequency, C represents the data compression ratio, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents the minimum value of R1 and R2.
Optionally, the resource allocation module 304 is further configured to calculate a resource ratio of the target required resource to the total required resource; determining a minimum resource with the smallest resource from the allocable resource and the total required resource; and allocating resources for the target bearing according to the product of the resource ratio and the minimum resource.
Optionally, the resource allocation module 304 is further configured to calculate a difference between the allocable resource and the total required resource to obtain a second remaining resource when the allocable resource is greater than the total required resource; determining a third service bearer group from a plurality of bearer groups under the first network device, wherein the service bearer level of the third service bearer group is lower than that of the first service bearer group; and allocating the second residual resource to the third service bearing group so as to take the second residual resource as an allocable resource of the third service bearing group.
Optionally, the priority obtaining module 302 is configured to send a user level query request message to the second network device; receiving a first query request response message sent by the second network device according to the user grade query request message; the user priority is determined based on the first query request response message.
Optionally, the priority obtaining module 302 is configured to obtain the user priority included in the first query request response message; or, acquiring the user identifier of the terminal contained in the first query request response message, and acquiring the user priority corresponding to the user identifier through a preset user identifier corresponding relation, wherein the preset user identifier corresponding relation comprises the user priorities corresponding to different user identifiers.
Optionally, the priority obtaining module 302 is configured to send a service level query request message to a second network device, receive a second query request response message sent by the second network device according to the service level query request message, obtain a service identifier that includes the target bearer in the second query request response message, and obtain, by using a preset service identifier correspondence, the service priority corresponding to the service identifier, where the preset service identifier correspondence includes service priorities corresponding to different service identifiers; or analyzing the transmission data packet corresponding to the target bearer to obtain service feature information corresponding to the transmission data packet, and determining service priority corresponding to the service feature information through a preset feature corresponding relation, wherein the preset feature corresponding relation comprises service priorities corresponding to different service feature information.
Optionally, as shown in fig. 4, the apparatus further includes: a priority determining module 405, configured to determine whether the target bearer meets a preset allocation condition according to the user priority and the service priority; the resource allocation module 304 is further configured to allocate resources to the target bearer according to the service bearer level if it is determined that the target bearer meets a preset allocation condition.
Optionally, the priority determining module 405 is further configured to determine that the target bearer meets a preset allocation condition by the user priority being greater than a first preset level threshold, or the service priority being greater than a second preset level threshold.
Optionally, the bearer level obtaining module 303 is configured to obtain a first preset weight of the user priority and a second preset weight of the service priority; and calculating the service bearing grade according to the first preset weight and the second preset weight.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Through the device, the service bearing grades are divided according to the user priority and the service priority, and the resource allocation is carried out according to the service bearing grades, and the higher service bearing grade is obtained by setting higher priority to the core user and the core service, so that the resource allocation of the part of the bearing with the higher service bearing grade can be preferentially ensured, and the rates of the core user and the core service are improved.
Fig. 5 is a block diagram of a network device 500, according to an example embodiment. As shown in fig. 5, the network device 500 may include: a processor 501, a memory 502. The network device 500 may also include one or more of a multimedia component 503, an input/output (I/O) interface 504, and a communication component 505.
Wherein the processor 501 is configured to control the overall operation of the network device 500 to perform all or part of the steps in the resource allocation method described above. The memory 502 is used to store various types of data to support operation at the network device 500, which may include, for example, instructions for any application or method operating on the network device 500, as well as application-related data, such as contact data, messages sent and received, pictures, audio, video, and so forth. The Memory 502 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 503 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 502 or transmitted through the communication component 505. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 504 provides an interface between the processor 501 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 505 is used for wired or wireless communication between the network device 500 and other devices. Wireless communication, such as Wi-Fi, bluetooth, near field communication (Near Field Communication, NFC for short), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or one or a combination of more of them, is not limited herein. The corresponding communication component 505 may thus comprise: wi-Fi module, bluetooth module, NFC module, etc.
In an exemplary embodiment, the network device 500 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), digital signal processors (Digital Signal Processor, abbreviated as DSP), digital signal processing devices (Digital Signal Processing Device, abbreviated as DSPD), programmable logic devices (Programmable Logic Device, abbreviated as PLD), field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described resource allocation method.
In another exemplary embodiment, a computer readable storage medium is also provided comprising program instructions which, when executed by a processor, implement the steps of the resource allocation method described above. For example, the computer readable storage medium may be the memory 502 described above including program instructions executable by the processor 501 of the network device 500 to perform the resource allocation method described above.
The preferred embodiments of the present disclosure have been described in detail above with reference to the accompanying drawings, but the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solutions of the present disclosure within the scope of the technical concept of the present disclosure, and all the simple modifications belong to the protection scope of the present disclosure.
In addition, the specific features described in the foregoing embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, the present disclosure does not further describe various possible combinations.
Moreover, any combination between the various embodiments of the present disclosure is possible as long as it does not depart from the spirit of the present disclosure, which should also be construed as the disclosure of the present disclosure.
Examples:
1. a method of resource allocation, for use with a first network device, comprising:
determining a target bearing of resources to be allocated;
acquiring the user priority of a terminal corresponding to the target bearer and the service priority of the target bearer;
acquiring the service bearing grade of the target bearing according to the user priority and the service priority;
and allocating resources for the target bearing according to the service bearing grade of the target bearing.
2. The method of embodiment 1, wherein the allocating resources for the target bearer according to the traffic bearer class of the target bearer comprises:
determining a first service bearer group where the target bearer is located according to the service bearer level of the target bearer, wherein the first service bearer group comprises bearers with the same service bearer level as the target bearer in the bearers of the first network equipment;
And determining the allocable resources of the first service bearing group in a preset transmission time window, and allocating resources for the target bearing according to the allocable resources.
3. The method of embodiment 2, wherein the determining the allocable resources of the first service bearer group within a preset transmission time window includes:
determining a preset resource allocation proportion corresponding to the first service bearing group;
acquiring target resources occupied by the preset resource allocation proportion in available resources of the first network equipment in the preset transmission time window;
and taking the target resource as the allocable resource.
4. The method of embodiment 3, wherein prior to taking the target resource as the allocatable resource, the method further comprises:
acquiring first residual resources of a second service bearing group under the condition that unallocated first residual resources exist in the second service bearing group, wherein the service bearing grade of the second service bearing group is higher than that of the first service bearing group;
the treating the target resource as the allocable resource includes:
and taking the target resource and the first residual resource as the allocable resource.
5. The method of embodiment 2, wherein prior to said allocating resources for said target bearer in accordance with said allocable resources, said method further comprises:
acquiring the service demand rate of the target bearing;
the allocating resources for the target bearer according to the allocable resources comprises:
determining a target demand resource of the target bearer according to the service demand rate and the preset transmission time window;
acquiring total required resources of all bearers in the first service bearer group;
and distributing resources for the target bearing according to the allocable resources, the total required resources and the target required resources.
6. The method of embodiment 5, wherein the obtaining the service demand rate of the target bearer includes:
receiving the service demand rate sent by the second network equipment; or alternatively, the process may be performed,
and acquiring the screen resolution of the terminal from the second network equipment, analyzing the transmission data packet corresponding to the target bearer to obtain service resolution, and acquiring the service demand rate according to the screen resolution and the service resolution.
7. The method of embodiment 6, wherein prior to said obtaining said traffic demand rate from said screen resolution and said traffic resolution, said method further comprises:
Analyzing a transmission data packet corresponding to the target bearer to obtain transmission data characteristic parameters, wherein the transmission data characteristic parameters comprise image bits and refreshing frequency;
the obtaining the service demand rate according to the screen resolution and the service resolution further includes:
and under the condition that the transmission data packet is not compressed, calculating to obtain the service demand rate according to the following formula:
V=D*F*min(R1,R2),
wherein V represents the service demand rate, D represents the image bit number, F represents the refresh frequency, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents taking the minimum value of R1 and R2;
in the case of compression of the transmission data packet, the transmission data characteristic parameter further includes a data compression ratio, and the service demand rate is calculated according to the following formula:
V=D*F*C*min(R1,R2),
wherein V represents the service demand rate, D represents the image bit number, F represents the refresh frequency, C represents the data compression ratio, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents the minimum value of R1 and R2.
8. The method of embodiment 5, wherein the allocating resources for the target bearer according to the allocable resources, the total demand resources, and the target demand resources comprises:
Calculating the resource ratio of the target demand resource to the total demand resource;
determining a minimum resource with minimum resources from the allocable resources and the total required resources;
and allocating resources for the target bearing according to the product of the resource ratio and the minimum resource.
9. The method of embodiment 5, wherein the method further comprises:
calculating the difference between the allocable resources and the total required resources to obtain second residual resources under the condition that the allocable resources are larger than the total required resources;
determining a third service bearing group from a plurality of bearing groups under the first network equipment, wherein the service bearing grade of the third service bearing group is lower than that of the first service bearing group;
and allocating the second residual resources to the third service bearing group so as to take the second residual resources as the allocable resources of the third service bearing group.
10. The method of embodiment 1, wherein the obtaining the user priority of the target bearer corresponding terminal includes:
transmitting a user grade inquiry request message to the second network equipment;
receiving a first query request response message sent by the second network device according to the user grade query request message;
And determining the user priority according to the first query request response message.
11. The method of embodiment 10, wherein the determining the user priority from the first query request response message comprises:
acquiring the user priority contained in the first query request response message; or alternatively, the process may be performed,
the user identification of the terminal is contained in the first query request response message, the user priority corresponding to the user identification is obtained through a preset user identification corresponding relation, and the preset user identification corresponding relation comprises the user priorities corresponding to different user identifications.
12. The method of embodiment 1, wherein the acquiring the service priority of the target bearer includes:
a service level query request message is sent to a second network device, a second query request response message sent by the second network device according to the service level query request message is received, a service identifier containing the target bearer in the second query request response message is obtained, the service priority corresponding to the service identifier is obtained through a preset service identifier corresponding relation, and the preset service identifier corresponding relation comprises service priorities corresponding to different service identifiers; or alternatively, the process may be performed,
Analyzing the transmission data packet corresponding to the target bearer to obtain service feature information corresponding to the transmission data packet, and determining service priority corresponding to the service feature information through a preset feature corresponding relation, wherein the preset feature corresponding relation comprises service priority corresponding to different service feature information.
13. The method of embodiment 1, wherein before the allocating resources for the target bearer according to the traffic bearer class of the target bearer, the method further comprises:
determining whether the target bearing meets a preset allocation condition according to the user priority and the service priority;
the allocating resources for the target bearer according to the service bearer level of the target bearer includes:
and under the condition that the target bearing meets the preset allocation condition, allocating resources for the target bearing according to the service bearing grade.
14. The method of embodiment 13, wherein the preset dispensing conditions include:
the user priority is greater than a first preset level threshold; or alternatively, the process may be performed,
the service priority is greater than a second preset level threshold.
15. The method according to any one of embodiments 1 to 14, wherein the obtaining the service bearer level of the bearer according to the user priority and the service priority comprises:
Acquiring a first preset weight of the user priority and a second preset weight of the service priority;
and calculating the service bearing grade according to the first preset weight and the second preset weight.
16. An apparatus for resource allocation, applied to a first network device, comprising:
the load bearing determining module is used for determining a target load bearing of the resource to be allocated;
the priority acquisition module is used for acquiring the user priority of the terminal corresponding to the target bearer and the service priority of the target bearer;
the bearing grade obtaining module is used for obtaining the service bearing grade of the target bearing according to the user priority and the service priority;
and the resource allocation module is used for allocating resources for the target bearing according to the service bearing grade of the target bearing.
17. The apparatus of embodiment 16, wherein the resource allocation module is configured to determine, according to a service bearer level of the target bearer, a first service bearer group where the target bearer is located, where the first service bearer group includes a bearer in the first network device and a bearer with the same service bearer level of the target bearer; and determining the allocable resources of the first service bearing group in a preset transmission time window, and allocating resources for the target bearing according to the allocable resources.
18. The apparatus of embodiment 17, wherein the resource allocation module is configured to determine a preset resource allocation ratio corresponding to the first service bearer group; acquiring target resources occupied by the preset resource allocation proportion in available resources of the first network equipment in the preset transmission time window; and taking the target resource as the allocable resource.
19. The apparatus of embodiment 18, wherein the resource allocation module is further configured to, in a case where there is an unallocated first remaining resource in a second service bearer group, obtain the first remaining resource in the second service bearer group, where a service bearer level of the second service bearer group is higher than that of the first service bearer group; the treating the target resource as the allocable resource includes: and taking the target resource and the first residual resource as the allocable resource.
20. The apparatus of embodiment 17, wherein the resource allocation module is further configured to obtain a traffic demand rate of the target bearer; determining a target demand resource of the target bearer according to the service demand rate and the preset transmission time window; acquiring total required resources of all bearers in the first service bearer group; and distributing resources for the target bearing according to the allocable resources, the total required resources and the target required resources.
21. The apparatus of embodiment 20, wherein the resource allocation module is further configured to receive the traffic demand rate sent by the second network device; or, obtaining the screen resolution of the terminal from the second network device, analyzing the transmission data packet corresponding to the target bearer to obtain the service resolution, and obtaining the service demand rate according to the screen resolution and the service resolution.
22. The method of embodiment 21, wherein the resource allocation module is further configured to parse a transmission data packet corresponding to the target bearer, to obtain a transmission data characteristic parameter, where the transmission data characteristic parameter includes an image bit number and a refresh frequency; and under the condition that the transmission data packet is not compressed, calculating to obtain the service demand rate according to the following formula: v=d×f×min (R1, R2), where V represents the service demand rate, D represents the number of image bits, F represents the refresh frequency, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents taking the minimum value of R1 and R2; in the case of compression of the transmission data packet, the transmission data characteristic parameter further includes a data compression ratio, and the service demand rate is calculated according to the following formula: v=d×f×c×min (R1, R2), where V represents the service demand rate, D represents the number of image bits, F represents the refresh frequency, C represents the data compression ratio, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents taking the minimum value of R1 and R2.
23. The apparatus of embodiment 20, wherein the resource allocation module is further configured to calculate a resource ratio of the target demand resource to the total demand resource; determining a minimum resource with minimum resources from the allocable resources and the total required resources; and allocating resources for the target bearing according to the product of the resource ratio and the minimum resource.
24. The apparatus of embodiment 20, wherein the resource allocation module is further configured to calculate a difference between the allocable resource and the total demand resource to obtain a second remaining resource if the allocable resource is greater than the total demand resource; determining a third service bearing group from a plurality of bearing groups under the first network equipment, wherein the service bearing grade of the third service bearing group is lower than that of the first service bearing group; and allocating the second residual resources to the third service bearing group so as to take the second residual resources as the allocable resources of the third service bearing group.
25. The apparatus of embodiment 16, wherein the priority obtaining module is configured to send a user rank query request message to a second network device; receiving a first query request response message sent by the second network device according to the user grade query request message; and determining the user priority according to the first query request response message.
26. The apparatus of embodiment 25, wherein the priority obtaining module is configured to obtain the user priority included in the first query request response message; or, the user identifier of the terminal is included in the first query request response message, and the user priority corresponding to the user identifier is obtained through a preset user identifier corresponding relation, wherein the preset user identifier corresponding relation comprises user priorities corresponding to different user identifiers.
27. The apparatus of embodiment 16, wherein the priority obtaining module is configured to send a service level query request message to a second network device, receive a second query request response message sent by the second network device according to the service level query request message, obtain a service identifier that includes the target bearer in the second query request response message, and obtain the service priority corresponding to the service identifier through a preset service identifier correspondence, where the preset service identifier correspondence includes service priorities corresponding to different service identifiers; or analyzing the transmission data packet corresponding to the target bearer to obtain service feature information corresponding to the transmission data packet, and determining service priority corresponding to the service feature information through a preset feature corresponding relation, wherein the preset feature corresponding relation comprises service priority corresponding to different service feature information.
28. The apparatus of embodiment 16, wherein the apparatus further comprises:
the priority judging module is used for determining whether the target bearing meets a preset allocation condition according to the user priority and the service priority;
the resource allocation module is further configured to allocate resources to the target bearer according to the service bearer level if it is determined that the target bearer meets a preset allocation condition.
29. The apparatus of embodiment 28, wherein the priority determining module is further configured to determine that the target bearer meets a preset allocation condition by the user priority being greater than a first preset level threshold, or the service priority being greater than a second preset level threshold.
30. The apparatus according to any one of embodiments 16 to 29, wherein the service bearer level obtaining module is configured to obtain a first preset weight of the user priority and a second preset weight of the service priority; and calculating the service bearing grade according to the first preset weight and the second preset weight.
31. A computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor realizes the steps of the method of any of embodiments 1 to 15.
32. A network device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of embodiments 1 to 15.

Claims (15)

1. A method of resource allocation, for use with a first network device, comprising:
determining a target bearing of resources to be allocated;
acquiring the user priority of a terminal corresponding to the target bearer and the service priority of the target bearer;
acquiring the service bearing grade of the target bearing according to the user priority and the service priority;
allocating resources for the target bearer according to the service bearer level of the target bearer;
the allocating resources for the target bearer according to the service bearer level of the target bearer includes:
determining a first service bearer group where the target bearer is located according to the service bearer level of the target bearer, wherein the first service bearer group comprises bearers with the same service bearer level as the target bearer in the bearers of the first network equipment;
determining the allocable resources of the first service bearing group in a preset transmission time window, and allocating resources for the target bearing according to the allocable resources;
Before said allocating resources for said target bearer according to said allocable resources, said method further comprises:
acquiring the service demand rate of the target bearing;
the allocating resources for the target bearer according to the allocable resources comprises:
determining a target demand resource of the target bearer according to the service demand rate and the preset transmission time window;
acquiring total required resources of all bearers in the first service bearer group;
allocating resources for the target bearer according to the allocable resources, the total required resources and the target required resources;
the obtaining the service demand rate of the target bearer includes:
receiving the service demand rate sent by the second network equipment; or alternatively, the process may be performed,
and acquiring the screen resolution of the terminal from the second network equipment, analyzing the transmission data packet corresponding to the target bearer to obtain service resolution, and acquiring the service demand rate according to the screen resolution and the service resolution.
2. The method of claim 1, wherein the determining the allocable resources of the first set of traffic bearers within a preset transmission time window comprises:
Determining a preset resource allocation proportion corresponding to the first service bearing group;
acquiring target resources occupied by the preset resource allocation proportion in available resources of the first network equipment in the preset transmission time window;
and taking the target resource as the allocable resource.
3. The method of claim 2, wherein prior to treating the target resource as the allocatable resource, the method further comprises:
acquiring first residual resources of a second service bearing group under the condition that unallocated first residual resources exist in the second service bearing group, wherein the service bearing grade of the second service bearing group is higher than that of the first service bearing group;
the treating the target resource as the allocable resource includes:
and taking the target resource and the first residual resource as the allocable resource.
4. The method of claim 1, wherein prior to said obtaining said traffic demand rate from said screen resolution and said traffic resolution, said method further comprises:
analyzing a transmission data packet corresponding to the target bearer to obtain transmission data characteristic parameters, wherein the transmission data characteristic parameters comprise image bits and refreshing frequency;
The obtaining the service demand rate according to the screen resolution and the service resolution further includes:
and under the condition that the transmission data packet is not compressed, calculating to obtain the service demand rate according to the following formula:
V=D*F*min(R1,R2),
wherein V represents the service demand rate, D represents the image bit number, F represents the refresh frequency, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents taking the minimum value of R1 and R2;
in the case of compression of the transmission data packet, the transmission data characteristic parameter further includes a data compression ratio, and the service demand rate is calculated according to the following formula:
V=D*F*C*min(R1,R2),
wherein V represents the service demand rate, D represents the image bit number, F represents the refresh frequency, C represents the data compression ratio, R1 represents the screen resolution, R2 represents the service resolution, and min (R1, R2) represents the minimum value of R1 and R2.
5. The method of claim 1, wherein the allocating resources for the target bearer according to the allocable resources, the total demand resources, and the target demand resources comprises:
calculating the resource ratio of the target demand resource to the total demand resource;
Determining a minimum resource with minimum resources from the allocable resources and the total required resources;
and allocating resources for the target bearing according to the product of the resource ratio and the minimum resource.
6. The method according to claim 1, wherein the method further comprises:
calculating the difference between the allocable resources and the total required resources to obtain second residual resources under the condition that the allocable resources are larger than the total required resources;
determining a third service bearing group from a plurality of bearing groups under the first network equipment, wherein the service bearing grade of the third service bearing group is lower than that of the first service bearing group;
and allocating the second residual resources to the third service bearing group so as to take the second residual resources as the allocable resources of the third service bearing group.
7. The method of claim 1, wherein the obtaining the user priority of the target bearer corresponding terminal comprises:
transmitting a user grade inquiry request message to the second network equipment;
receiving a first query request response message sent by the second network device according to the user grade query request message;
And determining the user priority according to the first query request response message.
8. The method of claim 7, wherein said determining the user priority from the first query request response message comprises:
acquiring the user priority contained in the first query request response message; or alternatively, the process may be performed,
the user identification of the terminal is contained in the first query request response message, the user priority corresponding to the user identification is obtained through a preset user identification corresponding relation, and the preset user identification corresponding relation comprises the user priorities corresponding to different user identifications.
9. The method of claim 1, wherein the obtaining the traffic priority of the target bearer comprises:
a service level query request message is sent to a second network device, a second query request response message sent by the second network device according to the service level query request message is received, a service identifier containing the target bearer in the second query request response message is obtained, the service priority corresponding to the service identifier is obtained through a preset service identifier corresponding relation, and the preset service identifier corresponding relation comprises service priorities corresponding to different service identifiers; or alternatively, the process may be performed,
Analyzing the transmission data packet corresponding to the target bearer to obtain service feature information corresponding to the transmission data packet, and determining service priority corresponding to the service feature information through a preset feature corresponding relation, wherein the preset feature corresponding relation comprises service priority corresponding to different service feature information.
10. The method of claim 1, wherein prior to said allocating resources for said target bearer in accordance with a traffic bearer class of said target bearer, said method further comprises:
determining whether the target bearing meets a preset allocation condition according to the user priority and the service priority;
the allocating resources for the target bearer according to the service bearer level of the target bearer includes:
and under the condition that the target bearing meets the preset allocation condition, allocating resources for the target bearing according to the service bearing grade.
11. The method of claim 10, wherein the preset dispensing conditions comprise:
the user priority is greater than a first preset level threshold; or alternatively, the process may be performed,
the service priority is greater than a second preset level threshold.
12. The method according to any one of claims 1 to 11, wherein said obtaining a traffic bearer level of the bearer according to the user priority and the traffic priority comprises:
Acquiring a first preset weight of the user priority and a second preset weight of the service priority;
and calculating the service bearing grade according to the first preset weight and the second preset weight.
13. An apparatus for resource allocation, for use with a first network device, comprising:
the load bearing determining module is used for determining a target load bearing of the resource to be allocated;
the priority acquisition module is used for acquiring the user priority of the terminal corresponding to the target bearer and the service priority of the target bearer;
the bearing grade obtaining module is used for obtaining the service bearing grade of the target bearing according to the user priority and the service priority;
the resource allocation module is used for allocating resources for the target bearing according to the service bearing grade of the target bearing;
the resource allocation module is configured to determine a first service bearer group where the target bearer is located according to a service bearer level of the target bearer, where the first service bearer group includes bearers with the same service bearer level as the target bearer in bearers of the first network device; determining the allocable resources of the first service bearing group in a preset transmission time window, and allocating resources for the target bearing according to the allocable resources;
The resource allocation module is further configured to obtain a service demand rate of the target bearer; determining a target demand resource of the target bearer according to the service demand rate and the preset transmission time window; acquiring total required resources of all bearers in the first service bearer group; allocating resources for the target bearer according to the allocable resources, the total required resources and the target required resources;
the resource allocation module is further configured to receive the service demand rate sent by the second network device; or, obtaining the screen resolution of the terminal from the second network device, analyzing the transmission data packet corresponding to the target bearer to obtain the service resolution, and obtaining the service demand rate according to the screen resolution and the service resolution.
14. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 12.
15. A network device, comprising:
a memory having a computer program stored thereon;
a processor for executing the computer program in the memory to implement the steps of the method of any one of claims 1 to 12.
CN202010622163.9A 2020-06-30 2020-06-30 Resource allocation method, device, storage medium and network equipment Active CN111885733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010622163.9A CN111885733B (en) 2020-06-30 2020-06-30 Resource allocation method, device, storage medium and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010622163.9A CN111885733B (en) 2020-06-30 2020-06-30 Resource allocation method, device, storage medium and network equipment

Publications (2)

Publication Number Publication Date
CN111885733A CN111885733A (en) 2020-11-03
CN111885733B true CN111885733B (en) 2023-10-24

Family

ID=73157441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010622163.9A Active CN111885733B (en) 2020-06-30 2020-06-30 Resource allocation method, device, storage medium and network equipment

Country Status (1)

Country Link
CN (1) CN111885733B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333832B (en) * 2020-11-27 2022-07-08 中国联合网络通信集团有限公司 Resource allocation method, access network equipment and computer readable storage medium
CN113760535B (en) * 2021-03-10 2023-09-22 北京京东振世信息技术有限公司 Resource providing method and device and service platform
CN114064146B (en) * 2021-11-16 2024-04-09 珠海金山数字网络科技有限公司 Resource loading method and device
CN116347512A (en) * 2021-12-22 2023-06-27 展讯通信(上海)有限公司 Data transmission method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098745A (en) * 2009-12-15 2011-06-15 普天信息技术研究院有限公司 Method and device for controlling QoS (Quality of Service) by allocating radio resources and normalizing priority levels
CN110324863A (en) * 2018-03-28 2019-10-11 ***通信有限公司研究院 A kind of method and base station for realizing QoS distribution in wireless side
CN110933760A (en) * 2019-11-28 2020-03-27 北京明略软件***有限公司 Bearing admission control method, device and base station equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007520131A (en) * 2004-01-28 2007-07-19 フランス テレコム Radio resource management method, core network service node, and radio access network control apparatus in UTRAN radio access network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098745A (en) * 2009-12-15 2011-06-15 普天信息技术研究院有限公司 Method and device for controlling QoS (Quality of Service) by allocating radio resources and normalizing priority levels
CN110324863A (en) * 2018-03-28 2019-10-11 ***通信有限公司研究院 A kind of method and base station for realizing QoS distribution in wireless side
CN110933760A (en) * 2019-11-28 2020-03-27 北京明略软件***有限公司 Bearing admission control method, device and base station equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Ericsson.S2-075601 "UE requested bearer resource allocation: Support of Multiple PDN".《3GPP tsg_sa\WG2_Arch》.2007, *

Also Published As

Publication number Publication date
CN111885733A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
CN111885733B (en) Resource allocation method, device, storage medium and network equipment
US9906464B2 (en) Optimization of multimedia service over an IMS network
US11968128B2 (en) Management, by an intermediate device, of the quality of transmission of a data stream to a mobile terminal
CN110417676B (en) Scheduling method, device and scheduling network
US8601142B2 (en) Adaptive network address translation binding for wireless networks
CN113596191A (en) Data processing method, network element equipment and readable storage medium
CN110677405A (en) Data processing method and device, electronic equipment and storage medium
CN111901881B (en) Transmission method and device
CN108574965B (en) Method and equipment for processing request
CN114466226B (en) Bandwidth duration duty cycle determination method, device, equipment and computer readable medium
CN106535112B (en) Method, device and system for realizing terminal access
KR100550014B1 (en) Method for providing service to users through modifying QoS profile
US11316580B2 (en) Communication system, relay server, communication method and program
CN113938814B (en) Service scheduling method, UPF, system and medium of content distribution network
CN107181777A (en) The sending method and device of control message
KR20100052025A (en) Bandwidth sharing type content providing system and method
CN116455771A (en) Method and network node for QoS notification
CN113709677A (en) Method and device for joining multicast broadcast service MBS session
CN106664610B (en) Network controller, system and resource allocation method
CN111835822B (en) Service processing method, system, domain name server, electronic equipment and medium
JP7413570B2 (en) IP address assignment in wireless communication networks
CN113542010B (en) Block chain based network fragment selection method, system, server and medium
CN112492629B (en) Network slice deployment method, slice management platform and network side equipment
CN111918365B (en) Network distribution method, device and system of Internet of things and storage medium
CN112118597B (en) Multi-stream service transmission method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 201111 Building 8, No. 207, Zhongqing Road, Minhang District, Shanghai

Applicant after: Dayu robot Co.,Ltd.

Address before: 200245 2nd floor, building 2, no.1508, Kunyang Road, Minhang District, Shanghai

Applicant before: Dalu Robot Co.,Ltd.

GR01 Patent grant
GR01 Patent grant