JP6519461B2 - Communications system - Google Patents

Communications system Download PDF

Info

Publication number
JP6519461B2
JP6519461B2 JP2015239473A JP2015239473A JP6519461B2 JP 6519461 B2 JP6519461 B2 JP 6519461B2 JP 2015239473 A JP2015239473 A JP 2015239473A JP 2015239473 A JP2015239473 A JP 2015239473A JP 6519461 B2 JP6519461 B2 JP 6519461B2
Authority
JP
Japan
Prior art keywords
ethernet
ecu
mac address
message
gateway
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
JP2015239473A
Other languages
Japanese (ja)
Other versions
JP2017108247A (en
Inventor
太一 松村
太一 松村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Original Assignee
Toyota Motor Corp
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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP2015239473A priority Critical patent/JP6519461B2/en
Publication of JP2017108247A publication Critical patent/JP2017108247A/en
Application granted granted Critical
Publication of JP6519461B2 publication Critical patent/JP6519461B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Description

本発明は、複数の電子制御装置が複数のネットワークを介してゲートウェイに接続された通信システムに関する。   The present invention relates to a communication system in which a plurality of electronic control units are connected to a gateway via a plurality of networks.

CAN(Controller Area Network)やイーサネット(登録商標)ネットワークなどに接続された複数の電子制御装置(Electronic Control Unit;以下「ECU」という)が、ゲートウェイ(GW)を介して相互に接続された通信システムが、例えば特許文献1や特許文献2に開示されている。   A communication system in which a plurality of electronic control units (hereinafter referred to as "ECUs") connected to a CAN (Controller Area Network) or an Ethernet (registered trademark) network are connected to one another via a gateway (GW). Are disclosed, for example, in Patent Document 1 and Patent Document 2.

このような従来の通信システムにおいて、例えばCANからイーサネットネットワークへメッセージが中継される場合、一般的には、ゲートウェイが、ARP(Address Resolution Protocol)機能を用いて、中継すべきメッセージが生じるごとに中継先(宛先)となるイーサネットECUのMAC(Media Access Control)アドレスを動的に取得する。そして、ゲートウェイが、取得したMACアドレスを持つイーサネットECUへメッセージを送信することを行う。   In such a conventional communication system, for example, when a message is relayed from CAN to an Ethernet network, in general, the gateway relays each time a message to be relayed occurs using an Address Resolution Protocol (ARP) function. Dynamically acquire the MAC (Media Access Control) address of the Ethernet ECU that is the destination (destination). Then, the gateway transmits a message to the Ethernet ECU having the acquired MAC address.

特開2014−154920号公報JP, 2014-154920, A 特開2008−099014号公報JP, 2008-099014, A

イーサネットネットワークでは、ソフトウエア機能を縮小させるために、ARP機能を実装しないことも考えられる。ARP機能を使用せずにCANからイーサネットネットワークへメッセージを中継する場合、ゲートウェイは、メッセージ送信元のCAN_IDとメッセージ送信先のMACアドレスとを紐付けた経路情報(以下「ルーティングテーブル」という)を、保持しておく必要がある。   In Ethernet networks, it may be possible not to implement the ARP function in order to reduce the software function. When relaying a message from CAN to the Ethernet network without using the ARP function, the gateway links route information (hereinafter referred to as “routing table”) in which the CAN_ID of the message transmission source and the MAC address of the message transmission destination are linked. You need to hold it.

MACアドレスは、ECUごとに固有に割り振られる物理的なアドレスであるため、同じグループ(種類)のECUであってもそれぞれMACアドレスが異なる。例えば、同じグループ(種類)のブレーキECUが変更(部品交換)されるような場合、変更後の新ブレーキECUのMACアドレスは、変更前の旧ブレーキECUのMACアドレスとは異なる。よって、このような変更が生じた場合、ゲートウェイが保持している既存のルーティングテーブルに記載されたブレーキECUのMACアドレスが、実際に接続されているブレーキECUのMACアドレスと異なってしまう。   Since the MAC address is a physical address uniquely assigned to each ECU, the MAC addresses are different even for ECUs of the same group (type). For example, when brake ECUs in the same group (type) are changed (part replacement), the MAC address of the new brake ECU after the change is different from the MAC address of the old brake ECU before the change. Therefore, when such a change occurs, the MAC address of the brake ECU described in the existing routing table held by the gateway will be different from the MAC address of the brake ECU actually connected.

このように、ネットワークの状況変化に応じて内容が更新されない静的なルーティングテーブルを用いた通信手法では、CAN_IDと変更後のイーサネットECUとの紐付けが行われない。このため、ゲートウェイは、既存のルーティングテーブルに基づいて、変更後のイーサネットECUへメッセージ中継を行うことができない。   As described above, in the communication method using a static routing table whose contents are not updated according to a change in the network status, the CAN_ID and the Ethernet ECU after the change are not linked. Therefore, the gateway can not relay the message to the changed Ethernet ECU based on the existing routing table.

本発明は、上記課題を鑑みてなされたものであり、イーサネットECUが同じグループ(種類)の別のイーサネットECUに変更された場合でも、ゲートウェイが保持する既存のルーティングテーブルに基づいて、変更前のイーサネットECUへ向けたメッセージを変更後のイーサネットECUへ中継することができる、通信システムを提供することを目的とする。   The present invention has been made in view of the above problems, and, even when an Ethernet ECU is changed to another Ethernet ECU in the same group (type), based on the existing routing table held by the gateway, the pre-change is performed. An object of the present invention is to provide a communication system capable of relaying a message directed to an Ethernet ECU to a post-change Ethernet ECU.

上記課題を解決するために、本発明は、少なくともイーサネットネットワークを含む複数のネットワークと、複数のネットワーク間でメッセージを中継するゲートウェイが接続された通信システムであって、イーサネットネットワークに接続された各イーサネットECUには、そのECUを所定のグループに分類するための分類情報を特定領域に含むMACアドレスが、それぞれ割り当てられており、ゲートウェイは、イーサネット以外のネットワークから送信されるメッセージの識別情報とメッセージの中継先であるイーサネットECUとを紐付けた第1テーブル、イーサネットECUとイーサネットECUに割り当てられたMACアドレスの分類情報とを紐付けて記憶する第2テーブルと、イーサネットネットワークに接続されているイーサネットECUのMACアドレスを記述したリストと、メッセージを受信すると、第1及び第2テーブルに基づいてメッセージの中継先となるイーサネットECUに割り当てられたMACアドレスの分類情報を決定し、決定した分類情報を特定領域に含むMACアドレスがリストの中にあれば、そのMACアドレスを宛先に設定してメッセージを送出する制御部とを備える、ことを特徴とする。 In order to solve the above problems, the present invention is a communication system in which a plurality of networks including at least an Ethernet network and a gateway for relaying a message between the plurality of networks are connected, each Ethernet connected to the Ethernet network. the ECU, MAC address included in the specific area classification information for classifying the ECU in a predetermined group, are allocated respectively, gateway, messages sent from a network other than Ethernet identification information and messages a second table for the first table linked and Ethernet ECU, and classification information of MAC address assigned to the Ethernet ECU and Ethernet ECU in association storage is a relay destination, it connected to the Ethernet network A list describing the MAC address of the Ethernet ECU, upon receiving the message, based on the first and second tables to determine the classification information of MAC address assigned to the relay destination becomes Ethernet ECU message, the determined classification information And a controller configured to set the MAC address as a destination and send out a message, when the MAC address including the address in the specific area is in the list.

この本発明の通信システムでは、同じグループ(種類)のイーサネットECUには、同じユニークな分類情報を割り当て、この分類情報をMACアドレスの特定領域に含める。ゲートウェイには、メッセージの識別情報とイーサネットECUとを紐付けた第1テーブル、イーサネットECUとイーサネットECUに割り当てられたMACアドレスの分類情報とを紐付けた第2テーブルと、イーサネットネットワークに実際に接続されているイーサネットECUのMACアドレスのリストとを、予め記憶させている。 In this communication system of the present invention, Ethernet ECUs of the same group (type) are assigned the same unique classification information, and this classification information is included in a specific area of the MAC address. The gateway is connected to the first table in which the identification information of the message and the Ethernet ECU are linked, the second table in which the Ethernet ECU and the classification information of the MAC address assigned to the Ethernet ECU are linked, and actually connected to the Ethernet network A list of Ethernet ECU MAC addresses being stored is stored in advance.

これにより、ゲートウェイは、第1及び第2テーブルに基づいて決定された、メッセージの中継先ECUに割り当てられたMACアドレスの分類情報と、同じ分類情報を特定領域に持つMACアドレスがリスト存在すれば、同じ分類情報を特定領域に持つMACアドレスを新たな中継先(宛先)に設定してメッセージを送信する。つまり、MACアドレス全体として相違しているが分類情報が同じであるMACアドレスを持つイーサネットECUであれば、同じ機能を有するECUであると判断してイーサネットメッセージを送信する。よって、ゲートウェイは、既存のテーブルに基づいて、メッセージを変更後のイーサネットECUへ中継することができる。 Thereby, if the gateway has a list of MAC address classification information assigned to the relay destination ECU of the message determined based on the first and second tables, and a MAC address having the same classification information in the specific area, The MAC address having the same classification information in the specific area is set as a new relay destination (destination) and the message is transmitted. That is, if the Ethernet ECU has a MAC address that is different as the entire MAC address but has the same classification information, it determines that the ECU has the same function and transmits an Ethernet message. Therefore, the gateway can relay the message to the post-modification Ethernet ECU based on the existing table.

以上述べたように、本発明の通信システムによれば、イーサネットECUが同じグループ(種類)の別のイーサネットECUに変更された場合でも、ゲートウェイが保持する既存のルーティングテーブルに基づいて、変更前のイーサネットECUへ向けたメッセージを変更後のイーサネットECUへ中継することができる。   As described above, according to the communication system of the present invention, even when the Ethernet ECU is changed to another Ethernet ECU in the same group (type), the existing routing table held by the gateway is used to change the status before the change. Messages directed to the Ethernet ECU can be relayed to the Ethernet ECU after the change.

本発明の一実施形態に係る通信システムの構成例を示す図A diagram showing a configuration example of a communication system according to an embodiment of the present invention ゲートウェイの記憶部が保持するルーティングテーブル(第1の情報)の一例を説明する図A diagram for explaining an example of a routing table (first information) held by the storage unit of the gateway ゲートウェイの記憶部が保持するルーティングテーブル(第2の情報)の一例を説明する図A diagram for explaining an example of a routing table (second information) held by the storage unit of the gateway 分類情報を特定領域に含んだ形式のMACアドレスの一例を説明する図A diagram for explaining an example of a MAC address in a format including classification information in a specific area ゲートウェイの記憶部が保持するスイッチ接続リストの一例を説明する図Diagram for explaining an example of the switch connection list held by the storage unit of the gateway ゲートウェイの制御部が実行する処理の手順を示すフローチャートFlow chart showing the procedure of processing executed by the control unit of the gateway

[概要]
本発明の通信システムでは、ECUを所定のグループ(種類)に分類するために各グループ(種類)にユニークに割り当てられた分類情報を用いて、CANメッセージを中継するイーサネットECUを決定する。これにより、分類情報が同じイーサネットECUが部品交換されてMACアドレスが変わっても、MACアドレス内に含まれる分類情報の一致を判断してメッセージを送信する。よって、ECUが変更された場合でも、既存のルーティングテーブルに基づいて変更後のイーサネットECUへメッセージを中継することができる。
[Overview]
In the communication system of the present invention, in order to classify the ECUs into predetermined groups (types), Ethernet ECUs that relay CAN messages are determined using classification information uniquely assigned to each group (type). As a result, even if the Ethernet ECU with the same classification information is replaced and the MAC address changes, the message is transmitted by judging the coincidence of the classification information included in the MAC address. Therefore, even if the ECU is changed, the message can be relayed to the changed Ethernet ECU based on the existing routing table.

以下、本発明が提供する通信システムについて、図面を参照しながら詳細に説明する。   Hereinafter, a communication system provided by the present invention will be described in detail with reference to the drawings.

[通信システムの構成例]
図1は、本発明の一実施形態に係る通信システム1の構成例を示す図である。図1に例示した通信システム1は、ゲートウェイ(GW)10と、複数のイーサネットECU(ECU_A、ECU_B、ECU_C)21、22、および23と、CAN−ECU(ECU_X)31とを、備えている。
[Configuration example of communication system]
FIG. 1 is a view showing a configuration example of a communication system 1 according to an embodiment of the present invention. The communication system 1 illustrated in FIG. 1 includes a gateway (GW) 10, a plurality of Ethernet ECUs (ECU_A, ECU_B, ECU_C) 21, 22 and 23, and a CAN-ECU (ECU_X) 31.

ゲートウェイ10、複数のイーサネットECU21、22、23、およびCAN−ECU31は、典型的には中央演算処理装置(CPU:Central Processing Unit)、メモリ、および入出力インタフェースを含んで構成され、メモリに格納されたプログラムをCPUが読み出して解釈実行することにより、以下に説明する様々な機能を実現する。   The gateway 10, the plurality of Ethernet ECUs 21, 22, 23 and the CAN-ECU 31 are typically configured including a central processing unit (CPU), a memory, and an input / output interface, and are stored in the memory The CPU reads and interprets the program to implement various functions described below.

複数のイーサネットECU21、22、および23は、イーサネット通信プロトコルに従ってメッセージの送受信を行うイーサネットネットワーク20を介して、ゲートウェイ10にそれぞれ接続されている。CAN−ECU31は、CAN通信プロトコルに従ってメッセージの送受信を行うCAN30を介して、ゲートウェイ10に接続されている。   The plurality of Ethernet ECUs 21, 22, and 23 are connected to the gateway 10 via an Ethernet network 20 that transmits and receives messages according to the Ethernet communication protocol. The CAN-ECU 31 is connected to the gateway 10 via a CAN 30 that transmits and receives messages in accordance with a CAN communication protocol.

ゲートウェイ10は、例えばマルチプロトコルゲートウェイであり、通信プロトコルが異なるネットワークに接続されるECU間のメッセージの中継および変換などを行う機器である。このゲートウェイ10は、イーサネットスイッチ11と、記憶部12と、制御部13とを含んでいる。   The gateway 10 is, for example, a multi-protocol gateway, and is a device that relays and converts messages between ECUs connected to networks with different communication protocols. The gateway 10 includes an Ethernet switch 11, a storage unit 12, and a control unit 13.

イーサネットスイッチ11は、ゲートウェイ10を複数のイーサネットECU21、22、および23に接続するスイッチ機能を有したネットワーク機器である。イーサネットスイッチ11が有する複数の通信ポートには、イーサネットネットワーク20がそれぞれ接続されている。このイーサネットスイッチ11は、メッセージの中継先(宛先)として設定されたMACアドレスを認識し、認識したMACアドレスを有するイーサネットECUが接続されている通信ポートにだけ、メッセージを送信する(スイッチ機能)。   The Ethernet switch 11 is a network device having a switch function of connecting the gateway 10 to the plurality of Ethernet ECUs 21, 22 and 23. An Ethernet network 20 is connected to a plurality of communication ports of the Ethernet switch 11 respectively. The Ethernet switch 11 recognizes the MAC address set as the relay destination (destination) of the message, and transmits the message only to the communication port to which the Ethernet ECU having the recognized MAC address is connected (switch function).

記憶部12には、CAN30に送出されるCANメッセージのCAN_IDと、イーサネットネットワーク20に接続された当該CANメッセージの中継先(宛先)となるイーサネットECUとの紐付けを行うためのルーティングテーブルが、記憶されている。このルーティングテーブルは、例えば図2および図3に示す対応テーブルの形式で記憶された複数の情報(第1、第2)から構成されている。   The storage unit 12 stores a routing table for linking the CAN_ID of the CAN message sent to the CAN 30 with the Ethernet ECU serving as the relay destination (destination) of the CAN message connected to the Ethernet network 20. It is done. The routing table is composed of a plurality of pieces of information (first and second) stored, for example, in the form of the correspondence table shown in FIGS. 2 and 3.

第1の情報は、図2に示す対応テーブルのように、CAN30から送出されたCANメッセージのCAN_IDを、そのCANメッセージの中継先(宛先)となるイーサネットECUと紐付けた情報である。例えば、図2の例では、CAN_IDが「001」であるCANメッセージの中継先(宛先)がECU_Aであり、CAN_IDが「002」であるCANメッセージの中継先(宛先)がECU_Bであることを示している。また、CAN_IDが「003」であるCANメッセージの中継先(宛先)が、存在しないことを示している。この第1の情報は、ゲートウェイ10がこれまでに実行した中継処理の結果を蓄積した情報であってもよいし、予めゲートウェイ10に付与された情報であってもよい。   The first information is information in which the CAN_ID of the CAN message sent from the CAN 30 is linked with the Ethernet ECU as the relay destination (destination) of the CAN message, as in the correspondence table shown in FIG. For example, in the example of FIG. 2, the relay destination (destination) of the CAN message whose CAN_ID is "001" is ECU_A, and the relay destination (destination) of the CAN message whose CAN_ID is "002" is ECU_B. ing. It also indicates that there is no relay destination (destination) of the CAN message whose CAN_ID is "003". The first information may be information in which the result of the relay process executed by the gateway 10 so far is accumulated, or may be information provided to the gateway 10 in advance.

第2の情報は、図3に示す対応テーブルのように、イーサネットネットワーク20に接続されたイーサネットECUを、そのイーサネットECUに対してユニークに割り当てられた所定形式のMACアドレスと紐付けた情報である。この所定形式のMACアドレスとは、イーサネットECUが有する機能に基づいて定まる所定のグループ(種類)に分類するための分類情報を、MACアドレス内の特定領域に含めた形式である。この分類情報は、例えば図4に示すように、MACアドレスにおける機器ベンダー管理領域(24ビット)中の一部(数ビット)の領域を使用して書き込まれる。   The second information is information in which an Ethernet ECU connected to the Ethernet network 20 is linked to a MAC address of a predetermined format uniquely assigned to the Ethernet ECU, as in the correspondence table shown in FIG. . The MAC address of the predetermined format is a format in which classification information for classifying into a predetermined group (type) determined based on the function of the Ethernet ECU is included in a specific area in the MAC address. For example, as shown in FIG. 4, this classification information is written using a partial (several bits) area in the device vendor management area (24 bits) in the MAC address.

分類情報とは、例えばイーサネットECUが有する機能を複数のグループ(種類)に区分し、区分されたグループ(種類)ごとにそのグループ(種類)を一意に特定できるように割り当てた情報である。従って、分類情報を判断するだけで、どのような機能を有したECUかを判断することが可能となる。そして、この分類情報を特定領域に含んだ新たな形式のMACアドレス(図4)を用いることで、例えば同じグループ(種類)のECUが変更された場合には、変更前後においてECUのMACアドレスが全体として異なっていても、MACアドレスの特定領域に含まれる分類情報が同じであれば、変更前後の2つのECUが同じ機能を有するECUであることを判断できる。   The classification information is, for example, information in which the function possessed by the Ethernet ECU is divided into a plurality of groups (types), and assigned so that the groups (types) can be uniquely identified for each of the divided groups (types). Therefore, it is possible to determine what kind of function the ECU has by merely determining the classification information. Then, by using the MAC address of the new format (FIG. 4) in which the classification information is included in the specific area, for example, when the ECU of the same group (type) is changed, the MAC address of the ECU Even if they are different as a whole, if the classification information included in the specific area of the MAC address is the same, it can be determined that the two ECUs before and after the change have the same function.

例えば、図3の例では、ECU_Aには、分類情報「0A」を特定領域に含むMACアドレス「xx:xx:xx:0A:xx:xx」が、ECU_Bには、分類情報「0B」を特定領域に含むMACアドレス「xx:xx:xx:0B:xx:xx」が、ECU_Cには、分類情報「0C」を特定領域に含むMACアドレス「xx:xx:xx:0C:xx:xx」が、それぞれ割り当てられていることを示している。なお、図3におけるMACアドレス中の特定領域以外の「x」は、任意の値を取ることを示している。   For example, in the example of FIG. 3, MAC address “xx: xx: xx: 0A: xx: xx” including classification information “0A” in a specific area is specified in ECU_A, and classification information “0B” is specified in ECU_B. MAC address “xx: xx: xx: 0B: xx: xx” included in the area, and MAC address “xx: xx: xx: 0C: xx: xx” including classification information “0C” in the specific area in ECU_C , Indicate that each is assigned. Note that “x” other than the specific area in the MAC address in FIG. 3 indicates that an arbitrary value is taken.

上記第1の情報および第2の情報は、すなわち、CAN30から送出されたCANメッセージのCAN_ID(識別情報)と、CANメッセージの中継先(宛先)であるイーサネットECUに割り当てられたMACアドレスの形式、つまり分類情報とを、直接紐付けた1つの情報となる。この情報では、例えばCAN_ID「001」から、分類情報「0A」を特定領域に含むMACアドレスを持つECUが、CANメッセージの中継先(宛先)のイーサネットECUであることが把握できる。   The first information and the second information are, for example, the CAN_ID (identification information) of the CAN message sent from the CAN 30 and the format of the MAC address assigned to the Ethernet ECU that is the relay destination (destination) of the CAN message In other words, it is one piece of information directly linked to the classification information. In this information, for example, it can be understood from CAN_ID “001” that an ECU having a MAC address including classification information “0A” in a specific area is an Ethernet ECU at a relay destination (destination) of a CAN message.

また、記憶部12には、図5に示すように、イーサネットスイッチ11の各通信ポートに接続されているイーサネットECUのMACアドレスのリスト(以下「スイッチ接続リスト」という)が、記憶されている。例えば、図5の例では、送信ポート[1]にMACアドレス「11:11:11:0A:11:11」のイーサネットECUが、送信ポート[2]にMACアドレス「22:22:22:0B:22:22」のイーサネットECUが、送信ポート[3]にMACアドレス「33:33:33:0C:33:33」のイーサネットECUが、それぞれ接続されていることを示している。このスイッチ接続リストは、所定のタイミングでイーサネットスイッチ11から記憶部12へ格納される。   Further, as shown in FIG. 5, the storage unit 12 stores a list of MAC addresses of Ethernet ECUs connected to the communication ports of the Ethernet switch 11 (hereinafter referred to as “switch connection list”). For example, in the example of FIG. 5, the Ethernet ECU with the MAC address “11: 11: 11: 1: 0A: 11: 11” in the transmission port [1] has the MAC address “22: 22: 22: 0B in the transmission port [2]. The Ethernet ECU of “: 22: 22” indicates that the Ethernet ECU of MAC address “33: 33: 33: 0C: 33: 33” is connected to the transmission port [3]. The switch connection list is stored from the Ethernet switch 11 to the storage unit 12 at a predetermined timing.

上述した構成による本実施形態に係る通信システム1では、ゲートウェイ10の制御部13が、ルーティングテーブル(第1の情報および第2の情報)と、スイッチ接続リストとを用いて、後述する特徴的なメッセージ中継処理を実行することで、有用な効果を奏することができる。   In the communication system 1 according to the present embodiment having the above-described configuration, the control unit 13 of the gateway 10 uses the routing table (the first information and the second information) and the switch connection list to describe the characteristic described later. By executing the message relay process, useful effects can be achieved.

[通信システムで実行されるメッセージ中継処理]
図6を参照して、本発明の一実施形態に係る通信システム1におけるメッセージ中継処理を説明する。図6は、ゲートウェイ10の制御部13が実行する処理の手順を示すフローチャートである。
[Message relay process performed in communication system]
A message relay process in the communication system 1 according to an embodiment of the present invention will be described with reference to FIG. FIG. 6 is a flowchart showing the procedure of the process executed by the control unit 13 of the gateway 10.

図6に示す処理は、ゲートウェイ10がCAN30からCANメッセージを受信すると開始される。CANメッセージを受信すると、ゲートウェイ10の制御部13は、CANメッセージのCAN_IDを検索キーとしてルーティングテーブル(第1の情報)を参照し、当該CANメッセージの中継先(宛先)となるイーサネットECUが存在するか否かを判断する(ステップS61)。   The process shown in FIG. 6 is started when the gateway 10 receives a CAN message from the CAN 30. When the CAN message is received, the control unit 13 of the gateway 10 refers to the routing table (first information) using the CAN_ID of the CAN message as a search key, and there is an Ethernet ECU serving as a relay destination (destination) of the CAN message. It is determined whether or not (step S61).

上記ステップS61において、CANメッセージの中継先(宛先)となるイーサネットECUが存在しないと判断した場合(ステップS61、No)、ゲートウェイ10の制御部13は、当該CANメッセージを破棄してメッセージ中継処理を終了する。一方、上記ステップS61において、CANメッセージの中継先(宛先)となるイーサネットECUが存在すると判断した場合(ステップS61、Yes)、ゲートウェイ10の制御部13は、当該中継先(宛先)が存在したイーサネットECUを検索キーとしてルーティングテーブル(第2の情報)を参照し、当該中継先(宛先)が存在したイーサネットECUに割り当てられたMACアドレスの形式を決定する(ステップS62)。換言すれば、このステップS62では、中継先(宛先)が存在したイーサネットECUに割り当てられたMACアドレスの分類情報が決定されることになる。   If it is determined in step S61 that there is no Ethernet ECU to be a relay destination (destination) of the CAN message (No in step S61), the control unit 13 of the gateway 10 discards the CAN message and performs message relay processing. finish. On the other hand, when it is determined that there is an Ethernet ECU to be a relay destination (destination) of the CAN message in step S61 (Yes in step S61), the control unit 13 of the gateway 10 determines the Ethernet where the relay destination (destination) exists. The ECU refers to the routing table (second information) using the search key as a search key, and determines the format of the MAC address assigned to the Ethernet ECU where the relay destination (destination) exists (step S62). In other words, in this step S62, classification information of the MAC address assigned to the Ethernet ECU where the relay destination (destination) exists is determined.

上記ステップS62において、CANメッセージの中継先(宛先)となるイーサネットECUのMACアドレスの形式が決定すると、ゲートウェイ10の制御部13は、スイッチ接続リストの中に、上記決定したMACアドレスの形式と同じ形式のMACアドレスがあるか否かを判断する(ステップS63)。すなわち、このステップS63では、CANメッセージの中継先(宛先)となるイーサネットECUに割り当てられたMACアドレスの分類情報と同じ分類情報を特定領域に含むMACアドレスが、スイッチ接続リストの中に存在するか否かが判断される。   When the format of the MAC address of the Ethernet ECU to be the relay destination (destination) of the CAN message is determined in step S62, the control unit 13 of the gateway 10 has the same format as the determined MAC address in the switch connection list. It is determined whether there is a MAC address of the format (step S63). That is, in this step S63, is there a MAC address including in the specific area the same classification information as the classification information of the MAC address assigned to the Ethernet ECU as the relay destination (destination) of the CAN message, in the switch connection list? It is judged whether or not.

上記ステップS63において、上記決定したMACアドレスの形式(分類情報)と同じ形式(分類情報)のMACアドレスがあると判断した場合(ステップS63、Yes)、ゲートウェイ10の制御部13は、当該同じ形式(分類情報)のMACアドレスを新たな中継先(宛先)に設定して、CANメッセージから変換したイーサネットメッセージを、イーサネットスイッチ11を介して送信する(ステップS64)。一方、上記ステップS63において、上記決定したMACアドレスの形式(分類情報)と同じ形式(分類情報)のMACアドレスがないと判断した場合(ステップS63、No)、ゲートウェイ10の制御部13は、当該CANメッセージを破棄してメッセージ中継処理を終了する。   If it is determined in step S63 that there is a MAC address of the same format (classification information) as the format (classification information) of the determined MAC address (Yes in step S63), the control unit 13 of the gateway 10 determines the same format The MAC address of (classification information) is set as a new relay destination (destination), and the Ethernet message converted from the CAN message is transmitted via the Ethernet switch 11 (step S64). On the other hand, when it is determined in step S63 that there is no MAC address of the same format (classification information) as the format (classification information) of the determined MAC address (No in step S63), the control unit 13 of the gateway 10 Discard the CAN message and terminate the message relay process.

[実施の形態の作用・効果]
以上のように、本発明の一実施形態に係る通信システム1によれば、同じグループ(種類)のイーサネットECUには、同じユニークな分類情報を割り当て、この分類情報をMACアドレスの特定領域に含めた形式のMACアドレスを割り当てる。ゲートウェイ10は、CANメッセージのCAN_IDと、イーサネットECUに割り当てられたMACアドレスの形式、つまりMACアドレスの分類情報とを、紐付けた情報(ルーティングテーブル)と、イーサネットスイッチ11の通信ポートに実際に接続されているイーサネットECUのMACアドレスのリスト(スイッチ接続リスト)とを、予め記憶している。
[Operation / effect of the embodiment]
As described above, according to the communication system 1 according to the embodiment of the present invention, the same unique classification information is assigned to Ethernet ECUs of the same group (type), and the classification information is included in the specific area of the MAC address. Assign a MAC address of the form The gateway 10 actually connects the CAN_ID of the CAN message and the format of the MAC address assigned to the Ethernet ECU, that is, the classification information of the MAC address, to the linked information (routing table) and the communication port of the Ethernet switch 11 A list of Ethernet ECU MAC addresses (switch connection list) being stored is stored in advance.

CANからメッセージを受信した場合、ゲートウェイ10は、ルーティングテーブルに基づいて決定された、メッセージの中継先ECUに割り当てられたMACアドレスの形式と、同じ形式のMACアドレス(を持つイーサネットECU)がスイッチ接続リスト存在すれば、同じ形式のMACアドレスを新たな中継先(宛先)に設定してメッセージを送信する。つまり、ゲートウェイ10は、ルーティングテーブルに基づいて決定された、メッセージの中継先ECUに割り当てられたMACアドレスの分類情報と、同じ分類情報を特定領域に持つMACアドレス(を持つイーサネットECU)がスイッチ接続リスト存在すれば、この同じ分類情報を特定領域に持つMACアドレスを新たな中継先(宛先)に設定してメッセージを送信する。   When a message is received from the CAN, the gateway 10 switches the format of the MAC address assigned to the relay destination ECU of the message, which is determined based on the routing table, and the Ethernet address (having an Ethernet ECU having the same format) as the switch If the list exists, the MAC address of the same format is set as a new relay destination (destination) and the message is transmitted. That is, the gateway 10 performs switch connection of the classification information of the MAC address assigned to the relay destination ECU of the message determined based on the routing table and the MAC address (the Ethernet ECU having the same classification information in the specific area). If the list exists, the MAC address having the same classification information in the specific area is set as a new relay destination (destination) and the message is transmitted.

このように、MACアドレス全体として相違しているが分類情報が同じであるMACアドレスを持つイーサネットECUであれば、同じ機能を有するECUであると判断してイーサネットメッセージを送信する。よって、イーサネットネットワークに接続されたイーサネットECUが同じグループ(種類)の別のイーサネットECUに変更された場合でも、ゲートウェイ10が、既存のルーティングテーブルに基づいて、変更前のイーサネットECUへ向けたメッセージを変更後のイーサネットECUへ中継することができる。   As described above, if the Ethernet ECU has a MAC address that is different as the entire MAC address but has the same classification information, it determines that the ECU has the same function and transmits an Ethernet message. Therefore, even if the Ethernet ECU connected to the Ethernet network is changed to another Ethernet ECU in the same group (type), the gateway 10, based on the existing routing table, sends a message directed to the Ethernet ECU before the change. It is possible to relay to the changed Ethernet ECU.

また、CANメッセージの中継先(宛先)をイーサネットECUの分類情報で指定できるため、ゲートウェイ10におけるルーティングテーブルの管理が容易になる。   Further, since the relay destination (destination) of the CAN message can be specified by the classification information of the Ethernet ECU, the management of the routing table in the gateway 10 becomes easy.

本発明は、複数の電子制御装置が複数のネットワークを介してゲートウェイに接続された通信システムに利用可能であり、イーサネットネットワーク以外の電子制御装置からイーサネットネットワークの電子制御装置へメッセージを送信したい場合に有用である。   The present invention is applicable to a communication system in which a plurality of electronic control devices are connected to a gateway via a plurality of networks, and it is desired to transmit a message from an electronic control device other than the Ethernet network to the electronic control device of the Ethernet network. It is useful.

1 通信システム
10 ゲートウェイ(GW)
11 イーサネットスイッチ
12 記憶部
13 制御部
20 イーサネットネットワーク
21、22、23 イーサネットECU
30 CAN
31 CAN−ECU
1 Communication system 10 Gateway (GW)
11 Ethernet switch 12 storage unit 13 control unit 20 Ethernet network 21, 22, 23 Ethernet ECU
30 CAN
31 CAN-ECU

Claims (1)

少なくともイーサネットネットワークを含む複数のネットワークと、当該複数のネットワーク間でメッセージを中継するゲートウェイが接続された通信システムであって、
前記イーサネットネットワークに接続された各イーサネットECUには、当該ECUを所定のグループに分類するための分類情報を特定領域に含むMACアドレスが、それぞれ割り当てられており、
前記ゲートウェイは、
イーサネット以外のネットワークから送信されるメッセージの識別情報と当該メッセージの中継先である前記イーサネットECUとを紐付けた第1テーブル、前記イーサネットECUと前記イーサネットECUに割り当てられたMACアドレスの前記分類情報とを紐付けた第2テーブル、および前記イーサネットネットワークに接続されている前記イーサネットECUのMACアドレスを記述したリストを、記憶する記憶部と、
前記メッセージを受信すると、前記第1及び第2テーブルに基づいて当該メッセージの中継先となるイーサネットECUに割り当てられたMACアドレスの前記分類情報を決定し、当該決定した分類情報を特定領域に含むMACアドレスが前記リストの中にあれば、当該MACアドレスを宛先に設定して当該メッセージを送出する制御部とを備える、
通信システム。
A communication system in which a plurality of networks including at least an Ethernet network and a gateway for relaying messages between the plurality of networks are connected,
Each Ethernet ECU connected to the Ethernet network is assigned a MAC address including classification information for classifying the ECU into a predetermined group in a specific area,
The gateway is
The classification information of the identification information and the first table, MAC address assigned to said Ethernet ECU the Ethernet ECU which correlated with said Ethernet ECU is a relay destination of those the messages in the message sent from a network other than Ethernet a storage unit preparative second tables linked, and a list describing the MAC address of the Ethernet ECU connected to the Ethernet network, and stores,
When the message is received, the classification information of the MAC address assigned to the Ethernet ECU to be the relay destination of the message is determined based on the first and second tables, and the MAC including the determined classification information in the specific area If the address is in the list, the control unit sets the MAC address as the destination and sends the message.
Communications system.
JP2015239473A 2015-12-08 2015-12-08 Communications system Active JP6519461B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015239473A JP6519461B2 (en) 2015-12-08 2015-12-08 Communications system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015239473A JP6519461B2 (en) 2015-12-08 2015-12-08 Communications system

Publications (2)

Publication Number Publication Date
JP2017108247A JP2017108247A (en) 2017-06-15
JP6519461B2 true JP6519461B2 (en) 2019-05-29

Family

ID=59060170

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015239473A Active JP6519461B2 (en) 2015-12-08 2015-12-08 Communications system

Country Status (1)

Country Link
JP (1) JP6519461B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7051210B2 (en) * 2018-01-19 2022-04-11 矢崎総業株式会社 Communication control system for vehicles
JP7247952B2 (en) 2020-05-19 2023-03-29 トヨタ自動車株式会社 Setting device, parameter setting method and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4824100B2 (en) * 2009-06-04 2011-11-24 株式会社オプティム Network management method, network management apparatus, and program based on device type
JP2014154920A (en) * 2013-02-05 2014-08-25 Denso Corp On-vehicle relay device
JP6126980B2 (en) * 2013-12-12 2017-05-10 日立オートモティブシステムズ株式会社 Network device and network system

Also Published As

Publication number Publication date
JP2017108247A (en) 2017-06-15

Similar Documents

Publication Publication Date Title
US11134012B2 (en) Communication system, communication device, controller, and method and program for controlling forwarding path of packet flow
CN105577548B (en) Message processing method and device in a kind of software defined network
US7636364B2 (en) Redundant router network
US10069648B2 (en) Communication system, control apparatus, communication control method and program
JP6060688B2 (en) Transfer device, communication system, and roundabout path detection method
CN105227466A (en) Communication processing method and device
JP6323444B2 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP6064989B2 (en) Control device, communication system, node control method, and program
JP2014116668A (en) Communication system and network repeater
JP6519461B2 (en) Communications system
US10523629B2 (en) Control apparatus, communication system, communication method, and program
CN103200117A (en) Method and device of load balancing
JP4623317B2 (en) Communication apparatus, routing method and program
WO2014157549A1 (en) Switch device and switch device control method
KR101755829B1 (en) Method and apparatus for processing address resolution protocol in software defined networking environment
JP6566124B2 (en) COMMUNICATION SYSTEM, FLOW CONTROL DEVICE, FLOW PROCESSING DEVICE, AND CONTROL METHOD
JP2008219400A (en) Repeater and packet relaying method
JP6408427B2 (en) COMMUNICATION DEVICE, PACKET TRANSFER METHOD, AND PACKET TRANSFER PROGRAM
WO2015118811A1 (en) Communication system, packet-forwarding device, packet-forwarding method, and packet-forwarding program
JP2017188719A (en) Relay device and relay system
JP2017183960A (en) Switch control device, method and program
KR20070061068A (en) Router and method for processing ipv4 packet egregating between outer traffic and inner traffic thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180111

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180918

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181029

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20190326

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190408

R151 Written notification of patent or utility model registration

Ref document number: 6519461

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151