Authentication method, device, equipment and computer storage medium for roadside equipment

By using the authentication method of random number verification in the vehicle-road collaborative system, the problem of high computing power cost of RSU identification method in the prior art is solved, the system safety and efficiency are improved, and the equipment hardware performance requirements are reduced.

CN114449513BActive Publication Date: 2024-11-15CHINA MOBILE SHANGHAI ICT CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011108386.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-16
Publication Date
2024-11-15
Estimated Expiration
2040-10-16

AI Technical Summary

Technical Problem

The method of identifying roadside units (RSUs) in the prior art requires that the computing power of the equipment is high and cannot effectively reduce the hardware performance requirements and certification delays of the equipment.

Method used

The random number is sent to the RSU through the on-board unit (OBU). The RSU sends the random number to the vehicle-road collaboration platform and the platform issues it to the legal RSU under its jurisdiction. The OBU verifies the random number during driving. If the verification is successful, it is determined that the RSU is Legal, realize authentication.

Benefits of technology

It reduces the performance requirements of the hardware computing power of the equipment, simplifies the calculation of authentication certificates, improves the security of the vehicle-road collaboration system, reduces authentication delays, and avoids the information security risks caused by fake RSUs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114449513B_ABST
    Figure CN114449513B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an authentication method, apparatus, device and computer storage medium for a roadside device. The authentication method for the roadside device applied to an on-board unit OBU includes: sending a first authentication request to a roadside unit RSU to be authenticated; receiving a first authentication credential sent by the RSU to be authenticated according to the first authentication request; authenticating the first authentication credential using a second authentication credential, wherein the second authentication credential is generated by the OBU according to a random number and an identifier of a legal RSU; when the second authentication credential is the same as the first authentication credential, determining that the RSU to be authenticated is a legal RSU, and establishing a communication connection with the RSU to be authenticated; the embodiment of the present application can solve the technical problem in the prior art that the method for identifying the RSU requires a high computing power cost of the device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information security, and in particular relates to an authentication method, device, equipment and computer storage medium for roadside equipment. Background Art

[0002] Intelligent Vehicle Infrastructure Cooperative Systems (IVICS) are the latest development direction of intelligent transportation systems. Vehicle-infrastructure cooperation uses advanced wireless communication and new generation Internet technologies to implement all-round dynamic real-time information interaction between vehicles and roads, and conducts active vehicle safety control and road cooperative management based on the collection and integration of dynamic traffic information in all time and space, fully realizing the effective coordination of people, vehicles and roads, ensuring traffic safety, and improving traffic efficiency, thus forming a safe, efficient and environmentally friendly road traffic system. In the vehicle-road cooperative system, the vehicle to everything (V2X) roadside terminal system is the key element of the road side in realizing the integrated cooperative system of "vehicle-road-cloud". It mainly refers to the roadside system with V2X and roadside unit (RSU) as the core. RSU communicates between the roadside and the vehicle's on-board unit (OBU), broadcasts road condition information and vehicle status information to OBU, and obtains vehicle position, heading angle, longitudinal speed, longitudinal acceleration, throttle, brake, turn signal and other data. RSU has V2X communication capability, realizing the software and hardware infrastructure that can provide a series of safety warnings, automatic driving and traffic management, and can interact with the cloud control platform in real time, which is convenient for the cloud control platform to obtain data, traffic statistics, background management and collaborative control.

[0003] In mobile communication systems, malicious attackers disguise themselves as base stations to send false messages to terminals, which are commonly seen as fake base stations. Similarly, in vehicle-road cooperative systems, malicious attackers may disguise themselves as RSUs to send false messages to OBUs or steal vehicle information on OBUs. In mobile communication systems, there are many methods to identify fake base stations. Similarly, vehicle-road cooperative systems also require methods to identify fake RSUs. However, the existing methods for identifying RSUs require high computing power costs for the equipment.

[0004] Application Contents

[0005] The embodiments of the present application provide an authentication method, apparatus, device and computer storage medium for roadside equipment, which can solve the technical problem that the method for identifying RSU in the prior art requires high computing power cost of the equipment.

[0006] In a first aspect, an embodiment of the present application provides an authentication method for a roadside device, the method being applied to an on-board unit OBU, the method comprising:

[0007] Sending a first authentication request to the roadside unit RSU to be authenticated;

[0008] Receiving a first authentication credential sent by the RSU to be authenticated according to the first authentication request;

[0009] Authenticate the first authentication credential using a second authentication credential, wherein the second authentication credential is generated by the OBU based on a random number and an identifier of a legitimate RSU;

[0010] When the second authentication credential is the same as the first authentication credential, it is determined that the RSU to be authenticated is a legitimate RSU, and a communication connection is established with the RSU to be authenticated.

[0011] Further, in one embodiment, when the second authentication credential is the same as the first authentication credential, and before receiving the first authentication credential sent by the RSU to be authenticated according to the first authentication request, the method further includes:

[0012] Generate a random number and mark the random number as unread;

[0013] A first message is sent to the server through a legitimate RSU, the first message including the identifier and random number of the legitimate RSU, so that the server generates a first authentication credential based on the identifier and random number of the legitimate RSU, and sends the first authentication credential to the RSUs under the server, including the RSU to be authenticated.

[0014] Furthermore, in one embodiment, the method further comprises:

[0015] Generate a random number and mark the random number as unread;

[0016] Sending a second message to the server through the legal RSU, the second message including the OBU identifier, the random number, and the identifier of the legal RSU, so as to enable the server to generate mapping relationship information of the OBU identifier, the random number, and the identifier of the legal RSU;

[0017] When the second authentication credential is the same as the first authentication credential, and before receiving the first authentication credential sent by the RSU to be authenticated according to the first authentication request, a third message is sent to the server by the RSU to be authenticated, and the third message includes the OBU identifier, so that the server can query the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier in the mapping data according to the OBU identifier, and generate the first authentication credential according to the random number and the identifier of the legal RSU, and send the first authentication credential to the RSUs under the server, and the RSUs under the server include the RSU to be authenticated.

[0018] Further, in one embodiment, after determining that the RSU to be authenticated is a legitimate RSU, the method further includes:

[0019] Mark the random number as read.

[0020] In a second aspect, an embodiment of the present application provides an authentication method for a roadside device, the method being applied to a roadside unit RSU, the method comprising:

[0021] Receiving a first authentication request sent by an on-board unit OBU;

[0022] A first authentication credential is sent to the OBU according to the first authentication request, so that the OBU uses a second authentication credential to authenticate the first authentication credential; wherein the second authentication credential is generated by the OBU according to a random number and an identifier of a legal RSU, and when the second authentication credential is the same as the first authentication credential, the OBU determines that the RSU is a legal RSU and establishes a communication connection with the RSU.

[0023] Further, in one embodiment, the first authentication request includes an identification of the OBU; when the second authentication credential is the same as the first authentication credential, and after receiving the first authentication request sent by the on-board unit OBU, the method further includes:

[0024] Determining whether the RSU stores a first authentication certificate corresponding to the OBU identifier according to the OBU identifier;

[0025] When the RSU does not store the first authentication credential corresponding to the OBU identifier,

[0026] Receive a first message sent by the OBU, and forward the first message to the server, the first message including the identifier and random number of the legal RSU, so that the server generates a first authentication credential according to the identifier and random number of the legal RSU, and sends the first authentication credential to the RSU under the server, the RSU under the server includes the RSU to be authenticated;

[0027] Receive a first authentication credential sent by the server.

[0028] Further, in one embodiment, the first authentication request includes an identification of the OBU; the method further includes:

[0029] Determining whether the RSU stores a first authentication certificate corresponding to the OBU identifier according to the OBU identifier;

[0030] When the RSU does not store the first authentication credential corresponding to the OBU identifier,

[0031] Receive a second message sent by the OBU, and forward the second message to the server, the second message including the OBU identifier, the random number, and the identifier of the legal RSU, so that the server generates mapping relationship information of the OBU identifier, the random number, and the identifier of the legal RSU;

[0032] When the second authentication credential is the same as the first authentication credential, and after receiving the first authentication request sent by the on-board unit OBU, receiving a third message sent by the OBU, the third message including the OBU identifier, and forwarding the third message to the server, so that the server can query the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier in the mapping data according to the OBU identifier, and generate the first authentication credential according to the random number and the identifier of the legal RSU, and send the first authentication credential to the RSU under the server, the RSU under the server including the RSU to be authenticated;

[0033] Receive a first authentication credential sent by the server.

[0034] In a third aspect, an embodiment of the present application provides an authentication method for a roadside device, the method being applied to a server, the method comprising:

[0035] Receive the authentication message sent by the on-board unit OBU through the legal RSU;

[0036] generating a first authentication credential according to the authentication message;

[0037] Sending a first authentication certificate to the RSU under the server;

[0038] The OBU uses the second authentication credential to authenticate the first authentication credential. When the second authentication credential is the same as the first authentication credential, the OBU determines that the RSU to be authenticated is a legitimate RSU and establishes a communication connection with the RSU to be authenticated.

[0039] The second authentication credential is generated by the OBU according to a random number and the identifier of a legitimate RSU.

[0040] Further, in one embodiment, the authentication message includes: a first message, receiving an authentication message sent by the on-board unit OBU through a legitimate RSU; generating a first authentication credential according to the authentication message includes:

[0041] Receiving a first message sent by an on-board unit OBU through a legal RSU, the first message including an identifier and a random number of the legal RSU;

[0042] A first authentication credential is generated according to the identifier of the legal RSU and a random number, and the first authentication credential is sent to the RSU under the server.

[0043] Further, in one embodiment, the authentication message includes: a second message and a third message, receiving the authentication message sent by the on-board unit OBU through the legal RSU; generating the first authentication credential according to the authentication message includes:

[0044] receiving a second message sent by the OBU through the legal RSU, the second message including the OBU identifier, a random number, and an identifier of the legal RSU;

[0045] Generate mapping information of OBU identification, random number, and identification of legal RSU;

[0046] When the second authentication credential is the same as the first authentication credential, and before the OBU receives the first authentication credential sent by the RSU to be authenticated according to the first authentication request, the receiving OBU sends a third message through the RSU to be authenticated, the third message including the OBU identifier;

[0047] According to the OBU identifier, the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier are queried in the mapping data, and a first authentication certificate is generated according to the random number and the identifier of the legal RSU, and the first authentication certificate is sent to the RSU under the server, and the RSU under the server includes the RSU to be authenticated.

[0048] In a fourth aspect, an embodiment of the present application provides an authentication device for a roadside device, which is applied to an on-board unit OBU, and includes:

[0049] A sending module, used for sending a first authentication request to the roadside unit RSU to be authenticated;

[0050] A receiving module, used to receive a first authentication credential sent by the RSU to be authenticated according to the first authentication request;

[0051] An authentication module, used to authenticate the first authentication credential using a second authentication credential, wherein the second authentication credential is generated by the OBU according to a random number and an identifier of a legitimate RSU;

[0052] The communication module is used to determine that the RSU to be authenticated is a legal RSU when the second authentication credential is the same as the first authentication credential, and to establish a communication connection with the RSU to be authenticated.

[0053] In a fifth aspect, an embodiment of the present application provides an authentication device for a roadside device, the device being applied to a roadside unit RSU, the device comprising:

[0054] A receiving module, used for receiving a first authentication request sent by an on-board unit OBU;

[0055] The sending module is used to send a first authentication certificate to the OBU according to a first authentication request, so that the OBU uses a second authentication certificate to authenticate the first authentication certificate; wherein the second authentication certificate is generated by the OBU according to a random number and an identifier of a legal RSU, and when the second authentication certificate is the same as the first authentication certificate, the OBU determines that the RSU is a legal RSU and establishes a communication connection with the RSU.

[0056] In a sixth aspect, an embodiment of the present application provides an authentication device for a roadside device, the device being applied to a server, the device comprising:

[0057] A receiving module is used to receive an authentication message sent by the on-board unit OBU through a legitimate RSU;

[0058] A generating module, used to generate a first authentication credential according to the authentication message;

[0059] A sending module, used to send a first authentication certificate to the RSU under the server;

[0060] The OBU uses the second authentication credential to authenticate the first authentication credential. When the second authentication credential is the same as the first authentication credential, the OBU determines that the RSU to be authenticated is a legitimate RSU and establishes a communication connection with the RSU to be authenticated.

[0061] The second authentication credential is generated by the OBU according to a random number and the identifier of a legitimate RSU.

[0062] In the seventh aspect, an embodiment of the present application provides an authentication device for a roadside device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the above-mentioned authentication method for the roadside device when executed by the processor.

[0063] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program for implementing information transmission is stored, and when the program is executed by a processor, the authentication method of the above-mentioned roadside equipment is implemented.

[0064] The authentication method, device, equipment and computer storage medium of the roadside equipment of the embodiment of the present application generates a second authentication certificate based on the on-board unit OBU according to the random number and the identifier of the legal RSU, and uses the second authentication certificate to authenticate the first authentication certificate sent by the server to the RSU and fed back by the RSU to be authenticated. Since only the legal RSU has a communication connection with the server, it is ensured that only the legal RSU can have the correct first authentication certificate, thereby ensuring the reliability of the authentication. Compared with the existing technology of authentication through digital certificates, firstly, there is no need to install digital certificates in advance; secondly, there is no need for multiple interactions and complex calculations during authentication, thereby making the computing cost requirements of the present application lower, thereby reducing the processing delay of the authentication process. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0066] Figure 1 This is a schematic diagram of the architecture of a roadside equipment authentication system provided by an embodiment of the present application;

[0067] Figure 2 This is a schematic diagram of the server V2X structure provided by an embodiment of the present application;

[0068] Figure 3 It is a flowchart of an authentication method for roadside equipment provided by an embodiment of the present application;

[0069] Figure 4 This is a schematic diagram of signaling interaction between a roadside unit RSU, an onboard unit OBU and a server V2X provided by an embodiment of the present application;

[0070] Figure 5 This is a schematic diagram of the overall process of an application example of an authentication method for roadside equipment provided by an embodiment of the present application;

[0071] Figure 6 This is a schematic diagram of the structure of an authentication device for a roadside device provided by an embodiment of the present application;

[0072] Figure 7 It is a structural diagram of an authentication device of a roadside device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0073] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain the present application and are not configured to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0074] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0075] The RSU in the vehicle-road cooperative system is similar to the base station in the mobile communication system for the terminal. In the mobile communication system, there are malicious attackers who disguise themselves as base stations to send false messages to the terminal, which are the pseudo base stations that we usually see. Similarly, in the vehicle-road cooperative system, there may also be malicious attackers who disguise themselves as RSUs, so the RSU needs to be authenticated.

[0076] In the prior art, there are usually the following ways to identify the legitimacy of RSU:

[0077] The first identification method is to not authenticate the RSU, but only recognize the RSU and OBU of the same manufacturer. If there is no authentication at all, there will be a situation where malicious attackers pretend to be real RSUs. If only the equipment of the same manufacturer is recognized, it is not conducive to the interconnection between multiple manufacturers, and it is impossible to support vehicles carrying OBUs of multiple different manufacturers on the same road section, which is obviously not suitable for actual operation requirements.

[0078] The second authentication method is to install a digital certificate between the RSU and the OBU, and a third-party identifier ensures the credible identities of both parties in communication. Authentication through digital certificates requires the installation of digital certificates in advance, and multiple interactions and calculations are required during authentication, which requires more computing power and latency, and has a poor perception of equipment cost and latency.

[0079] The third authentication method is that the base station and the terminal are authenticated bidirectionally through the authentication quintuple in the USIM card in the mobile communication system. In the vehicle-road cooperative system, a similar authentication method to the mobile communication system is used, and a quintuple is also set between the RSU and the OBU for bidirectional authentication. However, the mobile communication system stores the quintuple through a carrier such as the USIM card, and the USIM card is usually not installed in the OBU, which will increase the corresponding cost and require the introduction of a quintuple authentication algorithm for the OBU.

[0080] In order to solve the problems of the prior art, the embodiments of the present application provide a method, device, equipment and computer storage medium for authenticating roadside equipment. The embodiments of the present application utilize the continuous deployment of RSU in the vehicle-road collaboration scenario, send a random number to the RSU through the OBU, the RSU sends the random number to the vehicle-road collaboration platform, and the platform sends the random number to the legal RSU under its jurisdiction. When the OBU establishes a communication connection with other RSUs while driving along the highway, it verifies the random number sent before. If the verification is successful, it means that the RSU is a legal RSU, thereby realizing the technical means of authenticating the RSU, solving the technical problem that the method of identifying RSU in the prior art requires a high computing power cost of the equipment, and reducing the computing power cost of the equipment and the authentication delay.

[0081] The roadside equipment authentication method provided in the embodiment of the present application is applied to the roadside equipment authentication system. The architecture of the roadside equipment authentication system is first introduced below.

[0082] Figure 1 The schematic diagram of the architecture of a roadside device authentication system provided by an embodiment of the present application is shown. The roadside device authentication system includes: a roadside unit RSU, an onboard unit OBU, a device box, and a server V2X.

[0083] Among them, the RSU is installed on both sides of the highway or road, and can use DSRC (Dedicated Short Range Communication) and / or LTE-V (Long Term Evolution-Vehicle) technology to communicate with communication equipment traveling on the highway, and send and receive various communication information. Multiple RSUs will be deployed along the highway or road, and these RSUs all establish communication connections with the server V2X. Compared with the RSU in the prior art, the RSU in the technical solution of this application needs to cooperate with the OBU to authenticate it.

[0084] The OBU is installed in the vehicle and can also communicate with the RSU using DSRC and / or LTE-V technology to send and receive various communication information. Compared with the OBU in the prior art, the OBU in the technical solution of this application also authenticates the RSU.

[0085] The equipment box is installed on the poles on both sides of the highway or road to supply power to the equipment on the pole and connect the information transmission of the equipment on the pole to the optical fiber transmission network.

[0086] Server V2X (also known as V2X service platform): includes several functional modules: communication module, OBU information management module, authentication information calculation module, and authentication information management module. The server V2X structure is as follows: Figure 2 As shown. The functions of each module are as follows:

[0087] Communication module, used for information transmission between RSU.

[0088] The OBU information management module is used to write, read and store OBU information, where the OBU information includes the OBU identification, the random number reported by the OBU, the RSU through which the OBU reports the random number, and the validity period of the random number, which are saved in the form of Table 1:

[0089] OBU logo Random Numbers Report RSU ID Validity period obu_00000001 0x2e043bc2 rsu_00000301 yyyymmddhhmmss obu_00000002 0x4de87351 rsu_00000027 yyyymmddhhmmss obu_00000003 0x703ea08d rsu_00001003 yyyymmddhhmmss …… …… …… ……

[0090] Table 1

[0091] When an OBU reports a random number, if there is a record of the OBU in the table, the original record will be overwritten with the latest information. If there is no record of the OBU in the table, the information will be directly added.

[0092] When the validity period of the random number in the record expires, the record is deleted;

[0093] When the OBU initiates RSU authentication to the server V2X, the record corresponding to the OBU is read. If the record can be queried, the information in the record is sent to the authentication information calculation module to execute the subsequent authentication process. If the record is not queried, the OBU is requested to report a new random number.

[0094] The authentication information calculation module is used to calculate the authentication certificate required by the RSU according to the OBU authentication request and the information obtained from the OBU information management module. If the relevant information of the OBU cannot be obtained from the OBU information management module, the authentication certificate cannot be generated.

[0095] The authentication information management module is used to process the OBU authentication request reported by the RSU, and forward it to the authentication information calculation module to calculate and generate the authentication certificate according to its request. If the authentication certificate can be generated, it will be sent to the RSU through the communication module. If the authentication certificate cannot be generated, the OBU will be notified to resend the random number used for RSU authentication.

[0096] Based on the above system architecture, an embodiment of the present application provides an authentication method for a roadside device in a vehicle-road cooperative system. The following first introduces the method performed by the vehicle-mounted unit OBU. Figure 3 The figure shows a flow chart of the authentication method of the roadside device. The method is executed by the roadside unit RSU, the vehicle-mounted unit OBU and the server V2X. Figure 4 The schematic diagram of signaling interaction between the roadside unit RSU, the vehicle-mounted unit OBU and the server V2X is shown. When the RSU to be authenticated is not an RSU under the jurisdiction of V2X, the RSU to be authenticated cannot receive the first authentication certificate. Figure 3 As shown, the method may include the following steps:

[0097] S300, the OBU sends a first authentication request to the roadside unit RSU to be authenticated.

[0098] When an unknown RSU sends a communication request to the OBU, the OBU will send a first authentication request to the RSU in order to verify whether the RSU is legitimate.

[0099] S302, the OBU receives a first authentication credential sent by the RSU to be authenticated according to a first authentication request.

[0100] The following describes two situations: the RSU has the first authentication certificate and the RSU does not have the first authentication certificate.

[0101] When the RSU has the first authentication credential, the authentication credential at this time may be a correct authentication credential obtained through a legal path, and the authentication credential at this time can pass authentication; it may also be an erroneous authentication credential obtained or generated through an illegal path, and the authentication credential at this time cannot pass authentication.

[0102] When the RSU does not have the first authentication credential, it needs to obtain the first authentication credential from the server V2X. Only a legitimate RSU can communicate with the server V2X and obtain the correct first authentication credential. A malicious attacker disguised as an RSU cannot connect to V2X and has no possibility of obtaining the correct first authentication credential.

[0103] The following describes a step of generating a first authentication credential by a server, where the server may be a V2X, and the step includes:

[0104] Receive the authentication message sent by the on-board unit OBU through the legitimate RSU.

[0105] A first authentication credential is generated according to the authentication message.

[0106] The first authentication certificate is sent to the RSU under the server.

[0107] In one embodiment, the authentication message includes: a first message, and generating a first authentication credential according to the authentication message includes:

[0108] Receiving a first message sent by an on-board unit OBU through a legal RSU, the first message including an identifier and a random number of the legal RSU;

[0109] A first authentication credential is generated according to the identifier of the legal RSU and a random number, and the first authentication credential is sent to the RSU under the server.

[0110] Further, in one embodiment, the authentication message includes: a second message and a third message, and generating a first authentication credential according to the authentication message includes:

[0111] receiving a second message sent by the OBU through the legal RSU, the second message including the OBU identifier, a random number, and an identifier of the legal RSU;

[0112] Generate mapping information of OBU identification, random number, and identification of legal RSU;

[0113] When the second authentication credential is the same as the first authentication credential, and before the OBU receives the first authentication credential sent by the RSU to be authenticated according to the first authentication request (that is, the following steps will only occur when the RSU to be authenticated is a legitimate RSU):

[0114] The receiving OBU sends a third message through the RSU to be authenticated, and the third message includes the OBU identifier.

[0115] According to the OBU identifier, the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier are queried in the mapping data, and a first authentication certificate is generated according to the random number and the identifier of the legal RSU, and the first authentication certificate is sent to the RSU under the server, and the RSU under the server includes the RSU to be authenticated.

[0116] Specifically, the algorithm for generating the first authentication certificate can be "random number + difference between two legal RSU identifiers". For example, the OBU identifier is obu_00000001, the corresponding random number queried is 0x2e043bc2, the identifier of the legal RSU that uploads the random number to the server is rsu_00000301, and the identifier of another preset legal RSU is rsu_00000308. Then the calculation process of the first authentication certificate is: 0x2e043bc2+(rsu_00000308-rsu_00000301)=0x2e043bc9, that is, the calculated first authentication certificate is 0x2e043bc9.

[0117] After ensuring that the RSU has the first authentication certificate, it can be sent to the OBU for subsequent authentication. If the RSU cannot provide the authentication certificate, the authentication will not be passed directly.

[0118] S304, the OBU uses the second authentication credential to authenticate the first authentication credential.

[0119] The second authentication certificate is generated by the on-board unit OBU according to the random number and the identifier of the legal RSU. The OBU compares the first authentication certificate with the second authentication certificate. If the first authentication certificate is different from the second authentication certificate, the RSU to be authenticated is an illegal RSU, and the communication connection between the RSU to be authenticated and the OBU is not established; if the first authentication certificate is the same as the second authentication certificate, S306 is executed.

[0120] Specifically, the algorithm for generating the second authentication certificate can be "random number + difference between two legal RSU identifiers". For example, if the random number generated by the OBU itself is 0x2e043bc2, the identifier of the legal RSU through which the random number is uploaded to the server is rsu_00000301, and the identifier of another preset legal RSU is rsu_00000308, then the calculation process of the second authentication certificate is: 0x2e043bc2+(rsu_00000308-rsu_00000301)=0x2e043bc9, that is, the calculated second authentication certificate is 0x2e043bc9. The second authentication certificate 0x2e043bc9 can be used to compare and verify with the first authentication certificate fed back by the RSU.

[0121] S306: When the second authentication credential is the same as the first authentication credential, it is determined that the RSU to be authenticated is a legitimate RSU, and the OBU establishes a communication connection with the RSU to be authenticated.

[0122] This facilitates subsequent communication between OBU and RSU and ensures the security of communication data.

[0123] Optionally, in an embodiment, before S302, the method may further include:

[0124] OBU generates a random number and marks the random number as unread;

[0125] The OBU sends a first message to the server through a legitimate RSU, the first message including the identifier and random number of the legitimate RSU, so that the server generates a first authentication credential according to the identifier and random number of the legitimate RSU, and sends the first authentication credential to the RSU under the server, including the RSU to be authenticated.

[0126] Optionally, in one embodiment, the method may further include:

[0127] OBU generates a random number and marks the random number as unread;

[0128] The OBU sends a second message to the server through the legal RSU, where the second message includes the OBU identifier, the random number, and the identifier of the legal RSU, so as to be used by the server to generate mapping relationship information of the OBU identifier, the random number, and the identifier of the legal RSU;

[0129] When the second authentication credential is the same as the first authentication credential, and before S302, the OBU sends a third message to the server through the RSU to be authenticated, and the third message includes the OBU identifier, so that the server can query the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier in the mapping data according to the OBU identifier, and generate the first authentication credential according to the random number and the identifier of the legal RSU, and send the first authentication credential to the RSUs under the server, and the RSUs under the server include the RSU to be authenticated.

[0130] This step ensures that the server has a channel to obtain the information required to generate the first authentication credential.

[0131] Optionally, in an embodiment, after S306, the method may further include:

[0132] The OBU marks the random number as read.

[0133] Since the random number is marked as read after the authentication is passed, the marking status of the random number can reflect the historical authentication results.

[0134] For example, there may be multiple RSUs on a road, and correspondingly there will be multiple authentication processes. In a certain authentication process, you only need to query the random number mark to know whether there is an RSU with successful authentication in the history (if so, the random number will be marked as read).

[0135] The above introduces the authentication method for roadside equipment provided in an embodiment of the present application. To help understanding, an application example of the authentication method for roadside equipment provided in an embodiment of the present application is introduced below. Figure 5 The overall process of the application example of the authentication method of the roadside equipment is shown as follows: Figure 5 As shown, the application examples include:

[0136] S1: OBU detects the RSU signal. When it detects the RSU signal, it executes S2.

[0137] The RSU deployed on the roadside will send a signal to the OBU. When the OBU detects the RSU signal, it starts authentication to verify whether the RSU is legitimate.

[0138] S2: OBU determines whether it has generated and stored a random number. If so, it executes S3; if not, it executes S13.

[0139] When OBU stores random numbers, the saved records include the random numbers and the validity period of the random numbers. The validity period is set by OBU when generating random numbers. When the random number exceeds the validity period, OBU deletes the record and regenerates the random number or generates the random number again the next time it interacts with RSU.

[0140] S3: The OBU sends a first authentication request to the RSU with which it wants to establish a connection.

[0141] The first authentication request includes the identifier of the OBU.

[0142] S4: The RSU to be authenticated determines whether the RSU to be authenticated stores the first authentication credential corresponding to the OBU identifier according to the OBU identifier. If the first authentication credential is stored, S7 is executed; if the first authentication credential is not stored, S5 is executed.

[0143] S5: Send an authentication message to V2X through the legitimate RSU.

[0144] S6: V2X calculates a first authentication credential for the RSU according to the authentication message, and sends the first authentication credential to the RSU under the jurisdiction of V2X.

[0145] S7: The RSU to be authenticated responds to the first authentication request of the OBU and feeds back the first authentication credential to the OBU.

[0146] S8: The OBU calculates the second authentication certificate, and compares the first authentication certificate with the second authentication certificate to see if they are the same. If they are the same, the authentication is passed and the process proceeds to S9; otherwise, the authentication is not passed and the process proceeds to S11.

[0147] The second authentication certificate is generated by the OBU according to a random number and the identifier of a legitimate RSU.

[0148] S9: The OBU marks the random number used when generating the second authentication credential as read.

[0149] Since the OBU successfully authenticated the RSU using the random number, it reflects that the random number stored in the OBU has been correctly recorded in the V2X service platform. Therefore, it can be considered that within the validity period of the random number, the random number subsequently marked as used in the OBU can be used as a basis for authenticating the RSU.

[0150] S10: The OBU passes the authentication of the RSU to be authenticated; subsequently, the OBU and the RSU can communicate and enter S20.

[0151] S11: The OBU finishes the authentication of the RSU to be authenticated and does not establish a connection with it.

[0152] S12: Check whether the random number stored in the OBU is marked as read. If the random number is marked as read, enter S20; if the random number is marked as unread, enter S13.

[0153] When the random number is marked as read, it means that the first authentication credential was the same as the second authentication credential in the past, and the RSU to be authenticated has passed the authentication. V2X has the data uploaded by the first RSU, which means that the first RSU is a legal RSU. The data uploaded by the first RSU can be used for authentication in the future.

[0154] When the random number is marked as unread, it means that any previous RSU has failed authentication. Accordingly, V2X does not store any data. The first RSU that should have uploaded data to V2X did not upload it. In this case, the first RSU is an RSU disguised as an illegal attacker. At this time, the random number contained in the data uploaded by the first RSU can no longer be authenticated and needs to be regenerated.

[0155] Usually, multiple RSUs are distributed on a certain road section, and the first RSU mentioned above can be an optional RSU. The OBU only interacts with it for authentication information, but does not perform other communication interactions. Accordingly, it does not use the authentication certificate to authenticate it, but reflects whether the first RSU is legitimate through the authentication results of other RSUs to be authenticated that use the authentication certificate to perform authentication.

[0156] The following uses several scenarios to illustrate how the authentication results of other RSUs can reflect whether the first RSU is legitimate. The scenarios are as follows:

[0157] Scenario 1: The first two RSUs detected are both legitimate RSUs. The authentication process in this scenario is as follows:

[0158] Step 1: In the initial stage, the OBU has not been connected to the RSU and has not generated a random number.

[0159] Step 2: When the first RSU is detected, a new random number is generated and marked as unread. At the same time, only the authentication information is uploaded to V2X through the first RSU, and no other information is exchanged with the first RSU.

[0160] Step 3: When the second RSU is detected, the authentication information in step 2 is used to complete the authentication of the second RSU. After authentication, the OBU establishes a connection with the second RSU, and the OBU marks the random number it stores as used. This means that the first RSU has indeed uploaded the authentication information to V2X, and only legal RSUs can communicate with V2X, indicating that the first RSU is legal.

[0161] Step 4: During the validity period of the random number, the random number stored in the OBU is marked as used. The random number is used for subsequent authentication of the RSU. If the next detected RSU is a legal RSU, it can be successfully authenticated through the method of step 3. If the next detected RSU is an illegal RSU, the authentication fails and no connection is established with the RSU. When a new RSU is detected subsequently, the authentication process is repeated in step 4.

[0162] Scenario 2: The first RSU detected is an illegal RSU. The specific authentication process in this scenario is as follows:

[0163] Step 1: In the initial stage, the OBU has not been connected to the RSU and has not generated a random number.

[0164] Step 2: When the first RSU is detected, a new random number is generated and marked as unread. At the same time, only the authentication information is uploaded to V2X through the first RSU, and no other information is exchanged with the first RSU.

[0165] Step 3: When the RSU to be detected is detected, no matter whether the second RSU is legal or illegal, since the first RSU is illegal, it is impossible for it to transmit the authentication information to the second RSU through the V2X service platform, so all the RSUs to be detected by the OBU fail to pass the authentication. At this time, the random number status must be unread, indicating that the first RSU is illegal.

[0166] At this time, a random number is regenerated, and the authentication information is sent to V2X through the first reselected RSU for re-authentication.

[0167] In scenario 3, the first RSU detected is a legitimate RSU, and some of the remaining RSUs to be authenticated pass authentication, while others fail authentication. The authentication process is as follows:

[0168] Step 1: In the initial stage, the OBU has not been connected to the RSU and has not generated a random number.

[0169] Step 2: When the first RSU is detected, a new random number is generated and marked as unread. At the same time, only the authentication information is uploaded to V2X through the first RSU, and no other information is exchanged with the first RSU.

[0170] Step 3: When a certain RSU to be authenticated is detected, the authentication information in step 2 is used to complete the authentication of the RSU to be authenticated. After authentication, the OBU establishes a connection with the RSU to be authenticated, and the OBU marks the random number it stores as used. This means that the first RSU has indeed uploaded the authentication information to V2X, and only legal RSUs can communicate with V2X. The first RSU is a legal RSU. For the RSU to be authenticated that fails the authentication, it is disguised by an illegal attacker, and it has no channel to obtain legal authentication credentials.

[0171] S13: The OBU regenerates a set of random numbers for authenticating the RSU, marks the newly generated random numbers as unread, and stores the random numbers locally in the OBU.

[0172] S14: The OBU reports data including a random number to the first reselected RSU.

[0173] S15: Forward the data to V2X through the first reselected RSU.

[0174] S16: The V2X service platform records the data.

[0175] Among them, the V2X service platform stores the data in the OBU information table in the OBU information management module, and stores it with the OBU identifier as the index. If there is a record of the OBU identifier, the new information reported this time will overwrite the original record.

[0176] S17: The V2X service platform calculates the first authentication credential that each legitimate RSU that the OBU corresponding to the OBU identifier in the data will pass through needs to obtain based on the data.

[0177] Usually, after a vehicle enters a highway, it will establish a communication connection with the roadside RSUs deployed on the road to transmit information. And because the vehicle will inevitably pass by the RSUs around the RSU, after the V2X service platform receives the OBU report information, it can calculate the first authentication certificate in advance and send it to the surrounding RSUs so that the RSUs can quickly complete the authentication.

[0178] S18: V2X sends the calculated first authentication certificate to each legitimate RSU that the OBU will pass through.

[0179] Wherein, based on the difference of each RSU identification to be authenticated, each RSU has its own specific first authentication credential for the same OBU.

[0180] S19: Each legal RSU saves its first authentication certificate specific to the OBU and proceeds to S20.

[0181] S20: The authentication process ends.

[0182] The authentication method for roadside equipment provided in the embodiment of the present application utilizes the characteristic that a vehicle will continuously pass by RSU when driving, and sends a random number to RSU through OBU. RSU sends the random number to the vehicle-road cooperative platform, and the platform sends the random number to the legal RSU under its jurisdiction. When the OBU establishes a communication connection with other RSUs while driving along the highway, it verifies the random number sent before. If the verification is successful, it means that the RSU is a legal RSU, thereby achieving the authentication of the RSU. The technical solution of the present application is applicable to the information security needs of vehicle-road cooperative scenarios including but not limited to highways and urban roads, avoiding the connection of fake RSUs that lead to receiving erroneous information or not receiving correct information in time, thereby affecting driving safety, and the calculation of authentication credentials is simple and efficient. The technical solution of the present application improves the security of the vehicle-road cooperative system, reduces the hardware computing power performance requirements of the equipment, and reduces the authentication delay.

[0183] Figure 1-5 The authentication method of the roadside equipment provided by the embodiment of the present application is described below in conjunction with the attached Figure 6-7 Describe the device provided in the embodiment of the present application.

[0184] Figure 6 A schematic diagram showing the structure of an authentication device for a roadside device provided in an embodiment of the present application is shown. Figure 6 Each module in the device shown has the function of realizing Figure 3 The functions of each step in the process can achieve the corresponding technical effects. Figure 6 As shown, the device may include:

[0185] The sending module 600 is used to instruct the OBU to send a first authentication request to the roadside unit RSU to be authenticated.

[0186] When an unknown RSU sends a communication request to the OBU, the OBU will send a first authentication request to the RSU in order to verify whether the RSU is legitimate.

[0187] The receiving module 602 is used to enable the OBU to receive the first authentication credential sent by the RSU to be authenticated according to the first authentication request.

[0188] The following describes two situations: the RSU has the first authentication certificate and the RSU does not have the first authentication certificate.

[0189] When the RSU has the first authentication credential, the authentication credential at this time may be a correct authentication credential obtained through a legal path, and the authentication credential at this time can pass authentication; it may also be an erroneous authentication credential obtained or generated through an illegal path, and the authentication credential at this time cannot pass authentication.

[0190] When the RSU does not have the first authentication credential, it needs to obtain the first authentication credential from the server V2X. Only a legitimate RSU can communicate with the server V2X and obtain the correct first authentication credential. A malicious attacker disguised as an RSU cannot connect to V2X and has no possibility of obtaining the correct first authentication credential.

[0191] The following describes the various modules used when generating the first authentication credential. The modules are as follows:

[0192] The receiving module 602 is also used to enable the server to receive the authentication message sent by the on-board unit OBU through the legal RSU.

[0193] The generating module 608 is used to instruct the server to generate a first authentication credential according to the authentication message.

[0194] The sending module 600 is also used to instruct the server to send the first authentication certificate to the RSU under its jurisdiction.

[0195] In one embodiment, the authentication message includes: a first message.

[0196] The receiving module 602 is specifically used to enable the server to receive a first message sent by the on-board unit OBU through a legal RSU, where the first message includes an identifier and a random number of the legal RSU;

[0197] The generating module 608 is specifically used to instruct the server to generate a first authentication certificate according to the identifier of the legal RSU and the random number, and send the first authentication certificate to the RSU under the server.

[0198] Further, in one embodiment, the authentication message includes: a second message and a third message, and the device also includes a query module 610.

[0199] The receiving module 602 is specifically used to enable the server to receive a second message sent by the OBU through a legal RSU, the second message including the OBU identifier, a random number, and the identifier of the legal RSU; generate mapping relationship information of the OBU identifier, the random number, and the identifier of the legal RSU; when the second authentication credential is the same as the first authentication credential, and before the OBU receives the first authentication credential sent by the RSU to be authenticated according to the first authentication request (that is, the following steps will only occur when the RSU to be authenticated is a legal RSU): receive the third message sent by the OBU through the RSU to be authenticated, the third message including the OBU identifier.

[0200] The query module 610 is used to enable the server to query the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier in the mapping data according to the OBU identifier.

[0201] The generating module 608 is specifically used to generate a first authentication certificate according to the random number and the identifier of the legal RSU.

[0202] The sending module 600 is specifically used to instruct the server to send the first authentication credential to the RSUs under its jurisdiction, and the RSUs under the server include the RSU to be authenticated.

[0203] Specifically, the algorithm for generating the first authentication certificate can be "random number + difference between two legal RSU identifiers". For example, the OBU identifier is obu_00000001, the corresponding random number queried is 0x2e043bc2, the identifier of the legal RSU that uploads the random number to the server is rsu_00000301, and the identifier of another preset legal RSU is rsu_00000308. Then the calculation process of the first authentication certificate is: 0x2e043bc2+(rsu_00000308-rsu_00000301)=0x2e043bc9, that is, the calculated first authentication certificate is 0x2e043bc9.

[0204] After ensuring that the RSU has the first authentication certificate, it can be sent to the OBU for subsequent authentication. If the RSU cannot provide the authentication certificate, the authentication will not be passed directly.

[0205] After ensuring that the RSU has the first authentication certificate, it can be sent to the OBU for subsequent authentication. If the RSU cannot provide the authentication certificate, the authentication will not be passed directly.

[0206] The authentication module 604 is used to enable the OBU to authenticate the first authentication certificate using the second authentication certificate.

[0207] The second authentication certificate is generated by the on-board unit OBU according to the random number and the identifier of the legal RSU. The OBU compares the first authentication certificate with the second authentication certificate. If the first authentication certificate is different from the second authentication certificate, the RSU to be authenticated is an illegal RSU, and the communication connection between the RSU to be authenticated and the OBU is not established; if the first authentication certificate is the same as the second authentication certificate, S306 is executed.

[0208] Specifically, the algorithm for generating the second authentication certificate can be "random number + difference between two legal RSU identifiers". For example, if the random number generated by the OBU itself is 0x2e043bc2, the identifier of the legal RSU through which the random number is uploaded to the server is rsu_00000301, and the identifier of another preset legal RSU is rsu_00000308, then the calculation process of the second authentication certificate is: 0x2e043bc2+(rsu_00000308-rsu_00000301)=0x2e043bc9, that is, the calculated second authentication certificate is 0x2e043bc9. The second authentication certificate 0x2e043bc9 can be used to compare and verify with the first authentication certificate fed back by the RSU.

[0209] The communication module 606 is used to determine that the RSU to be authenticated is a legal RSU when the second authentication credential is the same as the first authentication credential, and to enable the OBU to establish a communication connection with the RSU to be authenticated.

[0210] This facilitates subsequent communication between OBU and RSU and ensures the security of communication data.

[0211] Optionally, in one embodiment, each module of the device may also be used for:

[0212] The generating module 608 is also used to instruct the OBU to generate a random number.

[0213] Optionally, in one embodiment, the device further comprises:

[0214] The marking module 612 is used to make the OBU mark the random number as read after it establishes a communication connection with the RSU to be authenticated, otherwise mark it as unread.

[0215] Since the random number is marked as read after the authentication is passed, the marking status of the random number can reflect the historical authentication results.

[0216] For example, there may be multiple RSUs on a road, and correspondingly there will be multiple authentication processes. In a certain authentication process, you only need to query the random number mark to know whether there is an RSU with successful authentication in the history (if so, the random number will be marked as read).

[0217] The authentication device of the roadside equipment provided in the embodiment of the present application utilizes the characteristic that the vehicle will continuously pass by the RSU when driving, and sends a random number to the RSU through the OBU. The RSU sends the random number to the vehicle-road cooperative platform, and the platform sends the random number to the legal RSU under its jurisdiction. When the OBU establishes a communication connection with other RSUs while driving along the highway, it verifies the random number sent before. If the verification is successful, it means that the RSU is a legal RSU, thereby realizing the authentication of the RSU. The technical solution of the present application is applicable to the information security needs of vehicle-road cooperative scenarios including but not limited to highways and urban roads, avoiding the connection of fake RSUs that lead to receiving erroneous information or not receiving correct information in time, thereby affecting driving safety, and the calculation of authentication credentials is simple and efficient. The technical solution of the present application improves the security of the vehicle-road cooperative system, reduces the hardware computing power performance requirements of the equipment, and reduces the authentication delay.

[0218] Figure 7 A schematic diagram of the structure of an authentication device for a roadside device provided by an embodiment of the present application is shown. Figure 7 As shown, the device may include a processor 101 and a memory 102 storing a computer program.

[0219] Specifically, the processor 101 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0220] The memory 102 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 102 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 102 may include a removable or non-removable (or fixed) medium, or the memory 102 is a non-volatile solid-state memory. The memory 102 may be inside or outside the integrated gateway disaster recovery device.

[0221] In one example, the memory 102 may be a read-only memory (ROM). In one example, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0222] The processor 101 reads and executes the computer program stored in the memory 102 to implement Figure 1-5 The method / steps in the embodiment shown in the figure can achieve Figure 1-5 The corresponding technical effects achieved by executing the methods / steps in the examples shown are not repeated here for the sake of brevity.

[0223] In one example, the authentication device of the roadside device may further include a communication interface 103 and a bus 110. Figure 7 As shown, the processor 101, the memory 102, and the communication interface 103 are connected via a bus 110 and communicate with each other.

[0224] The communication interface 103 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0225] Bus 110 includes hardware, software or both, and the components of online data flow billing equipment are coupled to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 110 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0226] The authentication device of the roadside device can perform the authentication steps of the roadside device in the embodiment of the present application, thereby achieving Figure 1-5 Describes an authentication method for a roadside device.

[0227] In addition, in combination with the roadside device authentication method in the above embodiment, the present application embodiment can provide a computer storage medium for implementation. The computer storage medium stores a computer program; when the computer program is executed by a processor, any roadside device authentication method in the above embodiment is implemented.

[0228] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0229] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0230] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0231] Aspects of the present disclosure are described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by a computer program. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0232] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A roadside equipment authentication method, It is characterized in that The method is applied to an on-board unit (OBU), and the method comprises: Sending a first authentication request to the roadside unit RSU to be authenticated; Receiving a first authentication credential sent by the RSU to be authenticated according to the first authentication request; Authenticating the first authentication credential using a second authentication credential, wherein the second authentication credential is generated by the OBU based on a random number and an identifier of a legitimate RSU; When the second authentication credential is the same as the first authentication credential, determining that the RSU to be authenticated is a legitimate RSU, and establishing a communication connection with the RSU to be authenticated; The method further comprises: generating the random number, and marking the random number as unread; Sending a second message to the server through the legal RSU, wherein the second message includes the OBU identifier, the random number, and the identifier of the legal RSU, so that the server generates mapping relationship information of the OBU identifier, the random number, and the identifier of the legal RSU; When the second authentication credential is the same as the first authentication credential, and before the first authentication credential sent by the RSU to be authenticated according to the first authentication request is received, a third message is sent to the server through the RSU to be authenticated, the third message includes the OBU identifier, so that the server queries the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier in the mapping relationship information according to the OBU identifier, generates the first authentication credential according to the random number and the identifier of the legal RSU, and sends the first authentication credential to the RSUs under the server, the RSUs under the server include the RSU to be authenticated; Alternatively, the method comprises: When the second authentication credential is the same as the first authentication credential, and before receiving the first authentication credential sent by the RSU to be authenticated according to the first authentication request, generating the random number, and marking the random number as unread; A first message is sent to the server through the legal RSU, wherein the first message includes the identifier of the legal RSU and the random number, so that the server generates the first authentication credential according to the identifier of the legal RSU and the random number, and sends the first authentication credential to the RSUs under the server, wherein the RSUs under the server include the RSU to be authenticated.

2. The roadside equipment authentication method according to claim 1, It is characterized in that After determining that the RSU to be authenticated is a legitimate RSU, the method further includes: Mark the random number as read.

3. A roadside equipment authentication method, It is characterized in that The method is applied to a roadside unit RSU, and the method comprises: Receiving a first authentication request sent by an on-board unit OBU; Sending a first authentication credential to the OBU according to the first authentication request, so that the OBU uses a second authentication credential to authenticate the first authentication credential; wherein the second authentication credential is generated by the OBU according to a random number and an identifier of a legal RSU, and when the second authentication credential is the same as the first authentication credential, the OBU determines that the RSU is a legal RSU and establishes a communication connection with the RSU; The first authentication request includes an identification of the OBU; the method further includes: Determining whether the RSU stores the first authentication certificate corresponding to the identifier of the OBU according to the identifier of the OBU; When the RSU does not save the first authentication credential corresponding to the identifier of the OBU, receiving a second message sent by the OBU, and forwarding the second message to a server, wherein the second message includes the OBU identifier, the random number, and the identifier of the legal RSU, so as to be used by the server to generate mapping relationship information of the OBU identifier, the random number, and the identifier of the legal RSU; When the second authentication credential is the same as the first authentication credential, and after receiving the first authentication request sent by the on-board unit OBU, receiving a third message sent by the OBU, the third message including the OBU identifier, and forwarding the third message to the server, so that the server can query the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier in the mapping relationship information according to the OBU identifier, and generate the first authentication credential according to the random number and the identifier of the legal RSU, and send the first authentication credential to the RSUs under the server, the RSUs under the server include the RSU to be authenticated; Receiving the first authentication certificate sent by the server; Alternatively, the method comprises: The first authentication request includes the identifier of the OBU; when the second authentication credential is the same as the first authentication credential, and after receiving the first authentication request sent by the on-board unit OBU, determining whether the RSU has stored the first authentication credential corresponding to the identifier of the OBU according to the identifier of the OBU; When the RSU does not store the first authentication credential corresponding to the identifier of the OBU, Receive a first message sent by the OBU, and forward the first message to a server, wherein the first message includes the identifier of the legal RSU and the random number, so that the server generates the first authentication credential according to the identifier of the legal RSU and the random number, and sends the first authentication credential to the RSU under the server, wherein the RSU under the server includes the RSU to be authenticated; Receive the first authentication credential sent by the server.

4. A method for authenticating a roadside device, It is characterized in that The method is applied to a server, and the method comprises: Receive the authentication message sent by the on-board unit OBU through the legal RSU; generating a first authentication credential according to the authentication message; Sending the first authentication certificate to the RSU under the server; The OBU uses a second authentication credential to authenticate the first authentication credential. When the second authentication credential is the same as the first authentication credential, the OBU determines that the RSU to be authenticated is a legitimate RSU and establishes a communication connection with the RSU to be authenticated; Wherein, the second authentication certificate is generated by the OBU according to a random number and an identification of a legal RSU; The authentication message includes: a second message and a third message, and the receiving vehicle-mounted unit OBU sends the authentication message through a legitimate RSU; generating a first authentication certificate according to the authentication message includes: Receiving a second message sent by the OBU through the legal RSU, the second message including the OBU identifier, the random number, and the identifier of the legal RSU; Generate mapping relationship information of the OBU identifier, the random number, and the identifier of the legal RSU; When the second authentication credential is the same as the first authentication credential, and before the OBU receives the first authentication credential sent by the RSU to be authenticated according to the first authentication request, receiving a third message sent by the OBU through the RSU to be authenticated, wherein the third message includes the OBU identifier; According to the OBU identifier, query the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier in the mapping relationship information, generate the first authentication certificate according to the random number and the identifier of the legal RSU, and send the first authentication certificate to the RSU under the server, where the RSU under the server includes the RSU to be authenticated; Alternatively, the authentication message includes: a first message, the receiving vehicle-mounted unit OBU sends an authentication message through a legitimate RSU; generating a first authentication credential according to the authentication message includes: Receiving a first message sent by an on-board unit OBU through a legal RSU, wherein the first message includes an identifier and a random number of the legal RSU; The first authentication credential is generated according to the identifier of the legal RSU and the random number, and the first authentication credential is sent to the RSU under the server.

5. An authentication device for roadside equipment, It is characterized in that The device is applied to an on-board unit (OBU), and comprises: A sending module, used for sending a first authentication request to the roadside unit RSU to be authenticated; A receiving module, configured to receive a first authentication credential sent by the RSU to be authenticated according to the first authentication request; An authentication module, used to authenticate the first authentication credential using a second authentication credential, wherein the second authentication credential is generated by the OBU according to a random number and an identifier of a legitimate RSU; A communication module, configured to determine that the RSU to be authenticated is a legitimate RSU and establish a communication connection with the RSU to be authenticated when the second authentication credential is the same as the first authentication credential; A generating module is further used to generate the random number; A marking module, used for marking the random number as unread; The sending module is further used to send a second message to the server through the legal RSU, wherein the second message includes the OBU identifier, the random number, and the identifier of the legal RSU, so that the server generates mapping relationship information of the OBU identifier, the random number, and the identifier of the legal RSU; The sending module is also used to send a third message to the server through the RSU to be authenticated when the second authentication credential is the same as the first authentication credential and before receiving the first authentication credential sent by the RSU to be authenticated according to the first authentication request, wherein the third message includes the OBU identifier, so that the server can query the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier in the mapping relationship information according to the OBU identifier, generate the first authentication credential according to the random number and the identifier of the legal RSU, and send the first authentication credential to the RSUs under the server, and the RSUs under the server include the RSU to be authenticated.

6. An authentication device for roadside equipment, It is characterized in that The device is applied to a road side unit RSU, and the device comprises: A receiving module, used for receiving a first authentication request sent by an on-board unit OBU; A sending module, used for sending a first authentication credential to the OBU according to the first authentication request, so that the OBU uses a second authentication credential to authenticate the first authentication credential; wherein the second authentication credential is generated by the OBU according to a random number and an identifier of a legal RSU, and when the second authentication credential is the same as the first authentication credential, the OBU determines that the RSU is a legal RSU and establishes a communication connection with the RSU; The first authentication request includes an identification of the OBU; The receiving module is further used to determine whether the RSU stores the first authentication certificate corresponding to the identifier of the OBU according to the identifier of the OBU; The receiving module is further used for receiving a second message sent by the OBU when the RSU does not save the first authentication credential corresponding to the identifier of the OBU, and forwarding the second message to the server, wherein the second message includes the OBU identifier, the random number, and the identifier of the legal RSU, so as to be used by the server to generate mapping relationship information of the OBU identifier, the random number, and the identifier of the legal RSU; The receiving module is further used for, when the second authentication credential is the same as the first authentication credential and after receiving the first authentication request sent by the on-board unit OBU, receiving a third message sent by the OBU, the third message including the OBU identifier, and forwarding the third message to the server, so that the server can query the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier in the mapping relationship information according to the OBU identifier, generate the first authentication credential according to the random number and the identifier of the legal RSU, and send the first authentication credential to the RSU under the server, the RSU under the server including the RSU to be authenticated; The receiving module is further used to receive the first authentication certificate sent by the server.

7. An authentication device for roadside equipment, It is characterized in that The device is applied to a server, and comprises: A receiving module is used to receive an authentication message sent by the on-board unit OBU through a legitimate RSU; A generating module, configured to generate a first authentication credential according to the authentication message; A sending module, used for sending the first authentication certificate to the RSU under the server; The OBU uses a second authentication credential to authenticate the first authentication credential. When the second authentication credential is the same as the first authentication credential, the OBU determines that the RSU to be authenticated is a legitimate RSU and establishes a communication connection with the RSU to be authenticated; Wherein, the second authentication certificate is generated by the OBU according to a random number and an identification of a legal RSU; The authentication message includes: a second message and a third message, the authentication message sent by the receiving on-board unit OBU through a legal RSU; The receiving module is further used to receive a second message sent by the OBU through the legal RSU, wherein the second message includes the OBU identifier, the random number, and the identifier of the legal RSU; The receiving module is further used to generate mapping relationship information of the OBU identifier, the random number, and the identifier of the legal RSU; The receiving module is further configured to receive, when the second authentication credential is the same as the first authentication credential and before the OBU receives the first authentication credential sent by the RSU to be authenticated according to the first authentication request, a third message sent by the OBU through the RSU to be authenticated, wherein the third message includes the OBU identifier; The query module is further used to query the random number corresponding to the OBU identifier and the identifier of the legal RSU corresponding to the OBU identifier in the mapping relationship information according to the OBU identifier; The generating module is further used to generate the first authentication certificate according to the random number and the identifier of the legal RSU; The sending module is further used to send the first authentication credential to the RSU under the server, and the RSU under the server includes the RSU to be authenticated.

8. An authentication device for a roadside device, It is characterized in that include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the authentication method for the roadside equipment according to any one of claims 1 to 4.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores an implementation program for information transmission, and when the program is executed by a processor, the authentication method for the roadside equipment according to any one of claims 1 to 4 is implemented.