Intelligent network connection automobile task processing method based on decentralized calculation
By using the Red-billed Owl optimization algorithm to dynamically allocate resources and place applications in the distributed computing network, the problem of delay and throughput limitations of autonomous vehicles when transmitting delay-sensitive data is solved, and efficient task processing and QoS guarantee are achieved. .
Patent Information
- Application Number
- CN202410771808.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-15
- Publication Date
- 2024-10-22
AI Technical Summary
When autonomous vehicles transmit and process delay-sensitive data, they are affected by network bandwidth and delay issues. As a result, traditional centralized cloud computing centers cannot meet the real-time data processing needs and need to run on distributed computing systems to improve processing efficiency and ensure QoS. .
An intelligent connected car task processing method based on distributed computing is adopted, and the Red-billed Owl optimization algorithm is used to dynamically allocate resources and place applications on distributed computing nodes, optimize task allocation and resource allocation, and improve application processing efficiency and QoS.
It maximizes the task processing efficiency of autonomous driving applications in distributed computing networks, solves the delay and throughput limitations of delay-sensitive tasks in traditional cloud computing centers, and ensures the real-time data processing capabilities of applications.
Smart Images

Figure CN118819823A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent networked vehicles, and in particular to an intelligent networked vehicle task processing method based on distributed computing. Background Art
[0002] During the driving process, autonomous vehicles will generate "big" data through their own sensors and interactions with other external network devices. Applications running on autonomous vehicles require the analysis of continuous data streams generated by sources such as the vehicle's own sensors and the Internet of Vehicles. High-level autonomous driving provides a large number of applications, such as driving safety, traffic information, and in-vehicle entertainment. Among them, driving safety applications have high performance and real-time requirements for the vehicle itself, but the amount of data transmitted is usually small. In order to transmit and process large data, traditional data stream applications are generally deployed in centralized large-scale cloud computing centers. Practice has shown that when delay-sensitive data for autonomous driving is sent to cloud servers, due to network bandwidth, high latency, security and other issues, autonomous driving-related applications are usually unable to access such a single computing center with sufficient computing resources to process real-time data. When the network throughput is severely limited or when performing delay-sensitive tasks for autonomous driving, there may be problems. In this context, applications for autonomous driving data processing need to run on decentralized computing systems, need to perceive the topology of the computing network, need to determine the processing rate and computing location of the application for different data streams, and also need to consider the dynamic status of the computing network to effectively utilize heterogeneous available resources. Summary of the invention
[0003] In view of this, the embodiment of the present invention provides a method for processing tasks of intelligent connected vehicles based on distributed computing, which solves the problem when the network throughput is severely limited or when delay-sensitive tasks of autonomous driving are executed by running the resource allocation and application placement algorithms required for computing tasks on various computing nodes distributed in the network. The use of stream processing to achieve dynamic allocation of distributed computing resources is not only conducive to improving the processing efficiency of applications, but also plays an important role in ensuring the QoS of autonomous driving applications.
[0004] The embodiment of the present invention discloses a method for processing tasks of an intelligent connected vehicle based on distributed computing, comprising:
[0005] Build an autonomous driving network model based on distributed computing;
[0006] Build a typical model of stream processing for autonomous driving applications based on distributed computing;
[0007] Build task allocation models and resource allocation models for stream processing applications;
[0008] Optimize the task allocation and resource allocation of autonomous driving flow processing applications based on the Red-headed Gull optimization algorithm;
[0009] The optimization algorithm for the red-headed gull is:
[0010] Step 1: Decompose the general problem of stream processing application into two sub-problems: task allocation problem and resource allocation problem. Initialize the number of iterations g = 1, and the population of red-headed gulls in each habitat is S1 and S2;
[0011] Step 2: Conduct a suitability assessment and evaluate each red-headed gull based on its location;
[0012] Step 3: If no optimal solution is obtained, or the number of iterations is less than the maximum number of iterations, the red-headed gulls are divided into two populations according to their habitats, and the red-headed gulls of the two populations are sorted according to their suitability, and the red-headed gulls that do not meet the suitability conditions are migrated;
[0013] Step 4: After the migration process is completed, the populations in the habitat are sorted by suitability, and the positions of some of the red-headed gulls that have eaten are retained. The positions of some of the red-headed gulls that have eaten are the elite solutions, and foraging operations are performed on other red-headed gulls;
[0014] Step 5: Sort the candidate solutions and delete duplicate solutions, and replace the same number of solutions ranked lower in the candidate solution set with the current elite solution;
[0015] Step 6: Output the optimal solution.
[0016] In one embodiment of the present invention, the position state of the red-headed gull after the g-th iteration is recorded as X={X1(g),X2(g),...,X S (g)}, X∈F, F is the feasible domain space of the problem, S is the number of red-headed gulls, X i represents the state of the i-th (i∈S) population of red-headed gulls;
[0017] For all X i and X j , use p i,j Indicates that the red-headed gull from X i Status to X j The transition probability of the state;
[0018] Let Z(g)=max{f(x i (g))|i=1,...,S} is a set of random variables, representing the best position state after g iterations in the population represented by i if and only if
[0019]
[0020] where f *=max{f(x)} is the global optimal solution to the optimization problem to be solved.
[0021] In one embodiment of the present invention, the best solution found by the Red-headed Gull Optimization Algorithm over time converges to the global optimum.
[0022] In one embodiment of the present invention, in the red-headed gull optimization algorithm, for each red-headed gull state X i (g), i = 1, 2, ..., S is a state on a finite Markov chain, that is, the state sequence is a finite Markov chain.
[0023] In one embodiment of the present invention, in the red-headed gull optimization algorithm, for all X i and X j , i, j∈S; the state transition probability satisfies:
[0024]
[0025] In one embodiment of the present invention, the autonomous driving network includes Compute nodes and communication links, indexed by j, where and Represents a collection of computing nodes and communication links respectively, and stream processing applications include Computational tasks and communication tasks, indexed by i, and They represent the collection of computing tasks and communication tasks respectively. Each computing node has different types and quantities of computing resources, and each link has different communication capabilities. The resources of each node n and link l are divided into R n and R l , that is, node n can serve at most R n computing tasks, link l can serve at most R l communication tasks, and the resource sets are represented as
[0026] In one embodiment of the present invention, each autonomous driving application is modeled as a directed acyclic graph The available network computing nodes NCP are the set The computation nodes in the graph are The vertices in the graph are links. The edge, link Link in the set middle;
[0027] For an application, all its tasks will be mapped to the computing network, where computing tasks are mapped to computing nodes and communication tasks are mapped to communication links, i.e., the flow of data.
[0028] When all the computing tasks of an application Mapped to a specific computing node, all communication tasks When mapped to the corresponding links of the computing network, the graph at this time is the task allocation trace of the application.
[0029] In one embodiment of the present invention, the model of the task allocation trace for maximizing the application processing rate is as follows:
[0030]
[0031] The objective function in the formula is the bottleneck processing rate, and the resources on the computing node / link are represented by C j , the resources required to process a unit data unit are uniformly expressed as a i ;
[0032] The second formula represents the resource capacity constraint of each computing node / link j;
[0033] w j,r ∈{0,1}, Medium j,r ∈{0,1} represents the resource decision variable. If the rth resource in node / link j is used, then w j,r =1, otherwise w j,r =0;
[0034] Indicates that each task can and must be assigned to a node or link in the network.
[0035] is the matrix of associated decision variables;
[0036] y i,j ∈{0,1}, If computing / transmission task i is placed on computing node / link j, then y i,j =1, otherwise y i,j =0;
[0037] Formula (3-1c) is the task capacity constraint, that is, the total amount of tasks placed on computing node / link j does not exceed the amount of resource types that can be provided on computing node / link j;
[0038] Formula (3-1f) represents the data processing rate constraint, that is, the processing data of the entire application is less than the service rate of the slowest computing node or link in the trace. represents all tasks on computing node / link j. The resources on each computing node / link include the computing capacity of the computing node or the communication capacity of the link. For a given resource type r, it is represented as C on node / link j. j,r , a i,r Represents the computing / communication resources required to compute / transmit a unit of data.
[0039] In one embodiment of the present invention, when a given task graph There are adjacent computing tasks i and i′, and there is a communication task between i and i′ For transmission, computing tasks i and i′ are placed on the corresponding NCPj and NCPj′, and communication tasks The optimal trace P is placed between NCPj and NCPj′ * The optimal task allocation trace for all links in (j,j′) is expressed as
[0040]
[0041] Where j and j′ are the NCPs placed by computing tasks j and j′ respectively;
[0042] If two computing nodes j and j′ are both assigned computing tasks i and i′, and the two computing tasks i and i′ are in the task graph The two computing tasks are adjacent to each other only through the communication task Connection, then the task distribution trace set connecting the two computing nodes j and j′ Communication tasks must be placed on the (j, j′) links of all traces in The connection between two computing nodes is bidirectional and unique. is the set of all communication traces between computing nodes j and j′.
[0043] In one embodiment of the present invention, the resource allocation model with the objective function set to maximize the data processing rate is as follows:
[0044]
[0045] stRX<C
[0046]
[0047] A≠B,A∈{0,1},B∈{0,1}
[0048] Among them, stRX<C, R is the length of The vector represents the location information of the task on the computing node / link; X is the vector of the processing rate x obtained by the application; C is a vector representing the resource capacity of the computing node / link;
[0049] Formula P3-2 A and B are decision parameters. When A=1 and B=0, it means that the application at this time is a time-delay application. When A=0 and B=1, it means that the application at this time is an available application.
[0050] When A=1 and B=0, the resource allocation model for delay-based applications is:
[0051]
[0052] in Indicates the number of task allocation traces assigned to the application. Formula (3-7a) is the utility constraint, U I Represents the utility value, i.e., the utility threshold of the application; MR I Indicates the minimum processing rate of the application; r represents all The effective processing rate of the traces is represents the probability that the trace l is valid, r l Indicates the processing rate of trace l. When multiple traces have no intersection, When the effective processing rates of multiple traces are greater than or equal to the minimum processing rate, the total utility of the set of these traces is greater than the utility threshold required by the application. is the minimum number of traces, corresponding to the minimum number of computing nodes / links allocated to the application.
[0053] The present invention completes the establishment of a distributed computing allocation model and algorithm design for autonomous driving applications, and solves the distributed computing task allocation and resource allocation problems for autonomous driving applications through the proposed algorithm. First, for autonomous driving applications, and in combination with distributed computing, a stream processing application model and an autonomous driving network model based on distributed computing are given. Secondly, considering the task allocation and resource allocation problems of autonomous driving application processing in distributed computing networks, a task allocation and resource allocation model for stream processing applications is designed. Under the dual premise of considering computing node resources and communication link resources, the focus is on the optimization problem of task processing efficiency of computing nodes and communication links in distributed computing networks, and a red-headed gull optimization algorithm suitable for the joint optimization of task allocation and resource allocation is proposed to address the above problems, thereby improving the task processing efficiency of autonomous driving applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 This is a flow chart of a method for processing tasks of an intelligent connected vehicle based on distributed computing according to an embodiment of the present invention.
[0055] Figure 2This is a flow chart of the red-headed gull optimization algorithm according to an embodiment of the present invention.
[0056] Figure 3 This is a schematic diagram of an autonomous driving network according to an embodiment of the present invention.
[0057] Figure 4 This is a schematic diagram of a typical model of stream processing for an autonomous driving application based on distributed computing according to an embodiment of the present invention.
[0058] Figure 5 A schematic diagram of task allocation traces according to an embodiment of the present invention.
[0059] Figure 6 A schematic diagram of task allocation traces according to another embodiment of the present invention. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] The embodiment of the present invention discloses a method for processing tasks of an intelligent connected vehicle based on distributed computing, comprising:
[0062] S1: Build an autonomous driving network model based on distributed computing;
[0063] S2: Build a typical model of stream processing for autonomous driving applications based on distributed computing;
[0064] S3: Build task allocation model and resource allocation model for stream processing applications;
[0065] S4: Based on the Red-headed Gull optimization algorithm, optimize the task allocation and resource allocation of autonomous driving flow processing applications.
[0066] In step S1, Figure 3 As shown, it is necessary to establish an autonomous driving network consisting of a traffic command center and autonomous driving vehicles 1, intelligent terminal devices, roadside units 4, and even pedestrians. Figure 3The parked vehicle 2 is also included, the filled T-shaped square is the original computing task, and the unfilled T-shaped square is the computing subtask. All computing-capable devices in the network form decentralized network computing points (NCPs), and there is no strict central node in the network (the cloud center, edge server, etc. are computing nodes of equal status at this time). All nodes use on-demand routing protocols and active routing mechanisms to coordinate their behaviors, so as to quickly and automatically form an independent network and perform calculations spontaneously and collaboratively. For autonomous driving tasks, especially in the absence of fixed infrastructure, a temporary network between mobile devices with computing capabilities can be established for sharing resources, transmitting data, etc., and its network can be considered to be a mobile self-organizing network. The present invention considers two types of network computing nodes: fixed servers on the base station side and mobile devices. The computing tasks related to autonomous driving vehicles are generated by the vehicle itself and other network computing nodes, and are locally or partially offloaded to other single-hop linked NCPs for execution depending on the tasks. The completed tasks are fed back to the final consumer, the autonomous driving vehicle, in the form of data. In the present invention, the autonomous driving task can be divided into computing tasks and recursively unloaded by multi-hop forwarding until a preset threshold (such as a delay constraint) is reached or the task goal is maximized and the recursion is stopped.
[0067] like Figure 4 As shown, the data source is two cameras, and the two cameras capture the image stream T comp1 and T comp2 As a data unit in the data source of an application. Communication task T comp1 and T comp2 The data unit will be sent to the next computing task via the Internet and bus. comp3 Preprocess the image stream to detect objects and pass the detected objects through T comp3 Send to the next computing task. Computing task T comp4 Perform morphological processing on the image stream and convert the image into a grayscale image. comp5 Detect the main traffic participants and traffic signs in the image. comp6 Using the classification algorithm, the detected objects are classified according to the requirements and the prior definition. Finally, the communication task T comp6 The classified results are output to the consumer. In this article, the consumer has no special definition and usually refers to the autonomous driving vehicle itself.
[0068] The optimization algorithm for the red-headed gull is:
[0069] S41: Decompose the general problem of stream processing application into two sub-problems: task allocation problem and resource allocation problem. Initialize the number of iterations g = 1, and the population of red-headed gulls in each habitat is S1 and S2;
[0070] S42: Conduct a suitability assessment and evaluate each red-headed gull based on its location;
[0071] S43: If no optimal solution is obtained, or the number of iterations is less than the maximum number of iterations, the red-headed gulls are divided into two populations according to their habitats, and the red-headed gulls of the two populations are sorted according to their suitability, and the red-headed gulls that do not meet the suitability conditions are migrated;
[0072] S44: After the migration process is completed, the populations in the habitat are sorted by suitability, and the positions of some of the red-headed gulls that have eaten are retained. The positions of some of the red-headed gulls that have eaten are the elite solutions, and foraging operations are performed on other red-headed gulls;
[0073] S45: Sort the candidate solutions and delete duplicate solutions, and replace the same number of solutions ranked lower in the candidate solution set with the current elite solution; the candidate solution is a subset of the neighborhood solution set of the initial solution. Duplicate solutions are solutions that are repeated in the solution set of the algorithm in the current iteration and the previous iteration.
[0074] S46: Output the optimal solution.
[0075] The Black-headed Gull Optimal (BGO) algorithm is a new metaheuristic algorithm proposed by simulating the winter behavior of black-headed gulls and considering continuous optimization problems. Black-headed gulls are found all over the world and are famous for their red beaks. Every year, about 40,000 black-headed gulls fly thousands of kilometers from Siberia and other places to Kunming, Yunnan Province, my country to spend the winter, and leave one after another after the beginning of spring next year. In Kunming, black-headed gulls mainly choose Dianchi Lake and Cuihu Lake as their main habitats. During the winter process, considering the migration of the black-headed gull group from north to south in winter and the foraging in the main waters of Kunming, the position of the black-headed gulls is mainly updated in the above two ways. In BGO, the global search process is first realized through migration operations. The second is to realize the local search process through foraging operations. The search process of the entire BGO algorithm is jointly acted by migration behavior and foraging behavior. The BGO algorithm is suitable for task parallel computing in distributed computing network scenarios, and achieves a balance between optimization and diversity.
[0076] Reasonable assumption
[0077] 1) Red-headed gulls are only found in the southern and northern habitats H1 and H2, and it is impossible for an individual red-headed gull to be in both habitats at the same time. Red-headed gulls on the migration route are also considered to belong to one of the habitats;
[0078] 2) During migration, the initial and final positions of red-headed gulls are different to avoid occupying the same position with each other;
[0079] 3) In a habitat, red-headed gulls in poor locations will move to better locations to forage for food.
[0080] Migration Operation
[0081] Like all seasonal migratory animals, red-headed gulls migrate from north to south in November and from south to north in March. The total population of red-headed gulls is constant, denoted as S, and the corresponding populations in the north and south habitats are S1 and S2 respectively:
[0082] S1=h1·S (3-11a)
[0083] S2=h2·S (3-11b)
[0084] Among them, h n (h1+h2=1) is the suitability parameter. The higher the suitability, the more red-headed gulls live in the habitat. Because red-headed gulls will only stay in a fixed habitat in a certain period of time, and generally there is no simultaneous migration and emigration. Therefore, the migration behavior of red-headed gull i is expressed as:
[0085] Pos i,k =Pos rn,k -A 2 ·Rand1·(Pos rn,k -Pos i,k ),r hn ≤h n (3-12a)
[0086]
[0087] Among them, Pos i,k represents a red-headed gull i, i∈{0,...,P n}Pos i The kth suitability element in Pos rn,k Indicates the habitat Pos corresponding to the red-headed gull rn rn rn represents a random selection of black-headed gulls from habitat n. represents another habitat corresponding to habitat n. In the condition, r hn represents a random suitability parameter. In addition, A is the update parameter, which can be expressed as:
[0088] A=2-g / G max (3-13)
[0089] g and G maxRepresent the current iteration number and the maximum iteration number respectively. Rand1 is any random number in [0,1]. The purpose of squaring A in formula (3-12) is to increase the update step of the position, so that the convergence speed can be improved during the global search process.
[0090] For all black-headed gulls i∈{0,...,S n}, generate a random suitability parameter r hn When the randomly generated suitability parameter r hn Less than or equal to the habitat suitability parameter h n , it means that the habitat is suitable for the current number of red-headed gulls to live, so its position is randomly updated in this habitat; when the randomly generated suitability parameter r hn Greater than or equal to the habitat suitability parameter h n , it means that the habitat is not suitable for the current number of red-headed gulls to live, so it is necessary to randomly update the excess number of red-headed gulls in this habitat to the location of another habitat.
[0091] Foraging Operation
[0092] After completing the migration operation, the red-headed gull i arrives at a habitat with a higher suitability. The red-headed gull j in the habitat n with a larger number of red-headed gulls will then perform foraging operations locally, so the red-headed gulls will re-update their positions based on the difficulty of foraging nearby. During the foraging operation, some red-headed gulls are good at snatching and finding food, and are currently full. These red-headed gulls will no longer update their positions, that is,
[0093] Pos e,k =Pos best,k (3-14)
[0094] As in formula (3-14), Pos e It means that during the foraging operation, there are e black-headed gulls in the optimal position and no longer need to forage. This can be understood as the retention of elite solutions. In each round of iteration, the BGO algorithm will retain the top e solutions and continue to bring them into the next round of iteration.
[0095] For the other most of the red-headed gulls that have not eaten enough, they need to find more food, and the food rate near the full red-headed gulls is obviously higher than the food rate at their current location. The full red-headed gulls tend to fly to the vicinity of the resting red-headed gulls. Therefore, the operation of this part of foraging can be expressed as:
[0096] Pos i′,k =B·Rand2·cos(2Rπ)·(mean(Pos best,k )-Pos i′,k)+mean(Pos best,k ) (3-15)
[0097] Among them, mean(Pos best,k ) represents the average position of all the well-fed red-headed gulls in front. Rand2 is any random number in [0,1], and R is a random number in [-1,1]. B is the update parameter, which can be expressed as:
[0098] B=1-g / G max (3-16)
[0099] In one embodiment of the present invention, the position state of the red-headed gull after the g-th iteration is recorded as X={X1(g),X2(g),...,X S (g)}, X∈F, F is the feasible domain space of the problem, S is the number of red-headed gulls, X i represents the state of the i-th (i∈S) population of red-headed gulls;
[0100] For all X i and X j , use p i,j Indicates that the red-headed gull from X i Status to X j The transition probability of the state;
[0101] Let Z(g)=max{f(x i (g))|i=1,...,S} is a set of random variables, representing the best position state after g iterations in the population represented by i if and only if
[0102]
[0103] where f * =max{f(x)} is the global optimal solution to the optimization problem to be solved.
[0104] In one embodiment of the present invention, the best solution found by the Red-headed Gull Optimization Algorithm over time converges to the global optimum.
[0105] In one embodiment of the present invention, in the red-headed gull optimization algorithm, for each red-headed gull state X i (g), i = 1, 2, ..., S is a state on a finite Markov chain, that is, the state sequence is a finite Markov chain.
[0106] In one embodiment of the present invention, in the red-headed gull optimization algorithm, for all X i and X j , i, j∈S; the state transition probability satisfies:
[0107]
[0108] In one embodiment of the present invention, the autonomous driving network includes Compute nodes and communication links, indexed by j, where and Represents a collection of computing nodes and communication links respectively, and stream processing applications include Computational tasks and communication tasks, indexed by i, and They represent the collection of computing tasks and communication tasks respectively. Each computing node has different types and quantities of computing resources, and each link has different communication capabilities. The resources of each node n and link l are divided into R n and R l , that is, node n can serve at most R n computing tasks, link l can serve at most R l communication tasks, and the resource sets are represented as
[0109] In one embodiment of the present invention, each autonomous driving application is modeled as a directed acyclic graph The available network computing nodes NCP are the set The computation nodes in the graph are The vertices in the graph are links. The edge, link Link in the set middle;
[0110] For an application, all its tasks will be mapped to the computing network, where computing tasks are mapped to computing nodes and communication tasks are mapped to communication links, i.e., the flow of data.
[0111] When all the computing tasks of an application Mapped to a specific computing node, all communication tasks When mapped to the corresponding links of the computing network, the graph at this time is the task allocation trace of the application.
[0112] like Figure 5 and Figure 6 ,The solid lines are links, and the dotted lines are task allocation traces. Figure 5 and Figure 6 Two different task allocation traces for a single stream processing application are described. Figure 5 The computation task T comp4 Assigned to two computing nodes, this may be the computing task T comp4The amount of computation is large, or a single computing node cannot meet its QoS requirements. For current stream processing applications, there are two task allocation traces. Regarding communication tasks, it can be seen that usually a communication task is mapped to a communication link. There are also communication tasks such as T comm1 It is also assigned to two communication links Link1 and Link2. Figure 6 Another form of task allocation trace is provided. In this case, the computing node NCP3 has a strong computing capability, or the computing task T comp3 and T comp4 The computational workload is small, so computing node NCP3 is assigned two computing tasks at the same time. When multiple stream processing applications are running in the computing network at the same time, the above two situations will exist at the same time. This chapter considers the situation where there are multiple autonomous driving applications. The distributed computing network should provide one or more task allocation traces for each application to ensure that the QoS of the application can be met.
[0113] The present invention satisfies the QoS of different applications. According to the delay requirements and availability requirements of the applications, the applications are divided into two categories:
[0114] 1) Latency applications: These applications have strict requirements on the latency of application processing, that is, they require a minimum processing rate within a specific time.
[0115] 2) Available applications: This type of application has no rigid requirements on processing rate, but must meet availability requirements. At the same time, higher QoS can be achieved by increasing the processing rate.
[0116] In the task allocation process of the application, it is first necessary to assume that the tasks have been allocated to the computing nodes and links in the network respectively. Secondly, the resource capacity of each computing node and link needs to be considered, and its calculation or transmission process needs to meet the delay constraint. Finally, considering the flow processing process of the entire application, its processing rate should be maximized. Therefore, in one embodiment of the present invention, the model of the task allocation trace for maximizing the application processing rate is as follows:
[0117]
[0118] The objective function in the formula is the bottleneck processing rate, the resources on the computing node / link are represented as Cj, and the resources required to process a unit data unit are uniformly represented as ai;
[0119] The second formula represents the resource capacity constraint of each computing node / link j;
[0120] w j,r ∈{0,1}, Medium j,r∈{0,1} represents the resource decision variable. If the rth resource in node / link j is used, then w j,r =1, otherwise w j,r =0;
[0121] Indicates that each task can and must be assigned to a node or link in the network.
[0122] is the matrix of associated decision variables;
[0123] y i,j ∈{0,1}, If computing / transmission task i is placed on computing node / link j, then y i,j =1, otherwise y i,j =0;
[0124] Formula (3-1c) is the task capacity constraint, that is, the total amount of tasks placed on computing node / link j does not exceed the amount of resource types that can be provided on computing node / link j;
[0125] Formula (3-1f) represents the data processing rate constraint, that is, the processing data of the entire application is less than the service rate of the slowest computing node or link in the trace. represents all tasks on computing node / link j. The resources on each computing node / link include the computing capacity of the computing node or the communication capacity of the link. For a given resource type r, it is represented as C on node / link j. j,r , a i,r Represents the computing / communication resources required to compute / transmit a unit of data.
[0126] In one embodiment of the present invention, when a given task graph There are adjacent computing tasks i and i′, and there is a communication task between i and i′ For transmission, computing tasks i and i′ are placed on the corresponding NCPj and NCPj′, and communication tasks The optimal trace P is placed between NCPj and NCPj′ * The optimal task allocation trace for all links in (j,j′) is expressed as
[0127]
[0128] Where j and j′ are the NCPs placed by computing tasks j and j′ respectively;
[0129] If two computing nodes j and j′ are both assigned computing tasks i and i′, and the two computing tasks i and i′ are in the task graph The two computing tasks are adjacent to each other only through the communication task Connection, then the task distribution trace set connecting the two computing nodes j and j′ Communication tasks must be placed on the (j, j′) links of all traces in The connection between two computing nodes is bidirectional and unique. is the set of all communication traces between computing nodes j and j′.
[0130] To determine the amount of resources that an application obtains in a distributed computing network, it is necessary to determine the number of task allocation traces for the application and the number of resources allocated to the computing nodes / links for each application. The task allocation model affects the resource allocation model by determining the task network topology of the application in the distributed computing network. At the same time, when considering the potential location of the application task, the resource allocation model must evaluate the processing rate of the task, realize the selection of traces and the optimization of node resources. The two work together to meet the QoS requirements of the application on the network. Therefore, in one embodiment of the present invention, the resource allocation model with the objective function set to maximize the data processing rate is as follows:
[0131]
[0132] stRX<C
[0133]
[0134] A≠B,A∈{0,1},B∈{0,1}
[0135] Among them, stRX<C, R is the length of The vector represents the location information of the task on the computing node / link; X is the vector of the processing rate x obtained by the application; C is a vector representing the resource capacity of the computing node / link;
[0136] Formula P3-2: A and B are decision parameters. When A=1 and B=0, it means that the application at this time is a time-delay application. When A=0 and B=1, it means that the application at this time is an available application.
[0137] When A=1 and B=0, the resource allocation model for delay-based applications is:
[0138]
[0139] in Indicates the number of task allocation traces assigned to the application. Formula (3-7a) is the utility constraint, U IRepresents the utility value, i.e., the utility threshold of the application; MR I Indicates the minimum processing rate of the application; r represents all The effective processing rate of the traces is represents the probability that the trace l is valid, r l Indicates the processing rate of trace l. When multiple traces have no intersection, When the effective processing rates of multiple traces are greater than or equal to the minimum processing rate, the total utility of the set of these traces is greater than the utility threshold required by the application. is the minimum number of traces, corresponding to the minimum number of computing nodes / links allocated to the application.
[0140] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for processing tasks of intelligent connected vehicles based on distributed computing, characterized in that: include: Build an autonomous driving network model based on distributed computing; Build a typical model of stream processing for autonomous driving applications based on distributed computing; Build task allocation models and resource allocation models for stream processing applications; Optimize the task allocation and resource allocation of autonomous driving flow processing applications based on the Red-headed Gull optimization algorithm; The optimization algorithm for the red-headed gull is: Step 1: Decompose the general problem of stream processing application into two sub-problems: task allocation problem and resource allocation problem. Initialize the number of iterations g = 1, and the population of red-headed gulls in each habitat is S1 and S2; Step 2: Conduct a suitability assessment and evaluate each red-headed gull based on its location; Step 3: If no optimal solution is obtained, or the number of iterations is less than the maximum number of iterations, the red-headed gulls are divided into two populations according to their habitats, and the red-headed gulls of the two populations are sorted according to their suitability, and the red-headed gulls that do not meet the suitability conditions are migrated; Step 4: After the migration process is completed, the populations in the habitat are sorted by suitability, and the positions of some of the red-headed gulls that have eaten are retained. The positions of some of the red-headed gulls that have eaten are the elite solutions, and foraging operations are performed on other red-headed gulls; Step 5: Sort the candidate solutions and delete duplicate solutions, and replace the same number of solutions ranked lower in the candidate solution set with the current elite solution; Step 6: Output the optimal solution.
2. The method for processing tasks of an intelligent connected vehicle based on distributed computing according to claim 1, characterized in that: Let the position state of the red-headed gull after the gth iteration be recorded as X = {X1(g),X2(g),...,X S (g)}, X∈F, F is the feasible domain space of the problem, S is the number of red-headed gulls, X i represents the state of the i-th (i∈S) population of red-headed gulls; For all X i and X j , use p i,j Indicates that the red-headed gull from X i Status to X j The transition probability of the state; Let Z(g)=max{f(x i (g))|i=1,...,S} is a set of random variables, representing the best position state after g iterations in the population represented by i if and only if where f * =max{f(x)} is the global optimal solution to the optimization problem to be solved.
3. The method for processing intelligent connected vehicle tasks based on distributed computing according to claim 2, characterized in that: The best solution found by the Red-headed Gull Optimization Algorithm over time converges to the global optimum.
4. The method for processing tasks of an intelligent connected vehicle based on distributed computing according to claim 2, characterized in that: In the red-headed gull optimization algorithm, for each red-headed gull's state X i (g), i = 1, 2, ..., S is a state on a finite Markov chain, that is, the state sequence is a finite Markov chain.
5. The method for processing intelligent connected vehicle tasks based on distributed computing according to claim 2, characterized in that: In the Red-headed Gull optimization algorithm, for all X i and X j , i, j∈S; the state transition probability satisfies:
6. The method for processing tasks of an intelligent connected vehicle based on distributed computing according to claim 1, characterized in that: The autonomous driving network includes Compute nodes and communication links, indexed by j, where and Represents a collection of computing nodes and communication links respectively, and stream processing applications include Computational tasks and communication tasks, indexed by i, and They represent the collection of computing tasks and communication tasks respectively. Each computing node has different types and quantities of computing resources, and each link has different communication capabilities. The resources of each node n and link l are divided into R n and R l , that is, node n can serve at most R n computing tasks, link l can serve at most R l communication tasks, and the resource sets are represented as 7. The method for processing intelligent connected vehicle tasks based on distributed computing according to claim 1, characterized in that: Model each autonomous driving application as a directed acyclic graph The available network computing nodes NCP are the set The computation nodes in the graph are The vertices in the graph are links. The edge, link Link in the set middle; For an application, all its tasks will be mapped to the computing network, where computing tasks are mapped to computing nodes and communication tasks are mapped to communication links, i.e., the flow of data. When all the computing tasks of an application Mapped to a specific computing node, all communication tasks When mapped to the corresponding links of the computing network, the graph at this time is the task allocation trace of the application.
8. The method for processing tasks of an intelligent connected vehicle based on distributed computing according to claim 7, characterized in that: The model of the task allocation trace that maximizes the application processing rate is as follows: The objective function in the formula is the bottleneck processing rate, and the resources on the computing node / link are represented by C j , the resources required to process a unit data unit are uniformly expressed as a i ; The second formula represents the resource capacity constraint of each computing node / link j; Medium j,r ∈{0,1} represents the resource decision variable. If the rth resource in node / link j is used, then w j,r =1, otherwise w j,r =0; Indicates that each task can and must be assigned to a node or link in the network. is the matrix of associated decision variables; If computing / transmission task i is placed on computing node / link j, then y i,j =1, otherwise y i,j =0; Formula (3-1c) is the task capacity constraint, that is, the total amount of tasks placed on computing node / link j does not exceed the amount of resource types that can be provided on computing node / link j; Formula (3-1f) represents the data processing rate constraint, that is, the processing data of the entire application is less than the service rate of the slowest computing node or link in the trace. represents all tasks on computing node / link j. The resources on each computing node / link include the computing capacity of the computing node or the communication capacity of the link. For a given resource type r, it is represented as C on node / link j. j,r , a i,r Represents the computing / communication resources required to compute / transmit a unit of data.
9. The method for processing tasks of an intelligent connected vehicle based on distributed computing according to claim 7, characterized in that: When given in the task graph There are adjacent computing tasks i and i′, and there is a communication task between i and i′ For transmission, computing tasks i and i′ are placed on the corresponding NCPj and NCPj′, and communication tasks The optimal trace P is placed between NCPj and NCPj′ * The optimal task allocation trace for all links in (j,j′) is expressed as Where j and j′ are the NCPs placed by computing tasks j and j′ respectively; If two computing nodes j and j′ are both assigned computing tasks i and i′, and the two computing tasks i and i′ are in the task graph The two computing tasks are adjacent to each other only through the communication task Connection, then the task distribution trace set connecting the two computing nodes j and j′ Communication tasks must be placed on the (j, j′) links of all traces in The connection between two computing nodes is bidirectional and unique. is the set of all communication traces between computing nodes j and j′.
10. The method for processing tasks of an intelligent connected vehicle based on distributed computing according to claim 9, characterized in that: The resource allocation model with the objective function set to maximize the data processing rate is as follows: stRX<C A≠B,A∈{0,1},B∈{0,1} Among them, stRX<C, R is the length of The vector represents the location information of the task on the computing node / link; X is the vector of the processing rate x obtained by the application; C is a vector representing the resource capacity of the computing node / link; Formula P3-2: A and B are decision parameters. When A=1 and B=0, it means that the application at this time is a time-delay application. When A=0 and B=1, it means that the application at this time is an available application. When A=1 and B=0, the resource allocation model for delay-based applications is: in Indicates the number of task allocation traces assigned to the application. Formula (3-7a) is the utility constraint, U I Represents the utility value, i.e., the utility threshold of the application; MR I Indicates the minimum processing rate of the application; r represents all The effective processing rate of the traces is represents the probability that the trace l is valid, r l Indicates the processing rate of trace l. When multiple traces have no intersection, When the effective processing rates of multiple traces are greater than or equal to the minimum processing rate, the total utility of the set of these traces is greater than the utility threshold required by the application. is the minimum number of traces, corresponding to the minimum number of computing nodes / links allocated to the application.
