Clock topology in Ethernet networks

By dynamically detecting and adjusting the clock topology of the automotive controller network, and using time synchronization protocols and optimal clock algorithms, the problems of static clock topology and low efficiency in the existing technology are solved, and the dynamic clock topology in the automotive production environment is realized. Adjustment and use case flexibility.

CN112425101BActive Publication Date: 2024-10-29CONTINENTAL AUTOMOTIVE TECHNOLOGIES GMBH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN201980048962.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-24
Publication Date
2024-10-29
Estimated Expiration
2039-07-24

AI Technical Summary

Technical Problem

Clock topology information for existing automotive controller networks is typically provided manually and statically during or after vehicle configuration and cannot be dynamically adjusted, resulting in inefficiencies in complex and diverse automotive production environments and the inability to meet changing use case requirements.

Method used

Dynamically detect the Ethernet network topology through the time synchronization protocol, determine the relevant nodes and clock sources in the network, dynamically change the optimal clock, use the optimal clock to decentrally exchange topology information such as address, port and distance, dynamically select nodes as clock sources or Overall control to select the best clock source based on use case characteristics.

Benefits of technology

It enables the dynamic determination of the clock topology between use cases and nodes at the end of the delivery or production line, supports real-time applications of new applications or use cases, improves the flexibility and efficiency of the network, and can automatically adjust the clock architecture when software updates or topology changes. Reduced reliance on static topology information provided by the manufacturer.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112425101B_ABST
    Figure CN112425101B_ABST
Patent Text Reader

Abstract

A method of establishing an improved clock topology for a computing system is disclosed, wherein the computing system is a network of nodes and wherein a plurality of nodes are capable of serving as master clock sources. The method includes sequentially selecting each selectable node as an elected master node, the elected master node sending a notification message, each node with a determined communication requirement extracting topology information from the notification message, and repeating the above steps for another node until each selectable node becomes an elected master. The method then includes selecting a clock source based on an optimal clock topology for a group of nodes with a determined communication requirement.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The present disclosure relates to Ethernet-based communication networks, particularly Ethernet-based communication networks used in automotive environments. It may be desirable for electronic control units (ECUs) in automobiles to be able to reconsider and improve the clock topology of the network to which they are attached. It may be desirable for the ECUs to be able to autonomously evaluate which potential clock source node will provide the best performance as a central or common reference clock. Background Art

[0002] Automotive vehicle manufacturers (OEMs) and Tier 1 suppliers in the automotive industry are preparing for the next generation of architectures for automotive controllers or electronic control units (ECUs). One development is the so-called "zone-oriented architecture," in which ECUs are grouped into zones, such as the right front door zone. The difference to previous architectures is that controllers are located at certain physical or spatial locations in order to optimally collect data from sensors located there. For example, an ECU that collects data from sensors in the right front door can be located in the right front door zone.

[0003] It is also contemplated to localize or distribute the software execution for features and applications to other controllers and processors. This localization or distribution can be part of an optimization and can also be used in case of errors or failures of ECUs, for example. Localization can occur due to physical changes, such as adding a new node to the network in the process of adding or repairing a functionality. Localization can also occur due to recurring events, such as partial power-off of a network to save energy, such as in the case of partial networking. This localization or distribution is called dynamic migration, or just migration. Expect serial production of dynamic migration of software on other ECUs / processors (in-vehicle) soon.

[0004] Ethernet may be the network of choice for connecting ECUs as nodes in the network. Ethernet technology is becoming increasingly popular for electrical systems in vehicles and supplier products. The use of Ethernet technology requires an efficient synchronization or "clock" concept.

[0005] Existing Ethernet systems can use implementations of the time synchronization standard IEEE 802.1AS. Two variants that have attracted particular attention are 802.1AS-rev Failure and 802.1AS-rev Time Domain (the latter is a mandatory requirement for the former). Other protocols outside the physical transmission standard include Ethernet AVB and its successor Ethernet TSN. Ethernet AVB has been introduced for use in automobiles in series production. The basic secondary standard for Ethernet TSN and AVB is the time synchronization standard IEEE 802.1AS, which relies on the main standard IEEE 802.1 for high-level LAN protocols (bridging). Both standards use the Precision Time Protocol (PTP) of IEEE 1588 to establish a common time base in Ethernet networks, "https: / / en.wikipedia.org / wiki / Precision_Time_Protocol".

[0006] PTP defines a master / slave clock hierarchy, as well as the best timing clock within an AVB or TSN network. The best clock or "grandmaster" is used as the source or time base for nodes in a particular network. Each ECU or microcontroller may be a grandmaster if it has the necessary configuration. The Best Master Clock Algorithm (BMCA) can be used to identify the best time clock and propagate this information in the network. Cyclic announcement messages send information about the best clock of a network, such as an AVB cloud, to neighboring nodes of a system that supports IEEE 802.1AS. The receiver of such a message compares this information with information it may already have about its clock characteristics or information it may have received from another port. Based on these information elements, a time synchronization spanning tree can be established.

[0007] Even after the node list of the spanning tree has been built, notifications continue to be dispatched cyclically. On the one hand, this allows to compensate for the loss of master control by dynamically selecting a new best clock. Likewise, new nodes added during runtime or during operation can also be taken into account.

[0008] An 802.1AS network configures and segments itself autonomously. Participating nodes can also be connected or removed during runtime, ie dynamically, due to the cyclic implementation of the BMCA best master clock algorithm.

[0009] The clock topology can be an important consideration for the operation of the system. The path that the data takes from the sender to the receiver can be different, thus placing different demands on the quality of the data and processing. For example, if the sensor data (e.g., a camera) is only one step removed - that is, has only one hop - to the receiver, then compared to a multi-hop or multi-step topology, there will be: less latency, which means more time for data generation or data processing; fewer security issues, because there are fewer attack points on the shorter path; and, more efficient data transmission, because less intermediate storage (such as buffers or network resources) must be used on the way, which also reduces costs. With knowledge of the architecture, the application can be optimized with respect to the communication channel and redundancy with respect to reliability. Other advantages include: higher synchronization accuracy, resulting in higher quality in sensor fusion; and better possibilities for fail-safe communication, because with the help of topology information, redundant paths can be identified and redundancy mechanisms such as IEEE 802.1CB can be used.

[0010] It is also desirable to allow platform-independent software distribution. Depending on the use case, software developers and designers should be able to precisely adapt the software or application to the requirements of the application scenario. Software optimization can preferably be done at the terminal manufacturer or original equipment manufacturer (OEM). As a result, software can become more platform- and customer-independent.

[0011] Likewise, for security reasons, it may be desirable to identify all nodes in the network and their local addresses. Using appropriate techniques, each node may have the possibility to discover all transceivers or nodes in the vehicle. Thus, foreign or unwanted data sources or ECUs may be identified.

[0012] A further consideration may be the transfer of functions or applications from one control unit to another. In future architectures, specific applications may no longer be bound to a specific controller, but may be mobile or transferable to one or more different controllers. The right decision about transferring applications to different controllers can only be made if topology information is known. Applications that require low latency and high communication bandwidth should be executed on neighboring controllers (which minimizes the number of hops) if possible. Neighboring controllers may be identified using topology information to allow or improve software application localization and distribution.

[0013] Concurrently with the transfer of functionality, it may be necessary or desirable to change the synchronization or clock architecture. A function at one node that needs to be exactly or nearly synchronized with a function at another node (e.g., a sensor processing operation at one node that uses sensor data from another node) may require a reference clock that is collocated with one of the two reference nodes. Therefore, it may be desirable to select a clock topology based on the desired use case.

[0014] Currently, information about the topology of a vehicle's controller network (i.e. the connection structure of the controller network) and about the data to be exchanged is usually provided manually or statically at a single point in time during or after configuration of the vehicle. The topology information may include specifications for which node provides the reference clock. This topology information is not determined by dynamic software or a separate application, but comes as a given, i.e. from the manufacturer. However, the ever-growing complexity and diversity of variants in automotive production makes a static approach to topology information for each production car less efficient and less desirable.

[0015] Patent application EP 2677690 A1 proposes determining a network topology of a communication network including a clock topology. However, the present invention differs both in the protocol used and in the efficiency of implementation in finding the topology to be selected for a given use case. Summary of the invention

[0016] The present invention provides the benefit of determining the desired use cases and corresponding clock topologies between nodes at any time during delivery, at the end of a production line, or dynamically, such as after a software update (e.g., an over-the-air (OTA) update). In fact, the present invention can be applied at any time when new applications or use cases are available. As described below, the method of the present invention supports dynamically detecting, for example, an Ethernet network topology, including identifying relevant nodes and clock sources in the network.

[0017] In one embodiment, the present invention utilizes a time synchronization protocol to determine topology information. One embodiment dynamically changes the best clock (master control) of the network and uses the best clock to decentralized exchange topology information, in particular information such as addresses, ports and distances or "hops". Time synchronization messages are exchanged with information used to determine the network topology. In particular, the distance to the best clock and its address can be determined. By making all qualified nodes become valid best clocks in turn, all ECUs or controllers can receive information about all other participants of the network.

[0018] Based on information about the use case and topology, including clock topology information, the network can select a node as a clock source or master control. The selection process can depend on characteristics such as the individual communication and synchronization needs between two or more nodes of the network in a given use case. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The invention is best understood with reference to the drawings described below.

[0020] Figure 1 shows the so-called "region-oriented architecture";

[0021] Figure 2 shows the measurement of link delay;

[0022] Figure 3 An example of a complex automotive network that can be used with embodiments of the present invention is shown;

[0023] Figure 4a and 4b Two further examples of complex automotive networks that may be used with embodiments of the present invention are shown;

[0024] Figure 5 shows the typical structure of an ECU, which can be used as a node in an automotive network;

[0025] Figure 6 An example showing a change in use case and a corresponding change in optimal clock;

[0026] Figure 7 Another example showing a change in use case and a change in optimal clock;

[0027] Figure 8a and 8b showing steps for determining a new optimal clock and starting operation of a new use case;

[0028] Fig. 9 Show two solutions for the optimal clock given a new use case;

[0029] Fig.10 Details of determining which node represents the best clock are shown;

[0030] Fig.11a and 11b shows the evaluation of different master clock positions for a use case;

[0031] Fig.12 The steps of selecting the best clock are shown;

[0032] Fig.13 shows the steps for evaluating the network topology;

[0033] Fig.14 showing an evaluation of the content of a path tracing message;

[0034] Fig.15 Evaluation of the optimal clock based on topology and hop count is shown. DETAILED DESCRIPTION

[0035] The detailed description set forth herein is intended to provide those skilled in the art with an understanding of certain implementations of the invention.

[0036] Figure 1An example of an automotive network 101 is shown. The network shows a zone-oriented architecture and includes nodes (111, 112, 121, 122, 151, 152), zone controllers (110, 120, 150) and server nodes (129, 139, 169). Zones include, for example, a left front zone with controller 110 and nodes 111 and 112, or a left rear zone with controller 150 and nodes 151 and 152. Server nodes with processing capabilities include 129, 139 and 169. All nodes and controllers are interconnected with one or more data transmission buses, such as automotive Ethernet, MOST, CAN in its many variations, etc.

[0037] It may be advantageous to move processing activities from sensors to more central regional controllers and server nodes. Server nodes may have sufficient processing power to handle more complex analysis, sensor data fusion, etc. Moving processing activities and software applications to central resources may be particularly advantageous when the processing load is punctual or of varying intensity. Centralizing processing may allow for averaging of processing loads, so that an application that requires particularly much processing at one time may share resources with different applications that require particularly much processing at different times.

[0038] In order to allow information or data from sensors to be processed at different locations, or to allow processing at locations that may change, it may be important to analyze the topology of the overall system. It may be important to identify delays in transmitting data, and to understand the quality of one or more clocks at the nodes where processing will occur. It may be important to understand the clock latency between a source node and a receiving or processing node, or the clock variation between a source node and a receiving or processing node.

[0039] Providing or embedding timing information in the processing results at the nodes may be an important part of the processing.Knowing what timing differences exist or may exist between two or more source nodes and a receiving node may be important, for example as may be necessary in the case of data fusion.

[0040] Figure 2A protocol that can be used to measure link delay in a system is shown, which uses PTP (Precision Timing Protocol) according to IEEE 802.1AS. The initiator 210 can send a delay_Req message at time t1, as shown in 211. The responder 220 can receive the delay_Req message at time t2, as shown in 221. The responder can send a delay_Resp (t2) message, as shown in 222. The initiator can receive the delay_Resp (t2) message at time t4, as shown in 212. Using this message, the initiator 210 can determine the absolute time increment from sending at t1 to receiving at t4, and the relative time t2 when the responder receives the delay_Req message. The responder can send delay_Resp_Follow_Up (t3), shown as 223, which is received at 213. With this message, the initiator 210 can determine the absolute time increment from when the responder 220 sends delay_Resp (t2) to when the responder sends delay_Resp_Follow_Up (t3). The initiator can compare its reception times for the two messages at 212 and 213. Thus, the initiator will have information about the quality of clock synchronization, such as link delay and adjacent rate ratio, and transmission delay between the initiator 210 and the responder 220.

[0041] The information collected using this protocol gives information about the absolute quality of the link. This information can be qualified based on the use case. In particular, different nodes with different functionalities may have different requirements on the link quality and what kind of synchronization and delay can be tolerated or expected.

[0042] Figure 3 A network with a topology that can be found in an automotive environment is shown. A central node or gateway is shown as 310. In addition to being a central node in the network topology, the node can generally be a clock source or best clock. Other nodes can be end nodes or leaf nodes, such as nodes 321, 323, 341. Certain nodes that are intermediate points in the network are shown as 320, 330. These can be connected between gateway 310 and end nodes or leaf nodes such as nodes 321, 323, 341. Node 322 is also at an intermediate point between node 320 and node 323.

[0043] Figure 4a Another network with a topology that can be found in an automotive environment, such as used in a zone-oriented architecture, is shown. A plurality of server nodes 410, 411, 412, 413 are interconnected in a ring topology. End nodes such as node 420 may be associated with sensors and connected to the server nodes. End node 430 is connected to server nodes 412 and 413 via two different connections.

[0044] Multiple connections and even circular connections make topology identification or discovery more difficult. There can be two or more paths between any two given nodes over which nodes are removed by a different number of steps (different hop counts).

[0045] Figure 4b Yet another network with a topology that can be found in an automotive environment, such as used in a zone-oriented architecture, is shown. Two server nodes 415, 416 are interconnected in a ring topology, these connections also connecting to two sets of end nodes or leaf nodes, such as nodes 440, 441, 442, 443 or nodes 445, 446, 447, 448. In the event of a connection failure, it may be possible to reach node 440, for example, from server node 416 only through server node 415.

[0046] The topology of the network may also be changed to reduce power. Nodes 445 and 446 may be powered off to save power, and it may be desirable to treat them as not being part of the network topology when they are powered off. Figure 4b The complete network will be considered a partial network, and a particular power saving configuration is effective. Then, it may be desirable or necessary for one or two server nodes to identify or discover the new topology.

[0047] Figure 3 4 illustrate the challenges facing today's automotive manufacturers and suppliers. The figures show a number of different harness topology variations that may be used for a particular vehicle model. If the clock configuration is static, the gateway can always be used as the clock source, even if a different node may be the best clock. For example, if the clock communication between nodes 310 and 320 is most critical for a given use case, it may be advantageous to make node 320 (rather than gateway 310) the master control or clock source.

[0048] Figure 5 A representative configuration for a simple node or ECU 501 is shown. The node includes a microcontroller 520, a memory 510, and a communication interface shown as I / O 530 for communicating with other nodes in the network. Other embodiments of the node may have two or more interfaces 530. The interface may be an Ethernet interface, or a CAN bus, or a FlexRay or a wireless interface. The I / O interface 530 may correspond to one or more logical ports, which in turn correspond to the path to the next node in the network. The nodes that can be directly reached via the port correspond to those nodes that are removed by one hop or one step.

[0049] A node with multiple interfaces may use the same interface technology for each interface, or different interfaces may use different technologies. For example, a node operating as a gateway in a network may have one Ethernet interface, two CAN bus interfaces, and a LIN bus interface.

[0050] ECU node 501 may include an accurate clock generation capability that will allow it to provide synchronization information to other nodes in the network. It may have the ability to use a time reference from a GPS system, or have a high-precision clock oscillator or crystal clock. It may also include the ability to perform clock corrections, such as due to the effects of temperature, aging, etc. The node may have the ability to timestamp the information packets it sends, so that the data sent includes information about the time when the packet is prepared or sent. Depending on the configuration of ECU 501, it may be able to serve as a clock source or master control, or it may not be able to serve as a clock source or master control.

[0051] Figure 6 A network with a topology that may be found in an embodiment of an automotive environment is shown. The network is shown in a state after a use case change. Node 610 is an ECU that provides a clock signal to other nodes for a previous or "old" use case; it is the selected or defined best clock, also known as the master control. The network includes node 621, which may be an ECU connected to a sensor node 620 that is a camera. Node 621 is also connected to another node 630 that may be an ECU for sensor fusion. Node 621 is also indirectly connected to another node 640 that may be an actuator. Node 640 is connected to the old best clock node 610 via two intermediate nodes; in other words, 3 "hops" or steps are removed from node 610. Nodes 620 and 630 are each 2 "hops" or steps removed from node 610 because they are each connected via intermediate node 621.

[0052] If node 630 performs fusion processing, it may need to be tightly synchronized with camera node 620 and actuator node 640. Selecting node 630 as the best clock or master control means that both nodes 620 and 640 are two hops or steps removed from clock source 630. Depending on the details of the communication between the camera node, fusion node, and actuator node, one or more corresponding paths may be deterministic and therefore a local master control or best clock is required or highly desired. Therefore, for new use cases, node 630 (rather than node 610) may be selected as the best clock.

[0053] Figure 7 Another embodiment of the present invention is shown. Figure 7In the example, the server-based ECU 701 includes multiple microcontrollers 710, 711, 712, 713. The ECU also includes a network with Ethernet switches 720, 721, 722. The Ethernet switches are connected between them. For example, the microcontroller 710 is connected to the switch 720, and the microcontroller 712 is connected to the switches 721 and 722. Other ECUs 730 and 731 are also connected to the switches 720 and 722, respectively. In this example, the ECUs 730 and 731 are located outside the server-based ECU 710. One or more of these connections may be decisive and make local master control or optimal clocking desirable or necessary.

[0054] If pre-established measures are used, such as the Best Master Clock Algorithm (BMCA) of the Precision Time Protocol (PTP), as described in standard IEEE 802.1AS, the microcontroller 710 may be selected as the best clock. However, if ECU C as node 731 has timing requirements that are more important for a given use case or will be used to select the best clock, these may be decisive and may cause the microcontroller 713 to be selected as the source of the best clock.

[0055] Figure 8 shows the steps associated with a change in architecture, such as might occur with a change in use cases, to begin operating with a best clock that might be different from the previous best clock. A change in the best clock or master control may be necessary or advantageous when the topology of the network changes, or when there are different requirements for synchronization or clocking due to functionality that may be added or removed in the existing topology.

[0056] Figure 8a An overview of the steps is shown. At 801, a network or one or more nodes in a network is used to change the architecture of the network. Thereafter, in step 802, a new best clock is determined. This may be determined by one node on behalf of the nodes that make up the network, or it may be determined by a collaborative effort of multiple nodes in the network.

[0057] Figure 8b More details of the steps of an embodiment for determining a new best clock are shown. At 811, a network or one or more nodes in a network establishes a new use case. At 812, a communication architecture corresponding to the new use case is established. This can be established by one node on behalf of the nodes that make up the network, or it can be determined by a collaborative effort of multiple nodes in the network, including by a collaborative effort of all nodes in the network that can participate as a new best clock. The communication architecture particularly relates to communications for clocks and synchronization.

[0058] The best clock for the new use case is determined at 813. This may also be done by one node on behalf of the nodes that make up the network, or it may be determined through a collaborative effort of multiple nodes in the network.

[0059] Once the best clock is selected, the use case participants are synchronized at 814. Information about which node will be the best clock is spread throughout the network. The best clock can also be used to synchronize nodes of the network. Thereafter, operations for the new use case are started at step 815.

[0060] Fig. 9 Steps that may be used to select an optimal clock in different embodiments are shown. Steps begin at 911 with a new use case. At 912, distances to different ECUs are determined relative to any node that may be the best clock and for the new use case in question. One or more distances may be established by a node representing the nodes that make up the network, or it may be determined by a collaborative effort of multiple nodes in the network, including by a collaborative effort of all nodes in the network that are capable of participating. Distances are determined for clocks and synchronization that are required for operation with respect to the new use case.

[0061] Then, an evaluation and selection can be made after step 912 according to two different options. One is a static evaluation at 923, where different clock sources and different synchronization requirements have been identified. At step 924, a pre-established static network is selected. For example, a table of different network configurations can be used, and the use case is used to select the entries in the table. Or, depending on the use case, a set of rules can be used based on the number of nodes and the number of hops between different nodes. The best clock can be determined at the time of manufacturing, or it can be determined at some later time, and the results saved. Therefore, the statically determined best clock leads to the selection of the best clock at step 925.

[0062] As an alternative, the evaluation and selection can then continue with a dynamic option at step 933. The topology of the network is then evaluated at 934 based on changes due to use cases or also due to dynamic changes in the network (e.g., over-the-air (OTA) software updates). The network topology can also change based on being powered off to save energy, such as in the case of partial networking. At step 935, the best clock is selected based on the current topology and the requirements of the current use case.

[0063] Fig.10 The steps for determining which node represents the best clock are shown in detail. One of the first steps (shown as 1001) is to collect the requirements for clock synchronization for a given use case. Another first step (shown as 1002) is to evaluate the requirements for the various nodes of the network given the use case. In this example, it is shown as an evaluation per ECU. The two evaluation steps for the required synchronization quality can be combined or performed in a different order.

[0064] In step 1003, the abstract synchronization requirements of the use case are mapped to a specific architecture. To this end, the use case architecture information is provided as input from step 1010. For example, if a node performs sensor fusion using input from multiple other nodes, this operation requires clock synchronization between the nodes participating in the sensor fusion. In step 1003, these requirements are mapped to the specific topology that exists. In step 1004, the requirements are analyzed for the specific connections between the nodes. Steps 1003 and 1004 can also be mixed or combined into one step.

[0065] In step 1005, the requirements of the different nodes are compared and verified. In order for the system to operate as a whole, the different requirements mapped to the topology must be met. If all requirements can be met, then in step 1006 the ideal location for the best clock can be set. This location meets all requirements and provides the desired synchronization for the use case and the current topology. Figure 11 shows an example of how the use case communication plays a role in determining which node should be the clock source, i.e., which ECU should be selected as the master control. Fig.11a 1 shows a use case communication 1109 between ECU B as node 1102 and ECU D as node 1104. Node 1104 can be, for example, an actuator. In this example, the use case communication is deterministic and drives the communication requirements. Therefore, in Fig.11a In the configuration, ECU D is 3 hops removed from the master control, and the use case communication involves a node that is 3 steps removed from the master control as a clock source and ECU B that is only 1 hop removed.

[0066] exist Fig.11b In the example, the communication topology is optimized by selecting ECU C as the master control as node 1113. Therefore, the clock source is only one hop removed from the two nodes of the use case communication 1119, and only one hop is removed from ECU B and one hop is removed from ECU D. Therefore, if the use case communication is deterministic for clock synchronization requirements, the system is relatively Fig.11a The clock source is significantly improved.

[0067] Fig.12 The information that becomes available to a node when listening to and receiving an announcement message is shown. Message 1211 is sent from master control ECU A 1010. In an embodiment in the context of IEEE 802.1AS, the announcement message provides status and characteristic information from the master control node that sent the message. The receiving node and the end node use this information when performing BMCA.

[0068] The announce message goes one hop to ECU B 1220 because ECU B has removed one step from ECU A. ECU B now has the path trace information shown as 1221, including the GM name, path trace, and number of steps to the GM. ECU B forwards the message for another hop to ECU C 1230. ECU C now has the path trace information shown as 1231, including the GM name, path trace, and number of steps to the GM, which has removed two steps in this example.

[0069] Therefore, from its own perspective, each node can collect information about the network topology. Specifically, each node can evaluate the number of hops to any master control if the node will become a master control or clock source during operation.

[0070] Nodes that participate as potential clock sources may be participants or required participants in path evaluation, while nodes that cannot act as clock sources may instead be passive and receive any clock information sent by the current clock. Topology discovery is performed by at least one node, which may use e.g. Fig.12 The information shown determines the path to the master control or clock source.

[0071] Fig.13 The steps of an embodiment that gives an overview of the best clock selection are shown. The process begins at step 1301 by dynamically determining the distance for each node or ECU. This can be done using Fig.12 If, for example, the BMCA best master clock algorithm is used, then notification messages are exchanged at step 1302. Then, at step 1303, synchronization parameters (such as Fig.12 ). These provide information such as the distance to the current master control. In step 1304, the best master control clock has been selected. Each step can be performed by a software module, or by hardware, or a combination of both.

[0072] Fig.14 Steps in a synchronization information exchange protocol using the BMCA best master clock algorithm as standardized in IEEE 802.1AS are shown. Each step can be performed by a software module, or by hardware, or a combination of both. The sequence begins with an event 1401 that triggers topology discovery or topology identification. The start of topology discovery can be triggered manually, for example using a special settings menu or by an external test / diagnostic unit. Another possibility is to start automatically, for example when new software is loaded (e.g. OTA). Topology discovery can be performed for each node or ECU as a dynamic measurement or determination of the distance of the removed steps or jumps.

[0073] A maintenance mode may be activated 1402 in order not to affect the operating vehicle and to avoid potential failures. The maintenance mode puts the vehicle in a safe mode, for example at the end of a production line or in a workshop. If, for example, standard IEEE 802.1AS-rev operation is used, this step may not be needed, since the standard allows parallel time synchronization of several domains. In this case, one domain may be used for normal operation, while another domain is dedicated to topology discovery.

[0074] A search algorithm for finding the best master clock (BCMA) then begins at 1403. In one embodiment, this is the master clock selection algorithm of IEEE 802.1AS.

[0075] In the first step of the loop at 1404, a unique node is selected. In IEEE 802.1AS, this is the node with the highest priority. The selected node will be called the master control. The rules for selecting nodes at the first step of the loop must ensure that each node that can be a clock source or master control (e.g., has the ability) is selected at least once. For efficiency reasons, it is better not to select a node that has already been selected once.

[0076] In the next step of the loop, when the elected master control sends an announcement message 1405, it provides status and characteristics information from the master control node that sent the message. The receiving nodes and end nodes use this information when performing BMCA. In step 1406, the network nodes must extract the topology information from the announcement messages they receive and save this information. Examples from embodiments with information received by nodes are similar to Fig.12 1408. The information to be extracted can include the path to another node, the port connected to this path and the number of steps of removing the node when using a given port. When the elected master control node has finished sending a notification message to other nodes, it then makes itself retire in step 1407 to no longer be selected as elected master control. It completes this point in the context of IEEE 802.1AS by setting its priority to the lowest possible value. In this way, each other node will have a higher priority and will become elected master control, or no other node will become master control and find that the cycle will be completed. As mentioned above, the rule used must ensure that each node that can become clock source or master control is selected at least once.

[0077] In step 1408, it is evaluated whether the node with the priority can become the master. If each node is already the elected clock source, and then retires itself, for example because it sets its priority so that it will no longer be the master, then the loop ends, otherwise the loop returns to step 1404 where the highest priority node becomes the master.

[0078] If each node, or at least each node that can act as a clock source or master control, has sent a notification message, the sequence ends at step 1409. When all optional nodes have been selected, the best clock selection process is completed and a set of feasible clock sources is generated. If no node presents itself as a priority node to become the elected master control, this is an indication that the search algorithm has been completed. For example, if there is no priority node, a timeout can be generated and the search is terminated. If maintenance mode is activated, then at this point, maintenance mode should be deactivated. We will not consider fault conditions, lost connections, etc., which may also result in situations where no node responds or where it appears that no other node responds to a node.

[0079] In one embodiment, all nodes of the network may be selectable because each node is capable of being the elected master controller, or because each node is likely to be the best clock source for the network. In another embodiment, only some nodes are capable of being the elected master controller, and therefore only some nodes may be selectable. In another embodiment, some nodes may not be selectable because they will remain hidden, or for other reasons, such as to avoid timing loops.

[0080] pass Fig.14 The minimum number of cycles of the loop is given by the number of "known" nodes, excluding those nodes that may never become the GM. Any looping process and the best clock search algorithm must take into account the possibility of hidden nodes. Likewise, deadlock prevention at the beginning of the operation may require that all nodes (or at least those nodes that are capable of becoming the GM) assume that they are the best master clock and send an announce message. This may mean that many nodes send announce messages simultaneously until an elected GM has been chosen.

[0081] Fig.15One embodiment is shown as an example of an evaluation that results in the selection of the best clock source from a set of feasible clock sources based on topology and hop count. The process begins at step 1501 by identifying all nodes, here labeled ECUs, that will require synchronization or clock information as part of the use case to be prepared. At step 1502, one or more nodes, as representatives of the network, check how many ECUs will be involved in the selection process. If multiple nodes are involved as feasible clock sources at 1522, then in this embodiment, the next step at 1503 is to determine the distance (e.g., number of hops) to the other nodes for each participating node or ECU. The node then takes the sum of all distances and divides it by the number of nodes. In step 1504, the distance is reported back to some central location or made available centrally. When all participating nodes report the distance divided by the node count, it forms a compilation of the arithmetic average distance through the node for this ECU as a clock source. In this embodiment, the node or nodes with the smallest average distance will be selected from the set of feasible clock sources; in other embodiments, other criteria related to the use case can be used to select the best clock. In one embodiment, a clock source will be selected that has the fewest number of hops to one node, to some nodes, or to all nodes.

[0082] If only two ECUs or nodes are involved in 1521, then in the next step 1513, one of the two nodes will be selected. In this embodiment, the node with the best clock characteristics will be selected; these may be the clock characteristics specified in IEEE 802.1AS. In other embodiments, other criteria relevant to the use case may be used to select the best clock.

[0083] Once the best clock is selected as the clock source via step 1505 or 1515, the selection process is complete at step 1506. This may occur as described for step 1408, for example, no nodes respond and a timeout event occurs.

[0084] The number of steps (or hops) between nodes can be fixed at one point in time, such as at production or delivery. Alternatively, the number of steps in the topology can change. The topology may change, for example, due to a failure in a node or a failure in the topology, whether instantaneous or permanent. Alternatively, the topology may also change due to a software update such as an OTA update, or because hardware is added to or removed from the topology. The topology can change for a limited time or on a recurring basis; for example, partial networking can be used to save power, shutting down parts of the network. In an embodiment in the context of an IEEE 802.1AS network, the network can configure and segment itself autonomously. Due to the cyclic implementation of the BMCA (Best Master Clock Algorithm), participant nodes can also be connected or removed dynamically during runtime.

[0085] The context of an IEEE 802.1AS network for an automotive environment is given as a preferred embodiment. However, it should be clear to a person skilled in the art that the concepts of the present invention may also be implemented in other networks and used in other environments, such as industrial use cases.

Claims

1. A method of establishing an improved clock topology for a computing system, in, The computing system is a network of nodes, and Among them, multiple nodes can be used as the master control clock source. The following steps are involved: Sequentially select each optional node as the elected master control node, The elected master control node sends a notification message, Each node with certain communication requirements extracts topology information from the advertisement message, and Repeat the above steps for another node until each optional node becomes an elected master control node, and then select a clock source from a set of feasible clock sources based on an optimal clock topology for a set of nodes with determined communication requirements, wherein the optimal clock topology is based on an evaluation of the topology information extracted by each node from the announcement message.

2. The method according to claim 1, wherein: The network of nodes is a network of automobile ECUs.

3. The method according to claim 1, wherein: Selecting the clock source includes selecting a node with a minimum arithmetic mean distance as the clock source.

4. The method according to claim 1, wherein: Selecting the clock source includes selecting a node with a minimum number of hops to a certain node or to a node with certain communication.

5. The method according to claim 1, wherein: The best clock selection process uses BMCA of IEEE 802.1AS.

6. The method according to claim 3, wherein: The message for notifying the clock capability of the elected master control node is a notification message of IEEE 802.1AS.

7. The method according to any one of claims 1 to 6, wherein: Starting the best clock selection process includes sending at least 4 messages announcing the clock capabilities of the elected master control node, or sending exactly 4 messages announcing the clock capabilities of the elected master control node.

8. The method according to any one of claims 1 to 6, wherein: The node serving as the elected master control node changes its priority to the lowest priority after serving as the elected master control node.

9. The method according to any one of claims 1 to 6, wherein: The elected master control node sends one or more synchronization messages before sending a message for announcing its capabilities.

10. A node configured to perform the steps performed by a node capable of acting as an elected master control node according to any preceding claim.

11. The node according to claim 10, wherein: The node is an automotive ECU.

12. The node according to claim 10 or 11, wherein: The node comprises at least one Ethernet interface.

13. The node according to claim 10 or 11, wherein: The node includes a plurality of interfaces.

14. The node according to claim 10 or 11, wherein: The node comprises at least one interface which is not an Ethernet interface.

15. The node according to claim 10 or 11, wherein: The node includes a precise clock source.

Citation Information

Patent Citations

  • Determining the network topology of a communication network

    EP2677690A1

  • Method and apparatus for providing time synchronization in in-vehicle ethernet communication network

    US20160149692A1