WO2017141546A1 - Redundant communication system and redundant communication system restoration method - Google Patents

Redundant communication system and redundant communication system restoration method Download PDF

Info

Publication number
WO2017141546A1
WO2017141546A1 PCT/JP2016/088562 JP2016088562W WO2017141546A1 WO 2017141546 A1 WO2017141546 A1 WO 2017141546A1 JP 2016088562 W JP2016088562 W JP 2016088562W WO 2017141546 A1 WO2017141546 A1 WO 2017141546A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
network
ecu
transmitted
vehicle
Prior art date
Application number
PCT/JP2016/088562
Other languages
French (fr)
Japanese (ja)
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 日立オートモティブシステムズ株式会社
Publication of WO2017141546A1 publication Critical patent/WO2017141546A1/en

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/46Interconnection of networks

Definitions

  • the present invention relates to a redundant communication system and a recovery method of the redundant communication system, and more particularly, to a redundant communication system suitable for use in an in-vehicle communication system that improves the safety of network communication between electronic control units of automobiles, and the redundant communication system.
  • the present invention relates to a communication system recovery method.
  • the in-vehicle network forms a closed network for each domain, such as a control system that controls the engine and brakes, a safety system that performs peripheral recognition by sensors, an information system such as car navigation, etc. is doing.
  • a necessary bandwidth and an allowable cost are different for each domain, and a method suitable for each domain is selected.
  • the standard proposed for each domain is that the control domain is LIN (LOCAL Interconnect Network) or CAN (Controller Area Network), the safety domain is CAN or CAN FD (CAN with Flexible Data Rate), Information systems include MOST (MEDIA Oriented Systems Transport). Since each conventional ECU has a low necessity for cooperation between domains, the domains have been connected to each other (normal operation can be guaranteed even if disconnected).
  • Patent Document 1 describes a technology for bus-connecting such ECUs to two GWs (NIM: Network Interface Module in Patent Document 1).
  • data from the ECU is transmitted to two GWs at the same time using the broadcast property of the bus connection, and even if a GW failure occurs, arbitration is performed between the GWs. By doing so, it is possible to select data to be transferred. Also during the arbitration between GWs, the broadcast of the bus connection is used, and regular communication is performed between the GWs to check the normality in the bus connection network to which the ECU is connected. Determine and switch GW.
  • each ECU is connected to two GWs by bus, and regular communication is performed between the GWs by a bus connection network to which the ECU is connected for normality check.
  • the present invention has been made to solve the above-mentioned problems, and its purpose is to ensure the safety of the network regardless of the network type for each ECU domain, and to reduce the amount of ECU data, such as the addition of an Ethernet network. It is an object of the present invention to provide an in-vehicle redundant communication system that can freely change a new network type accompanying an increase or the like.
  • a redundant communication system is a redundant communication system including a GW (GateWay) for controlling a path of a frame and an ECU (Electronic Control Unit) for transmitting and receiving the frame. It consists of GW, 2nd GW, 1st ECU, and 2nd ECU, and 1st ECU is connected to both 1st GW and 2nd GW by the 1st network.
  • the second ECU is connected to both the first GW and the second GW by a second network, and the first GW and the second GW are connected by a management network. Then, the first GW and the second GW transmit and receive a management frame for notifying each other's communication state via the management network.
  • the first ECU transmits a frame to the second ECU
  • the first ECU transmits the same frame to the first GW and the second GW, and the first GW and the second GW
  • the GW receives the frame, and according to each communication state, one of the first GW and the second GW discards the received frame, and the other of the first GW and the second GW has received it.
  • the frame is transmitted to the second ECU via the second network.
  • a new network type can be freely changed due to an increase in the amount of data of the ECU, such as addition of an Ethernet network, while ensuring the safety of the network. It is possible to provide a vehicle-mounted redundant communication system.
  • FIG. 1 is a block diagram illustrating functions and configurations of devices related to the ECU.
  • ECU 1000 has a function of receiving input from sensors 2000 and performing information processing based on the input to operate actuators 3000 and transmit information.
  • the ECU 1000 includes an input processing circuit 1001, an A / D conversion circuit 1002, a power supply circuit 1003, a microcomputer 1100, an in-vehicle network I / F (InterFace) circuit 1004, a transceiver 1005, an output processing circuit 1006, and a power device 1007.
  • an input processing circuit 1001 an A / D conversion circuit 1002, a power supply circuit 1003, a microcomputer 1100, an in-vehicle network I / F (InterFace) circuit 1004, a transceiver 1005, an output processing circuit 1006, and a power device 1007.
  • I / F InterFace
  • Sensors 2000 include a sensor element 2001, a sensor circuit 2002, and a switch 2003.
  • Sensor element 2001 is a sensor element that measures, for example, position / angle, acceleration / vibration, flow velocity / flow rate, temperature, and the like.
  • the measurement result of the sensor element 2001 is input to the sensor circuit 2002, and a signal is input from the sensor circuit 2002 to the input processing circuit 1001 of the ECU 1000. Then, the signal from the input processing circuit 1001 is subjected to analog-digital conversion by the AD conversion circuit 1002 and input to the microcomputer 1100.
  • the microcomputer 1100 includes a CPU (Central Processing Unit) 1101, a memory 1102, an I / O circuit 1103, and a timer 1104, refers to data stored in the memory 1102, executes a program, performs information processing, and results thereof Is transmitted to the output processing circuit 1006, the in-vehicle communication I / F circuit 1004, and the transceiver 1005.
  • a CPU Central Processing Unit
  • memory 1102 a memory 1102
  • I / O circuit 1103 an I / O circuit 1103
  • timer 1104 refers to data stored in the memory 1102, executes a program, performs information processing, and results thereof Is transmitted to the output processing circuit 1006, the in-vehicle communication I / F circuit 1004, and the transceiver 1005.
  • the output result of the output processing circuit 1006 is input to the power device 1007 that controls power, and a signal that controls the operation of the actuator 3003 is transmitted from the power device 1007.
  • Actuator 3002 is an operation element such as a motor, a solenoid, a piezoelectric element, an ignition coil, a lamp, and a display.
  • Data transmitted to the in-vehicle communication I / F circuit 1004 and the transceiver 1005 is converted into a signal that conforms to a wired / wireless prescribed communication protocol, and is transmitted to another ECU 3001 or a smart actuator 3002 that is an intelligent actuator.
  • FIG. 2 is a diagram showing the configuration and data flow of an in-vehicle redundant communication system.
  • the ECU-A (10a) is connected to two in-vehicle GW-1 (20-1) and in-vehicle GW-2 (20-2) by Ethernet ETH-1 and Ethernet ETH-2.
  • ECU-B1 (10b1), ECU-B2 (10b2), ECU-B3 (10b3) (hereinafter referred to as ECU-B (10b) when one of them is shown) is connected to a CAN bus (CAN).
  • CAN CAN bus
  • the ECU-A (10a), the ECU-B1 (10b1), the ECU-B2 (10b2), and the ECU-B3 (10b3) are composed of two in-vehicle GW-1 (20-1) and in-vehicle GW-2 (20 -2) A case where data is transmitted and received as a frame will be described.
  • the connection method between each ECU and the in-vehicle GW is not limited to this, and the same method can be applied to other point-to-point connection networks such as MOST and other bus connection networks such as LIN.
  • the combination of ECUs that transmit and receive data is also different from that of the in-vehicle GW such as ECU-A, ECU-B1 (10b1), ECU-B2 (10b2), and ECU-B3 (10b3).
  • Ethernet point-to-point connection not only when one is connected by bus, but also between other ECUs connected to in-vehicle GW by point-to-point connection network, or other ECUs connected to in-vehicle GW by bus connection network Even between them, the idea of the present invention is applicable.
  • the transmission frame from the ECU-A (10a) is copied inside the ECU-A (10a), and with the same contents, the frame Et1 and the frame Et2 are the in-vehicle GW-1 (20-1) and the in-vehicle GW-2. (20-2), respectively.
  • the transmission frame from the ECU-B (10b) is copied when branching from the CAN bus (CAN-b) as the CAN bus (CAN-1, CAN-2), and the frame Ct1 has the same contents.
  • the frame Ct2 is transmitted to the in-vehicle GW-1 (20-1) and the in-vehicle GW-2 (20-2), respectively.
  • the in-vehicle GW-1 (20-1) and the in-vehicle GW-2 (20-2) are connected to each other by Ethernet ETH-11 and Ethernet ETH-12 which are management Ethernet lines different from the connection to the ECU. It is connected.
  • OAM management frame
  • sending / receiving (Operation, “Administration” and “Maintenance) frames”) one of the copy frames received from each ECU is discarded as a frame from a path (non-selected path) where no frame transfer is performed.
  • the frame Cr1 and the frame Er1 for only the frame transfer path (selected path) are transmitted to each ECU.
  • the in-vehicle GW or the connection network (Ethernet ETH-1, Ethernet ETH-2, CAN bus (CAN-1), CAN bus (CAN-2)) between each ECU and the in-vehicle GW has failed.
  • the information is shared between the in-vehicle GW-1 and the in-vehicle GW-2, and when the selected path is affected, the unselected path is changed to the selected path and the frame is transferred to recover from the failure. It is possible.
  • FIG. 3 is a diagram showing a format of a CAN frame 41 transmitted and received by the in-vehicle GW with the ECU-B (10b).
  • FIG. 4 is a diagram showing the format of the Ethernet frame 40 that the in-vehicle GW transmits / receives to / from the ECU-A (10a) or another in-vehicle GW.
  • FIG. 5 is a diagram showing the format of the OEM payload.
  • the CAN frame 41 includes an SOF (Start of Frame) 411, an arbitration 412, a control 413, data 414, a CRC (Cyclic Redundancy Check) 415, an ACK (Acknowledgement) 416, and an EOF (End of Frame). 417.
  • SOF Start of Frame
  • arbitration 412 a control 413
  • data 414 a control 413
  • CRC Cyclic Redundancy Check
  • ACK Acknowledgement
  • EOF End of Frame
  • Arbitration 412 is an area for storing network control information, and has a CAN ID value (CAN ID #) serving as a flow identifier.
  • the control 413 is an area for storing frame information, and stores the field length of data 414 transmitted and received by the ECU-b (10b).
  • the Ethernet frame 40 includes a MAC header including a destination MAC address 401, a transmission source MAC address 402, a VLAN tag 403, a type value 404 indicating the type of the subsequent header, a payload 405, and a frame check sequence. (FCS) 406.
  • FCS frame check sequence.
  • the VLAN tag 403 has a VLAN ID value (VID #) as a flow identifier.
  • VID # VLAN ID value
  • the payload 405 in the case of the frame 40 transmitted and received between the in-vehicle GW and the ECU-A (10a), data and the like transmitted and received between each ECU and the ECU are stored. Further, a frame 40 transmitted and received between the in-vehicle GW and the ECU-B (10b) and data 414 of the CAN frame 41 from the ECU-B (10b) are stored.
  • An OAM payload 4051 described below is stored in the payload 405 of the frame 40 transmitted and received between the in-vehicle GWs.
  • the OAM payload 4051 includes a flow ID 40511 and a switching processing state 40512 as shown in FIG.
  • the flow ID 40511 is a flow identifier in the in-vehicle GW that is the transmission source of the OAM frame 40.
  • the switching process state 40512 stores a value of a switching process state indicating a state related to the selected path of the flow ID 40511 (detailed later).
  • the flow ID is an identifier of a network flow used for both the user frame and the management frame, and the method of assigning the flow ID needs to maintain consistency in all in-vehicle GWs.
  • the Ethernet frame 40 or the CAN frame 41 transmitted / received between the ECU-A (10a) and the ECU-B (10b) is an all-vehicle GW (GW-1, GW-2).
  • the flow ID 40511 should use the ID of the same number for uniquely identifying.
  • FIG. 6 is a sequence diagram illustrating a process of transmitting a frame between ECUs.
  • FIG. 7 is a sequence diagram showing processing for transmitting an OAM frame between in-vehicle GWs.
  • 8A and 8B are sequence diagrams illustrating a process of transmitting an OAM frame when switching a selected path between in-vehicle GWs.
  • the Ethernet frame 40 is copied and transmitted to each of the in-vehicle GW-1 (20-1) and the in-vehicle GW-2 (20-2) for transmission to two routes. (Frame Et1 and Frame Et2).
  • the in-vehicle GW-1 (20-1) that has received the frame 40 determines whether or not to transfer depending on whether or not the frame 40 (frame Et1) is transmitted / received on the selected path (P101- 1).
  • the in-vehicle GW-1 (20-1) converts the frame 40 into the format of the CAN frame 41, Transfer as a frame (frame Cr1) of the selected path (P102-1). As a result, the frame 41 (frame Cr1) is transferred to the ECU-B (10b).
  • the in-vehicle GW-2 (20-2) that has received the frame 40 also determines whether or not to transfer depending on whether or not the frame 40 (frame Et2) is transmitted / received on the selected path ( P101-2). In this case, since the path on the in-vehicle GW-2 side is a non-selected path to the ECU-B (10b), the frame 40 (frame Et2) is discarded.
  • the CAN frame 41 from the ECU-B (10b) is copied to all the in-vehicle GWs (the in-vehicle GW-1 and the in-vehicle GW-2) connected to the bus (frame Ct1 and frame Ct2). In this case, since it is a bus connection, no special processing is required in the ECU-B (10b), and a frame is simply flowed to the bus.
  • the in-vehicle GW-1 (20-1) that has received the frame 41 determines whether to transfer the frame 41 according to whether or not the frame 41 is transmitted / received on the selected path (P103-1). .
  • the path on the in-vehicle GW-1 side is a selection path to the ECU-A (10a)
  • the in-vehicle GW-1 converts the frame 41 into the format of the Ethernet frame 40, and the frame of the selected path (frame The data is transferred as Er1) (P104-1).
  • the frame 40 is transferred to the ECU-A (10a).
  • the in-vehicle GW-2 (20-2) that has received the frame 41 determines whether or not to transfer depending on whether or not the frame 41 is transmitted / received on the selected path (P103- 2).
  • the on-vehicle GW-2 side path is a non-selected path to the ECU-A (10a), so the frame 41 (frame Ct2) is discarded.
  • the in-vehicle GWs (in-vehicle GW-1 and in-vehicle GW-2) periodically transmit the OAM frame 40 according to the transmission period (period CYC-1 and period CYC-2) of the OAM frame 40 (P201-1 and P201). -2).
  • the length and timing of the OAM transmission cycle (cycle CYC-1 and cycle CYC-2) are the same, but they are not necessarily the same.
  • each in-vehicle GW (in-vehicle GW-1 and in-vehicle GW-2) has not detected a failure, an OAM frame (frame ON-1 and frame ON-2) for notifying the state of each in-vehicle GW is transmitted. Is done.
  • Each in-vehicle GW that has received the OAM frame (frame ON-1 and frame ON-2) performs reception processing such as extraction of necessary information from the OAM payload 4051 shown in FIG. 5 (P202-1 and P202-). 2).
  • the in-vehicle GW-1 (20-1) When the Ethernet ETH-1 between the ECU-A (10a) and the in-vehicle GW-1 is disconnected (DEF-1), the in-vehicle GW-1 (20-1) recognizes that no frame is transmitted for a certain period of time, and the link is disconnected. Is detected (P301). After detecting link disconnection, in the regular OAM transmission process (P302-1), the in-vehicle GW-1 (20-1) requests switching instead of the normal status notification OAM frame (frame ON-1). An OAM frame (frame OR-1) is transmitted.
  • the in-vehicle GW-2 (20-2) that has received the OAM frame (frame OR-1) requesting the switching performs the reception process (P303-2) of the OAM frame (frame OR-1),
  • the in-vehicle GW-1 (20-1) recognizes that there is a switching request, and transmits an OAM frame (frame OA-2) indicating a switching response in the next OAM transmission processing (P304-2).
  • the in-vehicle GW-1 (20-1) that has detected the link disconnection (DEF-1) performs the normal OAM reception process (P202-1) and the opposite in-vehicle GW-2 (20-).
  • the OAM frame (frame OR-1) requesting switching is continuously transmitted (P304-1).
  • the in-vehicle GW-1 that has received the OAM frame (frame OA-2) indicating the switching response performs the reception process (P305-1) of the OAM frame (frame OA-2), and as a result, the in-vehicle GW-2 that faces the in-vehicle GW-2 Recognizing that there is a switching response from (20-2), the selected path is changed to a non-selected path. Further, in the next OAM transmission process (P306-1), an OAM frame (frame OS-1) indicating completion of switching is transmitted.
  • the opposite in-vehicle GW-2 (20-2) performs reception processing (P305-2) and also displays an OAM frame (frame OS-) indicating a switching notification from the opposite in-vehicle GW-1 (20-1). Until 1) is received, the OAM frame (frame OA-2) responding to the switching is continuously transmitted (P306-2).
  • the in-vehicle GW-2 (20-2) that has received the OAM frame (frame OS-1) indicating the completion of switching performs the reception process (P306-2) of the OAM frame (frame OS-1),
  • the in-vehicle GW-1 (20-1) recognizes that the switching has been completed, switches the non-selected path to the selected path, and in the next OAM transmission processing (P307-2), the OAM frame (frame OS indicating the switching completion) -2) is transmitted.
  • both in-vehicle GWs periodically transmit and receive OS-1 and OS-2, which are OAM frames for which switching has been completed.
  • the in-vehicle GW-1 (20-1) receives the OAM frame indicating the switching response from the opposite in-vehicle GW-2 (20-2), the in-vehicle GW-1 (20-1) transmits the switching request. Immediately, the state may be shifted to a switching completion state.
  • the above selected path switching process sequence (P300) is the same when the CAN bus (CAN-1) between the ECU-B (10b) and the in-vehicle GW-1 is disconnected, except for the failure detection method. .
  • CAN bus (CAN-1) is disconnected, a period in which one frame is transmitted / received for each flow of the CAN frame 41 is determined from the viewpoint of system specifications. When 41 is not received, it shall be regarded as a disconnection. That is, in this case, from the viewpoint of this system specification, the transmission period (period CYC-1 and period CYC-2) of the OAM frame 40 is determined for the CAN frame 41 in accordance with the period during which one frame is transmitted and received for each flow. It shall be.
  • the in-vehicle GW-1 (20-1) fails (DEF-2), the status notification OAM frame (frame ON-1) from the opposite side cannot be received.
  • the in-vehicle GW-2 (20-2) monitors whether or not the OAM frame 40 is received every OAM transmission cycle (CYC-2). If no frame can be received during that period, no OAM reception ( 1st period) is detected (P402-2).
  • the failure (DEF-2) of the opposite in-vehicle GW-1 (20-1) is determined, and the unselected path is switched to the selected path (P406-2). Thereafter, in the periodic OAM transmission process (P407-2), the OAM frame (frame OS-2) for which switching has been completed is transmitted, and thereafter the frame (frame OS-2) is periodically transmitted.
  • the path switching process can be performed as described above when a failure or disconnection occurs in the Ethernet line, the CAN bus, and the in-vehicle GW in which the selected path is conducted.
  • FIG. 9 is a block diagram showing the configuration of the in-vehicle GW.
  • FIG. 10 is a diagram showing the format of the in-device header.
  • FIG. 11 is a diagram illustrating an Ethernet reception table.
  • FIG. 12 is a diagram illustrating a CAN reception table.
  • FIG. 13 is a diagram illustrating a switching table.
  • FIG. 14 is a diagram illustrating a CAN transmission table.
  • FIG. 15 is a diagram illustrating an OAM table.
  • the in-device header 45 is a header added in the device for frame processing inside the in-vehicle GW. As shown in FIG. 10, the flow ID 451, the input port ID 452, the OAM flag 453, the frame length 454, It consists of multiple fields that indicate
  • the flow ID 451 stores an identifier for identifying the flow.
  • the input port ID 452 stores whether the input port of the frame is an Ethernet frame or a CAN frame.
  • the OAM flag 453 stores whether the frame is an OAM (management) frame or a user frame. Here, it is assumed that “1” is a management frame and “0” is a user frame.
  • the frame length 454 stores the frame length of the frame in bytes.
  • the in-device header 45 is deleted when output from the output port.
  • the Ethernet reception table 21 is a table that uses the VLAN ID as a search key to determine the processing contents of the input frame to the Ethernet port, the flow ID, and the like. As shown in FIG. 11, the VLAN ID 211, the discard flag 212, It consists of a tag process 213, a new VLAN ID 214, a CoS process 215, a new CoS 216, and a flow ID 217.
  • the discard flag 212 is a flag indicating whether to transmit or discard the frame of the entry.
  • the tag processing 213 and the CoS processing 215 specify VLAN tag processing for the input frame, and tag information necessary for the VLAN tag processing is set in the new VLAN ID 214 and the new CoS 216.
  • the tag process 213 and the CoS process 215 are set to “transparent”, and invalid values are set to the new VLAN ID 214 and the new CoS 216, because it is only necessary to transmit without change.
  • the flow ID 217 stores a value indicating the flow ID to which the entry belongs.
  • a dedicated VLAN ID is assigned for transmission / reception of the OAM frame 40 between the vehicle-mounted GWs, and is registered as an entry different from the frame 40 from the ECU-A (10a).
  • the CAN reception table 23 is a table for determining the processing contents of the input frame to the CAN port, the flow ID, and the like using the CAN ID 231 as a search key.
  • the CAN ID 231, the discard flag 232, It consists of tag processing 233, new VLAN ID 234, CoS processing 235, new CoS 236, flow ID 237, and number of received frames 238.
  • the discard flag 232 indicates whether the frame of the entry is to be transmitted or discarded. It is a flag to show.
  • the tag processing 233 and the CoS processing 235 specify VLAN tag processing for the input frame, and tag information necessary for this is set in the new VLAN ID 234 and the new CoS 236.
  • the tag processing 233 and the CoS processing 235 are set to “add”, and valid values are set to the new VLAN ID 234 and the new CoS 236. Is done.
  • the flow ID 237 stores the flow ID to which the entry belongs.
  • the number of received frames 238 stores the number of frames received by the flow in a certain period (OAM transmission cycle CYC in this embodiment).
  • the switching table 22 is a table for defining the switching operation of the in-vehicle GW, and includes a flow ID 221, an input port ID 222, and an output port ID 223 as shown in FIG.
  • the in-vehicle GW searches the value of the output port ID 223 from the switching table 22 using the combination of the flow ID 221 and the input port ID 222 as a search key.
  • the input port ID 222 is physically fixedly assigned to each communication port, and can be uniquely determined depending on from which communication port the input frame is received.
  • the switch processing unit 104 (described later) thereby searches the switching table 22.
  • the CAN transmission table 25 is a table for determining a CAN ID assigned to an output frame to the CAN port, and includes a flow ID 251 and a CAN ID 252 as shown in FIG.
  • the in-vehicle GW searches for the value of the CAN ID 252 using the flow ID 251 as a search key.
  • the CAN ID 252 stores the CAN ID of the arbitration 412 necessary when converting from the Ethernet frame 40 to the CAN frame 41.
  • the OAM table 24 is a table for searching for information related to OAM using the flow ID as a search key. As shown in FIG. 15, the flow ID 2401, the valid flag 2402, the number of OAM receptions 2403, and the OAM not received. From the number of times 2404, the opposite GW failure 2405, the ECU port ID 1 (2406), the ECU port ID 2 (2407), the switching process state 2408, the opposite GW switching process state 2409, the path setting 2410, and the selected path 2411 become.
  • the valid flag 272 is a flag indicating the validity of this entry. When this flag is invalid (the entry is not used), the processing related to the OAM frame is not performed. Further, the number of OAM received stores the number of OAM frames received in CYC during the OAM transmission period.
  • the OAM non-reception count 2404 is counted up when no OAM frame is received in the CYC during the OAM transmission period, and is cleared to “0” when any OAM frame is received.
  • the opposite GW failure 2403 is normally “0” (normal), but when the OAM non-reception frequency 2404 is equal to or greater than a certain number (3 in the present embodiment), the failure of the opposite in-vehicle GW is determined. 1 '(failure) is set.
  • ECU port ID1 (2406) and ECU port ID2 (2407) are connected to ECUs that communicate with each other, and store ports for transmitting and receiving frames.
  • the port ID to be set includes information on the type of communication port when the port ID is assigned (for example, an ID starting with 'E' is an Ethernet port, and an ID starting with 'C' is a CAN port From the setting value, it can be seen whether the communication port is the Ethernet port 101 or the CAN port 102.
  • the Ethernet port 101 connected to the ECU-A (10a) is connected to the ECU port ID1 (2406)
  • the CAN port 102 connected to the ECU-B (10b) is connected to the ECU port ID2 (2407).
  • the reverse setting may be used.
  • the switching processing state 2408 holds the state of the switching processing of the flow, and holds “status notification”, “switching request”, “switching response”, or “switching complete”.
  • the opposite GW switching processing state 2409 holds the latest switching processing state 40512 stored in the OAM frame 40 of FIG. 5 received from the opposite vehicle-mounted GW.
  • the path setting 2410 indicates the path setting of the flow, and is used when there is no failure if it is “active”, and is used when a failure occurs in the “active” path if it is “standby”. Indicates the path.
  • the selected path 2411 holds the currently selected path, and holds “working” or “reserve”.
  • the in-vehicle GW includes a plurality of Ethernet ports 101 (101-1 to 101-n) serving as input / output interfaces with Ethernet (registered trademark) and a plurality of CAN ports 101 (102-1 to 102-1 serving as input / output interfaces with CAN). 102-n) and are connected to each ECU via these communication ports.
  • the ECU-A (10a) is connected via the Ethernet port 101 and the ECU-B (10b) is connected via the CAN port 102.
  • the in-vehicle GW is connected to the Ethernet processing unit 103 (103-1 to 103-n) connected to the Ethernet port 101, the switch processing unit 104 connected to the Ethernet processing unit 103, and the switch processing unit 104.
  • the CAN processing unit 105 is connected to the CAN port 102.
  • the in-vehicle GW When the in-vehicle GW receives the Ethernet frame 40 from the communication port, the in-device header 45 shown in FIG. 10 is added to the received frame.
  • the in-vehicle GW stores the port ID acquired from the register 107 in the input port ID 452 and the frame length counted during reception in the frame length 454.
  • the flow ID 451 and the OAM flag 453 are blank. As described later, an effective value is set in this field by the Ethernet processing unit 103 or the CAN processing unit 105.
  • the Ethernet processing unit 103 performs an Ethernet reception process S100 described later, refers to the following Ethernet reception table 21, and sets the flow ID 451 and the OAM flag 453 in the in-device header 45 of the input frame from each Ethernet port 101. In addition to adding, perform other header processing. As a result of the Ethernet reception process S100, the input frame is transferred to the switch processing unit 104 or discarded.
  • the CAN processing unit 105 performs a CAN reception process S200 described later, adds a flow ID 451 to the in-device header 45 of the input frame from each CAN port 102 with reference to the CAN reception table 23 shown in FIG. In addition, other header processing is performed. As a result of the CAN reception process S200, the input frame is transferred to the switch processing unit 104 or discarded.
  • the switch processing unit 104 receives an input frame from each Ethernet processing unit 103 and each CAN processing unit 105, specifies an output port ID from the switching table 22, and sends it to the corresponding Ethernet processing unit 103 or CAN processing unit 105 as an output frame. Forward. However, when “1” (management frame) is set in the OAM flag 453 of the in-device header 45, the frame is an OAM frame to be terminated in the in-vehicle GW, and therefore the OAM processing unit 106 is referred to. Forward.
  • the output frames received by the switch processing unit 104 that are user frames are sequentially supplied to the Ethernet processing unit 103 or the CAN processing unit 105.
  • the Ethernet processing unit 103 outputs the received output frame to the Ethernet port 101.
  • the CAN processing unit 105 performs CAN transmission processing S300, which will be described later, and refers to the CAN transmission table 25 shown in FIG. 14 by the flow ID 451 of the in-device header 45 of each output frame, and performs header processing. .
  • the output frame is output to the CAN port 102.
  • the OAM processing unit 106 that has received the OAM frame from the switch processing unit 104 refers to the OAM table 24 shown in FIG. 15 and performs OAM reception processing S400 on the received OAM frame.
  • FIG. 16 is a flowchart showing the Ethernet reception process S100.
  • FIG. 17 is a flowchart showing the CAN reception process S200.
  • FIG. 18 is a flowchart of the CAN transmission process S300.
  • FIG. 19 is a flowchart of the OAM reception process S400.
  • FIG. 20 is a flowchart of the OAM polling process S500.
  • FIG. 21 is a flowchart of the facing GW failure determination process S600.
  • FIG. 22 is a flowchart of ECU port failure determination processing S700.
  • FIG. 23 is a diagram showing a switching process state by the OAM polling process S500 and a state selection table used for updating the selected path.
  • the Ethernet processing unit 103 acquires the VLAN ID from the VLAN tag 403 of the Ethernet frame 40 (FIG. 4) received from the Ethernet port 101, searches the Ethernet reception table 21 shown in FIG. And the flow ID 217 acquired from the Ethernet reception table 21 is overwritten on the flow ID 451, and the VLAN tag 403 is processed according to the tag processing 213 and the CoS processing 215 specified in the Ethernet reception table 21 (all “transparent” in this embodiment). (S102). Then, it is checked whether or not the discard flag 212 acquired from the Ethernet reception table 21 is “1” (discard) (S103). If it is not “1” (discard), the frame is transferred to the switch processing unit 104 (S104). The process is terminated (S108).
  • the frame is discarded because it is a user frame of a non-selected path (S107), and the process is terminated (S108).
  • the CAN processing unit 105 acquires the CAN ID from the arbitration 412 of the input CAN frame 41 (FIG. 3) received from the CAN port 102, searches the CAN reception table 23, and sets 1 to the value of the current number of received frames 238. The added value is stored in the number of received frames 238 (S201).
  • the CAN header other than the data 414 of the CAN frame 41 is deleted, and this data 414 is used as the payload 405, and other Ethernet headers (destination MAC address 401, transmission) Only the fields of the original MAC address 402, VLAN tag 403, Ethernet type 404 and FCS 406) are added, and an invalid value is input (S203).
  • the flow ID 237 acquired from the CAN reception table 23 is overwritten on the flow ID 451 of the in-device header 45, and the VLAN tag 403 is processed according to the tag processing 233 and the CoS processing 235 specified in the CAN reception table 23 (this embodiment). In the form, all are “added.” In other fields, the holding value of the register 107 is added (S204).
  • the CAN processing unit 105 acquires the flow ID 451 of the in-device header 45 of the output Ethernet frame 40 (FIG. 3) received from the switch processing unit 104, and searches the CAN transmission table 25 shown in FIG. 14 (S301).
  • the Ethernet header (destination MAC address 401, transmission source MAC address 402, VLAN tag 403, Ethernet type 404 and FCS 406) of the frame is deleted, and only the field of the CAN header (other than data 414) is added, Inputs an invalid value, and adds the acquired CAN ID 252 to the arbitration 412 (the other field adds the value held in the register 107) (S302). Then, the frame is transferred to the CAN port 102 (S303), and the process ends (S304).
  • the OAM processing unit 106 searches the OAM table shown in FIG. 15 by the flow ID 40511 of the OAM payload 4051 shown in FIG. 5 (S401), and adds “1” to the OAM reception number 2403.
  • the OAM unreceived count 2404 is cleared to “0”, and the frame switching processing state 40512 received in the opposite GW switching processing state 2409 is written back to the same entry in the OAM table 25 (S402), and the packet is discarded ( The process is terminated (S404).
  • the OAM processing unit 106 executes this polling process at an OAM frame transmission cycle CYC interval.
  • the OAM processing unit 106 initializes the internal parameter i to “0” (S501).
  • '1' is added to the stored internal parameter i (S502), the internal parameter i is set as an index, the OAM table 24 is searched, and the table value is acquired and stored (S503).
  • the valid flag 252 of the OAM table 24 is “1” (valid) (S504). If the valid flag 252 of the OAM table 24 is not “1” (valid), the process goes to S507, If “1” (valid), the opposite GW failure determination process (S600) and the ECU port failure determination process (S700) are executed in parallel, and the held switching process state 2408 is set according to the state transition table 30 described later. The corresponding value and the value corresponding to the selected path 2411 are updated (S505) (detailed later).
  • the flow ID 451, the input port ID 452, and the OAM flag 453 are set as the in-device header 45 shown in FIG. 10, and the destination MAC address 401, the source MAC address 402, the Ethernet type 403,
  • the value held in the register 107 is set as the VLAN setting for transmitting / receiving the OAM frame 40 between the in-vehicle GW described above, and the internal parameter i (that is, the flow ID is # is set in the flow ID 40511 of the OAM payload 4051). 1, # 2, # 3,...), An OAM frame 40 in which the switching processing state updated and held in the switching processing state 50512 in S 505 is generated and transmitted to the switch processing unit 104. (S506).
  • the OAM processing unit 106 checks whether or not the opposite GW failure 2405 acquired from the OAM table 24 illustrated in FIG. 15 is “1” (failure) (S601), and if it is “1” (failure), the updated information. Is written back to the OAM table 24 (S607), and the process is terminated (S608).
  • the OAM reception number 2403 acquired from the OAM table 24 is not “0” in the determination process of S602, the OAM reception number 2403 and the OAM non-reception number 2404 acquired and held from the table are cleared to “0” (S606). ), The process from S607 is continued.
  • the OAM processing unit 106 checks whether the type of the communication port is Ethernet from the value of the ECU port ID 1 (2406) acquired from the OAM table 24 (S701), and if it is Ethernet, it corresponds to the ECU port ID 1 (2406). The presence or absence of link breakage is confirmed by the register 107 (S702). If link breakage is occurring, it is retained that the ECU port ID1 has failed (S703), and the process is terminated (S710).
  • the CAN reception table 23 shown in FIG. 12 is searched with the internal parameter i (FIG. 20) (S705). It is checked whether or not the number of received frames 238 in the CAN reception table 23 is “0” (S706), and if it is “0”, it means that a failure has occurred and that the ECU port ID1 has failed (S707). The process is terminated (S710).
  • ECU port ID1 (2407)
  • ECU port ID2 (2407)
  • the state transition table T30 includes a state number T301, a switching processing state T302, a path setting T303, a local input T304, a remote input T305, and a selected path T306.
  • the current state has eight states indicated by a state number T301, which is expressed by a combination of a switching processing state T302 and a path setting T303.
  • the local input T304 is a failure event that occurs in the in-vehicle GW determined in the opposing GW failure determination processing S600 and the ECU port failure determination processing S700
  • the remote input T305 is an opposing in-vehicle GW failure event that can be acquired in the OAM frame 40 It is.
  • the state transition table T30 “ ⁇ number” transitions to the state of the transition destination number, “ ⁇ ” maintains the current state, and “NA” (Non ”Analysis) indicates the state in the system specifications. Therefore, the state number T301, which is the default state, transitions to “1”. In the present embodiment, first, a transition according to the local input T304 is performed, and then a transition according to the remote input T305 is performed.
  • the state transition in the processing in the case of FIGS. 8A and 8B will be described with reference to the state transition table T30.
  • the Ethernet ETH-1 path connected to the in-vehicle GW-1 is the active path
  • the Ethernet ETH-2 path connected to the in-vehicle GW-2 is a spare.
  • the “ECU port failure 1” of the local input T304 occurs.
  • the in-vehicle GW-1 whose switching process state is “status notification” transitions to the state number 3 and the switching process state of the related flow becomes “switching request”.
  • a switching request is transmitted to the in-vehicle GW-2.
  • the event “switch request” of the remote input T305 has occurred, so the state transitions to the state number 6 and the switch processing state of the associated flow becomes “switch response”.
  • the switch response is transmitted to the opposite on-vehicle GW-1.
  • the in-vehicle GW-1 since the “switch response” event of the remote input T305 has occurred, the state transitions to the state number 7, the switching process state of the related flow becomes “switch complete”, and thereafter the in-vehicle GW At -1, a switch completion is transmitted to the opposite onboard GW-2. Further, the selected path 306 becomes “reserve”.
  • the in-vehicle GW-2 since the “switching complete” event of the remote input T305 has occurred, the state transitions to the state number 8 and the switching process state of the related flow becomes “switching complete”. -2 transmits a switch completion to the opposite on-vehicle GW-1. Further, the selected path 306 becomes “reserve”.
  • the in-vehicle GW-1 discards the frame of the related flow
  • the in-vehicle GW-2 converts the frame format (mutual conversion between the Ethernet frame and the CAN frame) to the frame transmitted to itself. ) And transmitted to the connected ECU.

Abstract

In the present invention, a first GW and a second GW transmit and receive, via a management network, management frames notifying each other of each other's communication state. When a first ECU transmits a frame to a second ECU, the first ECU transmits the same frame to the first GW and the second GW. The first GW and the second GW receive the frame and, in accordance with the communication state of each, either the first GW or the second GW destroys the received frame and the other one of the first GW and the second GW transmits the received frame to the second ECU via a second network. Consequently, changes are freely made to a new network type, such as adding an Ethernet network, in conjunction with an increase in ECU data volume or the like, while ensuring network safety, regardless of the type of network for each ECU domain.

Description

冗長通信システム、および、冗長通信システムの復旧方法Redundant communication system and recovery method of redundant communication system
 本発明は、冗長通信システム、および、冗長通信システムの復旧方法に係り、特に、自動車の電子制御ユニット間のネットワーク通信の安全性を高める車載通信システムに用いて好適な冗長通信システム、および、冗長通信システムの復旧方法に関する。 The present invention relates to a redundant communication system and a recovery method of the redundant communication system, and more particularly, to a redundant communication system suitable for use in an in-vehicle communication system that improves the safety of network communication between electronic control units of automobiles, and the redundant communication system. The present invention relates to a communication system recovery method.
 近年のカーエレクトロニクスの進展は著しく、多種多様な電子制御ユニット(ECU:Electronic Control Unit)が搭載されるようになってきている。そのようなECUでの情報をやり取りするため車載ネットワークは、エンジンやブレーキを制御する制御系、センサによる周辺認識などをおこなう安全系、カーナビゲーション等の情報系等のドメイン毎に閉じたネットワークを形成している。これは、ドメイン毎に必要な帯域と許容コストが異なり、ドメイン毎に適した方式を選択していたためである。例えば、それぞれのドメイン毎に提案されている規格は、制御系ドメインは、LIN(LOCAL Interconnect Network )やCAN(Controller Area Network)、安全系ドメインは、CANやCAN FD(CAN with Flexible Data Rate)、情報系は、MOST(MEDIA Oriented Systems Transport)等がある。そして、従来の各ECUは、ドメイン間で連携する必要性が低かったため、ドメイン間は祖な接続(切れても正常動作保証可能)であった。 In recent years, the progress of car electronics has been remarkable, and a wide variety of electronic control units (ECUs) have been installed. In order to exchange information with such an ECU, the in-vehicle network forms a closed network for each domain, such as a control system that controls the engine and brakes, a safety system that performs peripheral recognition by sensors, an information system such as car navigation, etc. is doing. This is because a necessary bandwidth and an allowable cost are different for each domain, and a method suitable for each domain is selected. For example, the standard proposed for each domain is that the control domain is LIN (LOCAL Interconnect Network) or CAN (Controller Area Network), the safety domain is CAN or CAN FD (CAN with Flexible Data Rate), Information systems include MOST (MEDIA Oriented Systems Transport). Since each conventional ECU has a low necessity for cooperation between domains, the domains have been connected to each other (normal operation can be guaranteed even if disconnected).
 しかしながら、近年の自動運転への注目の急速な高まりで、制御系ECUと安全系ECUのドメイン間の連携が必須となってきた。既にADAS(ADVANCED Driving Assistant System)のような簡易な自動化が普及し始めている。今後、自動運転の高度化に伴い、安全系のカメラやセンサ、レーザ等からの情報量が増大することが予測されている。従来のLINやCANは、バス接続ネットワークであるため、データレートが数Mbps以下と低く、このような要求に応えるため、近年の爆発的普及により低価格化、高信頼化が急速に進んでいるイーサネット(登録商標)の自動車への応用が注目されている。このように進化する自動運転は、最終的にはドライバ不在の完全自動運転の実現が期待されている。完全自動運転のためには、制御系ECUと安全系ECU間を接続するネットワークに障害が発生しても復旧し、自動運転を継続する必要がある。そこで、車載通信をおこなうゲートウェイ装置(GW:GateWay)を二重化し、各ECU間を二つのGWにバス接続をして、冗長通信システムを構成することが考えられる。このような各ECU間を二つのGW(特許文献1中では、NIM:Network Interface Module)にバス接続する技術に関しては、特許文献1に記載がある。 However, with the rapid increase in attention to automatic driving in recent years, cooperation between the domains of the control system ECU and the safety system ECU has become essential. Simple automation such as ADAS (ADVANCED Driving Assistant System) has already begun to spread. In the future, with the advancement of automated driving, it is predicted that the amount of information from safety cameras, sensors, lasers, etc. will increase. Since conventional LIN and CAN are bus connection networks, the data rate is as low as several Mbps or less, and in order to meet such a demand, the price has been rapidly reduced and the reliability has been rapidly increased due to the explosive spread in recent years. The application of Ethernet (registered trademark) to automobiles is attracting attention. Automatic driving that evolves in this way is ultimately expected to realize fully automatic driving without a driver. For fully automatic operation, it is necessary to recover even if a failure occurs in the network connecting the control system ECU and the safety system ECU and to continue the automatic operation. Therefore, it is conceivable to configure a redundant communication system by duplicating a gateway device (GW: GateWay) that performs in-vehicle communication, and connecting each ECU to two GWs by bus connection. Patent Document 1 describes a technology for bus-connecting such ECUs to two GWs (NIM: Network Interface Module in Patent Document 1).
 この特許文献1に記載された相互接続方法によれば、バス接続の同報性を利用し、ECUからのデータを二つのGWに同時に送信し、GW故障が発生しても、GW間で調停することにより転送するデータを選択することが可能である。このGW間の調停の際にもバス接続の同報性が利用し、GW間で正常性チェックのために定期通信をECUが接続されたバス接続ネットワークでおこない、この定期通信が途絶すると故障と判定し、GWを切り替える。 According to the interconnection method described in Patent Document 1, data from the ECU is transmitted to two GWs at the same time using the broadcast property of the bus connection, and even if a GW failure occurs, arbitration is performed between the GWs. By doing so, it is possible to select data to be transferred. Also during the arbitration between GWs, the broadcast of the bus connection is used, and regular communication is performed between the GWs to check the normality in the bus connection network to which the ECU is connected. Determine and switch GW.
特開平3-106144号公報Japanese Patent Laid-Open No. 3-106144
 上記特許文献では、各ECU間を二つのGWにバス接続し、GW間で正常性チェックのために定期通信をECUが接続されたバス接続ネットワークでおこなうものであった。 In the above-mentioned patent document, each ECU is connected to two GWs by bus, and regular communication is performed between the GWs by a bus connection network to which the ECU is connected for normality check.
 しかしながら、完全自動運転に向けては、既存のバス接続ネットワークに加えて、イーサネット等のようなポイント-ポイント接続ネットワークを高信頼に接続することが必要であるが、上述した復旧方式はバス接続ネットワークの同報性を利用しており、ポイント-ポイント接続ネットワークを含めた復旧をおこなうことができなかった。また、バス接続ネットワークは、低速であり、自動運転などの処理による情報量の爆発的増加には対応できないという問題点があった。 However, for fully automatic operation, in addition to the existing bus connection network, it is necessary to connect a point-to-point connection network such as Ethernet with high reliability. It was impossible to perform recovery including point-to-point connection networks. In addition, the bus connection network has a low speed and cannot cope with an explosive increase in the amount of information due to processing such as automatic driving.
 本発明は上記問題点を解決するためになされたもので、その目的は、ECUのドメイン毎のネットワーク種別に関係なく、ネットワークの安全性を確保しつつ、イーサネットネットワークの追加などECUのデータ量の増加等に伴う新たなネットワーク種別の変更を自由におこなうことができる車載の冗長通信システムを提供することにある。 The present invention has been made to solve the above-mentioned problems, and its purpose is to ensure the safety of the network regardless of the network type for each ECU domain, and to reduce the amount of ECU data, such as the addition of an Ethernet network. It is an object of the present invention to provide an in-vehicle redundant communication system that can freely change a new network type accompanying an increase or the like.
 上記課題を解決するため、本発明の冗長通信システムは、フレームの経路を制御するGW(GateWay)と、フレームを送受信するECU(Electronic Control Unit)とからなる冗長通信システムであって、第一のGWと、第二のGWと、第一のECUと、第二のECUとからなり、第一のECUは、第一のGWと第二のGWの双方に第一のネットワークにより接続されており、第二のECUは、第一のGWと第二のGWの双方に第二のネットワークにより接続されており、第一のGWと、第二のGWは、管理用ネットワークにより接続されている。そして、第一のGWと第二のGWとは、管理用ネットワークにより互いの通信状態を通知する管理用フレームを送受信する。第一のECUが第二のECUに対してフレームを送信する場合に、第一のECUは、第一のGWと第二のGWとに同一のフレームを送信し、第一のGWと第二のGWは、フレームを受信し、各々の通信状態に従い、第一のGWと第二のGWの一方は、受信したフレームを破棄し、第一のGWと第二のGWの他方は、受信したフレームを、第二のネットワークを介して第二のECUに送信するようにした。 In order to solve the above problems, a redundant communication system according to the present invention is a redundant communication system including a GW (GateWay) for controlling a path of a frame and an ECU (Electronic Control Unit) for transmitting and receiving the frame. It consists of GW, 2nd GW, 1st ECU, and 2nd ECU, and 1st ECU is connected to both 1st GW and 2nd GW by the 1st network. The second ECU is connected to both the first GW and the second GW by a second network, and the first GW and the second GW are connected by a management network. Then, the first GW and the second GW transmit and receive a management frame for notifying each other's communication state via the management network. When the first ECU transmits a frame to the second ECU, the first ECU transmits the same frame to the first GW and the second GW, and the first GW and the second GW The GW receives the frame, and according to each communication state, one of the first GW and the second GW discards the received frame, and the other of the first GW and the second GW has received it. The frame is transmitted to the second ECU via the second network.
 本発明によれば、ECUのドメイン毎のネットワーク種別に関係なく、ネットワークの安全性を確保しつつ、イーサネットネットワークの追加などECUのデータ量の増加等に伴う新たなネットワーク種別の変更を自由におこなうことができる車載の冗長通信システムを提供することができる。 According to the present invention, regardless of the network type for each ECU domain, a new network type can be freely changed due to an increase in the amount of data of the ECU, such as addition of an Ethernet network, while ensuring the safety of the network. It is possible to provide a vehicle-mounted redundant communication system.
ECUと関連する機器の機能と構成を説明するブロック図である。It is a block diagram explaining the function and structure of an apparatus relevant to ECU. 車載の冗長通信システムの構成とデータフローを示した図である。It is the figure which showed the structure and data flow of the in-vehicle redundant communication system. 車載GWがECU-B(10b)と送受信するCANフレーム41のフォーマットを示す図である。It is a figure which shows the format of the CAN frame 41 which vehicle-mounted GW transmits / receives with ECU-B (10b). 車載GWがECU-A(10a)または他の車載GWと送受信するイーサネットフレーム40のフォーマットを示す図である。It is a figure which shows the format of the Ethernet frame 40 which vehicle-mounted GW transmits / receives with ECU-A (10a) or another vehicle-mounted GW. OEMペイロードのフォーマットを示す図である。It is a figure which shows the format of OEM payload. ECU間でフレームを伝送する処理を示すシーケンス図である。It is a sequence diagram which shows the process which transmits a flame | frame between ECUs. 車載GW間でOAMフレームを伝送する処理を示すシーケンス図である。It is a sequence diagram which shows the process which transmits an OAM frame between vehicle-mounted GW. 車載GW間で選択パスを切り替えるときのOAMフレームを伝送する処理を示すシーケンス図である(その一)。It is a sequence diagram which shows the process which transmits the OAM frame when switching a selection path | route between vehicle-mounted GW (the 1). 車載GW間で選択パスを切り替えるときのOAMフレームを伝送する処理を示すシーケンス図である(その二)。It is a sequence diagram which shows the process which transmits the OAM frame when switching a selection path | route between vehicle-mounted GW (the 2). 車載GWの構成を示すブロック図である。It is a block diagram which shows the structure of vehicle-mounted GW. 装置内ヘッダのフォーマットを示す図である。It is a figure which shows the format of the header in an apparatus. イーサネット受信テーブルを示す図である。It is a figure which shows an Ethernet reception table. CAN受信テーブルを示す図である。It is a figure which shows a CAN reception table. スイッチングテーブルを示す図である。It is a figure which shows a switching table. CAN送信テーブルを示す図である。It is a figure which shows a CAN transmission table. OAMテーブルを示す図である。It is a figure which shows an OAM table. イーサネット受信処理S100を示すフローチャートである。It is a flowchart which shows Ethernet reception process S100. CAN受信処理S200を示すフローチャートである。It is a flowchart which shows CAN reception process S200. CAN送信処理S300のフローチャートである。It is a flowchart of CAN transmission processing S300. OAM受信処理S400のフローチャートである。It is a flowchart of OAM reception processing S400. OAMポーリング処理S500のフローチャートである。It is a flowchart of OAM polling processing S500. 対向GW障害判定処理S600のフローチャートである。It is a flowchart of opposing GW failure determination processing S600. ECUポート障害判定処理S700のフローチャートである。It is a flowchart of ECU port failure determination processing S700. OAMポーリング処理S500による切替処理状態と選択パスの更新に用いられる状態選択表を示す図である。It is a figure which shows the state selection table used for the switching process state by OAM polling process S500, and the update of a selection path.
 以下、本発明に係る各実施形態を、図1ないし図23を用いて説明する。 Hereinafter, each embodiment according to the present invention will be described with reference to FIGS.
 先ず、図1を用いてECUと関連する機器の機能と構成について説明する。 
  図1は、ECUと関連する機器の機能と構成を説明するブロック図である。 
 カーエレクトロニクスの機構において、ECU1000は、センサ類2000からの入力を受取り、それに基づいて情報処理をおこなって、アクチュエータ類3000を動作させたり、情報を伝達する機能を有する。
First, the function and configuration of equipment related to the ECU will be described with reference to FIG.
FIG. 1 is a block diagram illustrating functions and configurations of devices related to the ECU.
In the car electronics mechanism, ECU 1000 has a function of receiving input from sensors 2000 and performing information processing based on the input to operate actuators 3000 and transmit information.
 ECU1000は、入力処理回路1001、A-D変換回路1002、電源回路1003、マイコン1100、車載ネットワークI/F(InterFace)回路1004、トランシーバ1005、出力処理回路1006、パワーデバイス1007からなる。 The ECU 1000 includes an input processing circuit 1001, an A / D conversion circuit 1002, a power supply circuit 1003, a microcomputer 1100, an in-vehicle network I / F (InterFace) circuit 1004, a transceiver 1005, an output processing circuit 1006, and a power device 1007.
 センサ類2000としては、センサ素子2001、センサ回路2002、スイッチ2003がある。 Sensors 2000 include a sensor element 2001, a sensor circuit 2002, and a switch 2003.
 センサ素子2001は、例えば、位置・角度、加速度・振動、流速・流量、温度などを計測するセンサ素子である。 Sensor element 2001 is a sensor element that measures, for example, position / angle, acceleration / vibration, flow velocity / flow rate, temperature, and the like.
 センサ素子2001の計測結果は、センサ回路2002に入力され、センサ回路2002から信号がECU1000の入力処理回路1001に入力される。そして、入力処理回路1001からの信号は、A-D変換回路1002により、アナログ-デジタル変換をおこないマイコン1100に入力される。 The measurement result of the sensor element 2001 is input to the sensor circuit 2002, and a signal is input from the sensor circuit 2002 to the input processing circuit 1001 of the ECU 1000. Then, the signal from the input processing circuit 1001 is subjected to analog-digital conversion by the AD conversion circuit 1002 and input to the microcomputer 1100.
 マイコン1100は、CPU(Central Processing Unit)1101、メモリ1102、I/O回路1103、タイマー1104からなり、メモリ1102に記憶されるデータを参照し、プログラムを実行して、情報処理をおこない、その結果を出力処理回路1006か、車載通信I/F回路1004、トランシーバ1005に伝えられる。 The microcomputer 1100 includes a CPU (Central Processing Unit) 1101, a memory 1102, an I / O circuit 1103, and a timer 1104, refers to data stored in the memory 1102, executes a program, performs information processing, and results thereof Is transmitted to the output processing circuit 1006, the in-vehicle communication I / F circuit 1004, and the transceiver 1005.
 出力処理回路1006の出力結果は、電力を制御するパワーデバイス1007に入力され、パワーデバイス1007からアクチュエータ3003の動作を制御する信号が伝送される。 The output result of the output processing circuit 1006 is input to the power device 1007 that controls power, and a signal that controls the operation of the actuator 3003 is transmitted from the power device 1007.
 アクチュエータ3002は、モータ、ソレノイド、圧電素子、点火コイル、ランプ、ディスプレイなどの動作素子である。 Actuator 3002 is an operation element such as a motor, a solenoid, a piezoelectric element, an ignition coil, a lamp, and a display.
 車載通信I/F回路1004、トランシーバ1005に伝えられたデータは、有線/無線の規定の通信プロトコルに適合する信号に変換され、他のECU3001やインテリジェントなアクチュエータであるスマートアクチュエータ3002に伝えられる。 Data transmitted to the in-vehicle communication I / F circuit 1004 and the transceiver 1005 is converted into a signal that conforms to a wired / wireless prescribed communication protocol, and is transmitted to another ECU 3001 or a smart actuator 3002 that is an intelligent actuator.
 次に、図2を用いて車載の冗長通信システムの構成と動作の概要について説明する。 
  図2は、車載の冗長通信システムの構成とデータフローを示した図である。 
 本実施形態では、ECU-A(10a)は、二つの車載GW-1(20-1)、車載GW-2(20-2)とイーサネットETH-1、イーサネットETH-2で接続されている。
Next, an outline of the configuration and operation of the in-vehicle redundant communication system will be described with reference to FIG.
FIG. 2 is a diagram showing the configuration and data flow of an in-vehicle redundant communication system.
In this embodiment, the ECU-A (10a) is connected to two in-vehicle GW-1 (20-1) and in-vehicle GW-2 (20-2) by Ethernet ETH-1 and Ethernet ETH-2.
 また、ECU-B1(10b1)、ECU-B2(10b2)、ECU-B3(10b3)(以下、その内の一つを示すときには、ECU-B(10b)と表記する)は、CANバス(CAN-b)と接続されており、そのCANバス(CAN-b)から分岐するCANバス(CAN-1、CAN-2)に、車載GW-1(20-1)、車載GW-2(20-2)が接続されている。 ECU-B1 (10b1), ECU-B2 (10b2), ECU-B3 (10b3) (hereinafter referred to as ECU-B (10b) when one of them is shown) is connected to a CAN bus (CAN). -B) to the CAN buses (CAN-1, CAN-2) branched from the CAN bus (CAN-b), the in-vehicle GW-1 (20-1) and the in-vehicle GW-2 (20- 2) is connected.
 そして、ECU-A(10a)と、ECU-B1(10b1)、ECU-B2(10b2)、ECU-B3(10b3)は、二つの車載GW-1(20-1)、車載GW-2(20-2)を介してデータをフレームとして送受信する場合について説明する。ただし、各ECUと車載GWとの接続方法はこれに限るものではなく、MOST等のその他ポイント-ポイント接続ネットワークや、LIN等のその他バス接続ネットワークでも同様の方式が適用可能である。さらに、データを送受信するECUの組合せも、上記のように、ECU-Aと、ECU-B1(10b1)、ECU-B2(10b2)、ECU-B3(10b3)のように、車載GWと一方が、イーサネットのポイント-ポイント接続であり、一方がバス接続の場合だけでなく、ポイント-ポイント接続ネットワークで車載GWに接続されたECU同士間、またはバス接続ネットワークで車載GWに接続されたその他のECU同士でも、本発明のアイディアは、適用可能である。 The ECU-A (10a), the ECU-B1 (10b1), the ECU-B2 (10b2), and the ECU-B3 (10b3) are composed of two in-vehicle GW-1 (20-1) and in-vehicle GW-2 (20 -2) A case where data is transmitted and received as a frame will be described. However, the connection method between each ECU and the in-vehicle GW is not limited to this, and the same method can be applied to other point-to-point connection networks such as MOST and other bus connection networks such as LIN. Further, as described above, the combination of ECUs that transmit and receive data is also different from that of the in-vehicle GW such as ECU-A, ECU-B1 (10b1), ECU-B2 (10b2), and ECU-B3 (10b3). , Ethernet point-to-point connection, not only when one is connected by bus, but also between other ECUs connected to in-vehicle GW by point-to-point connection network, or other ECUs connected to in-vehicle GW by bus connection network Even between them, the idea of the present invention is applicable.
 上記ECU-A(10a)からの送信フレームは、ECU-A(10a)の内部でコピーされ、同一の内容で、フレームEt1、フレームEt2が車載GW-1(20-1)、車載GW-2(20-2)に、それぞれ送信される。一方、上記ECU-B(10b)からの送信フレームは、CANバス(CAN-b)から、CANバス(CAN-1、CAN-2)として分岐する際にコピーされ、同一の内容で、フレームCt1、フレームCt2が車載GW-1(20-1)、車載GW-2(20-2)に、それぞれ送信される。 The transmission frame from the ECU-A (10a) is copied inside the ECU-A (10a), and with the same contents, the frame Et1 and the frame Et2 are the in-vehicle GW-1 (20-1) and the in-vehicle GW-2. (20-2), respectively. On the other hand, the transmission frame from the ECU-B (10b) is copied when branching from the CAN bus (CAN-b) as the CAN bus (CAN-1, CAN-2), and the frame Ct1 has the same contents. The frame Ct2 is transmitted to the in-vehicle GW-1 (20-1) and the in-vehicle GW-2 (20-2), respectively.
 車載GW-1(20-1)、車載GW-2(20-2)は、上記ECUとの接続とは別の管理用のイーサネット回線であるイーサネットETH-11、イーサネットETH-12により、相互に接続されている。 The in-vehicle GW-1 (20-1) and the in-vehicle GW-2 (20-2) are connected to each other by Ethernet ETH-11 and Ethernet ETH-12 which are management Ethernet lines different from the connection to the ECU. It is connected.
 車載GW-1(20-1)、車載GW-2(20-2)、これらの管理用のイーサネット回線を用いて、フレームの転送経路(パス)等を格納した管理用フレーム(以下「OAM(Operation, Administration and Maintainance)フレーム」という)を送受信することにより、各ECUから受信したコピーフレームの一方をフレーム転送しないパス(非選択パス)からのフレームとして廃棄する。この結果、フレーム転送するパス(選択パス)のみのフレームCr1およびフレームEr1が各ECUへ送信される。 An in-vehicle GW-1 (20-1), an in-vehicle GW-2 (20-2), and a management frame (hereinafter referred to as “OAM”) storing a frame transfer path (path) using the management Ethernet line. By sending / receiving (Operation, “Administration” and “Maintenance) frames”), one of the copy frames received from each ECU is discarded as a frame from a path (non-selected path) where no frame transfer is performed. As a result, the frame Cr1 and the frame Er1 for only the frame transfer path (selected path) are transmitted to each ECU.
 以上より、仮に、車載GW、または各ECUと車載GWとの接続ネットワーク(イーサネットETH-1、イーサネットETH-2、CANバス(CAN-1)、CANバス(CAN-2))が故障したことを検出した際には、その情報を車載GW-1、車載GW-2間で共有し、選択パスに影響する場合、非選択パスを選択パスに変更し、フレームを転送することにより故障から復旧することが可能である。 From the above, it is assumed that the in-vehicle GW or the connection network (Ethernet ETH-1, Ethernet ETH-2, CAN bus (CAN-1), CAN bus (CAN-2)) between each ECU and the in-vehicle GW has failed. When detected, the information is shared between the in-vehicle GW-1 and the in-vehicle GW-2, and when the selected path is affected, the unselected path is changed to the selected path and the frame is transferred to recover from the failure. It is possible.
 次に、図3ないし図5を用いてネットワーク上を伝送されるデータフォーマットについて説明する。 
  図3は、車載GWがECU-B(10b)と送受信するCANフレーム41のフォーマットを示す図である。 
  図4は、車載GWがECU-A(10a)または他の車載GWと送受信するイーサネットフレーム40のフォーマットを示す図である。 
  図5は、OEMペイロードのフォーマットを示す図である。
Next, a data format transmitted over the network will be described with reference to FIGS.
FIG. 3 is a diagram showing a format of a CAN frame 41 transmitted and received by the in-vehicle GW with the ECU-B (10b).
FIG. 4 is a diagram showing the format of the Ethernet frame 40 that the in-vehicle GW transmits / receives to / from the ECU-A (10a) or another in-vehicle GW.
FIG. 5 is a diagram showing the format of the OEM payload.
 CANフレーム41は、図3に示されるように、SOF(Start of Frame)411、アービトレーション412、コントロール413、データ414、CRC(Cyclic Redundancy Check)415、ACK(Acknowledgement)416、EOF(End of Frame)417からなる。 As shown in FIG. 3, the CAN frame 41 includes an SOF (Start of Frame) 411, an arbitration 412, a control 413, data 414, a CRC (Cyclic Redundancy Check) 415, an ACK (Acknowledgement) 416, and an EOF (End of Frame). 417.
 アービトレーション412は、ネットワーク制御情報を格納するエリアであり、フロー識別子となるCAN IDの値(CAN ID#)を有している。コントロール413は、フレーム情報を格納するエリアであり、ECU-b(10b)が送受信するデータ414のフィールド長等が格納されている。 Arbitration 412 is an area for storing network control information, and has a CAN ID value (CAN ID #) serving as a flow identifier. The control 413 is an area for storing frame information, and stores the field length of data 414 transmitted and received by the ECU-b (10b).
 イーサネットフレーム40は、図4に示されるように、宛先MACアドレス401、送信元MACアドレス402、VLANタグ403、後続ヘッダの種類を示すタイプ値404からなるMACヘッダと、ペイロード405と、フレームチェックシーケンス(FCS)406とからなる。 As shown in FIG. 4, the Ethernet frame 40 includes a MAC header including a destination MAC address 401, a transmission source MAC address 402, a VLAN tag 403, a type value 404 indicating the type of the subsequent header, a payload 405, and a frame check sequence. (FCS) 406.
 宛先MACアドレス401と送信元MACアドレス402には、当該フレームの宛先および送信元のECUや車載GWのMACアドレスが格納される。VLANタグ403は、フロー識別子となるVLAN IDの値(VID♯)を有している。ペイロード405には、車載GWとECU-A(10a)間で送受信されるフレーム40の場合、各ECUとECU間で送受信するデータ等が格納される。また、車載GWとECU-B(10b)間で送受信されるフレーム40、ECU-B(10b)からのCANフレーム41のデータ414が格納される。車載GW同士で送受信するフレーム40のペイロード405には、以下で説明するOAMペイロード4051が格納される。 In the destination MAC address 401 and the source MAC address 402, the destination of the frame and the MAC address of the source ECU or the in-vehicle GW are stored. The VLAN tag 403 has a VLAN ID value (VID #) as a flow identifier. In the payload 405, in the case of the frame 40 transmitted and received between the in-vehicle GW and the ECU-A (10a), data and the like transmitted and received between each ECU and the ECU are stored. Further, a frame 40 transmitted and received between the in-vehicle GW and the ECU-B (10b) and data 414 of the CAN frame 41 from the ECU-B (10b) are stored. An OAM payload 4051 described below is stored in the payload 405 of the frame 40 transmitted and received between the in-vehicle GWs.
 OAMペイロード4051は、図5に示されるように、フローID40511、切替処理状態40512からなる。 The OAM payload 4051 includes a flow ID 40511 and a switching processing state 40512 as shown in FIG.
 フローID40511は、OAMフレーム40の送信元となる車載GWにおけるフロー識別子である。切替処理状態40512は、フローID40511の選択パス等に関わる状態を示す切替処理状態の値が格納される(後に、詳述)。 The flow ID 40511 is a flow identifier in the in-vehicle GW that is the transmission source of the OAM frame 40. The switching process state 40512 stores a value of a switching process state indicating a state related to the selected path of the flow ID 40511 (detailed later).
 なお、フローIDは、ユーザフレーム、管理用フレーム共に用いられるネットワークフローの識別子であり、フローIDの付与の方法は、全車載GWで一貫性を保つ必要がある。例えば、図1の通信システムの例では、ECU-A(10a)とECU-B(10b)間で送受信されるイーサネットフレーム40またはCANフレーム41は、全車載GW(GW-1、GW-2)ではフローID40511は、一意的に識別するために同じ番号のIDを使用すべきである。 Note that the flow ID is an identifier of a network flow used for both the user frame and the management frame, and the method of assigning the flow ID needs to maintain consistency in all in-vehicle GWs. For example, in the example of the communication system of FIG. 1, the Ethernet frame 40 or the CAN frame 41 transmitted / received between the ECU-A (10a) and the ECU-B (10b) is an all-vehicle GW (GW-1, GW-2). Then, the flow ID 40511 should use the ID of the same number for uniquely identifying.
 次に、図6ないし図9を用いて冗長通信システムの通信動作について説明する。 
  図6は、ECU間でフレームを伝送する処理を示すシーケンス図である。 
  図7は、車載GW間でOAMフレームを伝送する処理を示すシーケンス図である。 
  図8A、図8Bは、車載GW間で選択パスを切り替えるときのOAMフレームを伝送する処理を示すシーケンス図である。
Next, the communication operation of the redundant communication system will be described with reference to FIGS.
FIG. 6 is a sequence diagram illustrating a process of transmitting a frame between ECUs.
FIG. 7 is a sequence diagram showing processing for transmitting an OAM frame between in-vehicle GWs.
8A and 8B are sequence diagrams illustrating a process of transmitting an OAM frame when switching a selected path between in-vehicle GWs.
 先ず、図6を用いてECU間でフレームを伝送する処理について説明する。 
 先ず、ECU-A(10a)において、二つの経路に送信するためにイーサネットフレーム40がコピーされ、車載GW-1(20-1)、車載GW-2(20-2)の各々に送信される(フレームEt1およびフレームEt2)。当該フレーム40を受信した車載GW-1(20-1)は、当該フレーム40(フレームEt1)が選択パス上で送受信されるものか否かに応じて転送すべきか否かを判定する(P101-1)。この例では、車載GW-1側のパスがECU-B(10b)への選択パスであるため、車載GW-1(20-1)は、当該フレーム40をCANフレーム41のフォーマットに変換し、選択パスのフレーム(フレームCr1)として転送する(P102-1)。この結果、当該フレーム41(フレームCr1)がECU-B(10b)へと転送される。
First, processing for transmitting a frame between ECUs will be described with reference to FIG.
First, in the ECU-A (10a), the Ethernet frame 40 is copied and transmitted to each of the in-vehicle GW-1 (20-1) and the in-vehicle GW-2 (20-2) for transmission to two routes. (Frame Et1 and Frame Et2). The in-vehicle GW-1 (20-1) that has received the frame 40 determines whether or not to transfer depending on whether or not the frame 40 (frame Et1) is transmitted / received on the selected path (P101- 1). In this example, since the path on the in-vehicle GW-1 side is a selection path to the ECU-B (10b), the in-vehicle GW-1 (20-1) converts the frame 40 into the format of the CAN frame 41, Transfer as a frame (frame Cr1) of the selected path (P102-1). As a result, the frame 41 (frame Cr1) is transferred to the ECU-B (10b).
 一方、当該フレーム40を受信した車載GW-2(20-2)も、当該フレーム40(フレームEt2)が選択パス上で送受信されるものか否かに応じて転送すべきか否かを判定する(P101-2)。この場合には、車載GW-2側のパスはECU-B(10b)への非選択パスであるため、当該フレーム40(フレームEt2)は、廃棄される。 On the other hand, the in-vehicle GW-2 (20-2) that has received the frame 40 also determines whether or not to transfer depending on whether or not the frame 40 (frame Et2) is transmitted / received on the selected path ( P101-2). In this case, since the path on the in-vehicle GW-2 side is a non-selected path to the ECU-B (10b), the frame 40 (frame Et2) is discarded.
 次に、ECU-B(10b)からECU-A(10a)へのフレーム伝送の処理について説明する。 Next, the frame transmission process from the ECU-B (10b) to the ECU-A (10a) will be described.
 ECU-B(10b)からのCANフレーム41は、バス接続されている全車載GW(車載GW-1および車載GW-2)にコピーされる(フレームCt1およびフレームCt2)。この場合に、バス接続であるので、ECU-B(10b)で特段の処理は必要とせず、単にバスにフレームを流せばよい。 The CAN frame 41 from the ECU-B (10b) is copied to all the in-vehicle GWs (the in-vehicle GW-1 and the in-vehicle GW-2) connected to the bus (frame Ct1 and frame Ct2). In this case, since it is a bus connection, no special processing is required in the ECU-B (10b), and a frame is simply flowed to the bus.
 当該フレーム41(フレームCt1)を受信した車載GW-1(20-1)は、当該フレーム41が選択パス上で送受信されるものか否かに応じて転送すべきかを判定する(P103-1)。この例では、車載GW-1側のパスがECU-A(10a)への選択パスであるため、車載GW-1は当該フレーム41をイーサネットフレーム40のフォーマットに変換し、選択パスのフレーム(フレームEr1)として転送する(P104-1)。この結果、当該フレーム40がECU-A(10a)へと転送される。 The in-vehicle GW-1 (20-1) that has received the frame 41 (frame Ct1) determines whether to transfer the frame 41 according to whether or not the frame 41 is transmitted / received on the selected path (P103-1). . In this example, since the path on the in-vehicle GW-1 side is a selection path to the ECU-A (10a), the in-vehicle GW-1 converts the frame 41 into the format of the Ethernet frame 40, and the frame of the selected path (frame The data is transferred as Er1) (P104-1). As a result, the frame 40 is transferred to the ECU-A (10a).
 一方、当該フレーム41(フレームCt2)を受信した車載GW-2(20-2)は、当該フレーム41が選択パス上で送受信されるものか否かに応じて転送すべきかを判定する(P103-2)。この例では、車載GW-2側のパスは、ECU-A(10a)への非選択パスであるため、当該フレーム41(フレームCt2)は、廃棄される。 On the other hand, the in-vehicle GW-2 (20-2) that has received the frame 41 (frame Ct2) determines whether or not to transfer depending on whether or not the frame 41 is transmitted / received on the selected path (P103- 2). In this example, the on-vehicle GW-2 side path is a non-selected path to the ECU-A (10a), so the frame 41 (frame Ct2) is discarded.
 次に、図7を用いて車載GW間でOAMフレームを伝送する処理について説明する。 
 車載GW(車載GW-1および車載GW-2)は、それぞれOAMフレーム40の送信周期(周期CYC-1および周期CYC-2)に従って、定期的にOAMフレーム40を送信する(P201-1およびP201-2)。この例では、OAM送信周期(周期CYC-1および周期CYC-2)の長さもタイミングも同一としているが、それらは必ずしも同一である必要はない。この際、各車載GW(車載GW-1および車載GW-2)が、障害を検出していない場合、各車載GWの状態を通知するOAMフレーム(フレームON-1およびフレームON-2)が送信される。当該OAMフレーム(フレームON-1およびフレームON-2)を受信した各車載GWは、図5に示したOAMペイロード4051から必要な情報の抽出等の受信処理を実施する(P202-1およびP202-2)。
Next, processing for transmitting an OAM frame between in-vehicle GWs will be described with reference to FIG.
The in-vehicle GWs (in-vehicle GW-1 and in-vehicle GW-2) periodically transmit the OAM frame 40 according to the transmission period (period CYC-1 and period CYC-2) of the OAM frame 40 (P201-1 and P201). -2). In this example, the length and timing of the OAM transmission cycle (cycle CYC-1 and cycle CYC-2) are the same, but they are not necessarily the same. At this time, if each in-vehicle GW (in-vehicle GW-1 and in-vehicle GW-2) has not detected a failure, an OAM frame (frame ON-1 and frame ON-2) for notifying the state of each in-vehicle GW is transmitted. Is done. Each in-vehicle GW that has received the OAM frame (frame ON-1 and frame ON-2) performs reception processing such as extraction of necessary information from the OAM payload 4051 shown in FIG. 5 (P202-1 and P202-). 2).
 上記送受信処理をOAM送信周期(周期CYC-1および周期CYC-2)に従って実施することにより、車載GW同士で自身に対向している車載GWの状態の共有が可能となる。 By performing the above transmission / reception processing according to the OAM transmission cycle (cycle CYC-1 and cycle CYC-2), it is possible to share the state of the in-vehicle GW facing each other between the in-vehicle GWs.
 次に、図8Aおよび図8Bを用いて障害が発生したときの車載GW間で選択パスを切り替えるときのOAMフレームを伝送する処理について説明する。 Next, processing for transmitting an OAM frame when switching a selected path between in-vehicle GWs when a failure occurs will be described with reference to FIGS. 8A and 8B.
 障害が発生したときの第一の場合としては、図8Aに示されように、ECU-A(10a)と車載GW-1(20-1)間のイーサネットETH-1が断線(DEF-1)した場合がある。 As a first case when a failure occurs, as shown in FIG. 8A, the Ethernet ETH-1 between the ECU-A (10a) and the vehicle-mounted GW-1 (20-1) is disconnected (DEF-1). There is a case.
 ECU-A(10a)と車載GW-1間のイーサネットETH-1が断線(DEF-1)すると、車載GW-1(20-1)は、一定時間フレームが送信しないことを認識し、リンク断を検出する(P301)。リンク断検出後、定期的なOAMの送信処理(P302-1)において、車載GW-1(20-1)は、通常の状態通知のOAMフレーム(フレームON-1)ではなく、切替を要求するOAMフレーム(フレームOR-1)を送信する。この時点までは、対向の車載GW-2(20-2)は、障害は検出していないため、通常と同様の転送判定(P100-2)や、OAM送信処理(P201-2)による状態通知のためのOAMフレーム(フレームON-2)の送信を実施している。 When the Ethernet ETH-1 between the ECU-A (10a) and the in-vehicle GW-1 is disconnected (DEF-1), the in-vehicle GW-1 (20-1) recognizes that no frame is transmitted for a certain period of time, and the link is disconnected. Is detected (P301). After detecting link disconnection, in the regular OAM transmission process (P302-1), the in-vehicle GW-1 (20-1) requests switching instead of the normal status notification OAM frame (frame ON-1). An OAM frame (frame OR-1) is transmitted. Up to this point, since the on-vehicle GW-2 (20-2) on the opposite side has not detected a failure, the status notification by the normal transfer determination (P100-2) and OAM transmission processing (P201-2) OAM frame (frame ON-2) is transmitted.
 上記切替を要求するOAMフレーム(フレームOR-1)を受信した車載GW-2(20-2)は、当該OAMフレーム(フレームOR-1)の受信処理(P303-2)を実施した結果、対向する車載GW-1(20-1)から切替要求があることを認識し、次のOAM送信処理(P304-2)において、切替応答を示すOAMフレーム(フレームOA-2)を送信する。この間、リンク断(DEF-1)を検出している車載GW-1(20-1)は、通常通りのOAM受信処理(P202-1)を実施すると共に、対向の車載GW-2(20-2)からの切替応答を示すOAMフレーム(フレームOA-2)を受信するまで、切替を要求するOAMフレーム(フレームOR-1)を送信し続ける(P304-1)。 The in-vehicle GW-2 (20-2) that has received the OAM frame (frame OR-1) requesting the switching performs the reception process (P303-2) of the OAM frame (frame OR-1), The in-vehicle GW-1 (20-1) recognizes that there is a switching request, and transmits an OAM frame (frame OA-2) indicating a switching response in the next OAM transmission processing (P304-2). During this time, the in-vehicle GW-1 (20-1) that has detected the link disconnection (DEF-1) performs the normal OAM reception process (P202-1) and the opposite in-vehicle GW-2 (20-). Until the OAM frame (frame OA-2) indicating the switching response from 2) is received, the OAM frame (frame OR-1) requesting switching is continuously transmitted (P304-1).
 上記切替応答を示すOAMフレーム(フレームOA-2)を受信した車載GW-1は、当該OAMフレーム(フレームOA-2)の受信処理(P305-1)を実施した結果、対向する車載GW-2(20-2)から切替応答があったことを認識し、選択パスを非選択パスに変更する。さらに、次のOAM送信処理(P306-1)にて、切替完了を示すOAMフレーム(フレームOS-1)を送信する。この間、対向の車載GW-2(20-2)は、受信処理(P305-2)を実施すると共に、対向の車載GW-1(20-1)からの切替通知を示すOAMフレーム(フレームOS-1)を受信するまで、切替へ応答するOAMフレーム(フレームOA-2)を送信し続ける(P306-2)。 The in-vehicle GW-1 that has received the OAM frame (frame OA-2) indicating the switching response performs the reception process (P305-1) of the OAM frame (frame OA-2), and as a result, the in-vehicle GW-2 that faces the in-vehicle GW-2 Recognizing that there is a switching response from (20-2), the selected path is changed to a non-selected path. Further, in the next OAM transmission process (P306-1), an OAM frame (frame OS-1) indicating completion of switching is transmitted. During this time, the opposite in-vehicle GW-2 (20-2) performs reception processing (P305-2) and also displays an OAM frame (frame OS-) indicating a switching notification from the opposite in-vehicle GW-1 (20-1). Until 1) is received, the OAM frame (frame OA-2) responding to the switching is continuously transmitted (P306-2).
 上記切替完了を示すOAMフレーム(フレームOS-1)を受信した車載GW-2(20-2)は、当該OAMフレーム(フレームOS-1)の受信処理(P306-2)を実施した結果、対向する車載GW-1(20-1)が切替完了したことを認識し、非選択パスを選択パスへと切替え、次のOAM送信処理(P307-2)において、切替完了を示すOAMフレーム(フレームOS-2)を送信する。 The in-vehicle GW-2 (20-2) that has received the OAM frame (frame OS-1) indicating the completion of switching performs the reception process (P306-2) of the OAM frame (frame OS-1), The in-vehicle GW-1 (20-1) recognizes that the switching has been completed, switches the non-selected path to the selected path, and in the next OAM transmission processing (P307-2), the OAM frame (frame OS indicating the switching completion) -2) is transmitted.
 これ以降、両車載GWは、切替完了のOAMフレームであるOS-1、OS-2をそれぞれ定期的に送受信することとなる。 Thereafter, both in-vehicle GWs periodically transmit and receive OS-1 and OS-2, which are OAM frames for which switching has been completed.
 なお、車載GW-1(20-1)は、対向する車載GW-2(20-2)からの切替応答を示すOAMフレームを受信したときに、切替完了としたが、切替要求を送信して、即座に、切替完了の状態に移行するようにしてもよい。 Note that when the in-vehicle GW-1 (20-1) receives the OAM frame indicating the switching response from the opposite in-vehicle GW-2 (20-2), the in-vehicle GW-1 (20-1) transmits the switching request. Immediately, the state may be shifted to a switching completion state.
 以上の選択パス切替の処理シーケンス(P300)は、障害検出の方法が異なるのみで、ECU-B(10b)と車載GW-1間のCANバス(CAN-1)が断線した際も同様である。CANバス(CAN-1)が断線した場合は、システム仕様の観点から、CANフレーム41についてフロー毎に1フレームが送受信される期間が決定されており、車載GWは、その期間1フレームもCANフレーム41を受信しなかった場合に断線とみなすものとする。すなわち、その場合には、このシステム仕様の観点からCANフレーム41について、フロー毎に1フレームが送受信される期間に合わせ、OAMフレーム40の送信周期(周期CYC-1および周期CYC-2)を決定するものとする。 The above selected path switching process sequence (P300) is the same when the CAN bus (CAN-1) between the ECU-B (10b) and the in-vehicle GW-1 is disconnected, except for the failure detection method. . When the CAN bus (CAN-1) is disconnected, a period in which one frame is transmitted / received for each flow of the CAN frame 41 is determined from the viewpoint of system specifications. When 41 is not received, it shall be regarded as a disconnection. That is, in this case, from the viewpoint of this system specification, the transmission period (period CYC-1 and period CYC-2) of the OAM frame 40 is determined for the CAN frame 41 in accordance with the period during which one frame is transmitted and received for each flow. It shall be.
 障害が発生したときの第二の場合としては、図8Bに示されように、車載GW-1が故障(DEF-2)した場合がある。 As the second case when a failure occurs, as shown in FIG. 8B, there is a case where the in-vehicle GW-1 has failed (DEF-2).
 車載GW-1(20-1)が故障(DEF-2)した場合、対向からの状態通知のOAMフレーム(フレームON-1)が受信できなくなる。車載GW-2(20-2)では、OAM送信周期(CYC-2)毎に、OAMフレーム40の受信の有無を監視しており、その間に1フレームも受信できない場合には、OAM受信無(1周期目)を検出する(P402-2)。これにより直ちに障害と判定することも考えられるが、OAMフレーム40の送信タイミングの微妙なずれや揺らぎの場合に障害と誤判定することを防止するため、本実施形態では、一定回数、例えば、3周期連続でのOAMフレーム40受信無で、対向の車載GW-1(20-1)の障害(DEF-2)を確定し、非選択パスを選択パスに切替える(P406-2)。その後、定期的なOAM送信処理(P407-2)では、切替完了のOAMフレーム(フレームOS-2)を送信し、以降定期的に当該フレーム(フレームOS-2)を送信する。 If the in-vehicle GW-1 (20-1) fails (DEF-2), the status notification OAM frame (frame ON-1) from the opposite side cannot be received. The in-vehicle GW-2 (20-2) monitors whether or not the OAM frame 40 is received every OAM transmission cycle (CYC-2). If no frame can be received during that period, no OAM reception ( 1st period) is detected (P402-2). Although it is possible to immediately determine a failure as a result of this, in order to prevent erroneous determination as a failure in the case of a slight shift or fluctuation in the transmission timing of the OAM frame 40, in this embodiment, a certain number of times, for example, 3 Without receiving the OAM frame 40 in a continuous cycle, the failure (DEF-2) of the opposite in-vehicle GW-1 (20-1) is determined, and the unselected path is switched to the selected path (P406-2). Thereafter, in the periodic OAM transmission process (P407-2), the OAM frame (frame OS-2) for which switching has been completed is transmitted, and thereafter the frame (frame OS-2) is periodically transmitted.
 以上より、選択パスが導通しているイーサネット回線、CANバス、および車載GWの故障や断線が発生した場合に、上述のようにパス切替処理がおこなうことができる。 As described above, the path switching process can be performed as described above when a failure or disconnection occurs in the Ethernet line, the CAN bus, and the in-vehicle GW in which the selected path is conducted.
 次に、図9ないし図15を用いて車載GWの構成と関連するデータ構造について説明する。
  図9は、車載GWの構成を示すブロック図である。 
  図10は、装置内ヘッダのフォーマットを示す図である。 
  図11は、イーサネット受信テーブルを示す図である。 
  図12は、CAN受信テーブルを示す図である。 
  図13は、スイッチングテーブルを示す図である。 
  図14は、CAN送信テーブルを示す図である。 
  図15は、OAMテーブルを示す図である。
Next, a data structure related to the configuration of the in-vehicle GW will be described with reference to FIGS. 9 to 15.
FIG. 9 is a block diagram showing the configuration of the in-vehicle GW.
FIG. 10 is a diagram showing the format of the in-device header.
FIG. 11 is a diagram illustrating an Ethernet reception table.
FIG. 12 is a diagram illustrating a CAN reception table.
FIG. 13 is a diagram illustrating a switching table.
FIG. 14 is a diagram illustrating a CAN transmission table.
FIG. 15 is a diagram illustrating an OAM table.
 先ず、図10ないし図15を用いて車載GWに関連するデータ構造(フレームヘッダとテーブル類)について説明する。 First, the data structure (frame header and tables) related to the in-vehicle GW will be described with reference to FIGS.
 装置内ヘッダ45は、車載GW内部のフレーム処理のために装置内で付け加えられるヘッダであり、図10に示されるように、フローID451と、入力ポートID452と、OAMフラグ453と、フレーム長454とを示す複数のフィールドからなっている。 The in-device header 45 is a header added in the device for frame processing inside the in-vehicle GW. As shown in FIG. 10, the flow ID 451, the input port ID 452, the OAM flag 453, the frame length 454, It consists of multiple fields that indicate
 フローID451には、フローを識別するための識別子を格納する。入力ポートID452には、そのフレームの入力ポートがイーサネットフレームかCANフレームかの別を格納する。OAMフラグ453は、そのフレームがOAM(管理用)フレームかユーザフレームかの別を格納する。ここでは、‘1’が管理用フレーム、‘0’がユーザフレームであるとする。フレーム長454には、そのフレームのフレーム長をバイト単位で格納する。 
 なお、装置内ヘッダ45は、出力ポートから出力するときに削除される。
The flow ID 451 stores an identifier for identifying the flow. The input port ID 452 stores whether the input port of the frame is an Ethernet frame or a CAN frame. The OAM flag 453 stores whether the frame is an OAM (management) frame or a user frame. Here, it is assumed that “1” is a management frame and “0” is a user frame. The frame length 454 stores the frame length of the frame in bytes.
The in-device header 45 is deleted when output from the output port.
 イーサネット受信テーブル21は、VLAN IDを検索キーとし、イーサネットポートへの入力フレームの処理内容やフローID等を決定するテーブルであり、図11に示されるように、VLAN ID211と、廃棄フラグ212と、タグ処理213と、新VLAN ID214と、CoS処理215と、新CoS216と、フローID217からなる。 The Ethernet reception table 21 is a table that uses the VLAN ID as a search key to determine the processing contents of the input frame to the Ethernet port, the flow ID, and the like. As shown in FIG. 11, the VLAN ID 211, the discard flag 212, It consists of a tag process 213, a new VLAN ID 214, a CoS process 215, a new CoS 216, and a flow ID 217.
 ここで、廃棄フラグ212は、当該エントリのフレームを透過するか廃棄するかを示すフラグである。また、タグ処理213およびCoS処理215は、入力フレームに対するVLANタグ処理を指定し、それに必要なタグ情報が新VLAN ID214と新CoS216に設定される。本実施形態では、通常変更なしに透過すればよいので、タグ処理213およびCoS処理215は「透過」と設定され、新VLAN ID214と新CoS216には無効値が設定される。さらに、フローID217には、当該エントリが属するフローIDを示す値が格納される。ここで、車載GW間のOAMフレーム40送受信用には、専用のVLAN IDが割り当てられ、ECU-A(10a)からのフレーム40とは異なるエントリとして登録されることとする。 Here, the discard flag 212 is a flag indicating whether to transmit or discard the frame of the entry. The tag processing 213 and the CoS processing 215 specify VLAN tag processing for the input frame, and tag information necessary for the VLAN tag processing is set in the new VLAN ID 214 and the new CoS 216. In this embodiment, the tag process 213 and the CoS process 215 are set to “transparent”, and invalid values are set to the new VLAN ID 214 and the new CoS 216, because it is only necessary to transmit without change. Further, the flow ID 217 stores a value indicating the flow ID to which the entry belongs. Here, a dedicated VLAN ID is assigned for transmission / reception of the OAM frame 40 between the vehicle-mounted GWs, and is registered as an entry different from the frame 40 from the ECU-A (10a).
 なお、車載GW間のOAMフレーム40送受信用VLANに関する情報(VLAN ID、車載GWが接続されるポートID、フローID等)は、レジスタ107(後述)に保持されている。 Note that information (VLAN ID, port ID to which the in-vehicle GW is connected, flow ID, etc.) regarding the OAM frame 40 transmission / reception VLAN between the in-vehicle GW is held in a register 107 (described later).
 CAN受信テーブル23は、CAN ID231を検索キーとして、CANポートへの入力フレームの処理内容やフローID等を決定するテーブルであり、図12に示されるように、CAN ID231と、廃棄フラグ232と、タグ処理233と、新VLAN ID234と、CoS処理235と、新CoS236と、フローID237と、受信フレーム数238とからなる
 ここで、廃棄フラグ232は、当該エントリのフレームを透過するか廃棄するかを示すフラグである。また、タグ処理233およびCoS処理235は、入力フレームに対するVLANタグ処理を指定し、それに必要なタグ情報が新VLAN ID234と新CoS236に設定される。本実施形態では、通常CANフレームのヘッダを削除し、イーサフレームのヘッダを追加するため、タグ処理233およびCoS処理235は「追加」と設定され、新VLAN ID234と新CoS236には有効値が設定される。さらに、フローID237には、当該エントリが属するフローIDが格納される。また、受信フレーム数238には、当該フローが一定期間(本実施形態ではOAM送信周期CYC)で受信したフレーム数が格納される。
The CAN reception table 23 is a table for determining the processing contents of the input frame to the CAN port, the flow ID, and the like using the CAN ID 231 as a search key. As shown in FIG. 12, the CAN ID 231, the discard flag 232, It consists of tag processing 233, new VLAN ID 234, CoS processing 235, new CoS 236, flow ID 237, and number of received frames 238. Here, the discard flag 232 indicates whether the frame of the entry is to be transmitted or discarded. It is a flag to show. Further, the tag processing 233 and the CoS processing 235 specify VLAN tag processing for the input frame, and tag information necessary for this is set in the new VLAN ID 234 and the new CoS 236. In this embodiment, in order to delete the header of the normal CAN frame and add the header of the Ethernet frame, the tag processing 233 and the CoS processing 235 are set to “add”, and valid values are set to the new VLAN ID 234 and the new CoS 236. Is done. Further, the flow ID 237 stores the flow ID to which the entry belongs. Further, the number of received frames 238 stores the number of frames received by the flow in a certain period (OAM transmission cycle CYC in this embodiment).
 スイッチングテーブル22は、車載GWのスイッチング操作を規定するためのテーブルであり、図13に示されるように、フローID221と、入力ポートID222、出力ポートID223からなる。車載GWは、スイッチングテーブル22により、フローID221と、入力ポートID222の組合せを検索キーとして、出力ポートID223の値を検索する。 The switching table 22 is a table for defining the switching operation of the in-vehicle GW, and includes a flow ID 221, an input port ID 222, and an output port ID 223 as shown in FIG. The in-vehicle GW searches the value of the output port ID 223 from the switching table 22 using the combination of the flow ID 221 and the input port ID 222 as a search key.
 ここで、入力ポートID222は、各通信ポートに物理的に固定で割当てられるものであり、入力フレームをどの通信ポートから受信したかによって一意に決定できる。スイッチ処理部104(後述)は、それによりスイッチングテーブル22を検索する。 Here, the input port ID 222 is physically fixedly assigned to each communication port, and can be uniquely determined depending on from which communication port the input frame is received. The switch processing unit 104 (described later) thereby searches the switching table 22.
 CAN送信テーブル25は、CANポートへの出力フレームへ付与するCAN IDを決定するテーブルであり、図14に示されるように、フローID251、CANID252からなる。車載GWは、フローID251を検索キーとして、CANID252の値を検索する。CAN ID252には、イーサネットフレーム40からCANフレーム41に変換する際に必要なアービトレーション412のCAN IDが格納される。 The CAN transmission table 25 is a table for determining a CAN ID assigned to an output frame to the CAN port, and includes a flow ID 251 and a CAN ID 252 as shown in FIG. The in-vehicle GW searches for the value of the CAN ID 252 using the flow ID 251 as a search key. The CAN ID 252 stores the CAN ID of the arbitration 412 necessary when converting from the Ethernet frame 40 to the CAN frame 41.
 OAMテーブル24は、フローIDを検索キーとして、OAMに関する情報を検索するためのテーブルであり、図15に示されるように、フローID2401と、有効フラグ2402と、OAM受信数2403と、OAM未受信回数2404と、対向GW障害2405と、ECUポートID1(2406)と、ECUポートID2(2407)と、切替処理状態2408と、対向GW切替処理状態2409と、パス設定2410と、選択パス2411とからなる。 The OAM table 24 is a table for searching for information related to OAM using the flow ID as a search key. As shown in FIG. 15, the flow ID 2401, the valid flag 2402, the number of OAM receptions 2403, and the OAM not received. From the number of times 2404, the opposite GW failure 2405, the ECU port ID 1 (2406), the ECU port ID 2 (2407), the switching process state 2408, the opposite GW switching process state 2409, the path setting 2410, and the selected path 2411 Become.
 ここで、有効フラグ272は、本エントリの有効を示すフラグであり、本フラグが無効(そのエントリは使用されていない)である場合、OAMフレームに関する処理は実施されない。また、OAM受信数には、OAM送信周期間CYCで受信したOAMフレーム数を格納する。OAM未受信回数2404は、OAM送信周期間CYCにOAMフレームを一つも受信しなかった場合にカウントアップされ、OAMフレームを一つでも受信した場合、‘0’クリアされる。対向GW障害2403は、通常‘0’(正常)であるが、OAM未受信回数2404が一定回数(本実施形態では、3)以上となった場合に対向の車載GWの障害が確定し、‘1’(障害)が設定される。ECUポートID1(2406)およびECUポートID2(2407)は、相互に通信をおこなうECUが接続され、フレームを送受信するポートがそれぞれに格納される。これらに設定するポートIDは、それを付与するときに、通信ポートの種別の情報が含まれており(例えば、‘E’で始まるIDは、イーサネットポート、‘C’で始まるIDは、CANポートなど)、設定値を見れば当該通信ポートがイーサネットポート101かCANポート102かわかるようになっている。また、本実施形態では、ECU-A(10a)が接続されるイーサネットポート101をECUポートID1(2406)に、ECU-B(10b)が接続されるCANポート102をECUポートID2(2407)に登録しているが、逆の設定でもよい。さらに、切替処理状態2408は、当該フローの切替処理の状態が保持され、「状態通知」、「切替要求」、「切替応答」、または「切替完了」が保持される。対向GW切替処理状態2409は、対向の車載GWから受信した図5のOAMフレーム40に格納されている最新の切替処理状態40512を保持する。パス設定2410は、当該フローのパスの設定を示し、「現用」であれば障害がない状態で使用されるパス、「予備」であれば「現用」パスに障害が発生した場合に使用されるパスを示す。選択パス2411は、現在選択されているパスが保持され、「現用」または「予備」が保持される。 Here, the valid flag 272 is a flag indicating the validity of this entry. When this flag is invalid (the entry is not used), the processing related to the OAM frame is not performed. Further, the number of OAM received stores the number of OAM frames received in CYC during the OAM transmission period. The OAM non-reception count 2404 is counted up when no OAM frame is received in the CYC during the OAM transmission period, and is cleared to “0” when any OAM frame is received. The opposite GW failure 2403 is normally “0” (normal), but when the OAM non-reception frequency 2404 is equal to or greater than a certain number (3 in the present embodiment), the failure of the opposite in-vehicle GW is determined. 1 '(failure) is set. ECU port ID1 (2406) and ECU port ID2 (2407) are connected to ECUs that communicate with each other, and store ports for transmitting and receiving frames. The port ID to be set includes information on the type of communication port when the port ID is assigned (for example, an ID starting with 'E' is an Ethernet port, and an ID starting with 'C' is a CAN port From the setting value, it can be seen whether the communication port is the Ethernet port 101 or the CAN port 102. In this embodiment, the Ethernet port 101 connected to the ECU-A (10a) is connected to the ECU port ID1 (2406), and the CAN port 102 connected to the ECU-B (10b) is connected to the ECU port ID2 (2407). Although registered, the reverse setting may be used. Furthermore, the switching processing state 2408 holds the state of the switching processing of the flow, and holds “status notification”, “switching request”, “switching response”, or “switching complete”. The opposite GW switching processing state 2409 holds the latest switching processing state 40512 stored in the OAM frame 40 of FIG. 5 received from the opposite vehicle-mounted GW. The path setting 2410 indicates the path setting of the flow, and is used when there is no failure if it is “active”, and is used when a failure occurs in the “active” path if it is “standby”. Indicates the path. The selected path 2411 holds the currently selected path, and holds “working” or “reserve”.
 次に、図9を用いて車載GWの構成と動作について説明する。 Next, the configuration and operation of the in-vehicle GW will be described with reference to FIG.
 車載GWは、イーサネット(登録商標)との入出力インタフェースとなる複数のイーサネットポート101(101-1~101-n)と、CANとの入出力インタフェースとなる複数のCANポート101(102-1~102-n)とを備え、これらの通信ポートを介して、各ECUと接続されている。本実施形態では、イーサネットポート101を介してECU-A(10a)と、CANポート102を介してECU-B(10b)とに接続される。 The in-vehicle GW includes a plurality of Ethernet ports 101 (101-1 to 101-n) serving as input / output interfaces with Ethernet (registered trademark) and a plurality of CAN ports 101 (102-1 to 102-1 serving as input / output interfaces with CAN). 102-n) and are connected to each ECU via these communication ports. In this embodiment, the ECU-A (10a) is connected via the Ethernet port 101 and the ECU-B (10b) is connected via the CAN port 102.
 車載GWは、これらのイーサネットポート101に接続されたイーサネット処理部103(103-1~103-n)と、イーサネット処理部103に接続されたスイッチ処理部104と、スイッチ処理部104に接続されたOAM処理部106およびCAN処理部105(105-1~105-n)と、各ブロックの設定情報や各ブロックからの通知情報を保持するレジスタ107とを有する。また、CAN処理部105は、上記CANポート102とそれぞれ接続されている。 The in-vehicle GW is connected to the Ethernet processing unit 103 (103-1 to 103-n) connected to the Ethernet port 101, the switch processing unit 104 connected to the Ethernet processing unit 103, and the switch processing unit 104. An OAM processing unit 106 and a CAN processing unit 105 (105-1 to 105-n), and a register 107 that holds setting information of each block and notification information from each block. The CAN processing unit 105 is connected to the CAN port 102.
 車載GWは、通信ポートからイーサネットフレーム40を受信すると、受信フレームに、図10に示した装置内ヘッダ45を付加する。 When the in-vehicle GW receives the Ethernet frame 40 from the communication port, the in-device header 45 shown in FIG. 10 is added to the received frame.
 車載GWが、受信フレームに装置内ヘッダ45を付加した時点では、レジスタ107から取得したポートIDを入力ポートID452に、受信時カウントするフレーム長を、フレーム長454に格納する。一方、フローID451、OAMフラグ453は空欄となっている。このフィールドには、後に説明するように、イーサネット処理部103またはCAN処理部105によって有効値が設定される。 When the in-device header 45 adds the in-device header 45 to the received frame, the in-vehicle GW stores the port ID acquired from the register 107 in the input port ID 452 and the frame length counted during reception in the frame length 454. On the other hand, the flow ID 451 and the OAM flag 453 are blank. As described later, an effective value is set in this field by the Ethernet processing unit 103 or the CAN processing unit 105.
 イーサネット処理部103は、後述するイーサネット受信処理S100を実施して、下記のイーサネット受信テ-ブル21を参照し、各イーサネットポート101からの入力フレームの装置内ヘッダ45にフローID451とOAMフラグ453を追加するとともに、その他ヘッダ処理を実施する。イーサネット受信処理S100の結果、入力フレームは、スイッチ処理部104に転送されるか、あるいは廃棄される。 The Ethernet processing unit 103 performs an Ethernet reception process S100 described later, refers to the following Ethernet reception table 21, and sets the flow ID 451 and the OAM flag 453 in the in-device header 45 of the input frame from each Ethernet port 101. In addition to adding, perform other header processing. As a result of the Ethernet reception process S100, the input frame is transferred to the switch processing unit 104 or discarded.
 CAN処理部105は、後述するCAN受信処理S200を実施して、図12に示したCAN受信テ-ブル23を参照し、各CANポート102からの入力フレームの装置内ヘッダ45にフローID451を追加するとともに、その他ヘッダ処理が実施される。CAN受信処理S200の結果、入力フレームは、スイッチ処理部104に転送されるか、あるいは廃棄される。 The CAN processing unit 105 performs a CAN reception process S200 described later, adds a flow ID 451 to the in-device header 45 of the input frame from each CAN port 102 with reference to the CAN reception table 23 shown in FIG. In addition, other header processing is performed. As a result of the CAN reception process S200, the input frame is transferred to the switch processing unit 104 or discarded.
 スイッチ処理部104は、各イーサネット処理部103および各CAN処理部105から入力フレームを受け取り、スイッチングテーブル22から出力ポートIDを特定し、対応するイーサネット処理部103またはCAN処理部105に、出力フレームとして転送する。ただし、装置内ヘッダ45のOAMフラグ453に‘1’(管理用フレーム)が設定されている場合、そのフレームは、当該車載GWにて終端すべきOAMフレームであるため、OAM処理部106へと転送する。 The switch processing unit 104 receives an input frame from each Ethernet processing unit 103 and each CAN processing unit 105, specifies an output port ID from the switching table 22, and sends it to the corresponding Ethernet processing unit 103 or CAN processing unit 105 as an output frame. Forward. However, when “1” (management frame) is set in the OAM flag 453 of the in-device header 45, the frame is an OAM frame to be terminated in the in-vehicle GW, and therefore the OAM processing unit 106 is referred to. Forward.
 スイッチ処理部104が受信した出力フレームでユーザフレームであるものは、順次、イーサネット処理部103またはCAN処理部105に供給される。 The output frames received by the switch processing unit 104 that are user frames are sequentially supplied to the Ethernet processing unit 103 or the CAN processing unit 105.
 イーサネット処理部103は、受信した出力フレームをイーサネットポート101に出力する。 The Ethernet processing unit 103 outputs the received output frame to the Ethernet port 101.
 CAN処理部105は、後述するCAN送信処理S300を実施して、各出力フレームの装置内ヘッダ45のフローID451により、図14に示したCAN送信テ-ブル25を参照し、ヘッダ処理を実施する。CAN送信処理S300の結果、出力フレームは、CANポート102に出力される。 The CAN processing unit 105 performs CAN transmission processing S300, which will be described later, and refers to the CAN transmission table 25 shown in FIG. 14 by the flow ID 451 of the in-device header 45 of each output frame, and performs header processing. . As a result of the CAN transmission process S300, the output frame is output to the CAN port 102.
 一方、スイッチ処理部104からOAMフレームを受信したOAM処理部106は、図15に示したOAMテ-ブル24を参照し、受信したOAMフレームに対してOAM受信処理S400を実施する。 On the other hand, the OAM processing unit 106 that has received the OAM frame from the switch processing unit 104 refers to the OAM table 24 shown in FIG. 15 and performs OAM reception processing S400 on the received OAM frame.
 次に、図16ないし図23を用いて車載GWでおこなわれる処理について説明する。
  図16は、イーサネット受信処理S100を示すフローチャートである。 
  図17は、CAN受信処理S200を示すフローチャートである。 
  図18は、CAN送信処理S300のフローチャートである。 
  図19は、OAM受信処理S400のフローチャートである。 
  図20は、OAMポーリング処理S500のフローチャートである。 
  図21は、対向GW障害判定処理S600のフローチャートである。 
  図22は、ECUポート障害判定処理S700のフローチャートである。 
  図23は、OAMポーリング処理S500による切替処理状態と選択パスの更新に用いられる状態選択表を示す図である。
Next, processing performed in the in-vehicle GW will be described with reference to FIGS.
FIG. 16 is a flowchart showing the Ethernet reception process S100.
FIG. 17 is a flowchart showing the CAN reception process S200.
FIG. 18 is a flowchart of the CAN transmission process S300.
FIG. 19 is a flowchart of the OAM reception process S400.
FIG. 20 is a flowchart of the OAM polling process S500.
FIG. 21 is a flowchart of the facing GW failure determination process S600.
FIG. 22 is a flowchart of ECU port failure determination processing S700.
FIG. 23 is a diagram showing a switching process state by the OAM polling process S500 and a state selection table used for updating the selected path.
 先ず、図16を用いてイーサネット処理部103が実行するイーサネット受信処理S100について説明する。 First, the Ethernet reception process S100 executed by the Ethernet processing unit 103 will be described with reference to FIG.
 イーサネット処理部103は、イーサネットポート101から受信したイーサネットフレーム40(図4)のVLANタグ403からVLAN IDを取得し、図11に示したイーサネット受信テーブル21を検索し(S101)、装置内ヘッダ45のフローID451にイーサネット受信テーブル21から取得したフローID217を上書きし、イーサネット受信テーブル21で指定されたタグ処理213およびCoS処理215に従って、VLANタグ403を処理する(本実施形態では全て「透過」)(S102)。そして、イーサネット受信テーブル21から取得した廃棄フラグ212が‘1’(廃棄)か否かチェックし(S103)、‘1’(廃棄)でなければスイッチ処理部104へ当該フレームを転送し(S104)、処理を終了する(S108)。S103において、‘1’(廃棄)であると判定された場合、受信フレームのイーサネットタイプ404が「管理用」であるか否かをチェックし(S105)、「管理用」であれば当該車載GWで終端するOAMフレームであるため、装置内ヘッダ45のOAMフラグ453に‘1’を上書きし(S106)、S104以降の処理を実行する。 The Ethernet processing unit 103 acquires the VLAN ID from the VLAN tag 403 of the Ethernet frame 40 (FIG. 4) received from the Ethernet port 101, searches the Ethernet reception table 21 shown in FIG. And the flow ID 217 acquired from the Ethernet reception table 21 is overwritten on the flow ID 451, and the VLAN tag 403 is processed according to the tag processing 213 and the CoS processing 215 specified in the Ethernet reception table 21 (all “transparent” in this embodiment). (S102). Then, it is checked whether or not the discard flag 212 acquired from the Ethernet reception table 21 is “1” (discard) (S103). If it is not “1” (discard), the frame is transferred to the switch processing unit 104 (S104). The process is terminated (S108). If it is determined in S103 that it is “1” (discard), it is checked whether or not the Ethernet type 404 of the received frame is “for management” (S105). Since it is an OAM frame that terminates at “1”, “1” is overwritten in the OAM flag 453 of the in-device header 45 (S106), and the processing after S104 is executed.
 上記S105において、「管理用」でなければ、非選択パスのユーザフレームであるため、フレームを廃棄し(S107)、処理を終了する(S108)。 If it is not “for management” in S105, the frame is discarded because it is a user frame of a non-selected path (S107), and the process is terminated (S108).
 次に、図17を用いてCAN処理部105が実行するCAN受信処理S200について説明する。 Next, the CAN reception process S200 executed by the CAN processing unit 105 will be described with reference to FIG.
 CAN処理部105は、CANポート102から受信した入力CANフレーム41(図3)のアービトレーション412からCAN IDを取得し、CAN受信テーブル23を検索すると共に、現在の受信フレーム数238の値に1を加算した値を受信フレーム数238に格納する(S201)。 The CAN processing unit 105 acquires the CAN ID from the arbitration 412 of the input CAN frame 41 (FIG. 3) received from the CAN port 102, searches the CAN reception table 23, and sets 1 to the value of the current number of received frames 238. The added value is stored in the number of received frames 238 (S201).
 次に、CAN受信テーブル23から取得した廃棄フラグ232が‘1’(廃棄)か否かチェックする(S202)。 Next, it is checked whether or not the discard flag 232 acquired from the CAN reception table 23 is “1” (discard) (S202).
 S202で、‘1’(廃棄)でないと判定されたきには、CANフレーム41のデータ414以外のCANヘッダを削除し、本データ414をペイロード405とし、その他のイーサネットヘッダ(宛先MACアドレス401、送信元MACアドレス402、VLANタグ403、イーサネットタイプ404およびFCS406)のフィールドのみを追加し、値は無効値を入力する(S203)。 When it is determined in S202 that it is not '1' (discard), the CAN header other than the data 414 of the CAN frame 41 is deleted, and this data 414 is used as the payload 405, and other Ethernet headers (destination MAC address 401, transmission) Only the fields of the original MAC address 402, VLAN tag 403, Ethernet type 404 and FCS 406) are added, and an invalid value is input (S203).
 次に、装置内ヘッダ45のフローID451にCAN受信テーブル23から取得したフローID237を上書きし、CAN受信テーブル23で指定されたタグ処理233およびCoS処理235に従って、VLANタグ403を処理する(本実施形態では全て「追加」。その他のフィールドはレジスタ107の保持値を追加)(S204)。 Next, the flow ID 237 acquired from the CAN reception table 23 is overwritten on the flow ID 451 of the in-device header 45, and the VLAN tag 403 is processed according to the tag processing 233 and the CoS processing 235 specified in the CAN reception table 23 (this embodiment). In the form, all are “added.” In other fields, the holding value of the register 107 is added (S204).
 S202で、‘1’(廃棄)であると判定されたときには、非選択パスのフレームであるため、フレームを廃棄し(S206)、処理を終了する(S207)。 When it is determined in S202 that the frame is '1' (discard), the frame is a non-selected path, so the frame is discarded (S206), and the process is terminated (S207).
 次に、図18を用いてCAN処理部105が実行するCAN送信処理S300について説明する。 Next, CAN transmission processing S300 executed by the CAN processing unit 105 will be described with reference to FIG.
 CAN処理部105は、スイッチ処理部104から受信した出力イーサネットフレーム40(図3)の装置内ヘッダ45のフローID451を取得し、図14に示したCAN送信テーブル25を検索する(S301)。 The CAN processing unit 105 acquires the flow ID 451 of the in-device header 45 of the output Ethernet frame 40 (FIG. 3) received from the switch processing unit 104, and searches the CAN transmission table 25 shown in FIG. 14 (S301).
 検索の結果、当該フレームのイーサネットヘッダ(宛先MACアドレス401、送信元MACアドレス402、VLANタグ403、イーサネットタイプ404およびFCS406)を削除し、CANヘッダ(データ414以外)のフィールドのみを追加し、値は無効値を入力し、取得したCAN ID252をアービトレーション412に追加する(その他のフィールドはレジスタ107の保持値を追加)(S302)。そして、CANポート102へ当該フレームを転送し(S303)、処理を終了する(S304)。 As a result of the search, the Ethernet header (destination MAC address 401, transmission source MAC address 402, VLAN tag 403, Ethernet type 404 and FCS 406) of the frame is deleted, and only the field of the CAN header (other than data 414) is added, Inputs an invalid value, and adds the acquired CAN ID 252 to the arbitration 412 (the other field adds the value held in the register 107) (S302). Then, the frame is transferred to the CAN port 102 (S303), and the process ends (S304).
 次に、図19を用いてOAM処理部106が実行するOAM受信処理S400について説明する。 Next, the OAM reception process S400 executed by the OAM processing unit 106 will be described with reference to FIG.
 OAM処理部106は、OAMフレーム40を受信すると、図5に示したOAMペイロード4051のフローID40511により図15に示したOAMテーブルを検索し(S401)、OAM受信数2403に‘1’を加算し、OAM未受信回数2404を‘0’クリアし、対向GW切替処理状態2409に受信したフレームの切替処理状態40512を、それぞれOAMテーブル25の同一エントリに書き戻し(S402)、当該パケットを廃棄し(S403)、処理を終了する(S404)。 When receiving the OAM frame 40, the OAM processing unit 106 searches the OAM table shown in FIG. 15 by the flow ID 40511 of the OAM payload 4051 shown in FIG. 5 (S401), and adds “1” to the OAM reception number 2403. The OAM unreceived count 2404 is cleared to “0”, and the frame switching processing state 40512 received in the opposite GW switching processing state 2409 is written back to the same entry in the OAM table 25 (S402), and the packet is discarded ( The process is terminated (S404).
 次に、図20を用いてOAM処理部106が実行するOAMポーリング処理S500について説明する。 Next, the OAM polling process S500 executed by the OAM processing unit 106 will be described with reference to FIG.
 OAM処理部106は、OAMフレームの送信周期CYC間隔でこのポーリング処理を実行する。OAM処理部106は、ポーリングタイミングになると、内部パラメータiを‘0’に初期化する(S501)。次に、保持している内部パラメータiに‘1’を加算し(S502)、内部パラメータiをindexとして、OAMテーブル24を検索し、テーブル値を取得して、保持する(S503)。 The OAM processing unit 106 executes this polling process at an OAM frame transmission cycle CYC interval. At the polling timing, the OAM processing unit 106 initializes the internal parameter i to “0” (S501). Next, '1' is added to the stored internal parameter i (S502), the internal parameter i is set as an index, the OAM table 24 is searched, and the table value is acquired and stored (S503).
 そして、OAMテーブル24の有効フラグ252が‘1’(有効)であるか否かをチェックし(S504)、OAMテーブル24の有効フラグ252が‘1’(有効)でなければ、S507に行き、‘1’(有効)であれば、対向GW障害判定処理(S600)およびECUポート障害判定処理(S700)を並列に実行し、後述する状態遷移表30に従って、保持している切替処理状態2408に対応する値と選択パス2411に対応する値を更新する(S505)(後に、詳述)。 Then, it is checked whether or not the valid flag 252 of the OAM table 24 is “1” (valid) (S504). If the valid flag 252 of the OAM table 24 is not “1” (valid), the process goes to S507, If “1” (valid), the opposite GW failure determination process (S600) and the ECU port failure determination process (S700) are executed in parallel, and the held switching process state 2408 is set according to the state transition table 30 described later. The corresponding value and the value corresponding to the selected path 2411 are updated (S505) (detailed later).
 そして、図10に示した装置内ヘッダ45として、フローID451、入力ポートID452、OAMフラグ453(管理用)を設定し、イーサネットヘッダとして、宛先MACアドレス401、送信元MACアドレス402、イーサネットタイプ403、VLANタグ404として上述した車載GW間のOAMフレーム40送受信用のVLAN設定としてレジスタ107に保持されている値を設定し、OAMペイロード4051のフローID40511に、内部パラメータi(すなわち、フローIDは、♯1、♯2、♯3、…のようになる)、切替処理状態50512にS505で更新して保持している切替処理状態を、それぞれ設定したOAMフレーム40を生成し、スイッチ処理部104へ送信する(S506)。 Then, the flow ID 451, the input port ID 452, and the OAM flag 453 (for management) are set as the in-device header 45 shown in FIG. 10, and the destination MAC address 401, the source MAC address 402, the Ethernet type 403, As the VLAN tag 404, the value held in the register 107 is set as the VLAN setting for transmitting / receiving the OAM frame 40 between the in-vehicle GW described above, and the internal parameter i (that is, the flow ID is # is set in the flow ID 40511 of the OAM payload 4051). 1, # 2, # 3,...), An OAM frame 40 in which the switching processing state updated and held in the switching processing state 50512 in S 505 is generated and transmitted to the switch processing unit 104. (S506).
 そして、iがOAMテーブル24の最大値以上か否かをチェックし(S507)、最大値未満であればポーリング処理を継続するため、S502以降の処理を継続する。 Then, it is checked whether i is equal to or greater than the maximum value of the OAM table 24 (S507), and if it is less than the maximum value, the polling process is continued, so the processes after S502 are continued.
 上記S507の判定処理において、内部パラメータiが最大値以上となっていれば、全エントリのポーリングが完了したため、処理を終了する(S508)
 次に、図21を用いてOAM処理部106が実行する対向GW障害判定処理S600について説明する。
If the internal parameter i is equal to or greater than the maximum value in the determination process of S507, the polling of all entries is completed, and the process ends (S508).
Next, the opposite GW failure determination process S600 executed by the OAM processing unit 106 will be described with reference to FIG.
 OAM処理部106は、図15に示したOAMテーブル24から取得した対向GW障害2405が‘1’(障害)か否かをチェックし(S601)、‘1’(障害)であれば更新した情報を、OAMテーブル24に書き戻し(S607)、処理を終了する(S608)。 The OAM processing unit 106 checks whether or not the opposite GW failure 2405 acquired from the OAM table 24 illustrated in FIG. 15 is “1” (failure) (S601), and if it is “1” (failure), the updated information. Is written back to the OAM table 24 (S607), and the process is terminated (S608).
 上記S601の判定処理において、‘1’(障害)でなければ、OAMテーブル24から取得したOAM受信数2403が‘0’か否かチェックし(S602)、‘0’であれば、OAM未受信回数2404に‘1’を加算し(S603)、加算後のOAM未受信回数が‘3’以上か否かをチェックし(S604)、‘3’以上であれば、テーブルから取得し保持している対向GW障害2405に‘1’を上書きし(S605)、S607以降の処理を継続する。一方、加算後のOAM未受信回数が‘3’以上でなければ、S607以降の処理を継続する。 In the determination process of S601, if it is not “1” (failure), it is checked whether the number of OAM receptions 2403 acquired from the OAM table 24 is “0” (S602), and if it is “0”, no OAM has been received. “1” is added to the number of times 2404 (S603), and it is checked whether or not the number of OAM not received after addition is “3” or more (S604). The opposite GW failure 2405 is overwritten with “1” (S605), and the processing after S607 is continued. On the other hand, if the OAM non-reception count after addition is not “3” or more, the processing from S607 is continued.
 上記S602の判定処理において、OAMテーブル24から取得したOAM受信数2403が‘0でなければ、テーブルから取得し保持しているOAM受信数2403およびOAM未受信回数2404を’0‘クリアし(S606)、S607以降の処理を継続する。 If the OAM reception number 2403 acquired from the OAM table 24 is not “0” in the determination process of S602, the OAM reception number 2403 and the OAM non-reception number 2404 acquired and held from the table are cleared to “0” (S606). ), The process from S607 is continued.
 次に、図22を用いてOAM処理部106が実行するECUポート障害判定処理S700について説明する。 Next, the ECU port failure determination process S700 executed by the OAM processing unit 106 will be described with reference to FIG.
 OAM処理部106は、OAMテーブル24から取得したECUポートID1(2406)の値から通信ポートの種別がイーサネットか否かをチェックし(S701)、イーサネットであればECUポートID1(2406)に該当するリンク断発生の有無をレジスタ107により確認し(S702)、リンク断発生中であれば当該ECUポートID1が障害発生していることを保持し(S703)、処理を終了する(S710)。 The OAM processing unit 106 checks whether the type of the communication port is Ethernet from the value of the ECU port ID 1 (2406) acquired from the OAM table 24 (S701), and if it is Ethernet, it corresponds to the ECU port ID 1 (2406). The presence or absence of link breakage is confirmed by the register 107 (S702). If link breakage is occurring, it is retained that the ECU port ID1 has failed (S703), and the process is terminated (S710).
 上記S702の判定処理において、リンク断が発生していなければ当該ECUポートID1が障害がないことを保持し(S704)、処理を終了する(S710)。 In the determination process of S702, if no link break has occurred, the ECU port ID1 is maintained as having no failure (S704), and the process is terminated (S710).
 上記S701の判定処理において、ECUポートID1(2406)の値から通信ポートの種別がイーサネットでなければ、内部パラメータi(図20)で図12に示したCAN受信テーブル23を検索し(S705)、CAN受信テーブル23の受信フレーム数238が‘0’か否かチェックし(S706)、‘0’であれば障害発生中のため当該ECUポートID1が障害発生していることを保持し(S707)、処理を終了する(S710)。 In the determination process of S701, if the type of communication port is not Ethernet from the value of ECU port ID1 (2406), the CAN reception table 23 shown in FIG. 12 is searched with the internal parameter i (FIG. 20) (S705). It is checked whether or not the number of received frames 238 in the CAN reception table 23 is “0” (S706), and if it is “0”, it means that a failure has occurred and that the ECU port ID1 has failed (S707). The process is terminated (S710).
 上記S706の判定処理において、CAN受信テーブル23の受信フレーム数238が‘0’でなければ当該ECUポートID1が障害がないことを保持し(S704)、受信フレーム数を‘0’クリアし、CAN受信テーブル23の同一エントリに書き戻し(S709)、処理を終了する(S710)。 In the determination process of S706, if the number of received frames 238 in the CAN reception table 23 is not “0”, it is retained that the ECU port ID1 is not faulty (S704), and the number of received frames is cleared to “0”. Write back to the same entry in the reception table 23 (S709), and the process ends (S710).
 上記S700は、ECUポートID1(2407)として記載したが、同時にECUポートID2(2407)にも同様の処理を実施する。 The above S700 is described as ECU port ID1 (2407), but at the same time, the same processing is performed for ECU port ID2 (2407).
 次に、図23を用いてOAMポーリング処理S500による切替処理状態と選択パスの更新に用いられる状態選択表について説明する。 Next, the switching process state by the OAM polling process S500 and the state selection table used for updating the selected path will be described with reference to FIG.
 状態遷移表T30は、状態番号T301、切替処理状態T302、パス設定T303、ローカルインプットT304、リモートインプットT305、選択パスT306からなる。ここで、現状の状態は状態番号T301で示される八つの状態が存在し、それは切替処理状態T302とパス設定T303の組合せで表現される。この現在状態に対して、ローカルインプットT304と、リモートインプットT305があった場合に、それぞれが発生した場合の遷移先が示されている。 The state transition table T30 includes a state number T301, a switching processing state T302, a path setting T303, a local input T304, a remote input T305, and a selected path T306. Here, the current state has eight states indicated by a state number T301, which is expressed by a combination of a switching processing state T302 and a path setting T303. When there are a local input T304 and a remote input T305 for this current state, the transition destination when each occurs is shown.
 ローカルインプットT304は、対向GW障害判定処理S600およびECUポート障害判定処理S700で判定する当該車載GWで発生する障害イベントであり、リモートインプットT305は、OAMフレーム40で取得可能な対向の車載GW障害イベントである。 The local input T304 is a failure event that occurs in the in-vehicle GW determined in the opposing GW failure determination processing S600 and the ECU port failure determination processing S700, and the remote input T305 is an opposing in-vehicle GW failure event that can be acquired in the OAM frame 40 It is.
 なお、状態遷移表T30の表記中で“→数字”は遷移先の数字の状態番号の状態に遷移、“-”は現在の状態を維持、“NA”(Non Analysis)はシステム仕様上の状態としてはあり得ないのでデフォルト状態である状態番号T301が“1”に遷移する。本実施形態では、先ず、ローカルインプットT304に応じた遷移をおこなった後、リモートインプットT305に応じた遷移をおこなうものとする。 In the notation of the state transition table T30, “→ number” transitions to the state of the transition destination number, “−” maintains the current state, and “NA” (Non ”Analysis) indicates the state in the system specifications. Therefore, the state number T301, which is the default state, transitions to “1”. In the present embodiment, first, a transition according to the local input T304 is performed, and then a transition according to the remote input T305 is performed.
 以下、図8A、図8Bの場合の処理における状態遷移を状態遷移表T30により説明する。
  図8Aに示した例では、車載GW-1に接続されたイーサネットETH-1のパスが現用であり、車載GW-2に接続されたイーサネットETH-2のパスが予備である。このとき、図8Aに示したように、イーサネットETH-1が断線すると、ローカルインプットT304の「ECUポート障害1」が発生する。これに従い、切替処理状態が「状態通知」の車載GW-1は、状態番号3に遷移し、関連するフローの切替処理状態が「切替要求」になり、以降、車載GW-1では、対向する車載GW-2に対して切替要求を送信する。車載GW-2では、リモートインプットT305の「切替要求」のイベントが発生したので、状態番号6に遷移し、関連するフローの切替処理状態が「切替応答」になり、以降、車載GW-2では、対向する車載GW-1に対して切替応答を送信する。
Hereinafter, the state transition in the processing in the case of FIGS. 8A and 8B will be described with reference to the state transition table T30.
In the example shown in FIG. 8A, the Ethernet ETH-1 path connected to the in-vehicle GW-1 is the active path, and the Ethernet ETH-2 path connected to the in-vehicle GW-2 is a spare. At this time, as shown in FIG. 8A, if the Ethernet ETH-1 is disconnected, the “ECU port failure 1” of the local input T304 occurs. Following this, the in-vehicle GW-1 whose switching process state is “status notification” transitions to the state number 3 and the switching process state of the related flow becomes “switching request”. A switching request is transmitted to the in-vehicle GW-2. In the in-vehicle GW-2, the event “switch request” of the remote input T305 has occurred, so the state transitions to the state number 6 and the switch processing state of the associated flow becomes “switch response”. The switch response is transmitted to the opposite on-vehicle GW-1.
 次に、車載GW-1では、リモートインプットT305の「切替応答」のイベントが発生したので、状態番号7に遷移し、関連するフローの切替処理状態が「切替完了」になり、以降、車載GW-1では、対向する車載GW-2に対して切替完了を送信する。また、選択パス306は、「予備」になる。 Next, in the in-vehicle GW-1, since the “switch response” event of the remote input T305 has occurred, the state transitions to the state number 7, the switching process state of the related flow becomes “switch complete”, and thereafter the in-vehicle GW At -1, a switch completion is transmitted to the opposite onboard GW-2. Further, the selected path 306 becomes “reserve”.
 次に、車載GW-2では、リモートインプットT305の「切替完了」のイベントが発生したので、状態番号8に遷移し、関連するフローの切替処理状態が「切替完了」になり、以降、車載GW-2では、対向する車載GW-1に対して切替完了を送信する。また、選択パス306は、「予備」になる。 Next, in the in-vehicle GW-2, since the “switching complete” event of the remote input T305 has occurred, the state transitions to the state number 8 and the switching process state of the related flow becomes “switching complete”. -2 transmits a switch completion to the opposite on-vehicle GW-1. Further, the selected path 306 becomes “reserve”.
 この結果、以降では、車載GW-1は、関連するフローのフレームを廃棄し、車載GW-2は、自分に送信されたフレームに対して、フレーム形式の変換(イーサネットフレームとCANフレームの相互変換)をおこない接続されたECUに送信するようになる。 As a result, thereafter, the in-vehicle GW-1 discards the frame of the related flow, and the in-vehicle GW-2 converts the frame format (mutual conversion between the Ethernet frame and the CAN frame) to the frame transmitted to itself. ) And transmitted to the connected ECU.
 一方、図8Bに示したように、車載GW-1に故障が発生すると、以降の動作は保障されなくなる。対向する車載GW-2では、ローカルインプットT304の「対向GW障害」が発生したことになるので、状態番号8に遷移し、切替処理状態が「切替完了」になり、選択パス306が「予備」になり、以降では、自分に送信されたフレームに対して、フレーム形式の変換(イーサネットフレームとCANフレームの相互変換)をおこない接続されたECUに送信するようになる。 On the other hand, as shown in FIG. 8B, when a failure occurs in the in-vehicle GW-1, the subsequent operation is not guaranteed. In the opposite in-vehicle GW-2, since the “opposite GW failure” of the local input T304 has occurred, the state transitions to the state number 8, the switching processing state becomes “switching complete”, and the selected path 306 is “standby”. In the following, frame format conversion (mutual conversion between an Ethernet frame and a CAN frame) is performed on the frame transmitted to itself, and the frame is transmitted to the connected ECU.

Claims (10)

  1.  フレームの経路を制御するGW(GateWay)と、フレームを送受信するECU(Electronic Control Unit)とからなる冗長通信システムであって、
     第一のGWと、第二のGWと、第一のECUと、第二のECUとからなり、
     前記第一のECUは、前記第一のGWと前記第二のGWの双方に第一のネットワークにより接続されており、
     前記第二のECUは、前記第一のGWと前記第二のGWの双方に第二のネットワークにより接続されており、
     前記第一のGWと、前記第二のGWは、管理用ネットワークにより接続されており、
     前記第一のGWと前記第二のGWとは、前記管理用ネットワークにより互いの通信状態を通知する管理用フレームを送受信し、
     前記第一のECUが前記第二のECUに対してフレームを送信する場合に、前記第一のECUは、前記第一のGWと前記第二のGWとに同一のフレームを送信し、前記第一のGWと前記第二のGWは、前記フレームを受信し、各々の通信状態に従い、前記第一のGWと前記第二のGWの一方は、前記受信したフレームを破棄し、前記第一のGWと前記第二のGWの他方は、前記受信したフレームを、前記第二のネットワークを介して前記第二のECUに送信することを特徴とする冗長通信システム。
    A redundant communication system comprising a GW (GateWay) for controlling the path of a frame and an ECU (Electronic Control Unit) for transmitting / receiving the frame,
    The first GW, the second GW, the first ECU, and the second ECU,
    The first ECU is connected to both the first GW and the second GW by a first network;
    The second ECU is connected to both the first GW and the second GW by a second network,
    The first GW and the second GW are connected by a management network,
    The first GW and the second GW transmit and receive a management frame for notifying each other's communication status through the management network,
    When the first ECU transmits a frame to the second ECU, the first ECU transmits the same frame to the first GW and the second GW, and the first ECU One GW and the second GW receive the frame, and according to each communication state, one of the first GW and the second GW discards the received frame, and the first GW The redundant communication system, wherein the other of the GW and the second GW transmits the received frame to the second ECU via the second network.
  2.  前記第一のネットワークが、バス型とは異なるネットワークであり、
     前記第二のネットワークが、バス型ネットワークであり、
     前記第一のGWと前記第二のGWは、前記第一のネットワークから送信されてきたフレームを、前記第二のネットワークに適合する形式のフレームに変換して、前記前記第二のネットワークに送信し、前記第二のネットワークから送信されてきたフレームを、前記第一のネットワークに適合する形式のフレームに変換して、前記前記第一のネットワークに送信することを特徴とする請求項1記載の冗長通信システム。
    The first network is a network different from the bus type,
    The second network is a bus network;
    The first GW and the second GW convert a frame transmitted from the first network into a frame having a format suitable for the second network, and transmit the frame to the second network. The frame transmitted from the second network is converted into a frame having a format suitable for the first network and transmitted to the first network. Redundant communication system.
  3.  前記第一のGWと上記第二のGWは、
     自GWに接続されたネットワークのネットワーク障害を検知し、
     前記管理用ネットワークにより接続された対向するGWに対して、その旨を通知する管理用フレームを送信し、
     前記管理用フレームを受信したGWは、通信状態を変更し、
     前記管理用フレームを受信したGWが、自GWに送信されてきた第一のネットワークからのフレームを、前記第二のネットワークに送信するか、あるいは、自GWに送信されてきた第二のネットワークからのフレームを、前記第一のネットワークに送信することを特徴とする請求項1記載の冗長通信システム。
    The first GW and the second GW are:
    Detects network failure of the network connected to its own GW,
    A management frame for notifying the GW connected by the management network to that effect,
    The GW that has received the management frame changes the communication state,
    The GW that has received the management frame transmits the frame from the first network transmitted to the own GW to the second network, or from the second network transmitted to the own GW. The redundant communication system according to claim 1, wherein the frame is transmitted to the first network.
  4.  前記第一のGWと上記第二のGWは、
     前記管理用ネットワークにより接続された対向するGWからの管理用フレームが、一定期間送信されてこないときに、
     自GWの通信状態を切り換え、自GWに送信されてきた第一のネットワークからのフレームを、前記第二のネットワークに送信するか、あるいは、自GWに送信されてきた第二のネットワークからのフレームを、前記第一のネットワークに送信することを特徴とする請求項1記載の冗長通信システム。
    The first GW and the second GW are:
    When a management frame from the opposite GW connected by the management network is not transmitted for a certain period of time,
    The communication state of the own GW is switched, and the frame from the first network transmitted to the own GW is transmitted to the second network, or the frame from the second network transmitted to the own GW. 2. The redundant communication system according to claim 1, wherein the second communication system is transmitted to the first network.
  5.  自GWに接続されたネットワークのネットワーク障害を検知した旨を通知する管理用フレームを送信したGWは、
     対向するGWから応答通知を受取ったときに、通信状態を切り換えることを特徴とする請求項3記載の冗長通信システム。
    The GW that has transmitted the management frame notifying that the network failure of the network connected to the own GW has been detected,
    4. The redundant communication system according to claim 3, wherein the communication state is switched when a response notification is received from an opposing GW.
  6.  フレームの経路を制御するGW(GateWay)と、フレームを送受信するECU(Electronic Control Unit)とからなる冗長通信システムの復旧方法であって、
     前記冗長通信システムは、第一のGWと、第二のGWと、第一のECUと、第二のECUとからなり、
     前記第一のECUは、前記第一のGWと前記第二のGWの双方に第一のネットワークにより接続されており、
     前記第二のECUは、前記第一のGWと前記第二のGWの双方に第二のネットワークにより接続されており、
     前記第一のGWと、前記第二のGWは、管理用ネットワークにより接続されており、
     前記第一のGWと前記第二のGWとは、前記管理用ネットワークにより互いの通信状態を通知する管理用フレームを送受信するステップと、
     前記第一のECUが前記第二のECUに対してフレームを送信する場合に、前記第一のECUは、前記第一のGWと前記第二のGWとに同一のフレームを送信するステップと、
     前記第一のGWと前記第二のGWは、前記フレームを受信し、各々の通信状態に従い、前記第一のGWと前記第二のGWの一方は、前記受信したフレームを破棄するステップと、
     前記第一のGWと前記第二のGWの他方は、前記受信したフレームを、前記第二のネットワークを介して前記第二のECUに送信するステップとを有することを特徴とする冗長通信システムの復旧方法。
    A method for recovering a redundant communication system comprising a GW (GateWay) for controlling a route of a frame and an ECU (Electronic Control Unit) for transmitting / receiving the frame,
    The redundant communication system includes a first GW, a second GW, a first ECU, and a second ECU,
    The first ECU is connected to both the first GW and the second GW by a first network;
    The second ECU is connected to both the first GW and the second GW by a second network,
    The first GW and the second GW are connected by a management network,
    The first GW and the second GW transmit and receive a management frame for notifying each other's communication state through the management network;
    When the first ECU transmits a frame to the second ECU, the first ECU transmits the same frame to the first GW and the second GW; and
    The first GW and the second GW receive the frame, and according to each communication state, one of the first GW and the second GW discards the received frame;
    The other of the first GW and the second GW includes a step of transmitting the received frame to the second ECU via the second network. Recovery method.
  7.  前記第一のネットワークが、バス型とは異なるネットワークであり、
     前記第二のネットワークが、バス型ネットワークであり、
     前記第一のGWと前記第二のGWは、前記第一のネットワークから送信されてきたフレームを、前記第二のネットワークに適合する形式のフレームに変換して、前記前記第二のネットワークに送信し、前記第二のネットワークから送信されてきたフレームを、前記第一のネットワークに適合する形式のフレームに変換して、前記前記第一のネットワークに送信するステップを有することを特徴とする請求項6記載の冗長通信システムの復旧方法。
    The first network is a network different from the bus type,
    The second network is a bus network;
    The first GW and the second GW convert a frame transmitted from the first network into a frame having a format suitable for the second network, and transmit the frame to the second network. And converting the frame transmitted from the second network into a frame having a format suitable for the first network and transmitting the frame to the first network. 6. The redundant communication system recovery method according to 6.
  8.  前記第一のGWと上記第二のGWが、自GWに接続されたネットワークのネットワーク障害を検知するステップと、
     前記第一のGWと上記第二のGWが、前記管理用ネットワークにより接続された対向するGWに対して、その旨を通知する管理用フレームを送信するステップと、
     前記管理用フレームを受信したGWが、通信状態を変更するステップと、
     前記管理用フレームを受信したGWが、自GWに送信されてきた第一のネットワークからのフレームを、前記第二のネットワークに送信するか、あるいは、自GWに送信されてきた第二のネットワークからのフレームを、前記第一のネットワークに送信するステップとを有することを特徴とする請求項6記載の冗長通信システムの復旧方法。
    The first GW and the second GW detecting a network failure of a network connected to the GW;
    The first GW and the second GW transmitting a management frame notifying the opposite GW connected by the management network;
    The GW that has received the management frame changes the communication state;
    The GW that has received the management frame transmits the frame from the first network transmitted to the own GW to the second network, or from the second network transmitted to the own GW. The method according to claim 6, further comprising a step of transmitting the first frame to the first network.
  9.  前記管理用ネットワークにより接続された対向するGWからの管理用フレームが、一定期間送信されてこないときに、前記第一のGWと上記第二のGWが、自GWの通信状態を切り換え、自GWに送信されてきた第一のネットワークからのフレームを、前記第二のネットワークに送信するか、あるいは、自GWに送信されてきた第二のネットワークからのフレームを、前記第一のネットワークに送信するステップを有することを特徴とする請求項6記載の冗長通信システムの復旧方法。 When the management frame from the opposite GW connected by the management network is not transmitted for a certain period, the first GW and the second GW switch the communication state of the own GW, and the own GW The frame from the first network transmitted to the second network is transmitted to the second network, or the frame from the second network transmitted to the own GW is transmitted to the first network. 7. The redundant communication system recovery method according to claim 6, further comprising steps.
  10.  自GWに接続されたネットワークのネットワーク障害を検知した旨を通知する管理用フレームを送信したGWは、
     対向するGWから応答通知を受取ったときに、通信状態を切り換えるステップを有することを特徴とする請求項6記載の冗長通信システムの復旧方法。
    The GW that has transmitted the management frame notifying that the network failure of the network connected to the own GW has been detected,
    7. The method for recovering a redundant communication system according to claim 6, further comprising a step of switching a communication state when a response notification is received from an opposing GW.
PCT/JP2016/088562 2016-02-19 2016-12-22 Redundant communication system and redundant communication system restoration method WO2017141546A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2016029833A JP2017147680A (en) 2016-02-19 2016-02-19 Redundant communication system and redundant communication system recovery method
JP2016-029833 2016-02-19

Publications (1)

Publication Number Publication Date
WO2017141546A1 true WO2017141546A1 (en) 2017-08-24

Family

ID=59625841

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2016/088562 WO2017141546A1 (en) 2016-02-19 2016-12-22 Redundant communication system and redundant communication system restoration method

Country Status (2)

Country Link
JP (1) JP2017147680A (en)
WO (1) WO2017141546A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020085422A1 (en) * 2018-10-24 2020-04-30 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Onboard network relay device and onboard network relay method
WO2020099751A1 (en) * 2018-11-16 2020-05-22 Psa Automobiles Sa Method for determining a malfunction of a communicating node of an on-board communications network in a motor-driven land vehicle
CN113557697A (en) * 2019-03-05 2021-10-26 住友电气工业株式会社 Management device, vehicle communication system, vehicle communication management method, and vehicle communication management program

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7063010B2 (en) * 2018-03-01 2022-05-09 株式会社デンソー Relay device, communication system and relay control device
JP7207231B2 (en) * 2019-08-21 2023-01-18 トヨタ自動車株式会社 Communication device and protocol switching method
JP7443820B2 (en) 2020-02-27 2024-03-06 マツダ株式会社 In-vehicle equipment control device and vehicle control system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08172449A (en) * 1994-12-20 1996-07-02 Yokogawa Electric Corp Duplex data transmitter
JP2007329798A (en) * 2006-06-09 2007-12-20 Yokogawa Electric Corp Gateway system
JP2015207838A (en) * 2014-04-18 2015-11-19 日本電気株式会社 Packet transfer system and packet transfer method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08172449A (en) * 1994-12-20 1996-07-02 Yokogawa Electric Corp Duplex data transmitter
JP2007329798A (en) * 2006-06-09 2007-12-20 Yokogawa Electric Corp Gateway system
JP2015207838A (en) * 2014-04-18 2015-11-19 日本電気株式会社 Packet transfer system and packet transfer method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MITSUHIRO KITANI: "Development of Data Communication Method In-Vehicle Network for Automated Driving", IPSJ SIG NOTES GROUPWARE AND NETWORK SERVICES (GN), 14 January 2016 (2016-01-14) *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020085422A1 (en) * 2018-10-24 2020-04-30 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ Onboard network relay device and onboard network relay method
WO2020099751A1 (en) * 2018-11-16 2020-05-22 Psa Automobiles Sa Method for determining a malfunction of a communicating node of an on-board communications network in a motor-driven land vehicle
FR3088786A1 (en) * 2018-11-16 2020-05-22 Psa Automobiles Sa METHOD FOR DETERMINING A MALFUNCTION OF A COMMUNICATING NODE OF AN ON-BOARD COMMUNICATION NETWORK IN A MOTOR LAND VEHICLE
CN113557697A (en) * 2019-03-05 2021-10-26 住友电气工业株式会社 Management device, vehicle communication system, vehicle communication management method, and vehicle communication management program
CN113557697B (en) * 2019-03-05 2023-03-24 住友电气工业株式会社 Management device, vehicle communication system, vehicle communication management method, and vehicle communication management program

Also Published As

Publication number Publication date
JP2017147680A (en) 2017-08-24

Similar Documents

Publication Publication Date Title
WO2017141546A1 (en) Redundant communication system and redundant communication system restoration method
US5781715A (en) Fault-tolerant bridge/router with a distributed switch-over mechanism
JP2008517528A (en) System and method for tunneling standard bus protocol messages over an automotive switch configuration network
EP2219325A1 (en) Communication apparatus between train vehicles
US5742603A (en) Method and apparatus for integrating repeater management, media access control, and bridging functions
CN103019167A (en) Central bus guardian (CBG) and method for operating CBG
CN111919422B (en) Method for operating an ethernet on-board network of a motor vehicle, control unit and ethernet on-board network
JP5429697B2 (en) Communication network management system, method, and management computer
CN114174953A (en) One port of low complexity Ethernet node (LEN)
JP5019983B2 (en) In-vehicle communication system, relay device, and communication method
US10162777B2 (en) Transmission unit with checking function
US6907488B1 (en) Serial data transmission via a bus system
JP2007153001A (en) Device and method of changing communication route in on-vehicle electric equipment
US20150220471A1 (en) Communication system
WO1993005602A1 (en) Multiplex transmission system
JP5728043B2 (en) Gateway device
KR100609493B1 (en) Method for transmitting multiple sensors data with a CAN message
JP4361540B2 (en) Gateway device, data transfer method, and program
CN112769660A (en) Vehicle controller, system including the same, and method thereof
JP2007036632A (en) Gateway apparatus
JP4655733B2 (en) Receiving method and apparatus in ring-type duplex network
JPH0738596A (en) Inter-network connector
JP6497142B2 (en) Communication monitoring device, communication monitoring program, and communication monitoring method
US11522815B2 (en) Switch, control apparatus, communication system, communication control method and program
JP4959484B2 (en) Relay connection unit

Legal Events

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

Ref document number: 16890683

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16890683

Country of ref document: EP

Kind code of ref document: A1