Relay device, information processing method, and in-vehicle system
Patent Information
- Application Number
- JP2022103913
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2022-06-28
- Publication Date
- 2024-11-21
- Estimated Expiration
- 2042-06-28
AI Technical Summary
Existing in-vehicle relay devices lack the capability to efficiently transmit information for monitoring ECUs to detect fraudulent data, as they do not consider the integration of monitoring functions for data validation.
A relay device connected to multiple in-vehicle ECUs that includes communication units and a control unit to extract and generate signal information for monitoring ECUs, enabling efficient detection of fraudulent data by correlating communication data and outputting generated data to monitoring ECUs.
Enhances the ability of monitoring ECUs to detect fraudulent data by providing timely and relevant information, reducing processing load and ensuring efficient data monitoring across vehicle segments.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a relay device, an information processing method, and an in-vehicle system. [Background technology]
[0002] Conventionally, the CAN communication protocol has been widely adopted for communication between a plurality of on-board ECUs (Electronic Control Units) mounted on a vehicle. As vehicles become more multifunctional and sophisticated, the number of on-board ECUs mounted on the vehicle tends to increase. The on-board ECUs are divided into groups (segments) to form a vehicle network, and the on-board ECUs in the same group are connected by a common communication line to transmit and receive data to each other, while data transmission and reception between on-board ECUs in different groups is relayed by an on-board relay device (gateway) (for example, Patent Document 1). In addition to the on-board relay device (gateway), the vehicle network of Patent Document 1 includes a vehicle network monitoring device that is connected to each segment of the vehicle network and detects unauthorized data (messages) flowing through the vehicle network. When the vehicle network monitoring device detects unauthorized data (messages), it transmits warning information (message code) to the on-board control device (on-board ECU). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2013-131907 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, the in-vehicle relay device (gateway) of Patent Document 1 does not take into consideration the fact that it transmits useful information to a vehicle network monitoring device connected to a segment so that the vehicle network monitoring device can detect unauthorized data (messages).
[0005] An object of the present disclosure is to provide a relay device or the like capable of transmitting information used by a monitoring ECU (monitoring device) to detect unauthorized data. [Means for solving the problem]
[0006] A relay device according to one embodiment of the present disclosure is mounted on a vehicle and communicatively connected to a plurality of on-board ECUs, and includes a plurality of communication units connected to the on-board ECUs and a control unit that controls the relay of communication data transmitted and received between the on-board ECUs via the communication units, and the plurality of on-board ECUs include a monitoring ECU having a monitoring function for the communication data, and the control unit acquires the communication data via the communication units, extracts signal information from the acquired communication data that the monitoring ECU uses to detect unauthorized data, and outputs generated data generated based on the extracted signal information to the monitoring ECU. Effect of the Invention
[0007] According to one aspect of the present disclosure, it is possible to provide a relay device or the like that transmits information used by a monitoring ECU to detect unauthorized data. [Brief description of the drawings]
[0008] [Figure 1] 1 is a schematic diagram illustrating a configuration of an in-vehicle system including a relay device according to a first embodiment. [Diagram 2] 2 is a block diagram illustrating an example of an internal configuration of a relay device, etc.; [Diagram 3] 10 is a flowchart illustrating a process of a control unit of the relay device. [Figure 4] 13 is a flowchart illustrating a process of a control unit of a relay device according to a second embodiment (acquiring a signal within a predetermined period of time). [Diagram 5] 13 is a flowchart illustrating a process of a control unit of a relay device according to a third embodiment (signal identification using a correlation table). [Figure 6]FIG. 11 is an explanatory diagram illustrating a correlation table; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] [Description of the embodiment of the present invention] First, embodiments of the present disclosure will be listed and described. In addition, at least some of the embodiments described below may be arbitrarily combined.
[0010] (1) A relay device according to one embodiment of the present disclosure is mounted on a vehicle and communicatively connected to a plurality of on-board ECUs, and includes a plurality of communication units connected to the on-board ECUs and a control unit that controls relaying of communication data transmitted and received between the on-board ECUs via the communication units, the plurality of on-board ECUs including a monitoring ECU having a monitoring function for the communication data, and the control unit acquires the communication data via the communication units, extracts signal information from the acquired communication data that the monitoring ECU uses to detect unauthorized data, and outputs generated data generated based on the extracted signal information to the monitoring ECU.
[0011] In this embodiment, one or more vehicle-mounted ECUs are connected to each of the multiple communication units included in the relay device, and the control unit of the relay device controls (processes) relay of communication data transmitted and received between the vehicle-mounted ECUs connected to each of these communication units. Any of the multiple vehicle-mounted ECUs communicatively connected to the relay device functions as a monitoring ECU having a monitoring function for communication data. The monitoring ECU functions as an IDS (Intrusion Detection System) that determines whether communication data acquired (received) by its own ECU (monitoring ECU) is unauthorized data, and may perform intrusion detection by unauthorized programs or devices on the vehicle network to which the relay device and the vehicle-mounted ECU are connected. The control unit of the relay device extracts signal information used by the monitoring ECU to detect unauthorized data from the communication data acquired via all communication units included in the relay device. Then, the control unit of the relay device outputs generated data generated based on the extracted signal information to the monitoring ECU, so that effective information for the monitoring device to detect unauthorized data can be efficiently transmitted. A plurality of segments are formed by the communication lines connected to each of the multiple communication units included in the relay device. The monitoring ECU is connected to one of the segments (communication lines), and can therefore obtain only the communication data flowing (transmitted) through that segment (communication line). In response to this, the control unit of the relay device outputs generated data to the monitoring ECU using signal information extracted from the communication data obtained from all communication units, i.e., all segments (communication lines). This allows the monitoring ECU to obtain signal information contained in the communication data that it cannot obtain (receive) directly, and can efficiently exercise its monitoring function for the communication data.
[0012] (2) In a relay device according to one embodiment of the present disclosure, the monitoring ECU determines whether the acquired communication data is unauthorized data by using other signal information that is correlated with the signal information contained in the communication data, and the signal information extracted by the control unit corresponds to the other signal information.
[0013] In this embodiment, the monitoring ECU monitors the communication data by determining whether the acquired communication data is unauthorized data using other signal information that has a correlation with the signal information included in the communication data, for example, an absolute value of a correlation coefficient of 0.7 or more. Depending on the connection form of each on-board ECU in the on-board network or the network topology, there is a concern that the monitoring ECU may not be able to acquire communication data that includes other signal information that has a correlation with the signal included in the communication data that is the monitoring target of the monitoring ECU, i.e., the communication data to be determined as unauthorized or not. Even in such a case, the signal information extracted by the control unit corresponds to other signal information that has a correlation of a predetermined value or more (for example, an absolute value of a correlation coefficient of 0.7 or more), so that the monitoring device can efficiently transmit information (generated data including other signal information) that is effective for detecting unauthorized data.
[0014] (3) In one embodiment of the relay device of the present disclosure, when the control unit receives a request signal from the monitoring ECU, the control unit extracts the signal information from the received communication data in response to the request signal, and outputs generated data generated based on the extracted signal information to the monitoring ECU.
[0015] In this aspect, the control unit of the relay device generates and outputs generated data including signal information in response to a request (request signal) from the monitoring ECU, and therefore can generally support various monitoring ECUs. Furthermore, the relay device can respond to requests from the monitoring ECU in a timely manner, and can suppress an increase in processing load caused by excessive output of generated data to the monitoring ECU.
[0016] (4) In one embodiment of the relay device of the present disclosure, the control unit determines whether or not it is possible to acquire communication data including the other signal information to be extracted based on the acquired request signal, and if it is determined that the generated data can be acquired, outputs the generated data to the monitoring ECU, and if it is determined that the generated data cannot be acquired, notifies the monitoring ECU that the generated data cannot be output.
[0017] In this embodiment, when the control unit of the relay device acquires a request signal from the monitoring ECU, the control unit of the relay device determines whether or not communication data including signal information requested by the request signal (other signal information to be extracted) can be acquired. When the communication of the in-vehicle network is, for example, CAN (Controller Area Network) or CAN-FD, the request signal from the monitoring ECU includes a CAN-ID (message ID) indicating the extraction target and a storage bit address where the signal information is stored in the payload of the message of the CAN-ID. The control unit of the relay device, for example, refers to route information (routing table) stored in the storage unit to determine whether a message of a CAN-ID including the signal information requested by the request signal is included in the route information (routing table). The route information (routing table) is information that the control unit of the relay device refers to when performing relay processing, and the control unit determines that communication data of a CAN-ID included in the route information (routing table) can be acquired. The control unit determines that communication data of a CAN-ID not included in the route information (routing table) cannot be acquired. When it is determined that the generated data cannot be acquired, the control unit notifies the monitoring ECU that the generated data cannot be output, thereby preventing the monitoring ECU from needlessly waiting for the generated data.
[0018] (5) In a relay device according to one embodiment of the present disclosure, the control unit acquires a plurality of pieces of communication data, extracts the signal information from each of the plurality of pieces of communication data, and generates the generated data based on the extracted plurality of pieces of signal information.
[0019] In this embodiment, the control unit of the relay device extracts signal information from each of the acquired communication data, thereby extracting multiple pieces of signal information. Since a single piece of generated data is generated using the multiple pieces of signal information, the multiple pieces of signal information required for the monitoring ECU to detect unauthorized data can be packaged and output (transmitted) to the monitoring ECU. By transmitting the generated data in which the multiple pieces of signal information are packaged in this manner to the monitoring ECU, the acquisition process of the multiple pieces of signal information by the monitoring ECU can be made more efficient, and the processing load related to the detection of unauthorized data can be reduced.
[0020] (6) In a relay device according to one embodiment of the present disclosure, when the control unit acquires multiple pieces of communication data for extracting multiple pieces of signal information within a predetermined period of time, the control unit generates the generated data based on the extracted multiple pieces of signal information.
[0021] In this embodiment, even if the type of signal information included in the communication data is the same (same CAN-ID and storage bit address), if the control state of the vehicle changes, it is expected that the content of the signal information will also change over time, and this change will affect the correlation. Therefore, when extracting signal information from each of the multiple communication data, the period (acquisition period) during which these multiple communication data are acquired is required to be a period during which there is substantially no change in the control state of the vehicle. In response to this, when the control unit acquires multiple communication data for extracting multiple signal information within a predetermined period, it generates generated data using these signal information, so that it is possible to generate and output the generated data to the monitoring ECU while ensuring the correlation in the extracted multiple signal information.
[0022] (7) In a relay device according to one aspect of the present disclosure, the signal information includes a physical quantity or a state quantity related to control of the vehicle.
[0023] In this embodiment, the signal information contained in the communication data includes physical quantities (sensor values: vehicle speed, battery temperature, etc.) or state quantities (actuator state: engine RPM, steering wheel rotation angle, etc.) related to vehicle control, so that the monitoring ECU can determine whether the acquired communication data is fraudulent data or not based on the correlation with the content of the signal information according to the control state of the vehicle.
[0024] (8) An information processing method according to one embodiment of the present disclosure includes a computer that is mounted on a vehicle and communicatively connected to a monitoring ECU having a monitoring function for communication data transmitted and received between a plurality of on-board ECUs and the on-board ECUs, and that performs control over relaying of the communication data transmitted and received between the on-board ECUs, the computer acquires the communication data, extracts signal information from the acquired communication data that the monitoring ECU uses to detect unauthorized data, and outputs generated data generated based on the extracted signal information to the monitoring ECU.
[0025] In this aspect, it is possible to provide an information processing method that causes a computer to function as a relay device that transmits information that is useful for a monitoring ECU to detect unauthorized data.
[0026] (9) An in-vehicle system according to one embodiment of the present disclosure is an in-vehicle system including a relay device mounted on a vehicle and relaying communication data transmitted and received between in-vehicle ECUs, and a monitoring ECU having a monitoring function for the communication data transmitted and received between the in-vehicle ECUs, wherein the relay device extracts signal information from the acquired communication data in response to a request signal acquired from the monitoring ECU, and outputs generated data generated based on the extracted signal information to the monitoring ECU.
[0027] In this aspect, it is possible to provide an in-vehicle system including a relay device that transmits information that is useful for the monitoring ECU to detect unauthorized data.
[0028] [Details of the embodiment of the present disclosure] The present disclosure will be specifically described based on the drawings showing the embodiments. A relay device 2 according to the embodiment of the present disclosure will be described below with reference to the drawings. Note that the present invention is not limited to these examples, but is indicated by the claims, and is intended to include all modifications within the meaning and scope equivalent to the claims.
[0029] (Embodiment 1) Hereinafter, an embodiment will be described with reference to the drawings. Fig. 1 is a schematic diagram illustrating the configuration of an in-vehicle system S including a relay device 2 according to the first embodiment. Fig. 2 is a block diagram illustrating the internal configuration of the relay device 2 and the like. The in-vehicle update system S includes the relay device 2, an in-vehicle ECU 3, and a monitoring ECU 31 mounted on a vehicle C. The relay device 2, the in-vehicle ECU 3, and the monitoring ECU 31 are communicatively connected via an in-vehicle network 4 configured with a plurality of communication lines 41.
[0030] The relay device 2 may be further connected to an exterior communication device 1 and communicably connected to an external server S1 via the exterior communication device 1. The external server S1 is a computer such as a server connected to an exterior network N such as the Internet or a public line network, and includes a storage unit such as a RAM (Random Access Memory), a ROM (Read Only Memory), or a hard disk.
[0031] The external communication unit is a communication device for wireless communication using a mobile communication protocol such as 4G, LTE, 5G, or WiFi, and transmits and receives data to and from an external server S1 via an antenna. The communication between the external communication device 1 and the external server S1 is performed via an external network such as a public line network or the Internet.
[0032] The relay device 2 includes a control unit 20, a storage unit 23, an input / output I / F 21, and a communication unit 22. The relay device 2 is a gateway that manages a plurality of buses (segments) such as an in-vehicle ECU 3 of a control system, an in-vehicle ECU 3 of a safety system, and an in-vehicle ECU 3 of a body system, and relays communication between the in-vehicle ECUs 3 between these buses (segments). That is, the relay device 2 is connected to each of the communication lines 41 constituting the plurality of buses (segments), and the in-vehicle network 4 is configured by the plurality of communication lines 41 (segments) aggregated by the relay device 2. The relay device 2 functions as a CAN gateway in relaying a CAN (Controller Area Network) or CAN-FD protocol, and functions as a layer 2 switch or layer 3 switch in relaying a TCP / IP protocol. The relay device 2 may be a PLB (Power Lan Box) that functions as a power distribution device that distributes and relays power output from a power supply device such as a secondary battery and supplies power to an in-vehicle device such as an actuator connected to the relay device itself, in addition to relaying communication. Alternatively, the relay device 2 may be configured as one functional part of a body ECU that controls the entire vehicle C. Alternatively, the relay device 2 may be an integrated ECU that is configured by a central control device such as a vehicle computer and performs overall control of the vehicle C.
[0033] The control unit 20 is composed of a CPU (Central Processing Unit) or an MPU (Micro Processing Unit), and is configured to perform various control processing, calculation processing, etc. by reading and executing a control program P (program product) and data pre-stored in the memory unit 23.
[0034] The storage unit 23 is configured with a volatile memory element such as a RAM (Random Access Memory) or a non-volatile memory element such as a ROM (Read Only Memory), an EEPROM (Electrically Erasable Programmable ROM), or a flash memory. The control program P (program product) stored in the storage unit 23 may be a control program P (program product) read from a recording medium M readable by the relay device 2. Alternatively, the control program P may be downloaded from an external computer (not shown) connected to a communication network (not shown) and stored in the storage unit 23.
[0035] The input / output I / F 21 is, for example, a communication interface for serial communication. The relay device 2 may be communicably connected to the outside-vehicle communication device 1 or a display device such as an HMI (Human Machine Interface) device via the input / output I / F 21.
[0036] The communication unit 22 is an input / output interface using a communication protocol such as CAN, CAN-FD, or Ethernet (registered trademark), and the control unit 20 communicates with in-vehicle devices such as the in-vehicle ECU 3 or other relay devices 2 connected to the in-vehicle network 4 via the communication unit 22. A plurality of communication units 22 (three in this embodiment) are provided, and each communication unit 22 is connected to a communication line 41 (segment) constituting the in-vehicle network 4. By providing a plurality of communication units 22 in this way, the in-vehicle network 4 is divided into a plurality of segments, and each in-vehicle ECU 3 is connected to each segment according to, for example, the function of the in-vehicle ECU 3 (control system function, safety system function, body system function).
[0037] The in-vehicle ECU 3 includes a control unit, a storage unit, and a communication unit (not shown) similarly to the relay device 2. A state quantity sensor is connected to the in-vehicle ECU 3 to detect state quantities indicating a state related to the traveling of the vehicle C, such as engine speed, motor speed, steering wheel rotation angle, or acceleration. The in-vehicle ECU 3 outputs (transmits) communication data, in which sensor values (state quantities) acquired from the state quantity sensors are stored in a payload, to another in-vehicle ECU 3 via the in-vehicle network 4. The state quantities and the like thus included (stored in the payload) in the communication data correspond to signal information.
[0038] The monitoring ECU 31 includes a control unit, a storage unit, and a communication unit (not shown) like the in-vehicle ECU 3 or the relay device 2. The monitoring ECU 31 functions as an IDS (Intrusion Detection System) that determines whether communication data (communication data to be monitored) acquired (received) by its own ECU (monitoring ECU 31) is unauthorized data, and detects intrusion by an unauthorized program or device into the in-vehicle network 4 to which the relay device 2 and the in-vehicle ECU 3 are connected. Details of the determination process by the monitoring ECU 31 on the communication data to be monitored will be described later.
[0039] 3 is a flowchart illustrating the processing of the control unit 20 of the relay device 2. The control unit 20 of the relay device 2 and the control unit of the monitoring ECU 31 constantly perform the following processing when the vehicle C is in a started state (IG switch is on) or a stopped state (IG switch is off).
[0040] The control unit 20 of the relay device 2 determines whether or not a request signal has been acquired (S101). If a request signal has not been acquired (S101: NO), the control unit 20 of the relay device 2 performs a loop process to execute the process of S101 again. By performing the loop process, the control unit 20 of the relay device 2 continues the process of waiting for a request signal to be output (transmitted) from the monitoring ECU 31.
[0041] When a request signal is acquired (S101: YES), the control unit 20 of the relay device 2 judges whether or not it is possible to acquire communication data including the signal information to be extracted (S102). The request signal output (transmitted) from the monitoring ECU 31 includes information regarding the signal information to be extracted and the type of communication data including the signal information (message ID, etc.). For example, when the communication data is a CAN message, the request signal includes a CAN-ID (message ID) and a bit address (storage bit address) or block number, etc., at which the signal information to be extracted is stored in the payload included in the CAN message of the CAN-ID. In this way, the signal information to be extracted is specified by a combination of the CAN-ID and the storage bit address.
[0042] The communication data is not limited to a CAN message, and may be an IP packet (TCP / IP). In this case, the type of communication data may be a TCP port number, a UDP port number, a source address, a destination address, or a combination of these, included in the header of the IP packet. In addition, the signal information to be extracted is identified by the storage bit address where the signal information is stored in the payload included in the IP packet. The request signal output (transmitted) from the monitoring ECU 31 in this manner includes information for identifying the signal information to be extracted (the type of communication data, the storage bit address, etc.).
[0043] The control unit 20 of the relay device 2 determines whether or not it is possible to acquire (receive) the communication data (communication data including the signal information to be extracted) specified based on the acquired request signal. It is assumed that the relay device 2 may not be able to receive communication data of a certain type (message ID, etc.) specified based on the acquired request signal. In response to this, the relay device 2 determines whether or not it is possible to acquire the type of communication data (message ID, etc.) specified based on the request signal, for example, by referring to route information (routing table) stored in the storage unit 23.
[0044] The route information (routing table) lists information used by the control unit 20 of the relay device 2 when performing relay processing. The information includes, for example, the type of communication data to be relayed (message ID, etc.) and the device number (segment number) of the communication unit 22 to be the relay destination. In this way, the route information includes information regarding the type of communication data to be received by the control unit 20 of the relay device 2 (message ID, etc.).
[0045] The control unit 20 of the relay device 2 determines that it is possible to acquire communication data including the signal information to be extracted when the type of communication data (message ID, etc.) specified based on the acquired request signal is included in the route information. The control unit 20 of the relay device 2 determines that it is impossible to acquire communication data including the signal information to be extracted when the type of communication data (message ID, etc.) specified based on the acquired request signal is not included in the route information. Alternatively, the storage unit 23 of the relay device 2 may store a signal reception feasibility table in which a feasibility flag indicating whether or not the signal information to be extracted requested by the request signal is received is set. Then, the control unit 20 of the relay device 2 may determine whether it is possible to acquire communication data including the signal information to be extracted by referring to the signal reception feasibility table.
[0046] If the communication data can be acquired (S102: YES), the control unit 20 of the relay device 2 acquires the communication data in response to the request signal (S103). The request signal includes one or more pieces of signal information, and the control unit 20 of the relay device 2 acquires the specified one or more pieces of communication data in response to the request signal. The control unit 20 of the relay device 2 regularly executes a relay process of communication data transmitted and received between the in-vehicle ECUs 3 connected to each of the communication units 22 via the multiple communication units 22. The control unit 20 of the relay device 2 acquires, as target data for this process, communication data (communication data including signal information) that is specified based on the request signal among the communication data received when performing the relay process. For example, when three pieces of signal information are requested by the request signal, the control unit 20 of the relay device 2 may acquire three pieces of communication data including each of the signal information.
[0047] The control unit 20 of the relay device 2 generates generation data based on the acquired communication data (S104). For example, when the communication data is a CAN message, the control unit 20 of the relay device 2 extracts the value or contents of the signal information from the acquired communication data (CAN message) based on a combination of the CAN-ID and the stored bit address (information for identifying the signal information to be extracted) included in the request signal. The extracted single or multiple pieces of signal information are used to determine the appropriateness of the signal information to be determined by comparing it with signal information (signal information to be determined) included in the communication data to be monitored by the monitoring ECU 31 (the data to be determined whether it is unauthorized or not). In other words, the monitoring ECU 31 determines whether the communication data acquired by its own ECU (monitoring ECU 31) is unauthorized or not by using other signal information that has a correlation with the signal information included in the communication data, and the signal information extracted by the control unit 20 of the relay device 2 corresponds to the other signal information.
[0048] The correlation between these pieces of signal information may mean that the absolute value of the correlation coefficient between the signal information to be judged and the signal information extracted by the control unit 20 of the relay device 2 is equal to or greater than a predetermined value, such as 0.7 or more. In order to further improve the estimation accuracy, it is preferable that the predetermined value is 0.9. More preferably, the predetermined value is 0.97. The correlation coefficient can be calculated, for example, by using a formula (correlation coefficient = covariance between the value of the first data included in the plurality of data and the value of the second data other than the first data included in the plurality of data / (standard deviation of the value of the first data x standard deviation of the value of the second data)). By making the absolute value of each correlation coefficient equal to or greater than a predetermined value, it is possible to extract a plurality of data that are state quantities highly correlated with each other in a positive or negative correlation. When the second data is negatively correlated with the first data, the correlation coefficient is a negative value, but by multiplying this value by -1, it can be used as the second data that is positively correlated.
[0049] The control unit 20 of the relay device 2 generates generated data using one or more pieces of signal information extracted from one or more pieces of communication data acquired in response to the request signal. Each piece of extracted signal information is stored in the payload of the generated data. The request signal may include a storage bit address or the like for storing the extracted pieces of signal information in the payload area. In this case, the control unit 20 of the relay device 2 stores the pieces of signal information in the payload area based on the storage bit address. The request signal may include a message ID (CAN-ID) or a port number or the like included in the header of the generated data. In this case, the control unit 20 of the relay device 2 generates generated data by including the message ID or the like in the header. In this way, the request signal includes header information (message ID, etc.) and frame format (storage bit address, etc. for storing signal information in the payload) of the generated data in order to include the extracted signal information in the generated data. Furthermore, the control unit 20 of the relay device 2 generates generated data according to the format specified in the request signal and transmits it to the monitoring ECU 31, thereby being able to flexibly respond to the specifications of the monitoring ECU 31 and being able to universally support various types of monitoring ECUs 31.
[0050] The control unit 20 of the relay device 2 outputs the generated data to the monitoring ECU 31 (S105). The control unit 20 of the relay device 2 outputs the generated data generated in response to a request signal from the monitoring ECU 31 to the monitoring ECU 31 via the in-vehicle network 4. The monitoring ECU 31 acquires (receives) the generated data output (transmitted) from the relay device 2, and compares one or more pieces of signal information included in the generated data with signal information (signal information to be judged) included in the communication data of the monitoring target acquired by its own ECU (monitoring ECU 31), thereby judging the appropriateness of the signal information to be judged.
[0051] If the communication data cannot be acquired (S102: NO), the control unit 20 of the relay device 2 notifies the monitoring ECU 31 that the generated data cannot be output (S1021). If the communication data cannot be acquired, that is, if the type of the communication data is not included in the group of types of communication data to be received, the control unit 20 of the relay device 2 generates a signal (extraction impossible signal) indicating that the generated data including the signal information specified in the request signal cannot be output because the communication data including the signal information is communication data that is not to be received. The control unit 20 of the relay device 2 may notify the monitoring ECU 31 by outputting the extraction impossible signal.
[0052] In the present embodiment, S101 and S102 are described as sequential processes, but this is not limiting. When the control unit 20 of the relay device 2 determines that a request signal has been acquired (S101: YES), the control unit 20 may generate a sub-process for performing the processes from S102 to S105, thereby performing the process of acquiring the request signal (S101) and the process of generating and outputting the generated data (S102 to S105) in parallel.
[0053] The control unit of the monitoring ECU 31 outputs a request signal (T101). For example, when the control unit of the monitoring ECU 31 acquires (receives) communication data of a monitoring target, the control unit of the monitoring ECU 31 generates a request signal including information (such as a message ID and a stored bit address) for identifying one or more pieces of signal information to be used as a comparison target, and outputs the request signal to the relay device 2. Alternatively, the control unit of the monitoring ECU 31 may generate and output the request signal periodically or steadily.
[0054] The control unit of the monitoring ECU 31 determines whether the generated data has been acquired (T102). The control unit of the monitoring ECU 31 continues the process of waiting for the generated data from the relay device 2, and when the generated data is output from the relay device 2, the control unit of the monitoring ECU 31 acquires the generated data.
[0055] When the generated data is acquired (T102: YES), the control unit of the monitoring ECU 31 detects unauthorized data using the acquired generated data (T103). When the generated data is acquired from the relay device 2, the control unit of the monitoring ECU 31 extracts one or more pieces of signal information contained in the payload of the generated data. The control unit of the monitoring ECU 31 derives an estimated value corresponding to the signal information to be determined based on the extracted signal information.
[0056] The control unit of the monitoring ECU 31 compares the derived estimated value with the signal information to be judged, and judges whether the signal information to be judged is appropriate based on the comparison result. The control unit of the monitoring ECU 31 may, for example, judge the signal information to be judged to be valid if the difference between the content (value) of the signal information to be judged and the derived estimated value is within a predetermined value, and may judge the signal information to be judged to be fraudulent if the difference exceeds the predetermined value. If the signal information to be judged is valid, the communication data to be monitored is valid, and if the signal information to be judged is fraudulent, the communication data to be monitored is judged to be fraudulent.
[0057] Even if the monitoring ECU 31 cannot directly acquire (receive) the communication data including the signal information to be compared, the monitoring ECU 31 can acquire the signal information by acquiring the generated data, and can efficiently perform the monitoring function for the communication data to be monitored.
[0058] If the generated data has not been acquired (T102: NO), that is, if a notification that the generated data cannot be output has been received (acquired), the control unit of the monitoring ECU 31 stops outputting the request signal from the next time (T1021). If the generated data has not been acquired, the control unit of the monitoring ECU 31 acquires a notification that the generated data cannot be output (receives an extraction impossible signal). Having received the extraction impossible signal, the control unit of the monitoring ECU 31 stops outputting the request signal to the relay device 2, and hence no request signal is output thereafter. This makes it possible to reduce the processing load on the relay device 2.
[0059] (Embodiment 2) 4 is a flowchart illustrating the process of the control unit 20 of the relay device 2 according to the second embodiment (acquiring a signal within a predetermined period of time). The control unit 20 of the relay device 2 and the control unit of the monitoring ECU 31 constantly perform the following processes when the vehicle C is in a running state (IG switch is on) or stopped state (IG switch is off), similarly to the first embodiment. The control unit 20 of the relay device 2 performs processes from S201 to S203, similarly to the processes from S101 to S103 in the first embodiment.
[0060] The control unit 20 of the relay device 2 judges whether all communication data for extracting all signal information requested by the request signal has been acquired within a predetermined period of time (S204). Even if the type of signal information included in the communication data is the same (same CAN-ID and storage bit address), if the control state of the vehicle C changes, it is expected that the content or value of the signal information will also change over time, and this change will affect the correlation. The physical quantity or state quantity related to the control of the vehicle C is, for example, a physical quantity consisting of a sensor value such as vehicle speed or battery temperature, or a state quantity indicating the state of an actuator such as engine rotation speed or steering wheel rotation angle.
[0061] In this way, since the signal information included in the communication data includes physical quantities or state quantities related to the control of the vehicle C, it is expected that the content of the signal information corresponding to the control state of the vehicle C will change over time. Therefore, when extracting the signal information from each of the multiple communication data, the period (acquisition period) for acquiring these multiple communication data is required to be within a period in which there is substantially no change in the control state, etc. of the vehicle C, and further, it is required to be the same as the acquisition time (reception time) of the communication data monitored by the monitoring ECU 31. In this embodiment, the same time is not limited to the case where these acquisition times are completely the same, and it is intended that it is sufficient that they are the same period within an allowable range in terms of the accuracy of judgment by the monitoring ECU 31.
[0062] The control unit 20 of the relay device 2 determines whether or not all communication data for extracting all signal information requested by the request signal has been acquired within a predetermined period based on the value of the predetermined period prestored in the storage unit 23, for example, starting from the time point when the request signal is received. Alternatively, the value of the predetermined period may be included in the request signal. In this case, the control unit 20 of the relay device 2 determines whether or not all communication data for extracting signal information has been acquired within the predetermined period based on the value of the predetermined period included in the request signal. In determining whether or not the communication data has been acquired within the predetermined period, the control unit 20 of the relay device 2 may determine whether the period (acquisition period) required to receive all the communication data is within the predetermined period. Alternatively, the control unit 20 of the relay device 2 may determine whether or not the communication data acquired (received) within the predetermined period satisfies all communication data for extracting all signal information requested by the request signal.
[0063] If the data is acquired within the predetermined period (S204: YES), the control unit 20 of the relay device 2 performs the processes of S205 to S206, similar to the processes of S104 to S105 in embodiment 1. As a result, similar to embodiment 1, the control unit 20 of the relay device 2 generates and outputs the generated data.
[0064] If not acquired within the predetermined period (S204: NO), the control unit 20 of the relay device 2 outputs a notification to the monitoring ECU 31 that the generated data cannot be output because it was not possible to acquire all communication data for extracting all signal information requested by the request signal within the predetermined period (S2041). If not acquired within the predetermined period, the control unit 20 of the relay device 2 may generate a signal (not possible within period signal) indicating that it was not possible to acquire all communication data for extracting signal information within the predetermined period, and notify the monitoring ECU 31 by outputting the not possible within period signal.
[0065] The control unit of the monitoring ECU 31 performs the processes from T201 to T202, similar to the processes from T101 to T102 in embodiment 1. If the generated data is acquired (T202: YES), the control unit of the monitoring ECU 31 detects fraudulent data using the acquired generated data, similar to embodiment 1 (T203).
[0066] If the generated data is not acquired (T202: NO), that is, if a notification that the generated data cannot be output (extraction impossible signal) or a notification that the communication data cannot be acquired within a predetermined time (period impossible signal) is received (acquired), the control unit of the monitoring ECU 31 executes a process according to the notification content (T2021). If the control unit of the monitoring ECU 31 receives (acquires) a notification that the generated data cannot be output (extraction impossible signal), it may stop outputting the request signal from the next time onwards, similar to T1021 in the first embodiment.
[0067] When the control unit of the monitoring ECU 31 receives (acquires) a notification (not possible within the period signal) that the communication data cannot be acquired within a predetermined time, the control unit of the monitoring ECU 31 may store a processing result indicating that the determination processing for the communication data of the monitoring target acquired (received) this time could not be executed because the generated data could not be acquired from the relay device 2, in a storage unit of the monitoring ECU 31 in association with the time of reception of the communication data of the monitoring target. Alternatively, when the control unit of the monitoring ECU 31 receives (acquires) a notification (not possible within the period signal) that the communication data cannot be acquired within a predetermined time, the control unit of the monitoring ECU 31 may perform a loop processing to execute the processing from T201 again.
[0068] When the control unit of the monitoring ECU 31 performs a determination process on the communication data of the monitoring target, the signal information included in the generated data acquired from the relay device 2 and the signal information included in the communication data of the monitoring target have a time correspondence relationship in which they are substantially the same reception time (reception period). This can improve the accuracy of the determination process by the control unit of the monitoring ECU 31.
[0069] (Embodiment 3) 5 is a flowchart illustrating the process of the control unit 20 of the relay device 2 according to the third embodiment (signal identification using a correlation table). The control unit 20 of the relay device 2 and the control unit of the monitoring ECU 31 constantly perform the following process when the vehicle C is in a running state (IG switch is on) or a stopped state (IG switch is off) in the same manner as in the first embodiment.
[0070] The control unit 20 of the relay device 2 identifies signal information to be extracted (S301). The control unit 20 of the relay device 2 identifies the signal information by referring to a correlation table stored in an accessible storage area such as the storage unit 23 of the relay device 2, for example, without acquiring the request signal described in the first embodiment.
[0071] 6 is an explanatory diagram illustrating an example of the correlation table. In the correlation table, signal information to be extracted according to the monitoring ECU 31 is stored, for example, in a list format (table format) or the like. The correlation table includes, as management items (fields), for example, a monitoring ECU ID, a segment number, a transmission period, and a signal to be extracted.
[0072] The monitoring ECU ID management item stores an identifier (ID) for uniquely identifying each of the multiple monitoring ECUs 31 included in the in-vehicle system S. The segment number management item stores the segment number of the communication line 41 to which the corresponding monitoring ECU 31 (monitoring ECU ID) is connected. The segment number of the communication line 41 corresponds to the device number of the communication unit 22 of the relay device 2 to which the communication line 41 is connected. The transmission cycle management item stores the transmission cycle for transmitting (outputting) generated data to the corresponding monitoring ECU 31 (monitoring ECU ID).
[0073] The management item of the signal to be extracted stores the type of communication data used when the corresponding monitoring ECU 31 (monitoring ECU ID) judges the signal information contained in the communication data to be monitored, and the signal information contained in the communication data (information for identifying the signal information to be extracted). When the communication data is a CAN message, the type of communication data and the signal information may be defined, for example, by a CAN-ID (message ID) and a storage bit address where the signal information to be extracted is stored in the payload contained in the CAN message of the CAN-ID. The control unit 20 of the relay device 2 can identify the signal information required for the judgment process of each monitoring ECU 31 and the type of communication data including the signal information by referring to the correlation table.
[0074] The control unit 20 of the relay device 2 performs the processes of S302 to S304 in the same manner as S103 to S105 in the first embodiment. The control unit 20 of the relay device 2 generates generated data for each monitoring ECU 31 by referring to the correlation table, and outputs each of the generated generated data to each monitoring ECU 31. When generating and outputting generated data for each monitoring ECU 31, the control unit 20 of the relay device 2 may perform these processes according to the transmission period for each monitoring ECU 31 defined in the correlation table. When the monitoring ECU 31 or the in-vehicle ECU 3 is reprogrammed by an update program transmitted from the external server S1, for example, the control unit 20 of the relay device 2 may update the correlation table according to the reprogramming by the update program.
[0075] The control unit of the monitoring ECU 31 acquires (receives) the generated data output (transmitted) from the relay device 2 (T301). The control unit of the monitoring ECU 31 continues the process of waiting for the generated data from the relay device 2, and acquires the generated data when the generated data is output from the relay device 2. The control unit of the monitoring ECU 31 detects unauthorized data using the acquired generated data, similar to T103 in the first embodiment (T302).
[0076] When the in-vehicle system S includes a plurality of monitoring ECUs 31, each of which is connected to a respective communication unit 22 of the relay device 2, it is assumed that each of the monitoring ECUs 31 monitors different types of communication data. In response to this, the correlation table defines signal information required by each of the monitoring ECUs 31 when making a determination.
[0077] The control unit 20 of the relay device 2 identifies signal information to be extracted according to the monitoring ECU 31 based on the correlation table stored in an accessible storage area such as the storage unit 23, and extracts the identified signal information from the communication data acquired via the communication unit 22. In this way, the control unit 20 of the relay device 2 can efficiently perform appropriate processing according to each monitoring ECU 31 by referring to the correlation table.
[0078] The embodiments disclosed herein are illustrative in all respects and should not be considered as limiting. The scope of the present invention is defined by the claims, not by the above meaning, and is intended to include all modifications within the scope and meaning equivalent to the claims.
[0079] The claims may be combined with each other regardless of the form of reference. The claims may contain multiple dependent claims depending on multiple claims. Multiple dependent claims may be contained depending on multiple dependent claims. If multiple dependent claims are not contained depending on a multiple dependent claim, this does not limit the number of dependent claims depending on a multiple dependent claim. [Explanation of symbols]
[0080] S In-vehicle system C Vehicle S1 External Server 1. External communication device 2. Relay Device 20 Control section 21 Input / Output Interface 22 Communications Department 23 Memory section M Recording medium P Control program (program product) 3 In-vehicle ECU 31 Monitoring ECU 4. In-vehicle network 41 Communication Line
Claims
1. A relay device mounted on a vehicle and communicably connected to a plurality of vehicle-mounted ECUs, A plurality of communication units connected to the in-vehicle ECU; a control unit that controls relay of communication data transmitted and received between the in-vehicle ECUs via the communication unit, the plurality of on-vehicle ECUs include a monitoring ECU having a monitoring function for the communication data, The control unit is acquiring the communication data via the communication unit; extracting signal information used by the monitoring ECU to detect unauthorized data from the acquired communication data; Data generated based on the extracted signal information is output to the monitoring ECU. Relay device.
2. The monitoring ECU determines whether the acquired communication data is unauthorized data by using other signal information having a correlation with the signal information included in the communication data, The signal information extracted by the control unit corresponds to the other signal information. The relay device according to claim 1 .
3. When the control unit receives a request signal from the monitoring ECU, extracting the signal information from the acquired communication data in response to the request signal; Data generated based on the extracted signal information is output to the monitoring ECU. The relay device according to claim 2 .
4. The control unit is determining whether or not communication data including the other signal information to be extracted can be acquired based on the acquired request signal; If it is determined that the generated data can be acquired, the generated data is output to the monitoring ECU. If it is determined that the generated data cannot be acquired, the monitoring ECU is notified that the generated data cannot be output. The relay device according to claim 3 .
5. The control unit is Acquiring a plurality of said communication data; extracting the signal information from each of the plurality of communication data; The generated data is generated based on the extracted plurality of pieces of signal information. The relay device according to any one of claims 1 to 4.
6. When the control unit acquires a plurality of pieces of communication data for extracting a plurality of pieces of signal information within a predetermined period, the control unit generates the generated data based on the extracted plurality of pieces of signal information. The relay device according to claim 5 .
7. The signal information includes a physical quantity or a state quantity related to control of the vehicle. The relay device according to any one of claims 1 to 4.
8. A method executed by a computer that is mounted on a vehicle, communicatively connected to a plurality of on-board ECUs and a monitoring ECU having a monitoring function for communication data transmitted and received between the on-board ECUs, and controls relay of communication data transmitted and received between the on-board ECUs, comprising: Acquire the communication data; extracting signal information used by the monitoring ECU to detect unauthorized data from the acquired communication data; Data generated based on the extracted signal information is output to the monitoring ECU. Information processing methods.
9. An in-vehicle system including a relay device that is mounted on a vehicle and relays communication data transmitted and received between the in-vehicle ECUs, and a monitoring ECU having a monitoring function for the communication data transmitted and received between the in-vehicle ECUs, The relay device is extracting signal information from the acquired communication data in response to a request signal acquired from the monitoring ECU; Data generated based on the extracted signal information is output to the monitoring ECU. In-vehicle systems.
