Access control method, device and storage medium
By generating and synchronizing the access control configuration file of the vehicle communication network, identifying and blocking illegal ECU calls, it solves the problem of insufficient security of the existing vehicle communication network, achieves higher security and accuracy, and ensures the safety of the vehicle communication network. stability and security.
Patent Information
- Application Number
- CN202210696132.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2042-06-20
AI Technical Summary
Existing automotive communication network security measures are difficult to effectively prevent illegal attacks, resulting in insufficient security of vehicle communication systems, especially when the lives and property safety of drivers and passengers are threatened. Traditional security strategies such as TLS, key certificates or It is difficult for Token and others to ensure the integrity of the network.
By generating and synchronizing the access control configuration file of the vehicle communication network, illegal ECU calls are identified and blocked, and the access control configuration file generated by the service definition is used to synchronize the configuration of each ECU of the vehicle to ensure the security of the vehicle communication network. This method includes steps such as difference detection, encryption and signature processing, fault tolerance detection, etc., and performs double-end authentication based on the SOME/IP protocol to ensure the legitimacy of the access request.
It improves the security and access control accuracy of the vehicle communication network, avoids the risk of traditional security measures being cracked, ensures the normal and orderly operation of various services in the vehicle, and enhances the ability to identify and block illegal access.
Smart Images

Figure CN115189923B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of automobile communication technology, and in particular to an access control method and a device storage medium. Background Art
[0002] At present, the in-vehicle communication network is mainly constructed using the server-client communication structure based on Ethernet. This communication network architecture will inevitably introduce Ethernet network security risks. The traditional method in the industry to solve this problem is to add common Internet security strategies, such as using TLS, key certificates or tokens and other security measures to control access to received access requests. These are the basic protection means for existing Ethernet communication security. However, in the field of automotive communications, the integration of the vehicle control system and the vehicle communication network in one system seriously involves the life and property safety of the driver and passengers due to the particularity of the communication security of the car itself. When the control system or communication system in the car is attacked by the network or other illegal attacks, the existing security measures are difficult to ensure the security of the vehicle communication system. Therefore, how to improve the security of the vehicle communication network has become an urgent problem to be solved in this industry. Summary of the invention
[0003] In view of this, embodiments of the present application provide an access control method, device, and computer storage medium to solve the above problems.
[0004] In a first aspect, the present application provides an access control method, applied to a server, comprising:
[0005] Configure access control profiles adapted to the vehicle's onboard communication network;
[0006] Sending the access control profile to the vehicle adapted to the access control profile, so as to synchronize access configurations of ECUs in the vehicle-mounted communication network of the vehicle through the access control profile;
[0007] The in-vehicle communication network after the access configuration synchronization is used to perform access control on the access request received by the vehicle end.
[0008] Optionally, in one embodiment of the present application, the access control method further includes, before sending the access control profile to the vehicle adapted to the access control profile, performing a difference detection on the access control profile configured by the server and the access control profile currently configured on the vehicle; if the result of the difference detection is inconsistent, sending the access control profile configured by the server to the vehicle.
[0009] Optionally, in an embodiment of the present application, the configuration adapts the access control configuration file of the vehicle-mounted communication network carried by the vehicle, including:
[0010] Determining a service function interface matrix for the vehicle;
[0011] Determining a communication configuration file adapted to the vehicle according to the service function interface matrix;
[0012] Determine the communication relationship between the requester and the service provider in each ECU of the vehicle according to the communication configuration file;
[0013] According to the communication relationship, determining an access behavior mapping relationship between the requester and the service provider in each ECU in the vehicle;
[0014] The access control configuration file is generated according to the access behavior mapping relationship.
[0015] Optionally, in an embodiment of the present application, generating a communication configuration file according to the service function interface matrix of the vehicle side includes: using a dedicated tool Artop, Systemdesk or Matlab to generate a communication configuration file according to the service function interface matrix of the vehicle side.
[0016] Optionally, in an embodiment of the present application, sending the access control profile to the vehicle adapted to the access control profile further includes:
[0017] Encrypting and signing the access control configuration file;
[0018] The encrypted and signed access control profile is sent to the vehicle adapted to the access control profile.
[0019] Optionally, in an embodiment of the present application, sending the access control profile to the vehicle adapted to the access control profile includes:
[0020] The access control profile is sent to the vehicle adapted to the access control profile using a dedicated data transmission channel.
[0021] In a second aspect, the embodiment of the present application also provides another access control method, which is applied to a vehicle side, including:
[0022] Get access control configuration file;
[0023] Synchronizing access configurations of various ECUs in the vehicle communication network according to the access control configuration file;
[0024] Access control is performed on the received access request according to the in-vehicle communication network after the access configuration is synchronized.
[0025] Optionally, in an embodiment of the present application, before obtaining the access control configuration file, the method further includes: performing a difference detection between the access control configuration file of the server and the access control configuration file of the current vehicle;
[0026] If the result of the difference detection is inconsistent, the access control configuration file of the server is obtained.
[0027] Optionally, in an embodiment of the present application, the obtaining of the access control configuration file includes: using a dedicated data transmission channel to obtain the access control configuration file sent by the server.
[0028] Optionally, in an embodiment of the present application, synchronizing configurations of various ECUs in a vehicle in the vehicle communication network according to the access control configuration file includes:
[0029] Performing decryption verification and / or signature verification on the access control configuration file;
[0030] According to the access control configuration file that has passed the signature verification and / or decryption verification, configuration synchronization is performed on each ECU in the vehicle in the vehicle communication network.
[0031] Optionally, in an embodiment of the present application, the access control method further includes:
[0032] Perform fault tolerance detection on the obtained access control configuration file;
[0033] If the result of the fault tolerance detection is unqualified, the access control configuration file is obtained from the server again.
[0034] Optionally, in an embodiment of the present application, performing access control on the received access request includes:
[0035] Parsing the access control configuration file into available authentication entries;
[0036] The access request is authenticated according to the authentication entry to perform access control on the received access request.
[0037] Optionally, in an embodiment of the present application, performing access control on a received access request according to the in-vehicle communication network after synchronization of the access configuration includes:
[0038] Based on the SOME / IP protocol, the requesting ECU and the serving ECU in the in-vehicle communication network after the configuration synchronization perform dual-end authentication on the access request, so as to perform access control on the received access request according to the result of the dual-end authentication.
[0039] Thirdly, based on the access control method described in the first aspect of the present application, an embodiment of the present application further provides an access control device, including:
[0040] A configuration module, used to configure an access control configuration file adapted to the vehicle-mounted communication network;
[0041] A server transmission module, used to send the access control configuration file to the vehicle adapted to the access control configuration file, so as to synchronize the access configuration of the ECU in the vehicle-mounted communication network carried by the vehicle through the access control configuration file;
[0042] The server authentication module is used to perform access control on the access request received by the vehicle side by using the vehicle communication network after the access configuration is synchronized.
[0043] In a fourth aspect, based on another access control method described in the second aspect of the present application, the present application also provides another access control device, including:
[0044] An acquisition module is used to obtain an access control configuration file;
[0045] A synchronization module, used to synchronize access configurations of various ECUs of the vehicle communication network according to the access control configuration file;
[0046] The vehicle-side authentication module is used to perform access control on the received access request according to the vehicle-mounted communication network after the access configuration is synchronized.
[0047] In a fifth aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the program is executed by a processor, any access control method described in the first aspect or the second aspect of the present application is implemented.
[0048] The present application provides an access control method, device and related equipment, wherein the access control method includes: configuring an access control configuration file adapted to the vehicle-mounted in-vehicle communication network; sending the access control configuration file to the vehicle adapted to the access control configuration file, so as to synchronize the access configuration of the ECU in the vehicle-mounted in-vehicle communication network through the access control configuration file; and using the vehicle-mounted communication network after the access configuration synchronization to perform access control on the access request received by the vehicle. This access control method synchronizes the configuration of the control parameters of each ECU of the vehicle by generating an access control configuration file adapted to the definition of the vehicle-mounted communication network service, so as to identify illegal ECU calls or block malicious access, thereby improving the working safety of the vehicle-mounted communication network while ensuring that each service in the vehicle can work normally and orderly. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0050] Figure 1 A workflow diagram of an access control method provided in an embodiment of the present application;
[0051] Figure 2 A workflow diagram of another access control method provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of the structure of an access control device provided in an embodiment of the present application;
[0053] Figure 4 A schematic diagram of the structure of another access control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions 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 only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.
[0055] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.
[0056] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term: "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0057] It should be noted that the modifications of "one" and "multiple" mentioned in this application are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more". The names of messages or information exchanged between multiple devices in the embodiments of this application are only for illustrative purposes and are not used to limit the scope of these messages or information.
[0058] Improve the accuracy of the fusion of data sent from the external network and the sensor data in the vehicle network, control its deviation at the us level, and enrich the data source for functions such as autonomous driving (for example, sensor data from other vehicles can be obtained to help obtain more information).
[0059] Embodiment 1
[0060] Embodiment 1 of the present application provides an access control method, such as Figure 1 As shown, Figure 1 A workflow diagram of an access control method provided in an embodiment of the present application, the access control method comprising:
[0061] S101. Configure an access control configuration file adapted to the vehicle-mounted communication network.
[0062] In the embodiment of the present application, the access control configuration file contains information of the vehicle-side requesting ECU and relevant information of the vehicle-side service-side ECU, which is used to identify and block access requests initiated by at least one illegal ECU, illegal access requests received by at least one service-side ECU, or illegal calls of at least one service-side ECU. Specifically, in the embodiment of the present application, the access control configuration file is generated based on the relevant service definition in the vehicle-mounted communication network, so as to ensure that the access control configuration file is adapted to the matching vehicle model. ECU is the abbreviation of Electronic Control Unit, which is an electronic control unit. Like an ordinary computer, it is composed of a microcontroller, memory, input / output interface, analog-to-digital converter, and large-scale integrated circuits such as shaping and driving. Therefore, ECU is the brain of the car, and there are ECUs in the car that control different functions.
[0063] Optionally, in an actual application scenario of the present embodiment, an access control profile adapted to the vehicle communication network of at least one vehicle model is configured, including: obtaining the service function interface matrix of the vehicle; determining the communication profile adapted to the vehicle according to the service function interface matrix; determining the communication relationship between the requester and the service party in each ECU on the vehicle side according to the communication profile; determining the access behavior mapping relationship for indicating the requester and the service party in each ECU in the vehicle according to the communication relationship; generating an access control profile according to the access behavior mapping relationship. In the embodiment of the present application, the service function interface matrix on the vehicle side is the communication matrix, which generally exists in the form of an Excel table. It is named because it looks like a matrix in form. The communication matrix is part of the communication protocol. The communication protocol refers to the rules and conventions that must be followed by both entities to complete communication or service. The communication protocol is mainly composed of the following three elements: syntax: how to communicate; semantics: the content of communication; timing rules (timing): when to communicate. The communication matrix is the semantics and timing rules part of the communication protocol, that is, the communication matrix describes the content of communication and when to communicate. The communication profile is a file generated by extracting information from the communication matrix. Therefore, the access control configuration file finally generated includes all the legal vehicle-side ECU requesters and legal transceiver actions involved in the whole vehicle communication, which will not miss all the legal requesters and legal actions involved in the access request, and can be used to distinguish all illegal transceiver actions other than the preset transceiver actions. The requester and service provider of the vehicle-side ECU are defined under the vehicle software architecture of vehicle Ethernet and SOA, where the service provider in the vehicle is defined as the service provider of the vehicle-side ECU. The service provider of the vehicle-side ECU is responsible for providing specific functional services, such as services that provide traffic news information, services that provide GPS information, services that provide window control functions, etc., and applications that need to request to perform specific actions and obtain specific information are defined as requesters of the vehicle-side ECU, such as navigation applications, which need to obtain GPS information, vehicle speed and power, etc. SOA is the abbreviation of Service-Oriented Architecture, that is, a component model of service-oriented architecture, which enables services built in various systems to interact in a unified and universal way.
[0064] Optionally, in an actual application scenario of the present embodiment, a communication configuration file is generated according to the service function interface matrix of the vehicle side, including: using a special tool Artop, Systemdesk or Matlab to generate a communication configuration file according to the service function interface matrix of the vehicle side. Artop, Systemdesk or Matlab are three software that can be used to convert the service function interface matrix of the vehicle side to generate a communication configuration file. In the embodiment of the present application, the above-mentioned tool software is used to realize the generation of a communication configuration file according to the determined service function interface matrix, which has low implementation cost, fast and convenient implementation process, and accurate and reliable implementation results.
[0065] S102: Send the access control configuration file to a vehicle adapted to the access control configuration file, so as to synchronize access configurations of ECUs in an in-vehicle communication network carried by the vehicle through the access control configuration file.
[0066] Optionally, in an embodiment of the present application, a communication connection is established between the vehicle side and the service side through a wireless network or other transmission methods, so that the access control configuration file is transmitted to the vehicle. Specifically, the communication and data transmission between the service side and the vehicle adapted to the access control configuration file is that the vehicle side and the service side can transmit the access control configuration file by establishing a unique communication identifier to ensure the accuracy of the process of sending the access control configuration file to the vehicle or the vehicle side, and the orderliness of the data transmission. This application is only an exemplary description of the process of sending the access control configuration file to the vehicle, and does not mean that the present application is limited to this. The user can also obtain the access control configuration file from the service side through a third party, and import the obtained access control configuration file into the vehicle system through the third party, so as to avoid the ECU in the vehicle-mounted communication network carried by the vehicle in scenes such as remote terrain with poor network or underground garage, so as to make the access configuration synchronization process of the vehicle side in this application more flexible and effective.
[0067] Preferably, in an implementation of the embodiment of the present application, sending the access control profile to a vehicle adapted to the access control profile includes: using a dedicated data transmission channel to send the access control profile to the vehicle adapted to the access control profile. By establishing a dedicated data transmission channel, the access control profile can be sent to the vehicle in a relatively fast and secure manner, further improving the efficiency and security of data transmission.
[0068] In an actual application scenario of the present embodiment, the access control configuration file is sent to a vehicle adapted to the access control configuration file, and also includes: performing a difference detection on the access control configuration file configured on the server side and the access control file currently configured on the vehicle side; if the result of the difference detection is inconsistent, the access control configuration file configured on the server side is sent to the vehicle side. In the embodiment of the present application, through difference detection, the vehicle side can obtain the latest version of the access control configuration file in a relatively quick and convenient manner, synchronize the configuration of the vehicle side, and improve the security of the vehicle-mounted communication system. At the same time, through difference detection, the need to synchronize the access configuration of the vehicle-side data every time can also be avoided, while ensuring the security of the communication network carried by the vehicle side, saving system resources and improving the efficiency of vehicle-side service access.
[0069] Optionally, in an actual application scenario of the present embodiment, sending an access control configuration file to a vehicle that is adapted to the access control configuration file includes: encrypting and signing the access control configuration file; sending the encrypted and signed access control configuration file to the vehicle that is adapted to the access control configuration file. The contents of the access control configuration file are strictly confidential to each vehicle manufacturer, so the configuration file needs to be encrypted and signed before data transmission is allowed. In the present application embodiment, by encrypting and signing the access control configuration file, the data can be effectively prevented from being cracked or tampered with by a third party during transmission, effectively ensuring the security and confidentiality of the access control configuration file during transmission. Specifically, in the present application embodiment, it is preferred to use asymmetric encryption to encrypt and sign the access control configuration file. The asymmetric encryption method is mature in technology and easy to implement, and can effectively ensure the speed and security of the encryption and signature processing process.
[0070] Optionally, in an actual application scenario of the present embodiment, sending the access control profile to a vehicle adapted to the access control profile includes: using a dedicated data transmission channel to send the access control profile to the vehicle adapted to the access control profile. Using a dedicated data transmission channel can ensure the security of transmission during the process of sending the access control profile to the vehicle adapted to the access control profile.
[0071] S103, using the in-vehicle communication network after configuration synchronization, perform access control on the access request received by the vehicle side. By obtaining the adapted access control configuration file from the server side to synchronize the configuration of the in-vehicle communication network for access control, it can effectively avoid the possibility of access control being cracked by a third party such as traditional methods such as key certificates or tokens, and has high security, accuracy and good adaptability.
[0072] The present application provides an access control method, which includes: configuring an access control configuration file adapted to the vehicle-mounted in-vehicle communication network; sending the access control configuration file to the vehicle adapted to the access control configuration file, so as to synchronize the access configuration of the ECU in the vehicle-mounted in-vehicle communication network through the access control configuration file; and using the vehicle-mounted communication network after the access configuration synchronization to perform access control on the access request received by the vehicle. This access control method synchronizes the control parameters of each ECU of the vehicle by generating an access control configuration file adapted to the definition of the vehicle-mounted communication network service, so as to identify illegal ECU calls or block malicious access, which can effectively avoid the possibility of access control being cracked by a third party by using traditional methods such as key certificates or tokens, and improve the working security and access control accuracy of the vehicle-mounted communication network while ensuring that each service in the vehicle can work normally and orderly.
[0073] Embodiment 2
[0074] The present application embodiment also provides another access control method, such as Figure 2 As shown, Figure 2 A workflow diagram of another access control method provided for the implementation of this application, the access control method comprising:
[0075] S201. Obtain an access control configuration file.
[0076] In the embodiment of the present application, the access control configuration file is obtained from a server of a service provider, such as a cloud server of a vehicle production or sales service provider. Specifically, the generation process of the access control configuration file is as described in the first embodiment, and this embodiment will not be repeated here.
[0077] In an actual application scenario of the present embodiment, before obtaining the access control configuration file, the method further includes: performing a difference detection on the access control configuration file on the server side and the access control configuration file on the current vehicle side; if the result of the difference detection is inconsistent, obtaining the access control configuration file on the server side. In the embodiment of the present application, the difference detection is used to identify whether the access control configuration files on the vehicle side and the server side are consistent, thereby improving the communication security of the vehicle communication network while ensuring the accuracy of the access control file on the vehicle side. At the same time, through the difference detection, the consumption of system resources can also be saved, avoiding the process of updating the data or synchronizing the configuration of the system's access control configuration file every time the system starts.
[0078] Preferably, in an actual application scenario of this embodiment, obtaining the access control configuration file includes: using a dedicated data transmission channel to obtain the access control configuration file sent by the server. Using a dedicated data transmission channel can ensure the security of data transmission in the process of obtaining the access control configuration file, and improve transmission efficiency and transmission accuracy.
[0079] Optionally, in an actual application scenario of the present embodiment, the access control method further includes performing a fault-tolerance test on the obtained access control configuration file, and if the result of the fault-tolerance test is unqualified, re-acquiring the access control configuration file from the server. The present application embodiment improves the accuracy of synchronizing the configuration of the vehicle network communication information through the obtained access control configuration file by performing a fault-tolerance test on the obtained access control configuration file, and avoids synchronizing the configuration of the vehicle network communication information by acquiring an access control configuration file that is incompatible with the vehicle communication network or system carried by the vehicle or has a wrong configuration, which makes the vehicle unusable, causing losses to users or the possibility of causing vehicle safety accidents.
[0080] S202, synchronizing the access configuration of each ECU of the vehicle communication network according to the access control configuration file. In the implementation process, the access control parameters of each ECU on the vehicle side, such as the ECU of the vehicle for issuing a service or access request, and the ECU that receives the service or access request and performs the service accordingly, are configured through the obtained access control configuration file. The real-time process is simple and effective, without manual operation intervention or parameter configuration, and the synchronization method is convenient and reliable.
[0081] In an actual application scenario of this embodiment, the configuration of each ECU in the vehicle in the vehicle communication network is synchronized according to the access control configuration file, including: decryption verification and / or signature verification of the access control configuration file; according to the access control configuration file that passes the signature verification and / or decryption verification, the configuration of each ECU in the vehicle in the vehicle communication network is synchronized.
[0082] Optionally, in an actual application scenario of the present embodiment, the configuration synchronization of each ECU in the vehicle in the vehicle communication network is performed according to the access control configuration file, including: decryption verification and / or signature verification of the access control configuration file; configuration synchronization of each ECU in the vehicle in the vehicle communication network is performed according to the access control configuration file that has passed the signature verification and / or decryption verification. In the embodiment of the present application, when the configuration file for access behavior control is transmitted in the whole vehicle, in order to improve the security of data transmission, the server adopts a method such as asymmetric encryption to process the transmitted access control configuration file and then sends it to the vehicle. At this time, when the vehicle obtains the access control configuration file that has been processed by asymmetric encryption including encryption and signature processing, it is necessary to perform decryption verification and signature verification on the obtained data. Only when the access control file that is legal after the decryption verification and signature verification is used to synchronize the configuration of each ECU on the vehicle, can the accuracy and security of configuration synchronization be effectively guaranteed.
[0083] S203, perform access control on the received access request according to the vehicle communication network after access configuration synchronization. The embodiment of the present application performs access control through the vehicle communication network after configuration synchronization, avoiding the possibility of access control being cracked by a third party such as traditional methods such as key certificates or tokens, and has high security, accuracy and adaptability.
[0084] In an actual application scenario of this embodiment, access control is performed on a received access request, including: parsing an access control configuration file into an available authentication entry; authenticating the access request according to the authentication entry to perform access control on the received access request. The authentication entry is used to characterize the preset sending and receiving actions of each ECU in the vehicle. In the embodiment of the present application, by performing access control through the authentication entry, the accuracy and security of the access control are effectively improved.
[0085] Optionally, in an actual application scenario of the present embodiment, access control is performed on the received access request according to the vehicle communication network after access configuration synchronization, including: based on the SOME / IP protocol, the requester ECU and the server ECU in the vehicle communication network after configuration synchronization perform double-end authentication on the access request, so as to perform access control on the received access request according to the result of double-end authentication. SOME / IP is the abbreviation of Scalable service-Oriented MiddlewarE overInternet Protocol, that is, scalable service-oriented middleware based on network protocol. In the SOME / IP protocol, the server sends information only when the receiver has a demand. The advantage of this method is that there will not be too much unnecessary data on the bus. The vehicle network communication server ECU connects to the SOME / IP protocol stack to authenticate the characteristic information of the communication data packet of the access request, which can effectively reduce the power loss of the vehicle network communication system. Specifically, when performing access control, when the vehicle receives or generates a service or access request, the service or access request is first authenticated in the vehicle communication network by the ECU itself used to issue the service or access request according to the authentication entry, and it is determined whether the access request is the preset receiving and sending action of the vehicle-side ECU requester. If the authentication fails, the service or access requester is blocked by the ECU itself used to issue the service or access request. If the authentication passes, the requester is sent to the ECU corresponding to the access request for receiving the service or access request or responding to the service or access request, and the ECU used to receive the service or access request or responding to the service or access request authenticates the received service party access request again, and it is determined whether the access request is the preset receiving and sending action issued by the requester of the legitimate vehicle-side ECU. If the authentication fails, the access request is refused to be executed, and if the authentication passes, the access request is executed. The embodiment of the present application further improves the security factor of access control in the vehicle communication network after configuration synchronization through the access control configuration file by using the SOME / IP protocol and performing double-end authentication.
[0086] Optionally, in an actual application scenario of an embodiment of the present application, when authenticating the access request according to the authentication entry, the requester and the service party of the vehicle-side ECU perform authentication actions on the characteristic information of the communication data packet of the access request through the CAN protocol stack. CAN is the abbreviation of Controller Area Network. There are many nodes that can be connected in the CAN protocol, and when adding units to the bus, the software, hardware and application layers of other connected units do not need to be changed; high-speed communication can be achieved through an open-loop bus design or long-distance communication can be achieved through a closed-loop bus design as needed; it has error detection, notification and recovery functions. By using the CAN protocol in vehicle-mounted network communications, more units can be connected, and units can be added or deleted at will. Errors that occur during the operation of the vehicle-mounted communication network system can also be detected, notified and recovered, thereby improving the stability and scalability of the vehicle-mounted communication network and bringing convenience to the vehicle's upgrade services.
[0087] Another access control method provided by the embodiment of the present application includes obtaining an access control configuration file; synchronizing the access configuration of each ECU in the vehicle communication network according to the access configuration file; and performing access control on the received access request according to the vehicle communication network after the access configuration synchronization. This access control method obtains the access control configuration file configured by the service provider, synchronizes the configuration of the control parameters of each ECU in the vehicle communication network, identifies illegal ECU calls or blocks malicious access, is not easily cracked or tampered by a third party, and improves the working security of the vehicle communication network while ensuring that each service in the vehicle can work normally and orderly.
[0088] Implementation column 3:
[0089] Based on the access control method described in the first embodiment of the present application, the second embodiment of the present application provides an access control device, such as Figure 3 As shown, Figure 3 A schematic diagram of the structure of an access control device 30 provided in an embodiment of the present application. The access control device 30 includes:
[0090] Configuration module 301, used to configure an access control configuration file adapted to the vehicle-mounted communication network;
[0091] The server transmission module 302 is used to send the access control configuration file to the vehicle adapted to the access control configuration file, so as to synchronize the access configuration of the ECU in the vehicle communication network carried by the vehicle through the access control configuration file;
[0092] The server authentication module 303 is used to perform access control on the access request received by the vehicle side by using the vehicle communication network after the access configuration is synchronized.
[0093] Optionally, in one embodiment of the present application, the access control device 30 also includes a first difference detection module (not shown in the drawings), which is used to perform a difference detection on the access control profile configured by the server and the access control profile currently configured on the vehicle before sending the access control profile to a vehicle that is adapted to the access control profile; if the result of the difference detection is inconsistent, the access control profile configured by the server is sent to the vehicle.
[0094] Optionally, in one embodiment of the present application, the configuration module 301 is also used to obtain the service function interface matrix of the vehicle; determine the communication configuration file adapted to the vehicle based on the service function interface matrix; determine the communication relationship between the requester and the service provider in each ECU on the vehicle side based on the communication configuration file; determine the access behavior mapping relationship for indicating the requester and the service provider in each ECU in the vehicle based on the communication relationship; and generate an access control configuration file based on the access behavior mapping relationship.
[0095] Optionally, in one embodiment of the present application, the configuration module 301 is also used to generate a communication configuration file according to the service function interface matrix of the vehicle side using a dedicated tool Artop, Systemdesk or Matlab.
[0096] Optionally, in an embodiment of the present application, the server transmission module 302 is further used to: encrypt and sign the access control configuration file; and send the encrypted and signed access control configuration file to a vehicle adapted to the access control configuration file.
[0097] Optionally, in an embodiment of the present application, the server transmission module 302 is further used to: use a dedicated data transmission channel to send the access control profile to a vehicle adapted to the access control profile.
[0098] The access control device provided in the embodiment of the present application configures the access control profile of the vehicle-mounted communication network by setting a configuration module; sets a server-side transmission module to send the access control profile to the vehicle that is adapted to the access control profile, so as to synchronize the access configuration of the ECU in the vehicle-mounted communication network through the access control profile; sets a server-side authentication module to perform access control on the access request received by the vehicle side using the vehicle-mounted communication network after the access configuration is synchronized. It can identify illegal ECU calls or block malicious access, and is not easily cracked or tampered by third parties. While ensuring that each service in the vehicle can work normally and orderly, it improves the working safety of the vehicle-mounted communication network. The device has a simple structure and is easy to implement.
[0099] Embodiment 4:
[0100] Based on another access control method described in the second embodiment of the present application, the embodiment of the present application also provides another access control device 40, such as Figure 4 As shown, Figure 4 A schematic diagram of the structure of another access control device 40 provided in an embodiment of the present application, wherein the access control device 40 includes:
[0101] The acquisition module 401 is used to acquire an access control configuration file;
[0102] A synchronization module 402, used to synchronize access configurations of various ECUs of the vehicle communication network according to the access configuration files;
[0103] The vehicle-side authentication module 403 is used to perform access control on the received access request according to the vehicle-mounted communication network after the access configuration is synchronized.
[0104] Optionally, in an implementation of an embodiment of the present application, the access control device 40 also includes a second difference detection module (not shown in the drawings), which is used to perform difference detection on the access control configuration file of the server and the access control configuration file of the current vehicle; if the result of the difference detection is inconsistent, the access control configuration file of the server is obtained.
[0105] Optionally, in an implementation of the embodiment of the present application, the acquisition module 401 is further configured to use a dedicated secure channel to acquire an access control configuration file sent by the server.
[0106] Optionally, in one implementation of the embodiment of the present application, the synchronization module 402 is also used to perform decryption verification and / or signature verification on the access control configuration file; based on the access control configuration file that passes the signature verification and / or decryption verification, the configuration of each ECU in the vehicle in the vehicle communication network is synchronized.
[0107] Optionally, in an implementation of an embodiment of the present application, the access control device 40 also includes a fault-tolerant module (not shown in the drawings), which is used to perform fault-tolerant detection on the obtained access control configuration file; if the result of the fault-tolerant detection is unqualified, the access control configuration file is obtained again from the server.
[0108] Optionally, in an implementation of an embodiment of the present application, the vehicle-side authentication module 403 is also used to parse the access control configuration file into available authentication entries; authenticate the access request according to the authentication entry to perform access control on the received access request.
[0109] Optionally, in one implementation of the embodiment of the present application, the vehicle-side authentication module 403 is also used to perform two-end authentication on access requests based on the SOME / IP protocol, by configuring the requester ECU and the server ECU in the synchronized vehicle communication network, so as to perform access control on the received access requests according to the results of the two-end authentication.
[0110] Another access control device provided by the embodiment of the present application is provided with an acquisition module for acquiring an access control configuration file; a synchronization module for synchronizing the access configuration of each ECU of the vehicle communication network according to the access configuration file; and a vehicle-side authentication module for performing access control on the received access request according to the vehicle communication network after the access configuration synchronization. This realizes the identification of illegal ECU calls or the timely blocking of malicious access, and is not easily cracked or tampered by a third party. While ensuring that each service in the vehicle can work normally and orderly, it improves the working security of the vehicle communication network.
[0111] Embodiment 5
[0112] Based on the access control method provided in the above embodiments, this embodiment provides a computer storage medium, on which a computer program is stored. When the processor executes the computer program stored on the storage medium, any one of the access control methods described in Embodiment 1 or Embodiment 2 of the present application is implemented.
[0113] Thus far, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions recited in the claims may be performed in a different order and still achieve the desired results. Additionally, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing may be advantageous.
[0114] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0115] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0116] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0117] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0118] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0119] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0120] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific transactions or implement specific abstract data types. The present application may also be practiced in distributed computing environments where transactions are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0121] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0122] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. An access control method, applied to a server, characterized in that: include: Configure an access control profile adapted to the vehicle-mounted vehicle communication network, wherein the access control profile includes information of the vehicle-side requesting ECU and relevant information of the vehicle-side serving ECU, and is used to identify and block at least one of an access request initiated by at least one illegal ECU, an illegal access request received by at least one serving ECU, or an illegal call of at least one serving ECU; Sending the access control profile to the vehicle adapted to the access control profile, so as to synchronize access configurations of ECUs in the vehicle-mounted communication network of the vehicle through the access control profile; Using the vehicle communication network after the access configuration is synchronized, access control is performed on the access request received by the vehicle end; The method also includes: before sending the access control profile to the vehicle adapted to the access control profile, performing a difference detection on the access control profile configured by the server and the access control profile currently configured on the vehicle; if the result of the difference detection is inconsistent, sending the access control profile configured by the server to the vehicle.
2. An access control method according to claim 1, characterized in that: The configuration is adapted to the access control configuration file of the vehicle-mounted communication network carried by the vehicle, including: Determining a service function interface matrix for the vehicle; Determining a communication configuration file adapted to the vehicle according to the service function interface matrix; Determine the communication relationship between the requester and the service provider in each ECU of the vehicle according to the communication configuration file; According to the communication relationship, determining an access behavior mapping relationship between the requester and the service provider in each ECU in the vehicle; The access control configuration file is generated according to the access behavior mapping relationship.
3. An access control method according to claim 2, characterized in that: The generating of a communication configuration file according to the service function interface matrix of the vehicle side includes: Use dedicated tools such as Artop, Systemdesk or Matlab to generate a communication configuration file based on the service function interface matrix on the vehicle side.
4. An access control method according to claim 1, characterized in that: The step of sending the access control profile to the vehicle adapted to the access control profile further comprises: Encrypting and signing the access control configuration file; The encrypted and signed access control profile is sent to the vehicle adapted to the access control profile.
5. An access control method according to claim 1, characterized in that: The step of sending the access control profile to the vehicle adapted to the access control profile comprises: The access control profile is sent to the vehicle adapted to the access control profile using a dedicated data transmission channel.
6. An access control method, applied to a vehicle, characterized in that: include: Obtaining an access control configuration file, wherein the access control configuration file includes information of the vehicle-side requesting ECU and relevant information of the vehicle-side serving ECU, and is used to identify and block at least one of an access request initiated by at least one illegal ECU, an illegal access request received by at least one serving ECU, or an illegal call of at least one serving ECU; Synchronizing access configurations of various ECUs in the vehicle communication network according to the access control configuration file; performing access control on the received access request according to the in-vehicle communication network after the access configuration is synchronized; Before obtaining the access control configuration file, the method further includes: performing a difference detection between the access control configuration file of the server and the access control configuration file of the current vehicle; If the result of the difference detection is inconsistent, the access control configuration file of the server is obtained.
7. An access control method according to claim 6, characterized in that: The obtaining of the access control configuration file comprises: Use a dedicated data transmission channel to obtain the access control configuration file sent by the server.
8. An access control method according to claim 6, characterized in that: The step of synchronizing configuration of each ECU in a vehicle in the vehicle communication network according to the access control configuration file includes: Performing decryption verification and / or signature verification on the access control configuration file; According to the access control configuration file that has passed the signature verification and / or decryption verification, configuration synchronization is performed on each ECU in the vehicle in the vehicle communication network.
9. An access control method according to claim 6, characterized in that: The method further comprises: Perform fault tolerance detection on the obtained access control configuration file; If the result of the fault tolerance detection is unqualified, the access control configuration file is obtained from the server again.
10. An access control method according to claim 6, characterized in that: The performing access control on the received access request includes: Parsing the access control configuration file into available authentication entries; The access request is authenticated according to the authentication entry to perform access control on the received access request.
11. An access control method according to claim 6, characterized in that: The performing access control on the received access request according to the in-vehicle communication network after the access configuration synchronization includes: Based on the SOME / IP protocol, the requesting ECU and the serving ECU in the in-vehicle communication network after the configuration synchronization perform dual-end authentication on the access request, so as to perform access control on the received access request according to the result of the dual-end authentication.
12. An access control device, characterized in that: include: A configuration module, used to configure an access control profile adapted to the vehicle-mounted vehicle communication network, wherein the access control profile includes information of the vehicle-side requesting ECU and related information of the vehicle-side serving ECU, and is used to identify and block at least one of an access request initiated by at least one illegal ECU, an illegal access request received by at least one serving ECU, or an illegal call of at least one serving ECU; A server transmission module, used to send the access control configuration file to the vehicle adapted to the access control configuration file, so as to synchronize access configuration of the ECU in the vehicle-mounted communication network carried by the vehicle through the access control configuration file; A server authentication module, used to perform access control on access requests received by the vehicle side using the vehicle communication network after the access configuration is synchronized; The server-side transmission module is also used to perform a difference detection on the access control profile configured by the server and the access control profile currently configured on the vehicle side before sending the access control profile to the vehicle adapted to the access control profile; if the result of the difference detection is inconsistent, the access control profile configured by the server side is sent to the vehicle side.
13. An access control device, characterized in that: include: An acquisition module is used to acquire an access control configuration file, wherein the access control configuration file includes information of a vehicle-side requesting ECU and related information of a vehicle-side serving ECU, and is used to identify and block at least one of an access request initiated by at least one illegal ECU, an illegal access request received by at least one serving ECU, or an illegal call of at least one serving ECU; A synchronization module, used to synchronize access configurations of various ECUs of the vehicle communication network according to the access control configuration file; A vehicle-side authentication module, used to perform access control on a received access request according to the vehicle-mounted communication network after synchronization of the access configuration; The access control device also includes a second difference detection module, which is used to perform difference detection on the access control configuration file of the server and the access control configuration file of the current vehicle; if the result of the difference detection is inconsistent, the access control configuration file of the server is obtained.
14. A storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the access control method according to any one of claims 1 to 11 is implemented.
