JP2018125601A - Relay device - Google Patents
Relay device Download PDFInfo
- Publication number
- JP2018125601A JP2018125601A JP2017014351A JP2017014351A JP2018125601A JP 2018125601 A JP2018125601 A JP 2018125601A JP 2017014351 A JP2017014351 A JP 2017014351A JP 2017014351 A JP2017014351 A JP 2017014351A JP 2018125601 A JP2018125601 A JP 2018125601A
- Authority
- JP
- Japan
- Prior art keywords
- frame
- ethernet
- ethernet frame
- unit
- network
- 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.)
- Granted
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
Description
本開示は、車両に搭載された電子制御装置間のデータ中継を行う技術に関する。 The present disclosure relates to a technique for performing data relay between electronic control devices mounted on a vehicle.
近年、車両には多くの電子制御装置(以下、ECU)が搭載されており、これらのECUはその機能及び用途等に応じて分類され、分類ごとにネットワークチャネルを形成している。そして、各ネットワークチャネルは中継装置に接続されており、異なるネットワークチャネルに接続されたECU同士は、中継装置を経由して通信を行う。 In recent years, many electronic control units (hereinafter referred to as ECUs) are mounted on vehicles, and these ECUs are classified according to their functions and uses, and network channels are formed for each classification. Each network channel is connected to a relay device, and ECUs connected to different network channels communicate via the relay device.
特許文献1に記載の車載用中継装置は、中継要求フレームを受信すると、当該フレームに設定されている中継先の論理アドレスに基づいて、ルーティングテーブルを検索して中継先の物理アドレスを特定し、特定した物理アドレスへ中継要求フレームを中継している。また、上記車載用中継装置は、ECUの追加や交換に伴い、中継先の物理アドレスの特定に失敗した場合には、中継先に対して物理アドレスの送信を指示するフレームをブロードキャスト送信している。そして、上記車載用中継装置は、中継先から物理アドレスを受信すると、受信した物理アドレスを中継先の論理アドレスと対応付けてルーティングテーブルに登録するとともに、受信した物理アドレスへ中継要求フレームを中継している。
When the in-vehicle relay device described in
ところで、Ethernet(登録商標)ネットワークとCAN(登録商標)ネットワークが混在した車載ネットワークでは、EthernetネットワークにてVLANを構築していても、CANネットワークはVLANに対応していない。そのため、CANネットワークから、Ethernetネットワークへ不正フレームをブロードキャストすることができ、不正フレームによる通信への影響が拡大してしまう。 By the way, in the in-vehicle network in which the Ethernet (registered trademark) network and the CAN (registered trademark) network are mixed, even if the VLAN is constructed by the Ethernet network, the CAN network does not support the VLAN. Therefore, an illegal frame can be broadcast from the CAN network to the Ethernet network, and the influence on communication by the illegal frame is expanded.
これに対して、上記車載用中継装置を適用して、CAN−IDとVLANの送付先とを対応付けたテーブルを予め用意しておき、CAN−IDに基づいてテーブルを検索して、VLANの送付先を指定することが考えられる。しかしながら、毎回大きなテーブルを検索する必要があるため、中継装置の処理負荷が非常に大きくなってしまう。 On the other hand, by applying the in-vehicle relay device, a table in which the CAN-ID and the VLAN destination are associated with each other is prepared in advance, and the table is searched based on the CAN-ID. It is conceivable to specify a destination. However, since it is necessary to search a large table every time, the processing load of the relay apparatus becomes very large.
また、上記車載用中継装置を適用した場合、ECUの追加や交換があった際に、VLANの送付先の送信を指示するフレームをブロードキャストすることになる。よって、ECUの追加や交換があった際に、VLANの送付先を特定する処理負荷が大きくなる上に、不正フレームの影響を抑制することができない。 In addition, when the on-vehicle relay device is applied, when an ECU is added or replaced, a frame instructing transmission of a VLAN destination is broadcast. Therefore, when an ECU is added or replaced, the processing load for specifying the VLAN destination is increased, and the influence of an illegal frame cannot be suppressed.
本開示は、上記実情に鑑みてなされたものであり、EthernetネットワークとCANネットワークが混在したシステムにおいて、処理負荷を抑制するとともに、セキュリティを向上させることが可能な中継装置を提供する。 The present disclosure has been made in view of the above circumstances, and provides a relay device capable of suppressing processing load and improving security in a system in which an Ethernet network and a CAN network are mixed.
本開示は、1つ以上のCANネットワークチャネル(70a,70b)と、VLANを構築している1つ以上のEthernetネットワークチャネル(70c)と、を備えた車載ネットワーク(100)に適用され、ネットワークチャネル間で通信を中継する中継装置(50)であって、CANフレーム受信部(S10)と、ドメイン判定部(S20)と、Ethernetフレーム生成部(S30)と、Ethernetフレーム送信部(S40)と、を備える。CANフレーム受信部は、VLANのドメインが埋め込まれたCAN−IDが付与されたCANフレームを受信する。ドメイン判定部は、CANフレーム受信部により受信されたCANフレームのCAN−IDから前記ドメインを判定する。Ethernetフレーム生成部は、ドメイン判定部により判定されたドメインを含むVLANタグを生成し、CANフレーム受信部により受信されたCANフレームから、VLANタグを付与したEthernetフレームを生成する。Ethernetフレーム送信部は、Ethernetフレーム生成部により生成されたEthernetフレームを送信する。 The present disclosure is applied to an in-vehicle network (100) including one or more CAN network channels (70a, 70b) and one or more Ethernet network channels (70c) constructing a VLAN. A relay device (50) for relaying communication between the CAN frame receiving unit (S10), the domain determining unit (S20), the Ethernet frame generating unit (S30), the Ethernet frame transmitting unit (S40), Is provided. The CAN frame receiving unit receives a CAN frame assigned with a CAN-ID in which a VLAN domain is embedded. The domain determining unit determines the domain from the CAN-ID of the CAN frame received by the CAN frame receiving unit. The Ethernet frame generation unit generates a VLAN tag including the domain determined by the domain determination unit, and generates an Ethernet frame to which the VLAN tag is added from the CAN frame received by the CAN frame reception unit. The Ethernet frame transmission unit transmits the Ethernet frame generated by the Ethernet frame generation unit.
本開示によれば、CAN−IDからVLANドメインが判定され、VLANタグが生成される。そして、受信されたCANフレームから、生成されたVLANタグが付与されたEthernetフレームが生成され、生成されたEthernetフレームが送信される。よって、CANフレームを、Ethernetネットワークチャネルの特定のVLANドメインのみに中継することができる。ひいては、CANネットワークチャネルからEthernetネットワークチャネルへ不正フレームが送信された場合でも、不正フレームの影響を特定のVLANドメイン内に局所化できるため、車載ネットワークのセキュリティを向上させることができる。また、VLANドメインはCAN−IDに埋め込まれているため、CAN−IDとVLANドメイン間の相関を表すテーブルを検索する必要がない。よって、テーブルを持つ場合と比べて、中継処理ソフトの処理性能を向上させることができる。さらに、テーブルを持つ場合と比べて、VLANドメインの生成ルールを汎用化できるため、中継処理ソフトの汎用性を向上させることができる。 According to the present disclosure, the VLAN domain is determined from the CAN-ID, and the VLAN tag is generated. Then, an Ethernet frame to which the generated VLAN tag is attached is generated from the received CAN frame, and the generated Ethernet frame is transmitted. Therefore, the CAN frame can be relayed only to a specific VLAN domain of the Ethernet network channel. As a result, even when an illegal frame is transmitted from the CAN network channel to the Ethernet network channel, the influence of the illegal frame can be localized in a specific VLAN domain, so that the security of the in-vehicle network can be improved. Further, since the VLAN domain is embedded in the CAN-ID, there is no need to search a table showing the correlation between the CAN-ID and the VLAN domain. Therefore, the processing performance of the relay processing software can be improved as compared with the case of having a table. Furthermore, since the VLAN domain generation rule can be generalized as compared with the case of having a table, the versatility of the relay processing software can be improved.
なお、この欄及び特許請求の範囲に記載した括弧内の符号は、一つの態様として後述する実施形態に記載の具体的手段との対応関係を示すものであって、本発明の技術的範囲を限定するものではない。 In addition, the code | symbol in the parenthesis described in this column and a claim shows the correspondence with the specific means as described in embodiment mentioned later as one aspect, Comprising: The technical scope of this invention is shown. It is not limited.
以下、図面を参照しながら、発明を実施するための形態を説明する。
[1.構成]
まず、本実施形態に係る中継装置50を適用する車両ネットワーク100の構成について、図1を参照して説明する。車両ネットワーク100は、ECUが接続された複数のネットワークチャネル70a〜70cと、中継装置50と、を備える。車両のECUは、機能及び用途等に応じて分類されており、分類ごとにネットワークチャネルを形成している。
Hereinafter, embodiments for carrying out the invention will be described with reference to the drawings.
[1. Constitution]
First, the configuration of the
ネットワークチャネル70a,70bは、CANの通信プロトコルに準拠したCANネットワークチャネルである。CANは、Controller Area Network の略である。ネットワークチャネル70aには、複数のECU20aが接続されており、ネットワークチャネル70bには、複数のECU20bが接続されている。
The
一方、ネットワークチャネル70cは、Ethernetの通信プロトコルに準拠したEthernetネットワークチャネルであり、VLANを構築している。VLANは、Virtual Local Area Networkの略である。詳しくは、ネットワークチャネル70cには、スイッチ30が接続されており、スイッチ30には、2つのスイッチ30a,30bが接続されている。そして、スイッチ30aには、2つのECU40aが接続されており、2つのECU40aにはカテゴリ5のVLANドメインが割り振られている。また、スイッチ30bには、2つのECU40bが接続されており、2つのECU40bにはカテゴリ10のVLANドメインが割り振られている。そして、Ethernetフレームは、フレーム内で指定されたVLANドメインが割り振られたECUのみに送信される。つまり、Ethernetフレームは、カテゴリ5が指定されている場合は、2つのECU40aへ送信されるが、ECU40bへは送信されない。
On the other hand, the
車両ネットワークの各ノードには、0×000〜0×7FFの範囲の11ビットのCAN−IDが割り振られている。そのうち、ネットワークチャネル70cに接続されたECU40a,40bには、VLANドメインが埋め込まれたCAN−IDが割り振られている。具体的には、図2に示すように、CAN−IDの5ビット目から8ビット目までの4ビットに、VLANドメインが埋め込まれている。ECU40aに割り振られたCAN−IDには、カテゴリ5を表す「0101」が埋め込まれており、ECU40bに割り振られたCAN−IDには、カテゴリ10を表す「1010」が埋め込まれている。
Each node of the vehicle network is assigned an 11-bit CAN-ID ranging from 0 × 000 to 0 × 7FF. Among these, the CAN-ID in which the VLAN domain is embedded is allocated to the
また、ネットワークチャネル70cにノードを追加する場合は、既存のVLANドメイン内にノードを追加すると、新ノードには、既存のVLANドメインが埋め込まれたCAN−IDが割り振られる。そのため、他のノードから新ノードへCANフレームやEthernetフレーム等の通信フレームを送信しようとした場合、通信フレーム内で既存のVLANドメインを指定するだけで、通信フレームを新ノードへ送信することができる。つまり、他のノードが新ノードのID情報を知らなくても、他のノードから新ノードへ通信フレームを送信することができる。
In addition, when adding a node to the
なお、車両ネットワークには、少なくとも1つのCANチャネルと少なくとも1つのEthernetチャネルが含まれていればよく、ネットワークチャネルの数は問わない。また、車両ネットワークには、CANやEthernet以外にも、LINやFlexRay(登録商標)の通信プロトコルに準拠したネットワークチャネルも含まれていてもよい。 The vehicle network only needs to include at least one CAN channel and at least one Ethernet channel, and the number of network channels is not limited. In addition to CAN and Ethernet, the vehicle network may include a network channel that conforms to a communication protocol of LIN or FlexRay (registered trademark).
中継装置50は、CPU11、RAM12、ROM13、及び通信部14と、これらを接続するバス17と、を備えたマイクロコンピュータを主体として構成されている。CPU11は、半導体メモリ等の非遷移的実体的記録媒体に格納されたプログラムを実行することにより、通信フレームの中継を統括制御する。本実施形態では、ROM13が、プログラムを格納した非遷移的実体的記録媒体に相当する。また、CPU11によりプログラムが実行されることで、プログラムに対応する方法が実行される。なお、中継装置50を構成するマイクロコンピュータの数は1つでも複数でもよい。
The
通信部14は、ポート16a〜16c及びプロトコル変換部15を備える。ポート16a,16bは、ネットワークチャネル70a,70bに接続され、CANフレームの送受信を行う。ポート16cは、ネットワークチャネル70cに接続され、Ethernetフレームの送受信を行う。
The
プロトコル変換部15は、異なるネットワークチャネル間での通信フレームの中継を行う。そして、プロトコル変換部15は、通信プロトコルの異なるネットワークチャネル間での通信フレームの中継を行う場合は、通信フレームのプロトコル変換を行う。つまり、プロトコル変換部15は、ネットワークチャネル70a,70bからネットワークチャネル70cへ中継する場合は、CANの通信プロトコルに準拠したCANフレームを、Ethernetの通信プロトコルに準拠したEthernetフレームへ変換して、ネットワークチャネル70cへ送信する。また、プロトコル変換部15は、ネットワークチャネル70cからネットワークチャネル70a,70bへ中継する場合は、Ethernetの通信プロトコルに準拠したEthernetフレームを、CANの通信プロトコルに準拠したCANフレームに変換して、ネットワークチャネル70a,70bへ送信する。
The
本実施形態では、プロトコル変換部15は、CANフレーム受信部、ドメイン判定部、Ethernetフレーム生成部、Ethernetフレーム送信部、Ethernetフレーム受信部、ID生成部、CANフレーム生成部、及びCANフレーム送信部の各機能を含む。また、プロトコル変換部15の機能を実現する手法はソフトウェアに限るものではなく、その一部又は全部の要素について、一つあるいは複数のハードウェアを用いて実現してもよい。
In the present embodiment, the
[2.処理]
次に、中継装置50の通信フレームの中継処理について説明する。
[2−1.CAN→Ethernet中継処理]
まず、ネットワークチャネル70a又はネットワークチャネル70bからネットワークチャネル70cへ、通信フレームを中継する処理手順について、図3のフローチャートを参照して説明する。
[2. processing]
Next, communication frame relay processing of the
[2-1. CAN → Ethernet relay processing]
First, a processing procedure for relaying a communication frame from the
まず、ステップS10では、ECU20a又はECU20bから送信されたCANフレームを受信する。ここで受信するCANフレームは、図4に示すように、CAN−IDを含み、CAN−IDには、中継先のVLANドメインが埋め込まれている。ECU20a,20bは、送信先のECUがEthernetネットワークに接続されていることを認識していない。しかしながら、CAN−IDにVLANドメインが埋め込まれているので、CANフレームにおいてCAN−IDが指定されるだけで、自動的に中継先のVLANドメインが指定される。
First, in step S10, a CAN frame transmitted from the
続いて、ステップS20では、ステップS10で受信したCANフレームに含まれたCAN−IDから、中継先のVLANドメインを抽出し、VLANドメインを判定する。
続いて、ステップS30では、ステップS20で判定したVLANドメインからVLANタグを生成する。そして、Ethernetの通信プロトコルに従って、受信したCANフレームのデータフィールド内のデータをペイロードに含み、VLANタグが埋め込まれたEthernetフレームを生成する。
Subsequently, in step S20, the VLAN domain of the relay destination is extracted from the CAN-ID included in the CAN frame received in step S10, and the VLAN domain is determined.
Subsequently, in step S30, a VLAN tag is generated from the VLAN domain determined in step S20. Then, according to the Ethernet communication protocol, an Ethernet frame in which the data in the data field of the received CAN frame is included in the payload and the VLAN tag is embedded is generated.
続いて、ステップS40では、ステップS30で生成したEthernetフレームを、ネットワークチャネル70cへ送出する。送出されたEthernetフレームは、Ethernetの標準機能により、自動的に、付与されたVLANタグに対応するVLANドメイン内のみに送信される。以上で本処理を一旦終了し、ステップS10へ戻る。
Subsequently, in step S40, the Ethernet frame generated in step S30 is sent to the
なお、本実施形態では、ステップS10が、CANフレーム受信部の機能により実行される処理に相当し、ステップS20が、ドメイン判定部の機能により実行される処理に相当する。また、ステップS30が、Ethernetフレーム生成部の機能が実行する処理に相当し、ステップS40が、Ethernetフレーム送信部の機能が実行する処理に相当する。 In the present embodiment, step S10 corresponds to the process executed by the function of the CAN frame reception unit, and step S20 corresponds to the process executed by the function of the domain determination unit. Step S30 corresponds to the process executed by the function of the Ethernet frame generation unit, and step S40 corresponds to the process executed by the function of the Ethernet frame transmission unit.
[2−2.Ethernet→CAN中継処理]
次に、ネットワークチャネル70cからネットワークチャネル70a又はネットワークチャネル70bへ、通信フレームを中継する処理手順について、図5のフローチャートを参照して説明する。
[2-2. Ethernet → CAN relay processing]
Next, a processing procedure for relaying a communication frame from the
まず、ステップS100では、ECU40a又はECU40bから送信されたEthernetフレームを受信する。ここで受信するEthernetフレームは、図6に示すように、データ領域であるペイロードの先頭部分に、CAN−ID生成用データが埋め込まれている。つまり、Ethernetフレームのペイロードには、CAN−ID生成用データと実データが含まれている。通常、Ethernetフレームでは、ペイロードの全領域を使っておらず、ペイロードの領域が余っているため、CAN−ID生成用データを埋め込むことができる。
First, in step S100, an Ethernet frame transmitted from the
ECU40a,40bは、他のECUへEthernetフレームを送信する際に、他のECUがどのような通信プロトコルに準拠したネットワークに接続されているか認識していない。よって、ECU40a,40bは、常に、CAN−ID生成用データをペイロードに埋め込んだEthernetフレームを生成して送信する。Ethernetネットワークに接続されたECU間で通信を行う場合など、Ethernetフレームの送信先がCANネットワークに接続されたECUでない場合は、埋め込まれたCAN−ID生成用データは取り除いて、必要なデータ部分のみを取り出せばよい。
When transmitting an Ethernet frame to another ECU, the
続いて、ステップS110では、ステップS100で受信したEthernetフレームに埋め込まれたCAN−ID生成用データを抽出する。
続いて、ステップS120では、ステップS110で抽出したCAN−ID生成用データとIDテーブルとから、CAN−IDを判定して生成する。IDテーブルは、図7に示すように、CAN−ID生成用データとCAN−IDとが対応付けられたテーブルであり、予めROM13に格納されている。通常、CAN−IDは、11ビット全てを使っていないので、使っていないビット分を圧縮したものがCAN−ID生成用データになっている。
Subsequently, in step S110, CAN-ID generation data embedded in the Ethernet frame received in step S100 is extracted.
Subsequently, in step S120, the CAN-ID is determined and generated from the CAN-ID generation data extracted in step S110 and the ID table. As shown in FIG. 7, the ID table is a table in which CAN-ID generation data and CAN-ID are associated with each other, and is stored in the
続いて、ステップS130では、ペイロードの長さからCAN―ID生成用データの長さを引いたデータの長さ、つまり、ベイロードに含まれる実データ部分の長さが、8バイトを超えるか否か判定する。CANフレームのデータフィールドの長さは、Ethernetフレームの実データの長さよりも短い8バイト以下に定義されている。つまり、ペイロードに含まれる実データ部分の長さが8バイトを超える場合は、1つのEthernetフレームを1つのCANフレームに変換することはできず、複数のCANフレームに分割する必要がある。 Subsequently, in step S130, whether the length of the data obtained by subtracting the length of the CAN-ID generation data from the length of the payload, that is, the length of the actual data portion included in the bay load, exceeds 8 bytes. judge. The length of the data field of the CAN frame is defined as 8 bytes or less which is shorter than the length of the actual data of the Ethernet frame. That is, when the length of the actual data part included in the payload exceeds 8 bytes, one Ethernet frame cannot be converted into one CAN frame, and it is necessary to divide it into a plurality of CAN frames.
よって、実データ部分の長さが8バイト以下の場合は、ステップS150において、CANの通信プロトコルに従って、受信したEthernetフレームの実データ部分と、生成したCAN−IDとを含む1つのCANフレームを生成する。 Therefore, if the length of the actual data portion is 8 bytes or less, in step S150, one CAN frame including the actual data portion of the received Ethernet frame and the generated CAN-ID is generated according to the CAN communication protocol. To do.
一方、実データ部分の長さが8バイトを超える場合は、ステップS140において、受信したEthernetフレームの実データ部分を、8バイト以下の複数の小データに分割する。そして、CANの通信プロトコルに従って、小データのそれぞれと生成したCAN−IDとを含む複数のCANフレームを生成する。 On the other hand, if the length of the actual data portion exceeds 8 bytes, the actual data portion of the received Ethernet frame is divided into a plurality of small data of 8 bytes or less in step S140. Then, according to the CAN communication protocol, a plurality of CAN frames including each of the small data and the generated CAN-ID are generated.
続いて、ステップS160では、ステップS150で生成した1つ以上のCANフレームを、CAN−IDに応じて、ネットワークチャネル70a及びネットワークチャネル70bのいずれかへ送出する。以上で本処理を終了する。
Subsequently, in step S160, one or more CAN frames generated in step S150 are transmitted to either the
なお、ECU40a,40bは、Ethernetフレームに含まれる実データ部分の長さが短く、ペイロードの領域に十分な余りがある場合は、CAN−ID生成用データの代わりに、CAN−IDをそのまま埋め込んだEthernetフレームを生成してもよい。この場合、中継装置50は、ROM13にIDテーブルを備えている必要はなく、ステップS110の処理で、CAN−IDを抽出して生成すればよい。そして、ステップS120の処理を飛ばして、ステップS130の処理へ進み、ペイロードの長さからCAN−IDの長さを引いて実データ部分の長さが、8バイトを超えるか否か判定すればよい。
The
また、本実施形態では、ステップS100が、Ethernetフレーム受信部の機能により実行される処理に相当し、ステップS110及びS120が、ID生成部の機能により実行される処理に相当する。また、ステップS130〜S150が、CANフレーム生成部の機能により実行される処理に相当し、ステップS160が、CANフレーム送信部の機能により実行される処理に相当する。 In the present embodiment, step S100 corresponds to the process executed by the function of the Ethernet frame receiving unit, and steps S110 and S120 correspond to the process executed by the function of the ID generation unit. Steps S130 to S150 correspond to processing executed by the function of the CAN frame generation unit, and step S160 corresponds to processing executed by the function of the CAN frame transmission unit.
[3.効果]
以上説明した第1実施形態によれば、以下の効果が得られる。
(1)ネットワークチャネル70a,70bからネットワークチャネル70cへの通信フレームを中継する場合には、CANフレームのCAN−IDからVLANドメインが判定され、VLANタグが生成される。そして、VLANタグが付与されたEthernetフレームが生成され、Ethernetフレームが送信される。これにより、Ethernetフレームを、ネットワークチャネル70cの特定のVLANドメインのみに中継することができる。ひいては、ネットワークチャネル70a,70bから不正フレームがネットワークチャネル70cへ送信された場合でも、不正フレームの影響を特定のVLANドメイン内に局所化できる。
[3. effect]
According to the first embodiment described above, the following effects can be obtained.
(1) When relaying a communication frame from the
(2)CANフレームのCAN−IDにVLANドメインが埋め込まれているため、CAN−IDとVLANドメイン間の相関を表すテーブルを検索する必要がない。よって、テーブルを持つ場合と比べて、中継処理ソフトの処理性能を向上させることができるとともに、中継処理ソフトの汎用性を向上させることができる。 (2) Since the VLAN domain is embedded in the CAN-ID of the CAN frame, it is not necessary to search a table that represents the correlation between the CAN-ID and the VLAN domain. Therefore, the processing performance of the relay processing software can be improved and the versatility of the relay processing software can be improved as compared with the case of having a table.
(3)ネットワークチャネル70cからネットワークチャネル70a,70bへ通信フレームを中継する場合において、EthernetフレームのペイロードにCAN−ID生成用データが埋め込まれている場合には、EthernetフレームからCAN−ID生成用データが抽出される。そして、抽出されたCAN−ID生成用データからCAN−IDが生成され、生成されたCAN−IDが付与されたCANフレームが生成される。さらに、生成されたCANフレームがECU20a,20bへ送信される。これにより、ネットワークチャネル70cからネットワークチャネル70a,70bへ、Ethernetフレームを中継することができる。
(3) When a communication frame is relayed from the
(4)ネットワークチャネル70cからネットワークチャネル70a,70bへ通信フレームを中継する場合において、EthernetフレームのペイロードにCAN−IDが埋め込まれている場合には、EthernetフレームからCAN−IDが抽出される。そして、抽出されたCAN−IDが付与されたCANフレームが生成されて、生成されたCANフレームがECU20a,20bへ送信される。これにより、ネットワークチャネル70cからネットワークチャネル70a,70bへ、Ethernetフレームを中継することができる。
(4) When a communication frame is relayed from the
(5)Ethernetフレームの実データ部分の長さが8バイトを超える場合には、実データ部分が分割されて、複数のCANフレームが生成される。よって、Ethernetフレームの実データ部分の長さが8バイトを超える場合でも、ネットワークチャネル70cからネットワークチャネル70a,70bへ、Ethernetフレームを中継することができる。
(5) When the length of the actual data portion of the Ethernet frame exceeds 8 bytes, the actual data portion is divided and a plurality of CAN frames are generated. Therefore, even when the length of the actual data portion of the Ethernet frame exceeds 8 bytes, the Ethernet frame can be relayed from the
[他の実施形態]
以上、本発明を実施するための形態について説明したが、本発明は上述の実施形態に限定されることなく、種々変形して実施することができる。
[Other Embodiments]
As mentioned above, although the form for implementing this invention was demonstrated, this invention is not limited to the above-mentioned embodiment, It can implement in various deformation | transformation.
(a)上記実施形態では、ECU40a,40bは、CAN−ID生成用データ又はCAN−IDをペイロードに埋め込んだEthernetフレームを生成したが、これに限定されるものではない。ECU40a,40bは、図8に示すように、1つ以上のCANフレームがペイロードに埋め込まれたEthernetフレームを生成してもよい。中継装置50は、ネットワークチャネル70cから、ネットワークチャネル70a又はネットワークチャネル70bへ、通信フレームを中継する場合、受信したEthernetフレームから埋め込まれた1つ以上のCANフレームを抽出すればよい。そして、中継装置50は、抽出した1つ以上のCANフレームを、CAN−IDに応じて、ネットワークチャネル70a又はネットワークチャネル70bへ送出すればよい。受信したEthernetフレームから埋め込まれたCANフレームを抽出する処理が、CANフレーム抽出部の機能が実行する処理に相当する。
(A) In the above embodiment, the
この場合、ECU40a,40bは、常に、CANフレームをペイロードに埋め込んだEthernetフレームを生成して送信する。Ethernetネットワークに接続されたECU間で通信を行う場合など、Ethernetフレームの送信先がCANネットワークに接続したECUでない場合は、埋め込まれたCANフレームから必要なデータ部分のみを取り出せばよい。
In this case, the
(b)上記実施形態における1つの構成要素が有する複数の機能を、複数の構成要素によって実現したり、1つの構成要素が有する1つの機能を、複数の構成要素によって実現したりしてもよい。また、複数の構成要素が有する複数の機能を、1つの構成要素によって実現したり、複数の構成要素によって実現される1つの機能を、1つの構成要素によって実現したりしてもよい。また、上記実施形態の構成の一部を省略してもよい。また、上記実施形態の構成の少なくとも一部を、他の上記実施形態の構成に対して付加又は置換してもよい。なお、特許請求の範囲に記載した文言のみによって特定される技術思想に含まれるあらゆる態様が本発明の実施形態である。 (B) A plurality of functions of one constituent element in the above embodiment may be realized by a plurality of constituent elements, or a single function of one constituent element may be realized by a plurality of constituent elements. . Further, a plurality of functions possessed by a plurality of constituent elements may be realized by one constituent element, or one function realized by a plurality of constituent elements may be realized by one constituent element. Moreover, you may abbreviate | omit a part of structure of the said embodiment. In addition, at least a part of the configuration of the above embodiment may be added to or replaced with the configuration of the other embodiment. In addition, all the aspects included in the technical idea specified only by the wording described in the claim are embodiment of this invention.
(c)上述した中継装置の他、当該中継装置を構成要素とするシステム、当該中継装置としてコンピュータを機能させるためのプログラム、このプログラムを記録した半導体メモリ等の非遷移的実態的記録媒体、フレームの中継方法など、種々の形態で本発明を実現することもできる。 (C) In addition to the relay device described above, a system including the relay device as a constituent element, a program for causing a computer to function as the relay device, a non-transitory actual recording medium such as a semiconductor memory storing the program, a frame The present invention can also be realized in various forms such as a relay method.
15…プロトコル変換部、50…中継装置、70a,70b,70c…ネットワークチャネル、100…車両ネットワーク。 15 ... Protocol conversion unit, 50 ... Relay device, 70a, 70b, 70c ... Network channel, 100 ... Vehicle network.
Claims (5)
前記VLANのドメインが埋め込まれたCAN−IDが付与されたCANフレームを受信するように構成されたCANフレーム受信部(S10)と、
前記CANフレーム受信部により受信されたCANフレームの前記CAN−IDから前記ドメインを判定するように構成されたドメイン判定部(S20)と、
前記ドメイン判定部により判定された前記ドメインを含むVLANタグを生成し、前記CANフレーム受信部により受信されたCANフレームから、前記VLANタグを付与したEthernetフレームを生成するように構成されたEthernetフレーム生成部(S30)と、
前記Ethernetフレーム生成部により生成されたEthernetフレームを送信するように構成されたEthernetフレーム送信部(S40)と、を備える中継装置。 Applicable to in-vehicle network (100) having one or more CAN (registered trademark) network channels (70a, 70b) and one or more Ethernet (registered trademark) network channels (70c) constructing a VLAN A relay device (50) for relaying communication between network channels,
A CAN frame receiving unit (S10) configured to receive a CAN frame to which a CAN-ID in which the VLAN domain is embedded is received;
A domain determination unit (S20) configured to determine the domain from the CAN-ID of the CAN frame received by the CAN frame reception unit;
Ethernet frame generation configured to generate a VLAN tag including the domain determined by the domain determination unit, and generate an Ethernet frame to which the VLAN tag is added from a CAN frame received by the CAN frame reception unit Part (S30),
A relay device comprising: an Ethernet frame transmission unit (S40) configured to transmit an Ethernet frame generated by the Ethernet frame generation unit.
前記CAN−ID生成用データがデータ領域に埋め込まれたEthernetフレームを受信するように構成されたEthernetフレーム受信部(S100)と、
前記Ethernetフレーム受信部により受信されたEthernetフレームから前記CAN−ID生成用データを抽出し、前記IDテーブルを用いて、抽出したCAN−ID生成用データから対応するCAN―IDを生成するように構成されたID生成部(S110,S120)と、
前記Ethernetフレーム受信部により受信されたEthernetフレームから、前記ID生成部により生成されたCAN−IDを付与したCANフレームを生成するように構成されたCANフレーム生成部(S130〜S150)と、
前記CANフレーム生成部により生成されたCANフレームを送信するように構成されたCANフレーム送信部(S160)と、を備える請求項1に記載の中継装置。 An ID table that associates CAN-ID generation data with CAN-ID generated from the CAN-ID generation data;
An Ethernet frame receiver (S100) configured to receive an Ethernet frame in which the CAN-ID generation data is embedded in a data area;
The CAN-ID generation data is extracted from the Ethernet frame received by the Ethernet frame reception unit, and the corresponding CAN-ID is generated from the extracted CAN-ID generation data using the ID table. ID generation unit (S110, S120),
A CAN frame generation unit (S130 to S150) configured to generate a CAN frame with a CAN-ID generated by the ID generation unit from the Ethernet frame received by the Ethernet frame reception unit;
The relay device according to claim 1, further comprising: a CAN frame transmission unit configured to transmit a CAN frame generated by the CAN frame generation unit.
前記Ethernetフレーム受信部により受信されたEthernetフレームの前記データ領域の前記先頭部分のデータからCAN−IDを生成するように構成されたID生成部と、
前記Ethernetフレーム受信部により受信されたEthernetフレームから、前記ID生成部により生成されたCAN−IDを付与したCANフレームを生成するように構成されたCANフレーム生成部と、
前記CANフレーム生成部により生成されたCANフレームを送信するように構成されたCANフレーム送信部と、を備える請求項1に記載の中継装置。 An Ethernet frame receiving unit configured to receive an Ethernet frame in which the CAN-ID is embedded in the top portion of the data area;
An ID generation unit configured to generate a CAN-ID from the data of the head portion of the data area of the Ethernet frame received by the Ethernet frame reception unit;
A CAN frame generation unit configured to generate a CAN frame to which the CAN-ID generated by the ID generation unit is added from the Ethernet frame received by the Ethernet frame reception unit;
The relay apparatus according to claim 1, further comprising: a CAN frame transmission unit configured to transmit a CAN frame generated by the CAN frame generation unit.
前記Ethernetフレーム受信部により受信されたEthernetフレームから埋め込まれたCANフレームを抽出するように構成されたCANフレーム抽出部と、
前記CANフレーム抽出部により抽出されたCANフレームを送信するように構成されたCANフレーム送信部と、を備える請求項1に記載の中継装置。 An Ethernet frame receiver configured to receive an Ethernet frame embedded with a CAN frame;
A CAN frame extraction unit configured to extract an embedded CAN frame from the Ethernet frame received by the Ethernet frame reception unit;
The relay apparatus according to claim 1, further comprising: a CAN frame transmission unit configured to transmit a CAN frame extracted by the CAN frame extraction unit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017014351A JP6729426B2 (en) | 2017-01-30 | 2017-01-30 | Relay device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2017014351A JP6729426B2 (en) | 2017-01-30 | 2017-01-30 | Relay device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2018125601A true JP2018125601A (en) | 2018-08-09 |
| JP6729426B2 JP6729426B2 (en) | 2020-07-22 |
Family
ID=63109041
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2017014351A Active JP6729426B2 (en) | 2017-01-30 | 2017-01-30 | Relay device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP6729426B2 (en) |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110254376A (en) * | 2019-06-20 | 2019-09-20 | 广州小鹏汽车科技有限公司 | The control system of vehicle and vehicle, method |
| WO2020085422A1 (en) * | 2018-10-24 | 2020-04-30 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ | Onboard network relay device and onboard network relay method |
| WO2020085421A1 (en) * | 2018-10-24 | 2020-04-30 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ | Fraud detection device and fraud detection method |
| JP2020096251A (en) * | 2018-12-11 | 2020-06-18 | トヨタ自動車株式会社 | Relay device |
| US11140632B2 (en) | 2018-12-25 | 2021-10-05 | Sumitomo Wiring Systems, Ltd. | In-vehicle communication device |
| JP2021190736A (en) * | 2020-05-26 | 2021-12-13 | 株式会社デンソー | Network system and relay device |
| CN114667716A (en) * | 2020-10-19 | 2022-06-24 | 日产自动车株式会社 | Relay device, communication network system, and communication control method |
| DE102022117990A1 (en) | 2021-08-06 | 2023-02-09 | Denso Corporation | ON-VEHICLE COMMUNICATION SYSTEM |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20110057371A (en) * | 2009-11-24 | 2011-06-01 | 한국전자통신연구원 | Ethernet-can frame conversion transmission device and method |
| US20130322449A1 (en) * | 2012-05-30 | 2013-12-05 | Electronics And Telecommunications Research Institute | Apparatus and method for providing partial networking support for vehicle and electronic control unit including the apparatus |
| JP2015154481A (en) * | 2014-02-13 | 2015-08-24 | 現代自動車株式会社Hyundaimotor Company | Processor for performing signal conversion between Ethernet and CAN communication in vehicle and signal conversion method |
| JP2016195384A (en) * | 2015-03-31 | 2016-11-17 | 株式会社デンソー | Relay device and communication system |
-
2017
- 2017-01-30 JP JP2017014351A patent/JP6729426B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20110057371A (en) * | 2009-11-24 | 2011-06-01 | 한국전자통신연구원 | Ethernet-can frame conversion transmission device and method |
| US20130322449A1 (en) * | 2012-05-30 | 2013-12-05 | Electronics And Telecommunications Research Institute | Apparatus and method for providing partial networking support for vehicle and electronic control unit including the apparatus |
| JP2015154481A (en) * | 2014-02-13 | 2015-08-24 | 現代自動車株式会社Hyundaimotor Company | Processor for performing signal conversion between Ethernet and CAN communication in vehicle and signal conversion method |
| JP2016195384A (en) * | 2015-03-31 | 2016-11-17 | 株式会社デンソー | Relay device and communication system |
Cited By (9)
| 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 |
| WO2020085421A1 (en) * | 2018-10-24 | 2020-04-30 | パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカ | Fraud detection device and fraud detection method |
| JP2020096251A (en) * | 2018-12-11 | 2020-06-18 | トヨタ自動車株式会社 | Relay device |
| JP7124681B2 (en) | 2018-12-11 | 2022-08-24 | トヨタ自動車株式会社 | repeater |
| US11140632B2 (en) | 2018-12-25 | 2021-10-05 | Sumitomo Wiring Systems, Ltd. | In-vehicle communication device |
| CN110254376A (en) * | 2019-06-20 | 2019-09-20 | 广州小鹏汽车科技有限公司 | The control system of vehicle and vehicle, method |
| JP2021190736A (en) * | 2020-05-26 | 2021-12-13 | 株式会社デンソー | Network system and relay device |
| CN114667716A (en) * | 2020-10-19 | 2022-06-24 | 日产自动车株式会社 | Relay device, communication network system, and communication control method |
| DE102022117990A1 (en) | 2021-08-06 | 2023-02-09 | Denso Corporation | ON-VEHICLE COMMUNICATION SYSTEM |
Also Published As
| Publication number | Publication date |
|---|---|
| JP6729426B2 (en) | 2020-07-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6729426B2 (en) | Relay device | |
| JP6464901B2 (en) | In-vehicle communication system and relay device | |
| JP2013005156A (en) | Gateway device | |
| US10182132B2 (en) | Method, apparatus and system for communication between OpenFlow device and IP network device | |
| EP3125471B1 (en) | Communication device, integrated vehicle management system, and method for updating routing table | |
| EP3046394A1 (en) | Message processing method and mme selection method and device | |
| US20190126858A1 (en) | Vehicle data communications network | |
| CN106406159A (en) | Systems and methods for configuring devices in a network supporting vlans | |
| US20170012694A1 (en) | Repeater | |
| JP2015139093A (en) | relay device | |
| WO2022059206A1 (en) | Network topology inference device, network topology inference method, and program | |
| CN107896188B (en) | Data forwarding method and device | |
| US20180063246A1 (en) | Method and apparatus for efficient data transfer protocol in a limited-bandwidth vehicle environment | |
| CN109995649B (en) | Method and device for acquiring cross-domain link | |
| CN111756607B (en) | Message transmission method and device | |
| US20180343326A1 (en) | Can to ip internetworking | |
| US20180351853A1 (en) | Communication system, transmitter, receiver, communication method, transmission method, and reception method | |
| JP6540550B2 (en) | Relay apparatus and communication system | |
| JP6544250B2 (en) | Relay device | |
| JP6264066B2 (en) | Relay system | |
| CN116827854A (en) | Vehicle-mounted communication system and method based on redundant information feedback | |
| JP6593230B2 (en) | Communications system | |
| CN105450527B (en) | Method and device for processing messages, sending information, and receiving information | |
| JP6344348B2 (en) | Buffer control device, communication node, and relay device | |
| JP6992433B2 (en) | Relay device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190325 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200128 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200204 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200331 |
|
| 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: 20200602 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200615 |
|
| R151 | Written notification of patent or utility model registration |
Ref document number: 6729426 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |