Detection device and detection method
By calculating and analyzing the reception interval of object messages in the network, combining count values and thresholds, distinguishing delayed and burst messages, and adjusting detection processing, the problem of false detection and missing illegal messages in the existing technology is solved, and more accurate detection is achieved. Network anomaly detection.
Patent Information
- Application Number
- CN202280090009.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-04-12
- Filing Date
- 2022-12-16
- Publication Date
- 2024-09-03
AI Technical Summary
The existing technology is prone to errors in detecting or missing illegal messages when detecting network anomalies. Especially when emergencies occur, it is difficult to accurately determine the abnormality of the reception interval.
By calculating the reception interval of object messages, and determining whether to perform detection processing based on the count value and threshold, distinguish delayed messages and burst messages, and adjust the objects and methods of detection processing to suppress the risk of false detection and missing illegal messages.
It achieves more accurate detection of network anomalies, reduces the probability of false detection and missing illegal messages, and improves the accuracy and reliability of detection.
Smart Images

Figure CN118592018A
Abstract
Description
Technical Field
[0001] The present disclosure relates to a detection device and a detection method.
[0002] This application claims the benefit of priority based on Japanese patent application No. 2022-65792, filed on April 12, 2022, and all the contents disclosed therein are incorporated herein by reference. Background Art
[0003] Patent document 1 (International Publication No. 2021 / 111685) discloses the following detection device. That is, the detection device detects illegal messages in a vehicle network, and the detection device comprises: an acquisition unit that acquires an object distribution, the object distribution being the distribution of reception intervals of periodic messages sent in the vehicle network; an extraction unit that extracts a portion of the object distribution acquired by the acquisition unit according to a predetermined criterion; and a detection unit that performs detection processing for detecting the illegal message based on the portion of the object distribution extracted by the extraction unit.
[0004] Prior art literature
[0005] Patent Literature
[0006] Patent Document 1: International Publication No. 2021 / 111685 Summary of the invention
[0007] The detection device disclosed in the present invention detects anomalies in a network, including multiple object messages of periodic messages sent and received at a specified sending period, which are sent and received in the network, and the detection device comprises: a calculation unit, which calculates the receiving interval of the object message; a detection unit, which performs detection processing to detect the anomaly in the network based on the receiving interval calculated by the calculation unit; and a counting unit, which counts multiple burst messages, the multiple burst messages including the object message, i.e., delayed message, whose receiving interval is greater than the sending period by a specified value or more, and one or more object messages received after the delayed message and whose receiving interval is less than a specified value, the detection unit determines whether to perform the detection processing based on the receiving interval on at least any one of the multiple burst messages based on the count value of the counting unit.
[0008] The detection method disclosed in the present invention is a detection method in a detection device for detecting anomalies in a network, comprising sending and receiving multiple object messages of periodic messages sent and received at a specified sending period in the network, the detection method comprising the following steps: calculating the receiving interval of the object message; performing detection processing to detect anomalies in the network based on the calculated receiving interval; and counting multiple burst messages, the multiple burst messages including the object message, i.e., delayed message, whose receiving interval is greater than the sending period by a specified value, and one or more object messages received after the delayed message and whose receiving interval is less than a specified value, in the step of performing the detection processing, based on the count value of the multiple burst messages, determining whether to perform the detection processing based on the receiving interval on at least any one of the multiple burst messages.
[0009] One aspect of the present disclosure can be implemented not only as a detection device having such a characteristic processing unit, but also as a program for causing a computer to perform such characteristic processing steps, or as a semiconductor integrated circuit that implements part or all of the detection device, or as a system including the detection device. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 It is a diagram showing the structure of a communication system involved in an embodiment of the present disclosure.
[0011] Figure 2 It is a diagram showing the structure of a relay device according to an embodiment of the present disclosure.
[0012] Figure 3 This is a diagram showing an example of distribution of target messages received by a relay device according to an embodiment of the present disclosure and the reception times.
[0013] Figure 4 This is a diagram showing an example of statistical values used for detection processing in the relay device according to the embodiment of the present disclosure.
[0014] Figure 5 This is a diagram showing another example of the distribution of target messages received by the relay device according to the embodiment of the present disclosure and the reception times.
[0015] Figure 6 This is a diagram showing an example of statistical values used for detection processing in a relay device according to a comparative example of the embodiment of the present disclosure.
[0016] Figure 7 This is a diagram showing an example of the reception time of the target message received by the relay device involved in the embodiment of the present disclosure.
[0017] Figure 8 This is a diagram showing another example of the reception time of the target message received by the relay device according to the embodiment of the present disclosure.
[0018] Fig. 9 This is a diagram showing an example of the reception time of the target message received by the relay device involved in the embodiment of the present disclosure.
[0019] Fig.10 This is a diagram showing another example of the reception time of the target message received by the relay device according to the embodiment of the present disclosure.
[0020] Fig.11 This is a diagram showing an example of the reception time of the target message received by the relay device involved in the embodiment of the present disclosure.
[0021] Fig.12 This is a diagram showing an example of a correspondence table stored in a storage unit in a relay device according to an embodiment of the present disclosure.
[0022] Fig.13 This is a flowchart that defines an example of an operation procedure when the relay device according to the embodiment of the present disclosure performs detection processing.
[0023] Fig.14 This is a flowchart that defines an example of an operation procedure when the relay device according to the embodiment of the present disclosure performs a process of counting burst messages.
[0024] Fig.15 This is a diagram showing an example of a connection topology of a network involved in an embodiment of the present disclosure.
[0025] Fig.16 This is a diagram showing another example of the correspondence table stored in the storage unit in the relay device according to the embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] Conventionally, a technology for improving security in a network has been proposed.
[0027] [Technical Problems to be Solved by the Present Disclosure]
[0028] A technology that can detect anomalies in a network more accurately than the technology described in Patent Document 1 is desired.
[0029] The present disclosure is made to solve the above-mentioned technical problems, and its purpose is to provide a detection device and a detection method that can more accurately detect anomalies in a network.
[0030] [Effects of the present disclosure]
[0031] According to the present disclosure, it is possible to more accurately detect abnormalities in a network.
[0032] [Description of Embodiments of the Present Disclosure]
[0033] First, the contents of the embodiments of the present disclosure are listed and described.
[0034] (1) A detection device according to an embodiment of the present disclosure detects an anomaly in a network, wherein a plurality of object messages including periodic messages sent and received at a predetermined sending period are sent and received in the network, the detection device comprising: a calculation unit for calculating a receiving interval of the object messages; a detection unit for performing a detection process for detecting an anomaly in the network based on the receiving interval calculated by the calculation unit; and a counting unit for counting a plurality of burst messages, the plurality of burst messages including the object messages whose receiving interval is greater than the sending period by a predetermined value or more, i.e., delayed messages, and one or more object messages received after the delayed messages and whose receiving interval is less than a predetermined value, the detection unit determining whether to perform the detection process based on the receiving interval on at least any one of the plurality of burst messages based on the count value of the counting unit.
[0035] In this way, in the detection device that performs detection processing based on the reception interval of the target message, by determining whether to perform detection processing based on the reception interval of the burst message based on the count value of the burst message, it is possible to determine whether to use multiple burst messages as the target of detection processing according to the probability that the multiple burst messages include an illegal target message, so that, for example, it is possible to suppress misdetection caused by the occurrence of a burst phenomenon while suppressing the omission of illegal messages included in the multiple burst messages. Therefore, it is possible to more accurately detect abnormalities in the network.
[0036] (2) In the above (1), when the count value is equal to or smaller than a threshold value, the detection unit may not perform the detection process based on the reception interval of at least one of the plurality of burst messages.
[0037] With such a configuration, a plurality of burst messages that are less likely to include an invalid target message can be excluded from the targets of detection processing, thereby suppressing erroneous detection due to the occurrence of a burst phenomenon.
[0038] (3) In the above (1) or (2), when the count value is larger than the threshold value, the detection unit may perform the detection process based on the reception interval of the plurality of burst messages.
[0039] With such a configuration, detection processing can be performed based on the reception intervals of the plurality of burst messages without excluding the plurality of burst messages that may include an illegal target message from the targets of detection processing, thereby preventing illegal messages from being missed.
[0040] (4) In any one of (1) to (3) above, the detection unit may determine the threshold value based on the reception interval of the target message that is the delayed message.
[0041] With such a configuration, it is possible to more appropriately determine whether or not to perform the detection process based on the reception interval of the burst message using a threshold value determined according to the degree of delay of the delayed message.
[0042] (5) In any one of the above (1) to (4), the following structure may be adopted: the detection unit calculates a detection index that increases or decreases according to the relationship between the receiving interval and the reference information about the receiving interval, and performs the detection processing based on the calculated detection index. When the count value is less than the threshold value, the detection unit does not calculate the detection index for at least any one of the multiple burst messages.
[0043] With such a configuration, it is possible to more accurately detect abnormalities in the network based on a detection index indicating the degree to which the message reception interval deviates from a normal value while suppressing false detection due to the occurrence of a burst phenomenon.
[0044] (6) In any of the above (1) to (5), it may be that, when the next object message is not received within a specified time from the reception time of the object message as the burst message, the counting unit ends the counting, the detection unit suspends the detection processing until the counting of the counting unit ends, and restarts the detection processing after the counting of the counting unit ends.
[0045] With such a configuration, it is possible to end the counting of burst messages as the burst phenomenon ends, and restart the detection process at a more appropriate timing.
[0046] (7) The detection method involved in the embodiment of the present disclosure is a detection method in a detection device for detecting anomalies in a network, including sending and receiving multiple object messages of periodic messages sent and received at a specified sending period in the network, and the detection method includes the following steps: calculating the receiving interval of the object message; based on the calculated receiving interval, performing detection processing for detecting anomalies in the network; and counting multiple burst messages, the multiple burst messages including the object message whose receiving interval is greater than the sending period by a specified value, i.e., delayed messages, and one or more object messages received after the delayed messages and whose receiving interval is less than a specified value, in the step of performing the detection processing, based on the count value of the multiple burst messages, determining whether to perform the detection processing based on the receiving interval on at least any one of the multiple burst messages.
[0047] In this way, in the detection device that performs detection processing based on the reception interval of the target message, by determining whether to perform detection processing based on the reception interval of the burst message based on the count value of the burst message, it is possible to determine whether to use multiple burst messages as the target of detection processing according to the probability that the multiple burst messages include an illegal target message, so that, for example, it is possible to suppress misdetection caused by the occurrence of a burst phenomenon while suppressing the omission of illegal messages included in the multiple burst messages. Therefore, it is possible to more accurately detect abnormalities in the network.
[0048] Hereinafter, the embodiments of the present disclosure will be described using the accompanying drawings. It should be noted that the same or corresponding parts in the drawings are marked with the same reference numerals and their repeated descriptions are omitted. In addition, at least a part of the embodiments described below may be arbitrarily combined.
[0049] [Structure and basic movements]
[0050] Figure 1 1 is a diagram showing a configuration of a communication system according to an embodiment of the present disclosure. Figure 1 The communication system 301 includes a relay device 101 and a plurality of communication devices 111. The communication system 301 is mounted on a vehicle, for example. In this case, the communication device 111 is, for example, an on-vehicle ECU (Electronic Control Unit). It should be noted that the communication system 301 may also be a structure including other relay devices not shown in the figure in addition to the relay device 101.
[0051] The relay device 101 and the communication device 111 constitute a network 201. More specifically, the relay device 101 and the communication device 111 are connected to each other via a transmission line 10. The communication system 301 may be a network in which the relay device 101 is connected to the communication device 111. Figure 1 The structure shown in the figure is connected to the communication device 111 one-to-one via the linear transmission line 10, but it may be connected to the communication device 111 via other relay devices and transmission lines 10 not shown, or it may be connected to a plurality of communication devices 111 one-to-many via a bus-type transmission line 10. The transmission line 10 is, for example, a cable in accordance with standards such as CAN (Controller Area Network) (registered trademark), FlexRay (registered trademark), MOST (Media Oriented Systems Transport) (registered trademark), Ethernet (registered trademark), and LIN (Local Interconnect Network).
[0052] The relay device 101 can communicate with the communication device 111. The relay device 101 performs a relay process of relaying information exchanged between a plurality of communication devices 111 connected to different transmission lines 10, for example.
[0053] A plurality of messages including periodically transmitted messages are transmitted and received in the network 201 .
[0054] More specifically, in the network 201, for example, according to a prescribed agreement, a message is periodically sent from the communication device 111 to other communication devices 111 via the relay device 101. Hereinafter, the message periodically sent in the network 201 is also referred to as a periodic message. It should be noted that the "periodic message" is not limited to a message that is strictly periodically sent, but means a type of message that should be sent periodically.
[0055] In addition to periodic messages, there are messages that are irregularly transmitted from the communication device 111 to other communication devices 111 via the relay device 101 in the network 201. Hereinafter, messages that are irregularly transmitted in the network 201 are also referred to as event messages.
[0056] The communication device 111 may send the message through broadcast, unicast, or multicast.
[0057] The relay device 101 functions as a detection device and detects an abnormality in the network 201 .
[0058] 〔Relay device〕
[0059] Figure 2 2 is a diagram showing a structure of a relay device according to an embodiment of the present disclosure. Figure 2 The relay device 101 includes a communication processing unit 11, a calculation unit 12, a processing unit 14, a storage unit 15, and a plurality of communication ports 16. The processing unit 14 is an example of a counting unit and an example of a detection unit. A part or all of the communication processing unit 11, the calculation unit 12, and the processing unit 14 are implemented, for example, by a processing circuit (Circuitry) including one or more processors. The storage unit 15 is, for example, a flash memory included in the above-mentioned processing circuit. The communication port 16 is, for example, a connector or a terminal. The transmission line 10 is connected to each communication port 16.
[0060] The communication processing unit 11 performs relay processing for relaying messages transmitted between the communication devices 111. For example, when the communication processing unit 11 receives a message from the communication device 111 via the corresponding transmission line 10 and the corresponding communication port 16, it generates a message CP as a copy of the received message, and gives a timestamp indicating the reception time of the received message to the generated message CP. Then, the communication processing unit 11 sends the received message to other communication devices 111 via the corresponding communication port 16 and the corresponding transmission line 10, and outputs the message CP with the timestamp to the calculation unit 12.
[0061] (Calculation of receiving interval)
[0062] The calculation unit 12 calculates the reception interval of the target message, which is the message to be detected in the relay device 101. The relay device 101 may be configured to detect a message sent from a communication device 111 as a target, or may be configured to detect a plurality of messages sent from a plurality of communication devices 111 as targets for each type of message. Hereinafter, an example will be described in which the relay device 101 detects a message sent from a certain communication device 111 as an "target message M". The plurality of target messages M sent in the network 201 include periodic messages sent from the communication device 111 according to a predetermined transmission period Cm.
[0063] More specifically, the calculation unit 12 acquires the reception time t of the target message M among the messages relayed by the communication processing unit 11 .
[0064] For example, the storage unit 15 stores an ID for each type of the target message. Hereinafter, the ID of the target message is also referred to as the target ID, and the ID of the target message M is also referred to as the target ID_M.
[0065] The calculation unit 12 receives the message CP from the communication processing unit 11 , and checks the ID included in the received message CP and the object ID in the storage unit 15 .
[0066] Then, when the ID included in the message CP received from the communication processing unit 11 is consistent with the object ID_M, the calculation unit 12 identifies the message that is the copy source of the message CP as the object message M, and obtains the reception time t of the object message M by referring to the timestamp assigned to the message CP.
[0067] When the calculation unit 12 obtains the reception time t of the object message M, it calculates the difference between the reception time t and the reception time t of the previous object message M as the reception interval x of the object message M. In more detail, the calculation unit 12 calculates the reception interval xm of the object message Mm by subtracting the reception time t(m-1) of the (m-1)th object message M(m-1) received by the communication processing unit 11 from the reception time tm of the mth object message Mm received by the communication processing unit 11. Here, m is a positive integer. The calculation unit 12 stores the calculated reception interval xm and reception time tm in the storage unit 15. When there are multiple object messages, the calculation unit 12 calculates the reception interval xm and reception time tm for each object message, and stores the calculated reception interval xm and reception time tm in the storage unit 15 for each object ID.
[0068] (Detection Processing)
[0069] The processing unit 14 performs a detection process for detecting an abnormality in the network 201 based on the reception interval x calculated by the calculation unit 12 .
[0070] For example, the processing unit 14 calculates a statistic T of the reception interval x using the standard deviation σ of the reception interval x calculated by the calculation unit 12, and performs detection processing based on the calculated statistic T. The statistic T indicates the degree to which the reception interval x deviates from the normal state. The statistic T is an example of a detection index.
[0071] More specifically, when the calculation unit 12 stores the reception interval xm of the target message Mm in the storage unit 15, the processing unit 14 calculates the abnormality degree Dm of the target message Mm according to the following equation (1).
[0072] [Mathematical formula 1]
[0073]
[0074] Here, μ is the average value of the receiving interval x, and is an example of reference information about the object message M. The standard deviation σ and the average value μ are stored in the storage unit 15. For example, the standard deviation σ is calculated in advance by the manufacturer of the communication system 301 based on the receiving interval x, and is stored in the storage unit 15. In addition, for example, the average value μ is a value calculated in advance by the manufacturer of the communication system 301 based on the design value of the transmission period Cm of the object message M in the network 201, and is stored in advance in the storage unit 15. It should be noted that the processing unit 14 may also calculate the standard deviation σ and the average value μ regularly or irregularly based on a plurality of receiving intervals x corresponding to a plurality of object messages M, and update the standard deviation σ and the average value μ in the storage unit 15 to the calculated standard deviation σ and the average value μ.
[0075] When calculating the abnormality degree Dm of the target message Mm, the processing unit 14 calculates the statistical value Tm of the target message Mm according to the following formula (2).
[0076] [Mathematical formula 2]
[0077] Tm=max{0,(T(m-1)+Dm-k)}···(2)
[0078] Here, k is a restriction parameter. The restriction parameter k is a preset constant. As shown in formula (2), the statistical value Tm of the object message Mm is the value obtained by subtracting the restriction parameter k from the sum of the statistical value T(m-1) of the object message M(m-1) and the abnormality Dm, and the larger value of zero.
[0079] As shown in equations (1) and (2), the statistic Tm increases or decreases according to the relationship between the reception interval xm of the target message Mm and the average value μ. Specifically, when the abnormality Dm becomes a value larger than the limit parameter k due to the reception interval xm being a value significantly different from the average value μ, the statistic Tm of the target message Mm becomes a value larger than the statistic T(m-1) of the previous target message M(m-1). On the other hand, when the abnormality Dm becomes a value smaller than the limit parameter k due to the reception interval xm being a value close to the average value μ, the statistic Tm of the target message Mm becomes zero or becomes a value smaller than the statistic T(m-1) of the previous target message M(m-1).
[0080] The processing unit 14 performs a detection process for detecting an abnormality in the network 201 based on the calculated statistic T. For example, the processing unit 14 detects an abnormality in the network 201 based on the calculated statistic T and a predetermined threshold value Thx.
[0081] More specifically, the processing unit 14 compares the calculated statistic T with the threshold Thx. When the statistic T is less than the threshold Thx, the processing unit 14 determines that no abnormality has occurred in the network 201. On the other hand, when the statistic T is greater than the threshold Thx, the processing unit 14 determines that an abnormality has occurred in the network 201.
[0082] Figure 3 FIG. 1 is a diagram showing an example of distribution of target messages received by a relay device according to an embodiment of the present disclosure and the time of reception. Figure 3 In the figure, the horizontal axis represents time.
[0083] Reference Figure 3The plurality of object messages M received by the communication processing unit 11 include: object messages M1 to M4, M6, M8, M10, and M12, which are legitimate periodic messages received at a timing based on the transmission cycle Cm during the period from the reception time t1 to the reception time t12; and object messages M5, M7, M9, M11, and M13, which are, for example, illegal messages BM received at a timing based on the transmission cycle Cm during the period from the reception time t5 to the reception time t13. That is, during the period from the reception time t5 to the reception time t13, legitimate periodic messages and illegal periodic messages alternately arrive at the relay device 101.
[0084] Figure 4 FIG. 1 is a diagram showing an example of a statistical value used for detection processing in a relay device according to an embodiment of the present disclosure. Figure 4 In the figure, the horizontal axis represents time and the vertical axis represents statistical values. Figure 4 The calculation unit 12 is based on Figure 3 Statistical values T1 to T13 calculated based on reception times t1 to t13 of target messages M1 to M13 shown.
[0085] Reference Figure 4 During the period from receiving time t1 to receiving time t4, only legitimate object messages M1~M4 sent with a certain sending period Cm are received by the communication processing unit 11, and the receiving intervals x1~x4 become values approximately equal to the average value μ, so the statistical values T1~T4 calculated by the processing unit 14 are zero.
[0086] Since the calculated statistical values T1 to T4 are equal to or less than the threshold value Thx, the processing unit 14 determines that no abnormality has occurred in the network 201 during the period from the reception time t1 to the reception time t4.
[0087] On the other hand, during the period from receiving time t5 to receiving time t13, in addition to the object messages M6, M8, M10, and M12 sent with the sending period Cm, an illegal message BM is received by the communication processing unit 11, and the receiving intervals x5 to x13 become values that deviate from the average value μ, so the statistical values T5 to T13 calculated by the processing unit 14 gradually increase.
[0088] Since the calculated statistic T9 exceeds the threshold value Thx, the processing unit 14 determines that an abnormality has occurred in the network 201 at the reception time t9. When the processing unit 14 determines that an abnormality has occurred in the network 201, it transmits alarm information indicating that an abnormality has occurred in the network 201 to an upper-layer device outside the communication system 301 via the communication processing unit 11. The upper-layer device is, for example, a server or other device that receives the alarm information and performs a predetermined process.
[0089] Here, the threshold value Thx can be arbitrarily set by the manufacturer of the network 201. For example, by setting the threshold value Thx to a smaller value, it is possible to determine that an abnormality has occurred in the network 201 earlier after the transmission of an illegal message in the network 201 starts.
[0090] Figure 5 FIG. 2 is a diagram showing another example of the distribution of target messages received by the relay device according to the embodiment of the present disclosure and the reception time. Figure 5 In the figure, the horizontal axis represents time. Figure 5 The distribution of reception times of target messages M1 to M9 , which are legitimate periodic messages, is shown.
[0091] Reference Figure 5 , object messages M1 and M2 arrive at the relay device 101 with a sending period Cm. On the other hand, due to the processing load in the communication device 111 as the sending source of the object message M and the increase or concentration of the communication volume in the network 201, the object message M3 that should have arrived at the relay device 101 after the sending period Cm from the reception time t2 of the object message M2 is sometimes delayed. In particular, in a network 201 where the relay device 101 is connected to multiple communication devices 111 in a one-to-many manner, the object message M that arrives at the relay device 101 is easily delayed because the communication device 111 as the sending source is waiting for access rights. In addition, in a network 201 where the relay device 101 is connected to the communication device 111 via other relay devices, the object message M that arrives at the relay device 101 is easily delayed due to congestion in the other relay devices. Figure 5 As shown, when the target message M3 is delayed, for example, the target messages M4 to M7 following the target message M3 arrive at the relay device 101 at very short intervals due to the delay of the target message M3. Hereinafter, the phenomenon that a plurality of target messages M arrive at the relay device 101 at short intervals is also referred to as a burst phenomenon.
[0092] [Technical issues]
[0093] Figure 6 FIG. 1 is a diagram showing an example of statistical values used for detection processing in a relay device according to a comparative example of an embodiment of the present disclosure. Figure 6 In the figure, the horizontal axis represents time and the vertical axis represents statistical values. Figure 6 The calculation unit 12 is based on Figure 5 Statistical values T1 to T9 calculated based on reception times t1 to t9 of target messages M1 to M9 shown.
[0094] Reference Figure 6, since the object message M3 is delayed, the reception interval x3 becomes a value larger than the average value μ, so the calculated statistical value T3 increases. In addition, since the object messages M4 to M7 arrive at the relay device at very short intervals, the reception intervals x4 to x7 become values smaller than the average value μ, so the calculated statistical values T4 to T7 gradually increase.
[0095] In the relay device involved in the comparative example, for example, the statistical value T5 exceeds the threshold value Thx, and therefore it is determined that an abnormality has occurred in the network 201. That is, the relay device involved in the comparative example determines that an abnormality has occurred in the network 201 when the reception interval x of the target message M becomes short due to a sudden phenomenon even though no illegal message has arrived.
[0096] In order to suppress such false detection, a method is considered to exclude the reception interval x of the target message M arriving during the period of the burst phenomenon from the detection process. However, in this method, if an illegal message arrives during the period of the burst phenomenon, the illegal message cannot be detected.
[0097] Therefore, the relay device 101 according to the embodiment of the present disclosure solves the above-mentioned technical problems through the following structure.
[0098] (Detection of Delayed Message DEM)
[0099] The processing unit 14 detects a delayed message DEM, which is a target message M whose reception interval x is greater than the transmission cycle Cm by a predetermined value or more.
[0100] More specifically, when the calculation unit 12 stores the reception interval x and the reception time t of the target message M in the storage unit 15, the processing unit 14 compares the reception interval x with a predetermined threshold value ThD to determine whether the target message M is a delayed message DEM such as the target message M3 described above. The threshold value ThD is a threshold value for detecting the delayed message DEM, and is, for example, twice the transmission period Cm of the periodic message.
[0101] Figure 7 FIG. 1 is a diagram showing an example of the reception time of the target message received by the relay device according to the embodiment of the present disclosure. Figure 7 In the figure, the horizontal axis represents time.
[0102] Reference Figure 7 , when the receiving interval xm of the target message Mm is less than the threshold value ThD, the processing unit 14 determines that the target message Mm is not a delayed message DEM. In this case, the processing unit 14 calculates the statistical value Tm of the receiving interval xm. Then, the processing unit 14 compares the calculated statistical value Tm with the threshold value Thx, and based on the comparison result, determines whether an abnormality occurs in the network 201.
[0103] Figure 8 FIG. 2 is a diagram showing another example of the reception time of the target message received by the relay device according to the embodiment of the present disclosure. Figure 8 In the figure, the horizontal axis represents time.
[0104] Reference Figure 8 , when the reception interval xm of the object message Mm is greater than or equal to the threshold value ThD, the processing unit 14 determines that the object message Mm is a delayed message DEM. In this case, the processing unit 14 suspends the calculation of the statistical value T of the reception interval x of the delayed message DEM until the calculation time tB, which is the time obtained by adding the threshold value ThB to the reception time t of the delayed message DEM. That is, the processing unit 14 suspends the calculation of the statistical value Tm of the reception interval xm until the calculation time tBm, which is the time obtained by adding the threshold value ThB to the reception time tm of the object message Mm that is the delayed message DEM. Then, the processing unit 14 waits for the calculation unit 12 to store the reception interval x(m+1) of the next object message M(m+1) of the object message Mm in the storage unit 15.
[0105] For example, the threshold ThB is pre-set based on the IFG (InterFrame Gap) of the frame storing the message. Preferably, the threshold ThB is a value obtained by adding a predetermined margin set based on the fluctuation of the frame transmission timing to the transmission time of the frame corresponding to the minimum IFG. It should be noted that the threshold ThB may also be a value obtained by subtracting a predetermined value from the transmission cycle Cm.
[0106] (Determination of sudden phenomena)
[0107] When the delay message DEM is detected, the processing unit 14 determines whether a sudden phenomenon occurs.
[0108] More specifically, the processing unit 14 determines whether a burst phenomenon occurs based on whether a new target message M arrives at the relay device 101 before the calculation time tB for the delayed message DEM. It should be noted that, when a new message other than the target message M arrives at the relay device 101 before the calculation time tB, the processing unit 14 may update the calculation time tB to the time obtained by adding the threshold value ThB to the reception time of the new message.
[0109] Fig. 9 FIG. 1 is a diagram showing an example of the reception time of the target message received by the relay device according to the embodiment of the present disclosure. Fig. 9 In the figure, the horizontal axis represents time. Fig. 9 Shown in Figure 8The reception time t(m+1) of the target message M(m+1) received by the communication processing unit 11 after the reception time tm is shown.
[0110] Reference Fig. 9 , when the calculation time tBm for the object message Mm arrives before the next object message M(m+1) of the object message Mm as the delayed message DEM is received by the communication processing unit 11, the processing unit 14 determines that no sudden phenomenon has occurred. That is, when the calculation time tBm arrives before the receiving interval x(m+1) and the receiving time t(m+1) of the object message M(m+1) are stored in the storage unit 15 by the calculation unit 12, the processing unit 14 determines that no sudden phenomenon has occurred. In this case, the processing unit 14 cancels the above-mentioned pause and calculates the statistical value Tm of the receiving interval xm according to the above-mentioned formula (1) and formula (2). Then, the processing unit 14 compares the calculated statistical value Tm with the threshold value Thx, and based on the comparison result, determines whether an abnormality has occurred in the network 201.
[0111] Fig.10 FIG. 2 is a diagram showing another example of the reception time of the target message received by the relay device according to the embodiment of the present disclosure. Fig.10 In the figure, the horizontal axis represents time. Fig.10 Shown in Figure 8 The reception time t(m+1) of the target message M(m+1) received by the communication processing unit 11 after the reception time tm is shown.
[0112] Reference Fig.10 , when the communication processing unit 11 receives the next object message M(m+1) of the object message Mm as the delayed message DEM before the calculation time tBm for the object message Mm, the processing unit 14 determines that a burst phenomenon has occurred at the reception time tm of the object message Mm. That is, when the calculation unit 12 stores the reception interval x(m+1) and the reception time t(m+1) of the object message M(m+1) in the storage unit 15 before the calculation time tBm arrives, the processing unit 14 determines that a burst phenomenon has occurred at the reception time tm of the object message Mm.
[0113] When determining that a burst event occurs at the reception time tm of the target message Mm, the processing unit 14 outputs burst event information including the reception time t(m+1) of the target message M(m+1) to the calculation unit 12 .
[0114] When receiving the burst occurrence information from the processing unit 14 , the calculation unit 12 determines whether the burst phenomenon has ended based on the end determination time tE which is a time obtained by adding the threshold value ThB to the reception time t of the target message M.
[0115] More specifically, when the communication processing unit 11 receives the next object message M(m+q+2) of the object message M(m+q+1) after the reception time t(m+1) indicated by the received burst occurrence information and before the end determination time tE(m+q+1) for the object message M(m+q+1), the calculation unit 12 determines that the burst phenomenon continues. That is, when the communication processing unit 11 outputs the message CP including the timestamp indicating the reception time t(m+q+2) before the end determination time tE(m+q+1) arrives, the calculation unit 12 determines that the burst phenomenon continues. Here, q is a positive integer.
[0116] On the other hand, when the end determination time tE(m+q+1) for the target message M(m+q+1) arrives after the reception time t(m+1) indicated by the received burst occurrence information and before the next target message M(m+q+2) of the target message M(m+q+1) is received by the communication processing unit 11, the calculation unit 12 determines that the burst phenomenon has ended. That is, when the end determination time tE(m+q+1) arrives before the message CP including the time stamp indicating the reception time t(m+q+2) is output by the communication processing unit 11, the calculation unit 12 determines that the burst phenomenon has ended. When determining that the burst phenomenon has ended, the calculation unit 12 outputs burst end information to the processing unit 14.
[0117] It should be noted that, when a new message other than the target message M arrives at the relay device 101 before the end determination time tE, the calculation unit 12 may also update the end determination time tE to the time obtained by adding the threshold value ThB to the reception time of the new message. That is, the calculation unit 12 may also be configured as follows: after the reception time t(m+1) indicated by the burst occurrence information, whenever a message CP is received from the communication processing unit 11, the end determination time tE is updated based on the timestamp included in the received message CP regardless of the ID included in the received message CP, and when the communication processing unit 11 does not output the next message CP before the end determination time tE arrives, it is determined that the burst phenomenon is over.
[0118] (Count of burst messages)
[0119] The processing unit 14 counts a plurality of burst messages Mbst including the detected delay message DEM and one or more object messages M received after the delay message DEM and whose reception interval x is less than the threshold value ThB. That is, the processing unit 14 counts the object message M as the delay message DEM continuously received by the communication processing unit 11 and one or more object messages M after the object message M and whose reception interval x is less than the threshold value ThB as burst messages Mbst.
[0120] For example, the processing unit 14 counts the burst messages Mbst which are the target messages M received by the communication processing unit 11 during the period when the burst phenomenon occurs.
[0121] In more detail, when the processing unit 14 determines that a burst phenomenon occurs at the receiving time tm of the object message Mm based on the comparison result of the receiving interval x(m+1) and the threshold ThB, it determines that the object message Mm is the first burst message Mbst and the object message M(m+1) is the second burst message Mbst, and maintains the count value CNT of the burst message Mbst, that is, "2".
[0122] Fig.11 FIG. 1 is a diagram showing an example of the reception time of the target message received by the relay device according to the embodiment of the present disclosure. Fig.11 In the figure, the horizontal axis represents time. Fig.11 Shown in Fig.10 The reception time t shown is the reception time t of a plurality of target messages M received by the communication processing unit 11 after the reception time tm.
[0123] Reference Fig.11 After determining that a sudden phenomenon has occurred, the processing unit 14 increments and updates the count value CNT each time the receiving interval x(m+n) and the receiving time t(m+n) of the target message M(m+n) are stored in the storage unit 15 by the calculation unit 12. Here, n is an integer greater than or equal to 2.
[0124] More specifically, when the calculation unit 12 stores the reception interval x(m+2) and the reception time t(m+2) of the target message M(m+2) in the storage unit 15 , the processing unit 14 updates the count value CNT to “3”.
[0125] Similarly, when the calculation unit 12 stores the reception interval x(m+N) and the reception time t(m+N) of the target message M(m+N) in the storage unit 15 , the processing unit 14 updates the count value CNT to “N+1”.
[0126] For example, if the communication processing unit 11 does not receive the next target message M within a predetermined time from the reception time t of the target message M as the burst message Mbst, the processing unit 14 ends the counting. More specifically, the processing unit 14 ends the counting of the burst message Mbst when receiving the burst end information from the calculation unit 12.
[0127] (Use limit of receiving interval of burst message)
[0128] The processing unit 14 determines whether to perform a detection process based on the reception interval x of a plurality of burst messages Mbst based on the count value CNT.
[0129] For example, when the count value CNT is less than the threshold value ThC, the processing unit 14 does not perform the detection process based on the reception interval x of at least any one of the multiple burst messages Mbst. In detail, when the count value CNT is less than the threshold value ThC, the processing unit 14 limits the use of the reception interval x of at least any one of the multiple burst messages Mbst in the detection process. In more detail, when the counting of the burst message Mbst is completed, the processing unit 14 compares the count value CNT with the threshold value ThC. When the count value CNT is less than the threshold value ThC, the processing unit 14 discards the reception interval x of all the burst messages Mbst and does not use them for the detection process.
[0130] For example, the processing unit 14 determines the threshold value ThC to be compared with the count value CNT based on the reception interval x of the target message M which is the delay message DEM.
[0131] Fig.12 1 is a diagram showing an example of a correspondence table stored in a storage unit in a relay device according to an embodiment of the present disclosure. Fig.12 The storage unit 15 stores a correspondence table Tb1 indicating the correspondence between the reception interval x of the delay message DEM and the threshold value ThC. For example, in the correspondence table Tb1, assuming that the target message M arrives at the relay device 101 at the timing of the transmission cycle Cm, the threshold value ThC is set to a value obtained by adding the number of target messages M received by the communication processing unit 11 during the period from the reception time t of the previous target message M of the delay message DEM to the reception time t of the delay message DEM to a predetermined margin.
[0132] For example, the processing unit 14 obtains the threshold value ThC corresponding to the reception interval xm of the object message Mm determined to be the delayed message DEM from the correspondence table Tb1 in the storage unit 15. As an example, when the reception interval xm of the object message Mm determined to be the delayed message DEM is greater than 4 times and less than 5 times the transmission period Cm, the processing unit 14 obtains "5" as the threshold value ThC.
[0133] Refer again Fig.11 The processing unit 14 compares the acquired threshold value ThC with the count value CNT. When the count value CNT is below the threshold value ThC, the receiving intervals xm, x(m+1)…, x(m+N) of the object messages Mm, M(m+1)…, M(m+N) of the burst message Mbst are not used for detection processing and are discarded.
[0134] More specifically, when the count value CNT is less than the threshold value ThC, the statistical value T for the burst message Mbst is not calculated. That is, the processing unit 14 does not calculate the statistical values Tm, T(m+1)..., T(m+N) of the reception intervals xm, x(m+1)..., x(m+N), and deletes the reception intervals xm, x(m+1)..., x(m+N) from the storage unit 15.
[0135] When the count value CNT is below the threshold ThC, the possibility that the multiple burst messages Mbst received by the communication processing unit 11 include illegal messages is low. Therefore, by not using the reception interval x of the burst message Mbst for detection processing and discarding it, it is possible to suppress erroneous detection caused by the occurrence of burst phenomena.
[0136] For example, when determining that a burst phenomenon has occurred, the processing unit 14 suspends the detection process until the count of the burst messages Mbst ends, and restarts the detection process after the count of the burst messages Mbst ends.
[0137] More specifically, when the receiving interval x(m+N+1) of the target message M(m+N+1) is greater than the threshold value ThB and less than the threshold value ThD, the processing unit 14 determines that the burst phenomenon ends at the receiving time t(m+N) of the target message M(m+N), and the target message M(m+N+1) is not a delayed message DEM, and calculates the statistical value T(m+N+1) of the receiving interval x(m+N+1). More specifically, the processing unit 14 uses the statistical value T(m-1) of the previous target message M(m-1) of the burst message Mbst instead of the statistical value T(m+N) of the receiving interval x(m+N), and calculates the statistical value T(m+N+1) according to the above formula (1).
[0138] Then, the processing unit 14 compares the calculated statistical value T(m+N+1) with the threshold value Thx, and determines whether an abnormality has occurred in the network 201 based on the comparison result.
[0139] Next, when the calculation unit 12 saves the receiving interval x(m+N+2) of the object message M(m+N+2) in the storage unit 15 and the receiving interval x(m+N+2) is less than the threshold ThD, the processing unit 14 determines that the object message M(m+N+2) is not a delayed message DEM, and calculates the statistical value T(m+N+2) of the receiving interval x(m+N+2).
[0140] Then, the processing unit 14 compares the calculated statistical value T(m+N+2) with the threshold value Thx, and determines whether an abnormality has occurred in the network 201 based on the comparison result.
[0141] It should be noted that, when the processing unit 14 determines that the burst phenomenon ends at the reception time t(m+N) of the target message M(m+N), it may not calculate the statistical value T(m+N+1) of the reception interval x(m+N+1), but delete the reception interval x(m+N+1) from the storage unit 15. In this case, the processing unit 14 waits for the calculation unit 12 to store the reception interval x(m+N+2) in the storage unit 15, and uses the statistical value T(m-1) of the target message M(m-1) before the burst message Mbst to replace the statistical value T(m+N+1) of the reception interval x(m+N+1), and calculates the statistical value T(m+N+2) according to the above formula (1).
[0142] (Detection Processing Using Reception Interval of Burst Message)
[0143] When the count value CNT is larger than the threshold value ThC, the processing unit 14 performs detection processing based on the reception interval x of the burst message Mbst.
[0144] In more detail, the processing unit 14 compares the threshold value ThC with the count value CNT, and when the count value CNT is larger than the threshold value ThC, calculates the statistical values Tm, T(m+1)…, T(m+N) of the receiving intervals xm, x(m+1)…, x(m+N) of the object messages Mm, M(m+1)…, M(m+N) which are the burst message Mbst.
[0145] Then, the processing unit 14 compares the calculated statistical values Tm, T(m+1) . . . , T(m+N) with the threshold value Thx, and determines whether an abnormality has occurred in the network 201 based on the comparison result.
[0146] When the count value CNT is larger than the threshold value ThC, the plurality of burst messages Mbst received by the communication processing unit 11 may include invalid messages. Therefore, by performing detection processing as usual based on the reception interval x of the burst messages Mbst, it is possible to suppress missing of invalid messages.
[0147] <Modification>
[0148] Although the processing unit 14 adopts a structure that calculates the statistical value T of the reception interval x and performs detection processing based on the calculated statistical value T, it is not limited to this. The processing unit 14 may also be a structure that performs detection processing without calculating the statistical value T. As an example, the processing unit 14 calculates the moving average value A of the reception interval x of the most recent p object messages M received by the communication processing unit 11, and performs detection processing based on the calculated moving average value A. p is an integer greater than 2. The moving average value A is an example of a detection index.
[0149] More specifically, when calculating the reception interval xm of the target message Mm, the processing unit 14 calculates the moving average Am of the reception intervals xm, x(m-1), x(m-2) ..., x(m-p+1). Here, the reception intervals x(m-1), x(m-2) ..., x(m-p+1) are examples of reference information about the target message M. Hereinafter, the reception intervals x(m-1), x(m-2) ..., x(m-p+1) are also referred to as reference intervals rm. The moving average Am increases or decreases according to the relationship between the reception interval xm of the target message Mm and the reference interval rm.
[0150] For example, in Figure 3 As shown, when the plurality of target messages M received by the communication processing unit 11 include a malicious message BM, the moving average value A calculated by the processing unit 14 gradually decreases during the period from the reception time t5 to the reception time t13.
[0151] The processing unit 14 detects an abnormality in the network 201 based on the calculated moving average value A and a predetermined threshold value Thy. More specifically, the processing unit 14 compares the calculated moving average value A with the threshold value Thy. When the moving average value A is greater than the threshold value Thy, the processing unit 14 determines that an abnormality has not occurred in the network 201. On the other hand, when the moving average value A is less than the threshold value Thy, the processing unit 14 determines that an abnormality has occurred in the network 201.
[0152] When the count value CNT of the burst message Mbst is less than the threshold value ThC, the processing unit 14 does not use the reception interval x of the burst message Mbst for calculating the moving average value A, but discards it. Then, when the reception interval x of the target message M received next to the burst message Mbst is greater than or equal to a predetermined value, the processing unit 14 calculates the moving average value A of the reception intervals x of the most recent p target messages M received by the communication processing unit 11 except the burst message Mbst, and performs detection processing based on the calculated moving average value A.
[0153] [Action flow]
[0154] Fig.13 This is a flowchart that defines an example of an operation procedure when the relay device according to the embodiment of the present disclosure performs detection processing.
[0155] Reference Fig.13 First, the relay device 101 waits for the arrival of the target message M ("No" in step S102), and when receiving the target message M ("Yes" in step S102), calculates the reception interval x of the received target message M (step S104).
[0156] Next, when the calculated receiving interval x is less than the threshold value ThD ("Yes" in step S106), the relay device 101 determines that the received target message M is not a delayed message DEM, and performs detection processing based on the calculated receiving interval x. More specifically, the relay device 101 calculates a statistical value T of the receiving interval x, compares the calculated statistical value T with the threshold value Thx, and determines whether an abnormality has occurred in the network 201 based on the comparison result. When the relay device 101 determines that an abnormality has occurred in the network 201 during the detection process, for example, an alarm message is sent to an upper-layer device outside the communication system 301 (step S108).
[0157] Next, the relay device 101 waits for arrival of a new target message M (No in step S102 ).
[0158] On the other hand, when the calculated reception interval x is greater than or equal to the threshold value ThD ("No" in step S106), the relay device 101 determines that the received object message M is a delayed message DEM, and determines whether a burst phenomenon has occurred. More specifically, the relay device 101 waits for the arrival of the next object message M of the delayed message DEM or the arrival of the calculated time tB for the delayed message DEM, and when the next object message M of the delayed message DEM is received before the calculated time tB arrives, it is determined that a burst phenomenon has occurred, and when the calculated time tB arrives before the arrival of the next object message M of the delayed message DEM, it is determined that a burst phenomenon has not occurred (step S110).
[0159] Next, when the relay device 101 determines that no sudden phenomenon has occurred ("Yes" in step S112), the detection process is performed. More specifically, the relay device 101 calculates the statistical value T of the reception interval x of the delayed message DEM and the statistical value T of the reception interval x of the next target message M of the delayed message DEM, compares the calculated statistical values T with the threshold value Thx, and determines whether an abnormality has occurred in the network 201 based on the comparison result (step S108).
[0160] Next, the relay device 101 waits for arrival of a new target message M (No in step S102 ).
[0161] On the other hand, when the relay device 101 determines that a burst phenomenon has occurred (No in step S112), the relay device 101 counts the burst messages Mbst. More specifically, the relay device 101 waits for the arrival of a new target message M, and counts the target message M, i.e., the burst message Mbst, received during the period when the burst phenomenon occurs (step S114).
[0162] Next, when the count value CNT of the burst message Mbst is greater than the threshold value ThC ("Yes" in step S116), the relay device 101 performs detection processing based on the reception interval x of the burst message Mbst. More specifically, the relay device 101 calculates the statistical value T of the reception interval x of a plurality of burst messages Mbst, compares the calculated statistical value T with the threshold value Thx, and determines whether an abnormality has occurred in the network 201 based on the comparison result (step S108).
[0163] Next, the relay device 101 waits for arrival of a new target message M (No in step S102 ).
[0164] On the other hand, when the count value CNT of the burst message Mbst is equal to or smaller than the threshold value ThC (No in step S116), the relay device 101 discards the reception interval x of the burst message Mbst (step S118).
[0165] Next, the relay device 101 waits for arrival of a new target message M (No in step S102 ).
[0166] Fig.14 This is a flowchart that defines an example of an operation procedure when the relay device according to the embodiment of the present disclosure performs a process of counting burst messages. Fig.14 Shows Fig.13 Details of step S114 in .
[0167] Reference Fig.14 First, the relay device 101 waits for the threshold value ThB to pass from the receiving time t of the burst message Mbst and for the new object message M to be received ("No" in step S302 and "No" in step S304). When the new object message M is received before the threshold value ThB passes from the receiving time t of the burst message Mbst ("No" in step S302 and "Yes" in step S304), it is determined that the received object message M is the burst message Mbst, and the count value CNT is incremented and updated (step S306).
[0168] On the other hand, when the threshold ThB has passed since the reception time t of the burst message Mbst before receiving a new target message M ("Yes" in step S302 and "No" in step S304), the relay device 101 determines that the burst phenomenon has ended and ends the counting of the burst message Mbst (step S308).
[0169] It should be noted that, in the communication system 301 involved in the embodiment of the present disclosure, a structure in which the relay device 101 detects an abnormality in the network 201 is adopted, but it is not limited to this. In the communication system 301, a structure in which a device other than the relay device 101 functions as a detection device to detect an abnormality in the network 201 may also be adopted. For example, the communication system 301 includes a detection device connected to the relay device 101 via a transmission line 10. When the relay device 101 receives a message from the communication device 111, it sends a mirror message that is a copy of the received message to the detection device via the transmission line 10. The detection device calculates and performs detection processing on the reception interval x based on the reception time of the mirror message received from the relay device 101 in the relay device 101.
[0170] In addition, in the communication system 301 according to the embodiment of the present disclosure, a configuration is adopted in which the relay device 101 functioning as a detection device is directly connected to the transmission line 10 , but the present invention is not limited to this.
[0171] Fig.15 FIG. 1 is a diagram showing an example of a network connection topology according to an embodiment of the present disclosure. Fig.15 , it may also be a structure in which the detection device 151 is connected to the transmission line 10 via the communication device 111. In this case, the detection device 151 detects an abnormality in the network 201 by, for example, monitoring the message received by the communication device 111. More specifically, the communication device 111 outputs the received message to the detection device 151. The detection device 151 includes a calculation unit 12, a processing unit 14, and a storage unit 15. The calculation unit 12 in the detection device 151 obtains the reception time t of the target message M received by the communication device 111, and calculates the reception interval x based on the obtained reception time t.
[0172] In addition, in the relay device 101 according to the embodiment of the present disclosure, the storage unit 15 adopts a configuration in which the correspondence table Tb1 is stored, but the present invention is not limited to this.
[0173] Fig.16 FIG. 2 is a diagram showing another example of a correspondence table stored in a storage unit in a relay device according to an embodiment of the present disclosure. Fig.16The storage unit 15 may be a structure in which a correspondence table Tb2 representing the correspondence between the reception interval x of the delayed message DEM and the threshold value ThC is stored instead of the correspondence table Tb1, or a correspondence table Tb2 representing the correspondence between the reception interval x of the delayed message DEM and the threshold value ThC is stored in addition to the correspondence table Tb1. For example, in the correspondence table Tb2, assuming that the object message M arrives at the relay device 101 at the timing of the transmission cycle Cm, the threshold value ThC is set to a value obtained by adding the number of object messages M received by the communication processing unit 11 during the period from the reception time t of the previous object message M of the delayed message DEM to the reception time t of the delayed message DEM, the number of event messages received by the communication processing unit 11 estimated based on the frequency of occurrence of events during the period, and a prescribed margin.
[0174] The storage unit 15 may not store the correspondence tables Tb1 and Tb2. In this case, for example, the processing unit 14 calculates the threshold ThC based on the reception interval x and the transmission cycle Cm of the target message M determined to be the delayed message DEM using a predetermined calculation formula.
[0175] In addition, in the relay device 101 involved in the embodiment of the present disclosure, the processing unit 14 adopts a structure in which the reception interval x of all burst messages Mbst is discarded and not used for detection processing when the count value CNT is less than the threshold value ThC, but the present invention is not limited to this. The processing unit 14 may also be a structure in which the reception interval x of a part of the burst messages Mbst is discarded and the reception interval x of another part of the burst messages Mbst is used for detection processing. For example, the processing unit 14 uses the reception interval x of the delay message DEM among the multiple burst messages Mbst for detection processing, and discards the reception interval x of one or more burst messages Mbst other than the delay message DEM.
[0176] In addition, in the relay device 101 involved in the embodiment of the present disclosure, the processing unit 14 adopts a structure that performs detection processing based on the reception interval x of the burst message Mbst when the count value CNT is larger than the threshold value ThC, but the present invention is not limited to this. The processing unit 14 may also be a structure that does not perform detection processing based on the reception interval x of the burst message Mbst when the count value CNT is larger than the threshold value ThC. For example, when the count value CNT is larger than the threshold value ThC, the processing unit 14 does not perform detection processing, but determines that an abnormality has occurred in the network 201.
[0177] In the relay device 101 according to the embodiment of the present disclosure, the processing unit 14 adopts a configuration in which the threshold value ThC for comparison with the count value CNT is determined according to the reception interval x of the target message M as the delay message DEM, but the present invention is not limited thereto. The processing unit 14 may also be configured to use the predetermined threshold value ThC for comparison with the count value CNT regardless of the reception interval x of the target message M as the delay message DEM.
[0178] In addition, in the relay device 101 involved in the embodiment of the present disclosure, the processing unit 14 adopts a structure in which, when it is determined that a sudden phenomenon has occurred, the detection processing is suspended until the count of the sudden message Mbst is completed, and the detection processing is restarted after the count of the sudden message Mbst is completed, but it is not limited to this. The processing unit 14 can also perform the detection processing afterwards based on the specified number of reception intervals x accumulated in the storage unit 15 by the calculation unit 12. The processing unit 14 can also be a structure that does not suspend and restart the detection processing when the detection processing is performed afterwards. In more detail, the processing unit 14 discards the reception interval x of the sudden message Mbst as a part of the reception interval x accumulated in the storage unit 15 based on the comparison result of the count value CNT and the threshold value ThC, and performs the detection processing based on the remaining reception interval x.
[0179] In addition, in the relay device 101 involved in the embodiment of the present disclosure, the processing unit 14 adopts a structure that receives the burst end information from the calculation unit 12 and ends the counting of the burst message Mbst, but is not limited to this. The processing unit 14 may also be a structure that determines the end of the burst phenomenon based on the comparison result of the receiving interval x and the threshold ThB and ends the counting. More specifically, when the receiving interval x(m+N+1) of the object message M(m+N+1) is larger than the threshold ThB, the processing unit 14 determines that the burst phenomenon ends at the receiving time t(m+N) of the object message M(m+N), and ends the counting of the burst message DM.
[0180] By the way, a technology capable of more correctly detecting anomalies in a network is desired.
[0181] In contrast, in the relay device 101 according to the embodiment of the present disclosure, the calculation unit 12 calculates the reception interval x of the target message M. The processing unit 14 performs a detection process for detecting an abnormality in the network 201 based on the reception interval x calculated by the calculation unit 12. The processing unit 14 counts a plurality of burst messages Mbst, the plurality of burst messages Mbst including the delayed message DEM and one or more target messages M received after the delayed message DEM and having a reception interval x of less than a predetermined value, the delayed message DEM being a target message M having a reception interval x greater than a transmission period Cm by a predetermined value or more. The processing unit 14 determines whether to perform a detection process based on the reception interval x for at least one of the plurality of burst messages Mbst based on the count value CNT of the burst message Mbst.
[0182] In this way, in the relay device 101 that performs detection processing based on the reception interval x of the target message M, by limiting the use of the reception interval x of the burst message Mbst in the detection processing based on the count value CNT of the burst message Mbst, for example, a plurality of burst messages Mbst with a low probability of including an illegal target message M can be excluded from the objects of the detection processing, thereby suppressing false detection due to the occurrence of the burst phenomenon. Therefore, it is possible to more accurately detect abnormalities in the network 201.
[0183] It should be considered that the above embodiments are illustrative in all aspects and not restrictive. The scope of the present invention is shown by the claims rather than the above description, and is intended to include all changes within the meaning and scope equivalent to the claims.
[0184] Each process (function) of the above-mentioned embodiment is implemented by a processing circuit (Circuitry) including one or more processors. The above-mentioned processing circuit can also be composed of an integrated circuit that is combined with one or more memories, various analog circuits, various digital circuits, etc. in addition to the above-mentioned one or more processors. The above-mentioned one or more memories store programs (commands) that enable the above-mentioned one or more processors to perform the above-mentioned processes. The above-mentioned one or more processors can perform the above-mentioned processes according to the above-mentioned programs read from the above-mentioned one or more memories, or they can perform the above-mentioned processes according to the logic circuits pre-designed to perform the above-mentioned processes. The above-mentioned processor can be a CPU (Central Processing Unit: Central Processing Unit), GPU (Graphics Processing Unit: Graphics Processing Unit), DSP (Digital Signal Processor: Digital Signal Processor), FPGA (Field Programmable Gate Array: Field Programmable Gate Array) and ASIC (Application Specific Integrated Circuit: Application Specific Integrated Circuit) and other various processors suitable for computer control. It should be noted that the above-mentioned multiple processors separated physically can also cooperate with each other to perform the above-mentioned processes. For example, the processors mounted on physically separated computers may cooperate with each other to perform the above-mentioned processing via a network such as a LAN (Local Area Network), a WAN (Wide Area Network), and the Internet. The program may be installed in the memory from an external server device or the like via the network, or may be circulated in a state stored in a recording medium such as a CD-ROM (Compact Disc Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), and a semiconductor memory, and installed in the memory from the recording medium.
[0185] The above description includes the following additional features.
[0186] [Note 1]
[0187] A detection device for detecting anomalies in a network, wherein a plurality of object messages including periodic messages sent and received at a predetermined sending cycle are sent and received in the network, the detection device comprising:
[0188] A calculation unit, calculating a reception interval of the object message;
[0189] a detection unit that performs a detection process for detecting an abnormality in the network based on the reception interval calculated by the calculation unit; and
[0190] a counting unit, detecting a delayed message, and counting a plurality of burst messages including the delayed message and one or more of the target messages received after the delayed message and whose receiving interval is less than a predetermined value, wherein the delayed message is the target message whose receiving interval is greater than the sending period by a predetermined value or more;
[0191] The detection unit determines whether to perform the detection process based on the reception interval on at least one of the plurality of burst messages based on the count value of the counting unit,
[0192] When the count value of the counting unit is less than a threshold value, the detecting unit discards the reception interval of the plurality of burst messages, and when the count value is greater than the threshold value, the detecting unit performs the detection process based on the reception interval of the plurality of burst messages.
[0193] [Note 2]
[0194] A detection device detects anomalies in a network, wherein a plurality of object messages including periodic messages sent and received at a predetermined sending cycle are sent and received in the network,
[0195] The detection device comprises a processing circuit,
[0196] The processing circuit
[0197] Calculating a reception interval of the object message;
[0198] Based on the calculated reception interval, performing a detection process for detecting an abnormality in the network;
[0199] detecting the target message, i.e., a delayed message, whose receiving interval is greater than the sending period by a specified value or more, and counting a plurality of burst messages including the delayed message and one or more target messages received after the delayed message and whose receiving interval is less than the specified value; and
[0200] Based on the count value, it is determined whether to perform the detection process based on the reception interval on at least any one of the plurality of burst messages.
[0201] Description of Reference Numerals
[0202] 10 transmission line; 11 communication processing unit; 12 calculation unit; 14 processing unit (counting unit, detection unit); 15 storage unit; 16 communication port; 101 relay device; 111 communication device; 151 detection device; 201 network; 301 communication system; Tb1, Tb2 correspondence table.
Claims
1. A detection device for detecting anomalies in a network, wherein a plurality of target messages including periodic messages sent and received at a predetermined sending cycle are sent and received in the network, the detection device comprising: A calculation unit, calculating a reception interval of the object message; a detection unit that performs a detection process for detecting an abnormality in the network based on the reception interval calculated by the calculation unit; as well as a counting unit for counting a plurality of burst messages, wherein the plurality of burst messages include the delayed message, which is the target message and whose receiving interval is greater than the sending period by a predetermined value or more, and one or more target messages received after the delayed message and whose receiving interval is less than the predetermined value; The detection unit determines whether to perform the detection process based on the reception interval on at least any one of the plurality of burst messages based on the count value of the counting unit.
2. The detection device according to claim 1, wherein: When the count value is equal to or smaller than a threshold value, the detection unit does not perform the detection process based on the reception interval of at least any one of the plurality of burst messages.
3. The detection device according to claim 1 or 2, wherein: When the count value is larger than the threshold value, the detection unit performs the detection process based on the reception interval of the plurality of burst messages.
4. The detection device according to any one of claims 1 to 3, wherein: The detection unit determines the threshold value according to the reception interval of the target message which is the delayed message.
5. The detection device according to any one of claims 1 to 4, wherein: the detection unit calculates a detection index that increases or decreases according to a relationship between the reception interval and reference information about the reception interval, and performs the detection process based on the calculated detection index, When the count value is equal to or smaller than the threshold value, the detection unit does not calculate the detection index for at least any one of the plurality of burst messages.
6. The detection device according to any one of claims 1 to 5, wherein: When the next target message is not received within a predetermined time from the reception time of the target message as the burst message, the counting unit ends the counting. The detection unit suspends the detection process until the counting unit completes the counting, and restarts the detection process after the counting unit completes the counting.
7. A detection method, in a detection device for detecting anomalies in a network, comprising sending and receiving a plurality of object messages of a periodic message sent and received at a predetermined sending period in the network, the detection method comprising the following steps: Calculating a reception interval of the object message; Based on the calculated reception interval, performing a detection process for detecting an abnormality in the network; as well as Counting a plurality of burst messages, the plurality of burst messages including the target message, i.e., the delayed message, whose receiving interval is greater than the sending period by a predetermined value or more, and one or more target messages received after the delayed message and whose receiving interval is less than a predetermined value, In the step of performing the detection process, it is determined whether to perform the detection process based on the reception interval on at least any one of the plurality of burst messages based on the count values of the plurality of burst messages.
