Vehicle-to-vehicle network slice bandwidth resource allocation method and device

文档序号:1865209 发布日期:2021-11-19 浏览:21次 中文

阅读说明:本技术 车辆到车辆的网络切片带宽资源分配方法及装置 (Vehicle-to-vehicle network slice bandwidth resource allocation method and device ) 是由 陈昕 郭东超 梁琰 于 2021-07-28 设计创作,主要内容包括:本发明提供了一种车辆到车辆的网络切片带宽资源分配方法及装置,包括:确定与第i对车辆到车辆用户对对应的发射功率;根据边缘服务器的当前带宽资源占有率与第i对车辆到车辆用户对对应的发射功率,计算与第i对车辆到车辆用户对对应的宽带资源传输任务的成本;若集合I~(c)的遗传信息迭代后满足预设的收敛条件,则根据与第i对车辆到车辆用户对对应的任务大小计算完成任务时延;若完成任务时延小于等于任务可容忍时延,则将迭代后满足预设收敛条件的集合I~(c)的遗传信息作为带宽大小分配给第i对车辆到车辆用户对,并确定带宽分配成本。本发明能够在保证传输任务在可容忍的时延内完成情况下,最小化车辆到车辆用户对的资源使用成本。(The invention provides a method and a device for allocating network slice bandwidth resources from vehicle to vehicle, wherein the method comprises the following steps: determining a transmit power corresponding to an ith pair of vehicle-to-vehicle users; calculating the cost of a broadband resource transmission task corresponding to the ith pair of vehicle-to-vehicle user pairs according to the current bandwidth resource occupancy of the edge server and the transmission power corresponding to the ith pair of vehicle-to-vehicle user pairs; if set I c If the genetic information after iteration meets a preset convergence condition, calculating the task time delay according to the task size corresponding to the ith pair of vehicle-to-vehicle user pairs; if the time delay for completing the task is less than or equal to the tolerable time delay of the task, the set I meeting the preset convergence condition after iteration c Is assigned as a bandwidth size to the ith pair of vehicle-to-vehicle users, and a bandwidth allocation cost is determined. The invention can minimize the resource use cost of the vehicle-to-vehicle user pair under the condition of ensuring that the transmission task is completed within the tolerable time delay.)

1. A vehicle-to-vehicle network slice bandwidth resource allocation method, comprising:

acquiring respective coordinate information of a first vehicle user and a second vehicle user which need to perform a transmission task at a current time slot t, and determining the first vehicle user and the second vehicle user as an ith vehicle-to-vehicle user pair; the first vehicle user is a vehicle user sending data, the second vehicle user is a vehicle user receiving data, and i is a positive integer;

determining an enhanced mobile broadband cellular user sharing channel farthest from the second vehicle user based on the distance between each enhanced mobile broadband cellular user and the second vehicle user, and acquiring coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user;

determining the transmitting power corresponding to the ith pair of vehicle-to-vehicle users according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle users and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user;

randomly generating a plurality of individual sets I within a preset bandwidth size range, and randomly dividing bandwidth resources to be distributed into two sets I by taking the bandwidth resources as genetic informationA、IBMatching the genetic information of the individuals of the two sets of sets based on an evolution strategy to generate a filial generation set Ic

Calculating the cost of a broadband resource transmission task corresponding to the ith pair of vehicle-to-vehicle user pairs according to the current bandwidth resource occupancy of the edge server and the transmitting power corresponding to the ith pair of vehicle-to-vehicle user pairs;

and calculating a set of children IcThe individual fitness of (1) is set from large to small according to a set IcSorting, and deleting the preset number of individuals after the ranking;

if set IcIf the genetic information after iteration meets a preset convergence condition, calculating the task time delay according to the task size corresponding to the ith pair of vehicle-to-vehicle user pairs;

if the time delay for completing the task is less than or equal to the tolerable time delay of the task, the set I meeting the preset convergence condition after iterationcAs a bandwidth size, to the ith pair of vehicle-to-vehicle users and determining a bandwidth allocation cost.

2. The vehicle-to-vehicle network slice bandwidth resource allocation method according to claim 1, wherein the determining the transmit power corresponding to the ith pair of vehicle-to-vehicle users according to two coordinate information corresponding to the ith pair of vehicle-to-vehicle users and the coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user specifically comprises:

determining the transmission rate of the enhanced mobile broadband cellular user according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle user pair and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user;

and under the condition that the enhanced mobile broadband cellular user and the ith vehicle-to-vehicle user share channel resources, and the transmitting power and the bandwidth of the enhanced mobile broadband cellular user are constant values, determining the transmitting power corresponding to the ith vehicle-to-vehicle user.

3. The vehicle-to-vehicle network slice bandwidth resource allocation method according to claim 2, wherein the determining the transmission rate of the enhanced mobile broadband cellular user according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle users and the coordinate information of the enhanced mobile broadband cellular user farthest away from the second vehicle user specifically comprises:

determining the transmission rate of the enhanced mobile broadband cellular user by utilizing a first relation model according to the two pieces of coordinate information corresponding to the ith vehicle-to-vehicle user pair and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user; the first relationship model is:

wherein, N represents that N enhanced mobile broadband cellular users which are randomly distributed exist, and N is a positive integer;indicating the signal-to-interference-and-noise ratio of the jth enhanced mobile broadband cellular user to the base station at the current time slot t;indicating the transmitting power of the jth enhanced mobile broadband cellular user at the current time slot t;indicating that the jth enhanced mobile broadband cellular subscriber-to-base station link is at the current time slot t; sigma2Represents the power of additive white gaussian noise; deltajTake 0 or 1, deltajWhen 0 is taken, the ith pair of vehicle-to-vehicle users and the jth enhanced mobile broadband cellular user do not share the channel, deltajWhen 1 is taken, the channel is shared by the ith pair of vehicle-to-vehicle users and the jth enhanced mobile broadband cellular user;indicating the corresponding transmitting power of the jth pair of vehicle-to-vehicle users in the current time slot t;to representAt the current time slot t, the channel gain of the transmitting vehicle user-to-base station link in the jth pair of vehicle-to-vehicle user pairs;indicating the data transmission rate of the jth enhanced mobile broadband cellular user at the current time slot t;indicating the bandwidth of the jth enhanced mobile broadband cellular user.

4. The vehicle-to-vehicle network slice bandwidth resource allocation method of claim 1, further comprising:

determining bandwidth allocation cost by adopting a second relation model; the second relationship model is:

Pi v=punitttask

wherein, Pi vRepresenting the determined bandwidth allocation cost; p is a radical ofunitRepresenting a unit price of using the slice bandwidth resource; t is ttaskRepresenting the delay on the transmission task.

5. A vehicle-to-vehicle network slice bandwidth resource allocation apparatus, comprising:

the system comprises a first acquisition module, a second acquisition module and a transmission module, wherein the first acquisition module is used for acquiring respective coordinate information of a first vehicle user and a second vehicle user which need to perform a transmission task at a current time slot t, and determining the first vehicle user and the second vehicle user as an ith vehicle-to-vehicle user pair; the first vehicle user is a vehicle user sending data, the second vehicle user is a vehicle user receiving data, and i is a positive integer;

a second obtaining module, configured to determine, based on a distance between each enhanced mobile broadband cellular user and the second vehicle user, an enhanced mobile broadband cellular user shared channel farthest from the second vehicle user, and obtain coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user;

a first determining module, configured to determine, according to two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle user pairs and coordinate information of an enhanced mobile broadband cellular user farthest from the second vehicle user, a transmission power corresponding to the ith pair of vehicle-to-vehicle user pairs;

a generating module for randomly generating a plurality of individual sets I within a preset bandwidth range, and randomly dividing the bandwidth resources to be distributed into two sets I by taking the bandwidth resources as genetic informationA、IBMatching the genetic information of the individuals of the two sets of sets based on an evolution strategy to generate a filial generation set Ic

The first calculation module is used for calculating the cost of the broadband resource transmission task corresponding to the ith pair of vehicle-to-vehicle user pairs according to the current bandwidth resource occupancy of the edge server and the transmitting power corresponding to the ith pair of vehicle-to-vehicle user pairs;

a second calculation module for calculating the child set IcThe individual fitness of (1) is set from large to small according to a set IcSorting, and deleting the preset number of individuals after the ranking;

a third calculation module for calculating if set IcIf the genetic information after iteration meets a preset convergence condition, calculating the task time delay according to the task size corresponding to the ith pair of vehicle-to-vehicle user pairs;

a second determining module, configured to, if the time delay for completing the task is less than or equal to a tolerable time delay of the task, satisfy the set I of the preset convergence condition after iterationcAs a bandwidth size, to the ith pair of vehicle-to-vehicle users and determining a bandwidth allocation cost.

6. The vehicle-to-vehicle network slice bandwidth resource allocation apparatus of claim 5, wherein the first determining module is specifically configured to:

determining the transmission rate of the enhanced mobile broadband cellular user according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle user pair and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user;

and under the condition that the enhanced mobile broadband cellular user and the ith vehicle-to-vehicle user share channel resources, and the transmitting power and the bandwidth of the enhanced mobile broadband cellular user are constant values, determining the transmitting power corresponding to the ith vehicle-to-vehicle user.

7. The vehicle-to-vehicle network slice bandwidth resource allocation apparatus according to claim 6, wherein the first determining module, when performing determining the transmission rate of the enhanced mobile broadband cellular subscriber according to two coordinate information corresponding to the ith pair of vehicle-to-vehicle subscribers and the coordinate information of the enhanced mobile broadband cellular subscriber farthest away from the second vehicle subscriber, is specifically configured to:

determining the transmission rate of the enhanced mobile broadband cellular user by utilizing a first relation model according to the two pieces of coordinate information corresponding to the ith vehicle-to-vehicle user pair and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user; the first relationship model is:

wherein, N represents that N enhanced mobile broadband cellular users which are randomly distributed exist, and N is a positive integer;indicating the signal-to-interference-and-noise ratio of the jth enhanced mobile broadband cellular user to the base station at the current time slot t;indicating the transmitting power of the jth enhanced mobile broadband cellular user at the current time slot t;indicating that the jth enhanced mobile broadband cellular subscriber-to-base station link is at the current time slot t; sigma2Represents the power of additive white gaussian noise; deltajTake 0 or 1, deltajWhen 0 is taken, the ith pair of vehicle-to-vehicle users and the jth enhanced mobile broadband cellular user do not share the channel, deltajWhen 1 is taken, the channel is shared by the ith pair of vehicle-to-vehicle users and the jth enhanced mobile broadband cellular user;indicating the corresponding transmitting power of the jth pair of vehicle-to-vehicle users in the current time slot t;indicating the channel gain of the transmitting vehicle user-to-base station link in the jth pair of vehicle-to-vehicle user pairs at the current time slot t;indicating the data transmission rate of the jth enhanced mobile broadband cellular user at the current time slot t;indicating the bandwidth of the jth enhanced mobile broadband cellular user.

8. The vehicle-to-vehicle network slice bandwidth resource allocation apparatus according to claim 5, wherein the second determining module, when performing determining the bandwidth allocation cost, is specifically configured to:

determining bandwidth allocation cost by adopting a second relation model; the second relationship model is:

Pi v=punitttask

wherein, Pi vRepresenting the determined bandwidth allocation cost; p is a radical ofunitRepresenting a unit price of using the slice bandwidth resource; t is ttaskRepresenting the delay on the transmission task.

9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the vehicle-to-vehicle network slice bandwidth resource allocation method according to any one of claims 1 to 4.

10. A non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the vehicle-to-vehicle network slice bandwidth resource allocation method according to any one of claims 1 to 4.

Technical Field

The invention relates to the technical field of computers, in particular to a method and a device for allocating network slice bandwidth resources from vehicle to vehicle.

Background

The inter-vehicle communication technologies may be used to provide traffic information, such as traffic jams, accidents, and other risks to each other. The information makes the driver ready for emergency, so that the occurrence of accidents can be reduced, and the driving safety is improved. The vehicles need bandwidth resources to transmit traffic information and send the traffic information to paired vehicles, but a plurality of users simultaneously request the resources from the base station, which results in slow response speed and inefficient resource allocation. In addition, different users have different bandwidth resources and delay tolerant requirements. To solve this problem, a network slicing technique is used to divide resources such as bandwidth into a plurality of slices, which are allocated to a plurality of users and are isolated from each other, and can reduce communication interference.

In a task transmission system of the internet of vehicles, the existing pricing method does not consider the conditions of user cost and resource utilization rate, and the more adopted pricing at present is a strategy of only considering the resource use duration or the resource size, so that the resource shortage cannot be relieved or the resource idle waste cannot be avoided.

Disclosure of Invention

Aiming at the problems in the prior art, the embodiment of the invention provides a vehicle-to-vehicle network slice bandwidth resource allocation method and device.

In a first aspect, an embodiment of the present invention provides a vehicle-to-vehicle network slice bandwidth resource allocation method, including:

acquiring respective coordinate information of a first vehicle user and a second vehicle user which need to perform a transmission task at a current time slot t, and determining the first vehicle user and the second vehicle user as an ith vehicle-to-vehicle user pair; the first vehicle user is a vehicle user sending data, the second vehicle user is a vehicle user receiving data, and i is a positive integer;

determining an enhanced mobile broadband cellular user sharing channel farthest from the second vehicle user based on the distance between each enhanced mobile broadband cellular user and the second vehicle user, and acquiring coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user;

determining the transmitting power corresponding to the ith pair of vehicle-to-vehicle users according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle users and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user;

randomly generating a plurality of individual sets I within a preset bandwidth size range, and randomly dividing bandwidth resources to be distributed into two sets I by taking the bandwidth resources as genetic informationA、IBMatching the genetic information of the individuals of the two sets of sets based on an evolution strategy to generate a filial generation set Ic

Calculating the cost of a broadband resource transmission task corresponding to the ith pair of vehicle-to-vehicle user pairs according to the current bandwidth resource occupancy of the edge server and the transmitting power corresponding to the ith pair of vehicle-to-vehicle user pairs;

and calculating a set of children IcThe individual fitness of (1) is set from large to small according to a set IcSorting, and deleting the preset number of individuals after the ranking;

if set IcIf the genetic information after iteration meets a preset convergence condition, calculating the task time delay according to the task size corresponding to the ith pair of vehicle-to-vehicle user pairs;

if the time delay for completing the task is less than or equal to the tolerable time delay of the task, the set I meeting the preset convergence condition after iterationcAs a bandwidth size, to the ith pair of vehicle-to-vehicle users and determining a bandwidth allocation cost.

Further, the determining, according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle user pairs and the coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user, the transmission power corresponding to the ith pair of vehicle-to-vehicle user pairs specifically includes:

determining the transmission rate of the enhanced mobile broadband cellular user according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle user pair and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user;

and under the condition that the enhanced mobile broadband cellular user and the ith vehicle-to-vehicle user share channel resources, and the transmitting power and the bandwidth of the enhanced mobile broadband cellular user are constant values, determining the transmitting power corresponding to the ith vehicle-to-vehicle user.

Further, the determining, according to two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle user pair and the coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user, a transmission rate of the enhanced mobile broadband cellular user specifically includes:

determining the transmission rate of the enhanced mobile broadband cellular user by utilizing a first relation model according to the two pieces of coordinate information corresponding to the ith vehicle-to-vehicle user pair and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user; the first relationship model is:

wherein, N represents that N enhanced mobile broadband cellular users which are randomly distributed exist, and N is a positive integer;indicating the signal-to-interference-and-noise ratio of the jth enhanced mobile broadband cellular user to the base station at the current time slot t;indicating the transmitting power of the jth enhanced mobile broadband cellular user at the current time slot t;indicating that the jth enhanced mobile broadband cellular subscriber-to-base station link is at the current time slot t; sigma2Represents the power of additive white gaussian noise; deltajTake 0 or 1, deltajWhen 0 is taken, the ith pair of the vehicle-to-vehicle user pair is representedThe jth enhanced mobile broadband cellular subscriber does not share the channel, δjWhen 1 is taken, the channel is shared by the ith pair of vehicle-to-vehicle users and the jth enhanced mobile broadband cellular user;indicating the corresponding transmitting power of the jth pair of vehicle-to-vehicle users in the current time slot t;indicating the channel gain of the transmitting vehicle user-to-base station link in the jth pair of vehicle-to-vehicle user pairs at the current time slot t;indicating the data transmission rate of the jth enhanced mobile broadband cellular user at the current time slot t;indicating the bandwidth of the jth enhanced mobile broadband cellular user.

Further, still include:

determining bandwidth allocation cost by adopting a second relation model; the second relationship model is:

Pi v=punitttask

wherein, Pi vRepresenting the determined bandwidth allocation cost; p is a radical ofunitRepresenting a unit price of using the slice bandwidth resource; t is ttaskRepresenting the delay on the transmission task.

In a second aspect, an embodiment of the present invention provides a vehicle-to-vehicle network slice bandwidth resource allocation apparatus, including:

the system comprises a first acquisition module, a second acquisition module and a transmission module, wherein the first acquisition module is used for acquiring respective coordinate information of a first vehicle user and a second vehicle user which need to perform a transmission task at a current time slot t, and determining the first vehicle user and the second vehicle user as an ith vehicle-to-vehicle user pair; the first vehicle user is a vehicle user sending data, the second vehicle user is a vehicle user receiving data, and i is a positive integer;

a second obtaining module, configured to determine, based on a distance between each enhanced mobile broadband cellular user and the second vehicle user, an enhanced mobile broadband cellular user shared channel farthest from the second vehicle user, and obtain coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user;

a first determining module, configured to determine, according to two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle user pairs and coordinate information of an enhanced mobile broadband cellular user farthest from the second vehicle user, a transmission power corresponding to the ith pair of vehicle-to-vehicle user pairs;

a generating module for randomly generating a plurality of individual sets I within a preset bandwidth range, and randomly dividing the bandwidth resources to be distributed into two sets I by taking the bandwidth resources as genetic informationA、IBMatching the genetic information of the individuals of the two sets of sets based on an evolution strategy to generate a filial generation set Ic

The first calculation module is used for calculating the cost of the broadband resource transmission task corresponding to the ith pair of vehicle-to-vehicle user pairs according to the current bandwidth resource occupancy of the edge server and the transmitting power corresponding to the ith pair of vehicle-to-vehicle user pairs;

a second calculation module for calculating the child set IcThe individual fitness of (1) is set from large to small according to a set IcSorting, and deleting the preset number of individuals after the ranking;

a third calculation module for calculating if set IcIf the genetic information after iteration meets a preset convergence condition, calculating the task time delay according to the task size corresponding to the ith pair of vehicle-to-vehicle user pairs;

a second determining module, configured to, if the time delay for completing the task is less than or equal to a tolerable time delay of the task, satisfy the set I of the preset convergence condition after iterationcAs a bandwidth size, to the ith pair of vehicle-to-vehicle users and determining a bandwidth allocation cost.

Further, the first determining module is specifically configured to:

determining the transmission rate of the enhanced mobile broadband cellular user according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle user pair and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user;

and under the condition that the enhanced mobile broadband cellular user and the ith vehicle-to-vehicle user share channel resources, and the transmitting power and the bandwidth of the enhanced mobile broadband cellular user are constant values, determining the transmitting power corresponding to the ith vehicle-to-vehicle user.

Further, when determining the transmission rate of the enhanced mobile broadband cellular subscriber according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle subscriber and the coordinate information of the enhanced mobile broadband cellular subscriber farthest away from the second vehicle subscriber, the first determining module is specifically configured to:

determining the transmission rate of the enhanced mobile broadband cellular user by utilizing a first relation model according to the two pieces of coordinate information corresponding to the ith vehicle-to-vehicle user pair and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user; the first relationship model is:

wherein, N represents that N enhanced mobile broadband cellular users which are randomly distributed exist, and N is a positive integer;indicating the signal-to-interference-and-noise ratio of the jth enhanced mobile broadband cellular user to the base station at the current time slot t;indicating the transmitting power of the jth enhanced mobile broadband cellular user at the current time slot t;indicating that the jth enhanced mobile broadband cellular subscriber-to-base station link is at the current time slot t; sigma2Represents the power of additive white gaussian noise; deltajTake 0 or 1, deltajWhen 0 is taken, the ith pair of vehicle-to-vehicle users and the jth enhanced mobile broadband cellular user do not share the channel, deltajWhen 1 is taken, the channel is shared by the ith pair of vehicle-to-vehicle users and the jth enhanced mobile broadband cellular user;indicating the corresponding transmitting power of the jth pair of vehicle-to-vehicle users in the current time slot t;indicating the channel gain of the transmitting vehicle user-to-base station link in the jth pair of vehicle-to-vehicle user pairs at the current time slot t;indicating the data transmission rate of the jth enhanced mobile broadband cellular user at the current time slot t;indicating the bandwidth of the jth enhanced mobile broadband cellular user.

Further, when determining the bandwidth allocation cost, the second determining module is specifically configured to:

determining bandwidth allocation cost by adopting a second relation model; the second relationship model is:

Pi v=punitttask

wherein, Pi vRepresenting the determined bandwidth allocation cost; p is a radical ofunitRepresenting a unit price of using the slice bandwidth resource; t is ttaskRepresenting the delay on the transmission task.

In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement the steps of the vehicle-to-vehicle network slice bandwidth resource allocation method according to the first aspect.

In a fourth aspect, the embodiments of the present invention also provide a non-transitory computer readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of the vehicle-to-vehicle network slice bandwidth resource allocation method as described in the first aspect above.

According to the technical scheme, the method and the device for allocating the network slice bandwidth resources from the vehicle to the vehicle, provided by the embodiment of the invention, acquire the respective coordinate information of the first vehicle user and the second vehicle user which need to perform the transmission task at the current time slot t, and determine the first vehicle user and the second vehicle user as the ith vehicle-to-vehicle user pair; the first vehicle user is a vehicle user sending data, the second vehicle user is a vehicle user receiving data, and i is a positive integer; determining an enhanced mobile broadband cellular user sharing channel farthest from the second vehicle user based on the distance between each enhanced mobile broadband cellular user and the second vehicle user, and acquiring coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user; determining the transmitting power corresponding to the ith pair of vehicle-to-vehicle users according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle users and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user; randomly generating a plurality of individual sets I within a preset bandwidth size range, and randomly dividing bandwidth resources to be distributed into two sets I by taking the bandwidth resources as genetic informationA、IBMatching the genetic information of the individuals of the two sets of sets based on an evolution strategy to generate a filial generation set Ic(ii) a Calculating the cost of a broadband resource transmission task corresponding to the ith pair of vehicle-to-vehicle user pairs according to the current bandwidth resource occupancy of the edge server and the transmitting power corresponding to the ith pair of vehicle-to-vehicle user pairs; and calculating a set of children IcOf (2)Fitness, set I of pairs from big to littlecSorting, and deleting the preset number of individuals after the ranking; if set IcIf the genetic information after iteration meets a preset convergence condition, calculating the task time delay according to the task size corresponding to the ith pair of vehicle-to-vehicle user pairs; if the time delay for completing the task is less than or equal to the tolerable time delay of the task, the set I meeting the preset convergence condition after iterationcAs a bandwidth size, to the ith pair of vehicle-to-vehicle users and determining a bandwidth allocation cost. The invention can minimize the resource use cost of the vehicle-to-vehicle user pair under the condition of ensuring that the transmission task is completed within the tolerable time delay.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.

Fig. 1 is a schematic flowchart of a vehicle-to-vehicle network slice bandwidth resource allocation method according to an embodiment of the present invention;

FIG. 2 is a schematic diagram of a scenario of vehicle-to-vehicle network slice bandwidth resource allocation according to an embodiment of the present invention;

fig. 3 is a schematic structural diagram of a vehicle-to-vehicle network slice bandwidth resource allocation apparatus according to an embodiment of the present invention;

fig. 4 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments, but not all embodiments, of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. The vehicle-to-vehicle network slice bandwidth resource allocation method provided by the invention is explained and explained in detail through specific embodiments.

Fig. 1 is a schematic flowchart of a vehicle-to-vehicle network slice bandwidth resource allocation method according to an embodiment of the present invention; as shown in fig. 1, the method includes:

step 101: acquiring respective coordinate information of a first vehicle user and a second vehicle user which need to perform a transmission task at a current time slot t, and determining the first vehicle user and the second vehicle user as an ith vehicle-to-vehicle user pair; the first vehicle user is a vehicle user sending data, the second vehicle user is a vehicle user receiving data, and i is a positive integer.

Step 102: and determining the enhanced mobile broadband cellular user sharing channel which is farthest away from the second vehicle user based on the distance between each enhanced mobile broadband cellular user and the second vehicle user, and acquiring the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user.

Step 103: and determining the transmitting power corresponding to the ith pair of vehicle-to-vehicle users according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle users and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user.

Step 104: randomly generating a plurality of individual sets I within a preset bandwidth size range, and randomly dividing bandwidth resources to be distributed into two sets I by taking the bandwidth resources as genetic informationA、IBMatching the genetic information of the individuals of the two sets of sets based on an evolution strategy to generate a filial generation set Ic

Step 105: and calculating the cost of the broadband resource transmission task corresponding to the ith pair of vehicle-to-vehicle user pairs according to the current bandwidth resource occupancy of the edge server and the transmitting power corresponding to the ith pair of vehicle-to-vehicle user pairs.

Step 106: and calculating a set of children IcThe individual fitness of (1) is set from large to small according to a set IcAnd sorting, and deleting the preset number of individuals after the ranking.

Step 107: if set IcAnd if the genetic information after iteration meets a preset convergence condition, calculating the task time delay according to the task size corresponding to the ith pair of vehicle-to-vehicle user pairs.

Step 108: if the time delay for completing the task is less than or equal to the tolerable time delay of the task, the set I meeting the preset convergence condition after iterationcAs a bandwidth size, to the ith pair of vehicle-to-vehicle users and determining a bandwidth allocation cost.

In this embodiment, it should be noted that, in the environment of the radio access network, there are two types of user groups, i.e., the enhanced mobile broadband cellular user group and the vehicle-to-vehicle user group, which request the network slice bandwidth resource, the problem of the transmission task cost of the vehicle-to-vehicle user pair is considered. The existing method does not consider adopting the shared channel resource to reduce the cost, so that the cost of using the resource by the user can not well meet the economic requirement of the user. In order to ensure the resource utilization rate and the user experience, the invention carries out dynamic resource pricing according to the requirements of the user. Then, a vehicle-to-vehicle network slice bandwidth resource allocation method based on power control and an evolution strategy is provided, so that the resource use cost of a vehicle-to-vehicle user pair is minimized under the condition that the transmission task of the vehicle-to-vehicle user pair can be completed within a tolerable time delay; a scene schematic diagram of the vehicle-to-vehicle network slice bandwidth resource allocation is shown in fig. 2, and the scene includes a radio access network composed of a 5G base station and a mobile edge computing server, and a plurality of vehicle-to-vehicle users and enhanced mobile broadband cellular users within a service range.

In this embodiment, it should be noted that the vehicle-to-vehicle network slice bandwidth resource allocation method provided by the embodiment of the present invention is executed based on a vehicle-to-vehicle network slice bandwidth resource allocation system, which is a two-type network slice bandwidth resource allocation systemA bandwidth resource sharing system for a group of users. In the system, a 5G base station is provided with a mobile edge computing server for making a strategy and ensuring the transmission rate of a specific user. Under the emergency conditions of road congestion, traffic accidents and the like, the accident vehicle can report the self condition to other vehicles conveniently. There are M vehicle-to-vehicle user pairs and N randomly distributed enhanced mobile broadband cellular users traveling on the highway around the base station. By ViRepresents the ith vehicle-to-vehicle user pair on the road, where i ∈ {1, 2.., M }; similarly, with CjRepresents the jth enhanced mobile broadband cellular user, where j e {1, 2.

For vehicle users, the task they transmit requires a data size and tolerable latency. Using doublets<m,d>To describe the task attributes, where m represents the task data size and d represents the tolerable latency. To accomplish these data transmission tasks, the vehicle users (i.e., the first vehicle user and the second vehicle user that need to perform the transmission tasks) need the base station to allocate bandwidth resources. For a base station, the network slicing technique can divide bandwidth resources to serve multiple vehicle users, and the isolation characteristic can reduce interference between the vehicle users. Defining the composition of the network slice assigned to the ith vehicle-to-vehicle user pair isWherein WiRepresenting the bandwidth, P, allocated to the vehicle-to-vehicle user pair by the sliceiIndicating the unit price of using the bandwidth resource.

And (3) communication model:

let T slots be assumed, set T ═ 1, 2. Marking the coordinates of the ith pair of vehicle-to-vehicle users transmitting and receiving data as time slots tAndthe j enhanced mobile broadband cellular subscriber has the coordinate ofThe distance between the ith pair of vehicles sending and receiving data to the vehicle user can be calculated by euclidean distance as follows:

the channel gain between them is:

wherein, g0Is the channel gain at the reference distance, p is an exponential random variable with an average value, ahIs the path loss exponent (preset value) in the vehicle-to-vehicle link.

Defining the signal-to-interference-and-noise ratio of the ith vehicle-to-vehicle user pair as:

similarly, the signal-to-interference-and-noise ratio of the jth enhanced mobile broadband cellular user to the base station is

Wherein p isvAnd pcRespectively representing the transmit power of a vehicle-to-vehicle user pair and an enhanced mobile broadband cellular user.Andrespectively representing the channel gains between the ith vehicle-to-vehicle link and the ith enhanced mobile broadband cellular subscriber and the vehicle-to-vehicle receiving subscriber; similarly, the,Andrespectively, representing the channel gains of the jth enhanced mobile broadband cellular subscriber-to-base station link, and the jth vehicle-to-vehicle receiving subscriber-to-base station link. Sigma2Is the power of additive white gaussian noise, δ represents whether the vehicle-to-vehicle user pair shares the channel with the enhanced mobile broadband cellular user, ensuring that each vehicle-to-vehicle user pair can reuse at most one enhanced mobile broadband cellular user's channel. The specific form is as follows:

in time slots t, WvAnd WcRespectively representing a vehicle-to-vehicle user pair and enhancing the bandwidth of a mobile broadband cellular user. The data transfer rates defining the bandwidth of the vehicle-to-vehicle user pair and the enhanced mobile broadband cellular user are respectively:

the instantaneous data transmission rate of the vehicle is measured once per time slot, the average transmission rate then being

According to the task data size m of the ith vehicle-to-vehicle user pairiAnd average transmission rate of vehiclesThe time delay on the transmission task can be obtained as

Pricing model:

considering the utilization rate of bandwidth resources and user experience, defining a unit price function of using slice resources as

Punit=λeμx+υ (10)

Where x is related to slice bandwidth resource occupancy. λ is the initial unit price of the slicing resource, i.e. the size of the bandwidth allocated to the user. Mu represents how fast the unit price varies with x, and υ represents the lowest unit price of the resource provided by the infrastructure provider. Lambda and upsilon jointly determine the starting unit price of the resource, and the parameters are positive values.

Defining the cost of the ith vehicle-to-vehicle user for the task of transmitting through the bandwidth resource as

Pi v=punitttask (11)

The implementation process comprises the following steps:

(1) and initializing the environment information. Under the current time slot t, the coordinates of the ith pair of vehicle-to-vehicle users which need to transmit and receive data of the task are acquired asAndaccording to the formula (3), in order to make the signal-to-interference-and-noise ratio of the vehicle-to-vehicle user larger, the enhanced mobile broadband cellular user with smaller channel gain between the vehicle-to-vehicle receiving user is selected, that is, according to the calculation of the formula (1), the enhanced mobile broadband cellular user sharing channel with the farthest distance between the vehicle-to-vehicle user receiving data is selected, and the coordinate of the enhanced mobile broadband cellular user sharing channel is obtained

(2) And decomposing the transmission task problem of the vehicle to the vehicle user pair into a power control problem and a bandwidth resource allocation problem, and firstly deducing the transmission power control of the vehicle to the vehicle user pair. Obtaining the transmission rate of the enhanced mobile broadband cellular user according to the coordinates of the two types of users, the formula (4) and the formula (7)On this basis, the channel resource is shared by two types of users and the transmitting power p of the mobile broadband cellular user is enhancedvAnd bandwidth WcFor constant values, the transmission power of the vehicle-to-vehicle user pair is deduced in the reverse direction

(3) And finding out the slice bandwidth resource allocation scheme with the lowest cost from the ith vehicle to the vehicle user based on the evolution strategy. Randomly generating P individual sets I ═ I { I } within a specified bandwidth size range1,i2,...,ii,...,ipAnd (f) initializing genetic information DNA and variation strength mut _ int of each individual of the population by taking the bandwidth resources to be allocated as the genetic information, wherein for the ith individual, the attribute is ii={DNAi,mut_inti}。

(4) Randomly dividing P individuals into A, B two groups, IA={iA 1,iA 2,...,iA i,...,iA p/2},IB={iB 1,iB 2,...,iB i,...,iB p/2Matching A, B two groups of individual genetic information with the same sequence number, taking the first half of the individual information of the group A and the second half of the individual information of the group B, and combining to generate a C group of offspring individuals IC={iC 1,iC 2,...,iC i,...,iC p/2}, e.g. iA iAnd iB iGenerating filial generation individuals i after pairingC i={DNAC i,mut_intC iDNA of genetic information of }C iAnd the variation intensity mut intC iAre respectively DNAC i←merge(first_half(DNAA i),last_half(DNAB i)},mut_intC i←merge(first_half(mut_intA i),last_half(mut_intB i)}。

(5) Altering genetic information of progeny individuals based on the strength of variation, e.g. individual iC iDNA of (a) genetic informationC i←DNAC i+mut_intC i. Since the genetic information tends to be stable after many iterations, the variation intensity should also be gradually reduced when mut _ intC iGreater than 0, mut _ intC i←mut_intC i-mut _ constant, wherein mut _ constant is a small constant; otherwise mut _ intC i←0。

(6) And according to the current bandwidth resource occupancy rate condition of the server, calculating the unit price of the slice bandwidth resource according to a formula (10), and calculating the cost according to a formula (11). On the basis of the above-mentioned operation, calculating child set ICIndividual fitness ofFitness by individual F ═ F1,f2,...,fi,...,fp/2Set of large to small pairs ICSorting and deleting the second half of the ranked individuals to obtain IC={iC 1,iC 2,...,iC p/4}。

(7) If set ICThe genetic information is converged after iteration, then the step (8) is carried out, otherwise, the filial generation set is regarded as the initial population I ← ICAnd starting to iterate to step (4).

(8) Calculating the time delay t for completing the task according to the size of the task from the ith vehicle to the vehicle user pair and the formulas (8) and (9)task. If the time delay t is finishedtaskThe time delay d which is less than or equal to the tolerable time delay d of the task is reached to step (9); otherwise, go to step (1);

(9) And (3) allocating the genetic information in the step (7) as a bandwidth size to the ith vehicle-to-vehicle user pair, and calculating the cost thereof according to equation (11).

Therefore, the vehicle-to-vehicle network slice bandwidth resource allocation method provided by the embodiment of the invention is a vehicle-to-vehicle slice resource allocation method based on power control and evolution strategies, records the coordinates of a vehicle-to-vehicle user pair and an enhanced mobile broadband cellular user during an initial time slot, firstly deduces the transmission power control of the vehicle-to-vehicle user pair according to the positions of the two types of users and the transmission power of the enhanced mobile broadband cellular user, and then finds out the slice bandwidth resource allocation scheme with the lowest cost of the vehicle-to-vehicle user pair based on the evolution strategies.

According to the technical scheme, the method for allocating the bandwidth resources of the network slices from the vehicle to the vehicle, provided by the embodiment of the invention, comprises the steps of acquiring the respective coordinate information of a first vehicle user and a second vehicle user which need to perform a transmission task at the current time slot t, and determining the first vehicle user and the second vehicle user as an ith pair of vehicle-to-vehicle users; the first vehicle user is a vehicle user sending data, the second vehicle user is a vehicle user receiving data, and i is a positive integer; determining an enhanced mobile broadband cellular user sharing channel farthest from the second vehicle user based on the distance between each enhanced mobile broadband cellular user and the second vehicle user, and acquiring coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user; determining the transmitting power corresponding to the ith pair of vehicle-to-vehicle users according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle users and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user; randomly generating a plurality of individual sets I within a preset bandwidth size range, and randomly dividing bandwidth resources to be distributed into two sets I by taking the bandwidth resources as genetic informationA、IBMatching the genetic information of the individuals of the two sets of sets based on an evolution strategy to generate a filial generation set Ic(ii) a According to the current of the edge serverCalculating the cost of a broadband resource transmission task corresponding to the ith pair of vehicle-to-vehicle user pairs according to the bandwidth resource occupancy and the transmitting power corresponding to the ith pair of vehicle-to-vehicle user pairs; and calculating a set of children IcThe individual fitness of (1) is set from large to small according to a set IcSorting, and deleting the preset number of individuals after the ranking; if set IcIf the genetic information after iteration meets a preset convergence condition, calculating the task time delay according to the task size corresponding to the ith pair of vehicle-to-vehicle user pairs; if the time delay for completing the task is less than or equal to the tolerable time delay of the task, the set I meeting the preset convergence condition after iterationcAs a bandwidth size, to the ith pair of vehicle-to-vehicle users and determining a bandwidth allocation cost. The invention can minimize the resource use cost of the vehicle-to-vehicle user pair under the condition of ensuring that the transmission task is completed within the tolerable time delay.

On the basis of the foregoing embodiment, in this embodiment, the determining the transmission power corresponding to the ith pair of vehicle-to-vehicle users according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle users and the coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user specifically includes:

determining the transmission rate of the enhanced mobile broadband cellular user according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle user pair and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user;

and under the condition that the enhanced mobile broadband cellular user and the ith vehicle-to-vehicle user share channel resources, and the transmitting power and the bandwidth of the enhanced mobile broadband cellular user are constant values, determining the transmitting power corresponding to the ith vehicle-to-vehicle user.

On the basis of the foregoing embodiment, in this embodiment, the determining the transmission rate of the enhanced mobile broadband cellular subscriber according to two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle subscriber pair and the coordinate information of the enhanced mobile broadband cellular subscriber farthest away from the second vehicle subscriber specifically includes:

determining the transmission rate of the enhanced mobile broadband cellular user by utilizing a first relation model according to the two pieces of coordinate information corresponding to the ith vehicle-to-vehicle user pair and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user; the first relationship model is:

wherein, N represents that N enhanced mobile broadband cellular users which are randomly distributed exist, and N is a positive integer;indicating the signal-to-interference-and-noise ratio of the jth enhanced mobile broadband cellular user to the base station at the current time slot t;indicating the transmitting power of the jth enhanced mobile broadband cellular user at the current time slot t;indicating that the jth enhanced mobile broadband cellular subscriber-to-base station link is at the current time slot t; sigma2Represents the power of additive white gaussian noise; deltajTake 0 or 1, deltajWhen 0 is taken, the ith pair of vehicle-to-vehicle users and the jth enhanced mobile broadband cellular user do not share the channel, deltajWhen 1 is taken, the channel is shared by the ith pair of vehicle-to-vehicle users and the jth enhanced mobile broadband cellular user;indicating the corresponding transmitting power of the jth pair of vehicle-to-vehicle users in the current time slot t;indicating that the jth pair of vehicle-to-vehicle users is paired at the current time slot tThe channel gain of the transmitting vehicle user to base station link in (1);indicating the data transmission rate of the jth enhanced mobile broadband cellular user at the current time slot t;indicating the bandwidth of the jth enhanced mobile broadband cellular user.

On the basis of the above embodiment, in this embodiment, the method further includes:

determining bandwidth allocation cost by adopting a second relation model; the second relationship model is:

Pi v=punitttask

wherein, Pi vRepresenting the determined bandwidth allocation cost; p is a radical ofunitRepresenting a unit price of using the slice bandwidth resource; t is ttaskRepresenting the delay on the transmission task.

Fig. 3 is a schematic structural diagram of a vehicle-to-vehicle network slice bandwidth resource allocation apparatus according to an embodiment of the present invention, and as shown in fig. 3, the apparatus includes: a first obtaining module 201, a second obtaining module 202, a first determining module 203, a generating module 204, a first calculating module 205, a second calculating module 206, a third calculating module 207, and a second determining module 208, wherein:

the first obtaining module 201 is configured to obtain, at a current time slot t, respective coordinate information of a first vehicle user and a second vehicle user that need to perform a transmission task, and determine the first vehicle user and the second vehicle user as an ith vehicle-to-vehicle user pair; the first vehicle user is a vehicle user sending data, the second vehicle user is a vehicle user receiving data, and i is a positive integer;

a second obtaining module 202, configured to determine, based on a distance between each enhanced mobile broadband cellular user and the second vehicle user, an enhanced mobile broadband cellular user sharing channel farthest from the second vehicle user, and obtain coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user;

a first determining module 203, configured to determine a transmitting power corresponding to the ith pair of vehicle-to-vehicle users according to two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle users and coordinate information of an enhanced mobile broadband cellular user farthest from the second vehicle user;

a generating module 204, configured to randomly generate a plurality of individual sets I within a preset bandwidth range, and randomly divide bandwidth resources to be allocated into two sets I as genetic informationA、IBMatching the genetic information of the individuals of the two sets of sets based on an evolution strategy to generate a filial generation set Ic

A first calculating module 205, configured to calculate, according to a current bandwidth resource occupancy of the edge server and a transmitting power corresponding to the ith pair of vehicle-to-vehicle user pairs, a cost of a broadband resource transmission task corresponding to the ith pair of vehicle-to-vehicle user pairs;

a second calculation module 206 for calculating the child set IcThe individual fitness of (1) is set from large to small according to a set IcSorting, and deleting the preset number of individuals after the ranking;

a third calculation module 207 for calculating the set IcIf the genetic information after iteration meets a preset convergence condition, calculating the task time delay according to the task size corresponding to the ith pair of vehicle-to-vehicle user pairs;

a second determining module 208, configured to, if the time delay for completing the task is less than or equal to a tolerable time delay of the task, determine that the set I after iteration meets a preset convergence conditioncAs a bandwidth size, to the ith pair of vehicle-to-vehicle users and determining a bandwidth allocation cost.

The vehicle-to-vehicle network slice bandwidth resource allocation device provided by the embodiment of the invention can be specifically used for executing the vehicle-to-vehicle network slice bandwidth resource allocation method of the embodiment, the technical principle and the beneficial effect are similar, and reference can be specifically made to the embodiment, and details are not repeated here.

Based on the same inventive concept, an embodiment of the present invention provides an electronic device, which specifically includes the following components, with reference to fig. 4: a processor 301, a communication interface 303, a memory 302, and a communication bus 304;

the processor 301, the communication interface 303 and the memory 302 complete mutual communication through the communication bus 304; the communication interface 303 is used for realizing information transmission between related devices such as modeling software, an intelligent manufacturing equipment module library and the like; the processor 301 is used for calling the computer program in the memory 302, and the processor executes the computer program to implement the method provided by the above method embodiments, for example, the processor executes the computer program to implement the following steps: acquiring respective coordinate information of a first vehicle user and a second vehicle user which need to perform a transmission task at a current time slot t, and determining the first vehicle user and the second vehicle user as an ith vehicle-to-vehicle user pair; the first vehicle user is a vehicle user sending data, the second vehicle user is a vehicle user receiving data, and i is a positive integer; determining an enhanced mobile broadband cellular user sharing channel farthest from the second vehicle user based on the distance between each enhanced mobile broadband cellular user and the second vehicle user, and acquiring coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user; determining the transmitting power corresponding to the ith pair of vehicle-to-vehicle users according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle users and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user; randomly generating a plurality of individual sets I within a preset bandwidth size range, and randomly dividing bandwidth resources to be distributed into two sets I by taking the bandwidth resources as genetic informationA、IBMatching the genetic information of the individuals of the two sets of sets based on an evolution strategy to generate a filial generation set Ic(ii) a Calculating the cost of a broadband resource transmission task corresponding to the ith pair of vehicle-to-vehicle user pairs according to the current bandwidth resource occupancy of the edge server and the transmitting power corresponding to the ith pair of vehicle-to-vehicle user pairs; and calculateSet of children IcThe individual fitness of (1) is set from large to small according to a set IcSorting, and deleting the preset number of individuals after the ranking; if set IcIf the genetic information after iteration meets a preset convergence condition, calculating the task time delay according to the task size corresponding to the ith pair of vehicle-to-vehicle user pairs; if the time delay for completing the task is less than or equal to the tolerable time delay of the task, the set I meeting the preset convergence condition after iterationcAs a bandwidth size, to the ith pair of vehicle-to-vehicle users and determining a bandwidth allocation cost.

Based on the same inventive concept, yet another embodiment of the present invention further provides a non-transitory computer-readable storage medium, having a computer program stored thereon, where the computer program is implemented by a processor to perform the methods provided by the above method embodiments, for example, at a current time slot t, obtaining respective coordinate information of a first vehicle user and a second vehicle user that need to perform a transmission task, and determining the first vehicle user and the second vehicle user as an ith pair of vehicle-to-vehicle users; the first vehicle user is a vehicle user sending data, the second vehicle user is a vehicle user receiving data, and i is a positive integer; determining an enhanced mobile broadband cellular user sharing channel farthest from the second vehicle user based on the distance between each enhanced mobile broadband cellular user and the second vehicle user, and acquiring coordinate information of the enhanced mobile broadband cellular user farthest from the second vehicle user; determining the transmitting power corresponding to the ith pair of vehicle-to-vehicle users according to the two pieces of coordinate information corresponding to the ith pair of vehicle-to-vehicle users and the coordinate information of the enhanced mobile broadband cellular user which is farthest away from the second vehicle user; randomly generating a plurality of individual sets I within a preset bandwidth size range, and randomly dividing bandwidth resources to be distributed into two sets I by taking the bandwidth resources as genetic informationA、IBMatching the genetic information of the individuals of the two sets of sets based on an evolution strategy to generate a filial generation set Ic(ii) a According to the current bandwidth resource occupancy rate of the edge server and the ith vehicle-to-vehicle ratioCalculating the cost of the broadband resource transmission task corresponding to the ith pair of vehicle-to-vehicle user pairs according to the corresponding transmitting power of the user pairs; and calculating a set of children IcThe individual fitness of (1) is set from large to small according to a set IcSorting, and deleting the preset number of individuals after the ranking; if set IcIf the genetic information after iteration meets a preset convergence condition, calculating the task time delay according to the task size corresponding to the ith pair of vehicle-to-vehicle user pairs; if the time delay for completing the task is less than or equal to the tolerable time delay of the task, the set I meeting the preset convergence condition after iterationcAs a bandwidth size, to the ith pair of vehicle-to-vehicle users and determining a bandwidth allocation cost.

The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.

Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.

In addition, in the present invention, terms such as "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.

Moreover, in the present invention, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Furthermore, in the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.

Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于5G核心网的业务流转发方法、装置及设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!