Method and switch arrangement for monitoring a data network in a motor vehicle, and motor vehicle

By using network processors and microprocessors in the switch device of the motor vehicle data network, determining data and associated memory in combination with pseudo-objectives, dynamically identifying and monitoring data packets, the problem of identifying non-desired data communication in the prior art is solved, and the problem of identifying non-desired data communication is realized. Efficient IDS and firewall functions to prevent data tampering and attacks.

CN115606156BActive Publication Date: 2024-11-01AUDI AG +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202180034940.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-10-28
Filing Date
2021-10-22
Publication Date
2024-11-01
Estimated Expiration
2041-10-22

AI Technical Summary

Technical Problem

Prior art It is difficult to effectively identify undesired data communications when monitoring motor vehicle data networks, especially without increasing latency and cost, especially when the design complexity and cost of the associated memory is expensive, and it is difficult to simultaneously realize IDS. and firewall functions.

Method used

By using a network processor in a switch device to read the target determination data from a predetermined location of the data packet, and associate it with the associated memory, and monitoring it in combination with the pseudo-target determination data, dynamically selecting the monitoring location and data mode, and using the network processor The microprocessor performs detection actions, identify undesired contents of the data packet and triggers the defense program.

Benefits of technology

It realizes effective identification and monitoring of undesired data communications in the motor vehicle data network without increasing latency and cost, prevent hacker attacks and controller tampering, and dynamically adjust monitoring strategies to deal with different attack types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115606156B_ABST
    Figure CN115606156B_ABST
Patent Text Reader

Abstract

The invention relates to a method for monitoring a data network (11) in a motor vehicle (10), wherein a switch device (15) is operated in the data network (11), in which physical ports (16, 17) for receiving and sending data packets (18) are interconnected via a switching circuit (20). A network processor (21) reads detection data at a monitoring location (29) of the data packet (18) and forms pseudo target determination data (26) for an associated memory (22) from the detection data, the associated memory is to process the actual target determination data (26) to determine the target port, and checks whether determined action data (32) indicating that a detection action is required is generated by entering the pseudo target determination data (26) into the associated memory (22).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for monitoring a data network in a motor vehicle. Monitoring is performed in a switch device that transmits data packets between network branches of the data network. Without causing delays or delays in the forwarding, the data packets or at least some of them should be checked for predetermined undesired data communications, which may be part of a hacker attack or caused by a tampered and / or damaged controller of the motor vehicle, for example. The invention also includes a switch device that can be used for monitoring in a data network of a motor vehicle and a motor vehicle having a data network and a switch device. Background Art

[0002] In a motor vehicle, controllers can be coupled to one another via a data network in order to exchange data packets, thereby enabling vehicle functions comprising a plurality of controllers to be implemented. An example of such a data network is Ethernet. The network branches of such a data network can be interconnected via a switch device (also referred to as a "switch"), i.e. a data switch. To this end, each network branch can be connected to a corresponding port, which is a physical interface for the network branch and a circuit for sending and receiving data packets. If a data packet arrives at a port of a switch, it is determined to which other network branch or which other network branches the data packet must be forwarded. The data packet is then forwarded or sent to the corresponding port within the switch device by means of a switching circuit. The switching circuit is controlled by a network processor that determines the corresponding target port.

[0003] In order to determine where a received data packet must be forwarded, i.e. at which destination port the received data packet must be directed through the switching circuit, a so-called associative memory can be provided. Another name for such an associative memory is also a CAM filter (CAM-content addressable memory), for example a TCAM (ternary content addressable memory). With such an associative memory, so-called switching or routing in the switching circuit of a switch device can be controlled. By forwarding the data packets in a switched manner, the network branches can be kept logically separated from one another, whereby a firewall function can also be implemented. In the associative memory, a limited number of bits or bytes from a received data packet can be input as input data in order to obtain destination port data describing at least one destination port to be used. The more such destination-determining data from a received data packet the associative memory should be able to process, i.e. the longer or more data from a received data packet should be able to be processed, the more chip area and power consumption are required in the associative memory. Therefore, it is cost-intensive to provide a complex associative memory in a switch device, which is therefore desirable to avoid.

[0004] In contrast, for the detection of manipulations in data networks, so-called IDS (Intrusion Detection Systems) and firewall functions, it is of interest to analyze as much data packet data as possible from the received data packets. This contradicts the requirement to provide associative memories as cost-effectively as possible. Therefore, the analysis of higher protocol layers, for example, using associative memories is only possible if the associative memories are designed to be correspondingly complex and therefore cost-intensive.

[0005] For example, an e-mail data communication can be checked with the aid of an associative memory to see whether it originates from an unexpected sending address, as described in US 2005 / 0 216 770 A1. However, this requires a correspondingly expensive TCAM.

[0006] It is known from US 2007 / 022474 A1 that an associated CAM memory can be used to simultaneously store data for different filter applications. Summary of the invention

[0007] The object of the present invention is to monitor a data network by means of an associative memory and limited resources of a network processor connected to the associative memory in order to detect unexpected data packets or data contents.

[0008] This object is achieved by the subject matter of the independent claims. Advantageous embodiments of the invention are described by the dependent claims, the following description and the drawings.

[0009] The invention describes a method for monitoring a data network in a motor vehicle, wherein a switch device is operated in the data network, in which physical ports for receiving and sending data packets are interconnected via a switching circuit (that is to say an actual switch or an actual data switch), and in which method target determination data are read from the corresponding data packet received via one of the ports by the network processor. Target determination data are data read at a predetermined selected position of the data packet, for example at a predetermined byte position (for example the 5th to 11th byte). The target determination data are then associated with so-called target port data, which specify at least one target port for the data packet, by means of an associative memory. Subsequently, at least one port is selected as a target port from the existing ports according to the target port data. Subsequently, the received data packet is directed / transferred to the at least one target port for sending by means of the switching circuit. The starting point of the invention is therefore a known switch device, a so-called switch, by which network branches of a data network can be interconnected with each other. For this purpose, the target determination data are read from the data packet at a selected position of the data packet in order to determine the target port. By means of an associative memory, the target determination data are associated with the required target port data, which specify the target port via which the data packet is output again into the data network, that is to say to which network branch the data packet is to be forwarded. Merely by way of example, the selected position of the data packet can describe, for example, a MAC address (MAC-Media Access Control) and / or an IP address (IP-Internet Protocol) from the data packet. In this case, "switching" and / or "routing" known from the prior art can be implemented. Each physical port can be provided in the manner described with a mechanical interface for a network cable of a network branch and / or a transceiver circuit for receiving and sending data packets in a known manner.

[0010] Now, in order to achieve the object according to the invention with the resources described, the invention provides that, in addition as possible target determination data, at least one data pattern of the packet type and / or data content to be monitored and / or to be detected is stored in an associated memory together with the corresponding associated action data. In other words, the associated memory is not only prepared with data patterns for target determination data leading to the destination port data for forwarding the received data packet, but also, when the corresponding data pattern is recognized in the received data packet, another storage unit or storage register of the associated memory is occupied with this data pattern that should lead to action data. Accordingly, the invention further provides that in the network processor, in addition to the selection position for the target determination data described, a monitoring position for the detection data to be monitored is also determined, that is, the position of the data in the received data packet where the presence can indicate a tampering of the data network. It is then further provided that the network processor reads the detection data from the data packet at the monitoring position and forms data here referred to as pseudo target determination data, because the pseudo target determination data is used as input data of the associated memory like the target determination data itself. In this case, the associated memory does not need to be designed in a different way in terms of hardware technology. By entering the pseudo target determination data into the associated memory, it is checked which action data is generated. In other words, in the network processor, additional selected positions are defined, which are referred to herein as monitoring positions or detection positions. Likewise, the data content of the data packet should be read at these monitoring positions, i.e., at predetermined bits or bytes of the data packet. Thus, detection data is generated by the read data. The detection data can be processed like target determination data, that is, the detection data can be input or provided to the associated memory as result data. Subsequently, the associated memory reacts to the target determination data in the same manner, i.e., when consistent with one of the data patterns in the associated memory, the associated memory outputs the associated data, but the associated data is now not the target port data, but the action data. Because the detection data can be used like the target determination data, the detection data is also referred to herein as pseudo target determination data, i.e., the associated memory does not need to be specially assembled or expanded in any way by the present invention. The data pattern can be a bit pattern or a byte pattern.

[0011] If there is action data (because its detection data in the data packet corresponds to the data pattern for the action data), it is provided that a detection action for the data packet is controlled or started according to the generated action data, and the result data generated by the detection action is provided at the data interface to a computing unit coupled to the switch device via the data interface. The detection action can be performed by the network processor itself or by an additional processor of the switch device. For example, the detection action can be implemented based on software for the network processor. The computing unit coupled via the data interface can be based on a microprocessor, i.e. a CPU or a signal processor. Therefore, in the following, the computing unit is referred to as a microprocessor.

[0012] Thus, it can be stipulated by the detection action that, for example, other packet data of the data packet is also checked in the data packet, that is, whether it corresponds to the predetermined additional data pattern. Thus, the detection action can include additional inspection or in-depth inspection of the data packet. Subsequently, the result data of the detection action is exported from the switch device, that is, exported to the external microprocessor mentioned through the data interface, and the external microprocessor can then identify whether there is harmful software or harmful data in the data network according to the result data. The microprocessor can generate a reaction according to the result data, or generate a prompt to a hacker attack or tampering with at least one controller of the data network. As a reaction to an undesired sender, for example, a data packet can be deleted. Additionally or alternatively, the detection action can include that the data packet is transferred to the microprocessor through the data interface, so that the data packet itself can be checked. The detection action can include, by detecting the timestamp of the corresponding sending and / or receiving time of the data packet and other data packets of the same packet type and / or the sender and / or the receiver, a predetermined statistical measure, especially a sending rate, is determined for the data packet. Those skilled in the art can determine a suitable detection action according to the monitoring purpose. In this context, the invention can provide a framework for transferring the required detection actions from the microprocessor to the switch device via the data interface.

[0013] The microprocessor can thus detect from the data traffic conducted via the switch device, that is to say from the data packets received and forwarded via the target port, whether an undesired state of at least one controller is present in the data network of the motor vehicle. For this purpose, the data traffic does not need to be slowed down or have significant delays, since the associated memory and the subordinate or auxiliary network processor process the data packets in the same way for triggering detection actions, which also occur for forwarding. As a result, hardware designed for the transmission rate or data throughput of the switch device can be used.

[0014] The present invention also includes embodiments that produce additional advantages.

[0015] One embodiment comprises providing a plurality of data sets (position data sets) for correspondingly different monitoring positions. That is, the detection data (bits and / or bytes) do not always have to be read from the received data packets at the same monitoring position (bit position and / or byte position), but rather the packet characteristics of the corresponding data packets are determined by the network processor based on the data of the data packets. It is further provided that one of the aforementioned plurality of position data sets is selected based on the packet characteristics (i.e. the relevant monitoring position is determined) and the detection data is read at the monitoring position indicated by the selected position data set. In other words, it is possible to dynamically select at which position or monitoring position in the data packet the data is to be read in order to be summarized as detection data based on the data of the currently received data packet. In particular, it is provided that only a part of the data of the data packet is read as detection data, so that the associative memory therefore only has to be able to process less data than the entire data packet, or even, in particular, less data than the so-called packet header of the data packet as input data.

[0016] Header data and / or useful data of a data packet may be selected as data for selecting the detection data, wherein the monitoring location preferably comprises only a part of the header data or a part of the useful data, ie not the entire header data or useful data.

[0017] One embodiment includes that the packet properties specify the communication protocol and / or the packet type and / or the data content. In the case of the communication protocol, the selection of the location data set for monitoring the location can, for example, provide for a distinction between TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) or, in general, between different Internet protocols. As packet type, for example, a distinction can be made between the first data packet and subsequent data packets of a communication or session. As data content, for example, a sender address and / or a receiver address and / or a sender port and / or a receiver port can be considered.

[0018] In a motor vehicle, there is the following feature, that is, at least a part of the data communication is generated by a controller, and the controller follows a fixedly programmed transmission scheme. Only the known part of the data communication, such as the data communication of the controller for the electronic entertainment system, is dynamic. However, this part can also be zero. One embodiment includes that the microprocessor identifies whether the result data deviates from the transmission scheme according to the transmission plan data describing the conventional transmission scheme of the controller according to a predetermined comparison program. Therefore, the microprocessor can identify when the result data deviates from the transmission scheme according to the transmission plan data, and in this case, the microprocessor can activate a predetermined defense program. In which case there is a significant deviation from the transmission scheme can be defined by a person skilled in the art through a comparison program. For example, the time stamp of the data packet can be identified as a predetermined deviation from the transmission scheme. For example, for multiple data packets containing a common data pattern (the data pattern is detected by means of an associative memory), it can be checked whether the transmission time and / or the transmission sequence and / or the time interval correspond to the transmission scheme or deviate from the transmission scheme.

[0019] That is, the understanding based on this is that when the motor vehicle has not been tampered with, that is, when each of the controllers has no deviation from its transmission scheme and no additional devices are connected to the data network and generate additional data communication, then only such result data can be obtained, which corresponds to the transmission scheme described by the transmission plan data that can be provided by the manufacturer of the motor vehicle, for example, according to the comparison program. The comparison program can require exact consistency with the transmission plan data, or can allow tolerances in the count value and / or data content of the final result data. The method described is particularly applicable to Ethernet data packets. Ethernet as a data network is based on packet-oriented data communication, so that (unlike in a time slot-oriented data network) the transmission time and / or the amount of data in the data communication can vary because no reserved time slots are set. It can be identified by the count value and / or by the time stamp whether the number of data packets and / or the transmission rate exceeds a threshold value for a certain data mode. Since the final result data may also additionally contain subordinate data packets that activate the overwrite threshold, the sender can be inferred, i.e., a tampered or damaged controller can be identified, or it can be identified that the sender address used does not belong to any motor vehicle controller on the supplier side but to a device additionally connected to the data network.

[0020] As a defensive procedure or defensive measure, for example, functions in the motor vehicle can be restricted, for example, the scope of functions can be reduced or functions such as media playback and / or telephone functions and / or Internet connection can be switched off. Other functions of the motor vehicle can be restricted or stopped depending on the TCAM record or data pattern (for which deviations from the transmission scheme are detected).

[0021] In addition to the result data, the microprocessor can also receive a corresponding activity signal of at least one vehicle component and / or control unit and subsequently check whether a data packet was sent due to this transmitted activity of the vehicle component and / or control unit and whether the data packet is therefore identified as a data packet that is outside the transmission plan but is activated by this activity and is therefore classified as permitted, so that no defense program needs to be activated. For example, the activity signal can be received via a CAN bus.

[0022] One embodiment includes that the monitoring positions describe separate data areas or data regions of the data packet. The monitoring positions (at which data is read from the data packet) do not necessarily describe a continuous sequence of bits or bytes, but there may be at least one bit or byte that is not monitored between the monitoring positions, i.e., the data in the data packet may be skipped when reading the probe data.

[0023] One embodiment includes determining and / or changing the monitoring position and / or the data mode and / or the action data by the microprocessor via the data interface during operation. Thus, the microprocessor can dynamically manipulate or configure the network processor and / or the associated memory in order to adjust the monitoring. For this purpose, the microprocessor can be designed in particular to react to the result data generated for at least one data packet by the detection action. The sending plan data can also be used as a basis here. As a data mode, a so-called positive mode can be set in the associated memory, that is, a data mode that must exist according to the sending plan data if the controller and / or the motor vehicle are operating normally or without faults. In the absence of a corresponding data packet, for example, an operating fault of a component of the controller, such as a network controller, can be inferred. For example, the sending plan data can be adjusted according to the operating state of the motor vehicle (for example, according to the engine speed).

[0024] The microprocessor can also receive at least one new data pattern and / or a new monitoring position and / or new action data from outside the vehicle, for example via a radio connection, and then record or store it in the network processor and / or associated memory via a data interface. This makes it possible to react dynamically to new attack types.

[0025] One embodiment comprises, in addition to the result data of the detection action or as part of the result data or as the result data as a whole, the corresponding data packet itself or a part thereof is transmitted to the microprocessor via a data interface. In other words, not only the result data itself, but also the data packet or a part thereof, such as header data and / or useful data (so-called effective load) is transmitted to the microprocessor via a data interface. The detection action can also be that the data packet or a part thereof is provided as a component of the result data, i.e. the data packet or the part is output via a data interface. Thus, the expanded analysis possibilities associated with the data packet are available in the microprocessor. Thus, for example, new attack types can be detected or determined.

[0026] As already implemented, the detection data read at the monitoring position of the data packet are summarized into pseudo target determination data, that is, the detection data are summarized in a data group, which can be processed or filtered in the associated memory like the determination data itself. One embodiment includes that the mentioned formation of the pseudo target determination data includes rearranging the detection data by means of a shift operation and / or combining the detection data by means of at least one combination rule. By applying the shift operation and / or the combination rule, preprocessing can be performed. For example, the combination rule can include a logical operation, such as AND (logical AND) or OR (logical OR). As a result, the bits or bytes of the detection data can be summarized or compressed, so as to obtain a preset format, for example. In addition, by means of the shift operation and / or the combination rule, the first step of detecting undesired data communication in the data network can also be performed. Therefore, it can be checked, for example, whether two predetermined bits in the detection data have a predetermined logical combination (for example, both are set or both are deleted). This can then be embodied by a single bit, which can replace the initial bit and become a component of the pseudo target determination data. Thus, at least one shift operation and / or logical bit combination can be performed in the detection data in order to thereby identify a predetermined first data pattern (e.g., a plurality of specific bits can, for example, all be set or deleted). Thus, not only can undesired data communications be identified on the basis of the packet type and / or the send / receive address, but bit operations (shift operations and / or bit combinations) can also be used as a means of detecting undesired data communications.

[0027] Thus, the detection data of the data packet itself can be identified as an undesired data communication by checking the bits by means of shift operations and / or combination rules. The preprocessing is achieved by first associating the data of the data packet or the detection data with one another and / or rearranging them so that the result of the preprocessing is first entered into the associative memory. Thus, instead of simply transferring the data from the data packet to the associative memory, the data of the data packet (detection data) are first preprocessed so that the first step in detecting undesired data communication is already carried out.

[0028] One embodiment includes monitoring Ethernet data packets as data packets. Due to packet-oriented data transmission, Ethernet as a data network can generate multiple data packet states or sequences that can only be predicted with great effort in a motor vehicle. It is particularly advantageous here to implement monitoring of the data network based on individual data packets.

[0029] The invention also describes a switch device for a data network of a motor vehicle, wherein the switch device has a network processor and an associated memory, which is designed to execute an embodiment of the method according to the invention. In the data network, the switch device can be provided as a switch or a router. As a router, the switch device can also provide routing operations via a data processor in a known manner. The network processor and the associated memory together form a data processing device or processor device, which is designed to execute an embodiment of the method according to the invention. For this purpose, the network processor can have at least one microprocessor and / or at least one microcontroller and / or at least one FPGA (field programmable gate array) and / or at least one DSP (digital signal processor).

[0030] The hardware of the network processor described in detail in the prior art can be used as the basis. In addition, the network processor can have a program code, which is designed to execute the network processor-related part of the method according to the invention when executed by the network processor. The program code can be stored in a data memory of the network processor.

[0031] The present invention also describes a motor vehicle having a data network in which a plurality of network branches are interconnected via the switch device described. A microprocessor is coupled to the switch device in the described manner via a data interface. The motor vehicle is designed to execute an embodiment of the method according to the present invention. The motor vehicle according to the present invention is preferably designed as a car, in particular a passenger car or a truck, or a bus or a motorcycle. The data network is preferably an Ethernet, which provides for packet-oriented data communication in a motor vehicle. For data exchange or data communication, the controllers of the motor vehicle can be coupled to each other via the data network. Here, one or more controllers can be connected to a network branch or a network branch respectively. Preferably, a single controller or another switch device that reconnects the network branch is connected to each network branch.

[0032] The present invention also includes combinations of features from the described embodiments. Therefore, the present invention also includes implementations which each have a combination of features from a plurality of the described embodiments, as long as these embodiments are not described as mutually exclusive. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Next, an embodiment of the present invention is described.

[0034] The single FIGURE shows a schematic illustration of an embodiment of a motor vehicle according to the invention having an embodiment of a switch device according to the invention which can carry out an embodiment of a method according to the invention. DETAILED DESCRIPTION

[0035] The embodiments explained below are preferred embodiments of the present invention. In the embodiments, the components of the described embodiments respectively represent the individual features of the present invention that are considered to be independent of each other, and these features also improve the present invention independently of each other. Therefore, the disclosure should also include combinations different from the shown combinations of the features of the embodiments. In addition, the described embodiments may also be supplemented by other features in the already described features of the present invention.

[0036] In the figures, the same reference numerals respectively denote elements with the same function.

[0037] The drawing shows a motor vehicle 10, which is a car, for example a passenger car or a truck. A data network 11 can be provided in the motor vehicle 10, which can be an Ethernet, for example, via which controllers 12, 13 can be coupled to each other for data communication or data exchange. In order to interconnect a plurality of network branches 14 of the data network 11, a switch device 15 can be provided. In this case, a corresponding network cable of a network branch 14 can be connected to a corresponding port 16, 17 of the switch device 15 in a known manner. The drawing shows by way of example how the controller 12 can send a data packet 18 to the controller 13. In this case, the switch device 15 can receive the data packet 18 at the port 16 to which the network branch 14 of the controller 12 is connected, and selects the port 17 to which the network branch 14 of the controller 13 is connected from a plurality of ports of the switch device 15 (possible other ports are not shown), so that the data packet 18 can be forwarded in this network branch 14 and in particular only in this network branch 14. In summary, data packets 18 can be forwarded by the switch device 15 in particular only to those network branches or that network branch in which the controller 13 is located, to which the data packet 18 is addressed in a known manner, for example by means of a so-called IP address and / or MAC address.

[0038] In order to forward the received data packet 18 to the correct port 17, i.e. the destination port 19, in the switch device 15, a switching circuit 20 (also referred to as a switching engine) which can be designed in a known manner can be provided in the switch device 15. The switching circuit 20 can be controlled by a network processor 21. In order to determine which destination port 19 should be set for the received data packet 18 in the switching circuit 20, an associative memory 22, in particular a TCAM, can be provided. In the associative memory 22, corresponding possible data patterns 23 can be associated with output data 24. For example, the network processor 21 can read data or its data content from the received data packet 18 at a preset selection position 25 of the data packet 18 and summarize it into destination determination data 26, which can be transferred to the associative memory 22 as input data for the associative memory 22. If the destination determination data 26 contains one of the data patterns 23, the associative memory 22 can output the corresponding output data 24 as destination port data 27. Based on the destination port data 27, the network processor 21 can, for example, adjust or select the corresponding destination port 19 in the switching circuit 20. The associative memory 22 can be integrated in the network processor or be different from the network processor. Provision can be made for the associative memory 22 to be connected to the switching circuit 20 so that the target port data 27 can be evaluated directly by the switching circuit 20, ie without the network processor 21, to select the target port 19.

[0039] With the aid of the switch device 15 , an IDS (Intrusion Detection System for preventing software errors and / or harmful software) can also be implemented in the motor vehicle 10 , i.e., it can be detected whether one of the controllers 12 , 13 (only two controllers are shown here by way of example) in the data network 11 has been tampered with or attacked by a data virus, and / or whether an unauthorized device is connected to the data network 11 and sends at least one data packet via the switch device 15 .

[0040] For this purpose, the associative memory 22 can also be used in the switch device 15 without it having to have additional functions.

[0041] For this purpose, the network processor 21 can prepare at least one position data set 28, in which a monitoring position 29 can be indicated accordingly, which monitoring position can be a bit in the received data packet or at least one byte indicating a bit position or byte position at which the data content of the received data packet 18 should be read in order to obtain detection data 30. The detection data 30 can be used to generate pseudo target determination data 26'. For this purpose, at least one operation 31 can be applied to the detection data 30, but the detection data 30 can also be provided directly as pseudo target determination data 26'. The pseudo target determination data 26' can be input into the associated memory 22 like the target determination data 26. The pseudo target determination data 26' is likewise input data, which is checked based on at least one data pattern 23. If one of the data patterns 23 is met, the corresponding output data 24 is output by the associated memory 22. However, the output data 24 is action data 32, which can be respectively associated with the corresponding data pattern 23. The detection action 33 can be activated by the action data 32. The detection action can be executed by the network processor 21. The detection action 33 may also be that the data packet 18 itself or at least a part thereof is forwarded to the microprocessor 35 on the data interface 34, which should identify the tampered controller 12, 13 and can generate a corresponding alarm prompt 36 when the tampered controller 12, 13 is identified. For example, the action data 32 can also trigger a detection action performed by the network processor 21, and further result data 37 of this detection action can be forwarded or output to the microprocessor 35 on the data interface 34 as evaluation data.

[0042] The essential idea is therefore to use a network processor 21 with a TCAM filter for data analysis within the scope of the IDS. The TCAM filter can also be implemented as a component of the network processor 21 .

[0043] As a result, during the transmission of data packets 18 between ports 16, 17, the data packets 18 can be checked without additional delays based on at least one data pattern 23, which indicates manipulation of the data network 11. Such data patterns 23 can be reacted to with action data 24, which can trigger or control a detection action 33. In order to identify the packet type and / or protocol of the data packets 18, the header data of the data packets 18 can be classified and correspondingly a monitoring position 29 for selecting the detection data 30 can be determined with the aid of a position data set 28. The detection data 30 can be summarized into detection keys or input data for an associative memory, which can process the detection data into false target determination data 26'. As a result, optimal data processing of the TCAM filter can be used.

[0044] The network processor can be programmed and / or configured so that the network processor recognizes and distinguishes different packet types, for example based on header data, at the transmission speed of the data network, i.e. without adding additional delays, and selects different position data sets based on the packet type or header type to determine the monitoring position, at which data is extracted or read from the data packet. This can also be configurable and / or programmable so that, for example, the microprocessor 35 can be adjusted or changed during the operation of the switch device 15 in order to dynamically adjust the monitoring. If a data packet is classified as a non-suspicious or normal or expected data packet, i.e. an allowed data packet, the next data packet can be processed.

[0045] The read detection data can be combined or generally processed before being conveyed or input into the associated memory, so that different parts of the data packet can be combined, which can assist in data analysis. For example, a shift operation can be set and / or a combination of multiple different processing rules can be set and / or a logical combination can be set. Subsequently, the pseudo target determination data, i.e. the newly combined data, can be checked in the associated memory, in particular in the TCAM, for the following aspects, namely: whether action data is generated or which action data is associated. If action data is generated, the network processor can react to the action data in the following way, namely: the network processor, for example, transfers the data packet to a software framework that can be executed by the microprocessor on the data interface.

[0046] In summary, the examples show how a network processor and a TCAM associative memory for network monitoring can be combined.

[0047] Therefore, in summary, the present invention particularly relates to the following aspects:

[0048] 1. A method for monitoring a data network (11) in a motor vehicle (10), wherein a switch device (15) is operated in the data network (11), in which physical ports (16, 17) for receiving and sending data packets (18) are interconnected via a switching circuit (20), and in which method, a network processor (21) reads destination determination data (26) from a corresponding data packet (18) received via one of the ports (16, 17) at a predetermined selection position (25) of the data packet (18), and the destination determination data (26) are associated with destination port data (27) by an associative memory (22), the destination port data indicating at least one destination port (19) for the data packet (18), and at least one of the ports (16, 17) is selected as the corresponding destination port (19) based on the destination port data (27), and the received data packet (18) is directed to at least one destination port (19) for sending via the switching circuit (20), characterized in that

[0049] In addition, at least one data pattern (23) of a packet type and / or data content to be monitored and / or detected is stored in the associated memory (22) together with the correspondingly associated action data (32) as possible target determination data, and

[0050] In the network processor (21), in addition to the selection position (25) of the target determination data (26) for the corresponding data packet (18), a monitoring position (29) of the detection data (30) to be monitored of the corresponding data packet (18) is also determined, and

[0051] The network processor (21) reads the detection data (30) from the data packet (18) at the monitoring location (29), and forms the pseudo target determination data (26') from the detection data (30), and checks which action data (32) is generated by inputting the pseudo target determination data (26) into the associated memory (22), and

[0052] A detection action (33) for a data packet (18) is controlled based on the generated action data (32), and result data (37) of the detection action are transmitted via a data interface (34) to a microprocessor (35) coupled to the switch device (15) via the data interface (34).

[0053] 2. A method according to aspect 1, wherein a plurality of data groups are provided for corresponding different monitoring positions (29), and the packet characteristics of the corresponding data packet (18) are determined based on the data of the data packet (18) by a network processor (21), and a data group is selected from the plurality of data groups based on the determined packet characteristics, and detection data (30) is read at the monitoring position described by the selected data group (28).

[0054] 3. A method according to aspect 2, wherein the packet characteristics describe the communication protocol and / or the packet type and / or the data content.

[0055] 4. A method according to any one of the above aspects, wherein the microprocessor (35) identifies, based on the sending plan data, with the aid of a predetermined comparison program, that the result data (37) deviates from the sending plan, and in this case activates a predetermined defense program (35), wherein the sending plan data describes the normal sending plan of the controller communicating via the data network (11).

[0056] 5. The method according to any of the preceding aspects, wherein the monitoring location (29) describes a separate data area of ​​the data packet (18).

[0057] 6. The method according to any of the above aspects, wherein the action data (34) are determined and / or changed during operation by a microprocessor (35) via a data interface (34).

[0058] 7. A method according to any of the above aspects, wherein, in addition to the result data (37) of the detection action (33) or as a component of the result data (37), the corresponding data packet (18) or a part thereof is transmitted to the microprocessor via the data interface (34).

[0059] 8. A method according to any one of the above aspects, wherein forming pseudo target determination data (26) from the detection data (30) of the data packet (18) includes rearranging the detection data (30) by means of a shift operation (31) and / or combining the detection data (30) by means of at least one combination rule.

[0060] 9. The method according to any of the preceding aspects, wherein Ethernet data packets are monitored as data packets (18).

[0061] 10. A switch device (15) for a data network (11) of a motor vehicle (10), wherein the switch device (15) has a network processor (21) and an associated memory (22), and is designed to execute steps of a method according to any one of the above aspects that are related to the network processor (21) and the associated memory (22).

[0062] 11. A motor vehicle (10), comprising a data network (11), in which a plurality of network branches are interconnected via a switch device (15) according to aspect 10, and the motor vehicle comprising a microprocessor (35) coupled to the switch device (15) via a data interface, wherein the motor vehicle (10) is designed to execute a method according to any one of aspects 1 to 9.

Claims

1. A method for monitoring a data network (11) in a motor vehicle (10), wherein: A switch device (15) is operated in a data network (11), in which physical ports (16, 17) for receiving and sending data packets (18) are interconnected via a switching circuit (20), in which a network processor (21) reads target determination data (26) from a corresponding data packet (18) received via one of the ports (16, 17) at a predetermined selected position (25) of the data packet (18); the target determination data (26) is associated with target port data (27) via an associative memory (22), the target port data indicating / prescribing at least one target port (19) for the data packet (18); at least one of the ports (16, 17) is selected as the corresponding target port (19) based on the target port data (27); the received data packet (18) is directed to the at least one target port (19) for sending via the switching circuit (20), wherein: In addition, as possible target determination data, at least one data pattern (23) of a packet type and / or a data content to be monitored and / or detected is stored in the associated memory (22) together with the correspondingly associated action data (32). In the network processor (21), in addition to the selection position (25) of the target determination data (26) for the corresponding data packet (18), a monitoring position (29) of the detection data (30) to be monitored of the corresponding data packet (18) is also determined, The network processor (21) reads detection data (30) from the data packet (18) at the monitoring location (29) and forms pseudo target determination data (26') from the detection data (30), wherein forming the pseudo target determination data (26) from the detection data (30) of the data packet (18) includes rearranging the detection data (30) by means of a shift operation (31) and / or combining the detection data by means of at least one combination rule; the network processor (21) checks which action data (32) is generated by inputting the pseudo target determination data (26) into an associated memory (22), A detection action (33) for a data packet (18) is controlled based on the generated action data (32), and result data (37) of the detection action are transmitted via a data interface (34) to a microprocessor (35) coupled to the switch device (15) via the data interface (34).

2. The method according to claim 1, wherein: A plurality of data groups are provided for corresponding different monitoring positions (29), the packet characteristics of the corresponding data packets (18) are determined based on the data of the data packets (18) by a network processor (21), a data group is selected from the data groups based on the determined packet characteristics, and detection data (30) is read at the monitoring position described by the selected data group (28).

3. The method according to claim 2, wherein: Packet characteristics describe the communication protocol and / or packet type and / or data content.

4. A method according to any one of the preceding claims, wherein: The microprocessor (35) identifies whether the result data (37) deviates from the sending plan based on the sending plan data with the help of a predetermined comparison program, and triggers a predetermined defense program (35) in the event of a deviation. The sending plan data describes the regular sending plan of each controller communicating through the data network (11).

5. A method according to any one of the preceding claims, wherein: The monitoring locations (29) describe separate / non-intersecting data areas of the data packet (18).

6. A method according to any one of the preceding claims, wherein: During operation, the microprocessor (35) determines and / or changes the action data (34) via the data interface (34).

7. A method according to any one of the preceding claims, wherein: In addition to the result data (37) of the detection action (33) or as a component of the result data (37), the corresponding data packet (18) or a part thereof is transmitted to the microprocessor via the data interface (34).

8. A method according to any one of the preceding claims, wherein: Monitor Ethernet packets as packets (18).

9. A switch device (15) for a data network (11) of a motor vehicle (10), wherein: The switch device (15) has a network processor (21) and an associated memory (22), which are designed to execute the network processor (21) and associated memory (22)-dependent steps of the method according to any one of the preceding claims.

10. A motor vehicle (10) having a data network (11) in which a plurality of network branches are interconnected via a switch device (15) according to claim 9, the motor vehicle also having a microprocessor (35) which is coupled to the switch device (15) via a data interface, wherein: The motor vehicle (10) is designed to carry out a method according to any one of claims 1 to 8.