Resource allocation method, device and equipment, readable storage medium and program product
By predicting the load status value of the V2I link and dynamically allocating resources using the coefficients of the downlink data cache queue, it solves the problem of low resource allocation efficiency in the Internet of Vehicles and improves network resource utilization and service quality.
Patent Information
- Application Number
- CN202311599581.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2024-10-18
AI Technical Summary
Existing Internet of Vehicles resource allocation methods result in low network resource utilization and cannot achieve optimal allocation of resources, resulting in network delays and poor service quality.
By predicting the load status value of the V2I link and dynamically allocating network resources according to the overflow and underflow coefficients of the downlink data cache queue, queue overflow and resource waste are avoided.
Improves the quality of service (QOS) and network resource utilization of V2I links, and reduces the probability of data loss and resource waste.
Smart Images

Figure CN118804383A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a resource allocation method, device, equipment, readable storage medium and program product. Background Art
[0002] As an important part of the intelligent transportation system, the Internet of Vehicles provides different functional services during the driving process, such as information exchange and resource sharing between vehicles, other vehicles, roadside infrastructure, and the Internet. The roadside unit collects basic data such as vehicle user location information, transmission requests, channel gain, etc., allocates network resources to vehicle users, and realizes information transmission between vehicles, roads, and pedestrians.
[0003] Since network resources are limited, how to efficiently and reasonably allocate network resources to each vehicle user and improve the quality of service (QOS) requirements of vehicle users is particularly important in the Internet of Vehicles. The existing solution implements resource scheduling based on the current network status of the Internet of Vehicles. This scheduling method will cause a certain delay and cannot achieve the optimal allocation of resources, resulting in low network resource utilization. Summary of the invention
[0004] The embodiments of the present application provide a resource allocation method, apparatus, device, readable storage medium and program product, which can solve the problem of low utilization rate of existing network resources.
[0005] In a first aspect, an embodiment of the present application provides a resource allocation method, the method comprising:
[0006] For each V2I link in the N V2I links, using a historical load state value of the V2I link in a historical scheduling period, predict a first load state value of the V2I link in a first scheduling period, and obtain N first load state values corresponding to the N V2I links one by one, where N is a positive integer;
[0007] According to the N first load state values, and the overflow coefficients and underflow coefficients of the downlink data cache queues of the N V2I links, network resources of the N V2I links in the first scheduling period are allocated.
[0008] In a second aspect, an embodiment of the present application provides a resource allocation device, the device comprising:
[0009] A prediction module, configured to predict, for each V2I link in the N V2I links, a first load state value of the V2I link in a first scheduling period by using a historical load state value of the V2I link in a historical scheduling period, and obtain N first load state values corresponding to the N V2I links one by one, where N is a positive integer;
[0010] An allocation module is used to allocate network resources of the N V2I links in the first scheduling period according to the N first load state values and the overflow coefficients and underflow coefficients of the downlink data cache queues of the N V2I links.
[0011] In a third aspect, an embodiment of the present application provides a resource allocation device, comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the resource allocation method as described in the first aspect is implemented.
[0012] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the resource allocation method described in the first aspect is implemented.
[0013] In a fifth aspect, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the resource allocation method as described in the first aspect.
[0014] In an embodiment of the present application, a downlink data cache queue is configured for each V2I link. For each V2I link, the historical load state value of the downlink data cache queue of the V2I link in the historical scheduling period can be used to predict the first load state value of the downlink data cache queue of the V2I link in the first scheduling period, so that N first load state values corresponding to N V2I links can be obtained. Afterwards, network resources in the first scheduling period can be allocated to the N V2I links based on the predicted N first load state values, and the overflow coefficient and underflow coefficient of the downlink data cache queue. It can be seen that in an embodiment of the present application, for each scheduling period, the network resources of each V2I link can be dynamically allocated based on the predicted load state value of the downlink data cache queue of the N V2I links, and the overflow coefficient and underflow coefficient of the downlink data cache queue. In this way, on the one hand, the probability of data loss caused by queue overflow in the V2I link can be reduced, and the QOS of the V2I link can be improved; on the other hand, the probability of network resource waste caused by queue underflow in the V2I link can be reduced, and the utilization rate of network resources can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0016] Figure 1is a system architecture diagram applicable to the embodiments of the present application;
[0017] Figure 2 It is a flowchart of a resource allocation method provided in an embodiment of the present application;
[0018] Figure 3 is a schematic diagram of the structure of a resource allocation device provided in an embodiment of the present application;
[0019] Figure 4 It is a structural diagram of a resource allocation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0020] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0021] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0022] For ease of understanding, some contents involved in the embodiments of the present application are described below:
[0023] Figure 1 This is a system architecture that can be applied in the embodiments of the present application, such as Figure 1 As shown, the system architecture may include: an Internet of Vehicles 10 , a physical resource pool 20 , and a resource management platform 30 .
[0024] The Internet of Vehicles 10 may include a vehicle 11 and a roadside unit 12. The vehicle 11 may communicate with the roadside unit 12 via a V2I (Vehicle-to-Infrastructure) link.
[0025] The physical resource pool 20 may include multiple types of physical network resources such as computing resources, cache resources, and wireless time and frequency resources.
[0026] The resource management platform 30 can allocate an appropriate amount of physical network resources to each V2I link according to the service status, physical network conditions, QOS requirements, etc. of each V2I link. There is a one-to-one relationship between the vehicle 11 and the V2I link, so allocating network resources to the V2I link means allocating network resources to the vehicle corresponding to the V2I link.
[0027] To achieve a more efficient resource allocation scheme, such as Figure 1 As shown, the resource management platform 30 may include the following parts: a V2I link cache unit, a load analysis module, a network status monitoring module, and a resource scheduling module.
[0028] The V2I link cache unit may configure a downlink data cache queue for each V2I link, such as Figure 1 In V2I1, V2I...V2K, the downlink data cache queue of each V2I link is used to store the downlink service request data of the V2I link, including newly arrived and unsuccessfully processed data. The load analysis module can be used to analyze the load characteristics of each V2I link and predict the load status value of the next scheduling cycle. The network status monitoring module is used to monitor the real-time status of each physical resource. The resource scheduling module can be used to reasonably allocate physical resources according to the predicted load status value of each V2I link.
[0029] The resource allocation method provided in the embodiment of the present application is described in detail below through some embodiments and their application scenarios in combination with the accompanying drawings.
[0030] See also Figure 2 , Figure 2 FIG. 1 is a flow chart of a resource allocation method provided in an embodiment of the present application. Figure 2 As shown, the resource allocation method may include the following steps:
[0031] Step 201: For each V2I link among the N V2I links, a historical load state value of the V2I link in a historical scheduling period is used to predict a first load state value of the V2I link in a first scheduling period, and N first load state values corresponding to the N V2I links are obtained, where N is a positive integer.
[0032] In an embodiment of the present application, each V2I link is configured with a downlink data cache queue for caching the downlink data of the V2I link. The queue length of the downlink data cache queue of a V2I link in a certain scheduling period = the queue length of the downlink data cache queue of the V2I link at the start time of the scheduling period + the amount of new data arriving in the scheduling period - the amount of data successfully transmitted in the scheduling period, in bits. It can be understood that due to the randomness of data arrival, the queue length of the downlink data cache queue of the same V2I link may be different in different scheduling periods. In some embodiments, the scheduling period may also be referred to as a transmission time slot.
[0033] The queue length of the downlink data cache queue of a certain V2I link in a certain scheduling period can represent the load state of the V2I link in the scheduling period. The load state value of a certain V2I link in a certain scheduling period is positively correlated with the queue length of the downlink data cache queue of the V2I link in the scheduling period, that is, the longer the queue length of the downlink data cache queue of the V2I link in the scheduling period, the larger the load state value of the V2I link in the scheduling period, indicating that the load of the V2I link in the scheduling period is larger; the shorter the queue length of the downlink data cache queue of the V2I link in the scheduling period, the smaller the load state value of the V2I link in the scheduling period, indicating that the load of the V2I link in the scheduling period is smaller. In some embodiments, the load state value of a certain V2I link in a certain scheduling period may be equal to the queue length of the downlink data cache queue of the V2I link in the scheduling period. In other embodiments, the load state value of a V2I link in a scheduling period can be obtained by converting the queue length of the downlink data cache queue of the V2I link in the scheduling period, but the embodiments of the present application do not limit the specific conversion relationship. The specific conversion relationship can be set based on actual needs, and the embodiments of the present application do not limit this.
[0034] It is worth noting that the downlink data cache queue of the V2I link is a limited queue. When the network resources allocated to the V2I link are insufficient, that is, the allocated network resources do not meet the data transmission requirements, the downlink data cache queue of the V2I link will overflow, which is likely to cause data loss; when the network resources allocated to the V2I link are excessive, the downlink data cache queue of the V2I link will overflow, which is likely to cause a waste of network resources. Based on this, in the embodiment of the present application, on the one hand, in order to prevent the downlink data cache queue of the V2I link from overflowing and causing data loss, an overflow coefficient β can be set for the downlink data cache queue of the V2I link, and the specific value of the overflow coefficient β can be set based on actual needs, and the embodiment of the present application does not limit this; on the other hand, in order to prevent the downlink data cache queue of the V2I link from underflowing and causing resource waste, an underflow coefficient α can be set for the downlink data cache queue of the V2I link, and the specific value of the underflow coefficient α can be set based on actual needs, and the embodiment of the present application does not limit this. In specific implementation, the overflow coefficient and the underflow coefficient of the downlink data cache queue of different V2I links may be equal or different, and may be set based on actual needs, which is not limited in the embodiments of the present application.
[0035] In an embodiment of the present application, the first scheduling period is a future scheduling period, and the network resources of the V2I link in the first scheduling period can be scheduled based on the predicted first load state value of the V2I link in the first scheduling period. In this way, the resource scheduling of the V2I link will not cause delays, and the reliability of resource scheduling can be improved.
[0036] The first load state value of the V2I link in the first scheduling period can be predicted based on the historical load state value of the V2I link in the historical scheduling period. It can be understood that for the historical scheduling period, the queue length of the downlink data cache queue of each V2I link in these scheduling periods can be obtained, and then the load state value of each V2I link in these scheduling periods can be obtained.
[0037] In a specific implementation, the historical scheduling period in step 201 may include at least one historical scheduling period before the first scheduling period. For each V2I link, the historical load state value of the V2I link in the at least one historical scheduling period may be used to predict the first load state value of the V2I link in the first scheduling period.
[0038] The embodiment of the present application does not limit the prediction method of the load state value of the V2I link. Any method that can use the historical load state value of the historical scheduling period to predict the load state value of the future scheduling period can fall within the protection scope of the embodiment of the present application. In some embodiments, the above prediction can be achieved through a model or through a formula. The specific prediction can be determined according to actual needs, and the embodiment of the present application does not limit this.
[0039] Step 202: Allocate network resources of the N V2I links in the first scheduling period according to the N first load state values and the overflow coefficients and underflow coefficients of the downlink data cache queues of the N V2I links.
[0040] In the embodiment of the present application, the network resource may include at least one of a cache resource and a time-frequency resource. The overflow coefficient may also be referred to as an overflow index, and the underflow coefficient may also be referred to as an underflow index.
[0041] In order to achieve reasonable allocation of network resources in the first scheduling period, in addition to considering the load status of each V2I link in the first scheduling period, the overflow coefficient and underflow coefficient of the downlink data cache queue of the V2I link are also comprehensively considered. In this way, on the one hand, the probability of data loss caused by queue overflow in the V2I link can be reduced, and the QOS of the V2I link can be improved; on the other hand, the probability of network resource waste caused by queue underflow in the V2I link can be reduced, and the utilization rate of network resources can be improved.
[0042] The resource allocation method of this embodiment configures a downlink data cache queue for each V2I link. For each V2I link, the historical load state value of the downlink data cache queue of the V2I link in the historical scheduling period can be used to predict the first load state value of the downlink data cache queue of the V2I link in the first scheduling period, so that N first load state values corresponding to N V2I links can be obtained. Afterwards, network resources in the first scheduling period can be allocated to the N V2I links based on the predicted N first load state values, and the overflow coefficient and underflow coefficient of the downlink data cache queue. It can be seen that in the embodiment of the present application, for each scheduling period, the network resources of each V2I link can be dynamically allocated based on the predicted load state values of the downlink data cache queues of the N V2I links, and the overflow coefficient and underflow coefficient of the downlink data cache queue. In this way, on the one hand, the probability of data loss caused by queue overflow in the V2I link can be reduced, and the QOS of the V2I link can be improved; on the other hand, the probability of network resource waste caused by queue underflow in the V2I link can be reduced, and the utilization rate of network resources can be improved.
[0043] The following is a detailed description of step 202.
[0044] In some embodiments, allocating network resources of the N V2I links in the first scheduling period according to the N first load state values and the overflow coefficients and underflow coefficients of the downlink data cache queues of the N V2I links may include:
[0045] Determine the first overflow threshold values of the N V2I links in the first scheduling period by using the overflow coefficients of the downlink data cache queues of the N V2I links and the second load state values of the N V2I links in the second scheduling period, and obtain N first overflow threshold values corresponding to the N V2I links one by one, wherein the second scheduling period is a previous scheduling period of the first scheduling period;
[0046] Determine first underflow threshold values of the N V2I links in the first scheduling period by using underflow coefficients of the downlink data cache queues of the N V2I links and the second load state value, and obtain N first underflow threshold values corresponding to the N V2I links one by one;
[0047] Allocate network resources of the N V2I links in the first scheduling period according to the N first load state values, the N first overflow threshold values, and the N first underflow threshold values.
[0048] In this embodiment, for each V2I link, on the one hand, the overflow coefficient of the downlink data cache queue of the V2I link and the second load state value of the V2I link in the second scheduling period can be used to determine the first overflow threshold value of the V2I link in the first scheduling period. On the other hand, the underflow coefficient of the downlink data cache queue of the V2I link and the second load state value of the V2I link in the second scheduling period can be used to determine the first underflow threshold value of the V2I link in the first scheduling period.
[0049] It is worth noting that the overflow threshold values of the same V2I link in different scheduling periods may be different. Similarly, the underflow threshold values of the same V2I link in different scheduling periods may be different. The overflow threshold values of different V2I links in the same scheduling period may be different. Similarly, the underflow threshold values of different V2I links in the same scheduling period may be different.
[0050] In some implementations, the overflow threshold value of the vth V2I link in the first scheduling period may be calculated by formula (1):
[0051] T up,v (t+1)=(1+β v )y v (t) (1)
[0052] Among them, y v(t) represents the second load state value of the vth V2I link in the tth scheduling period, β v represents the overflow coefficient of the downlink data buffer queue of the vth V2I link, T up,v (t+1) represents the first overflow threshold value of the vth V2I link in the t+1th scheduling period, and v is an integer greater than or equal to 1 and less than or equal to N. The tth scheduling period is the second scheduling period, and the t+1th scheduling period is the first scheduling period.
[0053] In other implementations, a first corresponding relationship may be pre-stored, in which the overflow coefficient of the downlink data cache queue of each V2I link may be included, and each overflow coefficient may correspond to at least two load state value intervals, and each load state value interval corresponds to an overflow threshold value. In this implementation, the overflow coefficient of the downlink data cache queue of the vth V2I link in the first corresponding relationship may be located first, and then the load state value interval into which the second load state value of the vth V2I link falls may be determined, and then the overflow threshold value corresponding to the load state value interval is determined as the first overflow threshold value of the vth V2I link in the first scheduling period.
[0054] In some implementations, the overflow threshold value of the vth V2I link in the first scheduling period may be calculated by formula (2):
[0055] T down,v (t+1)=(1-α v )y v (t) (2)
[0056] Among them, α v represents the underflow coefficient of the downlink data buffer queue of the vth V2I link, T down,v (t+1) represents the first underflow threshold value of the vth V2I link in the t+1 scheduling period.
[0057] In other implementations, a second corresponding relationship may be pre-stored, in which the overflow coefficient of the downlink data cache queue of each V2I link may be included, and each overflow coefficient may correspond to at least two load state value intervals, and each load state value interval corresponds to an underflow threshold value. In this implementation, the overflow coefficient of the downlink data cache queue of the vth V2I link in the second corresponding relationship may be located first, and then the load state value interval into which the second load state value of the vth V2I link falls may be determined, and then the underflow threshold value corresponding to the load state value interval is determined as the first underflow threshold value of the vth V2I link in the first scheduling period.
[0058] The first overflow threshold value of the vth V2I link in the first scheduling period can be characterized as: the maximum data carrying capacity of the downlink data cache queue of the vth V2I link in the first scheduling period to avoid data loss caused by queue overflow. The first underflow threshold value of the vth V2I link in the first scheduling period can be characterized as: the minimum data carrying capacity of the downlink data cache queue of the vth V2I link in the first scheduling period to avoid resource waste caused by queue underflow.
[0059] Therefore, after obtaining the first overflow threshold value and the first underflow threshold value corresponding to the N V2I links, the network resources of the N V2I links in the first scheduling period can be allocated in combination with the first load state values corresponding to the N V2I links. In this way, the reasonable allocation of network resources of the V2I links in each scheduling period can be further guaranteed, and the utilization rate of network resources can be further improved.
[0060] It should be noted that, in other embodiments, the second scheduling period may also be replaced by other historical scheduling periods of the first scheduling period, which may be set specifically according to actual needs, and the embodiments of the present application are not limited to this.
[0061] In addition, in some embodiments, a third corresponding relationship between the overflow coefficient and the overflow threshold value, and a fourth corresponding relationship between the underflow coefficient and the underflow threshold value may be preset, so that the overflow threshold value and the underflow threshold value corresponding to each V2I link may be directly determined by searching the third corresponding relationship and the fourth corresponding relationship, which may improve the efficiency of determining the overflow threshold value and the underflow threshold value corresponding to each V2I link. In this embodiment, since the overflow threshold value of the V2I link is determined only based on the overflow coefficient of the V2I link, and the underflow threshold value of the V2I link is determined only based on the underflow coefficient of the V2I link, it can be understood that the overflow threshold value and the underflow threshold value of the same V2I link are fixed.
[0062] The allocation of network resources may include but is not limited to at least one of the following: allocation of cache resources; allocation of time-frequency resources. Different forms of resources may have different allocation methods, as described below:
[0063] 1. Allocation of cache resources.
[0064] In some embodiments, allocating network resources of the N V2I links in the first scheduling period according to the N first load state values, the N first overflow threshold values, and the N first underflow threshold values may include at least one of the following:
[0065] When a first load state value corresponding to the first V2I link is greater than or equal to a first overflow threshold value corresponding to the first V2I link, configuring a first cache resource of the first V2I link in the first scheduling period to be: a sum of a second cache resource of the first V2I link in the second scheduling period and a first value, wherein the first value is determined based on a historical amount of retained data of the first V2I link in a historical scheduling period;
[0066] When a first load state value corresponding to the first V2I link is less than a first underflow threshold value corresponding to the first V2I link, configuring a first cache resource of the first V2I link in the first scheduling period to be a difference between a second cache resource of the first V2I link in the second scheduling period and a second value, where the second value is determined based on a historical retained data amount of the first V2I link in a historical scheduling period;
[0067] When the first load state value corresponding to the first V2I link is greater than or equal to the first underflow threshold value corresponding to the first V2I link and less than the first overflow threshold value corresponding to the first V2I link, configuring the first cache resource of the first V2I link in the first scheduling period to be: the first load state value corresponding to the first V2I link;
[0068] The first V2I link is any one of the N V2I links.
[0069] The specific instructions are as follows:
[0070] Case 1: The first load state value corresponding to the first V2I link is greater than or equal to the first overflow threshold value corresponding to the first V2I link, indicating that the queue overflow will occur in the first V2I link. Therefore, cache resources can be increased to avoid the queue overflow of the first V2I link and reduce the probability of data loss in the first V2I link.
[0071] In some embodiments, cache resources may be increased based on cache resources of the first V2I link in the second scheduling period, but not limited to this. In other embodiments, cache resources may be increased based on the predicted first load state value of the first V2I link in the first scheduling period.
[0072] The increased cache resources are referred to as the first value. In some embodiments, the first value may be preset. In other embodiments, the first value may be determined based on the amount of historically retained data of the first V2I link in a historical scheduling cycle. In some examples, the amount of historically retained data of the vth V2I link in a historical scheduling cycle may be calculated by formula (3):
[0073]
[0074] Among them, E[C v A (t)] represents the sum of the historical retention data of the vth V2I link in the N historical scheduling cycles before the t+1th scheduling cycle, where N is a positive integer; v (t) represents the amount of newly arrived data on the vth V2I link in the tth scheduling period; R v (t) represents the amount of data successfully transmitted by the vth V2I link in the tth scheduling period. The vth V2I link is the first V2I link.
[0075] In some embodiments, E[C v (t)] is determined as the first value. In other embodiments, E[C v The product of the trade-off coefficient k is taken as the first value. In this implementation, the first cache resource of the vth V2I link in the first scheduling period can be calculated by formula (4):
[0076] B v (t+1)=B v (t)+E[C v (t)]·k (4)
[0077] Among them, B v (t+1) represents the first cache resource of the vth V2I link in the t+1 scheduling period; B v (t) represents the second cache resource of the vth V2I link in the t scheduling period.
[0078] Case 2: The first load state value corresponding to the first V2I link is less than the first underflow threshold value corresponding to the first V2I link, indicating that queue underflow will occur in the first V2I link. Therefore, cache resources can be reduced to avoid queue underflow in the first V2I link, thereby reducing the probability of wasting cache resources in the first V2I link.
[0079] In some embodiments, cache resources may be reduced based on cache resources of the first V2I link in the second scheduling period, but not limited to this. In other embodiments, cache resources may be reduced based on the predicted first load state value of the first V2I link in the first scheduling period.
[0080] The reduced cache resources are referred to as the second value. In some embodiments, the second value may be preset. In other embodiments, the second value may be determined based on the amount of historically retained data of the first V2I link in a historical scheduling cycle. The second value may be equal to or different from the first value, which may be determined based on actual needs, and the embodiments of the present application do not limit this.
[0081] In some embodiments, E[C v (t)] is determined as the second value. In other embodiments, E[C v The product of the trade-off coefficient k is taken as the second value. In this implementation, the first cache resource of the vth V2I link in the first scheduling period can be calculated by formula (5):
[0082] B v (t+1)=B v (t)-E[C v (t)]·k (5)
[0083] Case 3: The first load state value corresponding to the first V2I link is greater than or equal to the first underflow threshold value corresponding to the first V2I link, and less than the first overflow threshold value corresponding to the first V2I link, indicating that queue underflow and queue overflow will not occur temporarily in the first V2I link. In some embodiments, B v (t+1)=B v (t). In some other embodiments, B v (t+1)=y v (t+1).
[0084] Through the above method, for each V2I link, the cache resources of the V2I link in the first scheduling period can be configured based on the comparison result between the first load state value corresponding to the V2I link and the first underflow threshold value and the first overflow threshold value corresponding to the V2I link. In this way, the reasonable allocation of cache resources of each V2I link in the first scheduling period can be achieved, and the utilization rate of network resources can be improved on the basis of ensuring QOS.
[0085] 2. Allocation of time and frequency resources.
[0086] In some embodiments, allocating network resources of the N V2I links in the first scheduling period according to the N first load state values, the N first overflow threshold values, and the N first underflow threshold values includes:
[0087] Generate a first priority and a first set, a second set of second priorities, and a third set of third priorities, wherein the first set includes V2I links whose first load state values are greater than or equal to a first overflow threshold value among the N V2I links, the second set includes V2I links whose first load state values are less than a first underflow threshold value among the N V2I links, and the third set includes the remaining V2I links among the N V2I links except the first set and the second set; the first priority is higher than the second priority, and the second priority is higher than the third priority;
[0088] The time-frequency resources of the V2I links in the first scheduling period in the first set, the second set and the third set are allocated in sequence in order from high to low priority.
[0089] In this embodiment, for each V2I link, a comparison result between a first load state value corresponding to the V2I link and a first underflow threshold value and a first overflow threshold value corresponding to the V2I link may be obtained first, and then, based on the comparison result of each V2I link, the N V2I links are divided into sets.
[0090] In a specific implementation, the V2I links whose first load state value is greater than or equal to the corresponding first overflow threshold value may be divided into the first set φ 1 ; The V2I links whose first load state value is less than the corresponding first underflow threshold value are divided into the second set φ 2 ; Divide the remaining other V2I links into the third set φ 3 .
[0091] Afterwards, the priority of each set may be determined so as to allocate time-frequency resources to the V2I links in each set in descending order of priority.
[0092] Since the traffic volume of the V2I links in the first set will be relatively high in the future, the buffer pressure will be relatively high, and the possibility of queue overflow will be greater, the data transmission of the V2I links in the first set can be prioritized, and the priority of the first set can be set to the highest priority. Since the traffic volume of the V2I links in the second set will be relatively low in the future, the buffer pressure will be relatively low, and the priority of the second set can be set to the lowest priority. Therefore, in this embodiment, the first priority of the first set is set greater than the second priority of the second set, and the second priority of the second set is set greater than the third priority of the third set, so that the data transmission reliability can be improved and the QOS can be improved.
[0093] The following describes the allocation of time-frequency resources for each V2I link in each set within the first scheduling period.
[0094] In some implementations, allocating the time-frequency resources of the V2I links in the first set, the second set, and the third set in the first scheduling period in order of priority from high to low includes:
[0095] Step 1: Obtain an absolute value of a difference between a first load state value and a target value corresponding to each V2I link in a target set, obtain at least one absolute value, and determine a V2I link corresponding to a maximum value among the at least one absolute value as a target V2I link in the target set; wherein, when the target set is the first set, the target value is a first overflow threshold; when the target set is the second set, the target value is a first underflow threshold; when the target set is the third set, the target value is a second load state value;
[0096] Step 2: Obtain the instantaneous transmission rate of each time-frequency resource block in the resource block set corresponding to the first scheduling period of the target V2I link, obtain at least one instantaneous transmission rate, and determine the time-frequency resource block corresponding to the maximum value of the at least one instantaneous transmission rate as the target time-frequency resource block;
[0097] Step 3: Allocate the target time-frequency resource block to the target V2I link, delete the target time-frequency resource block from the resource block set, and obtain the amount of newly arrived data of the target V2I link in the second scheduling period, and compare it with the estimated amount of data transmission in the second scheduling period when the target V2I link transmits data through all the allocated time-frequency resource blocks, the estimated amount of data transmission being the sum of the products of the instantaneous transmission rates of the target V2I link in each allocated time-frequency resource block and the second scheduling period; if the comparison result is that the amount of newly arrived data is greater than the estimated amount of data transmission, return to execute step 2 until the amount of newly arrived data is less than or equal to the estimated amount of data transmission; if the comparison result is that the amount of newly arrived data is less than or equal to the estimated amount of data transmission, execute step 4;
[0098] Step 4: Delete the target V2I link from the target set, and return to execute step 1 until the allocation of time-frequency resources of all V2I links in the target set in the first scheduling period is completed.
[0099] In this implementation, the target set is any one of the first set, the second set and the third set. For any one of the first set, the second set and the third set, except for the different determination method of the target V2I link in step 1, the execution of other steps is the same.
[0100] In step 1, when the target set is the first set, the target V2I link satisfies: argmax{y v (t+1)-(1+β)y v (t)}, that is, the target V2I link is y in the first set v (t+1)-(1+β)yv The V2I link corresponding to the maximum value of (t). When the target set is the second set, the target V2I link satisfies: argmax{(1-α)y v (t)-y v (t+1)}, that is, the target V2I link is (1-α)y in the first set v (t)-y v The V2I link corresponding to the maximum value of (t+1). When the target set is the second set, the target V2I link satisfies: argmax{y v (t+1)-B v (t)}, that is, the target V2I link is y in the third set v (t+1)-B v The V2I link corresponding to the maximum value of (t).
[0101] In this implementation, the target V2I link in the first set can be determined through step 1, and time-frequency resources can be allocated to the target V2I link. The time-frequency resource allocation of the V2I link is based on avoiding queue overflow, so that the time-frequency resources allocated to each V2I link in the first scheduling period can meet the transmission requirements of each V2I link in the first scheduling period.
[0102] In the specific implementation, the target time-frequency resource block can be first selected from the resource block set through step 2, and the target time-frequency resource block satisfies argmax{r n,v}, that is, the target time-frequency resource block is r in the resource block set n,v The time-frequency resource block corresponding to the maximum value of r n,v is the instantaneous transmission rate of the vth V2I link on the nth time-frequency resource block obtained by the Shannon formula. It is worth noting that the vth V2I link at this time is the target V2I link.
[0103] After obtaining the target time-frequency resource block, the target time-frequency resource block can be first allocated to the target V2I link, and the target time-frequency resource block can be deleted from the resource block set to avoid repeated allocation of the same time-frequency resource block. Since the time-frequency resource allocation of the V2I link is based on avoiding queue overflow, further judgment A v (t)>R' v (t) is true, where A v (t) represents the amount of new arriving data on the target V2I link in the second scheduling period; R' v (t) represents the estimated amount of data transmission in the second scheduling period when the target V2I link transmits data through all allocated time-frequency resource blocks, specifically, the sum of the products of the instantaneous transmission rate of the target V2I link in each allocated time-frequency resource block and the second scheduling period.
[0104] In A v (t)>R' v If (t) is established, it means that the time-frequency resource blocks allocated to the target V2I link do not meet the data transmission requirements of the target V2I link, and the queue of the target V2I link will overflow. You can return to step 2 and continue to allocate time-frequency resource blocks to the target V2I link until A v (t)>R' v (t) is not true. It is worth noting that the time-frequency resource blocks in the resource block set in step 2 executed at different times are different, and the resource block set in step 2 only includes the time-frequency resource blocks that are not currently allocated.
[0105] In A v (t)>R' v If (t) is not true, it means that the time-frequency resource block allocated to the target V2I link meets the data transmission requirements of the target V2I link, and the queue of the target V2I link will not overflow. The allocation of time-frequency resources to the target V2I link can be ended, and step 4 is executed to delete the target V2I link from the target set. The target V2I link can continue to be allocated time-frequency resources for other V2I links in the target set by returning to step 1 until the allocation of time-frequency resources for all V2I links in the target set is completed. It is worth noting that the V2I links in the target set in different executions of step 1 are different, and the target set in step 1 only includes the V2I links that are currently not allocated in the set.
[0106] Through the above method, the time and frequency resources of the V2I links in each set can be allocated in order from high to low priority of the set, and the time and frequency resources of each V2I link can be allocated on the premise of avoiding queue overflow. In this way, the utilization rate of time and frequency resources can be improved on the basis of ensuring the data transmission requirements of each V2I link.
[0107] In other implementations, for each set, time-frequency resources may be allocated to each V2I link in sequence according to the predicted first load state value of each V2I link in the first scheduling period from high to low, with the premise of avoiding queue overflow.
[0108] In other embodiments, after predicting the first load state values of the N V2I links in the first scheduling period, the V2I links may not be divided into sets, and the N V2I links may be directly allocated time-frequency resources in the first scheduling period in order from high to low in order of the first load state values, based on the premise of avoiding queue overflow. In this way, the allocation of time-frequency resources for the V2I links with a larger amount of data in the downlink data cache queue can be prioritized, thereby improving QOS.
[0109] The following describes the prediction of the load status value of the V2I link.
[0110] In some embodiments, for each V2I link in the N V2I links, using the historical load state value of the V2I link in the historical scheduling period, predicting the first load state value of the V2I link in the first scheduling period, and obtaining N first load state values corresponding to the N V2I links one by one, where N is a positive integer, further includes:
[0111] For each of the N V2I links, using the historical load state value of the V2I link in the historical scheduling period, the autoregressive coefficient, the moving average coefficient, the autoregressive order and the moving average order in the ARMA model are trained to obtain N ARMA models corresponding to the N V2I links one by one;
[0112] For each of the N V2I links, using the historical load state value of the V2I link in the historical scheduling period, predicting the first load state value of the V2I link in the first scheduling period, and obtaining N first load state values corresponding to the N V2I links one by one, where N is a positive integer, including:
[0113] For each V2I link among the N V2I links, a historical load state value of the V2I link in a historical scheduling period is input into an ARMA model corresponding to the V2I link, and a first load state value of the V2I link in a first scheduling period is predicted by the ARMA model corresponding to the V2I link.
[0114] In this embodiment, an autoregressive moving average model (ARMA model for short) is configured for each V2I link. The ARMA model corresponding to each V2I link is obtained by training the load state value of the V2I link in the first historical scheduling period. After that, the load state value of the V2I link in the second historical scheduling period can be input into the ARMA model corresponding to the V2I link to predict the load state value of the V2I link in the future scheduling period. It is worth noting that the first historical scheduling period and the second historical scheduling period can be the same or different, and can be set according to actual needs, and the embodiment of the present application is not limited to this.
[0115] The following is an explanation of the training of the ARMA model:
[0116] Step 1: For each V2I link, its historical queuing data, that is, the historical load state value, can be logarithmically processed to reduce data fluctuations and obtain a stable data sequence.
[0117] Step 2: The autoregressive coefficient of the ARMA forecasting model can be obtained by using the Yule-Walker equation extended by formula (6):
[0118]
[0119] Among them, γ v is the autocovariance of the vth V2I link, which can be expressed as y′ v (i) is the load state value of the vth V2I link after logarithmic processing, and I represents the number of historical scheduling cycles.
[0120] Step 3: Based on the ARMA forecast model obtained in step 2 Estimated moving average coefficient {θ i ,i=1,...,q}, the specific method is:
[0121] Satisfying the MA (Moving Average) model, we can approximate Considered as the observed data of MA(q), it is expressed as formula (7):
[0122]
[0123] Similarly, the corresponding autocovariance function can be obtained based on the approximate observed data:
[0124]
[0125] Using the calculation results of the autocovariance function and combining it with the inverse correlation function of the MA model, we can obtain {θ i ,i=1,...,q} and white noise variance.
[0126] Step 4: Determine the order of the ARMA model corresponding to each V2I link. Since the prediction performance of the model under different ARMA order combinations is different, in order to optimally realize the prediction function of future loads, the AIC criterion can be used to determine the order of the ARMA model. Using the white noise variance obtained in step 3, and based on the historical scheduling cycle of the current link, within a certain range of variation, calculate the values under different p and q order combinations. When the AIC function value is minimized, the corresponding order is the order of the model.
[0127] Step 5: The cache state is predicted according to the parameters and order of the ARMA prediction model determined in steps 1 to 4. The cache queue state of each V2I link in the next scheduling cycle, that is, the load state value can be expressed as:
[0128]
[0129] In this training method, multiple groups (p, q) can be set in advance. For each group (p, q), φ, θ and white noise variance can be obtained through steps 1 to 4, and input into the AIC function to obtain an AIC function value. Then, (p, q), φ, and θ corresponding to the minimum AIC function value are used as the parameters and order of the prediction model. In this way, the prediction reliability of the ARMA model can be improved.
[0130] It should be noted that the various optional implementation modes introduced in the embodiments of the present application can be implemented in combination with each other or separately if they do not conflict with each other, and the embodiments of the present application are not limited to this.
[0131] For ease of understanding, the following examples are provided:
[0132] The specific steps of resource allocation include:
[0133] Step S1: Construct a queuing model for each V2I link. Each V2I link is configured with a downlink data cache queue, and the newly arrived tasks in each V2I link in each transmission time slot follow the Poisson distribution. Therefore, the queue length of each link at the beginning of the next transmission time slot = the queue length at the beginning of the current time slot + the amount of newly arrived data in this time slot - the amount of data successfully transmitted in this time slot.
[0134] Step S2: Based on the observed data of the downlink data cache queue of each V2I link in the historical scheduling cycle, the load analysis module determines the parameters and order of the ARMA prediction model, and uses the prediction model to predict the load status of each V2I link in the next scheduling cycle in each scheduling cycle.
[0135] Step S3: Based on the predicted load status of each V2I link, the resource scheduling module allocates an appropriate amount of cache resources to each V2I link.
[0136] Step S4: Prioritize each V2I link according to the predicted load status of each V2I link, and the resource scheduling module allocates an appropriate amount of time-frequency resource blocks to each V2I link according to the determined sorting rules.
[0137] Specifically, the cache resource scheduling scheme in step S3 can be designed as follows:
[0138] α and β represent the underflow index and overflow index respectively. If the cache state y of the V2I link in the next scheduling period is predicted v (t+1)≥(1+β)y v (t), it can be considered that the queue of the link is about to overflow, so the cache resources can be increased to avoid data loss. The cache resources of the link in the next scheduling cycle can be configured as follows:
[0139] B v(t+1)=B v (t)+E[C v (t)]·k
[0140]
[0141] Among them, A v (t) is the amount of newly arrived data in the scheduling period, R v (t) is the amount of data successfully transmitted during the scheduling period, and k is the weighting coefficient.
[0142] If the cache state y of the V2I link in the next scheduling period v (t+1)<(1-α)y v (t), it can be considered that the configured cache resources are excessive. In order to avoid resource waste, it can be adjusted to:
[0143] B v (t+1)=B v (t)-E[C v (t)]·k
[0144] Specifically, the method for scheduling time-frequency resources in step S4 may be:
[0145] Step S41: Prioritize each V2I link according to the load status of each V2I link predicted in step S2. v (t+1)≥(1+β)y v (t) is more likely to overflow, so this type of link has a higher priority. The V2I links that meet the conditions are constructed into a set φ 1 ; for y v (t+1)<(1-α)y v We believe that the traffic volume of the link (t) will be relatively low in the future, and the cache pressure will be small. Therefore, this type of link has the lowest priority. The V2I link set φ that meets the conditions is constructed 2 ; Construct the remaining links into a set φ 3 .
[0146] Step S42: In the set φ 1 Select the link that satisfies argmax{y v (t+1)-(1+β)y v (t)}.
[0147] Step S43: Select a time-frequency resource block that satisfies argmax{r n,v}, where r n,v To obtain the instantaneous transmission rate of the V2I link v on the time-frequency resource block n obtained by the Shannon formula.
[0148] Step S44: If A v (t)>R' v (t), indicating that allocating the resource block to the link cannot meet the bit transmission requirement in the cache, and the resource block is allocated to the link v and removed from the resource block set, and the next resource block is selected to meet step S43 until A is met. v (t)≤R v (t), execute step S45.
[0149] Step S45: Remove the V2I link v from the set φ 1 Remove it from the set, select the next link and repeat steps S42-S44 until the set φ 1 All links in the network have been allocated an appropriate amount of resource blocks.
[0150] Step S46: In the set φ 3 Select the link that satisfies argmax{y v (t+1)-B v (t)}, repeat steps S43-S44 to allocate an appropriate amount of time-frequency resource blocks to link v.
[0151] Step S47: Remove the V2I link v from the set φ 3 Remove from the set φ and repeat the above steps until the set φ 3 All links in the network have been allocated an appropriate amount of resource blocks.
[0152] Step S48: For the set φ 2 The link in the set has the lowest priority. If there are still resource blocks left, the link is selected from the set to satisfy argmax{(1-α)y v (t)-y v (t+1)}, and repeat steps S43-S44.
[0153] Step S49: Remove the V2I link v from the set φ 2 Remove it from the resource block set, and repeat the above steps until the resource block set is empty.
[0154] In this example, historical observation data can be used to establish an independent ARMA prediction model for each V2I link, and the cache status of the future cycle can be predicted based on the ARMA model. Based on the prediction results, reasonable cache resources are allocated to each V2I link. The V2I links in the system are prioritized according to the ARMA prediction results, and time-frequency resources are dynamically scheduled to avoid queue overflow.
[0155] This scenario embodiment can configure a downlink data cache queue for each V2I link, and dynamically allocate cache resources and time-frequency resource blocks in each transmission time slot based on the real-time link channel conditions and the predicted cache status, thereby improving network resource utilization. Considering that each V2I link may have different load characteristics, an independent ARMA prediction model will be constructed for each link based on its historical data, and the Yule-Walker equation and AIC criterion will be used to determine the prediction model parameters and order for each link to improve the accuracy of the prediction results. Based on the predicted cache status of each V2I link, cache resources are dynamically allocated to avoid wasting cache resources; at the same time, the V2I links in the system are prioritized, and a dynamic scheduling scheme for time-frequency resource blocks is obtained based on the determined sorting rules to avoid queue overflow, which can reduce packet loss rate and improve QOS requirements.
[0156] Based on the resource allocation method provided in the above embodiment, the present application also provides a specific implementation of the resource allocation device. Please refer to the following embodiment.
[0157] See also Figure 3 , the resource allocation device provided in the embodiment of the present application may include:
[0158] A prediction module 301 is used to predict, for each V2I link in the N V2I links, a first load state value of the V2I link in a first scheduling period by using a historical load state value of the V2I link in a historical scheduling period, and obtain N first load state values corresponding to the N V2I links one by one, where N is a positive integer;
[0159] The allocation module 302 is used to allocate network resources of the N V2I links in the first scheduling period according to the N first load state values and the overflow coefficients and underflow coefficients of the downlink data cache queues of the N V2I links.
[0160] In some embodiments, the allocation module 302 includes:
[0161] A first determination submodule is used to determine the first overflow threshold values of the N V2I links in the first scheduling period by using the overflow coefficients of the downlink data cache queues of the N V2I links and the second load state values of the N V2I links in the second scheduling period, and obtain N first overflow threshold values corresponding to the N V2I links one by one, wherein the second scheduling period is a previous scheduling period of the first scheduling period;
[0162] A second determination submodule is used to determine the first underflow threshold values of the N V2I links in the first scheduling period by using the underflow coefficients of the downlink data cache queues of the N V2I links and the second load state value, and obtain N first underflow threshold values corresponding to the N V2I links one by one;
[0163] An allocation submodule is used to allocate network resources of the N V2I links in the first scheduling period according to the N first load state values, the N first overflow threshold values and the N first underflow threshold values.
[0164] In some embodiments, the allocation submodule is specifically used for at least one of the following:
[0165] When a first load state value corresponding to the first V2I link is greater than or equal to a first overflow threshold value corresponding to the first V2I link, configuring a first cache resource of the first V2I link in the first scheduling period to be: a sum of a second cache resource of the first V2I link in the second scheduling period and a first value, wherein the first value is determined based on a historical amount of retained data of the first V2I link in a historical scheduling period;
[0166] When a first load state value corresponding to the first V2I link is less than a first underflow threshold value corresponding to the first V2I link, configuring a first cache resource of the first V2I link in the first scheduling period to be a difference between a second cache resource of the first V2I link in the second scheduling period and a second value, where the second value is determined based on a historical retained data amount of the first V2I link in a historical scheduling period;
[0167] When the first load state value corresponding to the first V2I link is greater than or equal to the first underflow threshold value corresponding to the first V2I link and less than the first overflow threshold value corresponding to the first V2I link, configuring the first cache resource of the first V2I link in the first scheduling period to be: the first load state value corresponding to the first V2I link;
[0168] The first V2I link is any one of the N V2I links.
[0169] In some embodiments, the allocation submodule includes:
[0170] A generating unit, configured to generate a first priority and a first set, a second set of a second priority, and a third set of a third priority, wherein the first set includes V2I links whose first load state values are greater than or equal to a first overflow threshold value among the N V2I links, the second set includes V2I links whose first load state values are less than a first underflow threshold value among the N V2I links, and the third set includes the remaining V2I links among the N V2I links except the first set and the second set; the first priority is higher than the second priority, and the second priority is higher than the third priority;
[0171] An allocation unit is used to allocate the time-frequency resources of the V2I links in the first set, the second set and the third set in the first scheduling period in order from high to low priority.
[0172] In some embodiments, the generating unit is specifically configured to execute:
[0173] Step 1: Obtain an absolute value of a difference between a first load state value and a target value corresponding to each V2I link in a target set, obtain at least one absolute value, and determine a V2I link corresponding to a maximum value among the at least one absolute value as a target V2I link in the target set; wherein, when the target set is the first set, the target value is a first overflow threshold; when the target set is the second set, the target value is a first underflow threshold; when the target set is the third set, the target value is a second load state value;
[0174] Step 2: Obtain the instantaneous transmission rate of each time-frequency resource block in the resource block set corresponding to the first scheduling period of the target V2I link, obtain at least one instantaneous transmission rate, and determine the time-frequency resource block corresponding to the maximum value of the at least one instantaneous transmission rate as the target time-frequency resource block;
[0175] Step 3: Allocate the target time-frequency resource block to the target V2I link, delete the target time-frequency resource block from the resource block set, and obtain the amount of newly arrived data of the target V2I link in the second scheduling period, and compare it with the estimated amount of data transmission in the second scheduling period when the target V2I link transmits data through all the allocated time-frequency resource blocks, the estimated amount of data transmission being the sum of the products of the instantaneous transmission rates of the target V2I link in each allocated time-frequency resource block and the second scheduling period; if the comparison result is that the amount of newly arrived data is greater than the estimated amount of data transmission, return to execute step 2 until the amount of newly arrived data is less than or equal to the estimated amount of data transmission; if the comparison result is that the amount of newly arrived data is less than or equal to the estimated amount of data transmission, execute step 4;
[0176] Step 4: Delete the target V2I link from the target set, and return to execute step 1 until the allocation of time-frequency resources of all V2I links in the target set in the first scheduling period is completed.
[0177] In some embodiments, the apparatus further comprises:
[0178] An acquisition module is used to train the autoregressive coefficient, moving average coefficient, autoregressive order and moving average order in the ARMA model for each V2I link in the N V2I links by using the historical load state value of the V2I link in the historical scheduling period, so as to obtain N ARMA models corresponding to the N V2I links one by one;
[0179] The prediction module is specifically used for:
[0180] For each V2I link among the N V2I links, a historical load state value of the V2I link in a historical scheduling period is input into an ARMA model corresponding to the V2I link, and a first load state value of the V2I link in a first scheduling period is predicted by the ARMA model corresponding to the V2I link.
[0181] The resource allocation device provided in the embodiment of the present application can implement each process implemented by the resource allocation device in the method embodiment, and will not be described again here to avoid repetition.
[0182] Figure 4 A schematic diagram of the hardware structure of resource allocation provided in an embodiment of the present application is shown.
[0183] The resource allocation device may include a processor 401 and a memory 402 storing computer program instructions.
[0184] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0185] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside of an integrated gateway disaster recovery device. In a specific embodiment, memory 402 is a non-volatile solid-state memory.
[0186] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.
[0187] The processor 401 implements any one of the resource allocation methods in the above embodiments by reading and executing computer program instructions stored in the memory 402 .
[0188] In one example, the resource allocation device may further include a communication interface 404 and a bus 410. Figure 4 As shown, the processor 401, the memory 402, and the communication interface 404 are connected via a bus 410 and communicate with each other.
[0189] The communication interface 404 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0190] Bus 410 includes hardware, software or both, and the parts of resource allocation equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 410 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0191] In addition, in combination with the resource allocation method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the resource allocation methods in the above embodiment is implemented.
[0192] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0193] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0194] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0195] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0196] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A resource allocation method, characterized in that: include: For each V2I link in the N V2I links, using a historical load state value of the V2I link in a historical scheduling period, predict a first load state value of the V2I link in a first scheduling period, and obtain N first load state values corresponding to the N V2I links one by one, where N is a positive integer; According to the N first load state values, and the overflow coefficients and underflow coefficients of the downlink data cache queues of the N V2I links, network resources of the N V2I links in the first scheduling period are allocated.
2. The method according to claim 1, characterized in that The allocating network resources of the N V2I links in the first scheduling period according to the N first load state values and the overflow coefficients and underflow coefficients of the downlink data cache queues of the N V2I links includes: Determine the first overflow threshold values of the N V2I links in the first scheduling period by using the overflow coefficients of the downlink data cache queues of the N V2I links and the second load state values of the N V2I links in the second scheduling period, and obtain N first overflow threshold values corresponding to the N V2I links one by one, wherein the second scheduling period is a previous scheduling period of the first scheduling period; Determine first underflow threshold values of the N V2I links in the first scheduling period by using underflow coefficients of the downlink data cache queues of the N V2I links and the second load state value, and obtain N first underflow threshold values corresponding to the N V2I links one by one; Allocate network resources of the N V2I links in the first scheduling period according to the N first load state values, the N first overflow threshold values, and the N first underflow threshold values.
3. The method according to claim 2, characterized in that In a case where the network resources include cache resources, allocating network resources of the N V2I links in the first scheduling period according to the N first load state values, the N first overflow threshold values, and the N first underflow threshold values includes at least one of the following: When a first load state value corresponding to the first V2I link is greater than or equal to a first overflow threshold value corresponding to the first V2I link, configuring a first cache resource of the first V2I link in the first scheduling period to be: a sum of a second cache resource of the first V2I link in the second scheduling period and a first value, wherein the first value is determined based on a historical amount of retained data of the first V2I link in a historical scheduling period; When a first load state value corresponding to the first V2I link is less than a first underflow threshold value corresponding to the first V2I link, configuring a first cache resource of the first V2I link in the first scheduling period to be a difference between a second cache resource of the first V2I link in the second scheduling period and a second value, where the second value is determined based on a historical retained data amount of the first V2I link in a historical scheduling period; When the first load state value corresponding to the first V2I link is greater than or equal to the first underflow threshold value corresponding to the first V2I link and less than the first overflow threshold value corresponding to the first V2I link, configuring the first cache resource of the first V2I link in the first scheduling period to be: the first load state value corresponding to the first V2I link; The first V2I link is any one of the N V2I links.
4. The method according to claim 2, characterized in that: In a case where the network resources include time-frequency resources, allocating network resources of the N V2I links in the first scheduling period according to the N first load state values, the N first overflow threshold values, and the N first underflow threshold values includes: Generate a first priority and a first set, a second set of second priorities, and a third set of third priorities, wherein the first set includes V2I links whose first load state values are greater than or equal to a first overflow threshold value among the N V2I links, the second set includes V2I links whose first load state values are less than a first underflow threshold value among the N V2I links, and the third set includes the remaining V2I links among the N V2I links except the first set and the second set; the first priority is higher than the second priority, and the second priority is higher than the third priority; The time-frequency resources of the V2I links in the first scheduling period in the first set, the second set and the third set are allocated in sequence in order from high to low priority.
5. The method according to claim 4, characterized in that The allocating, in descending order of priority, the time-frequency resources of the V2I links in the first set, the second set, and the third set in the first scheduling period includes: Step 1: Obtain an absolute value of a difference between a first load state value and a target value corresponding to each V2I link in a target set, obtain at least one absolute value, and determine a V2I link corresponding to a maximum value among the at least one absolute value as a target V2I link in the target set; wherein, when the target set is the first set, the target value is a first overflow threshold; when the target set is the second set, the target value is a first underflow threshold; when the target set is the third set, the target value is a second load state value; Step 2: Obtain the instantaneous transmission rate of each time-frequency resource block in the resource block set corresponding to the first scheduling period of the target V2I link, obtain at least one instantaneous transmission rate, and determine the time-frequency resource block corresponding to the maximum value of the at least one instantaneous transmission rate as the target time-frequency resource block; Step 3: Allocate the target time-frequency resource block to the target V2I link, delete the target time-frequency resource block from the resource block set, and obtain the amount of newly arrived data of the target V2I link in the second scheduling period, and compare it with the estimated amount of data transmission in the second scheduling period when the target V2I link transmits data through all the allocated time-frequency resource blocks, the estimated amount of data transmission being the sum of the products of the instantaneous transmission rates of the target V2I link in each allocated time-frequency resource block and the second scheduling period; if the comparison result is that the amount of newly arrived data is greater than the estimated amount of data transmission, return to execute step 2 until the amount of newly arrived data is less than or equal to the estimated amount of data transmission; if the comparison result is that the amount of newly arrived data is less than or equal to the estimated amount of data transmission, execute step 4; Step 4: Delete the target V2I link from the target set, and return to execute step 1 until the allocation of time-frequency resources of all V2I links in the target set in the first scheduling period is completed.
6. The method according to claim 1, characterized in that The method further comprises: for each V2I link in the N V2I links, using the historical load state value of the V2I link in the historical scheduling period to predict the first load state value of the V2I link in the first scheduling period, and obtaining N first load state values corresponding to the N V2I links one by one, where N is a positive integer: For each of the N V2I links, using the historical load state value of the V2I link in the historical scheduling period, the autoregressive coefficient, the moving average coefficient, the autoregressive order and the moving average order in the ARMA model are trained to obtain N ARMA models corresponding to the N V2I links one by one; For each of the N V2I links, using the historical load state value of the V2I link in the historical scheduling period, predicting the first load state value of the V2I link in the first scheduling period, and obtaining N first load state values corresponding to the N V2I links one by one, where N is a positive integer, including: For each V2I link among the N V2I links, a historical load state value of the V2I link in a historical scheduling period is input into an ARMA model corresponding to the V2I link, and a first load state value of the V2I link in a first scheduling period is predicted by the ARMA model corresponding to the V2I link.
7. A resource allocation device, characterized in that: include: A prediction module, configured to predict, for each V2I link in the N V2I links, a first load state value of the V2I link in a first scheduling period by using a historical load state value of the V2I link in a historical scheduling period, and obtain N first load state values corresponding to the N V2I links one by one, where N is a positive integer; An allocation module is used to allocate network resources of the N V2I links in the first scheduling period according to the N first load state values and the overflow coefficients and underflow coefficients of the downlink data cache queues of the N V2I links.
8. A resource allocation device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the resource allocation method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the resource allocation method according to any one of claims 1 to 6 is implemented.
10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes the resource allocation method according to any one of claims 1 to 6.
