WO2022085057A1 - 中継装置、通信ネットワークシステム及び通信制御方法 - Google Patents

中継装置、通信ネットワークシステム及び通信制御方法 Download PDF

Info

Publication number
WO2022085057A1
WO2022085057A1 PCT/JP2020/039304 JP2020039304W WO2022085057A1 WO 2022085057 A1 WO2022085057 A1 WO 2022085057A1 JP 2020039304 W JP2020039304 W JP 2020039304W WO 2022085057 A1 WO2022085057 A1 WO 2022085057A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
data
communication network
communication
relay device
Prior art date
Application number
PCT/JP2020/039304
Other languages
English (en)
French (fr)
Inventor
清 名取
孝 松本
Original Assignee
日産自動車株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 日産自動車株式会社 filed Critical 日産自動車株式会社
Priority to US17/633,053 priority Critical patent/US20230327907A1/en
Priority to CN202080053939.8A priority patent/CN114667716A/zh
Priority to PCT/JP2020/039304 priority patent/WO2022085057A1/ja
Priority to JP2022504680A priority patent/JP7151931B2/ja
Priority to EP20945715.9A priority patent/EP4231594A4/en
Publication of WO2022085057A1 publication Critical patent/WO2022085057A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Definitions

  • the present invention relates to a relay device, a communication network system, and a communication control method for communicating data via a communication network.
  • Patent Document 1 relays communication between a plurality of ECUs (Electronic Control Units) that control in-vehicle devices, an in-vehicle network such as CAN (Controller Area Network) that connects each ECU so that they can communicate with each other, and an ECU.
  • ECUs Electronic Control Units
  • An in-vehicle network system including a gateway device is disclosed. This gateway device is multiple in the payload of the Ethernet data frame in order to transmit the data frame from the ECU connected to the CAN to the ECU connected to the Ethernet (registered trademark) that uses a communication protocol different from CAN. Stores the CAN data frame of.
  • the plurality of CAN data frames stored in the payload include a DLC indicating the length of the data in each CAN frame.
  • the gateway device receives the Ethernet data frame and can individually recognize the CAN data frame by specifying the delimiter of a plurality of CAN data frames from the DLC in the payload of the Ethernet data frame.
  • the data arranged at the rear position in the Ethernet data frame is erroneously recognized as the CAN data frame.
  • An object to be solved by the present invention is to provide a relay device, a communication network system, and a communication control method for preventing erroneous recognition of frames when data is communicated between communication networks using different communication protocols. ..
  • the second frame has a first frame, a first data ID, and unique data stored in a predetermined storage area located behind the first frame, and the repeater is a repeater.
  • the first frame recognition process is not performed on the data in the storage area. The above problem is solved by recognizing the frame.
  • FIG. 1 is a configuration diagram of an in-vehicle communication network system to which a relay device, a communication network system, and a communication control method according to the present invention are applied.
  • FIG. 2 is an explanatory diagram showing the configuration of a CAN data frame.
  • FIG. 3 is an explanatory diagram showing the configuration of the CAN FD data frame.
  • FIG. 4 is a block diagram of DM.
  • FIG. 5 is an explanatory diagram showing the configuration of the CAN FD data frame.
  • FIG. 6 is an explanatory diagram showing the configuration of the CAN FD data frame.
  • FIG. 7 is a sequence chart showing a procedure for transmitting a CAN frame from a communication network connected to the CAN bus to a communication network connected to the CAN bus.
  • FIG. 8 is an explanatory diagram showing a procedure for transmitting a CAN frame from a communication network connected to the CAN bus to a communication network connected to the CAN bus.
  • the vehicle-mounted communication network system CNW is a network system in which a plurality of communication networks using different communication protocols such as CAN, CAN FD, and Ethernet are mixed.
  • CAN FD is a communication protocol having upward compatibility with CAN, and the amount of data communication (communication speed) per unit time is larger than that of CAN.
  • Ethernet is a communication network used for LAN (Local Area Network) and the like, and the amount of data communication per unit time is larger than that of CAN FD.
  • FIG. 1 is a block diagram showing a configuration of an in-vehicle communication network system CNW according to the present embodiment.
  • the in-vehicle communication network system CNW includes a first communication network 1, a second communication network 2, a third communication network 3, a fourth communication network 4, a fifth communication network 5, and a sixth. It includes a communication network 6 and a CGW (Central Gateway) 7 connected to the first communication network 1 to the sixth communication network 6.
  • the first communication network 1 to the sixth communication network 6 constitute a plurality of control groups divided according to the basic configuration of the vehicle. This control group is also called a domain.
  • the domain includes a power train domain that controls the engine, a chassis domain that controls the steering mechanism, a body domain that controls the power window, and autonomous driving control.
  • ADAS Advanced Driver-Assistance System
  • the first communication network 1 to the sixth communication network 6 correspond to an example of the first communication network and the second communication network of the present invention.
  • the number of communication networks constituting the in-vehicle communication network system CNW is not limited to four.
  • the first communication network 1 includes an ECU 11, an ECU 12, and an ECU 13.
  • the ECUs 11 to 13 are connected to the CGW 7 via the CAN bus 14 in which data communication is performed according to the CAN communication protocol.
  • the ECUs 11 to 13 are electronic control devices that control in-vehicle devices mounted on the vehicle.
  • the ECUs 11 to 13 include a controller and a communication circuit.
  • the controller includes a CPU, a ROM in which a control program executed by the CPU is stored, a RAM used as a work area of the control program, and the like.
  • the controller functions as an ECU by executing a control program by the CPU.
  • the communication circuit is controlled by the controller and communicates between the controller and the CAN bus 14.
  • In-vehicle devices such as sensors or actuators (not shown) are connected to ECUs 11 to 13.
  • the ECUs 11 to 13 acquire sensor information indicating the detection result by the sensor from the connected sensor, and a CAN data frame (hereinafter, also referred to as a CAN frame) in which control information including the acquired sensor information is stored. (Corresponding to the "first frame" of the invention) is generated.
  • the CAN frames generated by the ECUs 11 to 13 are transmitted to the CGW 7 via the CAN bus 14. Further, each of the ECUs 11 to 13 receives a CAN frame from the CGW 7 via the CAN bus 14, and controls an in-vehicle device such as an actuator based on the control information stored in the received CAN frame.
  • the ECUs 11 to 13 correspond to an example of the first electronic control device and the second electronic control device of the present invention.
  • the second communication network 2 includes an ECU 21, an ECU 22, and an ECU 23.
  • the ECUs 21 to 23 are connected to the CGW 7 via the CAN bus 24 in which data communication is performed according to the CAN communication protocol. Since the ECUs 21 to 23 and the CAN bus 24 of the second communication network 2 have the same configurations as the ECUs 11 to 13 and the CAN bus 14 of the first communication network 1, detailed description thereof will be omitted.
  • the third communication network 3 includes a DM (Domain Master) 31 and an ECU 32, an ECU 33, and an ECU 34.
  • the DM 31 is connected to the CGW 7 via the FD bus 35 in which data communication is performed according to the communication protocol of CAN FD.
  • the ECUs 32 to 34 are connected to the DM 31 via the FD bus 36 in which data communication is performed according to the communication protocol of CAN FD.
  • the ECUs 32 to 34 are electronic control devices that control in-vehicle devices mounted on the vehicle, like the ECUs 11 to 13 of the first communication network 1, and include a controller and a communication circuit.
  • the ECUs 32 to 34 acquire sensor information indicating the detection result by the sensor from the connected sensor, and a CAN FD data frame (hereinafter, also referred to as an FD frame) in which control information including the acquired sensor information is stored. (Corresponding to the "second frame" of the present invention) is generated.
  • the FD frames generated by the ECUs 32 to 34 are transmitted to the DM 31 via the FD bus 36.
  • each of the ECUs 32 to 34 receives an FD frame from the DM 31 via the FD bus 36, and controls an in-vehicle device such as an actuator based on the control information stored in the received FD frame.
  • the ECUs 32 to 34 correspond to an example of the first electronic control device and the second electronic control device of the present invention.
  • the DM 31 is a repeater that relays communication between the CGW 7 and the ECUs 32 to 34, and is provided with a controller and a communication circuit like the ECU.
  • the DM 31 communicates the FD frame with the ECUs 32 to 34 via the FD bus 36. Further, the DM 31 communicates between the CGW 7 and the FD frame via the FD bus 35.
  • DM31 corresponds to an example of the repeater of the present invention.
  • the fourth communication network 4 includes a DM 41, an ECU 42, an ECU 43, and an ECU 44.
  • the DM 41 is connected to the CGW 7 via the FD bus 45 in which data communication is performed according to the communication protocol of CAN FD.
  • the ECUs 42 to 44 are connected to the DM 41 via the FD bus 46 in which data communication is performed according to the communication protocol of the CAN FD.
  • the DM41, ECUs 42 to 44, and FD buses 45, 46 of the fourth communication network 4 have the same configurations as the DM31, ECUs 32 to 34, and FD buses 35, 36 of the third communication network 3, and thus will be described in detail. Is omitted.
  • the fifth communication network 5 includes a DM 51, an ECU 52, an ECU 53, and an ECU 54.
  • the DM51 is connected to the CGW 7 via the FD bus 55 in which data communication is performed according to the communication protocol of the CAN FD.
  • the ECUs 52 to 54 are connected to the DM 51 via a CAN bus 56 in which data communication is performed according to the CAN communication protocol.
  • the ECUs 52 to 54 are electronic control devices that control in-vehicle devices mounted on the vehicle, like the ECUs 11 to 13 of the first communication network 1, and include a controller and a communication circuit.
  • the ECUs 52 to 54 acquire sensor information indicating the detection result by the sensor from the connected sensor, and generate a CAN frame in which the control information including the acquired sensor information is stored.
  • the CAN frame generated by the ECUs 52 to 54 is transmitted to the DM 51 via the CAN bus 56.
  • each ECU 52 to 54 receives a CAN frame from the DM 51 via the CAN bus 56, and controls an in-vehicle device such as an actuator based on the control information stored in the received CAN frame.
  • the ECUs 52 to 54 correspond to an example of the first electronic control device and the second electronic control device of the present invention.
  • the DM51 is a repeater that relays communication between the CGW 7 and the ECUs 52 to 54, and is provided with a controller and a communication circuit like the DM31 of the third communication network 3.
  • the DM51 communicates the CAN frame with the ECUs 52 to 54 via the CAN bus 56. Further, the DM51 communicates the CGW 7 with the FD frame via the FD bus 55.
  • the DM51 stores at least one CAN frame in the FD frame and transmits the CAN frame to the CGW 7.
  • the DM51 corresponds to an example of the repeater of the present invention.
  • the sixth communication network 6 includes a DM61, an ECU 62, an ECU 63, and an ECU 64.
  • the DM61 is connected to the CGW 7 via the FD bus 65 in which data communication is performed according to the communication protocol of CAN FD.
  • the ECUs 62 to 64 are connected to the DM 61 via the CAN bus 66 in which data communication is performed according to the communication protocol of CAN.
  • the DM61, ECUs 62 to 64, FD bus 65 and CAN bus 66 of the sixth communication network 6 have the same configurations as the DM51, ECUs 52 to 54, FD bus 55 and CAN bus 56 of the fifth communication network 5. Therefore, detailed explanation is omitted.
  • the CGW 7 is a repeater that relays data frames between the first to sixth communication networks 1 to 6, and is provided with a controller and a communication circuit like the DM31 and the like.
  • the CGW 7 communicates the CAN frame with the ECUs 11 to 13 via the CAN bus 14 of the first communication network 1. Further, the CGW 7 communicates the CAN frame with the ECUs 21 to 23 via the CAN bus 24 of the second communication network 2.
  • the CGW 7 communicates the DM 31 with the FD frame via the FD bus 35 of the third communication network 3. Further, the CGW 7 communicates between the DM 41 and the FD frame via the FD bus 45 of the fourth communication network 4.
  • the CGW 7 communicates the DM51 and the FD frame via the FD bus 55 of the fifth communication network 5.
  • the CGW 7 communicates the DM61 with the FD frame via the FD bus 65 of the sixth communication network 6.
  • the CGW 7 acquires the CAN frame from the FD frame and uses the acquired CAN frame as the ECUs 11 to 13 of the first communication network 1 or the second It is transmitted to ECUs 21 to 23 of the communication network 2 of.
  • the CAN frame includes a SOF (StartOfFrame) field, an ID (Identifier) field, an RTR (RemoteTransmissionRequest) field, a DLC (DataLengthCode) field, a data field, and a CRC. It is composed of a field, an ACK field, an EOF (End of Frame) field, and the like.
  • SOF StartOfFrame
  • ID Identifier
  • RTR RemoteTransmissionRequest
  • DLC DataLengthCode
  • a data field a data field
  • CRC CRC
  • It is composed of a field, an ACK field, an EOF (End of Frame) field, and the like.
  • the numerical value described in each field of FIG. 2 indicates the number of bits constituting each of the fields.
  • the SOF field indicates the beginning of the CAN frame.
  • CAN ID which is an identifier indicating the type of stored data in the data field.
  • the CAN ID is also referred to as a message ID.
  • communication arbitration is performed in which communication of CAN frames having a small value of CAN ID is prioritized.
  • the DLC field stores information indicating the size (data length) of the data in the subsequent data field.
  • the CRC field stores a cyclic redundancy check code used for detecting a communication error of a CAN frame.
  • a control information CD including sensor information acquired from a sensor connected to the ECU is stored in the data field.
  • the information included in the control information CD is not limited to the sensor information, but may be, for example, operation information requested by the driver.
  • the data field may include not only the control information CD but also an error detection code EC calculated based on the CAN ID and the control information CD by each ECU that generates a CAN frame.
  • the FD frame includes a SOF field, an ID field, an EDL (Extended Data Length) field, a BRS (Bit Rate Switch) field, an ESI (Error State Indicator) field, and a DLC field. It is composed of a data field, a CRC field, an ACK field, an EOF field, and the like.
  • the numerical value described in each field of FIG. 2 indicates the number of bits constituting each of the fields.
  • an EDL bit, a BRS bit, and an ESI bit are added to the CAN frame, and the data field is further expanded to 64 bytes.
  • a CAN FD ID which is an identifier indicating the type of stored data in the data field, is stored.
  • the CAN FD ID corresponds to the "second data ID" of the present invention.
  • control information is stored in the data field in the same manner as the CAN frame.
  • an FD frame is generated by the ECUs 32 to 34 connected to the FD bus 36 of the third communication network 3 and transmitted to the ECUs 42 to 44 connected to the FD bus 46 of the fourth communication network 4.
  • control information is stored in the data field of the FD frame in the same manner as in the CAN frame.
  • an ID indicating the type of control information for example, "001" is assigned to the CAN FD ID.
  • the FD frame is transmitted from the ECU connected to the CAN bus to the ECU via the FD bus
  • at least one CAN frame is stored in the data field.
  • the CAN FD ID is assigned an ID indicating that the CAN frame is stored in the data frame, for example, "002".
  • FIG. 4 shows various functional units configured by operating the DM51 CPU based on a control program.
  • the DM51 includes a storage unit 510, a communication unit 520, a counter 530, a data acquisition unit 540, a frame generation unit 550, a MAC verification unit 560, a counter value verification unit 570, and a frame recognition unit 580.
  • the other DMs 31, 41, and 61 have the same configuration
  • the CGW 7 has the same basic configuration as the DM51.
  • the storage unit 510 is composed of a memory such as a ROM, and stores a counter value 511 and a common key 512 used for dealing with a replay attack against an in-vehicle network system.
  • a replay attack will be described. Since the CGW 7 is connected in a state where it can communicate with an external device, in the in-vehicle communication network system CNW according to the present embodiment, in order to deal with a replay attack from the outside, a message authentication code (Message Authentication Code, hereinafter "" The validity of the data frame is verified using "MAC").
  • MAC message authentication code
  • a replay attack is an illegal operation on a device in the network by eavesdropping on the data frame flowing on the network, storing the contents, and transmitting the stored data frame or the modified data frame into the network. It is a cyber attack that causes.
  • the replay attack is performed by an external device connected to the CGW 7 via a network.
  • the communication unit 520 communicates with other ECUs and / or other DMs via CAN and CGW7.
  • the communication unit 520 confirms the ID of the data frame, and is related to the data frame having the predetermined ID, that is, the DM51 provided with the communication unit 520. Receive only data frames. Further, the communication unit 520 receives the data frame transmitted by the ECUs 52 to 54. Further, the communication unit 520 transmits the data frame generated by the frame generation unit 550 to the ECUs 52 to 54 or the CGW 7.
  • the counter 530 counts the number of times the data frame is transmitted to the CAN and increments the counter value.
  • the counter value is a value for ensuring the continuity of transmitted / received data (message), and is used for verifying the validity of the data in order to discard spoofed data or falsified data from a third party.
  • the counter 530 counts the number of times a data frame is transmitted by the ECU 11, DM31, etc., and CGW 7 in the in-vehicle network system. Therefore, the counters of ECU 11, DM31, etc., and CGW7 have the same counter value.
  • the counter value counted by the counter 530 is stored in the storage unit 510.
  • the data acquisition unit 540 acquires information from an in-vehicle device such as a sensor connected to the DM51.
  • the frame generation unit 550 generates control information including information acquired by the data acquisition unit 540, and generates a data frame transmitted by the communication unit 520 based on the generated control information. Specifically, the frame generation unit 550 sets the ID according to the type of information acquired by the data acquisition unit 540.
  • the frame generation unit 550 stores, for example, a table in which the sensor information and the CAN FD ID are associated with each other, and sets the CAN FD ID based on this table. In order for another DM31 or the like or the ECU 11 or the like to generate a CAN frame, an ID for the CAN frame is assigned.
  • the frame generation unit 550 receives from the ECUs 52 to 54 by the communication unit 520.
  • the CAN frame is stored in the data field of the FD frame, and a CAN FD ID indicating that the CAN frame is included in the data field is assigned.
  • the frame generation unit 550 has a storage unit 510 based on the CAN FD ID, the data included in the CAN FD data field, and the counter value 511 stored in the storage unit 510 in order to deal with the above-mentioned replay attack.
  • MAC is generated by the common key 512 stored in.
  • the common key 512 a common key is used in each ECU 11, each DM31 and the like, and CGW 7. Further, for the calculation of MAC, a method using a hash function (HMAC), a method using a block cipher algorithm (CMAC or the like), or the like is used.
  • HMAC hash function
  • CMAC block cipher algorithm
  • the frame generation unit 550 has a set CAN FD ID, control information including information acquired by the data acquisition unit 540, and / or a data frame received by the communication unit 520, and a counter value 511 stored in the storage unit 510. And a data frame is generated based on the generated MAC.
  • FIG. 5 shows an example of the configuration of the data frame generated by the frame generation unit 550.
  • the data frame includes an ID field 91 in which the CAN FD ID is stored and a data field 92 in which the CAN frame is stored.
  • the CAN frame, the counter value, and the MAC are stored in the data field 92.
  • FIG. 5 shows an example of an FD frame containing three CAN frames in a data field.
  • the frame configuration shown in FIG. 5 is a frame to which the ID of “002” is given among the FD frames of FIG. 3, and represents the frame structure when MAC is given to a part of the data field. ..
  • the illustration of fields such as EOF shown in FIG. 3 is omitted in FIG.
  • the ID field 91 includes CAN FD ID, DLC, and the like.
  • the DLC included in the ID field 91 indicates the data length of the data field 92, and indicates how many bytes of data are transmitted in a frame.
  • DLC is 1 byte for both CAN and CAN FD.
  • the DLC setting range is 0 to 8 bytes in the case of CAN, and 12, 16, 20, 24, 32, 48, or 64 bytes in the case of CAN FD with 8 bits or more.
  • the ID field 91 does not include information indicating the number of CAN frames included in the data field 92. Therefore, the number of CAN frames included in the data field 92 cannot be grasped only by the ID field 91.
  • the data field 92 includes a plurality of CAN frames, counter values, and MACs.
  • three CAN frames are stored in the data field 92.
  • the CAN frame includes an ID field 101 and a data field 102, and the ID field 101 includes a CAN ID and a DLC.
  • "100", "200", and “300” are assigned to each ID of the three CAN frames, and "100", "200", and “300” are assigned in the order of "100", "200", and "300” in the data field 92.
  • Three CAN frames are stored. Further, in the data field 92, a counter value and a MAC are stored at positions behind the plurality of CAN frames.
  • the counter value and MAC are data used for verifying the validity of a data frame, and are frame-specific data (unique data). Since the data capacity of the CAN frame is limited to a maximum of 8 bytes, the data frame of the CAN frame cannot store all the control information, the counter value, and the MAC. On the other hand, in the FD frame, the maximum data capacity is 64 bytes, so that the data frame of the FD frame can store the counter value and the MAC in addition to the control information and a plurality of CAN frames.
  • the MAC verification unit 560 is based on the MAC of the data frame received by the communication unit 520, and the validity of the data frame, that is, the received data frame is from another ECU 11 or the like in the in-vehicle network system 2, each DM31 or the like, and the CGW 7. Verify if it was sent. Specifically, the MAC verification unit 560 acquires an ID, control information, a counter value, and a MAC from the received data frame. The MAC verification unit 560 generates a verification MAC with the common key 412 stored in the storage unit 510 based on the acquired ID, the control information, and the counter value.
  • the MAC verification unit 560 compares the MAC acquired from the received data frame with the verification MAC, and if the acquired MAC and the verification MAC match, the received data frame is valid data. Is determined to be. When the MAC verification unit 560 determines that the received data frame is legitimate data, the MAC verification unit 560 outputs the received data frame to the counter value verification unit 570. Further, when the MAC verification unit 560 determines that the received data frame is invalid data, the MAC verification unit 560 discards the received data frame. In this way, since it is possible to detect and discard an invalid data frame using the MAC, it is possible to prevent a replay attack or the like against the in-vehicle network system 2. Although the CAN ID, control information, and counter value are used to generate the MAC, the MAC may be generated using any one or a combination of two of these three data.
  • the counter value verification unit 570 acquires the counter value from the received data frame and determines whether or not the continuity of the counter value is maintained. When the counter value verification unit 570 determines that the continuity is not maintained, the counter value verification unit 570 discards the received data frame. Then, after the MAC verification unit 560 and the counter value verification unit 570 determine that the received data frame has legitimate data, the DM 51 processes the data included in the data frame. For example, when an FD frame including a plurality of CAN frames as shown in FIG. 5 is received, the DM 51 executes a frame recognition process for each CAN frame, and the recognized CAN frame is used in the CAN communication protocol. Below, it is transmitted to each ECU 52 to 54.
  • the frame recognition unit 580 recognizes the CAN frame in the data field of the FD frame.
  • the CAN frame authentication identifies each frame stored in the data field 92.
  • FIG. 6 shows an example of the configuration of the CAN FD data frame, and is also a diagram for explaining frame authentication.
  • the data frame of FIG. 6 is the same as the data frame of FIG.
  • the frame recognition unit 580 recognizes that at least one CAN frame is stored in the data field by specifying the ID "002" from the ID field 101.
  • the frame recognition unit 580 reads data from the beginning of the CAN frame and identifies the CAN ID and DLC included in the ID field.
  • the frame recognition unit 580 can identify from the CAN ID that the CAN frame is stored in the FD frame.
  • the frame recognition unit 580 specifies that the CAN frame to which the ID "100" is assigned is stored and the DLC stored in the ID field.
  • the data length of the data field of the CAN frame can be set in the range of 0 to 8 bytes, but the frame recognition unit 580 can specify the data length of the data field from the DLC.
  • the frame recognition unit 580 can specify the frame delimiter that is the end of the CAN frame with the ID "100" (see arrow A in FIG. 6). As a result, the frame recognition unit 580 can authenticate the CAN frame with the ID "100" in the data field of the FD frame.
  • the frame recognition unit 580 identifies the CAN frame delimiter with ID "100” and then reads the data stored behind the specified delimiter (data located immediately after the frame delimiter in the data structure).
  • the frame recognition unit 580 reads the data after the CAN frame delimiter of the ID "100", and the CAN frame to which the ID "200" is assigned is stored, and the ID "200" is stored.
  • the DLC stored in the ID field of the CAN frame of "" is specified.
  • the frame recognition unit 580 identifies the frame delimiter at the end of the CAN frame of ID "200” based on the DLC in the same manner as the CAN frame of ID "100", so that the frame recognition unit 580 specifies the ID "200".
  • the frame recognition unit 580 identifies the frame delimiter at the end of the CAN frame of ID "300” based on the DLC in the same manner as the CAN frame of IDs "100" and "200". Authenticate a "300" CAN frame.
  • the frame recognition unit 580 reads the data stored behind the CAN frame delimiter of the ID "300".
  • a new CAN frame is not stored behind the CAN frame of ID “300”, but a counter value and a MAC are stored. Therefore, the frame recognition unit 580 reads the data at the position where the counter value and the MAC are stored, as shown by the arrow B in FIG.
  • the data length of the CAN frame is set to an arbitrary value within the range of 0 to 8 bytes, and in order to improve the data efficiency, the position of the CAN frame in the data field of the FD frame is not fixed and is arbitrarily set according to the amount of data. change.
  • the frame recognition unit 580 can specify that the CAN ID exists in the previous data by the length of the data length indicated by the DLC by using the DLC of the CAN frame. For example, if the DLC included in the CAN frame with ID "100" indicates 4Byte, the frame recognition unit 580 offsets the data length (4Byte) of the payload of the CAN frame with ID "100" before the next CAN. The storage position of the frame ID (3Byte) can be grasped.
  • the counter value and / or MAC may be erroneously recognized as another CAN frame. That is, since the counter value and the MAC can take any value instead of the eigenvalue, the counter value and the MAC value may accidentally match the value of the ID for the CAN frame. Further, the counter value and the amount of MAC data are 10 bytes, which is larger than the amount of data for one frame of CAN. Therefore, the frame recognition unit 580 may erroneously recognize that the CAN frame is stored in the counter value or the MAC storage position.
  • the frame recognition unit 580 does not perform frame recognition processing on the data in the storage area for storing the unique data such as the counter value and / or MAC. In addition, it recognizes the CAN frame.
  • the storage area of the counter value and / or the unique data such as MAC in the data field is predetermined, and is from the end of the data field of the FD frame to the predetermined data length (10 bytes in the example of FIG. 6) and the position in front of the data field. The area becomes the storage area.
  • the data length of the storage area is set to be longer than the data length of the unique data.
  • the frame recognition unit 580 can grasp the storage area of the unique data including the counter value and the MAC by specifying the end of the data field from the DLC of the FD frame. Then, the frame recognition unit 580 does not perform the frame recognition process on the data in the storage area during the above frame authentication process, and the frame recognition unit 580 does not perform the frame recognition process on the data in the area other than the storage area in the data field. Performs frame recognition processing.
  • FIG. 1 In the example of FIG.
  • the frame recognition unit 580 performs the frame recognition process ignoring the data for 10 bytes (data to which the counter value and the MAC are added) up to the end of the data field.
  • the frame recognition unit 580 identifies the position of the storage area of the unique data in the data field, then performs the frame recognition process, and performs the frame recognition process to obtain a CAN frame with ID “100” and a CAN frame with ID “200”. And, each frame is recognized in the order of the CAN frame of ID "300". Since the position of the ID indicated by the DLC of the FD frame of the ID "300" is included in the storage area of the unique data, the frame recognition unit 580 identifies the CAN frame of the ID "300" and then performs the frame recognition process. To finish. As a result, the CAN frame can be recognized while preventing erroneous recognition of the frame.
  • the CAN frame generated by the ECUs 11 to 13 of the first communication network 1 is transmitted to the ECUs 52 to 54 of the fifth communication network 5.
  • the ECUs 11 to 13 of the first communication network 1 acquire sensor information from the sensor and generate, for example, CAN frames C1 to CN.
  • the ECUs 11 to 13 generate a control information CD including the sensor information based on the acquired sensor information, and set the CAN ID based on the type of the sensor information and the like.
  • "100" and "200" indicate CAN ID.
  • the ECUs 11 to 13 store the control information CD in the data fields of the generated CAN frames C1 to CN, and transmit the generated CAN frames C1 to CN to the CGW 7 via the CAN bus 14.
  • the CGW 7 receives the CAN frames C1 to CN from the first communication network 1 via the CAN bus 14, and in step S2, the received CAN frames C1 to CN generate an FD frame F1 stored in the data field. Specifically, the CGW 7 assigns "002" as a CAN FD ID indicating that at least one CAN frame is stored in the data field in the FD frame F1, and the CGW 7 assigns the CAN frames C1 to CN. Multiple CAN frames C1 to CN are grouped based on the ECU of the transmission destination, the type of the stored control information CD, the transmission cycle of the CAN frames C1 to CN, and the plurality of grouped CAN frames. FD frame F1 is generated every time. Further, the CGW 7 transmits the generated FD frame F1 to the DM 51 via the FD bus 55 of the fifth communication network 5.
  • the type of control information CD means that the control contents in which the control information CD is used are common or related. For example, when the CAN frames C1 to CN are grouped according to the control of acceleration / deceleration of the vehicle, the control of the power train of the engine and the like and the control of the brake and the like are common or related control contents, and the control information used for these controls is used. CAN frames C1 to CN are grouped for each CD. Further, the transmission cycle of the CAN frames C1 to CN means, for example, a transmission cycle when the sensor information acquired from the sensor is transmitted at a predetermined time interval, and the CAN is for each control information CD having the same or similar transmission cycle. Frames C1 to CN are grouped.
  • the transmission load of the in-vehicle communication network system CNW can be suppressed by grouping the CAN frames C1 to CN according to the destination ECU, the type of control information CD, the transmission cycle, and the like. can. Further, since the related control information CD can be transmitted together, the control by the transmission destination ECU can be appropriately and efficiently performed.
  • the CGW 7 acquires only the "data field” from each of the CAN frames C1 to CN and stores it in the data field of the FD frame F1.
  • the "DLC” is used to determine the delimiter of a plurality of CAN frames C1 to CN stored in the data field. In this way, out of the large number of data constituting the CAN frames C1 to CN, only the data required by the destination ECU is stored in the FD frame F1 and transmitted, so that the transmission load of the in-vehicle communication network system CNW is suppressed. can do.
  • the DM51 of the fifth communication network 5 When the DM51 of the fifth communication network 5 receives the FD frame F1 via the FD bus 55, it specifies that at least one CAN frame is stored in the data field based on the CAN FD ID.
  • the DM51 acquires CAN frames C1 to CN from the received FD frame F1 in step S3.
  • the division between CAN frames can be determined by using "DLC”.
  • a plurality of CAN frames C1 to CN can be appropriately acquired.
  • the DM 51 when the DM 51 recognizes a plurality of CAN frames C1 to CN in the FD frame F1 based on the DCL, the DM 51 does not perform the frame recognition process on the data in the storage area of the unique data including the counter value and the MAC. As a result, a plurality of CAN frames C1 to CN can be appropriately acquired while preventing erroneous recognition of the frame. Then, the DM 51 transmits the acquired plurality of CAN frames C1 to CN to the CAN bus 56 of the fifth communication network 5.
  • the ECUs 52 to 54 of the fifth communication network 5 receive the CAN frames C1 to CN necessary for controlling the in-vehicle device based on the CAN IDs of the CAN frames C1 to CN. Further, the ECUs 52 to 54 control the in-vehicle device based on the received control signal CDs of the CAN frames C1 to CN in step S4.
  • the FD frame is the CAN frame, the CAN ID, and the unique data stored in a predetermined storage area located behind the CAN frame.
  • the repeater such as DM31 to 61 or CGW7 recognizes the CAN frame in the FD frame based on the data length of the payload of the CAN frame, and recognizes the frame for the data in the storage area.
  • the CAN frame is recognized without processing. This makes it possible to prevent the unique data stored in the storage area from being erroneously identified as a CAN ID and to prevent the CAN frame from being erroneously recognized.
  • the storage area of the unique data is set to the area from the end of the data field including the CAN frame and the unique data to a predetermined data length and the front side. This makes it possible to prevent erroneous recognition of the CAN frame.
  • the above-mentioned predetermined data length is set to be longer than the data length of the unique data.
  • the area where the data value may match the CAN ID value can be excluded from the area where the frame authentication process is executed, and as a result, erroneous recognition of the CAN frame can be prevented.
  • the unique data is data indicating the validity of the data and can be set by an arbitrary numerical value.
  • data whose data value may match the CAN ID value can be excluded from the execution target of the frame authentication process, and as a result, erroneous recognition of the CAN frame can be prevented.
  • the DM 51 is a padding data having a data length longer than the data length of the CAN ID between the CAN frame and the unique data in the process of storing the CAN frame in the FD frame. May be inserted.
  • padding data having a data length of 3 bytes or more is inserted between the CAN frame of ID "300" and the unique data.
  • Padding data is meaningless data. The padding data is usually inserted when the data is to be treated as a fixed length, but in the modified example, the padding data is always inserted.
  • the padding data By increasing the data length or storing another CAN frame, the amount of data is adjusted so that the total amount of data in the data field becomes the second fixed length.
  • the first fixed length and the second fixed length indicate the fixed length defined for the data field of the FD frame, and the second fixed length is longer than the first fixed length.
  • the data efficiency is lowered by the amount of inserting the padding data. Therefore, from the viewpoint of the data efficiency, "without performing the frame recognition processing for the data in the storage area, The data processing of "recognizing CAN frames” is preferable. Further, data of the number of stored CAN frames may be added to the CAN FD ID, but since the amount of data of the CAN FD ID becomes large and the data efficiency decreases, from the viewpoint of data efficiency, "in the storage area". The data processing of "recognizing the CAN frame without performing the frame recognition processing on the data of" is preferable.
  • CNW In-vehicle communication network system 1 ... First communication network 11 to 13 ... ECU (Electronic Control Unit) 2 ... Second communication network 21-23 ... ECU 3 ... Third communication network 31 ... DM (Domain Master) 32 to 34 ... ECU 35, 36 ... FD bus 4 ... 4th communication network 41 ... DM 42-44 ... ECU 45, 46 ... FD bus 5 ... Fifth communication network 51 ... DM 510 ... Storage unit 511 ... Counter value 512 ... Common key 520 ... Communication unit 530 ... Counter 540 ... Data acquisition unit 550 ... Frame generation unit 560 ... MAC verification unit 570 ... Counter value verification unit 580 ... Frame recognition unit 52 to 54 ... ECU 55 ...
  • FD bus 56 ... CAN bus 6 ... 6th communication network 61 ... DM 62-64 ... ECU 65 ... FD bus 66 ... CAN bus 7 ... CGW (Central Gateway) C1 to CN ... CAN frame F1 ... FD frame E1 ... Ethernet frame

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

第1の通信ネットワークと、第1の通信ネットワークと通信プロトコルが異なる第2の通信ネットワークとの間に接続され、少なくとも1つの第1フレームを格納した第2のフレームを受信する中継器を備え、第1フレームは、第1の通信ネットワーク下で送信され、制御情報を含む第1のペイロード、制御情報を識別するための第1のデータID、及び、第1のペイロードのデータ長を示すデータ長コードを有し、第2のフレームは、第2の通信ネットワーク下で送信され、第1フレーム、第1フレームを含むことを示す第2のデータID、及び第1フレームよりも後方に位置する所定の格納領域 に格納される固有データを有し、中継器は、データ長コードに基づき第2のフレームにおける第1フレームを認識するときに、前記所定の格納領域内のデータに対してフレーム認識処理を行わずに、前記第1フレームを認識する。

Description

中継装置、通信ネットワークシステム及び通信制御方法
 本発明は、通信ネットワークを介してデータの通信を行なう中継装置、通信ネットワークシステム及び通信制御方法に関するものである。
 特許文献1には、車載機器を制御する複数のECU(Electronic Control Unit)と、各ECUが相互に通信できるように接続するCAN(Controller Area Network)等の車載ネットワークと、ECU間の通信を中継するゲートウェイ装置とを備える車載ネットワークシステムが開示されている。このゲートウェイ装置は、CANに接続されたECUから、CANとは異なる通信プロトコルを利用するEthernet(登録商標)に接続されたECUへデータフレームを送信するために、Ethernetのデータフレームのペイロード内に複数のCANのデータフレームを格納している。
国際公開第2017/203902号
 特許文献1記載の車載ネットワークシステムにおいて、ペイロード内に格納された複数のCANのデータフレームは、データの長さを示すDLCを各CANフレームに含んでいる。ゲートウェイ装置は、Ethernetのデータフレームを受信し、Ethernetのデータフレームのペイロードにおいて、DLCから複数のCANのデータフレームの区切りを特定することで、CANのデータフレームを個々に認識できる。しかしながら、Ethernetのデータフレームで後方の位置に配置されたデータを、誤ってCANのデータフレームとして認識するおそれがある。
 本発明が解決しようとする課題は、異なる通信プロトコルを利用する通信ネットワーク間でデータを通信する際に、フレームの誤認識を防止する中継装置、通信ネットワークシステム及び通信制御方法を提供することである。
 本発明は、第2のフレームは、第1のフレーム、第1のデータID、及び第1のフレームよりも後方に位置する所定の格納領域に格納される固有データを有し、中継器は、第1のフレームのペイロードのデータ長に基づき第2のフレームにおける第1のフレームを認識するフレーム認識処理を行うときに、格納領域内のデータに対してフレーム認識処理を行わずに、第1のフレームを認識することによって上記課題を解決する。
 本発明によれば、フレームの誤認識を防止できる。
図1は、本発明に係る中継装置、通信ネットワークシステム及び通信制御方法を適用した、車載通信ネットワークシステムの構成図である。 図2は、CANのデータフレームの構成を示す説明図である。 図3は、CAN FDのデータフレームの構成を示す説明図である。 図4は、DMの構成図である。 図5は、CAN FDのデータフレームの構成を示す説明図である。 図6は、CAN FDのデータフレームの構成を示す説明図である。 図7は、CANバスに接続された通信ネットワークからCANバスに接続された通信ネットワークへCANフレームを送信する手順を示すシーケンスチャートである。 図8は、CANバスに接続された通信ネットワークからCANバスに接続された通信ネットワークへCANフレームを送信する手順を示す説明図である。
 以下、本発明の実施形態を図面に基づいて説明する。
 本実施形態では、本発明に係る中継装置、通信ネットワークシステム及び通信制御方法を、自動車(車両ともいう)に搭載された車載ネットワークシステムに適用した例を用いて説明する。本実施形態に係る車載通信ネットワークシステムCNWは、CAN、CAN FD及びEthernet等の異なる通信プロトコルを利用する複数の通信ネットワークが混在されたネットワークシステムである。CAN FDは、CANに対し上位互換性を有する通信プロトコルであり、CANよりも単位時間当たりのデータ通信量(通信速度)が大きくなっている。Ethernetは、LAN(Local Area Network)等に利用される通信ネットワークであり、CAN FDよりも単位時間当たりのデータ通信量は大きい。
 図1は、本実施形態に係る車載通信ネットワークシステムCNWの構成を示すブロック図である。車載通信ネットワークシステムCNWは、第1の通信ネットワーク1と、第2の通信ネットワーク2と、第3の通信ネットワーク3と、第4の通信ネットワーク4と、第5の通信ネットワーク5と、第6の通信ネットワーク6と、第1の通信ネットワーク1~第6の通信ネットワーク6に接続されたCGW(Central Gateway)7とを備える。第1の通信ネットワーク1~第6の通信ネットワーク6は、車両の基本構成毎に区分けされた複数の制御グループを構成している。この制御グループは、ドメインとも呼ばれる。ドメインには、車両内での情報提示について制御するマルチメディアドメインの他、エンジン等を制御するパワートレインドメイン、ステアリング機構等を制御するシャーシドメイン、パワーウィンドウ等を制御するボディドメイン、自律走行制御を行うADAS(Advanced Driver-Assistance System)ドメイン等がある。第1の通信ネットワーク1~第6の通信ネットワーク6は、本発明の第1の通信ネットワーク及び第2の通信ネットワークの一例に相当する。なお、車載通信ネットワークシステムCNWを構成する通信ネットワークの数は、4個に限定されない。
 第1の通信ネットワーク1は、ECU11、ECU12及びECU13を備える。ECU11~13は、CANの通信プロトコルに従ってデータ通信が行われるCANバス14を介してCGW7に接続されている。ECU11~13は、車両に搭載された車載機器を制御する電子制御装置である。ECU11~13は、詳しくは図示しないが、コントローラと、通信回路とを備えている。コントローラは、CPUと、CPUにより実行される制御プログラムが格納されたROMと、制御プログラムのワークエリアとして利用されるRAM等を備えている。コントローラは、CPUにより制御プログラムを実行することにより、ECUとして機能する。通信回路は、コントローラにより制御され、コントローラとCANバス14との間の通信を行う。
 ECU11~13には、図示しないセンサ又はアクチュエータ等の車載機器が接続されている。ECU11~13は、接続されているセンサから、センサによる検知結果を示すセンサ情報を取得し、取得されたセンサ情報を含む制御情報が格納されたCANのデータフレーム(以下、CANフレームともいう、本発明の「第1のフレーム」に相当する)を生成する。ECU11~13により生成されたCANフレームは、CANバス14を介してCGW7へ送信される。また、各ECU11~13は、CANバス14を介してCGW7からCANフレームを受信し、受信したCANフレームに格納されている制御情報に基づいてアクチュエータ等の車載機器を制御する。ECU11~13は、本発明の第1の電子制御装置及び第2の電子制御装置の一例に相当する。
 第2の通信ネットワーク2は、ECU21、ECU22及びECU23を備える。ECU21~23は、CANの通信プロトコルに従ってデータ通信が行われるCANバス24を介してCGW7に接続されている。なお、第2の通信ネットワーク2のECU21~23及びCANバス24は、第1の通信ネットワーク1のECU11~13及びCANバス14と同様の構成を有するため、詳しい説明は省略する。
 第3の通信ネットワーク3は、DM(Domain Master)31と、ECU32、ECU33及びECU34とを備える。DM31は、CAN FDの通信プロトコルに従ってデータ通信が行われるFDバス35を介してCGW7に接続されている。また、ECU32~34は、CAN FDの通信プロトコルに従ってデータ通信が行われるFDバス36を介してDM31に接続されている。
 ECU32~34は、第1の通信ネットワーク1のECU11~13と同様に、車両に搭載された車載機器を制御する電子制御装置であり、コントローラ及び通信回路を備えている。ECU32~34は、接続されているセンサから、センサによる検知結果を示すセンサ情報を取得し、取得されたセンサ情報を含む制御情報が格納されたCAN FDのデータフレーム(以下、FDフレームともいう、本発明の「第2のフレーム」に相当する)を生成する。ECU32~34により生成されたFDフレームは、FDバス36を介してDM31へ送信される。また、各ECU32~34は、FDバス36を介してDM31からFDフレームを受信し、受信したFDフレームに格納されている制御情報に基づいてアクチュエータ等の車載機器を制御する。ECU32~34は、本発明の第1の電子制御装置及び第2の電子制御装置の一例に相当する。
 DM31は、CGW7とECU32~34との間での通信を中継する中継器であり、ECUと同様にコントローラ及び通信回路を備えている。DM31は、FDバス36を介して、ECU32~34とFDフレームの通信を行なう。また、DM31は、FDバス35を介して、CGW7とFDフレームの通信を行なう。DM31は、本発明の中継器の一例に相当する。
 第4の通信ネットワーク4は、DM41と、ECU42、ECU43及びECU44とを備える。DM41は、CAN FDの通信プロトコルに従ってデータ通信が行われるFDバス45を介してCGW7に接続されている。また、ECU42~44は、CAN FDの通信プロトコルに従ってデータ通信が行われるFDバス46を介してDM41に接続されている。なお、第4の通信ネットワーク4のDM41、ECU42~44及びFDバス45、46は、第3の通信ネットワーク3のDM31、ECU32~34及びFDバス35、36と同様の構成を有するため、詳しい説明は省略する。
 第5の通信ネットワーク5は、DM51と、ECU52、ECU53及びECU54とを備える。DM51は、CAN FDの通信プロトコルに従ってデータ通信が行われるFDバス55を介してCGW7に接続されている。また、ECU52~54は、CANの通信プロトコルに従ってデータ通信が行われるCANバス56を介してDM51に接続されている。
 ECU52~54は、第1の通信ネットワーク1のECU11~13と同様に、車両に搭載された車載機器を制御する電子制御装置であり、コントローラ及び通信回路を備えている。ECU52~54は、接続されているセンサから、センサによる検知結果を示すセンサ情報を取得し、取得されたセンサ情報を含む制御情報が格納されたCANフレームを生成する。ECU52~54により生成されたCANフレームは、CANバス56を介してDM51へ送信される。また、各ECU52~54は、CANバス56を介してDM51からCANフレームを受信し、受信したCANフレームに格納されている制御情報に基づいてアクチュエータ等の車載機器を制御する。ECU52~54は、本発明の第1の電子制御装置及び第2の電子制御装置の一例に相当する。
 DM51は、CGW7とECU52~54との間での通信を中継する中継器であり、第3の通信ネットワーク3のDM31と同様にコントローラ及び通信回路を備えている。DM51は、CANバス56を介して、ECU52~54とCANフレームの通信を行なう。また、DM51は、FDバス55を介して、CGW7とFDフレームの通信を行なう。DM51は、ECU52~54により生成されたCANフレームを第1の通信ネットワーク1又は第2の通信ネットワーク2へ送信する際には、FDフレームに少なくとも1つのCANフレームを格納してCGW7へ送信する。DM51は、本発明の中継器の一例に相当する。
 第6の通信ネットワーク6は、DM61と、ECU62、ECU63及びECU64とを備える。DM61は、CAN FDの通信プロトコルに従ってデータ通信が行われるFDバス65を介してCGW7に接続されている。また、ECU62~64は、CANの通信プロトコルに従ってデータ通信が行われるCANバス66を介してDM61に接続されている。なお、第6の通信ネットワーク6のDM61、ECU62~64、FDバス65及びCANバス66は、第5の通信ネットワーク5のDM51、ECU52~54、FDバス55及びCANバス56と同様の構成を有するため、詳しい説明は省略する。
 CGW7は、第1~第6の通信ネットワーク1~6の間でデータフレームの中継を行う中継器であり、DM31等と同様に、コントローラ及び通信回路を備えている。CGW7は、第1の通信ネットワーク1のCANバス14を介して、ECU11~13とCANフレームの通信を行なう。また、CGW7は、第2の通信ネットワーク2のCANバス24を介して、ECU21~23とCANフレームの通信を行なう。CGW7は、第3の通信ネットワーク3のFDバス35を介して、DM31とFDフレームの通信を行う。また、CGW7は、第4の通信ネットワーク4のFDバス45を介して、DM41とFDフレームの通信を行う。さらに、CGW7は、第5の通信ネットワーク5のFDバス55を介して、DM51とFDフレームの通信を行う。CGW7は、第6の通信ネットワーク6のFDバス65を介して、DM61とFDフレームの通信を行う。CGW7は、DM51又は61からCANフレームが格納されたFDフレームを受信した場合には、FDフレームからCANフレームを取得し、取得したCANフレームを第1の通信ネットワーク1のECU11~13、又は第2の通信ネットワーク2のECU21~23へ送信する。
 次に、CANフレームの構成について説明する。CANフレームは、図2に示すように、SOF(Start Of Frame)フィールドと、ID(Identifier)フィールドと、RTR(Remote Transmission Request)フィールドと、DLC(Data Length Code)フィールドと、データフィールドと、CRCフィールドと、ACKフィールドと、EOF(End of Frame)フィールド等によって構成される。図2の各フィールドに記載されている数値は、フィールドの各々を構成するビット数を示す。
 SOFフィールドは、CANフレームの先頭を示す。IDフィールドは、データフィールド内の格納データの種類を示す識別子であるCAN IDが格納されている。CAN IDは、メッセージIDとも称される。なお、CANでは、複数のECUが同時にCANフレームの送信を開始した場合、このCAN IDが小さい値を持つCANフレームの通信を優先する通信調停が行われる。DLCフィールドには、後続するデータフィールド内のデータのサイズ(データ長)を示す情報が格納される。CRCフィールドは、CANフレームの通信エラーの検出に利用される巡回冗長検査コードが格納される。
 データフィールドに格納されるデータの仕様については、CANの通信プロトコルでは規定されていない。本実施形態に係る車載通信ネットワークシステムCNWでは、データフィールド内に、ECUに接続されているセンサから取得したセンサ情報を含む制御情報CDが格納される。なお、制御情報CDに含まれる情報は、センサ情報に限らず、例えば、ドライバーから要求された操作情報等でもよい。当該データフィールドに制御情報CDだけでなく、CANフレームを生成する各ECUによって、CAN IDと、制御情報CDとに基づいて算出される誤り検出符号ECを含んでもよい。
 次に、FDフレームの構成について説明する。FDフレームは、図3に示すように、SOFフィールドと、IDフィールドと、EDL(Extended Data Length)フィールドと、BRS(Bit Rate Switch)フィールドと、ESI(Error State Indicator)フィールドと、DLCフィールドと、データフィールドと、CRCフィールドと、ACKフィールドと、EOFフィールド等によって構成される。図2の各フィールドに記載されている数値は、フィールドの各々を構成するビット数を示す。FDフレームは、CANフレームにEDLビット、BRSビット及びESIビットが追加され、さらにデータフィールドが64バイトに拡張されている。また、IDフィールドには、データフィールド内の格納データの種類を示す識別子であるCAN FD IDが格納されている。CAN FD IDは、本発明の「第2のデータID」に相当する。
 FDフレームは、例えば、FDバスに接続されたECU間で通信される場合、データフィールド内に、CANフレームと同様に制御情報が格納される。具体的には、例えば、第3の通信ネットワーク3のFDバス36に接続されたECU32~34によりFDフレームが生成され、第4の通信ネットワーク4のFDバス46に接続されたECU42~44に送信される場合には、FDフレームのデータフィールド内に、CANフレームと同様に制御情報が格納される。この場合、CAN FD IDには、制御情報の種類を示すID、例えば、「001」が付与される。
 また、FDフレームは、例えば、CANバスに接続されたECUからFDバスを介してECUに送信される場合、データフィールド内に、少なくとも1つのCANフレームが格納される。具体的には、例えば、第1の通信ネットワーク1のCANバス14に接続されたECU11~13によりCANフレームが生成され、第5の通信ネットワーク5のECU52~54に送信される場合には、CGW7により、FDフレームのデータフィールド内に少なくとも1つのCANフレームが格納され、DM51に送信される。この場合、CAN FD IDには、データフレーム内にCANフレームが格納されていることを示すID、例えば、「002」が付与される。
 次に、DM51において、FDフレームを生成するための各種機能部を、図4を参照しつつ説明する。図4は、DM51のCPUが制御プログラムに基づいて動作することにより構成される各種の機能部を示している。DM51は、記憶部510、通信部520、カウンタ530、データ取得部540、フレーム生成部550、MAC検証部560、カウンタ値検証部570、及びフレーム認識部580を備えている。なお、詳しくは説明しないが、他のDM31、41、61も同様の構成を備えており、CGW7も基本的な構成は、DM51と同様である。
 記憶部510は、ROM等のメモリによって構成されており、車載ネットワークシステムに対するリプレイ攻撃への対処に利用されるカウンタ値511、及び共通鍵512が記憶されている。ここで、リプレイ攻撃について説明する。CGW7は、外部機器と通信可能な状態で接続されているため、本実施形態に係る車載通信ネットワークシステムCNWでは、外部からのリプレイ攻撃に対処するために、メッセージ認証コード(Message Authentication Code、以下「MAC」ともいう)を用いてデータフレームの正当性を検証している。リプレイ攻撃とは、ネットワーク上を流れるデータフレームを盗聴してその内容を記憶しておき、記憶したデータフレーム、又は改変したデータフレームをネットワーク内に送信することにより、ネットワーク内の機器に不正な動作を引き起こすサイバー攻撃である。リプレイ攻撃は、CGW7とネットワークを介して接続される外部機器によって行われる。
 通信部520は、CAN及びCGW7を介して他のECU及び/又は他のDM等と通信を行う。通信部520は、CGW7から送信されたデータフレームを受信する際に、データフレームのIDを確認し、予め定められたIDを有するデータフレーム、すなわち、通信部520が設けられているDM51に関連するデータフレームのみを受信する。また、通信部520はECU52~54により送信されたデータフレームを受信する。さらに、通信部520は、フレーム生成部550により生成されたデータフレームを、ECU52~54又はCGW7に送信する。
 カウンタ530は、データフレームがCANに送信された回数をカウントし、カウンタ値をインクリメントする。カウンタ値は、送受信データ(メッセージ)の連続性を担保するための値であって、第三者からの成りすましデータや改ざんデータを破棄するために、データの正当性の検証に利用される。カウンタ530は、車載ネットワークシステム内のECU11等、DM31等、及びCGW7による、データフレームの送信回数をカウントする。したがって、ECU11等、DM31等、及びCGW7のカウンタは、同じカウンタ値となる。カウンタ530によりカウントされたカウンタ値は、記憶部510に記憶される。
 データ取得部540は、DM51に接続されたセンサ等の車載機器から、情報を取得する。フレーム生成部550は、データ取得部540により取得された情報を含む制御情報を生成し、生成された制御情報に基づいて、通信部520により送信されるデータフレームを生成する。具体的には、フレーム生成部550は、データ取得部540により取得した情報の種類に応じてIDを設定する。フレーム生成部550は、例えば、センサ情報とCAN FD IDとが対応付けられたテーブルを記憶しており、このテーブルに基づいてCAN FD IDを設定する。なお、他のDM31等又はECU11等が、CANフレームを生成するには、CANフレーム用のIDを付与する。
 また、DM51が、ECU52~54からFDバス55を介してCGW7に、少なくとも1つのCANフレームを格納したFDフレームを送信する場合には、フレーム生成部550は、通信部520によりECU52~54から受信したCANフレームを、FDフレームのデータフィールドに格納して、データフィールドにCANフレームを含むことを示すCAN FD IDを付与する。
 また、フレーム生成部550は、上述したリプレイ攻撃に対処するために、CAN FD IDと、CAN FD データフィールドに含まれるデータ、記憶部510に記憶されているカウンタ値511に基づいて、記憶部510に記憶されている共通鍵512によりMACを生成する。共通鍵512は、各ECU11等、各DM31等及びCGW7において、共通のものが用いられる。また、MACの算出には、ハッシュ関数を使う方式(HMAC)や、ブロック暗号アルゴリズムを使う方式(CMAC等)等が用いられる。フレーム生成部550は、設定したCAN FD IDと、データ取得部540により取得した情報を含む制御情報及び/又は通信部520により受信されたデータフレームと、記憶部510に記憶されているカウンタ値511と、生成したMACとに基づいてデータフレームを生成する。
 図5は、フレーム生成部550により生成されるデータフレームの構成の一例を示している。データフレームは、CAN FD IDが格納されるIDフィールド91と、CANフレームが格納されるデータフィールド92とを備えている。データフィールド92には、CANフレームと、カウンタ値と、MACとが格納される。図5は、3つのCANフレームをデータフィールドに含んだFDフレームの一例を示している。なお、図5に示すフレーム構成は、図3のFDフレームのうち、「002」のIDが付与されたフレームであって、データフィールドの一部にMACを付与した場合のフレーム構造を表している。ただし、図3で示したEOF等のフィールドの図示を、図5では省略している。
 IDフィールド91は、CAN FD ID及びDLC等を含んでいる。IDフィールド91に含まれるDLCは、データフィールド92のデータ長を示しており、何バイトのデータがフレームで送信されるかを表している。DLCは、CAN用、CAN FD用共に1バイトである。DLCの設定範囲は、CANの場合は0~8バイトであり、CAN FDの場合は8ビット以上のときには、12、16、20、24、32、48、又は64バイトとなる。なお、IDフィールド91には、データフィールド92に含まれるCANフレームの個数を示す情報は含まれていない。そのため、IDフィールド91だけでは、データフィールド92の中に含まれるCANフレームの数を把握することはできない。
 データフィールド92は、複数のCANフレーム、カウンタ値及びMACを含んでいる。図5の例では、3つのCANフレームがデータフィールド92内に格納されている。CANフレームは、IDフィールド101とデータフィールド102を含んでおり、IDフィールド101はCAN IDとDLCを含んでいる。3つのCANフレームの各IDには、「100」、「200」、及び「300」が付与されており、データフィールド92内で、「100」、「200」、及び「300」の順序で、3つのCANフレームが格納されている。また、データフィールド92において、複数のCANフレームよりも後方の位置には、カウンタ値とMACが格納されている。カウンタ値及びMACは、データフレームの正当性を検証するために使用されるデータであって、フレーム固有のデータ(固有データ)である。なお、CANフレームのデータ容量は、最大8バイトに限られているため、CANフレームのデータフレームは、制御情報と、カウンタ値と、MACをすべて格納することはできない。一方、FDフレームでは、データ容量の最大は64バイトになるため、FDフレームのデータフレームは、制御情報や複数のCANフレームに加えて、カウンタ値とMACを格納できる。
 MAC検証部560は、通信部520により受信したデータフレームのMACに基づいて、データフレームの正当性、すなわち、受信したデータフレームが車載ネットワークシステム2内の他のECU11等、各DM31等及びCGW7から送信されたものであるか否かを検証する。具体的には、MAC検証部560は、受信したデータフレームから、IDと、制御情報と、カウンタ値と、MACとを取得する。MAC検証部560は、取得されたIDと、制御情報と、カウンタ値とに基づいて、記憶部510に記憶されている共通鍵412により検証用のMACを生成する。
 次いで、MAC検証部560は、受信したデータフレームから取得したMACと、検証用のMACとを比較し、取得したMACと検証用のMACとが一致する場合に、受信したデータフレームが正当なデータであると判定する。MAC検証部560は、受信したデータフレームが正当なデータであると判定すると、受信したデータフレームをカウンタ値検証部570に出力する。また、MAC検証部560は、受信したデータフレームが不正なデータであると判定すると、受信したデータフレームを破棄する。このように、MACを利用して不正なデータフレームを検出して破棄することができるので、車載ネットワークシステム2に対するリプレイ攻撃等を防ぐことが可能である。なお、MACの生成にCAN IDと、制御情報と、カウンタ値とを用いているが、これらの3つのデータのうち、いずれか1つ又は2つの組み合わせを用いてMACを生成してもよい。
 カウンタ値検証部570は、受信したデータフレームからカウンタ値を取得し、カウンタ値の連続性が保たれているか否か判定する。カウンタ値検証部570は、連続性が保たれていないと判定すると、受信したデータフレームを破棄する。そして、DM51は、MAC検証部560及びカウンタ値検証部570により、受信したデータフレームが正当なデータあると判定した後は、データフレーム含まれるデータを処理する。例えば、図5に示すような、複数のCANフレームを含むFDフレームを受信した場合には、DM51は、CANフレーム毎のフレーム認識処理を実行し、認識されたCANフレームを、CANの通信プロトコルの下、各ECU52~54に送信する。
 フレーム認識部580は、少なくとも1つのCANフレームを格納したFDフレームを通信部520で受信した場合に、FDフレームのデータフィールドにおいて、CANフレームの認識を行う。CANフレームの認証は、データフィールド92内に格納されているフレームをそれぞれ特定する。
 フレーム認識部580によるフレーム認証処理について、図6を参照して説明する。図6は、CAN FD データフレームの構成の一例を示しており、フレーム認証を説明するための図でもある。なお、図6のデータフレームは、図5のデータフレームと同様である。
 フレーム認識部580は、IDフィールド101からID「002」を特定することで、少なくとも1つのCAN フレームが、データフィールド内に格納されていることを認識する。フレーム認識部580は、CANフレームの先頭からデータを読み取り、IDフィールドに含まれているCAN IDとDLCを特定する。フレーム認識部580は、CAN IDから、FDフレーム内に、CANフレームが格納されていることを特定できる。図6の例では、フレーム認識部580は、ID「100」が付与されたCAN フレームが格納されていること、及び、IDフィールド内に格納されているDLCを特定する。CANフレームのデータフィールドのデータ長は、0から8バイトの範囲で設定可能であるが、フレーム認識部580は、DLCからデータフィールドのデータ長を特定できる。フレーム認識部580は、DLCで示されるデータ長から、ID「100」のCANフレームの終端となるフレームの区切りを特定できる(図6の矢印Aを参照)。これにより、フレーム認識部580は、FDフレームのデータフィールドにおいて、ID「100」のCANフレームを認証できる。
 フレーム認識部580は、ID「100」のCANフレームの区切りを特定した後、特定された区切りの後方に格納されたデータ(データ構造上、フレームの区切りの直後に位置するデータ))を読み取る。図6の例では、フレーム認識部580は、ID「100」のCANフレームの区切りの後方のデータを読み取り、ID「200」が付与されたCANフレームが格納されていること、及び、ID「200」のCANフレームのIDフィールド内に格納されているDLCを特定する。そして、フレーム認識部580は、ID「100」のCANフレームと同様の方法で、DLCに基づき、ID「200」のCANフレームの終端となるフレームの区切りを特定することで、ID「200」のCANフレームを認証する。また、フレーム認識部580は、ID「100」、「200」のCANフレームと同様の方法で、DLCに基づき、ID「300」のCANフレームの終端となるフレームの区切りを特定することで、ID「300」のCANフレームを認証する。
 次に、フレーム認識部580は、ID「300」のCANフレームの区切りの後方に格納されたデータを読み取る。図6の例では、ID「300」のCANフレームの後方には、新たなCANフレームは格納されておらず、カウンタ値及びMACが格納されている。そのため、フレーム認識部580は、図6の矢印Bに示すよう、カウンタ値及びMACが格納されている位置のデータを読み取る。
 CANフレームのデータ長は0~8バイトの範囲内で任意の値で設定され、データ効率を上げるために、FDフレームのデータフィールドにおけるCANフレームの位置は固定でなく、データ量に応じて任意に変わる。上記のように、フレーム認識部580は、CANフレームのDLCを用いることで、DLCで示されるデータ長の長さ分、先のデータに、CAN IDがあることを特定できる。例えば、ID「100」のCANフレームに含まれるDLCが4Byteを示していたら、フレーム認識部580は、ID「100」のCANフレームのペイロードのデータ長(4Byte)をオフセットした先に、次のCANフレームのID(3Byte)の格納位置を把握できる。
 しかしながら、次のCANフレームのIDの格納位置に、カウンタ値及び/又はMACが格納されている場合には、カウンタ値及び/又はMACを、別のCANフレームであると誤認識するおそれがある。つまり、カウンタ値及びMACは固有値ではなく、任意の値をとることができるため、カウンタ値やMACの値が、CANフレーム用のIDの値と偶発的に一致することがある。また、カウンタ値やMACのデータ量は10バイトであり、CANの1フレーム分のデータ量よりも大きい。そのため、フレーム認識部580は、カウンタ値やMACの格納位置に、CANフレームが格納されていると、誤認識するおそれがある。
 本実施形態では、このようなフレームの誤認識を防ぐために、フレーム認識部580は、カウンタ値及び/又はMAC等の固有データを格納する格納領域内のデータに対して、フレーム認識処理を行わずに、CANフレームを認識する。カウンタ値及び/又はMAC等の固有データの、データフィールドにおける格納領域は予め決まっており、FDフレームのデータフィールドの終端から、所定のデータ長(図6の例では10Byte)、手前の位置までの領域が格納領域となる。また格納領域のデータ長は、固有データのデータ長以上の長さに設定されている。ただし、データフィールドに含まれるCANフレームの数、CANフレームのデータ量等により、CAN FD IDと格納領域との位置関係はフレーム内で動的に変わる。フレーム認識部580は、FDフレームのDLCから、データフィールドの終端を特定することで、カウンタ値及びMACを含む固有データの格納領域を把握できる。そして、フレーム認識部580は、上記のフレーム認証処理の際には、格納領域内のデータに対してはフレーム認識処理をせず、データフィールドのうち格納領域以外の領域内のデータに対して、フレーム認識処理を行う。図6の例では、ID「300」のFDフレームの後方に位置し、カウンタ値及びMACが付与されたデータに対して、フレーム認識処理をしない。言い換えると、フレーム認識部580は、データフィールドの終端までの10Byte分のデータ(カウンタ値及びMACが付与されたデータ)を無視して、フレーム認識処理を行う。
 図6の例では、フレーム認識部580は、データフィールドにおいて、固有データの格納領域の位置を特定した後、フレーム認識処理を行い、ID「100」のCANフレーム、ID「200」のCANフレーム、及び、ID「300」のCANフレームの順で、各フレームを認識する。そして、ID「300」のFDフレームのDLCで示されるIDの位置は、固有データの格納領域に含まれるため、フレーム認識部580は、ID「300」のCANフレームを特定した後、フレーム認識処理を終了する。これにより、フレームの誤認識を防ぎつつ、CANフレームを認識できる。
 次に、図7のシーケンスチャート及び図8の説明図を参照して、第1の通信ネットワーク1のECU11~13により生成されたCANフレームが、第5の通信ネットワーク5のECU52~54へ送信される手順について説明する。図7のステップS1にて示すように、第1の通信ネットワーク1のECU11~13は、センサからセンサ情報を取得し、例えば、CANフレームC1~CNを生成する。具体的には、ECU11~13は、取得したセンサ情報に基づいて、センサ情報を含む制御情報CDを生成し、センサ情報の種類等に基づいてCAN IDを設定する。図中、「100」、「200」は、CAN IDを示す。ECU11~13は、生成したCANフレームC1~CNのデータフィールドに、制御情報CDを格納し、CANバス14を介してCGW7へ生成したCANフレームC1~CNを送信する。
 CGW7は、CANバス14を介して第1の通信ネットワーク1からCANフレームC1~CNを受信し、ステップS2において、受信したCANフレームC1~CNがデータフィールドに格納されたFDフレームF1を生成する。具体的には、CGW7は、FDフレームF1に、データフィールドに少なくとも1つのCANフレームが格納されていることを示すCAN FD IDとして、「002」を付与するまた、CGW7は、CANフレームC1~CNの送信先のECUや、格納されている制御情報CDの種類、CANフレームC1~CNの送信周期等に基づいて、複数のCANフレームC1~CNをグループ分けし、グループ分けされた複数のCANフレーム毎にFDフレームF1を生成する。また、CGW7は、生成されたFDフレームF1を、第5の通信ネットワーク5のFDバス55を介してDM51へ送信する。
 制御情報CDの種類とは、制御情報CDが利用される制御内容が、共通又は関連することを言う。例えば、車両の加減速の制御に応じてCANフレームC1~CNをグループ分けする場合、エンジン等のパワートレインやブレーキ等の制御が共通又は関連する制御内容となり、これらの制御に利用される制御情報CD毎にCANフレームC1~CNがグループ分けされる。また、CANフレームC1~CNの送信周期とは、例えば、センサから取得されたセンサ情報が所定の時間間隔で送信される場合の送信周期を言い、送信周期が同じ又は近い制御情報CD毎にCANフレームC1~CNがグループ分けされる。このように、送信先のECUや、制御情報CDの種類、送信周期等に応じてCANフレームC1~CNをグループ分けして送信することにより、車載通信ネットワークシステムCNWの送信負荷を抑制することができる。また、関連する制御情報CDを一緒に送信することができるので、送信先のECUでの制御が適切、かつ効率よく行えるようになる。
 また、CGW7は、CANフレームC1~CNのそれぞれから、「データフィールド」のみを取得して、FDフレームF1のデータフィールドに格納する。「DLC」は、データフィールドに格納された複数のCANフレームC1~CNの区切りを判定するために利用される。このように、CANフレームC1~CNを構成する多数のデータのうち、送信先のECUで必要となるデータのみをFDフレームF1に格納して送信するので、車載通信ネットワークシステムCNWの送信負荷を抑制することができる。
 第5の通信ネットワーク5のDM51は、FDバス55を介してFDフレームF1を受信すると、CAN FD IDに基づいて、データフィールドに少なくとも1つのCANフレームが格納されていることを特定する。DM51は、ステップS3において、受信したFDフレームF1から、CANフレームC1~CNを取得する。上述したように、フレーム認証により、FDフレームF1のデータフィールドから複数のCANフレームC1~CNを取得する際には、「DLC」を利用してCANフレーム間の区切りを判定することができるので、複数のCANフレームC1~CNを適切に取得することができる。さらに、DM51は、DCLに基づきFDフレームF1における複数のCANフレームC1~CNを認識するときに、カウンタ値及びMACを含む固有データの格納領域内のデータに対してフレーム認識処理を行わない。これにより、フレームの誤認識を防ぎつつ、複数のCANフレームC1~CNを適切に取得できる。そして、DM51は、取得した複数のCANフレームC1~CNを第5の通信ネットワーク5のCANバス56に送信する。
 第5の通信ネットワーク5のECU52~54は、CANフレームC1~CNのCAN IDに基づいて、車載機器の制御に必要なCANフレームC1~CNを受信する。さらに、ECU52~54は、ステップS4において、受信したCANフレームC1~CNの制御信号CDに基づいて、車載機器を制御する。
 以上で説明したように、本実施形態に係る車載通信ネットワークシステムCNWによれば、FDフレームは、CANフレーム、CAN ID、及びCANフレームよりも後方に位置する所定の格納領域に格納される固有データを有し、DM31~61又はCGW7等の中継器は、CANフレームのペイロードのデータ長に基づきFDフレームにおけるCANフレームを認識するフレーム認識処理を行うときに、格納領域内のデータに対してフレーム認識処理を行わずに、CANフレームを認識する。これにより、格納領域に格納されている固有データをCAN IDであると誤って特定することを防ぎ、CANフレームを誤って認識することを防止できる。
 また、本実施形態に係る車載通信ネットワークシステムCNWによれば、固有データの格納領域は、CANフレーム及び固有データを含むデータフィールドの終端から所定のデータ長、手前までの領域に設定されている。これにより、CANフレームの誤認識を防止できる。
 また、本実施形態に係る車載通信ネットワークシステムCNWによれば、上述の所定のデータ長は、固有データのデータ長以上の長さに設定されている。これにより、データ値がCAN IDの値と一致する可能性がある領域を、フレーム認証処理を実行する領域から外すことができ、その結果として、CANフレームの誤認識を防止できる。
 また、本実施形態に係る車載通信ネットワークシステムCNWによれば、固有データは、データの正当性を示すデータであり、任意の数値で設定可能である。これにより、データ値がCAN IDの値と一致する可能性があるデータを、フレーム認証処理の実行対象から外すことができ、その結果として、CANフレームの誤認識を防止できる。
 なお、本実施形態の変形例として、DM51は、CANフレームをFDフレームに格納する処理において、CANフレームと固有データとの間に、CAN IDのデータ長以上の長さのデータ長をもつパディングデータを挿入してもよい。図6に示す、FDフレームのデータ構造において、3バイト以上のデータ長をもつパディングデータが、ID「300」のCANフレームと固有データとの間に挿入される。パディングデータは、意味をもたないデータである。なお、パディングデータは、通常、データを固定長として扱いたいときに挿入されるが、変形例では、必ず挿入される固定データである。そのため、データフィールド内において、CANフレームと固有データとの間にパディングデータを挿入することで、合計データ量が、FDフレームの予め定義された第1の固定長を超える場合には、パディングデータのデータ長を長くする、あるいは、他のCANフレームを格納することで、データフィールド内の合計データ量が第2の固定長になるよう、データ量を調整する。なお、第1の固定長及び第2の固定長は、FDフレームのデータフィールドに対して定義されている固定長を示しており、第2の固定長は第1の固定長よりも長い。これにより、CANフレームを格納したFDフレームを受信した場合に、CGW7は、FDフレームにおいてCANフレームのDLCに基づくフレーム認識処理を行うときに、「格納領域内のデータに対してフレーム認識処理を行わずに、CANフレームを認識する」というデータ処理を実行しなくてもよい。その結果として、CANフレームの誤認識を防止できる。
 ただし、上記変形例のようなデータ処理では、パディングデータを挿入する分、データ効率は低下するため、データ効率の面からは、「格納領域内のデータに対してフレーム認識処理を行わずに、CANフレームを認識する」というデータ処理の方が好ましい。さらに、CAN FD IDに、格納されたCANフレーム数のデータを付与してもよいが、CAN FD IDのデータ量が大きくなり、データ効率は下がるため、データ効率の面からは、「格納領域内のデータに対してフレーム認識処理を行わずに、CANフレームを認識する」というデータ処理の方が好ましい。
CNW…車載通信ネットワークシステム
1…第1の通信ネットワーク
 11~13…ECU(Electronic Control Unit)
2…第2の通信ネットワーク
 21~23…ECU
3…第3の通信ネットワーク
 31…DM(Domain Master)
 32~34…ECU
 35、36…FDバス
4…第4の通信ネットワーク
 41…DM
 42~44…ECU
 45、46…FDバス
5…第5の通信ネットワーク
 51…DM
  510…記憶部
  511…カウンタ値
  512…共通鍵
  520…通信部
  530…カウンタ
  540…データ取得部
  550…フレーム生成部
  560…MAC検証部
  570…カウンタ値検証部
  580…フレーム認識部
 52~54…ECU
 55…FDバス
 56…CANバス
6…第6の通信ネットワーク
 61…DM
 62~64…ECU
 65…FDバス
 66…CANバス
7…CGW(Central Gateway)
C1~CN…CANフレーム
F1…FDフレーム
E1…Ethernetフレーム

Claims (6)

  1.  第1の通信ネットワークと、前記第1の通信ネットワークと通信プロトコルが異なる第2の通信ネットワークとの間に接続され、
     少なくとも1つの第1のフレームを格納した第2のフレームを受信する中継器を備え、
     前記第1のフレームは、
      前記第1の通信ネットワーク下で送信され、
      制御情報を含む第1のペイロード、前記制御情報を識別するための第1のデータID、及び、前記第1のペイロードのデータ長を示すデータ長コードを有し、
     前記第2のフレームは、
      前記第2の通信ネットワーク下で送信され、
      前記第1のフレーム、前記第1のフレームを含むことを示す第2のデータID、及び前記第1のフレームよりも後方に位置する所定の格納領域に格納される固有データを有し、
     前記中継器は、
     前記データ長コードに基づき前記第2のフレームにおける前記第1のフレームを認識するときに、前記所定の格納領域内のデータに対してフレーム認識処理を行わずに、前記第1のフレームを認識する中継装置。
  2.  請求項1記載の中継装置において、
     前記所定の格納領域は、前記第1のフレーム及び前記固有データを含むデータフィールドの終端から所定のデータ長、手前までの領域である中継装置。
  3.  請求項2記載の中継装置において、
     前記所定のデータ長は、前記固有データのデータ長以上の長さである中継装置。
  4.  請求項1~3のいずれか一項に記載の中継装置において、
     前記固有データは、データの正当性を示すデータであり、任意の数値で設定可能である中継装置。
  5.  第1の通信ネットワークに接続された第1の電子制御装置と、
     前記第1の通信ネットワークとは異なる通信プロトコルが利用される第2の通信ネットワークに接続された第2の電子制御装置と、
     前記第1の通信ネットワークと、前記第2の通信ネットワークとに接続され、少なくとも1つの第1のフレームを格納した第2のフレームを受信する中継装置とを備え、
     前記第1のフレームは、
      前記第1の通信ネットワーク下で送信され、
      制御情報を含む第1のペイロード、前記制御情報を識別するための第1のデータID、及び、前記第1のペイロードのデータ長を示すデータ長コードを有し、
     前記第2のフレームは、
      前記第2の通信ネットワーク下で送信され、
      前記第1のフレーム、前記第1のフレームを含むことを示す第2のデータID、及び前記第1のフレームよりも後方に位置する所定の格納領域に格納される固有データを有し、
     前記中継装置は、
     前記データ長コードに基づき前記第2のフレームにおける前記第1のフレームを認識するときに、前記所定の格納領域内のデータに対してフレーム認識処理を行わずに、前記第1のフレームを認識する通信ネットワークシステム。
  6.  第1の通信ネットワークと、前記第1の通信ネットワークと通信プロトコルが異なる第2の通信ネットワークとの間に接続された中継装置により実行される通信制御方法であって、
     制御情報を含む第1のペイロード、前記制御情報を識別するための第1のデータID、及び前記第1のペイロードのデータ長を示すデータ長コードを有する第1のフレームと、前記第1のフレームを含むことを示す第2のデータIDと、及び前記第1のフレームよりも後方に位置する所定の格納領域に格納される固有データとを有する第2のフレームを、前記第2の通信ネットワークから受信し、
     前記データ長コードに基づき前記第2のフレームにおける前記第1のフレームを認識するときに、前記所定の格納領域内のデータに対してフレーム認識処理を行わずに、前記第1のフレームを認識し、
     認識された前記第1のフレームを、前記第1の通信ネットワークに送信する通信制御方法。
PCT/JP2020/039304 2020-10-19 2020-10-19 中継装置、通信ネットワークシステム及び通信制御方法 WO2022085057A1 (ja)

Priority Applications (5)

Application Number Priority Date Filing Date Title
US17/633,053 US20230327907A1 (en) 2020-10-19 2020-10-19 Relay device, communication network system, and communication control method
CN202080053939.8A CN114667716A (zh) 2020-10-19 2020-10-19 中继装置、通信网络系统以及通信控制方法
PCT/JP2020/039304 WO2022085057A1 (ja) 2020-10-19 2020-10-19 中継装置、通信ネットワークシステム及び通信制御方法
JP2022504680A JP7151931B2 (ja) 2020-10-19 2020-10-19 中継装置、通信ネットワークシステム及び通信制御方法
EP20945715.9A EP4231594A4 (en) 2020-10-19 2020-10-19 RELAY DEVICE, COMMUNICATION NETWORK SYSTEM AND COMMUNICATION CONTROL METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2020/039304 WO2022085057A1 (ja) 2020-10-19 2020-10-19 中継装置、通信ネットワークシステム及び通信制御方法

Publications (1)

Publication Number Publication Date
WO2022085057A1 true WO2022085057A1 (ja) 2022-04-28

Family

ID=81290282

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2020/039304 WO2022085057A1 (ja) 2020-10-19 2020-10-19 中継装置、通信ネットワークシステム及び通信制御方法

Country Status (5)

Country Link
US (1) US20230327907A1 (ja)
EP (1) EP4231594A4 (ja)
JP (1) JP7151931B2 (ja)
CN (1) CN114667716A (ja)
WO (1) WO2022085057A1 (ja)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
IT202100005354A1 (it) * 2021-03-08 2022-09-08 Stmicroelectronics Application Gmbh Circuito microcontrollore, dispositivo, sistema e procedimento di funzionamento corrispondenti

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015089092A (ja) * 2013-11-01 2015-05-07 ティー・エイチ・エヌ・コーポレーションTHN Corporation パケットをパッケージングする方法、アンパッケージングする方法、及びこれを利用する装置
JP2016111477A (ja) * 2014-12-04 2016-06-20 トヨタ自動車株式会社 通信システム、及びゲートウェイ
JP2017118407A (ja) * 2015-12-25 2017-06-29 株式会社デンソー 通信システム
WO2017203902A1 (ja) 2016-05-27 2017-11-30 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ ゲートウェイ装置、車載ネットワークシステム、転送方法及びプログラム
JP2020096251A (ja) * 2018-12-11 2020-06-18 トヨタ自動車株式会社 中継装置

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE390772T1 (de) * 2004-04-29 2008-04-15 Matsushita Electric Ind Co Ltd Fehlerkodierung in einem überrahmen für digitalen hörfunk (dab)
JP4376862B2 (ja) * 2005-12-20 2009-12-02 富士通テン株式会社 通信メッセージ変換装置及び通信メッセージ変換方法
JP6036683B2 (ja) * 2011-03-09 2016-11-30 日本電気株式会社 ネットワークシステム
US20120327954A1 (en) * 2011-06-24 2012-12-27 Cisco Technology, Inc. Packet Meta-Tagging Using Excess Payload
CN102780705B (zh) * 2012-08-10 2015-05-27 浙江工业大学 Ethernet-CAN协议转换器
CN111464414A (zh) * 2014-07-10 2020-07-28 松下电器(美国)知识产权公司 车载网络系统、电子控制单元、接收方法以及发送方法
KR101780278B1 (ko) * 2014-10-17 2017-09-21 현대자동차주식회사 Can 통신에서의 통신 부하 절감 방법 및 장치
JP6173541B2 (ja) * 2015-10-09 2017-08-02 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America セキュリティ装置、攻撃検知方法及びプログラム
JP6879789B2 (ja) * 2016-05-27 2021-06-02 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America ゲートウェイ装置、車載ネットワークシステム、転送方法及びプログラム
JP6890025B2 (ja) * 2016-05-27 2021-06-18 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America 電子制御ユニット、フレーム生成方法及びプログラム
JP6962697B2 (ja) * 2016-05-27 2021-11-05 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America ネットワークハブ、転送方法及び車載ネットワークシステム
JP6729426B2 (ja) * 2017-01-30 2020-07-22 株式会社デンソー 中継装置
KR102368605B1 (ko) * 2017-07-31 2022-03-02 현대자동차주식회사 이종망간 데이터 전송 방법
CN107483370B (zh) * 2017-09-14 2020-07-03 电子科技大学 一种在fc网络上传输ip和can业务的方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015089092A (ja) * 2013-11-01 2015-05-07 ティー・エイチ・エヌ・コーポレーションTHN Corporation パケットをパッケージングする方法、アンパッケージングする方法、及びこれを利用する装置
JP2016111477A (ja) * 2014-12-04 2016-06-20 トヨタ自動車株式会社 通信システム、及びゲートウェイ
JP2017118407A (ja) * 2015-12-25 2017-06-29 株式会社デンソー 通信システム
WO2017203902A1 (ja) 2016-05-27 2017-11-30 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ ゲートウェイ装置、車載ネットワークシステム、転送方法及びプログラム
JP2020096251A (ja) * 2018-12-11 2020-06-18 トヨタ自動車株式会社 中継装置

Also Published As

Publication number Publication date
JP7151931B2 (ja) 2022-10-12
EP4231594A4 (en) 2023-11-15
US20230327907A1 (en) 2023-10-12
EP4231594A1 (en) 2023-08-23
CN114667716A (zh) 2022-06-24
JPWO2022085057A1 (ja) 2022-04-28

Similar Documents

Publication Publication Date Title
US11595422B2 (en) Method for preventing electronic control unit from executing process based on malicious frame transmitted to bus
US10974669B2 (en) Gateway device, vehicle network system, and transfer method
US11971978B2 (en) Vehicle network system whose security is improved using message authentication code
US10104094B2 (en) On-vehicle communication system
CN104717201B (zh) 网络装置以及网络系统
RU2712138C2 (ru) Способ, система и электронный блок управления для предотвращения спуфинга в автомобильной сети
US20180167216A1 (en) Network message authentication and verification
US11838303B2 (en) Log generation method, log generation device, and recording medium
EP3451577B1 (en) Computing device, authentication system, and authentication method
US20170134358A1 (en) Communication system, communication control device, and fraudulent information-transmission preventing method
EP3772839B1 (en) Security module for a serial communications device
US11729021B2 (en) User station for a serial bus system and method for communication in a serial bus system
US20200412756A1 (en) Communication control device, anomaly detection electronic control unit, mobility network system, communication control method, anomaly detection method, and recording medium
US20150350241A1 (en) Data frame for protected data transmissions
WO2022085057A1 (ja) 中継装置、通信ネットワークシステム及び通信制御方法
US11757745B2 (en) Gateway apparatus, abnormality monitoring method, and storage medium
JP2022067012A (ja) 中継装置、通信ネットワークシステム及び通信制御方法
JPWO2022085057A5 (ja)
EP4231595A1 (en) Relay device, communication network system, and communication control method
JP7453404B2 (ja) 通信システム、中継装置、受信装置及び通信制御方法
CN117997670A (zh) Can控制器、can装置和用于can控制器的方法
CN117728969A (zh) 用于在系统中引入缓解措施的计算机实现的方法
Lakshmi et al. Secure Communication between Arduinos using Controller Area Network (CAN) Bus
JP2015112963A (ja) 車載ネットワークシステム
BR102013028483A2 (pt) transceptor de interface para redes can/ethernet

Legal Events

Date Code Title Description
ENP Entry into the national phase

Ref document number: 2022504680

Country of ref document: JP

Kind code of ref document: A

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20945715

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020945715

Country of ref document: EP

Effective date: 20230519