Internet of Vehicles wireless resource allocation method, apparatus and device, and storage medium
Through coding and genetic algorithms, the problem of inefficient allocation of wireless resources in the Internet of Vehicles is solved, and the rapid adjustment of the high-speed movement characteristics of vehicles and optimal allocation of resources is achieved, and allocation efficiency and traffic safety are improved.
Patent Information
- Application Number
- CN202411034392.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-08
AI Technical Summary
When faced with different task types and more intelligent transportation equipment, the existing wireless resource allocation methods of Internet of Vehicles cannot be adaptively adjusted quickly, resulting in inefficient resource allocation.
By obtaining the historical channel resources of users, secure vehicles and non-safe vehicles, the parent chromosomes are obtained, and the preset genetic algorithm is optimized to obtain the target chromosome with the largest wireless resource throughput, and then the wireless resources are allocated.
It realizes rapid adjustment and optimal allocation strategy of wireless resources, improves the allocation efficiency of wireless resources, adapts to the high-speed movement characteristics of vehicles, ensures that the information transmission rate meets vehicle needs, and reduces traffic safety accidents.
Smart Images

Figure CN118921760A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication network technology, and in particular to a method, device, equipment and storage medium for allocating wireless resources for Internet of Vehicles. Background Art
[0002] The Internet of Vehicles, or vehicle communication network, connects vehicles with everything through wireless communication technology and is a key technology in promoting the development of modern intelligent transportation systems.
[0003] The allocation of wireless resources in the Internet of Vehicles usually involves dynamically allocating wireless resources according to the communication needs of different vehicles, or using cooperative communication technology to utilize effective resources through collaboration between vehicles, mainly based on heuristic methods or rule-based methods to set power and channel allocation. However, when faced with different task types and more intelligent transportation equipment, it is impossible to make rapid adaptive adjustments, resulting in inefficient allocation of wireless resources.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a method for allocating wireless resources in a vehicle network, aiming to solve the technical problem that rapid adaptive adjustment cannot be performed when facing different task types and more intelligent traffic equipment, resulting in low efficiency in allocating wireless resources.
[0006] To achieve the above objectives, the present application proposes a method for allocating wireless resources for an Internet of Vehicles, the method comprising:
[0007] Acquire a parent chromosome of wireless resources obtained by encoding a first channel resource allocated to a user history, a second channel resource allocated to a safety car history, and a third channel resource allocated to a non-safety car history;
[0008] Optimizing the parent chromosome based on a preset genetic algorithm to obtain a target chromosome representing the maximum throughput of the wireless resource;
[0009] Radio resources are allocated based on the channel resource allocation scheme of the user, the safety car, and the non-safety car represented by the target chromosome.
[0010] In one embodiment, the step of optimizing the parent chromosome based on a preset genetic algorithm to obtain a target chromosome representing the maximum throughput of the wireless resource includes:
[0011] Determine the fitness of the wireless resource throughput of the parent chromosome based on a preset genetic algorithm, and obtain a reference throughput of the wireless resources corresponding to the parent chromosome;
[0012] Determining whether the number of inheritance of the parent chromosome satisfies the termination condition of the preset genetic algorithm;
[0013] If it is determined that the termination condition is not satisfied, selecting a genetic chromosome from the parent chromosome based on the reference throughput;
[0014] The inherited chromosome is genetically processed to obtain an offspring chromosome, and the offspring chromosome is used to update the parent chromosome to determine the fitness of the wireless resource throughput, until the number of inheritances meets the termination condition, and a target chromosome representing the maximum wireless resource throughput is obtained.
[0015] In one embodiment, the step of selecting a genetic chromosome from the parent chromosome based on the reference throughput further includes:
[0016] Determining the selection probability of each of the parent chromosomes based on the reference throughput of each of the parent chromosomes;
[0017] Based on the selection probability, a genetic chromosome is randomly selected from the parent chromosome.
[0018] In one embodiment, the step of performing genetic processing on the genetic chromosome to obtain offspring chromosomes comprises:
[0019] Crossing over the genetic chromosome to obtain a crossover chromosome;
[0020] The crossover chromosomes are randomly mutated to obtain offspring chromosomes.
[0021] In one embodiment, the step of obtaining the parent chromosome of the wireless resource obtained by encoding the first channel resource allocated to the user history, the second channel resource allocated to the safety car history, and the third channel resource allocated to the non-safety car history includes:
[0022] Acquire a first channel resource allocated to a user history, a second channel resource allocated to a safe car history, and a third channel resource allocated to a non-safe car history;
[0023] Determine a first signal-to-noise ratio of the user in the cellular network, a second signal-to-noise ratio of the safety vehicle in the cellular network, and a third signal-to-noise ratio of the non-safety vehicle in the cellular network based on the first channel resource, the second channel resource, and the third channel resource;
[0024] After limiting the transmission rate of each channel based on the first signal-to-noise ratio, the second signal-to-noise ratio, and the third signal-to-noise ratio, determining the radio resource throughput of the radio resource;
[0025] The wireless resource throughput is binary-encoded to obtain the parent chromosome of the wireless resource.
[0026] In one embodiment, the step of determining a first signal-to-noise ratio of the user in the cellular network, a second signal-to-noise ratio of the safety vehicle in the cellular network, and a third signal-to-noise ratio of the non-safety vehicle in the cellular network based on the first channel resource, the second channel resource, and the third channel resource comprises:
[0027] Screening user transmission power, user channel gain, and user noise variance from the first channel resources;
[0028] screening the safety car transmission power, the safety car channel gain and the safety car noise variance from the second channel resource;
[0029] Screening the non-safety car transmission power, the non-safety car channel gain and the non-safety car noise variance from the third channel;
[0030] determining a first signal-to-noise ratio of the user in the cellular network based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain, and the user noise variance;
[0031] determining a second signal-to-noise ratio of the safety car in the cellular network based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain, and the safety car noise variance;
[0032] A third signal-to-noise ratio of the non-safety car in the cellular network is determined based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain, and the non-safety car noise variance.
[0033] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle networking wireless resource allocation device, the vehicle networking wireless resource allocation device comprising:
[0034] An encoding module, used to obtain a parent chromosome of a wireless resource obtained by encoding a first channel resource historically allocated to a user, a second channel resource historically allocated to a safety car, and a third channel resource historically allocated to a non-safety car;
[0035] A genetic module, used for optimizing the parent chromosome based on a preset genetic algorithm to obtain a target chromosome representing the maximum throughput of the wireless resource;
[0036] An allocation module is used to allocate wireless resources based on the channel resource allocation scheme of the user, the safety car and the non-safety car represented by the target chromosome.
[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle network wireless resource allocation device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle network wireless resource allocation method as described above.
[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the vehicle network wireless resource allocation method as described above are implemented.
[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the vehicle network wireless resource allocation method as described above.
[0040] One or more technical solutions proposed in this application have at least the following technical effects:
[0041] The present application obtains the parent chromosome by encoding the first channel resources historically allocated to the user, the second channel resources allocated to the safety car, and the third channel resources allocated to the non-safety car, so that the parent chromosome can carry the characteristic genes of the user allocation network, the characteristic genes of the safety car allocation network, and the characteristic genes of the non-safety car allocation network. Since the genetic algorithm has the advantages of strong global search ability, parallelism, and the ability to simultaneously encode continuous and discrete parameters, the genetic algorithm is used to simulate the natural selection and genetic evolution of the parent chromosome to obtain the target chromosome with the largest wireless resource throughput. According to the characteristics of high-speed movement of vehicles, rapid adjustment of wireless resource allocation can be achieved, and the optimal allocation strategy of wireless resources can also be determined, thereby improving the allocation efficiency of wireless resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] Figure 1 A flowchart of the first embodiment of the method for allocating wireless resources for Internet of Vehicles of this application is provided;
[0045] Figure 2 A flowchart of the second embodiment of the method for allocating wireless resources for Internet of Vehicles of this application is provided;
[0046] Figure 3 A schematic diagram of chromosome crossover processing provided in Example 2 of the present application;
[0047] Figure 4 A schematic diagram of chromosome variation processing provided in Example 2 of the present application;
[0048] Figure 5 A flowchart of the second embodiment of the method for allocating wireless resources for Internet of Vehicles of this application is provided;
[0049] Figure 6 A binary encoding diagram provided in Example 3 of the present application;
[0050] Figure 7 A schematic diagram of a V2X network system provided in Embodiment 3 of the present application;
[0051] Figure 8 A brief flow chart of the genetic algorithm provided for this application;
[0052] Fig. 9 This is a schematic diagram of the module structure of the wireless resource allocation device for the Internet of Vehicles according to an embodiment of the present application;
[0053] Fig.10 This is a schematic diagram of the device structure of the hardware operating environment involved in the vehicle network wireless resource allocation method in the embodiment of the present application.
[0054] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0055] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0056] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0057] The main solution of the embodiment of the present application is: the base station control device first obtains the parent chromosome of the wireless resources obtained by encoding the first channel resources historically allocated to the user, the second channel resources historically allocated to the safety car, and the third channel resources historically allocated to the non-safety car; based on a preset genetic algorithm, the parent chromosome is optimized to obtain a target chromosome representing the maximum throughput of the wireless resources; and wireless resources are allocated based on the channel resource allocation scheme of the user, the safety car and the non-safety car represented by the target chromosome.
[0058] In this embodiment, for ease of description, the following description is made with the base station control device as the execution entity.
[0059] Existing technologies usually dynamically allocate wireless resources according to the communication needs of different vehicles, or use cooperative communication technology to utilize effective resources through collaboration between vehicles, mainly based on heuristic methods or rule-based methods to set power and channel allocation. However, when faced with different task types and more intelligent transportation devices, it is impossible to make rapid adaptive adjustments, resulting in inefficient allocation of wireless resources.
[0060] The present application provides a solution, which encodes the first channel resources historically allocated to the user, the second channel resources allocated to the safety car, and the third channel resources allocated to the non-safety car to obtain the parent chromosome, so that the parent chromosome can carry the characteristic genes of the user allocation network, the characteristic genes of the safety car allocation network, and the characteristic genes of the non-safety car allocation network. Since the genetic algorithm has the advantages of strong global search ability, parallelism, and the ability to encode continuous and discrete parameters at the same time, the genetic algorithm is used to simulate the natural selection and genetic evolution of the survival of the fittest of the parent chromosome to obtain the target chromosome with the largest wireless resource throughput. According to the characteristics of high-speed movement of vehicles, rapid adjustment of wireless resource allocation can be achieved, and the optimal allocation strategy of wireless resources can also be determined, thereby improving the allocation efficiency of wireless resources.
[0061] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a base station control device, etc. The following takes the base station control device as an example to illustrate this embodiment and the following embodiments.
[0062] Based on this, the embodiment of the present application provides a method for allocating wireless resources of an Internet of Vehicles, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the method for allocating wireless resources for Internet of Vehicles of this application.
[0063] In this embodiment, the method for allocating wireless resources of the Internet of Vehicles includes steps S10 to S40:
[0064] Step S10, obtaining a parent chromosome of wireless resources obtained by encoding a first channel resource allocated to a user history, a second channel resource allocated to a safety car history, and a third channel resource allocated to a non-safety car history;
[0065] It should be noted that the first channel resource historically allocated to the user may include the wireless network resource of the channel used by the user to transmit data with the resource block in the base station. The second channel resource historically allocated to the safety car may include the wireless network resource of the channel used by the safety car to transmit data with the resource block in the base station. The third channel resource historically allocated to the non-safety car may include the wireless network resource of the channel used by the non-safety car to transmit data with the resource block in the base station.
[0066] In addition, it should be noted that a safety vehicle is a vehicle that occupies a resource block of a user, and a non-safety vehicle is a vehicle that reuses a safety vehicle and multiple resource blocks of multiple users, which improves resource utilization but easily causes network interference problems.
[0067] It can be understood that since chromosome coding can be used to allocate and set discrete spectrum and continuous power, and there are non-safe cars in the vehicle that generate interference, by obtaining the first channel resources historically allocated to the user, the second channel resources historically allocated to the safe car, and the third channel resources historically allocated to the non-safe car, the first channel resources, the second channel resources, and the third channel resources are encoded to obtain the parent chromosome with a larger current wireless resource throughput, so that the allocation strategy with a larger throughput can be inherited to the next generation of chromosomes through the parent chromosome, so as to simultaneously optimize the continuous power and discrete spectrum.
[0068] Step S20, optimizing the parent chromosome based on a preset genetic algorithm to obtain a target chromosome representing the maximum throughput of the wireless resource;
[0069] It should be noted that the preset genetic algorithm is an optimization search algorithm that simulates the biological evolution process, and has the advantages of strong global search capability, parallelism, and the ability to encode continuous and discrete parameters simultaneously. Wireless resource throughput can be the amount of data that a wireless network can successfully transmit within a given time period.
[0070] It is understandable that the use of genetic algorithm genetic coding to allocate and adjust discrete spectrum and continuous transmission power is more applicable to wireless resource allocation than traditional particle swarm algorithm, convex optimization and other algorithms, and can more accurately realize the full utilization of wireless resources in cellular unit networks.
[0071] It is understandable that the use of genetic algorithms to allocate and set discrete spectrum and continuous power at the same time can not only ensure communication quality but also maximize overall throughput. At the same time, the strong global search capability and parallelism of genetic algorithms can be used to quickly and accurately adaptively adjust the network's spectrum resources and transmission power according to the high-speed mobility characteristics of vehicles, thereby avoiding congestion in the Internet of Vehicles channel that causes smart vehicles to be unable to receive accurate information normally and reducing the occurrence of traffic safety accidents.
[0072] Step S30: Allocate wireless resources based on the channel resource allocation scheme of the user, the safety car and the non-safety car represented by the target chromosome.
[0073] It should be noted that the channel resource allocation scheme may be an optimal scheme for the wireless resource blocks mapped to the target chromosome and the transmission power of the wireless resource blocks.
[0074] It is understandable that the existing resource allocation method focuses too much on communication quality without considering the full utilization of the entire network data resources and fails to maximize resource utilization. Therefore, in the face of the high-speed movement characteristics of vehicles, the preset genetic algorithm can be used to ensure the communication quality of cellular network users while achieving rapid adaptive adjustment of network resource allocation and maximization of the overall cellular network unit throughput to ensure that the information transmission rate can meet the high-speed movement of vehicles.
[0075] The present embodiment provides a method for allocating wireless resources in an Internet of Vehicles, wherein a parent chromosome is obtained by encoding a first channel resource historically allocated to a user, a second channel resource allocated to a safety car, and a third channel resource allocated to a non-safety car, so that the parent chromosome can carry characteristic genes for a network allocated to the user, a characteristic gene for a network allocated to a safety car, and a characteristic gene for a network allocated to a non-safety car. Since a genetic algorithm has the advantages of strong global search capability, parallelism, and the ability to simultaneously encode continuous and discrete parameters, a genetic algorithm is used to simulate the natural selection and genetic evolution of the parent chromosome to obtain a target chromosome with the largest wireless resource throughput. This can achieve rapid adjustment of wireless resource allocation in view of the characteristics of high-speed movement of vehicles, and can also determine the optimal allocation strategy for wireless resources, thereby improving the allocation efficiency of wireless resources.
[0076] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , step S20 also includes steps S21 to S24:
[0077] Step S21, determining the fitness of the wireless resource throughput of the parent chromosome based on a preset genetic algorithm, and obtaining a reference throughput of the wireless resources corresponding to the parent chromosome;
[0078] It should be noted that the fitness can be a parameter that characterizes the wireless resource throughput. The reference throughput can be the wireless resource throughput used as a reference before the preset genetic algorithm ends. Since the preset genetic algorithm is to perform multiple iterations of inheritance through chromosomes carrying the channel resource gene of the information sender, and screen out target chromosomes that are more in line with the expected gene, and the expected gene is a chromosome with a larger wireless resource throughput during the chromosome inheritance process, it is necessary to determine the fitness of the wireless resource throughput of the parent chromosome to obtain the reference throughput of the wireless resource corresponding to the parent chromosome, so as to provide a reference for the iterative inheritance of the parent chromosome, and retain the chromosome with a larger wireless resource throughput for inheritance.
[0079] Step S22, determining whether the inheritance times of the parent chromosome meet the termination condition of the preset genetic algorithm;
[0080] It should be noted that the termination condition of the preset genetic algorithm may be reaching the maximum number of iterations, that is, when the number of iterations of the parent chromosome meets the maximum number of iterations, the preset genetic algorithm is stopped and the chromosome with the maximum wireless resource throughput obtained in the last iteration is marked as the target chromosome.
[0081] It is understandable that the more times the chromosome is iterated, the smaller the change of the chromosome after each iteration, and the change of the chromosome may also be iterated in a bad direction. In order to quickly obtain the allocation plan of wireless resources, the number of iterations can be limited so that the chromosome iteration becomes the target chromosome that represents the optimal allocation plan of wireless resources.
[0082] Step S23, if it is determined that the termination condition is not met, selecting a genetic chromosome from the parent chromosome based on the reference throughput;
[0083] In the specific implementation, according to the quality of the fitness function of the offspring chromosome, individuals with better fitness function are selected to replace the chromosomes with low fitness in the population, and then new individuals are evolved through selection, crossover, mutation, etc. The new chromosome fitness function is calculated through the fitness function, and it is continuously iterated and evolved until the maximum number of iterations is reached.
[0084] Step S24, performing genetic processing on the inherited chromosome to obtain offspring chromosomes, and using the offspring chromosomes to update the parent chromosomes to determine the fitness of the wireless resource throughput, until the number of inheritance times meets the termination condition, and obtaining the target chromosome representing the maximum wireless resource throughput.
[0085] It can be explained that individuals with larger fitness function, i.e., throughput, are selected as parents of the next generation population, and then individuals are selected from the parent population for crossover to generate the child population, and mutation operations are performed on the individuals in the child population to increase the diversity of the population, and then the fitness function is calculated for the chromosomes in the child population. According to the quality of the fitness function, individuals with better fitness functions are selected to replace the parent individuals with worse fitness functions to ensure that the chromosomes carrying high-quality throughput are retained, thereby obtaining the target chromosome with the largest wireless resource throughput.
[0086] Furthermore, step S23 further includes:
[0087] Determining the selection probability of each of the parent chromosomes based on the reference throughput of each of the parent chromosomes;
[0088] Based on the selection probability, a genetic chromosome is randomly selected from the parent chromosome.
[0089] It is understandable that since the inheritance of genes in chromosomes is random, there is a probability of inheritance in a good direction and a probability of inheritance in a bad direction, and the probability of development in a bad direction is smaller than the probability of inheritance in a good direction. Therefore, the selection probability of each parent chromosome can be determined according to the reference throughput, so that the larger the reference throughput, the greater the probability of selection, and the iteration of chromosomes is more in line with the natural law of survival of the fittest, and then excellent chromosomes can be selected through multiple iterations.
[0090] In the specific implementation, the roulette wheel selection method can be used to select excellent individuals from the chromosome population with a certain probability to form a new population for breeding to obtain the next generation of individuals. That is, the area occupied by each chromosome on the roulette wheel will be calculated proportionally according to the fitness score. The main idea is that the higher the individual fitness value, the greater the probability of being selected, while maintaining the diversity of chromosomes after several generations.
[0091] Furthermore, step S24 further includes:
[0092] Crossing over the genetic chromosome to obtain a crossover chromosome;
[0093] The crossover chromosomes are randomly mutated to obtain offspring chromosomes.
[0094] It should be noted that crossover can allow linked genes to recombine, thereby enriching genetic variation, and is also an important way for organisms to adapt to environmental changes. That is, by promoting the recombination of genetic material, the genetic diversity of biological populations is increased, and it also provides an effective way for genetic algorithms to solve complex problems. Mutation can be a change in chromosome structure, which causes changes in genetic information and leads to changes in the characteristics of the offspring of organisms.
[0095] It can be understood that by performing crossover iterations on the genetic chromosomes, excellent characteristics are passed on to the later ones, thereby retaining genes with larger wireless resource throughput.
[0096] In the specific implementation, refer to Figure 3 , if the two paternal chromosomes S selected in the previous step a and S b , randomly select two crossover points, then crossover the chromosomes before and after the crossover points, thus producing a new offspring S aa and S bb .
[0097] In the specific implementation, refer to Figure 4 In order to prevent falling into the local optimal solution during the optimization process, it is necessary to mutate the individuals. After crossover, the offspring chromosomes are generated by random single-point mutation, that is, the binary code of the gene sequence changes from 0 to 1 or from 1 to 0. The new offspring S aa Mutate and evolve into new individuals
[0098] Based on the first and second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 5 , step S10 also includes steps S01 to S04:
[0099] Step S01, obtaining a first channel resource allocated to a user history, a second channel resource allocated to a safe car history, and a third channel resource allocated to a non-safe car history;
[0100] Step S02, determining a first signal-to-noise ratio of the user in the cellular network, a second signal-to-noise ratio of the safety vehicle in the cellular network, and a third signal-to-noise ratio of the non-safety vehicle in the cellular network based on the first channel resource, the second channel resource, and the third channel resource;
[0101] Step S03, after limiting the transmission rate of each channel based on the first signal-to-noise ratio, the second signal-to-noise ratio and the third signal-to-noise ratio, determining the wireless resource throughput of the wireless resource;
[0102] Step S04: Binary-code the wireless resource throughput to obtain the parent chromosome of the wireless resource.
[0103] It should be noted that by using chromosome coding to allocate and set discrete spectrum and continuous power, taking the overall throughput of the cellular network unit as the fitness function, and imitating the natural selection and genetic evolution of the survival of the fittest through genetic algorithms, the spectrum and power of vehicles and users in the cellular network are dynamically allocated and adjusted. Under the premise of ensuring the communication quality between vehicles and people in the cellular unit network, the optimal solution for wireless resource allocation, that is, maximizing the throughput, can be achieved.
[0104] It can be understood that a binary coding method is selected, that is, the sequence constituting the chromosome gene is represented by a binary number, 1 means that the sender corresponding to the gene above will use a certain resource block (RB) of the base station for information transmission, and 0 means that the resource block is not occupied, so as to simplify the expression of the gene and improve the prediction rate of the genetic algorithm.
[0105] In the specific implementation, it is assumed that the V2X cellular network has network users and RBs, which is the total number of users, safety vehicles and non-safety vehicles. First, the wireless resources and transmission power of the cellular network are mapped to the chromosome genes in the genetic algorithm. The chromosomes represent the number of RBs that can be allocated by the base station. Each chromosome has a gene representing the number of information senders. The genetic algorithm is used to encode the wireless resources and transmission power of the cellular network through the chromosomes, such as Figure 5 In the hypothetical network, there is 1 user U1, 3 vehicles: V1, V2, V3, and a total of 2 RBs: S1 and S2. The transmission power W threshold range is 0 to 10dB. The first RB, chromosome S1, is allocated to user U1, vehicles V2 and V3, with a transmission power of 9dB. The second RB, chromosome S2, is shared by user U1 and vehicle V1, and its transmission power is 7dB. The first four gene values of 0 represent that the resource is not allocated to the corresponding network sender, and the last four gene values are the binary encoding of the transmission power. The fitness function is then used to calculate the fitness function of each chromosome, that is, to calculate the total throughput of the cellular network. When the fitness function of the chromosome is larger, its network throughput is larger and the cellular network wireless resource allocation is better.
[0106] Furthermore, step S02 further includes:
[0107] Screening user transmission power, user channel gain, and user noise variance from the first channel resources;
[0108] screening the safety car transmission power, the safety car channel gain and the safety car noise variance from the second channel resource;
[0109] Screening the non-safety car transmission power, the non-safety car channel gain and the non-safety car noise variance from the third channel;
[0110] determining a first signal-to-noise ratio of the user in the cellular network based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain, and the user noise variance;
[0111] determining a second signal-to-noise ratio of the safety car in the cellular network based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain, and the safety car noise variance;
[0112] A third signal-to-noise ratio of the non-safety car in the cellular network is determined based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain, and the non-safety car noise variance.
[0113] It can be understood that compared with the traditional wireless resource allocation method, this proposal not only considers the communication quality or transmission rate, but also combines a large amount of historical communication data of the vehicle, and uses genetic algorithm genetic coding to simultaneously allocate the spectrum and adjust the transmission power in the wireless resource allocation process, adding the dual optimization of cellular user communication quality assurance and overall network throughput maximization.
[0114] In the specific implementation, refer to Figure 6 , assuming that the cellular network unit V2X network contains a user set and a vehicle set, we will divide the vehicle into safe vehicles and non-safe vehicles according to the application, the user set is represented by U = {1, ..., U}, that is, there are U users in the V2X network unit, and so on, the non-safe vehicle set is represented by N = {1, ..., N}, the safe vehicle set is represented by V = {1, ..., V}, the uplink bandwidth is represented by B = {1, ..., B}, and there are S resource blocks RB in total. The cellular network base station allocates resources to vehicles and users based on the channel state information. With the increase of networked devices and the rapid movement of vehicles, there will be different degrees of interference. Therefore, before allocation, it is necessary to determine the interference to vehicles and users:
[0115] The signal-to-noise ratio of user u on the i-th RB of the cellular network base station is:
[0116]
[0117] in, are the transmission power of user u, safety car v, and non-safety car n in the i-th RB of the base station, are the channel gains of user u, safety car v, and non-safety car n on the i-th RB of the base station, σ 2 is the Gaussian white noise variance of user u.
[0118] The signal-to-noise ratio of the safety car vl on the i-th RB of the cellular network base station is:
[0119]
[0120] in, are the channel gains of the safety car vl and the safety car v on the i-th RB, User u and non-safe car n share the same RB i , σ 2 is the Gaussian white noise variance of the safety car vl.
[0121] The signal-to-noise ratio of the non-safe car n on the i-th RB is:
[0122]
[0123] Therefore, the total throughput T is:
[0124]
[0125] in is the throughput of m receiving points on the i-th RB of the base station:
[0126]
[0127] And B i log2(1+S u (RB i ))≥A1,B i log2(1+S vl (RB i ))≥A2,B i log2(1+SnRBi≥A3, where Bi is the bandwidth of RBi, A1, A2, and A3 are the data transmission rate thresholds between the base station and the user, the safety car, and the non-safety car, respectively.
[0128] It should be noted that the link data transmission rate threshold is set according to the minimum transmission rate required for normal communication between users, safety cars and non-safety cars to ensure the network quality between users and cars, so as to avoid blindly pursuing the maximization of overall network resource utilization while ignoring the network perception experience of users and vehicles. The main purpose of this solution is to maximize the overall total throughput T of the cellular network while ensuring the network quality. The objective function is:
[0129]
[0130] and And satisfy u∈U, v∈V, n∈N; is the signal-to-noise ratio threshold of user u, safe car v, and non-safe car n, is the maximum transmission power of user u, safety car v, and non-safety car n.
[0131] For example, in order to help understand the implementation process of the vehicle network wireless resource allocation method obtained by combining this embodiment with the above embodiments, please refer to Figure 8 , Figure 8 A brief flow chart of a method for allocating wireless resources of an Internet of Vehicles is provided, specifically:
[0132] Genetic algorithm chromosomes are used to encode continuous power and discrete spectrum, and selection operations are performed according to the fitness function of each chromosome. Individuals with larger fitness functions, i.e., throughput, are selected as parents of the next generation population. Then, individuals are selected from the parent population for crossover to generate child populations, and mutation operations are performed on individuals in the child population to increase the diversity of the population. Then, the fitness function of the chromosomes in the child population is calculated. According to the quality of the fitness function, individuals with better fitness functions are selected to replace the parent individuals with worse fitness functions. Then, selection, crossover, mutation, and generation of the next generation population are performed, and continuous iteration and evolution are performed until the maximum number of iterations is reached, and a better allocation plan for wireless resources of the Internet of Vehicles is found to maximize the overall throughput while ensuring the communication quality of cellular network users. This proposal uses the advantages of genetic algorithms, such as strong global search capability, parallelism, and the ability to simultaneously encode continuous and discrete parameters, to quickly and adaptively adjust the network's spectrum resources and transmission power in response to the high-speed mobility characteristics of vehicles. While ensuring the communication quality of all users of the Internet of Vehicles, it achieves intelligent and automatic allocation of wireless resources for the Internet of Vehicles, maximizes the throughput of the entire network, and improves the efficiency and utilization of wireless resource allocation in cellular networks.
[0133] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the vehicle network wireless resource allocation method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0134] This application also provides a wireless resource allocation device for Internet of Vehicles. Please refer to Fig. 9 , the vehicle networking wireless resource allocation device includes:
[0135] The encoding module 10 is used to obtain the parent chromosome of the wireless resource obtained by encoding the first channel resource allocated to the user history, the second channel resource allocated to the safety car history, and the third channel resource allocated to the non-safety car history;
[0136] A genetic module 20, configured to optimize the parent chromosome based on a preset genetic algorithm to obtain a target chromosome representing the maximum throughput of the wireless resource;
[0137] The allocation module 30 is used to allocate wireless resources based on the channel resource allocation scheme of the user, the safety car and the non-safety car represented by the target chromosome.
[0138] Optionally, the genetic module 20 is also used to determine the fitness of the wireless resource throughput of the parent chromosome based on a preset genetic algorithm to obtain a reference throughput of the wireless resources corresponding to the parent chromosome; determine whether the inheritance number of the parent chromosome meets the termination condition of the preset genetic algorithm; if it is determined that the termination condition is not met, select a genetic chromosome from the parent chromosome based on the reference throughput; perform genetic processing on the genetic chromosome to obtain an offspring chromosome, and use the offspring chromosome to update the parent chromosome to determine the fitness of the wireless resource throughput, until the inheritance number meets the termination condition, and obtains a target chromosome representing the maximum wireless resource throughput.
[0139] Optionally, the genetic module 20 is further configured to determine a selection probability of each of the parent chromosomes based on a reference throughput of each of the parent chromosomes; and randomly select a genetic chromosome from the parent chromosomes based on the selection probability.
[0140] Optionally, the genetic module 20 is further used to cross the genetic chromosomes to obtain crossover chromosomes; and randomly perform mutation processing on the crossover chromosomes to obtain offspring chromosomes.
[0141] Optionally, the encoding module 10 is further used to obtain a first channel resource allocated to the user history, a second channel resource allocated to the safety car history, and a third channel resource allocated to the non-safety car history; determine a first signal-to-noise ratio of the user in the cellular network, a second signal-to-noise ratio of the safety car in the cellular network, and a third signal-to-noise ratio of the non-safety car in the cellular network based on the first channel resource, the second channel resource, and the third channel resource; determine the wireless resource throughput of the wireless resource after limiting the transmission rate of each channel based on the first signal-to-noise ratio, the second signal-to-noise ratio, and the third signal-to-noise ratio; and binary encode the wireless resource throughput to obtain the parent chromosome of the wireless resource.
[0142] Optionally, the encoding module 10 is further used to screen user transmission power, user channel gain and user noise variance from the first channel resources; screen safety car transmission power, safety car channel gain and safety car noise variance from the second channel resources; screen non-safety car transmission power, non-safety car channel gain and non-safety car noise variance from the third channel; determine a first signal-to-noise ratio of the user in the cellular network based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain and the user noise variance; determine a second signal-to-noise ratio of the safety car in the cellular network based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain and the safety car noise variance; determine a third signal-to-noise ratio of the non-safety car in the cellular network based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain and the non-safety car noise variance.
[0143] The vehicle network wireless resource allocation device provided by the present application adopts the vehicle network wireless resource allocation method in the above embodiment, which can solve the technical problem that it is impossible to make rapid adaptive adjustments when facing different task types and more intelligent traffic equipment, resulting in low efficiency in wireless resource allocation. Compared with the prior art, the beneficial effects of the vehicle network wireless resource allocation device provided by the present application are the same as the beneficial effects of the vehicle network wireless resource allocation method provided by the above embodiment, and the other technical features in the vehicle network wireless resource allocation device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0144] The present application provides a vehicle networking wireless resource allocation device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle networking wireless resource allocation method in the above-mentioned embodiment one.
[0145] Reference below Fig.10, which shows a schematic diagram of the structure of a wireless resource allocation device for a connected vehicle network suitable for implementing an embodiment of the present application. The wireless resource allocation device for a connected vehicle network in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The shown vehicle networking wireless resource allocation device is merely an example and should not bring any limitations to the functions and scope of use of the embodiments of the present application.
[0146] like Fig.10 As shown, the wireless resource allocation device for the Internet of Vehicles may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the wireless resource allocation device for the Internet of Vehicles are also stored in RAM1004. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the wireless resource allocation device for the Internet of Vehicles to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a wireless resource allocation device for the Internet of Vehicles with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.
[0147] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0148] The vehicle networking wireless resource allocation device provided by the present application adopts the vehicle networking wireless resource allocation method in the above embodiment, which can solve the technical problem that it is impossible to make rapid adaptive adjustments when facing different task types and more intelligent traffic equipment, resulting in low efficiency in the allocation of wireless resources. Compared with the prior art, the beneficial effects of the vehicle networking wireless resource allocation device provided by the present application are the same as the beneficial effects of the vehicle networking wireless resource allocation method provided by the above embodiment, and the other technical features in the vehicle networking wireless resource allocation device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0149] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0150] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0151] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle network wireless resource allocation method in the above-mentioned embodiment.
[0152] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0153] The above-mentioned computer-readable storage medium may be included in the wireless resource allocation device for the connected vehicle network; or it may exist independently without being assembled into the wireless resource allocation device for the connected vehicle network.
[0154] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the wireless resource allocation device of the Internet of Vehicles, the wireless resource allocation device of the Internet of Vehicles: obtains the parent chromosome of the wireless resources obtained by encoding the first channel resources historically allocated to the user, the second channel resources historically allocated to the safety car, and the third channel resources historically allocated to the non-safety car; optimizes the parent chromosome based on a preset genetic algorithm to obtain a target chromosome representing the maximum throughput of the wireless resources; and allocates wireless resources based on the channel resource allocation scheme of the user, the safety car and the non-safety car represented by the target chromosome.
[0155] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0156] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0157] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0158] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle network wireless resource allocation method, and can solve the technical problem that rapid adaptive adjustment cannot be performed when facing different task types and more intelligent traffic equipment, resulting in low efficiency in the allocation of wireless resources. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle network wireless resource allocation method provided by the above-mentioned embodiment, and will not be repeated here.
[0159] The present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned vehicle network wireless resource allocation method.
[0160] The computer program product provided by the present application can solve the technical problem that when facing different task types and more intelligent traffic equipment, it is impossible to make rapid adaptive adjustments, resulting in low efficiency in the allocation of wireless resources. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the vehicle network wireless resource allocation method provided by the above embodiment, and will not be repeated here.
[0161] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for allocating wireless resources in a vehicle network, characterized in that: The method includes: Acquire a parent chromosome of wireless resources obtained by encoding a first channel resource historically allocated to a user, a second channel resource historically allocated to a safety car, and a third channel resource historically allocated to a non-safety car; Optimizing the parent chromosome based on a preset genetic algorithm to obtain a target chromosome representing the maximum throughput of the wireless resource; Radio resources are allocated based on the channel resource allocation scheme of the user, the safety car, and the non-safety car represented by the target chromosome.
2. The method according to claim 1, characterized in that The step of optimizing the parent chromosome based on a preset genetic algorithm to obtain a target chromosome representing the maximum wireless resource throughput comprises: Determine the fitness of the wireless resource throughput of the parent chromosome based on a preset genetic algorithm, and obtain a reference throughput of the wireless resources corresponding to the parent chromosome; Determining whether the number of inheritance of the parent chromosome satisfies the termination condition of the preset genetic algorithm; If it is determined that the termination condition is not satisfied, selecting a genetic chromosome from the parent chromosome based on the reference throughput; The inherited chromosome is genetically processed to obtain an offspring chromosome, and the offspring chromosome is used to update the parent chromosome to determine the fitness of the wireless resource throughput, until the number of inheritances meets the termination condition, and a target chromosome representing the maximum wireless resource throughput is obtained.
3. The method according to claim 2, characterized in that The step of selecting a genetic chromosome from the parent chromosome based on the reference throughput further comprises: Determining the selection probability of each of the parent chromosomes based on the reference throughput of each of the parent chromosomes; Based on the selection probability, a genetic chromosome is randomly selected from the parent chromosome.
4. The method according to claim 2, characterized in that The step of performing genetic processing on the genetic chromosome to obtain offspring chromosomes comprises: Crossing over the genetic chromosome to obtain a crossover chromosome; The crossover chromosomes are randomly mutated to obtain offspring chromosomes.
5. The method according to any one of claims 1 to 4, characterized in that The step of obtaining the parent chromosome of the wireless resource obtained by encoding the first channel resource allocated to the user history, the second channel resource allocated to the safety car history, and the third channel resource allocated to the non-safety car history comprises: Acquire a first channel resource allocated to a user history, a second channel resource allocated to a safe car history, and a third channel resource allocated to a non-safe car history; Determine a first signal-to-noise ratio of the user in the cellular network, a second signal-to-noise ratio of the safety vehicle in the cellular network, and a third signal-to-noise ratio of the non-safety vehicle in the cellular network based on the first channel resource, the second channel resource, and the third channel resource; After limiting the transmission rate of each channel based on the first signal-to-noise ratio, the second signal-to-noise ratio, and the third signal-to-noise ratio, determining the radio resource throughput of the radio resource; The wireless resource throughput is binary-encoded to obtain the parent chromosome of the wireless resource.
6. The method according to claim 5, characterized in that The step of determining a first signal-to-noise ratio of the user in the cellular network, a second signal-to-noise ratio of the safety vehicle in the cellular network, and a third signal-to-noise ratio of the non-safety vehicle in the cellular network based on the first channel resource, the second channel resource, and the third channel resource comprises: Screening user transmission power, user channel gain, and user noise variance from the first channel resources; screening the safety car transmission power, the safety car channel gain and the safety car noise variance from the second channel resource; Screening the non-safety car transmission power, the non-safety car channel gain and the non-safety car noise variance from the third channel; determining a first signal-to-noise ratio of the user in the cellular network based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain, and the user noise variance; determining a second signal-to-noise ratio of the safety car in the cellular network based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain, and the safety car noise variance; A third signal-to-noise ratio of the non-safety car in the cellular network is determined based on the user transmission power, the user channel gain, the safety car transmission power, the safety car channel gain, the non-safety car transmission power, the non-safety car channel gain, and the non-safety car noise variance.
7. A wireless resource allocation device for an Internet of Vehicles, characterized in that: The device comprises: An encoding module, used to obtain a parent chromosome of a wireless resource obtained by encoding a first channel resource historically allocated to a user, a second channel resource historically allocated to a safety car, and a third channel resource historically allocated to a non-safety car; A genetic module, used for optimizing the parent chromosome based on a preset genetic algorithm to obtain a target chromosome representing the maximum throughput of the wireless resource; An allocation module is used to allocate wireless resources based on the channel resource allocation scheme of the user, the safety car and the non-safety car represented by the target chromosome.
8. A wireless resource allocation device for an Internet of Vehicles, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle network wireless resource allocation method according to any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle network wireless resource allocation method as described in any one of claims 1 to 6 are implemented.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method for allocating wireless resources for an internet of vehicles as claimed in any one of claims 1 to 6 are implemented.
