JP5966957B2 - Network monitoring apparatus and network monitoring method - Google Patents

Network monitoring apparatus and network monitoring method Download PDF

Info

Publication number
JP5966957B2
JP5966957B2 JP2013023684A JP2013023684A JP5966957B2 JP 5966957 B2 JP5966957 B2 JP 5966957B2 JP 2013023684 A JP2013023684 A JP 2013023684A JP 2013023684 A JP2013023684 A JP 2013023684A JP 5966957 B2 JP5966957 B2 JP 5966957B2
Authority
JP
Japan
Prior art keywords
communication
message
interval
delay
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.)
Active
Application number
JP2013023684A
Other languages
Japanese (ja)
Other versions
JP2014155061A (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 JP2013023684A priority Critical patent/JP5966957B2/en
Publication of JP2014155061A publication Critical patent/JP2014155061A/en
Application granted granted Critical
Publication of JP5966957B2 publication Critical patent/JP5966957B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

本発明は、車両などにおいて複数の通信装置が接続されているネットワークの状態を監視するネットワーク監視装置、及びネットワーク監視方法に関する。   The present invention relates to a network monitoring device and a network monitoring method for monitoring a state of a network to which a plurality of communication devices are connected in a vehicle or the like.

周知のように、自動車等の車両には、ナビゲーションシステムを構成する電子制御装置(ECU)をはじめ、エンジンやブレーキ等の各種機器を電子的に制御するECU、車両の各種状態を表示するメータ等の機器を制御するECUなどの多くのECUが搭載されている。それら各ECUは、データ通信用のネットワークに接続されており、車両内では、このネットワークを介して各ECU間での各種データの送受信が行われている。そして、このようなネットワークの一つにコントローラエリアネットワーク(CAN)がある。   As is well known, vehicles such as automobiles include an electronic control unit (ECU) that constitutes a navigation system, an ECU that electronically controls various devices such as an engine and a brake, a meter that displays various states of the vehicle, and the like. Many ECUs such as an ECU for controlling the devices are mounted. Each of these ECUs is connected to a data communication network, and various types of data are transmitted and received between the ECUs via the network in the vehicle. One such network is a controller area network (CAN).

一方、各ECUによるデータの処理内容や処理量等は車両の走行状態などによって変化し、これに伴って各ECU間での通信量や通信頻度も変動する。そして、こうした通信量や通信頻度の変動によっては、各ECU間でのデータの送受信が集中的に行われることに起因してネットワークの通信負荷が増大し、通信遅延等が発生するおそれもある。そこで従来より、例えば特許文献1に記載のシステムのように、ネットワークの負荷状態を監視する技術がある。   On the other hand, the processing contents and processing amount of data by each ECU vary depending on the traveling state of the vehicle, and accordingly, the communication amount and communication frequency between the ECUs also vary. And depending on such fluctuations in communication volume and communication frequency, data transmission / reception between the ECUs is concentrated, resulting in an increase in communication load on the network, which may cause communication delays and the like. Therefore, conventionally, there is a technique for monitoring the load state of a network, for example, as in the system described in Patent Document 1.

特許文献1に記載のシステムは、1つのCANバスを含む複数のネットワークに接続されるゲートウェイ装置によってネットワークの負荷(バス負荷)を監視する。すなわち、このゲートウェイ装置は、CANバスに送出される通信メッセージのフレームを監視してCANバス上のバス負荷(通信負荷)を監視するバス負荷監視手段と、バス負荷状態に応じてバス負荷の調節を行うバス負荷調整手段とを備えている。このうち、バス負荷監視手段では、バス負荷を算出したいバス側に指定した通信速度の全メッセージIDを受信可能に設定することによってバス負荷を監視する。すなわち、指定した通信速度の全メッセージIDの監視に基づいてCANバスのバス負荷(通信負荷)が算出される。   The system described in Patent Document 1 monitors a network load (bus load) by a gateway device connected to a plurality of networks including one CAN bus. That is, the gateway device monitors a frame of a communication message sent to the CAN bus and monitors a bus load (communication load) on the CAN bus, and adjusts the bus load according to the bus load state. And a bus load adjusting means. Among these, the bus load monitoring means monitors the bus load by setting all message IDs at the communication speed designated on the bus side for which the bus load is to be calculated to be receivable. That is, the bus load (communication load) of the CAN bus is calculated based on the monitoring of all message IDs at the designated communication speed.

特開2006−287738号公報JP 2006-287738 A

ところで近年は、車両の高機能化などにより増加した通信量がネットワークの通信負荷を高め通信に遅延を生じさせることが懸念されている。このため、CANバスにあっても、ネットワークをリアルタイムに監視することが検討されている。その一方、車両の高機能化は車両に搭載される各ECUの処理負荷をも高めているが、上述のようなネットワークの通信負荷の監視は、ただでさえ高まる傾向にあるECUの処理負荷をさらに高めることにもなりかねない。   By the way, in recent years, there is a concern that the amount of communication increased due to higher functionality of the vehicle increases the communication load of the network and causes delay in communication. For this reason, even if it exists in a CAN bus, monitoring the network in real time is examined. On the other hand, higher performance of the vehicle also increases the processing load of each ECU mounted on the vehicle, but monitoring of the communication load of the network as described above reduces the processing load of the ECU, which tends to increase only. It can be even higher.

本発明は、このような実情に鑑みなされたものであって、その目的は、CANプロトコルに基づく通信メッセージが送受信されるネットワークにあって、通信負荷の監視に要する処理負荷を少なく抑えることのできるネットワーク監視装置、及びネットワーク監視方法を提供することにある。   The present invention has been made in view of such circumstances, and its purpose is in a network in which communication messages based on the CAN protocol are transmitted and received, and the processing load required for monitoring the communication load can be reduced. A network monitoring apparatus and a network monitoring method are provided.

以下、上記課題を解決するための手段及びその作用効果を記載する。
上記目的を達成するために本発明が提供するネットワーク監視装置は、CANプロトコルに基づく通信メッセージが送受信されるネットワークの通信負荷を監視するネットワーク監視装置であって、メッセージIDが異なる2つの通信メッセージについてそれぞれメッセージIDが同一である通信メッセージの通信間隔を検出する検出部と、前記検出されたメッセージIDが異なる2つの通信メッセージの各通信間隔が各通信メッセージに対応
して定められている送信間隔よりも長い時、遅延として判定する遅延判定部と、前記メッセージIDが異なる2つの通信メッセージの各通信間隔が両方とも遅延として判定されることを条件に、ネットワークの通信負荷が高いと判断し、前記メッセージIDが異なる2つの通信メッセージのいずれか一方の通信間隔のみが遅延として判定されることを条件に、遅延として判定された通信メッセージの送信に異常が生じていると判断する判断部とを備え、前記検出部は、送信間隔が同じ周期の通信メッセージの通信間隔を検出することを要旨とする。
Hereinafter, means for solving the above-described problems and the effects thereof will be described.
In order to achieve the above object, a network monitoring apparatus provided by the present invention is a network monitoring apparatus that monitors a communication load of a network through which communication messages based on the CAN protocol are transmitted and received, and for two communication messages having different message IDs. A detection unit that detects a communication interval of communication messages having the same message ID, and a transmission interval in which each communication interval of two communication messages having different detected message IDs is determined corresponding to each communication message. If it is too long, it is determined that the communication load of the network is high, on the condition that both the communication intervals of the two communication messages having different message IDs are determined as delays, and the delay determination unit that is determined as a delay, One of two communication messages with different message IDs That only square communication distance is determined as a delay on the condition, and a determination unit that determines an abnormality in the transmission of the communication message it is determined as a delay has occurred, the detecting unit, the same cycle transmission interval The gist is to detect the communication interval of the communication message .

上記目的を達成するために本発明が提供するネットワーク監視方法は、CANプロトコルに基づく通信メッセージが送受信されるネットワークの通信負荷をネットワーク監視装置で監視するネットワーク監視方法であって、検出部で、メッセージIDが異なる2つの通信メッセージについてそれぞれメッセージIDが同一である通信メッセージの通信間隔を検出する工程と、遅延判定部で、前記検出されたメッセージIDが異なる2つの通信メッセージの各通信間隔が各通信メッセージに対応して定められている送信間隔よりも長いとき、遅延として判定する工程と、判断部で、前記メッセージIDが異なる2つの通信メッセージの各通信間隔が両方とも遅延として判定されたとき、ネットワークの通信負荷が高いと判断し、前記メッセージIDが異なる2つの通信メッセージのいずれか一方の通信間隔のみが遅延として判定されたとき、前記遅延として判定された通信メッセージの送信に異常が生じていると判断する工程とを備え、前記検出する工程では送信間隔が同じ周期の通信メッセージの通信間隔を検出することを要旨とする。 Network monitoring method provided by the present invention in order to achieve the above object, there is provided a network monitoring method of monitoring a communication load of a network communication message based on the CAN protocol is transmitted and received by the network monitoring apparatus, the detection unit, a message The step of detecting the communication interval of communication messages having the same message ID for two communication messages having different IDs, and the communication interval of the two communication messages having different detected message IDs in the delay determining unit When it is longer than the transmission interval determined corresponding to the message, the step of determining as a delay, and when each communication interval of two communication messages having different message IDs is determined as a delay by the determination unit , It is determined that the network communication load is high, and the message When D is only one of the communication distance of two different communication message is determined as a delay, and a step of determining an abnormality in the transmission of the determined communication message as the delay has occurred, the detecting The gist of the process is to detect a communication interval of communication messages having the same transmission interval .

このような構成もしくは方法によれば、ネットワークの通信負荷が高くなったことの判断を、CANプロトコルに基づく通信メッセージに通信メッセージの種類毎に別々の値として付与されるメッセージIDの異なる2つの通信メッセージの通信間隔の検出に基づいて行うことができる。よって、ネットワークに流れる全ての通信メッセージを監視して検出する場合に比べ、メッセージIDの異なる2つの通信メッセージを監視して検出することでネットワークの通信負荷が高くなったことの検出に要する処理負荷を少なくすることができる。これにより、ネットワークの通信負荷の監視に要する処理負荷の増加が抑えられるようになる。   According to such a configuration or method, it is determined that the communication load of the network has increased, and two communications with different message IDs are given to communication messages based on the CAN protocol as different values for each type of communication message. This can be done based on detection of message communication intervals. Therefore, compared with the case where all communication messages flowing through the network are monitored and detected, the processing load required for detecting that the communication load of the network is increased by monitoring and detecting two communication messages having different message IDs. Can be reduced. As a result, an increase in processing load required for monitoring the communication load of the network can be suppressed.

なお、一つのメッセージIDの通信メッセージのみに基づいてネットワークの通信負荷を監視しようとすると、通信メッセージの送信に異常が生じている場合とネットワークの通信負荷の増加している場合とを区別できないおそれがある。そこで、メッセージIDの異なる2つの通信メッセージの通信間隔を監視する。これにより、ネットワークの通信負荷が増加している場合と通信メッセージの送信に異常が生じている場合とを区別することができるようになり、ネットワークの通信負荷の増加を適切に判断することができるようになる。しかも、2つの通信メッセージの通信間隔の両方が遅延するときはネットワークの通信負荷が増加したと判断し、いずれか一方の通信間隔のみが遅延するときは、その通信メッセージの送信に異常が生じたと推定することができるようにもなる。これにより、通信ネットワークの維持管理が好適に行われるようにもなる。
また、このような構成によれば、メッセージIDが異なる2つの通信メッセージに設定されている各送信間隔が同じであれば、ネットワークの通信負荷が高くなったとき、2つの通信メッセージの通信間隔は同様に長くなる可能性が高い。このように、同じ送信間隔の通信メッセージを用いることによって、ネットワークの通信負荷が高くなったことの判断が適切にできるようになり、しかも、通信メッセージの送信に生じた異常も適切に判断できるようになる。
Note that if the network communication load is monitored based only on a communication message with one message ID, there is a risk that it may not be possible to distinguish between cases where there is an abnormality in transmission of the communication message and cases where the network communication load is increasing. There is. Therefore, the communication interval between two communication messages having different message IDs is monitored. As a result, it is possible to distinguish between a case where the communication load of the network is increasing and a case where an abnormality occurs in the transmission of the communication message, and an increase in the communication load of the network can be appropriately determined. It becomes like this. Moreover, when both of the communication intervals of the two communication messages are delayed, it is determined that the communication load of the network has increased, and when only one of the communication intervals is delayed, an abnormality has occurred in the transmission of the communication message. It can also be estimated. As a result, the maintenance management of the communication network is also suitably performed.
In addition, according to such a configuration, if the transmission intervals set for two communication messages having different message IDs are the same, the communication interval between the two communication messages is set when the communication load of the network increases. It is likely to be long as well. As described above, by using communication messages having the same transmission interval, it becomes possible to appropriately determine that the communication load of the network has increased, and also to appropriately determine abnormality that has occurred in transmission of communication messages. become.

好ましい構成として、前記ネットワークには少なくとも2つの送信装置が接続されており、前記メッセージIDが異なる2つの通信メッセージのうちの一のメッセージIDの通信メッセージは前記少なくとも2つの送信装置の一の送信装置から送信されたものであり、他のメッセージIDの通信メッセージは前記少なくとも2つの送信装置の他の送信装置から送信される。   As a preferred configuration, at least two transmission devices are connected to the network, and a communication message with one message ID of two communication messages having different message IDs is one transmission device of the at least two transmission devices. The communication message with the other message ID is transmitted from the other transmitting device of the at least two transmitting devices.

このような構成によれば、少なくとも2つの送信装置からそれぞれ送信される通信メッセージがともに通信間隔が遅延することを監視する。これにより、ネットワークの通信負荷が高いことが原因ではなく送信装置の通信メッセージの送信異常を原因とする場合などを除外して、ネットワークの通信負荷が高いことを判断することができるようになる。つまり、ネットワークの通信負荷が高いことをより適切に判断することができるようになる。   According to such a configuration, both communication messages transmitted from at least two transmission devices are monitored to delay the communication interval. As a result, it is possible to determine that the communication load of the network is high, excluding the case that is not caused by the high communication load of the network but due to abnormal transmission of the communication message of the transmission device. That is, it becomes possible to more appropriately determine that the communication load of the network is high.

また、いずれか一方の通信メッセージのみ通信間隔が長い場合、その通信メッセージを送信している送信装置が特定されるため、異常の生じた送信装置を検知することができ、ネットワークを構成する送信装置の管理を好適に行うことができるようになる。   In addition, when only one of the communication messages has a long communication interval, the transmitting device that transmits the communication message is specified, so that the transmitting device in which an abnormality has occurred can be detected, and the transmitting device that configures the network Can be suitably managed.

好ましい構成として、前記検出部は、一定周期的で送信されるように設定されている通信メッセージの通信間隔を検出する。
このような構成によれば、検出される通信間隔が一定周期で送信される通信メッセージの通信間隔であれば、対応する送信間隔との比較が容易になるなど、通信メッセージの通信間隔が長くなっていることを検出する処理が容易になる。
As a preferred configuration, the detection unit detects a communication interval of communication messages set so as to be transmitted periodically.
According to such a configuration, if the detected communication interval is a communication interval of a communication message transmitted at a constant period, the communication interval of the communication message becomes long, for example, it becomes easy to compare with the corresponding transmission interval. It becomes easy to detect that the

好ましい構成として、前記遅延判定部は、遅延として判定した通信メッセージと同一のメッセージIDの次の通信メッセージの通信間隔を遅延の判定に用いない。
CANプロトコルでは、設定された送信間隔よりも遅延した通信メッセージの次に送信される通信メッセージの通信間隔が設定された送信間隔よりも短くなる可能性を有している。
As a preferred configuration, the delay determination unit does not use the communication interval of the next communication message having the same message ID as the communication message determined as the delay for the determination of the delay.
In the CAN protocol, there is a possibility that the communication interval of the communication message transmitted next to the communication message delayed from the set transmission interval is shorter than the set transmission interval.

このような構成によれば、通信間隔が遅延した通信メッセージの次に送信されることによって通信間隔が短くなるおそれのある通信メッセージの通信間隔を、遅延の判定に用いないようにする。これにより、ネットワークの通信負荷が高くなったことを要因として短くなった通信間隔が遅延の判定に及ぼす影響を小さくすることができるため、通信メッセージの遅延の判定が適切に行われるようになる。   According to such a configuration, the communication interval of the communication message that may shorten the communication interval by being transmitted after the communication message with the delayed communication interval is not used for the determination of the delay. As a result, the influence of the communication interval shortened due to the increase in the communication load on the network on the determination of the delay can be reduced, so that the determination of the delay of the communication message is appropriately performed.

好ましい構成として、前記検出部は、メッセージIDが異なる2つの通信メッセージの通信間隔をそれぞれ同じ間隔で検出する。
このような構成によれば、メッセージIDが異なる2つの通信メッセージの通信間隔を検出する間隔が同じ間隔となるため、それら2つの検出された通信間隔の遅延の判定を同期させることができるようになる。つまり、同期された遅延の判定によってネットワークの通信負荷が高いことなどの判断が行えるようになる。特に、2つの通信メッセージの通信間隔を検出するタイミングを近づけるようにすれば、同期性が高まり、ネットワークの通信負荷が高いことなどの判断の応答性を高くすることもできる。これにより、ネットワークの通信負荷が高いことなどの判断が好適に行われるようになる。
As a preferred configuration, the detection unit detects communication intervals of two communication messages having different message IDs at the same interval.
According to such a configuration, since the interval for detecting the communication interval of two communication messages having different message IDs is the same interval, the determination of the delay of the two detected communication intervals can be synchronized. Become. That is, it is possible to determine that the communication load on the network is high by determining the synchronized delay. In particular, if the timing at which the communication interval between two communication messages is detected is made closer, the synchronization can be improved, and the responsiveness of determination such as a high communication load on the network can be increased. As a result, a determination that the communication load on the network is high is preferably made.

好ましい構成として、前記遅延判定部は、前記通信間隔が検出されるタイミングに合わせて遅延の有無を判定し、前記判断部は、前記遅延判定部により遅延が判定されるタイミングに応じて前記ネットワークの通信負荷が高いこと又は前記通信メッセージの送信に異常が生じていることを判断する。   As a preferred configuration, the delay determination unit determines whether or not there is a delay in accordance with the timing at which the communication interval is detected, and the determination unit determines whether the delay of the network is in accordance with the timing at which the delay is determined by the delay determination unit. It is determined that the communication load is high or that there is an abnormality in the transmission of the communication message.

このような構成によれば、通信間隔を検出する間隔に合わせ遅延の有無を判定することによって、通信間隔を検出してから短時間のうちに通信負荷が高いことなどを判断できるようになる。つまり、通信負荷が高いことなどを高い応答性で判断できるようになる。これにより、通信負荷が高くなることに対して素早く対応できるようになる。   According to such a configuration, it is possible to determine that the communication load is high within a short period of time after detecting the communication interval by determining the presence or absence of a delay in accordance with the interval at which the communication interval is detected. That is, it is possible to determine with high responsiveness that the communication load is high. Thereby, it becomes possible to quickly cope with an increase in communication load.

好ましい構成として、前記判断部は、前記メッセージIDが異なる2つの通信メッセージのいずれか一方の通信間隔が遅延として判定されたとき、他方の通信メッセージの通信間隔も遅延として判定されるか否かに基づいて前記ネットワークの通信負荷が高いこと又は前記通信メッセージの送信に異常が生じていることの判断を行う。   As a preferred configuration, when the communication interval of one of two communication messages having different message IDs is determined as a delay, the determination unit determines whether the communication interval of the other communication message is also determined as a delay. Based on this, it is determined that the communication load of the network is high or that there is an abnormality in the transmission of the communication message.

このような構成によれば、いずれか一方の通信間隔が遅延していることが判定されてから、他方の通信間隔の遅延の有無を判定することにより、通信負荷が高いのか又は通信メッセージの送信に異常が生じているのかの判断に要する処理負荷を軽減することができるようになる。   According to such a configuration, after it is determined that one of the communication intervals is delayed, it is determined whether there is a delay in the other communication interval. It is possible to reduce the processing load required to determine whether an abnormality has occurred.

好ましい構成として、前記検出部は、それぞれメッセージIDが同一である通信メッセージをN回(Nは自然数)検出したときの時間を前記通信間隔として検出し、前記遅延判定部は、それぞれメッセージIDが同一である通信メッセージがN回送信されるときに要する時間を前記各メッセージに対応して定められている送信間隔とする。   As a preferred configuration, the detection unit detects a time when the communication message having the same message ID is detected N times (N is a natural number) as the communication interval, and the delay determination unit has the same message ID. Is a transmission interval determined in correspondence with each message.

このような構成によれば、検出する通信間隔を通信メッセージが複数回検出されたときに要する時間とすることができる。設定されている送信間隔の短い通信メッセージともなると、その送信間隔の都度、通信間隔を検出することになり処理負荷も大きくなる。そこで、通信メッセージが複数回検出されたときに通信間隔を検出するようにして検出間隔を延ばすことで、検出処理や判定処理や判断処理などに要する処理負荷を抑えることができるようになる。   According to such a configuration, the communication interval to be detected can be the time required when a communication message is detected a plurality of times. When a communication message with a short transmission interval is set, the communication interval is detected at each transmission interval, and the processing load increases. Therefore, by extending the detection interval by detecting the communication interval when a communication message is detected a plurality of times, the processing load required for detection processing, determination processing, determination processing, and the like can be suppressed.

本発明に係るネットワーク監視装置を備える通信システムを具体化した一実施形態について、その概略構成を示すブロック図。The block diagram which shows the schematic structure about one Embodiment which actualized the communication system provided with the network monitoring apparatus which concerns on this invention. 同実施形態の通信システムにおいて通信負荷が通常であるときに送信される2つの通信メッセージの通信間隔を模式的に示す模式図。The schematic diagram which shows typically the communication space | interval of the two communication messages transmitted when the communication load is normal in the communication system of the embodiment. 同実施形態の通信システムにおいて通信負荷が高いときに送信される2つの通信メッセージの通信間隔を模式的に示す模式図。The schematic diagram which shows typically the communication space | interval of two communication messages transmitted when communication load is high in the communication system of the embodiment. 同実施形態の通信メッセージの通信間隔が通常であるときの状態を説明する模式図。The schematic diagram explaining a state when the communication interval of the communication message of the embodiment is normal. 同実施形態の通信メッセージの通信間隔が長くなっているときの状態を説明する模式図。The schematic diagram explaining a state when the communication interval of the communication message of the embodiment is long. 同実施形態の通信システムにおいて送信される2つの通信メッセージの通信間隔が検出されるタイミングの例を示す模式図。The schematic diagram which shows the example of the timing which detects the communication space | interval of the two communication messages transmitted in the communication system of the embodiment. 同実施形態の通信システムにおいて各通信メッセージの通信間隔の遅延判定が行われるタイミングを模式的に示す模式図。The schematic diagram which shows typically the timing at which the delay determination of the communication interval of each communication message is performed in the communication system of the embodiment. 同実施形態の通信システムにおいて各通信メッセージの通信間隔の遅延判定と異常判断とが行われる手順を示すシーケンス図。The sequence diagram which shows the procedure in which the delay determination and abnormality determination of the communication interval of each communication message are performed in the communication system of the embodiment.

本発明に係るネットワーク監視装置を備える通信システムを具体化した一実施形態について、図に従って説明する。
図1に示すように、車両1は、ネットワーク監視装置を含む通信システムを備えている。通信システムは、送信装置としての第1の電子制御装置(ECU)10と、第1のECU10と同様の構成を有する送信装置としての第2〜第5のECU11〜14と、ネットワーク監視装置としての監視ECU20と、それら第1〜第5のECU10〜14及び監視ECU20を相互通信可能に接続させる通信用バス15とから構成されている。これにより、第1〜第5のECU10〜14は、制御用の各種情報等を、通信用バス15を介して相互に授受(送信及び受信)できる。また、監視ECU20は通信用バス15を介して第1〜第5のECU10〜14が相互授受する制御用の各種情報等を受信することができる。なお、通信システムは、CAN(Controller Area Network)ネットワークとして構成されているため、通信プロトコルにはCANプロトコルが適用される。
An embodiment embodying a communication system including a network monitoring device according to the present invention will be described with reference to the drawings.
As shown in FIG. 1, the vehicle 1 includes a communication system including a network monitoring device. The communication system includes a first electronic control unit (ECU) 10 as a transmission device, second to fifth ECUs 11 to 14 as transmission devices having the same configuration as the first ECU 10, and a network monitoring device. The monitoring ECU 20 includes a communication bus 15 that connects the first to fifth ECUs 10 to 14 and the monitoring ECU 20 so that they can communicate with each other. Thus, the first to fifth ECUs 10 to 14 can exchange (transmit and receive) various control information and the like via the communication bus 15. In addition, the monitoring ECU 20 can receive various control information and the like exchanged between the first to fifth ECUs 10 to 14 via the communication bus 15. Since the communication system is configured as a CAN (Controller Area Network) network, the CAN protocol is applied as a communication protocol.

通信用バス15は、ツイストケーブルなどの通信線などから構成され、その通信線を介してCANプロトコルにおいて通信における1単位となる通信メッセージを伝達する。なお、通信用バス15は、通信経路の一部に無線通信を含んでいたり、ゲートウェイなどを介して他のネットワークを経由する経路が含まれていたりしてもよい。   The communication bus 15 includes a communication line such as a twist cable, and transmits a communication message as a unit in communication in the CAN protocol via the communication line. The communication bus 15 may include wireless communication as a part of the communication path, or may include a path that passes through another network via a gateway or the like.

CANプロトコルには、通信メッセージの構造であるフレームが規定されており、そのフレームには、通信メッセージの内容を示す「メッセージID」が格納される領域などが設けられている。メッセージIDは、通信メッセージの種類毎に特定の値が定められており、各ECUは、送信する通信メッセージに含む情報の内容に対応するメッセージIDを付与して送信し、受信した通信メッセージに含まれる情報の内容をメッセージIDに基づいて判断する。   The CAN protocol defines a frame that is a structure of a communication message, and an area for storing a “message ID” indicating the content of the communication message is provided in the frame. The message ID has a specific value determined for each type of communication message, and each ECU transmits a message ID corresponding to the content of information included in the communication message to be transmitted, and is included in the received communication message. The content of the information to be determined is determined based on the message ID.

CANプロトコルでは、情報ごとにメッセージIDが定められていることから、特定のメッセージIDを付与された通信メッセージを出力するECUは特定される。例えば、第1のECU10は、特定のメッセージIDを有する第1の通信メッセージM1を送信する唯一のECUであり、第4のECU13は、第1の通信メッセージM1のメッセージIDとは異なる特定のメッセージIDを有する第2の通信メッセージM2を送信する唯一のECUである。一方、通信用バス15に接続された全てのECUは、受信する通信メッセージをメッセージIDに基づいて規制しない限り、通信用バス15に送信された通信メッセージを受信することができる。例えば、監視ECU20は、通信用バス15に送信された第1の通信メッセージM1及び第2の通信メッセージM2をそれぞれ受信することができる。なお、通信用バス15には、第1の通信メッセージM1や第2の通信メッセージM2の通信メッセージ以外にも様々な通信メッセージMx,My(図2,3参照)がその時々の車両状況に応じて増減し流れている。つまり、通信用バス15に流れている各通信メッセージの量が通常であれば通信用バス15の通信負荷は通常であり、各通信メッセージの量が大量になれば通信用バス15の通信負荷は高くなる。   In the CAN protocol, since a message ID is determined for each information, an ECU that outputs a communication message to which a specific message ID is assigned is specified. For example, the first ECU 10 is the only ECU that transmits the first communication message M1 having a specific message ID, and the fourth ECU 13 is a specific message that is different from the message ID of the first communication message M1. It is the only ECU that transmits the second communication message M2 having the ID. On the other hand, all ECUs connected to the communication bus 15 can receive the communication message transmitted to the communication bus 15 unless the received communication message is regulated based on the message ID. For example, the monitoring ECU 20 can receive the first communication message M1 and the second communication message M2 transmitted to the communication bus 15, respectively. Note that various communication messages Mx and My (see FIGS. 2 and 3) other than the communication messages of the first communication message M1 and the second communication message M2 are displayed on the communication bus 15 according to the vehicle situation at that time. It is increasing and decreasing. That is, if the amount of each communication message flowing through the communication bus 15 is normal, the communication load of the communication bus 15 is normal. If the amount of each communication message is large, the communication load of the communication bus 15 is Get higher.

第1〜第5のECU10〜14はそれぞれ、車両1の各種制御に用いられる制御装置であって、例えば、駆動系、走行系、車体系、又は情報機器系等を制御対象にしているECUである。例えば、駆動系を制御対象とするECUとしては、エンジン用ECUが挙げられ、走行系を制御対象とするECUとしては、ステアリング用ECUやブレーキ用ECUが挙げられ、車体系を制御するECUとしては、ライト用ECUやウィンドウ用ECUが挙げられ、情報機器系を制御対象とするECUとしては、カーナビゲーション用ECUが挙げられる。   Each of the first to fifth ECUs 10 to 14 is a control device that is used for various controls of the vehicle 1, for example, an ECU that controls a drive system, a traveling system, a vehicle body system, an information device system, or the like. is there. For example, an ECU for a drive system is an ECU for an engine, an ECU for a travel system is an ECU for a steering or a brake ECU, and an ECU for controlling a vehicle body system An ECU for a light and an ECU for a window can be mentioned, and an ECU for controlling an information device system includes an ECU for car navigation.

また、第1〜第5のECU10〜14及び監視ECU20はそれぞれ、各種制御に要する処理を実行する情報処理部(図示略)と、CANプロトコルに基づく通信メッセージを送信及び受信するCANコントローラ(図示略)とを備えている。情報処理部とCANコントローラとは内部バスなどを介して接続されていることから、情報処理部とCANコントローラとの間で通信メッセージに含まれている各種情報に関するデータの授受が可能になっている。   Each of the first to fifth ECUs 10 to 14 and the monitoring ECU 20 includes an information processing unit (not shown) that executes processes required for various controls, and a CAN controller (not shown) that transmits and receives communication messages based on the CAN protocol. ). Since the information processing unit and the CAN controller are connected via an internal bus or the like, data related to various types of information included in the communication message can be exchanged between the information processing unit and the CAN controller. .

CANコントローラは、通信用バス15との間で通信メッセージを送受信する。CANコントローラは、CANプロトコルに基づく通信メッセージを受信するとともに、CANプロトコルに基づく通信メッセージを送信する。つまり、各ECUは、CANコントローラを介して通信用バス15との間での通信メッセージの送受信を行なう。   The CAN controller transmits and receives communication messages to and from the communication bus 15. The CAN controller receives a communication message based on the CAN protocol and transmits a communication message based on the CAN protocol. That is, each ECU transmits / receives a communication message to / from the communication bus 15 via the CAN controller.

情報処理部は、演算装置(CPU)や記憶装置を有するマイクロコンピュータを含み構成されている。つまり情報処理部には、制御用プログラムの演算処理を実行する演算装置と、その制御用プログラムやデータなどが記憶された読み出し専用メモリ(ROM)と、演算装置の演算結果が一時的に記憶される揮発性メモリ(RAM)とが設けられている。これにより、情報処理部は、記憶装置に保持されている制御用プログラムを演算装置に読み込み、実行することで、制御対象に対して所定の機能を提供して当該制御対象の制御を行なう。   The information processing unit includes a microcomputer having an arithmetic device (CPU) and a storage device. That is, the information processing unit temporarily stores an arithmetic device that executes arithmetic processing of the control program, a read-only memory (ROM) that stores the control program and data, and the arithmetic result of the arithmetic device. Volatile memory (RAM). Thus, the information processing unit reads a control program held in the storage device into the arithmetic device and executes it, thereby providing a predetermined function to the control target and controlling the control target.

図2に示すように、例えば、第1のECU10は、第1の通信メッセージM1を予め定められた第1の送信間隔T1の周期で通信用バス15へ送信する。つまり、第1のECU10の情報処理部は、第1の送信間隔T1毎の送信タイミングで第1の通信メッセージM1の送信をCANコントローラに指示する。そして、通信用バス15におけるネットワークの通信負荷が高くないとき、第1のECU10のCANコントローラは、第1の通信メッセージM1の送信タイミングの指示に応じて第1の通信メッセージM1を通信用バス15に送信することができる。このため、第1の通信メッセージM1はその通信間隔ΔT1が設定されている送信間隔T1に近い値になり送信に遅延が生じない。なお、送信間隔T1に近い値とは、ネットワークの通信負荷が高くないとき、送信間隔T1からずれる範囲の時間であり、実験や経験などからその範囲が定められ、例えば、送信間隔T1の±10%程度である。   As shown in FIG. 2, for example, the first ECU 10 transmits the first communication message M1 to the communication bus 15 at a predetermined first transmission interval T1. That is, the information processing unit of the first ECU 10 instructs the CAN controller to transmit the first communication message M1 at the transmission timing for each first transmission interval T1. When the communication load of the network in the communication bus 15 is not high, the CAN controller of the first ECU 10 sends the first communication message M1 to the communication bus 15 according to the instruction of the transmission timing of the first communication message M1. Can be sent to. For this reason, the first communication message M1 has a value close to the transmission interval T1 in which the communication interval ΔT1 is set, and transmission is not delayed. Note that the value close to the transmission interval T1 is a time within a range deviating from the transmission interval T1 when the communication load of the network is not high, and the range is determined based on experiments and experiences, for example, ± 10 of the transmission interval T1. %.

一方、図3に示すように、通信用バス15におけるネットワークの通信負荷が高いとき、第1のECU10のCANコントローラは、第1の通信メッセージM1の送信タイミングの指示を受けても通信用バス15が混雑しているため送信タイミングの指示に応じて第1の通信メッセージM1を送信することができない。つまり、第1のECU10のCANコントローラは、第1の通信メッセージM1を送信するまでに遅延時間D1を要する。このため、第1の通信メッセージM1は、その通信間隔ΔT1が設定されている送信間隔T1よりも遅延時間D1だけ長くなり送信に遅延が生じる。   On the other hand, as shown in FIG. 3, when the communication load of the network in the communication bus 15 is high, the CAN controller of the first ECU 10 can receive the instruction of the transmission timing of the first communication message M1 even if the communication bus 15 Is busy, the first communication message M1 cannot be transmitted in response to the transmission timing instruction. That is, the CAN controller of the first ECU 10 requires the delay time D1 until the first communication message M1 is transmitted. For this reason, the first communication message M1 becomes longer by the delay time D1 than the transmission interval T1 in which the communication interval ΔT1 is set, and transmission is delayed.

図2に示すように、例えば、第4のECU13は、第2の通信メッセージM2を予め定められた第2の送信間隔T2の周期で通信用バス15へ送信する。つまり、第4のECU13は、第2の送信間隔T2毎の送信タイミングで第2の通信メッセージM2の送信をCANコントローラに指示する。そして、通信用バス15におけるネットワークの通信負荷が高くないとき、第4のECU13のCANコントローラは、第2の通信メッセージM2の送信タイミングの指示に応じて第2の通信メッセージM2を通信用バス15に送信することができる。このため、第2の通信メッセージM2はその通信間隔ΔT2が設定されている送信間隔T2に近い値となり送信に遅延が生じない。なお、送信間隔T2に近い値とは、ネットワークの通信負荷が高くないとき、送信間隔T2からずれる範囲の時間であり、実験や経験などからその範囲が定められ、例えば、送信間隔T2の±10%程度である。   As shown in FIG. 2, for example, the fourth ECU 13 transmits the second communication message M2 to the communication bus 15 at a predetermined second transmission interval T2. That is, the fourth ECU 13 instructs the CAN controller to transmit the second communication message M2 at the transmission timing for each second transmission interval T2. When the communication load of the network in the communication bus 15 is not high, the CAN controller of the fourth ECU 13 sends the second communication message M2 to the communication bus 15 according to the instruction of the transmission timing of the second communication message M2. Can be sent to. For this reason, the second communication message M2 has a value close to the transmission interval T2 in which the communication interval ΔT2 is set, and transmission is not delayed. The value close to the transmission interval T2 is a time within a range deviating from the transmission interval T2 when the communication load of the network is not high, and the range is determined from experiments and experiences. For example, ± 10 of the transmission interval T2 %.

なお、本実施形態では、特に断りのない限り、第1の送信間隔T1と第2の送信間隔T2とは同じ間隔である場合について説明する。
一方、図3に示すように、通信用バス15におけるネットワークの通信負荷が高いとき、第4のECU13のCANコントローラは、第2の通信メッセージM2の送信タイミングの指示を受けても通信用バス15が混雑しているため送信タイミングの指示に応じて第2の通信メッセージM2を送信することができない。つまり、第4のECU13のCANコントローラは、第2の通信メッセージM2を送信するまでに遅延時間D2を要する。このため、第2の通信メッセージM2は、その通信間隔ΔT2が設定されている送信間隔T2よりも遅延時間D2だけ長くなり送信に遅延が生じる。
In the present embodiment, a case where the first transmission interval T1 and the second transmission interval T2 are the same interval will be described unless otherwise specified.
On the other hand, as shown in FIG. 3, when the communication load of the network in the communication bus 15 is high, the CAN controller of the fourth ECU 13 receives the instruction of the transmission timing of the second communication message M2, and the communication bus 15 Is busy, the second communication message M2 cannot be transmitted in response to the transmission timing instruction. That is, the CAN controller of the fourth ECU 13 requires the delay time D2 before transmitting the second communication message M2. For this reason, the second communication message M2 becomes longer by the delay time D2 than the transmission interval T2 in which the communication interval ΔT2 is set, and transmission is delayed.

図1に示す、監視ECU20は、情報処理部の記憶装置に制御用プログラムとして、通信メッセージの通信間隔を検出するプログラムと、通信間隔が長いことを判定するプログラムと、通信負荷が高くなったことなどを判断するプログラムと、通信間隔などのログを取得するプログラムとを備えている。また、監視ECU20は、情報処理部の記憶装置に上述したプログラムの処理に必要な各種パラメータなどを保持している。パラメータには、例えば、通信間隔を検出する対象が第1の通信メッセージM1と第2の通信メッセージM2であることや、第1の通信メッセージM1に規定された送信間隔T1や、第2の通信メッセージM2に規定された送信間隔T2が含まれる。監視ECU20は、これらを演算装置に読み込み、実行することで、制御対象に対して所定の機能を提供して当該制御対象の制御を行なう。つまり、監視ECU20は、通信間隔を検出するプログラムが実行されることで通信間隔を検出する機能を有する検出部としての通信間隔検出部21を備え、通信間隔が長いことを判定するプログラムが実行されることで通信間隔が長いことを判定する機能を有する遅延判定部22を備える。また、監視ECU20は、通信負荷が高くなったことなどを判断するプログラムが実行されることで通信負荷が高くなったことなどを判断する機能を有する判断部としての異常判断部23を備え、通信間隔などのログを取得するプログラムが実行されることで通信間隔などのログを取得するログ取得部24を備える。   The monitoring ECU 20 shown in FIG. 1 has a communication load that has increased as a control program in the storage device of the information processing unit, a program for detecting a communication interval of communication messages, a program for determining that the communication interval is long. And a program for obtaining a log such as a communication interval. The monitoring ECU 20 holds various parameters necessary for the processing of the above-described program in the storage device of the information processing unit. The parameters include, for example, that the communication interval detection target is the first communication message M1 and the second communication message M2, the transmission interval T1 defined in the first communication message M1, and the second communication. A transmission interval T2 defined in the message M2 is included. The monitoring ECU 20 reads these into the arithmetic device and executes them to provide a predetermined function to the controlled object and control the controlled object. That is, the monitoring ECU 20 includes a communication interval detection unit 21 as a detection unit having a function of detecting a communication interval by executing a program for detecting a communication interval, and a program for determining that the communication interval is long is executed. Thus, a delay determination unit 22 having a function of determining that the communication interval is long is provided. The monitoring ECU 20 includes an abnormality determination unit 23 as a determination unit having a function of determining that the communication load is increased by executing a program for determining that the communication load is increased. A log acquisition unit 24 that acquires a log such as a communication interval by executing a program that acquires a log such as an interval is provided.

通信間隔検出部21は、CANコントローラを介して通信用バス15から受信した通信メッセージの通信間隔を検出する。
図2に示すように、通信用バス15におけるネットワークの通信負荷が高くないとき、通信間隔検出部21は、第1の通信メッセージM1の通信間隔ΔT1として送信間隔T1に近い時間を検出し、第2の通信メッセージM2の通信間隔ΔT2として送信間隔T2に近い時間を検出する。
The communication interval detector 21 detects the communication interval of the communication message received from the communication bus 15 via the CAN controller.
As shown in FIG. 2, when the communication load of the network on the communication bus 15 is not high, the communication interval detector 21 detects a time close to the transmission interval T1 as the communication interval ΔT1 of the first communication message M1, A time close to the transmission interval T2 is detected as the communication interval ΔT2 of the second communication message M2.

一方、図3に示すように、通信間隔検出部21は、通信用バス15におけるネットワークの通信負荷が高いとき、第1の通信メッセージM1の通信間隔ΔT1として第1の送信間隔T1よりも遅延時間D1だけ長い時間を検出し、第2の通信メッセージM2の通信間隔ΔT2として第2の送信間隔T2よりも遅延時間D2だけ長い時間を検出する。   On the other hand, as shown in FIG. 3, when the communication load of the network in the communication bus 15 is high, the communication interval detector 21 has a delay time longer than the first transmission interval T1 as the communication interval ΔT1 of the first communication message M1. A time longer by D1 is detected, and a time longer than the second transmission interval T2 by the delay time D2 is detected as the communication interval ΔT2 of the second communication message M2.

つまり、図4や図5に示すように、通信間隔検出部21は、第1の通信メッセージM1を受信する都度、第1の通信メッセージM1の通信間隔ΔT1の都度の値として、通信間隔ΔT11〜ΔT15を順次検出する。図示しないが、通信間隔検出部21は、第1の通信メッセージM1の通信間隔ΔT1の検出の場合と同様に、第2の通信メッセージM2についても第2の通信メッセージM2を受信する都度、通信間隔ΔT2を検出する。   That is, as shown in FIG. 4 and FIG. 5, the communication interval detection unit 21 receives the first communication message M1 and receives the first communication message M1 as the value of the first communication message M1. ΔT15 is sequentially detected. Although not shown, the communication interval detection unit 21 receives the second communication message M2 for the second communication message M2 as in the case of detecting the communication interval ΔT1 of the first communication message M1. ΔT2 is detected.

なお、図6に示すように、通信間隔検出部21は、第1の通信メッセージM1を所定回数受信する都度、第1の通信メッセージM1の所定回数分に対応する通信間隔ΔT3を都度検出するようにしてもよい。通信間隔検出部21は、第1の通信メッセージM1の受信回数をカウンタで計測することなどで、第1の通信メッセージM1の受信回数を特定することができる。例えば、第1の通信メッセージM1を5回受信する都度、1回目の第1の通信メッセージM1の送信時刻から5回目の第1の通信メッセージM1の送信時刻までの間の時間を通信間隔ΔT3として検出してよい。このとき通信間隔ΔT3は、通信負荷が高くなければ、第1の送信間隔T1の4倍程度の長さで検出される。こうすることで、通信メッセージの通信間隔の検出に要する処理負荷の増加を抑えることができるようになる。なお、第2の通信メッセージM2についても同様に所定回数分の通信間隔ΔT4を検出することができてもよい。   As shown in FIG. 6, the communication interval detector 21 detects the communication interval ΔT3 corresponding to the predetermined number of times of the first communication message M1 every time the first communication message M1 is received a predetermined number of times. It may be. The communication interval detection unit 21 can specify the number of receptions of the first communication message M1 by, for example, measuring the number of receptions of the first communication message M1 with a counter. For example, every time the first communication message M1 is received five times, the time from the first transmission time of the first communication message M1 to the fifth transmission time of the first communication message M1 is set as the communication interval ΔT3. May be detected. At this time, the communication interval ΔT3 is detected with a length about four times the first transmission interval T1 unless the communication load is high. By doing so, it is possible to suppress an increase in processing load required for detecting a communication interval of communication messages. Note that the communication interval ΔT4 for the predetermined number of times may be similarly detected for the second communication message M2.

また、図6に示すように、第1の通信メッセージM1用の第1の送信間隔T1と第2の通信メッセージM2用の第2の送信間隔T2とが相違していたとしても、第1の送信間隔T1と第2の送信間隔T2との公倍数として送信間隔T3,T4を設定する。そしてこの設定した送信間隔T3になる第1の送信間隔T1の数を第1の通信メッセージM1の受信回数とし、同じく設定した送信間隔T4になる第2の送信間隔T2の数を第2の通信メッセージM2の受信回数としてもよい。例えば、第1の送信間隔T1が20ms、第2の送信間隔T2が40msのとき、公倍数としての送信間隔T3,T4を200msと設定すれば、第1の通信メッセージM1の受信回数は10回、第2の通信メッセージM2の受信回数は5回となる。これにより、ネットワークの通信負荷が高くないとき、第1の通信メッセージM1の通信間隔ΔT3と、第2の通信メッセージM2の通信間隔ΔT4とをそれぞれの送信間隔の公倍数である送信間隔T3,T4と比較することができるようになる。このように、受信回数の調整などにより同じ送信間隔(200ms)となるようにすれば、通信間隔を検出するタイミングを近くすることができるようになるため、送信間隔が同じ2つの通信メッセージのときと同様に、検出タイミングを同期させることも可能である。また、2つの検出タイミングが同期すれば、その後の通信間隔の遅延判定やネットワークの通信負荷が高いことなどを判定する異常判断までに要する時間を短くなり、こうした判定や判断のリアルタイム性が向上するようにもなる。   Further, as shown in FIG. 6, even if the first transmission interval T1 for the first communication message M1 and the second transmission interval T2 for the second communication message M2 are different, Transmission intervals T3 and T4 are set as common multiples of the transmission interval T1 and the second transmission interval T2. The number of first transmission intervals T1 that will be the set transmission interval T3 is the number of times of reception of the first communication message M1, and the number of second transmission intervals T2 that are also the set transmission interval T4 is the second communication. It may be the number of times the message M2 is received. For example, when the first transmission interval T1 is 20 ms and the second transmission interval T2 is 40 ms, if the transmission intervals T3 and T4 as common multiples are set to 200 ms, the number of receptions of the first communication message M1 is 10 times. The number of times the second communication message M2 is received is five. Thereby, when the communication load of the network is not high, the communication interval ΔT3 of the first communication message M1 and the communication interval ΔT4 of the second communication message M2 are set to transmission intervals T3 and T4 which are common multiples of the respective transmission intervals. It becomes possible to compare. In this way, by setting the same transmission interval (200 ms) by adjusting the number of receptions, etc., the timing for detecting the communication interval can be made closer, so that two communication messages with the same transmission interval are used. Similarly, the detection timing can be synchronized. In addition, if the two detection timings are synchronized, the time required to make an abnormality determination for determining a delay in communication intervals thereafter and determining that the communication load on the network is high, etc., is shortened, and the real-time nature of such determination and determination is improved. It becomes like.

図1に示す、遅延判定部22は、通信間隔検出部21により検出された通信間隔(例えばΔT1,ΔT2)と対応する送信間隔(例えばT1,T2)とを比較することにより、通信間隔が対応する送信間隔よりも長くなり遅延していることを判定する。   The delay determination unit 22 illustrated in FIG. 1 compares the communication interval (for example, ΔT1, ΔT2) detected by the communication interval detection unit 21 with the corresponding transmission interval (for example, T1, T2), thereby supporting the communication interval. It is determined that the transmission interval is longer than the transmission interval to be delayed.

図7に示すように、遅延判定部22は、第1の通信メッセージM1の通信間隔ΔT1が検出される都度、第1の通信メッセージM1の送信の遅延を判定する(判定A)。また、遅延判定部22は、第2の通信メッセージM2の通信間隔ΔT2が検出される都度、第2の通信メッセージM2の送信の遅延を判定する(判定B)。例えば、第1の通信メッセージM1の通信間隔ΔT1と第2の通信メッセージM2の通信間隔ΔT2との間隔が略同じであるとき、判定間隔TC1は、通信間隔ΔT1,ΔT2と略同じになる。また、図7に示すように、通信間隔ΔT1の検出タイミングと通信間隔ΔT2の検出タイミングとが同期していれば、判定A、判定Bの結果がそれぞれ同時期に得られるようになる。   As illustrated in FIG. 7, the delay determination unit 22 determines the transmission delay of the first communication message M1 every time the communication interval ΔT1 of the first communication message M1 is detected (determination A). Further, the delay determination unit 22 determines the transmission delay of the second communication message M2 every time the communication interval ΔT2 of the second communication message M2 is detected (determination B). For example, when the communication interval ΔT1 of the first communication message M1 and the communication interval ΔT2 of the second communication message M2 are substantially the same, the determination interval TC1 is substantially the same as the communication intervals ΔT1 and ΔT2. Further, as shown in FIG. 7, if the detection timing of the communication interval ΔT1 and the detection timing of the communication interval ΔT2 are synchronized, the results of the determination A and the determination B can be obtained at the same time.

なお、判定Aや判定Bは、第1又は第2の通信メッセージM1,M2の受信の都度、判定するのではなく、第1又は第2の通信メッセージM1,M2を所定回数受信したことに基づいて遅延を判定するようにしていてもよい。例えば、受信した第1又は第2の通信メッセージM1,M2の通信間隔ΔT1,ΔT2が10回連続して送信間隔T1,T2よりも長いことに基づいて、第1又は第2の通信メッセージM1,M2の送信の遅延を判定するようにしていてもよい。これにより、一時的な変化を排除することができるなど、送信の遅延の判定を好適に行うことができるようになる。   The determination A and the determination B are not determined every time the first or second communication message M1 or M2 is received, but based on the fact that the first or second communication message M1 or M2 is received a predetermined number of times. The delay may be determined. For example, based on the fact that the communication intervals ΔT1, ΔT2 of the received first or second communication message M1, M2 are 10 times longer than the transmission intervals T1, T2, the first or second communication message M1, The transmission delay of M2 may be determined. As a result, it is possible to suitably determine transmission delay, such as eliminating temporary changes.

遅延判定部22は、第1の通信メッセージM1の通信間隔ΔT11〜ΔT15(図4,5参照)が検出される都度、検出された通信間隔ΔT11〜ΔT15と対応する送信間隔T1とを比較する。そして比較の結果、遅延判定部22は、検出された通信間隔ΔT11〜ΔT15が送信間隔T1より長くなり遅延が生じていること、又は長くはなく遅延は生じていないことを判定する。また、遅延判定部22は、図示しないが、第2の通信メッセージM2の通信間隔ΔT2が検出される都度、検出された通信間隔ΔT2と対応する送信間隔T2とを比較して、検出された通信間隔ΔT2が送信間隔T2より長くなり遅延が生じていること、又は長くはなく遅延は生じていないことを判定する。   Each time the communication interval ΔT11 to ΔT15 (see FIGS. 4 and 5) of the first communication message M1 is detected, the delay determination unit 22 compares the detected communication intervals ΔT11 to ΔT15 with the corresponding transmission interval T1. As a result of the comparison, the delay determination unit 22 determines that the detected communication intervals ΔT11 to ΔT15 are longer than the transmission interval T1 and a delay occurs, or that the delay is not long and no delay occurs. Although not shown, the delay determination unit 22 compares the detected communication interval ΔT2 with the corresponding transmission interval T2 each time the communication interval ΔT2 of the second communication message M2 is detected, and detects the detected communication. It is determined that the interval ΔT2 is longer than the transmission interval T2 and a delay occurs, or that the interval ΔT2 is not long and no delay occurs.

図4に示すように、例えば、通信用バス15におけるネットワークの通信負荷が高くない(通常の)とき、遅延判定部22は、通信間隔ΔT11〜ΔT15は送信間隔T1と略同じと判定し、通信間隔ΔT11〜ΔT15には遅延が生じていないと判定する。つまり、第1の通信メッセージM1には通信の遅延は生じていないと判定する。   As shown in FIG. 4, for example, when the communication load of the network in the communication bus 15 is not high (normal), the delay determination unit 22 determines that the communication intervals ΔT11 to ΔT15 are substantially the same as the transmission interval T1, and performs communication. It is determined that there is no delay in the intervals ΔT11 to ΔT15. That is, it is determined that there is no communication delay in the first communication message M1.

図5に示すように、CANプロトコルでは、送信が遅延した第1の通信メッセージM1の次に送信される第1の通信メッセージM1の通信間隔ΔT12は設定された送信間隔T1よりも短くなる可能性を有している。つまり、ネットワークの通信負荷が高くなったことを要因として通信間隔ΔT1の長さにゆらぎが生じるおそれがある。そこで、遅延した通信間隔ΔT11の通信メッセージの次に送信されることによって間隔が短くなるおそれのある通信メッセージの通信間隔ΔT12を、通信間隔が長く送信が遅延していることの判定に用いないようにしてもよい。これにより、ネットワークの通信負荷が高くなったことにより通信間隔に生じるゆらぎが通信の遅延の判定へ及ぼす影響を小さくすることもできる。つまり、通信メッセージの通信間隔が長くなり通信に遅延が生じたことの検出がより適切に行われることが期待されるようになる。   As shown in FIG. 5, in the CAN protocol, the communication interval ΔT12 of the first communication message M1 transmitted next to the first communication message M1 delayed in transmission may be shorter than the set transmission interval T1. have. That is, the length of the communication interval ΔT1 may fluctuate due to an increase in the communication load on the network. Therefore, the communication interval ΔT12 of the communication message that may be shortened by being transmitted next to the communication message having the delayed communication interval ΔT11 is not used for the determination that the communication interval is long and the transmission is delayed. It may be. Thereby, the influence which the fluctuation | variation which arises in a communication interval by having increased the communication load of the network has on the determination of a communication delay can also be made small. That is, it is expected that the communication interval of the communication message becomes long and the detection of the occurrence of the delay in communication is performed more appropriately.

つまり、例えば、通信用バス15におけるネットワークの通信負荷が高いとき、遅延判定部22は、2つの通信間隔ΔT11,ΔT14は送信間隔T1より長く遅延が生じていると判定し、3つの通信間隔ΔT12,ΔT13,ΔT15は送信間隔T1より長くなく遅延は生じていないと判定する。このような通信間隔の変動は、ネットワークの通信負荷が高いことを要因としているため、遅延判定部22は、送信間隔T1より長い2つの通信間隔ΔT11,ΔT14に基づいて第1の通信メッセージM1には通信の遅延が生じていると判定する。   That is, for example, when the communication load of the network in the communication bus 15 is high, the delay determination unit 22 determines that the two communication intervals ΔT11 and ΔT14 are longer than the transmission interval T1, and the three communication intervals ΔT12. , ΔT13, ΔT15 are not longer than the transmission interval T1, and it is determined that no delay occurs. Since such a change in the communication interval is caused by a high communication load on the network, the delay determining unit 22 changes the first communication message M1 based on the two communication intervals ΔT11 and ΔT14 that are longer than the transmission interval T1. Determines that a communication delay has occurred.

異常判断部23は、遅延判定部22の遅延判定の結果に基づいて、通信負荷が高くなったことなどを判断する。異常判断部23は、遅延判定部22による第1の通信メッセージM1の通信に遅延が生じていることの判定結果と、第2の通信メッセージM2の通信に遅延が生じていることの判定結果とに基づいてネットワークについての異常判断を行う。異常判断部23は、ネットワークの異常判断により、ネットワークの通信負荷が通常であること、ネットワークの通信負荷が高いこと、又は一つの通信メッセージの送信に異常が生じていることを判断する。   The abnormality determination unit 23 determines that the communication load has increased based on the delay determination result of the delay determination unit 22. The abnormality determination unit 23 determines that there is a delay in the communication of the first communication message M1 by the delay determination unit 22 and the determination result that the communication of the second communication message M2 has a delay. Based on the above, the network abnormality is judged. The abnormality determination unit 23 determines that the network communication load is normal, the network communication load is high, or that there is an abnormality in the transmission of one communication message based on the network abnormality determination.

図7に示すように、異常判断部23は、第1の通信メッセージM1の遅延を判定する判定Aと、第2の通信メッセージM2の遅延を判定する判定Bとが行われることに続いて、ネットワークに異常が発生しているかどうかの判断である異常判断を行う。よって、異常判断部23は、判定間隔TC1ごとに、判定Aの終了と判定Bの終了とに続いてネットワークの異常を判断する。   As shown in FIG. 7, the abnormality determination unit 23 performs the determination A for determining the delay of the first communication message M1 and the determination B for determining the delay of the second communication message M2, An abnormality determination is performed to determine whether an abnormality has occurred in the network. Therefore, the abnormality determination unit 23 determines a network abnormality following the end of determination A and the end of determination B at each determination interval TC1.

詳述すると異常判断部23は、第1の通信メッセージM1の通信が遅延していないと判定されているとともに、第2の通信メッセージM2の通信が遅延していないと判定されているとき、ネットワークの通信負荷は通常であると判断する。   More specifically, the abnormality determining unit 23 determines that the communication of the first communication message M1 is not delayed and the network of the second communication message M2 is determined not to be delayed. It is determined that the communication load is normal.

また異常判断部23は、第1の通信メッセージM1の通信が遅延していると判定されているとともに、第2の通信メッセージM2の通信が遅延していると判定されているとき、ネットワークの通信負荷は高いと判断する。   The abnormality determining unit 23 determines that the communication of the first communication message M1 is delayed and determines that the communication of the second communication message M2 is delayed. Judge that the load is high.

さらに、異常判断部23は、第1の通信メッセージM1の通信が遅延していると判定されている一方、第2の通信メッセージM2の通信が遅延していないと判定されているとき、第1の通信メッセージM1の送信に何らかの異常が生じていると判断する。同様に、異常判断部23は、第2の通信メッセージM2の通信が遅延していると判定されている一方、第1の通信メッセージM1の通信が遅延していないと判定されているとき、第2の通信メッセージM2の送信に何らかの異常が生じていると判断する。このとき、第1の通信メッセージM1や第2の通信メッセージM2に生じている送信の異常の原因としては、例えば、通信配線の接続の異常や、処理プログラムの異常や、情報処理部やCANコントローラを含むECUの異常や、ECUに情報を伝えるセンサ類の異常などが挙げられる。いずれにしても、第1の通信メッセージM1や第2の通信メッセージM2の通信間隔ΔT1,ΔT2より検出される通信の遅延の有無に基づいて、当該通信メッセージを送信するECUに関連して異常が発生していることを検出することができる。   Furthermore, when it is determined that the communication of the first communication message M1 is delayed while the abnormality determination unit 23 determines that the communication of the second communication message M2 is not delayed, It is determined that some abnormality has occurred in the transmission of the communication message M1. Similarly, when it is determined that the communication of the second communication message M2 is delayed, the abnormality determination unit 23 determines that the communication of the first communication message M1 is not delayed. It is determined that some abnormality has occurred in transmission of the communication message M2 of No. 2. At this time, the cause of the transmission abnormality occurring in the first communication message M1 or the second communication message M2 is, for example, an abnormality in the connection of the communication wiring, an abnormality in the processing program, an information processing unit or a CAN controller. And abnormalities in the sensors that transmit information to the ECU. In any case, based on the presence or absence of communication delay detected from the communication intervals ΔT1 and ΔT2 of the first communication message M1 and the second communication message M2, there is an abnormality related to the ECU that transmits the communication message. The occurrence can be detected.

ログ取得部24は、第1の通信メッセージM1の検出された通信間隔ΔT1や、第2の通信メッセージM2の検出された通信間隔ΔT2などを記憶部25に記憶させる。また、ログ取得部24は、異常判断部23による異常の有無の判断結果や、異常の原因についての判断結果などについても記憶部25に記憶させる。   The log acquisition unit 24 causes the storage unit 25 to store the communication interval ΔT1 at which the first communication message M1 is detected, the communication interval ΔT2 at which the second communication message M2 is detected, and the like. The log acquisition unit 24 also stores in the storage unit 25 the determination result of the presence / absence of abnormality by the abnormality determination unit 23, the determination result of the cause of the abnormality, and the like.

記憶部25は、公知の記憶装置に設けられている記憶領域の全部もしくは一部からなり、その記憶領域にはログ取得部24により取得されたログデータが記憶されている。記憶部25は、記憶されたログデータを通信用バス15を介した通信や、その他の通信経路を通じて外部へ出力することができる。これにより、ネットワークの通信負荷の状況をログデータの解析等を通じて後から把握できるようになっている。   The storage unit 25 includes all or a part of a storage area provided in a known storage device, and the log data acquired by the log acquisition unit 24 is stored in the storage area. The storage unit 25 can output the stored log data to the outside through communication via the communication bus 15 or other communication paths. As a result, the communication load status of the network can be grasped later through analysis of log data or the like.

作用を説明する。
図2や図3に示すように、遅延判定部22は、通信間隔検出部21により検出された第1の通信メッセージM1の通信間隔ΔT1を対応する送信間隔T1と比較し、通信間隔ΔT1が送信間隔T1より長く遅延しているか否かを判定する。また同様に、遅延判定部22は、通信間隔検出部21により検出された第2の通信メッセージM2の通信間隔ΔT2を対応する送信間隔T2と比較し、通信間隔ΔT2が送信間隔T2より長く遅延しているか否かを判定する。
The operation will be described.
As shown in FIGS. 2 and 3, the delay determination unit 22 compares the communication interval ΔT1 of the first communication message M1 detected by the communication interval detection unit 21 with the corresponding transmission interval T1, and the communication interval ΔT1 is transmitted. It is determined whether or not the delay is longer than the interval T1. Similarly, the delay determination unit 22 compares the communication interval ΔT2 of the second communication message M2 detected by the communication interval detection unit 21 with the corresponding transmission interval T2, and the communication interval ΔT2 is delayed longer than the transmission interval T2. It is determined whether or not.

図2に示される場合、遅延判定部22は、通信間隔ΔT1は送信間隔T1より長くなく略同じであり、遅延していないと判定するとともに、通信間隔ΔT2は送信間隔T2より長くなく略同じであり、遅延していないと判定する。そして異常判断部23は、遅延判定部22による通信間隔ΔT1は遅延していないとの判定結果と通信間隔ΔT2も遅延していないとの判定結果とに基づいて、ネットワークの通信負荷は高くなく、通信負荷は通常であると判断する。   In the case shown in FIG. 2, the delay determination unit 22 determines that the communication interval ΔT1 is not longer than the transmission interval T1 and is substantially the same, and is not delayed, and the communication interval ΔT2 is not longer than the transmission interval T2 and substantially the same. It is determined that there is no delay. Based on the determination result that the communication interval ΔT1 is not delayed by the delay determination unit 22 and the determination result that the communication interval ΔT2 is not delayed, the abnormality determination unit 23 does not have a high communication load on the network. It is determined that the communication load is normal.

また、図3に示される場合、遅延判定部22は、通信間隔ΔT1は送信間隔T1より長く遅延していると判定するとともに、通信間隔ΔT2は送信間隔T2より長く遅延していると判定する。そして異常判断部23は、遅延判定部22による通信間隔ΔT1が遅延しているとの判定結果と通信間隔ΔT2も遅延しているとの判定結果とに基づいて、ネットワークの通信負荷は高いと判断する。   In the case shown in FIG. 3, the delay determination unit 22 determines that the communication interval ΔT1 is delayed longer than the transmission interval T1, and determines that the communication interval ΔT2 is longer than the transmission interval T2. Then, the abnormality determination unit 23 determines that the communication load of the network is high based on the determination result that the communication interval ΔT1 is delayed by the delay determination unit 22 and the determination result that the communication interval ΔT2 is also delayed. To do.

さらに、異常判断部23は、遅延判定部22による通信間隔ΔT1が遅延しているとの判定結果と通信間隔ΔT2は遅延していないとの判定結果とに基づいて、第1の通信メッセージM1の送信に異常が生じていると判断する。これにより、第1の通信メッセージM1を送信する第1のECU10に異常が生じていることが推測される。   Furthermore, the abnormality determination unit 23 determines the first communication message M1 based on the determination result that the communication interval ΔT1 is delayed by the delay determination unit 22 and the determination result that the communication interval ΔT2 is not delayed. Judge that there is an error in transmission. Thereby, it is estimated that abnormality has arisen in 1st ECU10 which transmits the 1st communication message M1.

また、異常判断部23は、遅延判定部22による通信間隔ΔT1は遅延していないとの判定結果と通信間隔ΔT2が遅延しているとの判定結果とに基づいて、第2の通信メッセージM2の送信に異常が生じていると判断する。これによれば、第2の通信メッセージM2を送信する第4のECU13に異常が生じていることが推測される。   In addition, the abnormality determination unit 23 determines the second communication message M2 based on the determination result that the communication interval ΔT1 by the delay determination unit 22 is not delayed and the determination result that the communication interval ΔT2 is delayed. Judge that there is an error in transmission. According to this, it is presumed that an abnormality has occurred in the fourth ECU 13 that transmits the second communication message M2.

以上説明したように、本実施形態に係るネットワーク監視装置は、以下に列記する効果を有する。
(1)ネットワークの通信負荷が高くなったことの判断を、CANプロトコルに基づく通信メッセージに通信メッセージの種類毎に別々の値として付与されるメッセージIDの異なる2つの第1及び第2の通信メッセージM1,M2の通信間隔ΔT1,ΔT2の検出に基づいて行うことができる。よって、ネットワークに流れる全ての通信メッセージを監視して検出する場合に比べ、メッセージIDの異なる2つの第1及び第2の通信メッセージM1,M2を監視して検出することでネットワークの通信負荷が高くなったことの検出に要する処理負荷を少なくすることができる。これにより、ネットワークの通信負荷の監視に要する処理負荷の増加が抑えられるようになる。
As described above, the network monitoring apparatus according to the present embodiment has the effects listed below.
(1) Two first and second communication messages having different message IDs, which are given to the communication message based on the CAN protocol as different values for each type of communication message, as a determination that the communication load of the network has increased This can be performed based on detection of communication intervals ΔT1 and ΔT2 between M1 and M2. Therefore, compared with the case where all communication messages flowing through the network are monitored and detected, the network communication load is increased by monitoring and detecting the two first and second communication messages M1, M2 having different message IDs. It is possible to reduce the processing load required to detect the occurrence. As a result, an increase in processing load required for monitoring the communication load of the network can be suppressed.

なお、一つのメッセージIDの通信メッセージのみに基づいてネットワークの通信負荷を監視しようとすると、通信メッセージの送信に異常が生じている場合とネットワークの通信負荷の増加している場合とを区別できないおそれがある。そこで、メッセージIDの異なる2つの第1及び第2の通信メッセージM1,M2の通信間隔ΔT1,ΔT2を監視する。これにより、ネットワークの通信負荷が増加している場合と通信メッセージの送信に異常が生じている場合とを区別することができるようになり、ネットワークの通信負荷の増加を適切に判断することができるようになる。しかも、2つの第1及び第2の通信メッセージM1,M2の通信間隔ΔT1,ΔT2の両方が遅延するときはネットワークの通信負荷が増加したと判断し、いずれか一方の通信間隔のみが遅延するときは、その通信メッセージの送信に異常が生じたと推定することができるようにもなる。これにより、通信ネットワークの維持管理が好適に行われるようにもなる。   Note that if the network communication load is monitored based only on a communication message with one message ID, there is a risk that it may not be possible to distinguish between cases where there is an abnormality in transmission of the communication message and cases where the network communication load is increasing. There is. Therefore, the communication intervals ΔT1 and ΔT2 of the two first and second communication messages M1 and M2 having different message IDs are monitored. As a result, it is possible to distinguish between a case where the communication load of the network is increasing and a case where an abnormality occurs in the transmission of the communication message, and an increase in the communication load of the network can be appropriately determined. It becomes like this. Moreover, when both of the communication intervals ΔT1 and ΔT2 of the two first and second communication messages M1 and M2 are delayed, it is determined that the communication load of the network has increased, and only one of the communication intervals is delayed. It is possible to estimate that an abnormality has occurred in the transmission of the communication message. As a result, the maintenance management of the communication network is also suitably performed.

(2)少なくとも第1のECU10と第4のECU13との2つのECUからそれぞれ送信される第1及び第2の通信メッセージM1,M2がともに通信間隔ΔT1,ΔT2が遅延することを監視する。これにより、ネットワークの通信負荷が高いことが原因ではなくECUの通信メッセージの送信異常を原因とする場合などを除外して、ネットワークの通信負荷が高いことを判断することができるようになる。つまり、ネットワークの通信負荷が高いことをより適切に判断することができるようになる。   (2) The first and second communication messages M1 and M2 respectively transmitted from at least two ECUs, ie, the first ECU 10 and the fourth ECU 13, monitor whether the communication intervals ΔT1 and ΔT2 are delayed. As a result, it is possible to determine that the communication load of the network is high, excluding cases caused by abnormal transmission of the communication message of the ECU, not due to the high communication load of the network. That is, it becomes possible to more appropriately determine that the communication load of the network is high.

また、いずれか一方の通信メッセージのみ通信間隔が長い場合、その通信メッセージを送信しているECUが特定されるため、異常の生じたECUを検知することができ、ネットワークを構成する送信装置の管理を好適に行うことができるようになる。   In addition, when only one of the communication messages has a long communication interval, the ECU that transmits the communication message is specified. Therefore, the ECU in which an abnormality has occurred can be detected, and the transmission apparatus that configures the network is managed. Can be suitably performed.

(3)通信間隔検出部21に検出される通信間隔ΔT1,ΔT2が一定周期で送信される第1及び第2の通信メッセージM1,M2の通信間隔であれば、対応する送信間隔T1,T2との比較が容易になるなど、通信メッセージの通信間隔が長くなっていることを検出する処理が容易になる。   (3) If the communication intervals ΔT1 and ΔT2 detected by the communication interval detector 21 are communication intervals of the first and second communication messages M1 and M2 transmitted at a constant period, the corresponding transmission intervals T1 and T2 Thus, the process of detecting that the communication interval of communication messages is long becomes easy.

(4)メッセージIDが異なる第1及び第2の通信メッセージM1,M2に設定されている各送信間隔T1,T2が同じであれば、ネットワークの通信負荷が高くなったとき、第1及び第2の通信メッセージの通信間隔ΔT1,ΔT2は同様に長くなる可能性が高い。このように、同じ送信間隔T1,T2の第1及び第2の通信メッセージM1,M2を用いることによって、ネットワークの通信負荷が高くなったことの判断が適切にできるようになり、しかも、通信メッセージの送信に生じた異常も適切に判断できるようになる。   (4) If the transmission intervals T1 and T2 set in the first and second communication messages M1 and M2 having different message IDs are the same, the first and second when the communication load of the network increases. Similarly, the communication intervals ΔT1 and ΔT2 of the communication messages are likely to be long. As described above, by using the first and second communication messages M1 and M2 having the same transmission interval T1 and T2, it becomes possible to appropriately determine that the communication load of the network has increased, and the communication message. It is also possible to appropriately determine an abnormality that has occurred in the transmission of.

(5)CANプロトコルでは、設定された送信間隔よりも遅延した通信メッセージの次に送信される通信メッセージの通信間隔が設定された送信間隔よりも短くなる可能性を有している。そこで、通信間隔ΔT11が遅延した第1の通信メッセージM1の次に送信されることによって通信間隔が短くなるおそれのある第1の通信メッセージM1の通信間隔ΔT12を、遅延の判定に用いないようにする。これにより、ネットワークの通信負荷が高くなったことを要因として短くなった通信間隔が遅延の判定に及ぼす影響を小さくすることができるため、通信メッセージの遅延の判定が適切に行われるようになる。   (5) In the CAN protocol, there is a possibility that the communication interval of the communication message transmitted next to the communication message delayed from the set transmission interval is shorter than the set transmission interval. Therefore, the communication interval ΔT12 of the first communication message M1, which may be shortened by being transmitted after the first communication message M1 with the communication interval ΔT11 delayed, is not used for the determination of the delay. To do. As a result, the influence of the communication interval shortened due to the increase in the communication load on the network on the determination of the delay can be reduced, so that the determination of the delay of the communication message is appropriately performed.

(6)メッセージIDが異なる2つの第1及び第2の通信メッセージの通信間隔ΔT1,ΔT2を検出する間隔が同じ間隔となるため、それら2つの検出された通信間隔ΔT1,ΔT2の遅延の判定を同期させることができるようになる。つまり、同期された遅延の判定によってネットワークの通信負荷が高いことなどの判断が行えるようになる。特に、第1及び第2の通信メッセージM1,M2の通信間隔ΔT1,ΔT2を検出するタイミングを近づけるようにすれば、同期性が高まり、ネットワークの通信負荷が高いことなどの判断の応答性を高くすることもできる。これにより、ネットワークの通信負荷が高いことなどの異常判断が好適に行われるようになる。   (6) Since the intervals for detecting the communication intervals ΔT1, ΔT2 of two first and second communication messages having different message IDs are the same interval, the delay of the two detected communication intervals ΔT1, ΔT2 is determined. It can be synchronized. That is, it is possible to determine that the communication load on the network is high by determining the synchronized delay. In particular, if the timings for detecting the communication intervals ΔT1 and ΔT2 of the first and second communication messages M1 and M2 are made closer, the synchronization will be improved and the responsiveness of judgment such as high communication load on the network will be increased. You can also As a result, an abnormality determination such as a high communication load on the network is suitably performed.

(7)遅延判定部22は通信間隔ΔT1,ΔT2を検出する間隔に合わせた判定間隔TC1で遅延の有無を判定することによって、通信間隔ΔT1,ΔT2を検出してから短時間のうちに通信負荷が高いことなどを判断できるようになる。つまり、通信負荷が高いことなどを高い応答性で判断できるようになる。これにより、通信負荷が高くなることに対して素早く対応できるようになる。   (7) The delay determination unit 22 determines the presence / absence of a delay at a determination interval TC1 that matches the interval at which the communication intervals ΔT1 and ΔT2 are detected, thereby detecting the communication load within a short time after detecting the communication intervals ΔT1 and ΔT2. Will be able to judge that is high. That is, it is possible to determine with high responsiveness that the communication load is high. Thereby, it becomes possible to quickly cope with an increase in communication load.

(8)検出する通信間隔を通信メッセージが複数回検出されたときに要する時間とすることができる。設定されている送信間隔の短い通信メッセージともなると、その送信間隔の都度、通信間隔を検出することになり処理負荷も大きくなる。そこで、通信メッセージが複数回検出されたときに通信間隔を検出するようにして検出間隔を延ばすことで、検出処理や判定処理や判断処理などに要する処理負荷を抑えることができるようになる。   (8) The communication interval to be detected can be the time required when a communication message is detected a plurality of times. When a communication message with a short transmission interval is set, the communication interval is detected at each transmission interval, and the processing load increases. Therefore, by extending the detection interval by detecting the communication interval when a communication message is detected a plurality of times, the processing load required for detection processing, determination processing, determination processing, and the like can be suppressed.

(その他の実施形態)
なお上記実施形態は、以下の態様で実施することもできる。
・上記実施形態では、ログ取得部24は、第1の通信メッセージM1の検出された通信間隔ΔT1や、第2の通信メッセージM2の検出された通信間隔ΔT2や、異常判断部23による異常の有無の判断結果や、異常の原因についての判断結果について記憶部25に記憶させる場合について例示した。しかしこれに限らず、ログ取得部は、通信間隔、異常判断部による異常の有無の判断結果及び異常の原因についての判断結果の少なくとも1つ以上を記憶部に記憶させればよい。また、ログ取得部は、GPS等から得られる位置情報や日時情報など各種情報を併せ、記憶部に記憶させてもよい。これにより、ネットワーク監視装置の適用範囲の拡大や、ネットワーク管理に関する利便性を向上させることができるようになる。
(Other embodiments)
In addition, the said embodiment can also be implemented with the following aspects.
In the above embodiment, the log acquisition unit 24 detects the communication interval ΔT1 where the first communication message M1 is detected, the communication interval ΔT2 where the second communication message M2 is detected, and whether there is an abnormality by the abnormality determination unit 23 The case where the storage unit 25 stores the determination result and the determination result regarding the cause of the abnormality is illustrated. However, the present invention is not limited to this, and the log acquisition unit may store at least one of the communication interval, the determination result of the presence / absence of abnormality by the abnormality determination unit, and the determination result of the cause of the abnormality in the storage unit. Further, the log acquisition unit may store various information such as position information and date / time information obtained from GPS or the like in the storage unit. As a result, it is possible to expand the application range of the network monitoring device and improve the convenience of network management.

・上記実施形態では、ログ取得部24は、異常判断部23による異常の有無の判断結果や、異常の原因についての判断結果について記憶部25に記憶させる場合について例示した。しかしこれに限らず、ログ取得部は、異常判断部によって判断された異常有りや異常なしの回数や、判断された異常の原因の回数などを記憶させてもよい。例えば、ログ取得部は、リセットする条件が検出されるまで異常等の回数を増加させるように各回数を管理してもよい。このようにすれば、記憶部に記憶させる各種情報の量を少なく抑えることができるようになる。   In the above-described embodiment, the log acquisition unit 24 has exemplified the case where the abnormality determination unit 23 stores the determination result of the presence / absence of abnormality and the determination result of the cause of the abnormality in the storage unit 25. However, the present invention is not limited to this, and the log acquisition unit may store the number of times there is an abnormality or no abnormality determined by the abnormality determination unit, the number of causes of the determined abnormality, and the like. For example, the log acquisition unit may manage each number of times so as to increase the number of times of abnormality or the like until a condition for resetting is detected. In this way, it is possible to reduce the amount of various types of information stored in the storage unit.

・上記実施形態では、ログ取得部24は、各種情報を記憶部25に記憶させる場合について例示した。しかしこれに限らず、ログ取得部はすぐに活用する必要のある情報を情報処理部のRAMなどに保持させるようにしていてもよい。これにより、異常判断に関する侶理のリアルタイム性を高めることができるようになる。   -In above-mentioned embodiment, log acquisition part 24 illustrated about the case where various information are memorize | stored in the memory | storage part 25. FIG. However, the present invention is not limited to this, and the log acquisition unit may store information that needs to be used immediately in the RAM of the information processing unit. As a result, the real-time property of the rationale regarding abnormality determination can be improved.

・上記実施形態では、遅延判定部22は、第1の通信メッセージM1の通信間隔ΔT11〜ΔT15が検出される都度、その検出された通信間隔ΔT11〜ΔT15に基づいて第1の通信メッセージの送信に遅延が生じているかどうかを判定する場合について例示した。しかしこれに限らず、遅延判定部は、第1の通信メッセージの通信メッセージを複数回受信したときに要する通信間隔に基づいて送信に遅延が生じているかどうかを判定してもよい。例えば、遅延判定部は、連続して所定回数(50回など)通信間隔が送信間隔よりも長いことを条件に通信に遅延が生じていると判定してもよい。また、遅延判定部は、所定回数(50回など)の通信間隔と送信間隔との比較によって通信間隔が長いことが所定の判断回数(40回など)以上、つまり所定割合以上であることを条件に送信に遅延が生じていると判定してもよい。例えば、図7に示す判定Aや判定Bは、このような条件によって通信メッセージの送信に遅延が生じていることを判定してもよい。   In the above embodiment, the delay determination unit 22 transmits the first communication message based on the detected communication intervals ΔT11 to ΔT15 each time the communication intervals ΔT11 to ΔT15 of the first communication message M1 are detected. The case where it is determined whether or not a delay has occurred is illustrated. However, the present invention is not limited to this, and the delay determination unit may determine whether or not there is a delay in transmission based on the communication interval required when the communication message of the first communication message is received a plurality of times. For example, the delay determination unit may determine that there is a delay in communication on the condition that the communication interval is continuously longer than the transmission interval by a predetermined number of times (such as 50 times). In addition, the delay determination unit is provided on the condition that the communication interval is longer than the predetermined number of determinations (such as 40 times), that is, a predetermined ratio or more, by comparing the communication interval of the predetermined number (such as 50 times) and the transmission interval. It may be determined that there is a delay in transmission. For example, the determination A and the determination B illustrated in FIG. 7 may determine that there is a delay in transmission of the communication message due to such a condition.

これにより、ネットワークの通信負荷の状況によって遅延判定に関するレベルが変更されるようになるため、遅延判定をより好適に行うことができるようになる。
・上述のような構成の場合、通信間隔が長いと判定されたことに基づいて、例えば50回の所定回数を45回に減らしたり、40回の判断回数を35回に減らしたり、所定の割合を減らしたりしてもよい。これにより異常検知されるレベルを通信メッセージの通信間隔に生じる遅延の頻度が増加することに応じて高くすることができるようになり、ネットワークの通信負荷の検出に係る管理が好適になされるようになる。
As a result, the level relating to the delay determination is changed depending on the state of the communication load of the network, so that the delay determination can be performed more suitably.
In the case of the above configuration, based on the determination that the communication interval is long, for example, the predetermined number of 50 times is reduced to 45 times, the number of 40 times of determination is reduced to 35 times, or a predetermined ratio May be reduced. As a result, the level at which an abnormality is detected can be increased in accordance with an increase in the frequency of delay occurring in the communication interval of communication messages, and management related to detection of communication load on the network can be suitably performed. Become.

・上記実施形態では、第1の通信メッセージM1や第2の通信メッセージM2の送信に応じて各通信間隔ΔT1,ΔT2を検出する場合について例示した。しかしこれに限らず、まずは、第1の通信メッセージの通信間隔のみを検出し、第1の通信メッセージの通信間隔が長くなったこと(遅延したこと)を条件に、第2の通信メッセージの通信間隔を検出するように切り換えてもよい。こうした切換の判断には、ログデータを使うこともできる。   In the above embodiment, the case where each communication interval ΔT1, ΔT2 is detected in response to the transmission of the first communication message M1 or the second communication message M2 has been illustrated. However, the present invention is not limited to this. First, only the communication interval of the first communication message is detected, and the communication of the second communication message is performed on the condition that the communication interval of the first communication message is long (delayed). You may switch so that an interval may be detected. Log data can also be used to determine such switching.

このとき異常判断部は、先の遅延判定(判定A)とその次に行われる遅延判定(判定B)とに基づいて異常判断をすればよい。例えば、まず、メッセージID「0x200」の通信間隔のみを検出し、この通信メッセージの通信に遅延が生じていることが判定されてから、次に、メッセージID「0x300」の通信間隔のみを検出し、この通信メッセージの送信に遅延が生じているか否かを判定してもよい。そして、異常判断部は、メッセージID「0x300」の通信メッセージの送信に遅延が生じていると判定されたとき、通信負荷が高くなっていると判断し、メッセージID「0x300」の通信メッセージの送信に遅延が生じていないと判定されたときメッセージID「0x200」の送信に異常が生じていると判断するようにしてもよい。なお、メッセージID「0x300」の判定が終了した後は、遅延判定の対象のメッセージIDを「0x200」に戻してもよい。   At this time, the abnormality determination unit may make an abnormality determination based on the previous delay determination (determination A) and the delay determination performed next (determination B). For example, first, only the communication interval of the message ID “0x200” is detected, and after it is determined that there is a delay in the communication of this communication message, then only the communication interval of the message ID “0x300” is detected. It may be determined whether or not there is a delay in the transmission of the communication message. Then, when it is determined that there is a delay in the transmission of the communication message with the message ID “0x300”, the abnormality determination unit determines that the communication load is high, and transmits the communication message with the message ID “0x300”. When it is determined that there is no delay, it may be determined that there is an abnormality in transmission of the message ID “0x200”. Note that after the determination of the message ID “0x300” is completed, the message ID subject to delay determination may be returned to “0x200”.

すなわち、いずれか一方の通信間隔ΔT1,ΔT2が遅延していることが判定されてから他方の通信間隔ΔT1,ΔT2の遅延の有無を判定するようにすることで、通信間隔検出や遅延判定、異常判断にかかる処理負荷の軽減が図られるようになる。これにより、ネットワーク監視装置の設計自由度や適用範囲の拡大が図られるようになる。   That is, by determining whether or not there is a delay in the other communication interval ΔT1, ΔT2 after it is determined that one of the communication intervals ΔT1, ΔT2 is delayed, it is possible to detect the communication interval, determine the delay, The processing load related to the determination can be reduced. As a result, the design flexibility and application range of the network monitoring device can be expanded.

・上記実施形態では、異常判断部23は、判定Aと判定Bとが行われることに続いて、ネットワークの異常判断を行う場合について例示した。しかしこれに限らず、異常判断部は、複数の判定Aと複数の判定Bとに基づいて異常判断をしてもよい。例えば、判定A又は判定Bが、連続して所定回数(10回など)以上、送信に遅延が生じていることを判定したとき、異常判断をしてもよい。   In the above embodiment, the case where the abnormality determination unit 23 determines the abnormality of the network following the determination A and the determination B is illustrated. However, the present invention is not limited thereto, and the abnormality determination unit may make an abnormality determination based on a plurality of determinations A and a plurality of determinations B. For example, when the determination A or the determination B determines that a delay has occurred in transmission continuously for a predetermined number of times (such as 10 times) or more, an abnormality determination may be made.

これにより、ネットワークの通信負荷の状況によって異常判断に関するレベルが変更されるようになるため、異常判断をより好適に行うことができるようになる。
・上記実施形態では、異常判断部23は、判定Aと判定Bとが行われることに続いて、ネットワークの異常判断を行う場合について例示した。しかしこれに限らず、判定Aが終了したことを確認した後に、判定Bが終了したことを確認してから異常判断を行うようにしてもよい。
As a result, the level relating to the abnormality determination is changed depending on the communication load status of the network, so that the abnormality determination can be performed more suitably.
In the above embodiment, the case where the abnormality determination unit 23 determines the abnormality of the network following the determination A and the determination B is illustrated. However, the present invention is not limited to this, and after confirming that the determination A has been completed, the abnormality determination may be performed after confirming that the determination B has been completed.

図8に示すように、例えば、異常判断部23は、異常判断の処理において、定期的に通信メッセージM1の判定処理である判定Aが終了したかどうかを確認するとともに、通信メッセージM2の判定処理である判定Bが終了したかどうかを確認する。そして、判定Aも判定Bも終了していないとき、異常判断部23は、異常判断を行わず、引き続いて判定Aの終了確認及び判定Bの終了確認を行う。一方、異常判断部23は、判定Aの終了を確認したときは終了フラグを立てて、その後は判定Bの終了確認を繰り返し行い、判定Bの終了が確認されると、判定Aの判定結果及び判定Bの判定結果に基づいてネットワークにおける異常判断を行うようにするようにしてもよい。逆に、異常判断部23は、判定Bの終了を確認したときは終了フラグを立てて、その後は判定Aの終了確認を繰り返し行うようにしてもよい。   As shown in FIG. 8, for example, the abnormality determination unit 23 periodically checks whether or not the determination A, which is the determination process for the communication message M1, is completed in the abnormality determination process, and determines the communication message M2. It is confirmed whether or not the decision B is finished. Then, when neither the determination A nor the determination B is completed, the abnormality determination unit 23 does not perform the abnormality determination, and subsequently performs the end confirmation of the determination A and the end confirmation of the determination B. On the other hand, the abnormality determination unit 23 sets an end flag when confirming the end of the determination A, and thereafter repeatedly confirms the end of the determination B. When the end of the determination B is confirmed, the determination result of the determination A and An abnormality determination in the network may be performed based on the determination result of determination B. Conversely, the abnormality determination unit 23 may set an end flag when confirming the end of the determination B, and thereafter repeatedly confirm the end of the determination A.

これにより、判定Aと判定Bとの同期がずれているときや、判定Aと判定Bとの判定間隔が異なるときでも、判定タイミングの異なる2つの判定Aと判定Bとに基づいてネットワークに関する異常判断を適切に行うことができるようになる。   Thereby, even when the determination A and the determination B are out of synchronization, or even when the determination interval between the determination A and the determination B is different, an abnormality related to the network based on the two determinations A and B with different determination timings. Judgment can be made appropriately.

・上記実施形態では、判定Aと判定Bとが同期している(略同時期に判定が終了している)場合について例示した。しかしながら、同期がずれるおそれもある。そのため、異常判断部は、判定Aと判定Bとが同期して終了したとき異常を判断するのみならず、上述のように判定Aが終了したことを確認した後に判定Bが終了したことを確認してから異常判断を行うようにする処理を併せて備えるようにしてもよい。これにより、遅延判定の同期にずれが生じるような場合でも異常判断が適切に行えるようになる。   In the above embodiment, the case where the determination A and the determination B are synchronized (determination is completed at substantially the same time) is illustrated. However, there is a risk that synchronization will be lost. Therefore, the abnormality determination unit not only determines an abnormality when determination A and determination B end in synchronization, but also confirms that determination B has ended after confirming that determination A has ended as described above. Then, a process for making an abnormality determination may also be provided. As a result, even when there is a deviation in the synchronization of the delay determination, the abnormality determination can be performed appropriately.

・上記実施形態では、第1の通信メッセージM1は第1のECU10から送信され、第2の通信メッセージM2は第4のECU13から送信される場合について例示した。しかしこれに限らず、2つの通信メッセージは、それぞれ第1〜第5のECUのどのECUから送信されてもよい。つまり監視ECUは、受信可能な通信メッセージから選択された任意の2つの通信メッセージに基づいてネットワークに関する異常判断を行うことができる。これにより、このネットワーク監視装置の適用範囲の拡張が図られるようになる。   In the above embodiment, the case where the first communication message M1 is transmitted from the first ECU 10 and the second communication message M2 is transmitted from the fourth ECU 13 is illustrated. However, the present invention is not limited to this, and the two communication messages may be transmitted from any of the first to fifth ECUs. That is, the monitoring ECU can make a network abnormality determination based on any two communication messages selected from receivable communication messages. As a result, the application range of the network monitoring apparatus can be expanded.

・上記実施形態では、第1の通信メッセージM1と第2の通信メッセージM2とが異なるECUから送信される場合について例示した。しかしこれに限らず、第1の通信メッセージと第2の通信メッセージとが同じECUから送信されてもよい。このときも、第1の通信メッセージの通信間隔と第2の通信メッセージの通信間隔とが両方とも遅延していと判定されたとき、ネットワークの通信負荷が高いと判断することができる。また、第1の通信メッセージの通信間隔と第2の通信メッセージの通信間隔のいずれか一方のみが遅延していと判定されたとき、遅延している通信メッセージの送信に異常が生じていると判断することができる。このとき、送信に生じている異常の原因としては、例えば、処理プログラムの異常や、ECUに情報を伝えるセンサ類の異常などが挙げられる。   In the above embodiment, the case where the first communication message M1 and the second communication message M2 are transmitted from different ECUs has been illustrated. However, the present invention is not limited to this, and the first communication message and the second communication message may be transmitted from the same ECU. Also at this time, when it is determined that both the communication interval of the first communication message and the communication interval of the second communication message are delayed, it can be determined that the communication load of the network is high. Further, when it is determined that only one of the communication interval of the first communication message and the communication interval of the second communication message is determined to be delayed, it is determined that an abnormality has occurred in transmission of the delayed communication message. can do. At this time, the cause of the abnormality occurring in the transmission includes, for example, an abnormality of the processing program, an abnormality of sensors that transmit information to the ECU, and the like.

・上記実施形態では、通信用バス15には、第1〜第5のECU10〜14が接続されている場合について例示したが、これに限らず、通信用バスには、2つ以上のECUが接続されていればよい。これにより、このようなネットワークの監視装置の適用範囲の拡大が図られる。   In the above embodiment, the case where the first to fifth ECUs 10 to 14 are connected to the communication bus 15 is illustrated. However, the present invention is not limited to this, and two or more ECUs are included in the communication bus. It only has to be connected. Thereby, the application range of such a network monitoring device can be expanded.

・上記実施形態では、通信用バス15に第1〜第5のECU10〜14や監視ECU20が接続される場合について例示した。しかしこれに限らず、ネットワークに接続される装置は、ECU以外でもよく、例えばゲートウェイやその他各種装置であってもよい。これにより、各種装置の接続されるネットワークについてもこのネットワーク監視装置を適用することができるようになる。   In the above embodiment, the case where the first to fifth ECUs 10 to 14 and the monitoring ECU 20 are connected to the communication bus 15 is illustrated. However, the present invention is not limited to this, and the device connected to the network may be other than the ECU, such as a gateway or other various devices. As a result, the network monitoring apparatus can be applied to a network to which various apparatuses are connected.

・上記実施形態では、第1〜第5のECU10〜14とは別に監視ECU20が設けられている場合について例示した。しかしこれに限らず、監視ECUに設けたネットワークの監視機能を第1〜第5のECUなどに設けてもよい。監視ECUに設けられたネットワークの監視機能はECUの処理負荷が抑えられているため、各種制御を行う第1〜第5のECUに設けることも可能である。また、ゲートウェイやその他各種装置に設けてもよい。これにより、ネットワーク監視装置の適用範囲の拡大が図られるようになる。   -In above-mentioned embodiment, it illustrated about the case where monitoring ECU20 was provided separately from 1st-5th ECU10-14. However, the present invention is not limited to this, and a network monitoring function provided in the monitoring ECU may be provided in the first to fifth ECUs. The network monitoring function provided in the monitoring ECU can be provided in the first to fifth ECUs that perform various controls because the processing load on the ECU is suppressed. Moreover, you may provide in a gateway and other various apparatuses. As a result, the application range of the network monitoring device can be expanded.

・上記実施形態では、車両1は自動車である場合について例示した。しかしこれに限らず、通信システムは自動車の車両以外の移動体、例えば船舶、鉄道、産業機械やロボットなどに設けられていてもよい。これにより、ネットワーク監視装置の適用範囲の拡大が図られるようになる。   -In above-mentioned embodiment, the case where the vehicle 1 was a motor vehicle was illustrated. However, the present invention is not limited to this, and the communication system may be provided in a moving body other than the vehicle of the automobile, for example, a ship, a railroad, an industrial machine, a robot, or the like. As a result, the application range of the network monitoring device can be expanded.

1…車両、10〜14…第1〜第5のECU(電子制御装置)、15…通信用バス、20…監視ECU、21…通信間隔検出部、22…遅延判定部、23…判断部、24…ログ取得部、25…記憶部、D1,D2…遅延時間、M1…第1の通信メッセージ、M2…第2の通信メッセージ、T1…第1の送信間隔、T2…第2の送信間隔、T3,T4…送信間隔、ΔT1〜ΔT4…通信間隔、TC1…判定間隔、ΔT11〜ΔT15…通信間隔。   DESCRIPTION OF SYMBOLS 1 ... Vehicle, 10-14 ... 1st-5th ECU (electronic control apparatus), 15 ... Communication bus, 20 ... Monitoring ECU, 21 ... Communication interval detection part, 22 ... Delay determination part, 23 ... Determination part, 24 ... log acquisition unit, 25 ... storage unit, D1, D2 ... delay time, M1 ... first communication message, M2 ... second communication message, T1 ... first transmission interval, T2 ... second transmission interval, T3, T4 ... transmission interval, ΔT1 to ΔT4 ... communication interval, TC1 ... determination interval, ΔT11 to ΔT15 ... communication interval.

Claims (9)

CANプロトコルに基づく通信メッセージが送受信されるネットワークの通信負荷を監視するネットワーク監視装置であって、
メッセージIDが異なる2つの通信メッセージについてそれぞれメッセージIDが同一である通信メッセージの通信間隔を検出する検出部と、
前記検出されたメッセージIDが異なる2つの通信メッセージの各通信間隔が各通信メッセージに対応して定められている送信間隔よりも長い時、遅延として判定する遅延判定部と、
前記メッセージIDが異なる2つの通信メッセージの各通信間隔が両方とも遅延として判定されることを条件に、ネットワークの通信負荷が高いと判断し、前記メッセージIDが異なる2つの通信メッセージのいずれか一方の通信間隔のみが遅延として判定されることを条件に、遅延として判定された通信メッセージの送信に異常が生じていると判断する判断部とを備え
前記検出部は、送信間隔が同じ周期の通信メッセージの通信間隔を検出する
ことを特徴とするネットワーク監視装置。
A network monitoring device for monitoring a communication load of a network through which a communication message based on a CAN protocol is transmitted and received,
A detection unit for detecting a communication interval of communication messages having the same message ID for two communication messages having different message IDs;
A delay determination unit that determines a delay when each communication interval of two communication messages having different detected message IDs is longer than a transmission interval determined corresponding to each communication message;
It is determined that the communication load of the network is high on the condition that both communication intervals of two communication messages having different message IDs are determined as delays, and one of the two communication messages having different message IDs is selected. A determination unit that determines that an abnormality has occurred in transmission of a communication message determined as a delay, on condition that only a communication interval is determined as a delay ;
The network monitoring device , wherein the detection unit detects a communication interval of communication messages having the same transmission interval .
前記ネットワークには少なくとも2つの送信装置が接続されており、前記メッセージIDが異なる2つの通信メッセージのうちの一のメッセージIDの通信メッセージは前記少なくとも2つの送信装置の一の送信装置から送信されたものであり、他のメッセージIDの通信メッセージは前記少なくとも2つの送信装置の他の送信装置から送信されるものである
請求項1に記載のネットワーク監視装置。
At least two transmitting devices are connected to the network, and a communication message having one message ID of two communication messages having different message IDs is transmitted from one transmitting device of the at least two transmitting devices. The network monitoring device according to claim 1, wherein the communication message having the other message ID is transmitted from another transmitting device of the at least two transmitting devices.
前記検出部は、一定周期的で送信されるように設定されている通信メッセージの通信間隔を検出する
請求項1又は2に記載のネットワーク監視装置。
The network monitoring device according to claim 1, wherein the detection unit detects a communication interval of communication messages that are set to be transmitted at regular intervals.
前記遅延判定部は、遅延として判定した通信メッセージと同一のメッセージIDの次の通信メッセージの通信間隔を遅延の判定に用いない
請求項1〜のいずれか一項に記載のネットワーク監視装置。
The delay determining unit, a network monitoring apparatus according to any one of claims 1 to 3 not used for the determination of the delay communication interval following the communication message of the same message ID and communication message is determined as a delay.
前記検出部は、メッセージIDが異なる2つの通信メッセージの通信間隔をそれぞれ同じ間隔で検出する
請求項1〜のいずれか一項に記載のネットワーク監視装置。
The network monitoring device according to any one of claims 1 to 4 , wherein the detection unit detects communication intervals of two communication messages having different message IDs at the same interval.
前記遅延判定部は、前記通信間隔が検出されるタイミングに合わせて遅延の有無を判定し、
前記判断部は、前記遅延判定部により遅延が判定されるタイミングに応じて前記ネットワークの通信負荷が高いこと又は前記通信メッセージの送信に異常が生じていることを判断する
請求項1〜のいずれか一項に記載のネットワーク監視装置。
The delay determination unit determines whether or not there is a delay in accordance with the timing at which the communication interval is detected,
The determination unit can be of any claim 1 to 5 for determining that an abnormality in the transmission of that or the communication message is higher communication load of the network according to the timing at which the delay by the delay determining unit is determined has occurred The network monitoring device according to claim 1.
前記判断部は、前記メッセージIDが異なる2つの通信メッセージのいずれか一方の通信間隔が遅延として判定されたとき、他方の通信メッセージの通信間隔も遅延として判定されるか否かに基づいて前記ネットワークの通信負荷が高いこと又は前記通信メッセージの送信に異常が生じていることの判断を行う
請求項に記載のネットワーク監視装置。
When the communication interval of any one of two communication messages having different message IDs is determined as a delay, the determination unit determines whether the communication interval of the other communication message is also determined as a delay. The network monitoring apparatus according to claim 6 , wherein a determination is made that the communication load of the communication message is high or an abnormality has occurred in transmission of the communication message.
前記検出部は、それぞれメッセージIDが同一である通信メッセージをN回(Nは自然数)検出したときの時間を前記通信間隔として検出し、
前記遅延判定部は、それぞれメッセージIDが同一である通信メッセージがN回送信されるときに要する時間を前記各メッセージに対応して定められている送信間隔とする
請求項1〜のいずれか一項に記載のネットワーク監視装置。
The detection unit detects a time when the communication message having the same message ID is detected N times (N is a natural number) as the communication interval,
The delay determining unit, any one of claims 1 to 7 to the transmission interval which is determined corresponding to said each message a time required when the communication message each message ID is the same is transmitted N times The network monitoring device according to item.
CANプロトコルに基づく通信メッセージが送受信されるネットワークの通信負荷をネットワーク監視装置で監視するネットワーク監視方法であって、
検出部で、メッセージIDが異なる2つの通信メッセージについてそれぞれメッセージIDが同一である通信メッセージの通信間隔を検出する工程と、
遅延判定部で、前記検出されたメッセージIDが異なる2つの通信メッセージの各通信間隔が各通信メッセージに対応して定められている送信間隔よりも長いとき、遅延として判定する工程と、
判断部で、前記メッセージIDが異なる2つの通信メッセージの各通信間隔が両方とも遅延として判定されたとき、ネットワークの通信負荷が高いと判断し、前記メッセージIDが異なる2つの通信メッセージのいずれか一方の通信間隔のみが遅延として判定されたとき、前記遅延として判定された通信メッセージの送信に異常が生じていると判断する工程とを備え
前記検出する工程では送信間隔が同じ周期の通信メッセージの通信間隔を検出する
ことを特徴とするネットワーク監視方法。
A network monitoring method for monitoring a communication load of a network through which a communication message based on a CAN protocol is transmitted and received by a network monitoring device ,
A step of detecting a communication interval of communication messages having the same message ID for two communication messages having different message IDs in a detection unit ;
A step of determining, as a delay, when each communication interval of two communication messages having different detected message IDs is longer than a transmission interval determined corresponding to each communication message by a delay determination unit;
The determination unit determines that the communication load of the network is high when both communication intervals of two communication messages having different message IDs are determined as delays, and one of the two communication messages having different message IDs. Determining that there is an abnormality in the transmission of the communication message determined as the delay when only the communication interval is determined as a delay ,
Network monitoring method characterized by transmission interval to detect a communication distance of the communication message with the same period in the step of the detecting.
JP2013023684A 2013-02-08 2013-02-08 Network monitoring apparatus and network monitoring method Active JP5966957B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013023684A JP5966957B2 (en) 2013-02-08 2013-02-08 Network monitoring apparatus and network monitoring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013023684A JP5966957B2 (en) 2013-02-08 2013-02-08 Network monitoring apparatus and network monitoring method

Publications (2)

Publication Number Publication Date
JP2014155061A JP2014155061A (en) 2014-08-25
JP5966957B2 true JP5966957B2 (en) 2016-08-10

Family

ID=51576526

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013023684A Active JP5966957B2 (en) 2013-02-08 2013-02-08 Network monitoring apparatus and network monitoring method

Country Status (1)

Country Link
JP (1) JP5966957B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6585001B2 (en) * 2015-08-31 2019-10-02 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Fraud detection method, fraud detection electronic control unit and fraud detection system
JP6873375B2 (en) * 2016-11-21 2021-05-19 日立Astemo株式会社 Communication equipment, communication system and communication method
CN110546921B (en) 2018-03-29 2022-10-28 松下电器(美国)知识产权公司 Fraud detection method, fraud detection apparatus, and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007081484A (en) * 2005-09-09 2007-03-29 Auto Network Gijutsu Kenkyusho:Kk Gateway, communication control unit and proxy transmission method of cyclic data
JP2007312193A (en) * 2006-05-19 2007-11-29 Auto Network Gijutsu Kenkyusho:Kk Abnormality monitoring unit
JP2008236408A (en) * 2007-03-20 2008-10-02 Auto Network Gijutsu Kenkyusho:Kk Multiplex communication apparatus for vehicle
JP2010028356A (en) * 2008-07-17 2010-02-04 Mitsubishi Fuso Truck & Bus Corp Communication management device of on-vehicle network

Also Published As

Publication number Publication date
JP2014155061A (en) 2014-08-25

Similar Documents

Publication Publication Date Title
JP5954228B2 (en) Network monitoring apparatus and network monitoring method
EP2797263B1 (en) Communication system and communication method
JP5843020B2 (en) Communication apparatus and communication method
JP5637190B2 (en) Communication system and communication method
JP5713117B2 (en) Transmission message generator and in-vehicle communication system
US10491530B2 (en) Communication system and communication device
JP4974706B2 (en) In-vehicle communication device and in-vehicle communication system
JP2013172200A (en) Communication system, repeating device and power supply control method
JP2006222649A (en) Gateway device with network monitoring function
KR102450311B1 (en) System and method for controlling load factor of internal communication bus of car, and a recording medium having computer readable program for executing the method
JP2008236408A (en) Multiplex communication apparatus for vehicle
JP5966957B2 (en) Network monitoring apparatus and network monitoring method
JP6418217B2 (en) Information aggregation method executed in communication system
JP2014039085A (en) Vehicle communication system and repeating device
US20210092025A1 (en) Electronic control unit and electronic control system
JP2020022019A (en) Vehicle system
JP2014031077A (en) Vehicle operation verification system
JP2010093676A (en) Gateway device, vehicle network, and one-side breaking detection method
JP4603899B2 (en) Gateway device with communication error detection function and communication system
JP5741511B2 (en) Freeze frame data storage system
JP6508092B2 (en) Vehicle gateway device and program
JP2013129291A (en) Vehicle communication control device, and method and program for controlling vehicle communication network
WO2023149194A1 (en) Monitoring apparatus, vehicle monitoring system, and vehicle monitoring method
WO2024195467A1 (en) Onboard device, program, and information processing method
JP4948583B2 (en) Control system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150319

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151126

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160127

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: 20160607

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160620

R151 Written notification of patent or utility model registration

Ref document number: 5966957

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151