Elastic event triggering method, system and equipment for truck queue
By calculating the state error deviation of the truck queue and the attack end time, setting the trigger conditions of the elastic event, and dynamically updating the trigger time, solving the problems of tracking inaccurate and divergence caused by denial of service attacks in the prior art, improving the stability of the system and adaptability.
Patent Information
- Application Number
- CN202411173114.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-12-06
AI Technical Summary
When facing denial of service attacks, existing truck queue systems are prone to delay triggering risks of inaccurate tracking and divergent errors, and the controller is poorly adaptable, resulting in network attacks affecting system stability and data transmission.
By obtaining the data traffic of V2V communication and the driving status information of the truck queue, the status error deviation is calculated, and the triggering conditions of the elastic event are set based on this information, and the triggering moment is dynamically updated to mitigate the impact of the denial of service attack.
It effectively avoids the extension of attack time, improves the system's tracking accuracy and stability, reduces the computing load and bandwidth usage, and enhances the resistance to denial of service attacks.
Smart Images

Figure CN119095050A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent safety and autonomous driving technology, and in particular to a method, system and device for triggering elastic events of a truck queue. Background Art
[0002] With the application of Internet of Vehicles technology, truck platooning has gradually developed into a cyber-physical system that integrates advanced computing, vehicle-mounted communications, and intelligent control, in order to achieve collaborative platooning of connected autonomous vehicles. Although communication technology improves the function and performance of truck platooning, due to the openness and sharing of V2X communication, the platoon system is vulnerable to malicious network attacks.
[0003] As a type of cyber attack, a denial of service attack interferes with the radio frequency of the Internet of Vehicles or blocks V2V network access with a large number of requests to prevent information exchange between vehicles, thereby destroying the data transmission between vehicles and the stability of the queue control system. Studies have shown that when the system is attacked by a denial of service, not only does the average spacing error increase sharply, but the spacing error also increases further when it propagates downstream in the queue. Periodic event-triggered control has the advantage of effectively resisting cyber attacks and is becoming more and more common in cyber-physical systems. However, existing trigger control methods have the risk of delayed triggering due to inaccurate tracking and potential error divergence, and the controller has poor adaptability. Summary of the invention
[0004] To this end, the embodiments of the present application provide a method, system and device for triggering flexible events of a truck queue, which realizes dynamic updating of the triggering time and avoids the extension of the attack time.
[0005] In a first aspect, the present application provides a flexible event triggering method for a truck queue.
[0006] This application is achieved through the following technical solutions:
[0007] A flexible event triggering method for a truck platoon, comprising:
[0008] S10: Acquire data traffic of V2V communication, and determine the network status of V2V communication and attack end time based on the data traffic;
[0009] S20: Acquire driving state information of the truck queue, calculate two state errors of the target truck at the current moment based on the driving state information, and determine two error deviations based on the two state errors at the current moment and the two state errors at the last triggering moment;
[0010] S30: Setting trigger conditions of elastic events based on the two error deviations and the attack end time;
[0011] S40: When the trigger condition is met, determine the network state corresponding to the current moment when the trigger condition is met, and determine the control amount based on the network state.
[0012] In a preferred example of the present application, it can be further configured to include:
[0013] S50: Transmitting the control amount to the actuator via the CAN bus, so that the actuator outputs a desired driving torque and braking torque based on the control amount.
[0014] In a preferred example of the present application, it can be further configured to obtain the data flow of the V2V communication, and determine the network status of the V2V communication and the attack end time based on the data flow, including:
[0015] Obtain data traffic of V2V communication, and extract three characteristic information from the data traffic, wherein the three characteristic information are the number of messages per second, the message entropy value, and the message timestamp;
[0016] The three characteristic information are characterized by distribution through Gaussian function;
[0017] Based on the results of the distribution characterization, fuzzy reasoning is performed according to the preset fuzzy reasoning rules to divide the state of the vehicle network into attack state and normal state, and the attack end time of each attack state is output.
[0018] In a preferred example of the present application, it can be further configured to obtain driving state information of the truck queue, calculate two state errors of the target truck at the current moment based on the driving state information, and determine two error deviations based on the two state errors at the current moment and the two state errors at the last trigger moment, including:
[0019] Acquiring driving status information of the truck queue, wherein the driving status information includes position, speed and acceleration;
[0020] Based on the driving state information of the target truck and the driving state information of all the following trucks, determine the first state error of the target truck and all the following trucks, extract the first state error at the last triggering moment, and calculate the first error deviation;
[0021] Based on the driving state information of the target truck and the driving state information of the lead vehicle, a second state error between the target truck and the lead vehicle is determined, the second state error at the last triggering moment is extracted, and a second error deviation is calculated.
[0022] In a preferred example of the present application, it can be further set as follows:
[0023] Based on the driving state information of the target truck and the driving state information of all following trucks, the first state error of the target truck and all following trucks is determined, the first state error at the last triggering moment is extracted, and the first error deviation is calculated. The calculation formula is expressed as:
[0024]
[0025] Among them, ξ i (t) represents the state error between the target truck and all following trucks, a ij Represents the elements of the adjacency matrix, i represents the number of the target truck, j represents the number of the following truck, j ranges from 1 to N, x truck,j (t) represents the state vector of the following truck j, x truck,i (t) represents the state vector of the target truck, D des,ij (t) = [d des,ij (t), 0,0] T , represents the error deviation between the target truck and all following trucks, represents the state error between the target truck and all following trucks at the kth triggering moment.
[0026] In a preferred example of the present application, it can be further set as follows:
[0027] Based on the driving state information of the target truck and the driving state information of the lead truck, the second state error between the target truck and the lead truck is determined, the second state error at the last triggering moment is extracted, and the second error deviation is calculated. The calculation formula is expressed as:
[0028] g i (t) = x truck,0 (t)-x truck,i (t)-D des,i0 (t),
[0029]
[0030] Among them, g i (t) represents the state error between the target truck i and the leading truck, x truck,0 (t) represents the state vector of the leading vehicle, x truck,i (t) represents the state vector of target truck i, D des,i0 (t) = [d des,ij (t),0,0] T ,φ i (t) represents the error deviation between the target truck i and the leading truck, The state error between the target truck i and the leading truck at the kth triggering moment.
[0031] In a preferred example of the present application, it can be further set as follows:
[0032] Based on the two error deviations and the attack end time, the triggering conditions of the elastic event are set, including:
[0033] If the current time t satisfies the following conditions: Determine that the current time t satisfies the trigger condition;
[0034] and / or, if the current time t is the attack end time, determining that the current time t satisfies the trigger condition;
[0035] in, represents the first error deviation of target truck i at the current time t, φ i (t) represents the second error deviation of target truck i at the current time t, ρ i represents the trigger threshold parameter for each following truck, ξ i (t) represents the first state error of target truck i at the current time t, g i (t) represents the second state error of target truck i at the current time t, χ(t) represents a trigger parameter, Q p Represents a weight matrix.
[0036] In a preferred example of the present application, it can be further configured that when the trigger condition is met, the network state corresponding to the current moment when the trigger condition is met is determined, and the control amount is determined based on the network state, including:
[0037] When it is determined that the current moment corresponding to the time when the trigger condition is met belongs to the communication state, the event trigger controller determines the control amount according to the first control law;
[0038] When it is determined that the current moment corresponding to when the trigger condition is met belongs to the attack state, the event trigger controller determines the control amount according to the second control law.
[0039] In a second aspect, the present application provides a flexible event triggering system for a truck platoon.
[0040] This application is achieved through the following technical solutions:
[0041] A truck platoon elastic event triggering system, the system is used to execute the truck platoon elastic event triggering method described in the first aspect, comprising:
[0042] A data analysis module, used to obtain data traffic of the V2V communication, and determine the network status of the V2V communication and the attack end time based on the data traffic;
[0043] An error analysis module, used to obtain driving state information of the truck queue, calculate two state errors of the target truck at the current moment based on the driving state information, and determine two error deviations based on the two state errors at the current moment and the two state errors at the last triggering moment;
[0044] A trigger condition setting module, used to set the trigger condition of the elastic event based on the two error deviations and the attack end time;
[0045] The control output module determines the network state corresponding to the current moment when the trigger condition is met, and determines the control amount based on the network state when the trigger condition is met.
[0046] On the third aspect, the present application is realized through the following technical solutions:
[0047] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the above-mentioned elastic event triggering methods for a truck queue when executing the computer program.
[0048] In summary, compared with the prior art, the technical solution provided in the embodiment of the present application has at least the following beneficial effects:
[0049] This application obtains the data flow of V2V communication, determines the network status of V2V communication and the end time of the attack based on the data flow; obtains the driving state information of the truck queue, calculates the two state errors of the target truck at the current moment based on the driving state information, and determines the two error deviations based on the two state errors at the current moment and the two state errors at the previous triggering moment; sets the triggering conditions of the elastic event based on the two error deviations and the end time of the attack; when the triggering conditions are met, determines the network state corresponding to the current moment when the triggering conditions are met, and determines the control amount based on the network state. A new event triggering condition is designed based on the state error between vehicles and the error deviation between two adjacent triggers, and the end time of the attack is taken into account to reduce the impact of the denial of service attack on the interruption of V2V communication, reduce the computing load and bandwidth usage, and the method changes the state update triggering time according to the duration of the denial of service attack to avoid the attack time being extended. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A schematic flow chart of a method for triggering a flexible event of a truck queue provided in an embodiment of the present application;
[0051] Figure 2 A schematic flow chart of a method for triggering a flexible event of a truck queue provided in an embodiment of the present application;
[0052] Figure 3A schematic diagram of the structure of a flexible event triggering system for a truck platoon provided in yet another embodiment of the present application;
[0053] Description of reference numerals:
[0054] Data analysis module-101, error analysis module-201, trigger condition setting module-301, control output module-401. DETAILED DESCRIPTION
[0055] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make modifications to the present embodiment without any creative contribution as needed. However, as long as it is within the scope of the claims of the present application, it shall be protected by the patent law.
[0056] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] In addition, the term "and / or" in this application is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application, unless otherwise specified, generally indicates that the associated objects before and after are in an "or" relationship.
[0058] In this application, the terms "first", "second", etc. are used to distinguish identical or similar items with basically the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there any limitation on quantity and execution order.
[0059] The architecture of a truck platoon consists of a leader truck and several following trucks. The leader truck (LT) is manually driven by an experienced driver, and the following trucks (FT) are operated by an autonomous driving system. Following trucks need to use environmental sensors such as radars and cameras to sense the vehicle and lane ahead, and perform longitudinal and lateral control of the vehicle to achieve autonomous driving. The purpose of longitudinal control of the following truck is to keep the current vehicle and the vehicle ahead at a short distance, and the purpose of lateral control is to keep the current vehicle in its own lane.
[0060] The following is a further detailed description of the embodiments of the present application in conjunction with the accompanying drawings. Figure 1 As shown, the elastic event triggering method of the truck queue proposed in this application includes:
[0061] S10: Obtain the data flow of the V2V communication, and determine the network status of the V2V communication and the attack end time based on the data flow.
[0062] Specifically, it is necessary to use the data analyzer installed between the vehicle network device and the controller to obtain the data flow from V2V communication (Vehicle-to-Vehicle Communication), analyze the relevant data flow based on the data characteristics of the denial of service attack and the denial of service attack detection technology, and then determine the network status of the V2V communication, and divide the V2V communication into the attack state and the normal state according to the network status. And record the end time of each attack state.
[0063] S20: Acquire driving state information of the truck queue, calculate two state errors of the target truck at the current moment based on the driving state information, and determine two error deviations based on the two state errors at the current moment and the two state errors at the last trigger moment.
[0064] Specifically, a truck platoon is modeled and a dynamic model is constructed. The truck platoon contains N+1 trucks, which are numbered according to (0, 1, 2, ..., N), where 0 represents the lead truck and the (1, 2, ..., N)th truck represents the following truck. The truck platoon realizes information exchange between trucks through V2V communication. According to the set LPF network topology, the current truck will receive driving status information from the lead truck and the truck in front of the current truck, where the driving status information includes information such as position, speed and acceleration. There are two types of state errors, one refers to the state error between the target truck and all the following trucks, and the other refers to the state error between the target truck and the lead truck. After obtaining the two types of state errors, the two state errors at the current moment are compared with the two state errors at the last stored trigger moment to obtain two error deviations. The trigger moment refers to the moment when the event triggers the controller to output the control instruction. The target truck refers to any following truck in the platoon.
[0065] S30: Based on the two error deviations and the attack end time, set the triggering conditions of the elastic event.
[0066] According to the two error deviations between the current moment and the previous trigger moment, and combined with the attack end moment, a suitable trigger condition is configured, which not only reduces the calculation requirements but also improves the tracking accuracy.
[0067] S40: When the trigger condition is met, determine the network state corresponding to the current moment when the trigger condition is met, and determine the control amount based on the network state.
[0068] This application designs a new event trigger condition based on the state error between vehicles and the error deviation between two adjacent triggers, and takes into account the end time of the attack, thereby reducing the impact of the denial of service attack on the interruption of V2V communication and reducing the computing load and bandwidth usage. This method changes the state update triggering time according to the duration of the denial of service attack to avoid the attack time being extended.
[0069] In some embodiments, Figure 2 As shown, the method of the present application also includes:
[0070] S50: Transmitting the control amount to the actuator via the CAN bus, so that the actuator outputs the desired driving torque and braking torque based on the control amount.
[0071] The control quantity calculated by the event-triggered controller is the desired control target of the lower-level actuator (motor). The lower-level actuator needs to track the desired control target, and the lower-level actuator directly outputs the driving torque and the braking torque.
[0072] In some embodiments, the specific steps of S10 include:
[0073] S101: Obtain data traffic of V2V communication, and extract three characteristic information from the data traffic, where the three characteristic information are the number of messages per second, message entropy value, and message timestamp.
[0074] Messages per second (denoted by N) refers to the total number of messages transmitted in one second, reflecting the activeness of communication or the frequency of data exchange in a specific time period. By monitoring the number of messages per second through traffic, a sudden surge or drop in the number of messages per second may indicate abnormal activity. Set a rate limit. If the incoming message rate exceeds the rate limit, it represents a denial of service attack. The message entropy value (denoted by E) can be understood as the inverse of the complexity and predictability of the message content. Abnormally high entropy values may indicate malicious or malformed messages. Denial of service attacks usually involve sending repeated or non-random traffic. Denial of service attacks can be determined by monitoring the message entropy value through anomaly detection. Message timestamp (denoted by T): Timestamps can be used for time analysis to detect time-related patterns. A sudden burst of traffic at a specific time may indicate a denial of service attack.
[0075] S102: Characterize the distribution of the above three feature information through Gaussian function.
[0076] Specifically, the three characteristic information are characterized by distribution through Gaussian function, and the three characteristic information are divided into three different ranges according to low, medium and high. The result of distribution characterization is: the number of messages per second between 0-75 is classified as low message number, the number of messages per second between 76-200 is classified as medium message number, and the number of messages per second greater than 200 is classified as high message number; the message entropy value between 0-0.45 is classified as low message entropy value, the message entropy value between 0.46-1.0 is classified as medium message entropy value, and the message entropy value greater than 1.0 is classified as high message entropy value; the timestamp between 0-2.5ms is classified as low timestamp, the timestamp between 2.6-20ms is classified as medium timestamp, and the timestamp greater than 20ms is classified as high timestamp.
[0077] S103: Based on the result of the distribution characterization, fuzzy reasoning is performed according to preset fuzzy reasoning rules to divide the state of the vehicle network into an attack state and a normal state, and the attack end time of each attack state is output.
[0078] Specifically, the fuzzy reasoning rules are shown in Table 1 below:
[0079] Table 1
[0080]
[0081] PS indicates low number of messages, PM indicates medium number of messages, and PB indicates high number of messages; KS indicates low message entropy value, KM indicates medium message entropy value, and KB indicates high message entropy value; TS indicates low timestamp, TM indicates medium timestamp, and TB indicates high timestamp. Scenario type 1 indicates that the number of messages per second belongs to low number of messages, the message entropy value belongs to low message entropy value, the timestamp belongs to low timestamp, and the corresponding inference result is normal.
[0082] In some embodiments, the specific steps of step S20 include: obtaining driving status information of the truck queue, the driving status information including position, speed and acceleration; determining the first state error between the target truck and all following trucks based on the driving status information of the target truck and the driving status information of all following trucks, extracting the first state error at the last triggering moment, and calculating the first error deviation; determining the second state error between the target truck and the leading truck based on the driving status information of the target truck and the leading truck, extracting the second state error at the last triggering moment, and calculating the second error deviation.
[0083] In the specific implementation process, when performing error calculation, the queue modeling is first performed. The dynamic model of any truck in the truck queue can be expressed by the following equation:
[0084]
[0085] Among them, p truck,i represents the position of truck i (i = 0, 1, 2, ..., N), i represents the number of the truck, v truck,i represents the speed of truck i, a truck,i represents the acceleration of truck i, u truck,i (t) represents the control output of truck i, w(t) represents the unknown external disturbance caused by strong wind and uneven road surface; τ truck represents the inertia time constant of the truck. It should also be noted that The point on the parameter represents the derivative of the parameter, and t represents time, which means that the parameter changes over time.
[0086] The state vector x truck,i (t) is expressed as: truck,i (t) = [p truck,i (t),v truck,i (t),a truck,i (t)] T , and according to this state vector, the above dynamic model is transformed into the state space equation:
[0087]
[0088] Among them, A is the system matrix of the state space equation, B is the control matrix, C is the disturbance vector,
[0089]
[0090] The truck platoon adopts a fixed-time-distance following strategy, and the following error can be expressed as:
[0091] e i0 (t) = p truck,0 (t)-p truck,i (t)-d des,i0 (t),
[0092]
[0093] The goal of following a vehicle is to ensure that the following truck in the queue can accurately track the lead vehicle, which can be expressed as:
[0094]
[0095] Among them, e i0 (t) represents the following error between truck i and the leading truck, d des,i0 (t) represents the expected safety distance between truck i and the leading truck, h represents the fixed time interval, and d0 represents the minimum safety distance when the truck stops. Generally, d0=10.
[0096] The state error consists of the first state error between the target truck and all following trucks, and the second state error between the target truck and the leading truck. The calculation formula of the first state error and the first error deviation is expressed as:
[0097]
[0098] Among them, ξ i (t) represents the state error between the target truck i and all following trucks, a ij represents the element of the adjacency matrix, i represents the target truck i, j represents the number of the following truck, j ranges from 1 to N, N is the total number of following trucks, x truck,j (t) represents the state vector of the following truck j, x truck,i (t) represents the state vector of the following truck i, D des,ij (t) = [d des,ij (t), 0,0] T , represents the error deviation between the target truck and all following trucks, represents the state error between the target truck and all following trucks at the kth triggering moment.
[0099] The calculation formula of the second state error and the second error deviation is expressed as:
[0100] g i (t) = x truck,0 (t)-x truck,i (t)-D des,i0 (t),
[0101]
[0102] Among them, g i (t) represents the state error between the target truck i and the leading truck, x truck,0 (t) represents the state vector of the leading vehicle, x truck,i (t) represents the state vector of target truck i, D des,i0 (t) = [d des,ij (t),0,0] T ,φ i (t) represents the error deviation between the target truck i and the leading truck, The state error between the target truck i and the leading truck at the kth triggering moment.
[0103] In some embodiments, in the state of denial of service attack, the information exchange between trucks in the queue is blocked, and the elastic event trigger mechanism does not work. In the communication interval, the information exchange is restored, and the elastic event trigger mechanism works. In this application, the trigger condition of the elastic event is dynamically set according to the obtained first error deviation, second error deviation and attack end time:
[0104]
[0105] D k is the set of attack end times of each denial of service attack. represents the first error deviation of target truck i at the current time t, φ i (t) represents the second error deviation of target truck i at the current time t, ρ i represents the trigger threshold parameter for each following truck, ξ i (t) represents the first state error of target truck i at the current time t, g i (t) represents the second state error of target truck i at the current time t, χ(t) represents a trigger parameter, Q p Represents a weight matrix.
[0106] The current time t satisfies the following conditions: When, and / or, the current time t belongs to the attack end time D k , it is determined that the current time t meets the trigger condition. That is, at this time, the event trigger mechanism outputs a trigger instruction, and the trigger time enters from the kth time to the k+1th time.
[0107] In some embodiments, to ensure consistent control of the truck platoon, the present application obtains the control error based on the state error between the lead vehicle and the target following vehicle.
[0108] μ i (t) = x truck,0 (t)-x truck,i (t)-D i0 ,
[0109]
[0110] This application sets different control laws according to different network states, specifically:
[0111]
[0112] Among them, C T Represents the set of communication states, D T represents the set of attack states, K represents the gain of the event-triggered controller, θ represents the coupling strength, and u i (t) represents the control output (or control quantity) of truck i.
[0113] When the current moment is in the communication state, the event-triggered controller can adjust the control amount in time according to the first control law based on the updated state information and control law. The first control law is: When the current moment is in the attack state, considering the blocking of information interaction, the controller cannot obtain accurate state information during this period. The event triggers the controller to switch to output the control amount according to the second control law. The second control law is: i (t)=0.
[0114] In this application, the controller parameters are designed and the stability of the controller is proved by Lyapunov method and iteration method.
[0115] Substituting the control error expression and control law into the dynamic system equation of the truck, we can get:
[0116]
[0117] in,
[0118]
[0119] is the Laplace matrix of the queue communication topology, is the traction matrix of the queue communication topology, I N is the N-th order identity matrix, stands for Kronecker product.
[0120] Since the system matrix (A, B) is controllable, there exist scalars θ>0 and r>0, satisfying the following inequalities:
[0121] A T Ω+ΩA-rθΩBB T Ω+βΩ≤0,
[0122] Among them, Ω represents a positive definite matrix, β represents a scalar, β>2θ||ΩBB T Ω||. Therefore, the gain of the designed event-triggered controller is K=B T Ω.
[0123] Since the control laws of the event-triggered controller are different in the communication state and the attack state, this application proves its stability in the two states respectively, and proves the stability of the queue system of the whole process through the iteration method.
[0124] The Lyapunov function designed in this application is:
[0125] In the communication state, the control law is substituted into the Lyapunov function to obtain:
[0126]
[0127] Through state transitions: U is an orthogonal matrix, UUT =I N , we can get:
[0128]
[0129] Among them, λ min =min{λ(H T +H)}, representing the matrix (H T +H) minimum value of the characteristic value.
[0130] According to the Cauchy-Schwarz theorem, is further scaled to:
[0131]
[0132] According to the fact that the sum of the norms of vector elements is usually greater than or equal to the norm of the entire vector, we can get:
[0133]
[0134] Since U is an orthogonal matrix, ||U|| 2 =1, we can get:
[0135] And analyzing the second term on the right side of the inequality, we can get:
[0136]
[0137] Substitute the analysis results into You can get:
[0138]
[0139] Among them, χ 2 (t) = (β - 2θ || ΩBB T Ω||) / (2(2N 2 +1)||ΩBB T Ω||θ), 0<ρ i <1,β>2θ||ΩBB T Ω||, therefore, we can get:
[0140] V(t)<exp(-λ1(tT k,int ))V(T k,int );
[0141] in, T k,int represents the initial time of the kth interval. Therefore, it is proved that the event-triggered controller maintains Lyapunov stability in the communication interval.
[0142] In the attack state, substituting the control law into the Lyapunov function, we get:
[0143]
[0144] Since the matrix A has critical stability characteristics, λ2 needs to be large enough to make λ2>abs(max{λ(A T Ω+ΩA)}), we can get:
[0145]
[0146] Among them, t c represents the duration of the communication interval in the kth interval. The state of the truck platoon is continuous and cannot change instantly. Therefore, there exists a scalar α>1 that satisfies the following reasonable assumptions:
[0147]
[0148] in, Represents time t p The left limit of .
[0149] Finally, by iterating the Lyapunov functions of the above communication state and attack state, the system stability of the whole process can be proved. The specific iteration process and iteration results can be expressed as:
[0150]
[0151] Among them, N(0,t) represents the total number of denial of service attacks in the entire interval, D(0,t) represents the total duration of denial of service attacks in the entire interval, and C(0,t) represents the total duration of communication in the entire interval.
[0152] In order to constrain the attack frequency of the denial of service attack and the duration of each attack, the method of the present application also provides a constraint means to ensure sufficient conditions for the stability of the queue.
[0153] Specifically, in the interval [T a ,T b ], the sufficient condition is:
[0154]
[0155] Substituting the above sufficient conditions into the iterative results, we get:
[0156]
[0157]
[0158] α, ξ, and ε are all scalars set to limit the attack.
[0159] The final iteration result is:
[0160]
[0161] in, Therefore, we can get: It is proved that truck platooning can ensure system stability and consistent control of trucks under denial of service attacks.
[0162] The elastic event triggering method provided in the present application addresses the problem that the triggering conditions may prolong the duration of the attack. By combining the end time of the denial of service attack and the specifically designed triggering conditions, the elastic triggering of the queue control mechanism can be achieved, and the Lyapunov stability can be ensured, and the tracking distance of the queue trucks can be reduced. The corresponding control quantity is output by the switching control law and applied to the queue consistency control adjustment after the truck encounters a denial of service attack.
[0163] Another embodiment of the present application further provides a flexible event triggering system for a truck queue, the system being used to execute the flexible event triggering method for a truck queue, such as Figure 3 As shown, the system includes:
[0164] A data analysis module 101, configured to obtain data flow of the V2V communication, and determine a network status of the V2V communication and an attack end time based on the data flow;
[0165] The error analysis module 201 is used to obtain the driving state information of the truck queue, calculate two state errors of the target truck at the current moment based on the driving state information, and determine two error deviations based on the two state errors at the current moment and the two state errors at the last triggering moment;
[0166] A trigger condition setting module 301, used to set a trigger condition of an elastic event based on the two error deviations and the attack end time;
[0167] The control output module 401 is used to determine the network state corresponding to the current moment when the trigger condition is met, and determine the control amount based on the network state.
[0168] In some embodiments, the system further includes an actuator module for receiving a control quantity transmitted by the control output module 401 via the CAN bus, and outputting a desired driving torque and braking torque based on the control quantity.
[0169] The specific definition of the elastic event triggering system provided in this embodiment can be found in the embodiment of the elastic event triggering method above, which will not be repeated here. Each module in the above elastic event triggering system can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0170] An embodiment of the present application provides a computer device, which may include a processor, a memory, a network interface, and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, the processor executes the steps of the elastic event triggering method for a truck queue as in any of the above embodiments.
[0171] The working process, working details and technical effects of the computer device provided in this embodiment can be found in the embodiment of the elastic event triggering method of the truck queue mentioned above, which will not be described in detail here.
[0172] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0173] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the system described in the present application is divided into different functional units or modules to complete all or part of the functions described above.
Claims
1. A method for triggering an elastic event of a truck platoon, characterized in that: include: S10: Acquire data traffic of V2V communication, and determine the network status of V2V communication and attack end time based on the data traffic; S20: Acquire driving state information of the truck queue, calculate two state errors of the target truck at the current moment based on the driving state information, and determine two error deviations based on the two state errors at the current moment and the two state errors at the last triggering moment; S30: Setting trigger conditions of elastic events based on the two error deviations and the attack end time; S40: When the trigger condition is met, determine the network state corresponding to the current moment when the trigger condition is met, and determine the control amount based on the network state.
2. The method for triggering a flexible event of a truck queue according to claim 1, characterized in that: Also includes: S50: Transmitting the control amount to the actuator via the CAN bus, so that the actuator outputs a desired driving torque and braking torque based on the control amount.
3. The method for triggering a flexible event of a truck queue according to claim 1, characterized in that: Acquiring data traffic of V2V communication, and determining a network state of the V2V communication and an attack end time based on the data traffic, including: Obtain data traffic of V2V communication, and extract three characteristic information from the data traffic, wherein the three characteristic information are the number of messages per second, the message entropy value, and the message timestamp; The three characteristic information are characterized by distribution through Gaussian function; Based on the results of the distribution characterization, fuzzy reasoning is performed according to the preset fuzzy reasoning rules to divide the state of the vehicle network into attack state and normal state, and the attack end time of each attack state is output.
4. The method for triggering a flexible event of a truck queue according to claim 1, characterized in that: Acquire driving state information of the truck queue, calculate two state errors of the target truck at the current moment based on the driving state information, and determine two error deviations based on the two state errors at the current moment and the two state errors at the last triggering moment, including: Acquiring driving status information of the truck queue, wherein the driving status information includes position, speed and acceleration; Based on the driving state information of the target truck and the driving state information of all the following trucks, determine the first state error of the target truck and all the following trucks, extract the first state error at the last triggering moment, and calculate the first error deviation; Based on the driving state information of the target truck and the driving state information of the lead vehicle, a second state error between the target truck and the lead vehicle is determined, the second state error at the last triggering moment is extracted, and a second error deviation is calculated.
5. The method for triggering a flexible event of a truck queue according to claim 4, characterized in that: Based on the driving state information of the target truck and the driving state information of all following trucks, the first state error of the target truck and all following trucks is determined, the first state error at the last triggering moment is extracted, and the first error deviation is calculated. The calculation formula is expressed as: Among them, ξ i (t) represents the state error between the target truck and all following trucks, a ij Represents the elements of the adjacency matrix, i represents the number of the target truck, j represents the number of the following truck, j ranges from 1 to N, x truck,j (t) represents the state vector of the following truck j, x truck,i (t) represents the state vector of the target truck, D des,ij (t) = [d des,ij (t), 0,0] T , represents the error deviation between the target truck and all following trucks, represents the state error between the target truck and all following trucks at the kth triggering moment.
6. The method for triggering a flexible event of a truck queue according to claim 4, characterized in that: Based on the driving state information of the target truck and the driving state information of the lead truck, the second state error between the target truck and the lead truck is determined, the second state error at the last triggering moment is extracted, and the second error deviation is calculated. The calculation formula is expressed as: g i (t)=x truck,0 (t)-x truck,i (t)-D des,i0 (t), Among them, g i (t) represents the state error between the target truck i and the leading truck, x truck,0 (t) represents the state vector of the leading vehicle, x truck,i (t) represents the state vector of target truck i, D des,i0 (t) = [d des,ij (t),0,0] T ,φ i (t) represents the error deviation between the target truck i and the leading truck, The state error between the target truck i and the leading truck at the kth triggering moment.
7. The method for triggering a flexible event of a truck queue according to claim 4, characterized in that: Based on the two error deviations and the attack end time, the triggering conditions of the elastic event are set, including: If the current time t satisfies the following conditions: Determine that the current time t satisfies the trigger condition; and / or, if the current time t is the attack end time, determining that the current time t satisfies the trigger condition; in, represents the first error deviation of target truck i at the current time t, φ i (t) represents the second error deviation of target truck i at the current time t, ρ i represents the trigger threshold parameter for each following truck, ξ i (t) represents the first state error of target truck i at the current time t, g i (t) represents the second state error of target truck i at the current time t, χ(t) represents a trigger parameter, Q p Represents a weight matrix.
8. The method for triggering a flexible event of a truck queue according to claim 1, characterized in that: When the trigger condition is met, the network state corresponding to the current moment when the trigger condition is met is determined, and the control amount is determined based on the network state, including: When it is determined that the current moment corresponding to the time when the trigger condition is met belongs to the communication state, the event trigger controller determines the control amount according to the first control law; When it is determined that the current moment corresponding to when the trigger condition is met belongs to the attack state, the event trigger controller determines the control amount according to the second control law.
9. A flexible event triggering system for a truck platoon, characterized in that: Used to perform the method according to any one of claims 1 to 8, comprising: A data analysis module, used to obtain data traffic of the V2V communication, and determine the network status of the V2V communication and the attack end time based on the data traffic; An error analysis module, used to obtain driving state information of the truck queue, calculate two state errors of the target truck at the current moment based on the driving state information, and determine two error deviations based on the two state errors at the current moment and the two state errors at the last triggering moment; A trigger condition setting module, used to set the trigger condition of the elastic event based on the two error deviations and the attack end time; The control output module is used to determine the network state corresponding to the current moment when the trigger condition is met, and determine the control amount based on the network state.
10. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method according to any one of claims 1 to 8.
