Method for dealing with hacked nodes in CAN bus physical layer, physical layer security method through automatic node ID setting in CAN bus, recording medium and system for carrying out the same

By automatically assigning unique IDs to CAN bus nodes and using an IDS to monitor and isolate hacked nodes, the method addresses the challenge of identifying and blocking malicious data frames, enhancing security and safety on the CAN bus.

JP7541782B2Active Publication Date: 2024-08-29AY INNOVATIVE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023524176
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-10-21
Filing Date
2020-12-28
Publication Date
2024-08-29
Estimated Expiration
2040-12-28

AI Technical Summary

Technical Problem

The lack of unique addresses for nodes on the CAN bus makes it difficult to identify and block malicious data frames, which can overload the bus and cause dangerous malfunctions or attacks, posing a risk to user safety.

Method used

Implementing a method for automatic node ID setting on the CAN bus, where each node is assigned a unique ID during boot-up, and an intrusion detection system (IDS) monitors data frames to detect hacking, increasing error counters for suspicious nodes, and isolating them from the bus when thresholds are exceeded.

Benefits of technology

This approach effectively identifies and isolates hacked nodes, preventing malicious attacks and enhancing security performance by ensuring each node has a unique ID, reducing the number of bits required and simplifying replacement processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007541782000018
    Figure 0007541782000018
  • Figure 0007541782000013
    Figure 0007541782000013
  • Figure 0007541782000011
    Figure 0007541782000011
Patent Text Reader

Abstract

The method for dealing with hacked nodes at the CAN bus physical layer includes the steps of: setting unique NIDs (Node IDs) for each of multiple nodes connected to a CAN (Controller Area Network) bus line; determining an error frame when at least one of a node using a forged NID, a node using a different NID, and a node using a non-existent NID is detected; incrementing the TEC (Transmit Error Counter) and REC (Receive Error Counter) counts of the transmitting node and the receiving node each time the error frame occurs; and turning off and blocking the bus of any node whose TEC or REC exceeds a set threshold. Accordingly, when a malicious data frame is detected on the CAN bus, the intrusion detection system increments the error counter of the internal attacking node and isolates it from the bus, thereby defending against the malicious attack. The physical layer security method for automatic node ID configuration on a CAN bus includes the steps of: when a node connected to a Controller Area Network (CAN) bus line boots up, starting a clock count and setting a temporary ID (TID) when the count reaches a threshold and transmitting a data frame; when a node detects a recessive signal during clock counting or detects a recessive signal before completing the clock count and generating a transmitter (Tx) signal, storing a node ID (NID), which is a unique ID for each node appearing on the bus; setting the TID of a node that receives an Ack signal sent from an IDS that transmitted a data frame with the TID set as the NID; and when the CAN bus enters an idle state, restarting the clock count and, when the clock count reaches a preset value, setting the TID to a value obtained by adding one to the NID last appearing on the bus line and transmitting the data frame. This method of setting the NID of the IDS and CAN controller can counter all network attacks that may occur on the CAN bus.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a method for dealing with a hacked node in the physical layer of a CAN bus, a physical layer security method through automatic node ID setting on a CAN bus, and a recording medium and system for performing the same. More specifically, the present invention relates to a technology for defending against malicious attacks by an intrusion detection system increasing an error counter of an internal attacking node and isolating it from the bus when a malicious data frame is detected on a CAN bus, and a physical layer security technology for automatically assigning a unique ID to each node on the CAN bus each time it is booted to distinguish each node. [Background technology]

[0002] Most of today's automobiles use the CAN (Controller Area Network) bus to connect the ECUs (Electronic Control Units) inside the vehicle. One of the features of the CAN bus is that there is no address for the nodes participating in the communication. This has many advantages such as simultaneous transmission and multiple transmission, but at the same time it also provides security weaknesses.

[0003] If one of the nodes participating in the communication is hacked and a malicious data frame is transmitted, it is very difficult to block the node because it is not known which node sent the data frame. If it is not possible to prevent such malicious data frames, they can overload the CAN bus, preventing normal communication, or attack other nodes and cause them to perform operations that are dangerous to users.

[0004] Specifically, one of the characteristics of the CAN communication protocol is that nodes connected to the CAN bus do not have addresses, so even if one of the nodes participating in the communication is hacked by an attacker and sends a malicious data frame, it is difficult to identify which electronic control device is at fault.

[0005] A hacked node may send malicious data frames to overload the CAN bus, cause other nodes to malfunction, or pirate other normal nodes, which may pose a significant risk to the safety of users. Therefore, it is necessary to identify malicious nodes that occur on the CAN bus and take immediate action to prevent accidents.

[0006] Most automotive electrical systems are controlled by an ECU (Electronic Control Unit) and transmit data via a CAN (Controller Area Network) bus. A processor ID and a communication encryption key are uniquely assigned to the ECU installed in the vehicle, so the program checks each time communication is performed and issues a command to cut off communication if hacking is suspected.

[0007] However, with more advanced hacking techniques, it is possible to modulate all software operations in the relevant ECU, monitor normal communication data transmitted over the CAN bus, infer and forge processor IDs and communication encryption keys, and even ignore communication cut-off commands.

[0008] Therefore, to fundamentally prevent communication interference and malicious data transmission due to hacking, the communication of the hacked node must be blocked by hardware on the CAN bus. In order to block a node that has already been hacked and is interfering with CAN communication and transmitting malicious data, each node must first be uniquely identified on the CAN bus, but the CAN bus does not have a function to identify individual nodes like the Ethernet's MAC (Media Access Control) address.

[0009] One method is to assign unique IDs to CAN controllers through hardware when they are produced, but in this case, assigning a unique ID to every chip would significantly increase the number of bits in the unique ID, significantly reducing the transmission efficiency of the CAN bus.

[0010] In addition, if unique IDs are assigned all at once at the factory after all nodes are installed on the CAN bus, the number of bits in the unique ID can be significantly reduced because there are only a few nodes on the same CAN bus, but it is still very cumbersome because the ID assignment process must be carried out again at the factory every time a part is replaced. [Prior art document] [Patent documents] (Patent Document 1) JP4232603B2 (Patent Document 2) KR10-1332339B1 (Patent Document 3) KR10-2009-0065260A Summary of the Invention [Problem to be solved by the invention]

[0011] Therefore, the technical problem of the present invention has been addressed in light of the above, and the objective of the present invention is to provide a method for dealing with a node that has been hacked at the CAN bus physical layer so as to be able to immediately deal with various attack scenarios.

[0012] Another object of the present invention is to provide a recording medium having a computer program recorded thereon for performing a method for dealing with a node that has been hacked in the CAN bus physical layer.

[0013] It is yet another object of the present invention to provide a system for performing a method for dealing with a node that has been hacked in the CAN bus physical layer.

[0014] It is yet another object of the present invention to provide a physical layer security method through automatic node ID setting in a CAN bus, in which a unique ID is automatically assigned to each node at each booting.

[0015] It is yet another object of the present invention to provide a recording medium having recorded thereon a computer program for performing a physical layer security method through automatic node ID configuration in the CAN bus.

[0016] It is yet another object of the present invention to provide an apparatus for performing a physical layer security method through automatic node ID configuration in the CAN bus. [Means for solving the problem]

[0017] A method for dealing with a hacked node in a CAN bus physical layer according to one embodiment for achieving the above-mentioned object of the present invention includes a step of setting a unique ID (Node ID) NID for a plurality of nodes connected to a CAN (Controller Area Network) bus line; a step of determining an error frame when at least one of a node using a forged NID, a node using another NID, and a node using a non-existent NID is found; a step of incrementing a Transmit Error Counter (TEC) and a Receive Error Counter (REC) count of a transmitting node and a receiving node each time the error frame occurs; and a step of turning off the bus and blocking a node whose TEC or REC is greater than a set threshold value.

[0018] In an embodiment of the present invention, the step of determining that the frame is an error frame may be performed when a node using a forged NID is discovered, allowing the node to detect hacking by setting the forged NID.

[0019] In an embodiment of the present invention, the step of determining that the frame is an error frame may allow an Intrusion Detection System (IDS) to detect hacking if a node using another NID or a node using a non-existent NID is discovered.

[0020] In an embodiment of the present invention, the step of setting NIDs, which are unique IDs different from each other, for a plurality of nodes connected to the CAN bus line may involve setting the lowest 4 bits of a message ID field to an NID value when transmitting a data frame.

[0021] In an embodiment of the present invention, the step of incrementing the TEC and REC counts of the transmitting node and the receiving node each time the error frame occurs may be such that, when the error frame occurs, the TEC of the transmitting node is incremented by 8, and in the case of the receiving node, the REC of the node which generated the error frame first is incremented by 8, and the REC of the other nodes is incremented by 1.

[0022] In an embodiment of the present invention, the method for dealing with a hacked node in the CAN bus physical layer may further include the step of decreasing the TEC and REC counts of the transmitting node and the receiving node each time a message is successfully transmitted.

[0023] In an embodiment of the present invention, the step of turning off the bus of a node whose TEC or REC is greater than a set threshold value may isolate the node when the TEC or REC of the node is greater than 256.

[0024] In one embodiment of the present invention, a computer-readable storage medium for achieving another object of the present invention has a computer program recorded thereon for performing a method for dealing with a node that has been hacked in the CAN bus physical layer.

[0025] In accordance with one embodiment of the present invention, a system for dealing with a hacked node in a CAN bus physical layer includes: a number of nodes connected to a Controller Area Network (CAN) bus line, each having a different unique ID, Node ID (NID); an Intrusion Detection System (IDS) that analyzes the contents of a data frame loaded onto the CAN bus line to determine whether the node is hacked; a counter that increments a Transmit Error Counter (TEC) and a Receive Error Counter (REC) of the transmitting node and the receiving node every time the error frame occurs, and decrements the TEC and REC of the transmitting node and the receiving node every time a message is successfully transmitted; and a Node Expulsion System (NES) that is installed in each of the number of nodes and the IDS, and shuts off the bus of a node whose TEC or REC is greater than a set threshold value.

[0026] In an embodiment of the present invention, the system for dealing with nodes hacked at the CAN bus physical layer is such that when a node using a forged NID is discovered, the NES of the node with the spoofed NID set can detect the hacking.

[0027] In an embodiment of the present invention, the system for dealing with a node that has been hacked at the CAN bus physical layer is such that the NES of the IDS can detect the hacking when a node using a different NID or a node using a non-existent NID is discovered.

[0028] In an embodiment of the present invention, the NID of each node may be set in the lower 4 bits of the message ID field when transmitting a data frame.

[0029] In an embodiment of the present invention, a physical layer security method through automatic node ID setting on a CAN bus includes the steps of: when a node connected to a Controller Area Network (CAN) bus line is booted up, starting a clock count and setting a temporary ID (TID) when a threshold value is reached, and transmitting a data frame; when a node detects a recessive signal during the clock count operation or detects a recessive signal before completing the clock count and generating a transmitter (Tx) signal, storing a node ID (NID) that is a unique ID of each different node appearing on the bus; setting the TID of a node that receives an Ack signal transmitted from an IDS that transmitted a data frame with the TID set as the NID; and when the CAN bus becomes an IDLE state, starting a clock count again, and when the clock count reaches a set value, setting the TID to a value obtained by adding 1 to the NID that last appeared on the bus line, and transmitting a data frame;

[0030] In an embodiment of the present invention, the physical layer security method through automatic node ID configuration on a CAN bus may further include a step of repeatedly performing the above steps to configure the NIDs of all nodes connected to the bus line, transmitting an error frame via the IDS to inform each node that the NID configuration is complete, and the node starts communication.

[0031] In an embodiment of the present invention, the set NID can be transmitted by describing the set NID in the lowest 4 bits of the message ID field when transmitting a data frame.

[0032] In an embodiment of the present invention, the physical layer security method through automatic node ID configuration on the CAN bus may further include a step of: when nodes with the same NID configured transmit different data simultaneously, a step of: when a bit error occurs in a data field when transmitting a data frame; a step of storing at which bit in the data field the error occurs when a bit error occurs; and a step of: when a bit error occurs in the same place a predetermined number of consecutive times, determining that the same NID has been configured without transmitting an error frame and changing the NID.

[0033] In an embodiment of the present invention, the physical layer security method through automatic node ID configuration on the CAN bus may further include a step of generating an error in a process in which a node not transmitting data receives Arbitration field RTR data when one of the nodes with the same NID configured transmits data; a step of a node not transmitting data checking whether its NID appears a predetermined number of times consecutively on the CAN bus when the node transmits a data frame; and a step of determining that the same NID has been configured and changing its own NID when its NID appears a predetermined number of times consecutively.

[0034] In an embodiment of the present invention, the physical layer security method through automatic node ID configuration on the CAN bus may further include a step of initializing a clock count and waiting for communication to end, in which the step of storing a Node ID (NID), which is a unique ID of each different node appearing on the bus, is performed.

[0035] In an embodiment of the present invention, in the step of setting a Temporary ID (TID) and transmitting a data frame, the threshold value of the clock count may be set to 16'hFFFF.

[0036] In one embodiment of the present invention, a computer-readable storage medium for achieving another object of the present invention has a computer program recorded thereon for performing a physical layer security method through automatic node ID configuration in the CAN bus.

[0037] According to one embodiment of the present invention, a physical layer security device using automatic node ID setting on a CAN bus, when a node connected to a CAN (Controller Area Network) bus line is booted up, starts counting a clock and transmits a data frame when the clock count reaches a threshold value. The TID of a node that receives an Ack signal transmitted from an IDS that transmits the data frame with the TID set is set as an NID (Node ID), which is a unique ID of each node. an NID storage unit that stores the NID of a node that detects a recessive signal during clock counting or detects a recessive signal before completing the clock count and generating a Tx (Transmitter) signal; a state machine that starts clock counting again when the CAN bus goes into an IDLE state, and when the clock count reaches a set value, sets the TID to a value obtained by adding 1 to the NID that last appeared on the bus line and transmits a data frame; and a transmission buffer that, when the NIDs of all nodes connected to the bus line have been set, transmits an error frame via the IDS to inform each node that the NID setting has been completed and allows them to start communication.

[0038] In an embodiment of the present invention, the physical layer security device through automatic node ID setting on the CAN bus is embodied on a CAN controller, and when nodes with the same NID set transmit different data at the same time, if a bit error occurs in a data field when transmitting a data frame, the device stores the bit in the data field at which the error occurred, and if a bit error occurs in the same place a predetermined number of times in succession, the device determines that the same NID has been set without transmitting an error frame and changes the NID. When one of the nodes with the same NID set transmits data, if an error occurs in the process of a node not transmitting data receiving Arbitration field RTR data, when the node transmits a data frame, the node not transmitting data checks whether its NID appears consecutively a predetermined number of times on the CAN bus, and if its NID appears consecutively a predetermined number of times, the device determines that the same NID has been set and changes its NID. Effect of the Invention

[0039] According to this method for dealing with a node hacked at the CAN bus physical layer, when a malicious data frame is detected on the CAN bus, the intrusion detection system defends against the malicious attack by incrementing the error counter of the internal attacking node and isolating it from the bus.

[0040] It is a hardware method that sets the IDS (Intrusion Detection System) and the NID (Node ID) of the CAN (Controller Area Network) controller, and can immediately respond to any network attacks that may occur on the CAN bus, thereby improving user safety and enhancing security performance.

[0041] According to the physical layer security method using automatic node ID setting on the CAN bus, a unique ID is automatically assigned to each node at every booting on the CAN bus to distinguish each node. The present invention assigns a unique ID (Node ID) at every booting, so it can be easily applied regardless of part replacement and can greatly reduce the number of bits of the unique ID.

[0042] In addition, by setting the IDS and the NID of the CAN controller, it is possible to deal with all network attacks that may occur on the CAN bus, thereby improving user safety and enhancing security performance. [Brief description of the drawings]

[0043] [Figure 1] FIG. 2 is a block diagram of a system for dealing with a node hacked at a CAN bus physical layer in accordance with one embodiment of the present invention.

[0044] [Diagram 2] 2 is a table showing the MID and DLC of the node whose NID is set in FIG. 1 and the range of data that can be transmitted.

[0045] [Diagram 3] 13 is a diagram showing node state changes due to TEC and REC.

[0046] [Figure 4] 1 is a diagram showing a process for dealing with a general attack according to the present invention;

[0047] [Diagram 5] 1 is a diagram showing a process of dealing with a spoofing attack according to the present invention;

[0048] [Figure 6] 4 is a flowchart of a method for dealing with a hacked node at a CAN bus physical layer according to an embodiment of the present invention.

[0049] [Figure 7] 4 is a diagram showing a simulation waveform of an operation of dealing with a general attack according to the present invention;

[0050] [Figure 8] 4 is a diagram showing a simulation waveform of the operation of dealing with a spoofing attack according to the present invention;

[0051] [Figure 9] 1 is a block diagram of a physical layer security device through automatic node ID configuration on a CAN bus according to an embodiment of the present invention;

[0052] [Figure 10] 1 is a diagram showing a process of automatically setting an NID according to the present invention.

[0053] [Figure 11] 1 is a diagram for explaining a case where nodes with the same NID set transmit data simultaneously according to the present invention.

[0054] [Figure 12] 12 is a diagram for explaining a process in which a bit error occurs in a data field in the case of FIG. 11;

[0055] [Figure 13] 1 is a diagram illustrating a case where one of nodes having the same NID set thereto transmits data according to the present invention.

[0056] [Figure 14] 14 is a diagram for explaining a process in which a bit error occurs in the arbitration field in the case of FIG. 13;

[0057] [Figure 15] 11 is a table showing the range of data that can be transmitted by the MID and DLC of a node in which an NID is set in the present invention.

[0058] [Figure 16] 1 is a diagram for explaining a process in which an IDS responds to an attack in the present invention.

[0059] [Figure 17] 4 is a flowchart of a physical layer security method through automatic node ID configuration in a CAN bus according to an embodiment of the present invention.

[0060] [Figure 18] 13 is a diagram showing the results of a simulation of the process in which unique node IDs are automatically assigned while a CAN bus is booted.

[0061] [Figure 19] 13 is a diagram showing a simulation result of a countermeasure operation against an internal attack on a CAN bus. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0062] The following detailed description of the present invention will be made with reference to the accompanying drawings, which show, by way of example, specific embodiments in which the present invention may be practiced. These embodiments are described in detail to enable those skilled in the art to fully practice the present invention. It should be understood that the various embodiments of the present invention are different from one another but are not necessarily mutually exclusive. For example, a particular shape, structure, and characteristic described herein in relation to one embodiment may be embodied in other embodiments without departing from the spirit and scope of the present invention. It should also be understood that the location or arrangement of individual components within each disclosed embodiment may be modified without departing from the spirit and scope of the present invention. Therefore, the following detailed description is not intended to be taken in a limiting sense, and the scope of the present invention is limited only by the appended claims, together with the full scope of equivalents to which such claims are entitled, if properly described. Like reference characters in the drawings indicate the same or similar functionality throughout the various aspects.

[0063] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in more detail with reference to the drawings.

[0064] Fig. 1 is a block diagram of a system for dealing with a node hacked at a CAN bus physical layer according to an embodiment of the present invention. Fig. 2 is a table showing the range of data that can be transmitted by the MID and DLC of the node whose NID is set in Fig. 1.

[0065] The system for dealing with a hacked node in the physical layer of a CAN (Controller Area Network) bus according to the present invention (hereinafter, the system) proposes a technique for defending against malicious attacks by an intrusion detection system increasing an error counter of an internal attacking node and isolating it from the bus when a malicious data frame is detected on the CAN bus. For example, a CAN controller equipped with the technique proposed in the present invention can be embodied using Verilog HDL.

[0066] Referring to FIG. 1, a system 1 according to the present invention includes a number of nodes (Nodes A, B, C, and D) connected to a CAN bus line, an IDS (Intrusion Detection System), a counter (not shown), and an NES (Node Expulsion System).

[0067] The multiple nodes (Nodes A, B, C, and D) are connected to a Controller Area Network (CAN) bus line, and each node is assigned a unique NID (Node ID).

[0068] In the present invention, before all nodes start communication, their unique IDs (Node IDs) are set as shown in Fig. 1. When transmitting a data frame, the lowest 4 bits of the message ID field are filled with the NID value, and the NID acts as a fingerprint, making it possible to identify which node is transmitting the data frame.

[0069] The CAN bus according to the present invention is additionally connected to an IDS (Intrusion Detection System). The IDS is an intrusion detection system, and the range of data that can be transmitted is preset using MID (Message ID) and DLC (Data Length Code) as shown in FIG. 2, and is updated in advance in the IDS and the nodes.

[0070] The IDS analyzes the contents of the data frame loaded onto the CAN bus line to determine whether the node is a hacked node.

[0071] The counter increments the TEC (Transmit Error Counter) and REC (Receive Error Counter) of the transmitting node and the receiving node each time an error frame occurs, and decrements the TEC and REC of the transmitting node and the receiving node each time a message is successfully transmitted.

[0072] The NES is installed in each of the multiple nodes and the IDS, and shuts off the bus of a node whose TEC or REC exceeds a preset threshold value.

[0073] Every node on the CAN bus has a TEC (Transmit Error Counter) and a REC (Receive Error Counter), which are used to prevent nodes with frequent errors from interfering with the transmission and reception of other nodes.

[0074] When any node detects an error, it generates an error frame, at which point the TEC of the transmitting node increases by 8. For receiving nodes, the REC of the node that generated the error frame first increases by 8, and the REC of the other nodes increases by 1.

[0075] On the other hand, if a message is successfully transmitted, the TEC and REC of the sending and receiving nodes are each decreased by 1. Figure 3 shows the change in node state depending on TEC and REC. In the error active state, normal transmission and reception is performed, but if the TEC or REC is 128 or more, the node enters the error passive state, and transmission and reception are somewhat restricted.

[0076] In particular, when the TEC exceeds 256, the bus is automatically isolated and transmission and reception are prohibited due to the bus-off state. Taking advantage of this, the present invention proposes a technique for putting a node transmitting malicious data frames into the bus-off state to prevent the node from overloading the bus or attacking other nodes.

[0077] CAN bus attack scenarios There are three main attack scenarios for the CAN bus. After occupying a node, message patterns can be identified through sniffing, or a general attack can be used to send malicious data frames to overload the bus or cause other nodes to malfunction.

[0078] It is also possible to carry out a spoofing attack by pretending to be another node and sending malicious data frames. For example, an attack scenario is as follows:

[0079] In scenario 1, sniffing involves taking over a node through hacking and looking at messages being transmitted on the bus to understand patterns. At this stage, no harm is done to the CAN bus.

[0080] In scenario 2, a general attack uses sniffing to understand message patterns and then transmits malicious data frames using the occupied node. Scenario 3 is a spoofing attack. Although general attacks and spoofing attacks are the same in that they both transmit malicious data frames, the difference is that in a spoofing attack, the occupied node is disguised as another node.

[0081] The NES (Node Expulsion System), which is a function that expels a hacked node by sending an error frame, is a function added by this invention that is not available in general CAN buses.

[0082] In one embodiment, the NES can be realized by adding a circuit to the CAN controller that outputs an error frame if a specific condition is satisfied. In the present invention, the NES is installed in each node and the IDS.

[0083] In this invention, sniffing does not immediately affect the bus, so no special measures are taken. However, in a general attack, when an occupied node transmits a malicious data frame as shown in Figure 4, the IDS analyzes the contents of the data frame and detects that the node has been hacked.

[0084] From then on, the NES attached to the IDS will continue to transmit an error frame every time the node in question transmits, blocking the node's transmission, increasing the TEC, and causing the node to enter a bus-off state.

[0085] Specifically, it is a process to deal with attacks in which a hacked node sends malicious data frames to overload the CAN bus or cause other nodes to malfunction. The IDS continuously monitors the CAN bus, and when (1) a malicious node sends MID=0x102, DLC=4b0010, Data=0x2000, (2) the IDS sees that it differs from the previously updated table and determines that the node sending the current data frame is a hacked node.

[0086] (3) The IDS that detects the hacked node will send an error frame, and (4) the malicious node that receives the error frame while sending a data frame will have its TEC increased. Another attack, which is to steal other normal nodes, cannot occur because every node has a unique NID that cannot be changed.

[0087] On the other hand, in a spoofing attack, when an occupied node forges an NID and sends a malicious data frame as shown in Figure 5, it detects that the node has been hacked when it finds an NID identical to its own in the forged node (i.e., a node that has been using the forged NID from the beginning).

[0088] From then on, the NES attached to the forged node will continue to transmit an error frame every time the node transmits, blocking the node's transmission, increasing its TEC, and causing the node to enter a bus-off state.

[0089] In the present invention, when a malicious data frame is detected on the CAN bus, the intrusion detection system can defend against the malicious attack by incrementing the error counter of the internal attacking node and isolating it from the bus.

[0090] FIG. 6 is a flowchart of a method for dealing with a hacked node at a CAN bus physical layer in accordance with an embodiment of the present invention.

[0091] The method for dealing with a node hacked in the CAN bus physical layer according to the present embodiment may be performed in substantially the same configuration as the system 1 of Fig. 1. Therefore, the same components as those in the system 1 of Fig. 1 are given the same reference numbers and redundant descriptions will be omitted.

[0092] In addition, the method for dealing with a node that has been hacked at the CAN bus physical layer according to this embodiment can be executed by software (application) for dealing with a node that has been hacked at the CAN bus physical layer.

[0093] In the present invention, when a malicious data frame is detected on the CAN bus, the intrusion detection system defends against the malicious attack by incrementing the error counter of the internal attacking node and isolating it from the bus.

[0094] 6, in the method for dealing with a hacked node in the CAN bus physical layer according to the present embodiment, a unique ID (Node ID) NID is set for each of a number of nodes connected to a CAN (Controller Area Network) bus line (step S10). When transmitting a data frame, the lowest 4 bits of a message ID field can be set to the NID value.

[0095] If at least one of a node using a forged NID, a node using another NID, and a node using a non-existent NID is found, it is determined to be an error frame (step S20).

[0096] Each node is configured with its own NID, so if a node using a forged NID is discovered, the node with the spoofed NID can detect the hack.

[0097] On the other hand, if a node using a different NID or a node using a non-existent NID is discovered, the Intrusion Detection System (IDS) can detect the hacking.

[0098] Each time an error frame occurs, the transmit error counter (TEC) and the receive error counter (REC) of the transmitting node and the receiving node are incremented (step S30).

[0099] When an error frame occurs, the TEC of the transmitting node is increased by 8, and in the case of the receiving node, the REC of the node that generated the error frame first is increased by 8, and the REC of the other nodes is increased by 1.

[0100] On the other hand, each time a message is successfully transmitted, the TEC and REC counts of the sending and receiving nodes can be decremented.

[0101] If the TEC or REC exceeds a set threshold (step S40), the node is turned off and shut down (step S50). For example, if the TEC or REC of a node exceeds 256, the node can be isolated.

[0102] According to this method for dealing with a node hacked at the CAN bus physical layer, when a malicious data frame is detected on the CAN bus, the intrusion detection system defends against the malicious attack by incrementing the error counter of the internal attacking node and isolating it from the bus.

[0103] It is a hardware method that sets the IDS (Intrusion Detection System) and the NID (Node ID) of the CAN (Controller Area Network) controller, and can immediately respond to any network attacks that may occur on the CAN bus, thereby improving user safety and enhancing security performance.

[0104] The following describes the results of a simulation to verify the performance of the present invention. In this invention, an NES was attached to an existing CAN controller, designed in Verilog HDL, and simulated with ModelSim. The NIDs of the four CAN nodes were set to 4, 8, 16, and 32, and since sniffing does not have an immediate negative effect, the simulation was performed only for two types of attacks: general attacks and spoofing attacks.

[0105] Figure 7 shows how to deal with a general attack, where the node operates normally at first, and after a certain period of time the IDS detects the occupied node 4 (NID=32), and every time node 4 transmits a data frame the IDS generates an error frame and increases the TEC of node 4. After that, every time node 4 transmits the IDS continues to increase the TEC, causing the bus to be turned off.

[0106] Figure 8 shows how to deal with a spoofing attack, where the occupied node 4 (NID=32) pirates node 1 (NID=4) to send a data frame. However, since node 1 senses its own NID even though it is not transmitting, it recognizes this as an attack, generates an error frame, and increases node 4's TEC. From then on, every time node 4 pirates node 1 (NID=4), node 1 continues to increase its TEC, causing the bus to be turned off.

[0107] In a CAN bus, even if one of the nodes is hacked and transmits a malicious data frame, it is difficult to identify which node is the problem. In this invention, we propose a method to modify an existing CAN controller to deal with various attack scenarios that may occur on a CAN bus.

[0108] The method for dealing with a node that has been hacked in the CAN bus physical layer may be implemented as an application or may be implemented as program instructions that can be executed by various computer components and recorded on a computer-readable recording medium. The computer-readable recording medium may include program instructions, data files, data structures, and the like, either alone or in combination.

[0109] The program instructions recorded on the computer-readable recording medium may be those specially designed and constructed for the present invention, or they may be of the type commonly known and available to those skilled in the computer software art.

[0110] Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and hardware devices specifically configured to store and execute program instructions, such as ROM, RAM, flash memory, etc.

[0111] Examples of program instructions include not only machine code, such as produced by a compiler, but also high level language code that may be executed by a computer using an interpreter, etc. The hardware devices may be configured to operate with one or more software modules to perform the processes of the present invention, and vice versa.

[0112] FIG. 9 is a block diagram of a physical layer security device through automatic node ID configuration on a CAN bus according to an embodiment of the present invention.

[0113] The physical layer security device (10, hereinafter referred to as the device) through automatic node ID setting in a CAN bus according to the present invention proposes physical layer security that automatically assigns a unique ID to each node when the CAN bus is booted.

[0114] 9, the device 10 according to the present invention includes an auto-ID setting unit 110, an NID storage unit (not shown), a state machine 180, and a transmission buffer 140. In one embodiment, the device 10 according to the present invention may be implemented in a CAN controller using Verilog HDL to implement the proposed technique. The CAN controller may be implemented in a CAN system or in a node on a CAN bus.

[0115] In another embodiment, the device 10 of the present invention may further include at least one of a Clock DivIDer 120 , a Bit Time Logic 130 , a Receive FIFO Buffer 150 , an Acceptance Filter 160 and a CRC 170 .

[0116] The device 10 of the present invention may be installed and executed with software (application) for performing physical layer security through automatic node ID configuration on the CAN bus, and configurations of the automatic ID configuration unit 110, the NID storage unit (not shown), the state machine 180 and the transmission buffer 140 may be controlled by the software for performing physical layer security through automatic node ID configuration on the CAN bus executed in the device 10.

[0117] The device 10 may be a separate terminal or a module that is a part of a terminal. The auto ID setting unit 110, the NID storage unit (not shown), the state machine 180 and the transmission buffer 140 may be formed as an integrated module or may be composed of one or more modules. However, on the contrary, each component may be composed of a separate module.

[0118] The apparatus 10 may be mobile or fixed, may be in the form of a server or an engine, and may be referred to by other terms such as a device, an apparatus, a terminal, user equipment (UE), a mobile station (MS), a wireless device, a handheld device, etc.

[0119] The device 10 can execute or create various software based on an operating system (OS), i.e., a system. The operating system is a system program that allows software to use the device's hardware, and can include mobile computer operating systems such as Android OS, iOS, Windows Mobile OS, Bada OS, Symbian OS, and Blackberry OS, as well as computer operating systems such as Windows series, Linux series, Unix series, MAC, AIX, and HP-UX.

[0120] In this invention, we deal with CAN bus attacks as shown in Figure 10. In this invention, we use hardware called IDS (Intrusion Detection System) and NES (Node Expulsion System). IDS analyzes the contents of data frames to determine whether the currently transmitting node is a hacked node. NES is a block that performs the function of expelling a specific node that the IDS has indicated as a hacked node from the CAN bus, a function that is not available in general CAN buses.

[0121] The IDS constantly monitors the CAN bus, and if a node transmits a malicious data frame, it analyzes the data content and detects that the node has been hacked. From then on, whenever the hacked node transmits, the NES generates an error frame regardless of the data content to prevent the transmission.

[0122] The hacked node will continuously increase the transmission error count every time it transmits data, and will go through an error passive state and then a bus off state, making further transmission impossible. In the present invention, a unique ID is assigned to every node in the CAN bus as shown in Figure 10.

[0123] If a unique ID is assigned to each CAN controller at the time of production, the number of bits in the unique ID will increase excessively, and if unique IDs are assigned after all nodes are installed in the vehicle, the unique ID must be reassigned every time a part is replaced. In order to solve these problems, the present invention proposes a method to automatically assign a unique ID to each node when the CAN bus is booted.

[0124] When a node connected to a CAN (Controller Area Network) bus line is booted up, the automatic ID setting unit 110 starts counting a clock and transmits a data frame when the count reaches a threshold value. Thereafter, the TID of a node that receives an Ack signal transmitted from an IDS that transmitted a data frame with a TID set therein is set to a Node ID (NID), which is a unique ID of each node.

[0125] The NID storage unit (not shown) stores the NID of a node that detects a recessive signal during a clock count operation or detects a recessive signal before completing the clock count and generating a Tx (Transmitter) signal.

[0126] When the CAN bus goes into an idle state, the state machine 180 starts counting the clock again, and when the clock count reaches a set value, it sets the TID to the NID that last appeared on the bus line plus 1 and transmits a data frame.

[0127] After setting the NIDs of all the nodes connected to the bus line, the transmission buffer 140 transmits an error frame via IDS to notify each node that the NID setting has been completed, and allows each node to start communication.

[0128] In the present invention, when all nodes are booted up, they automatically set the NID (Node ID), which is a unique ID of the node. The method of setting the NID utilizes the fact that "all oscillators have an error." When a node connected to a CAN bus is booted up, it starts counting the clock and when it reaches a sufficiently large value (for example, it sets a sufficiently large value to 16'hFFFF), it sets (1) TID (Temporary ID) as shown in Figure 10 and transmits a data frame. After the data frame is transmitted, a recessive signal appears on the CAN bus.

[0129] (2) If a node detects a recessive signal during clock count operation, or detects a recessive signal before generating a Tx (Transmitter) signal after completing the clock count, it initializes the clock count since another node has used the CAN bus first, waits for the communication to end, and memorizes the NID that appears on the bus.

[0130] (3) The IDS that sent the data frame with the TID set sends an Ack signal. (4) The node that received the Ack signal from the IDS sets the TID to the NID. When the CAN bus goes into an idle (IDLE) state, the clock count starts again, and when the clock count reaches the set value, the TID is set to the NID that last appeared on the bus plus 1, and a data frame is sent.

[0131] (5) After repeating this process to set the NIDs of all nodes connected to the bus, the IDS sends an error frame to inform each node that the NID setting is complete, and the node begins communication.

[0132] For example, when the CAN bus is booted, each node's unique ID is set based on the clock count. As shown in Figure 2, all nodes start counting the clock as soon as they are booted. Since there is a deviation in the clock oscillator circuit, if the clock count of a certain node reaches 16'hFFFF first, the node sets its ID to 1 at that moment and transmits a data frame.

[0133] At this time, if an Ack signal is received from the IDS, the address set is set as the unique ID. On the other hand, if the Rx signal is detected as recessive while the clock count is increasing, the clock count is initialized and the node waits. At this time, each node stores the number of times the clock count has been initialized.

[0134] When the bus goes into an idle (IDLE) state, the clock count starts again, and at the moment the clock count reaches 16'hFFFF, the clock count initialization count plus 1 is calculated, and when an Ack signal is received from the IDS, this calculated value is set as the unique ID.

[0135] In one embodiment, the node whose clock count reaches 16'hFFFF first becomes ID=1, the clock counts of the other nodes are initialized, and the node whose clock count reaches 16'hFFFF first becomes ID=2 among the remaining nodes, and the clock counts of the other nodes are similarly initialized. In this manner, the addresses of all the nodes connected to the bus are set.

[0136] In the present invention, in order to generate a difference in clock counts using minute errors in the oscillator to set the unique IDs of the nodes, the clock counts must be performed sufficiently many times, but there is a drawback in that the time required to set the unique IDs of the nodes connected to the CAN bus increases if the clock counts are performed many times.

[0137] On the other hand, if the clock count is shortened to shorten the time to set the unique ID, the same unique ID may be set because there is no difference in the clock counts of the nodes. Therefore, there is a trade-off between the clock count and the time to set the unique ID.

[0138] The problem of having the same unique ID set can be discovered after the nodes start communicating. It can be broadly divided into two cases: when nodes with the same unique ID set send data at the same time, and when one of the nodes with the same unique ID set sends data. The methods to solve the discovered problem are as follows.

[0139] B. When sending data simultaneously

[0140] When nodes with the same unique ID set transmit data at the same time, they may broadly be classified into two cases: when they transmit the same data, and when they transmit different data.

[0141] When nodes with the same unique ID set transmit the same data at the same time, both nodes achieve the purpose of transmitting the data, so no problem occurs.

[0142] Referring to FIG. 11, (1) when node 1 and node 4, which are set with the same NID, simultaneously transmit different data from each other, (2) a bit error occurs during the process of transmitting the data field.

[0143] Looking more closely at the process by which a bit error occurs in the data field, as shown in Figure 12, a bit error occurs when node 1 pushes it while sending the 8th bit of the data field of node 4. Nodes 1 and 4, which were sending data frames, receive an error frame, so the TEC increases and the bus goes into an idle (IDLE) state, at which point node 1 and 4 send the data frame again.

[0144] Then, in the process of transmitting the eighth bit of the data field of node 4 again, it is pushed by node 1, causing a bit error. Using this phenomenon, if a bit error occurs in the data field when a node transmits a data frame, it remembers at which bit in the data field the error occurred, and (3) if a bit error occurs in the same place three times in a row, it determines that the same NID has been set without transmitting an error frame, and changes the NID.

[0145] The reason why it is determined that the same NID is set when a bit error occurs in the same place in the data field three times in a row is as follows: The probability of a bit error occurring due to noise or a CAN bus problem is 3.1 x 10 -9 However, the probability of a bit error occurring in the same place in three consecutive data fields is 29.8 × 10 -29This is because the number of iterations is very small. Also, if it is set to four or more, the TEC of normal nodes may increase unnecessarily.

[0146] B. When one of the nodes sends data

[0147] As shown in Figure 13, (1) when one of the nodes with the same unique ID is sending data, the node that is not sending data (2) generates an error in the process of receiving the arbitration field RTR data. Looking more closely at the process in which an error occurs in the arbitration field, as shown in Figure 14, node 1 is not in a transmitting state, but its own NID appears on the CAN bus, so it sends an error frame and increases REC.

[0148] Node 4, which is transmitting data, receives an error frame, so the TEC increases and the bus goes into an idle (IDLE) state. Node 4 then transmits a data frame again, causing an error when Node 1 receives the arbitration field RTR data again.

[0149] Taking advantage of this phenomenon, a node that does not transmit data when a node transmits a data frame will determine that the same NID has been set if its NID appears on the CAN bus (3) three times in a row, and will change its NID.

[0150] The reason why it is determined that the same NID has been set if its own NID appears on the CAN bus three times in a row is that the probability of a bit error occurring due to noise or CAN bus problems is 3.1 x 10 -9 However, the probability that your NID will appear in three consecutive arbitration fields is 29.8 × 10 -29 This is because the number of iterations is very small. Also, if it is set to four or more, the TEC of normal nodes may increase unnecessarily.

[0151] When sending a data frame, the set NID is filled in the lowest 4 bits of the message ID field, so the NID acts as a fingerprint, making it possible to identify which node is sending the data frame.

[0152] The bus configuration is an existing CAN bus with an additional IDS (Intrusion Detection System) connected. The IDS is an intrusion detection system, and the range of data that can be transmitted is preset using MID (Message ID) and DLC (Data Length Code) as shown in the table in Figure 15, and is updated in advance in the IDS and nodes.

[0153] Figure 16 shows the process of dealing with an attack where a hacked node sends malicious data frames to overload the CAN bus or cause other nodes to malfunction. The IDS continuously monitors the CAN bus, and when (1) a malicious node sends MID=0x102, DLC=4b0010, Data=0x2000, (2) the IDS sees that this differs from the previously updated table and determines that the node sending the current data frame is the hacked node.

[0154] (3) The IDS that detects the hacked node will send an error frame, and (4) the malicious node that receives the error frame while sending a data frame will have its TEC increased. Another attack, which is to steal other normal nodes, cannot occur because every node has a unique NID that cannot be changed.

[0155] Since nodes on a CAN bus do not have addresses, even if a node is hacked and transmits a malicious data frame, it is difficult to identify which node has been hacked. In this invention, an existing CAN controller is modified to automatically determine a unique ID for each node every time the CAN bus boots, thereby providing a safe defense against attacks inside the CAN bus.

[0156] FIG. 17 is a flowchart of a method for physical layer security through automatic node ID configuration in a CAN bus according to one embodiment of the present invention.

[0157] The method for physical layer security through automatic node ID setting in a CAN bus according to the present embodiment may be performed in a configuration substantially similar to that of the device 10 in Fig. 9. Therefore, the same components as those of the device 10 in Fig. 9 are given the same reference numbers and redundant description will be omitted.

[0158] In addition, the method for physical layer security through automatic node ID configuration on a CAN bus according to the present embodiment may be implemented by software (application) for performing physical layer security through automatic node ID configuration on a CAN bus.

[0159] The present invention proposes physical layer security that automatically assigns unique IDs to individual nodes when the CAN bus is booted.

[0160] Referring to FIG. 17, in the method for physical layer security through automatic node ID setting on a CAN bus according to this embodiment, when a node connected to a CAN (Controller Area Network) bus line is booted up, a clock count is started and when a threshold value (e.g., 16'hFFFF) is reached, a Temporary ID (TID) is set and a data frame is transmitted (step S100).

[0161] A node that detects a recessive signal during a clock count operation or detects a recessive signal before completing the clock count and generating a Tx (Transmitter) signal stores an NID (Node ID), which is a unique ID of each distinct node appearing on the bus (step S200).

[0162] At this time, the node initializes the clock count and waits for the communication to end. When sending a data frame, the set NID can be entered in the lowest 4 bits of the message ID field.

[0163] The TID of a node that receives an Ack signal transmitted from the IDS that transmitted the data frame with the TID set therein is set as the NID (step S300).

[0164] When the CAN bus becomes idle (IDLE), the clock count is started again, and when the clock count reaches a set value, the TID is set to the NID last appearing on the bus line plus 1, and a data frame is transmitted (step S400).

[0165] After repeatedly performing the above steps (steps S100 to S400) to set the NIDs of all nodes connected to the bus line, an error frame is sent via the IDS to inform each node that the NID setting is complete, and the node starts communication (step S500).

[0166] If nodes with the same NID send different data at the same time, a bit error occurs in the data field when sending a data frame. When a bit error occurs, the bit in the data field where the error occurred is stored.

[0167] Also, if a bit error occurs in the same place a preset number of times (for example, three times) in succession, it is determined that the same NID has been set without transmitting an error frame, and the NID is changed.

[0168] If one of the nodes with the same NID sends data, the node that is not sending data will generate an error in the process of receiving the Arbitration field RTR data.

[0169] When a node transmits a data frame, a node that is not transmitting data checks whether its NID appears on the CAN bus a preset number of times (e.g., three times) in succession. If its NID appears a preset number of times in succession, it determines that the same NID has been set and changes its own NID.

[0170] The following describes the results of a simulation to verify the performance of the present invention. In the present invention, an NES was added to an existing CAN controller and implemented using Verilog HDL, and the simulation was performed using ModelSim provided by IDEC (IC Design Education Center).

[0171] The simulation confirmed two situations: one in which the CAN bus is booted and automatically assigns unique node addresses, and the other in which an internal attack is launched and defenses are put in place against it.

[0172] Figure 18 shows the simulation result of automatically assigning unique addresses to nodes while booting the CAN bus. First, booting starts and each node increases its clock count.

[0173] 18, the auto_con2 node, which has the first clock count of 16'hFFFF, is assigned a unique ID of 1, and the auto_con1 and auto_con3 nodes initialize their clock counts as the Rx signal is detected as recessive during the clock count. At this time, the auto_con1 and auto_con3 nodes store the number of times the clock count has been initialized (currently 1).

[0174] When the bus becomes idle, the clock count starts again. In this manner, the auto_con1 node and then the auto_con3 node complete the unique ID assignment. When the bus has been idle for a sufficient period of time, all nodes determine that the ID assignment process is complete and begin to send and receive data frames while starting their actual operations.

[0175] Figure 19 shows the results of a simulation in which an internal attack begins after each node's unique ID is set, and countermeasures are taken. In this simulation, it is assumed that the IDs of four CAN nodes are set to 4, 8, 16, and 32. In Figure 19, the node initially operates normally, but after a certain period of time, the IDS detects that node ID 4 has been hacked by looking at the data frame data.

[0176] From then on, every time the internal attack node with ID 4 transmits a data frame, it generates an error frame and increases the TEC of the node. This operation is performed every time the internal attack node with ID 4 transmits a data frame, and the TEC of the node continues to increase, eventually going through the error passive state and then the bus off state.

[0177] According to the physical layer security method through automatic node ID setting in the CAN bus of the present invention, a unique ID is automatically assigned to each node at every booting in the CAN bus to distinguish each node. Since the present invention assigns a unique ID (Node ID) at every booting, it can be easily applied regardless of part replacement and can greatly reduce the number of bits of the unique ID.

[0178] In addition, by setting the IDS and the NID of the CAN controller, it is possible to deal with all network attacks that may occur on the CAN bus, thereby improving user safety and enhancing security performance.

[0179] The physical layer security method through automatic node ID configuration in a CAN bus may be implemented in an application or in the form of program instructions that can be executed by various computer components and recorded on a computer-readable recording medium. The computer-readable recording medium may include program instructions, data files, data structures, and the like, either alone or in combination.

[0180] The program instructions recorded on the computer-readable recording medium may be those specially designed and constructed for the purposes of the present invention, or they may be of the type commonly known and available to those skilled in the computer software art.

[0181] Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tapes, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and hardware devices specifically configured to store and execute program instructions, such as ROM, RAM, flash memory, etc.

[0182] Examples of program instructions include not only machine code, such as produced by a compiler, but also high level language code that may be executed by a computer using an interpreter, etc. The hardware devices may be configured to operate with one or more software modules to perform the processes of the present invention, and vice versa.

[0183] Although the present invention has been described with reference to the embodiments, it will be understood that those skilled in the art can make various modifications and variations of the present invention without departing from the spirit and scope of the present invention as set forth in the claims below. [Industrial Applicability]

[0184] In most automobiles today, the main electronic control units (ECUs) inside the vehicle are connected in a bus topology using the Controller Area Network (CAN) communication protocol. The present invention identifies malicious nodes that occur on the CAN bus and responds quickly to prevent accidents, so it can be conveniently used in automobile ECUs and other devices that use CAN communication. [Explanation of symbols]

[0185] 1: System for dealing with nodes hacked at the CAN bus physical layer 10: Physical layer security device through automatic node ID configuration on CAN bus

Claims

1. Setting unique IDs (Node IDs) (NIDs) for a plurality of nodes connected to a Controller Area Network (CAN) bus line; determining that the frame is an error frame when at least one of a node using a forged NID, a node using another NID, and a node using a non-existent NID is found; incrementing a Transmit Error Counter (TEC) and a Receive Error Counter (REC) of a transmitting node and a receiving node each time the error frame occurs; and disconnecting a node whose TEC or REC is greater than a preset threshold by turning off the bus; The step of setting NIDs, which are unique IDs, for each of the plurality of nodes connected to the CAN bus line, includes: A method for dealing with a node that has been hacked at the physical layer of a CAN bus, comprising setting the lower 4 bits of a message ID field to an NID value when transmitting a data frame.

2. A number of nodes connected to a CAN (Controller Area Network) bus line, each having a unique ID (Node ID) (NID); An IDS (Intrusion Detection System) that analyzes the contents of the data frame loaded onto the CAN bus line to determine whether it is a hacked node; a counter that increments the TEC (Transmit Error Counter) and REC (Receive Error Counter) counts of the sending node and the receiving node each time an error frame occurs and decrements the TEC and REC counts of the sending node and the receiving node each time a message is successfully transmitted; and a Node Expulsion System (NES) that is installed in each of the plurality of nodes and the IDS and that shuts off a node whose TEC or REC is greater than a preset threshold value; A system for dealing with a node hacked at a CAN bus physical layer, characterized in that the NID of each node is set by the lower 4 bits of a message ID field when transmitting a data frame.

3. When a node connected to a CAN (Controller Area Network) bus line is booted up, a clock count is started, and when a threshold value is reached, a temporary ID (TID) is set and a data frame is transmitted; A node that detects a recessive signal during a clock count operation or detects a recessive signal before completing the clock count and generating a Tx (Transmitter) signal stores a Node ID (NID) that is a unique ID of each different node that appears on the bus; A step of setting the TID of a node that receives an Ack signal transmitted from the IDS that transmitted the data frame with the TID set in the NID; and A physical layer security method through automatic node ID setting on a CAN bus, comprising: starting a clock count again when the CAN bus is in an idle (IDLE) state, and setting a TID to a value obtained by adding 1 to the NID that last appeared on the bus line and transmitting a data frame when the clock count reaches a set value.

4. 4. The physical layer security method according to claim 3, further comprising the step of: when the NIDs of all nodes connected to the bus line are set by repeatedly performing the steps, transmitting an error frame via an IDS to each node to inform that the NID setting is completed, and the node starts communication.

5. 5. The physical layer security method through automatic node ID setting on a CAN bus according to claim 4, wherein the set NID is written in the lowest 4 bits of a message ID field when a data frame is transmitted, and then transmitted.

6. When nodes with the same NID transmit different data at the same time, a bit error occurs in a data field when transmitting a data frame; When a bit error occurs, storing the bit number of the data field at which the error occurs; and 6. The physical layer security method through automatic node ID setting on a CAN bus according to claim 5, further comprising: determining that the same NID has been set without transmitting an error frame when a bit error occurs at the same location a preset number of times in succession, and changing the NID.

7. generating an error when one of the nodes having the same NID transmits data, and when a node not transmitting data receives the arbitration field RTR data; When a node transmits a data frame, a node that does not transmit data checks whether its NID appears on the CAN bus a preset number of times in succession; and 6. The physical layer security method through automatic node ID configuration on a CAN bus according to claim 5, further comprising: determining that the same NID has been configured and changing the NID of the node if the node's own NID appears consecutively a preset number of times.

8. The step of storing a Node ID (NID), which is a unique ID of each different node appearing on the bus, comprises:

4. The method for physical layer security through automatic node ID configuration on a CAN bus according to claim 3, further comprising the step of: initializing a clock count and waiting for communication to end.

9. The step of setting a TID (Temporary ID) and transmitting a data frame comprises:

4. The method of claim 3, wherein the threshold value of the clock count is set to 16'hFFFF.

10. 4. A computer readable storage medium having recorded thereon a computer program for performing the method for physical layer security through automatic node ID configuration in the CAN bus according to claim 3.

11. an automatic ID setting unit which starts a clock count when a node connected to a CAN (Controller Area Network) bus line is booted up, sets a TID (Temporary ID) and transmits a data frame when a clock count reaches a threshold value, and sets the TID of a node which receives an Ack signal transmitted from an IDS which transmitted the data frame with the TID set, to an NID (Node ID), which is a unique ID of each node; an NID storage unit for storing an NID of a node that has detected a recessive signal during a clock count operation or has detected a recessive signal before completing the clock count and generating a Tx (Transmitter) signal; A state machine that starts counting the clock again when the CAN bus goes into an idle state, and when the clock count reaches a preset value, sets the TID to the NID last appearing on the bus line plus 1 and transmits a data frame; and A physical layer security device through automatic node ID setting on a CAN bus, comprising: a transmission buffer that, when setting the NIDs of all nodes connected to a bus line, transmits an error frame via an IDS to notify each node that the NID setting is completed and allows the node to start communication.

12. The physical layer security device through automatic node ID setting in the CAN bus is implemented on a CAN controller, and when nodes with the same NID set transmit different data at the same time, if a bit error occurs in a data field when transmitting a data frame, the device stores the bit in the data field where the error occurs, and when a bit error occurs in the same place a preset number of times in succession, the device determines that the same NID has been set without transmitting an error frame, and changes the NID.

12. The physical layer security device through automatic node ID configuration on a CAN bus according to claim 11, wherein when one of the nodes set with the same NID transmits data, if an error occurs in a process in which a node not transmitting data receives Arbitration Field RTR data, when the node transmits a data frame, the node not transmitting data checks whether its NID appears consecutively a preset number of times on the CAN bus, and if its NID appears consecutively a preset number of times, determines that the same NID has been set and changes its NID.

Citation Information

Patent Citations

  • Communications system

    JP2005341386A

  • Communication system

    JP2014011621A

  • Failure diagnosis device and electronic control device

    JP2016055673A

  • Vehicle-mounted network system, invalidity detection electronic control unit, and invalidity detection method

    WO2015159486A1