Method for operating units of a communication system
Patent Information
- Application Number
- EP2022834531
- Authority / Receiving Office
- EP · EP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-12-17
- Filing Date
- 2022-12-07
- Publication Date
- 2024-10-23
AI Technical Summary
Existing communication systems in distributed safety-critical applications face challenges in accurately estimating communication latency without synchronizing clocks across all participants, which is crucial for ensuring data freshness and security.
A method where a first communication unit receives a token message with time information from a second communication unit, stores and adds this information to data packets, allowing the second unit to determine a maximum latency value without requiring clock synchronization, thereby ensuring data packets are not incorrectly classified as outdated.
This approach simplifies and reliably determines the maximum latency of data packets, reducing technical complexity and preventing false positives, particularly in security and safety-critical applications like teleoperated driving, where latency thresholds are critical.
Smart Images

Figure 1.1
Abstract
Description
[0001] Description
[0002] title
[0003] Method for operating units of a communication system
[0004] The invention relates to a method for operating a first communication unit of a communication system, a corresponding method for operating a second communication unit of the communication system, and a method for operating a communication system. The invention also relates to a first communication unit, a second communication unit, and a communication system. Furthermore, the invention relates to a computer program and a machine-readable storage medium on which the computer program is stored.
[0005] State of the art
[0006] In many deployment scenarios in distributed systems, estimating the communication latency between two or more communication partners is important. For example, in various safety-critical systems, the communication latency must not exceed a certain threshold to ensure that the data is still up-to-date. For such systems, an accurate estimation of the communication latency is secondary, since from a security perspective, only the worst-case latency or the maximum age of the data is decisive.
[0007] Methods are known in which communication latency is determined by time synchronization of the communication participants and time stamps in the messages. This can be done in various ways, for example, by synchronizing all participants to an external time signal (GPS or a time signal transmitter) or by a bidirectional exchange of time synchronization messages and an estimation of the average latency (Network Time Protocol, Precision Time Protocol).
[0008] What these two approaches have in common is that they require all communication participants to have clocks that are synchronized by the method, i.e., brought to a common time base. The data sender timestamps its messages with its current system time. The recipient of the message then determines the difference between its system time and the attached timestamp to determine the communication latency.
[0009] Disclosure of the invention
[0010] According to a first aspect, the present invention relates to a method for operating a first communication unit of a communication system according to claim 1 in order to determine a maximum value of a latency time of a data packet transmitted from the first communication unit to a second communication unit of the communication system by means of the second communication unit.
[0011] According to a second aspect, the present invention relates to a method for operating a second communication unit of a communication system according to claim 4 in order to determine a maximum value of a latency time of a data packet transmitted from a first communication unit of the communication system to the second communication unit by means of the second communication unit.
[0012] According to a third aspect, the subject of the present invention is for operating a communication system comprising a first communication unit and a second communication unit according to claim 10, in order to determine a maximum value of a latency time of a data packet transmitted from the first communication unit to the second communication unit by means of the second communication unit.
[0013] According to a fourth aspect, the present invention provides a first communication unit according to claim 11.
[0014] According to a fifth aspect, the present invention provides a second communication unit according to claim 12.
[0015] According to a sixth aspect, the present invention provides a communication system according to claim 13 having a first communication unit according to the fifth aspect and a second communication unit according to the sixth aspect.
[0016] According to a further aspect, the present invention relates to a computer program or several computer programs according to claim 14, as well as a machine-readable storage medium according to claim 15.
[0017] In the context of the present invention, a communication unit can be understood as a unit that is designed to receive and send wirelessly or wired transmitted messages or data packets.
[0018] In particular, a communication unit comprises at least one processor, at least one storage medium with computer program code, and at least one communication interface. The computer program code is configured to operate the communication unit according to the method according to the first and / or second aspect of the invention with the at least one processor and the at least one communication interface. The communication interface can be a software and / or hardware interface configured to receive and / or transmit data packets or messages wirelessly or via a wired connection.
[0019] In other words, the communication unit is configured for wireless and / or wired communication. Wireless communication can, for example, comprise radio communication, in particular mobile radio and / or WLAN and / or near-field communication. Wired communication can, for example, be communication via a bus system such as CAN / FD, Flexray, or Ethernet.
[0020] Each of the communication units can be part of a mobile or stationary device. It is conceivable that one of the communication units, in particular the first communication unit, is arranged on a mobile device, for example on a vehicle. It is also conceivable that one of the communication units, in particular the second communication unit, is arranged away from a mobile device and is, for example, part of a cloud computing system or a server backend. Preferably, the first communication unit can be connected directly or indirectly to a sensor unit, in particular arranged on a vehicle, in order to receive sensor data generated by the sensor unit. For example, the first communication unit can be designed as a connectivity unit, in particular of a vehicle, which can preferably be connected or is connected wirelessly or by wire to one or more control units of the vehicle designed as data provision units.
[0021] The first and second communication units can be connected or connectable to one another by means of one or more communication connections or communication paths. A communication connection or communication path can be configured as a wireless or wired communication connection or as a wireless or wired communication path. It is also conceivable for the communication connection or communication path between the first and second communication units to comprise at least two consecutive communication sections, with a first communication section configured as a wireless communication connection and a second communication section configured as a wired communication connection.
[0022] The method for operating the first communication unit comprises a step of receiving at least one token message sent from the second communication unit to the first communication unit by means of, in particular, a communication interface of the first communication unit. The token message includes time information representing a reference time of the token message. The token message can be embodied, for example, as a wirelessly or wired transmitted data packet.
[0023] The reference time of the token message is a time assigned to the token message or a point in time assigned to the token message. The reference time can, for example, be a time or a point in time of generation or, in particular, expected transmission of the token message. The reference time of the token message is preferably determined by means of the second communication unit. The reference time can correspond to a current time of a clock assigned to the second communication unit or included in the second communication unit, or to a system time of the second communication unit at a point in time of generation or, in particular, expected transmission of the token message.
[0024] The time information is information included in the token message which represents the reference time of the token message. It is conceivable that the time information includes the reference time or consists of the reference time. For example, the time information can include a timestamp or be embodied as a timestamp. The reference time, in particular the timestamp, can be included in the time information in encrypted or unencrypted form. It is also conceivable that the time information represents the reference time, in particular the timestamp, by means of a number and / or letter code assigned to the reference time, in particular counter information assigned to the reference time. This has the advantage that the first communication unit, as a potential attacker, cannot draw any conclusions about the reference time on the second communication unit. This makes it more difficult for an attacker to modify the reference time. For example,Prevent an attacker from increasing the reference time value to fake a lower latency.
[0025] The method for operating the first communication unit may comprise a step of storing the time information using a storage medium associated with the first communication unit or comprised by the first communication unit. The method may also comprise a step of replacing stored time information with a most recently received and / or more recent time information. The method may further comprise a step of copying or adding the received and / or stored time information to the data packet to be transmitted. In this case, the time information is stored, added, and / or copied, in particular, unchanged or without modification.
[0026] It is also conceivable that the received time information is stored and / or added to the data packet in an adapted form determined by means of the first communication unit using a predetermined or predeterminable adaptation rule, wherein the adapted time information is converted into the time information by means of the second communication unit using a predetermined or predeterminable reverse adaptation rule.The method for operating the first communication unit further comprises a step of sending the data packet with the time information comprised by the at least one received token message by means of the first communication unit to the second communication unit in order to determine the maximum value for the latency of the data packet transmitted from the first communication unit to the second communication unit based on the time information comprised by the data packet by means of the second communication unit. Preferably, a plurality of data packets are sent at temporal intervals, in particular periodically, by means of the first communication unit to the second communication unit. In this case, the data packets each comprise time information comprised by a received token message of the second communication unit.
[0027] The data packet is transmitted from the first communication unit to the second communication unit via a communication connection. The data packet comprises the time information, in particular in a manner unchanged from the token message with regard to content and / or format, and preferably payload data. The payload data can comprise sensor data, e.g., audio and / or video data, provided directly or indirectly to the first communication unit by a sensor unit. Based on the time information contained in the data packet, the second communication unit can determine the maximum value for the latency of the data packet corresponding to the maximum value for the latency of the payload data.
[0028] The latency of the data packet is a time required to transmit the data packet from the first communication unit to the second communication unit. In particular, the latency of the data packet is a time or a period of time required to transmit payload data by means of the data packet from the first communication unit to the second communication unit. The latency of two data packets sent consecutively can differ depending on one or more states and / or properties of the communication system. In the context of the present invention, a maximum value for a latency of a data packet can be understood as a time value or a time specification which is greater than or equal to, in particular actually greater than, a maximum possible latency of the data packet in the communication system.The maximum latency value preferably represents an estimate of the latency that can be determined by the second communication unit—even if it is not possible to determine the actual latency of the data packet using the second communication unit—where the actual latency of the data packet is less than or equal to the maximum latency value. In other words, the maximum latency value can be configured as an upper bound for the latency, which the latency cannot exceed. Thus, the maximum value also takes into account a latency for a worst-case scenario with regard to the latency when transmitting the data packet.
[0029] The method for operating the second communication unit comprises a step of sending at least one token message to the first communication unit using the second communication unit. The token message includes time information representing a reference time of the token message.
[0030] The method according to the second aspect further comprises a step of receiving the data packet transmitted from the first communication unit to the second communication unit by means of the second communication unit. The data packet comprises the time information contained in the at least one transmitted token message.
[0031] The method according to the second aspect further comprises a step of determining the maximum value for the latency of the data packet transmitted from the first communication unit to the second communication unit by means of the second communication unit. The maximum value for the latency is determined or calculated based on the time information contained in the data packet.
[0032] The methods and communication units according to the invention now make it possible to determine a maximum value for the latency of a data packet in a communication system in a technically simple and at the same time particularly reliable manner, wherein the actual latency of the data packet is less than or equal to the maximum value. The maximum value for the latency can be determined by the communication unit receiving the data packet, regardless of the presence of a clock or system time on the side of the communication unit sending the data packet. In particular, no synchronization of clocks or system times between the communication units is required. This reduces the technical complexity of the communication unit sending the data packet, and eliminates the need for complex time synchronization methods.The proposed approach is particularly advantageous for security and / or safety-relevant applications, such as remote vehicle control, where the trustworthiness of data packet content is particularly relevant and exceeding a data packet latency threshold requires the system, e.g., the vehicle, to be transferred to a secure state. In particular, the proposed approach enables a simplification of a security analysis of the communication system and an application implemented using the communication system.
[0033] It is advantageous if the method according to the first aspect comprises a step of receiving, by means of the first communication unit, a further token message sent from the second communication unit to the first communication unit, in particular at a temporal distance from the sent token message. The further token message comprises time information which represents a reference time of the further token message. In this case, the sent data packet comprises the time information contained in the token message last received by means of the first communication unit. Alternatively, the sent data packet comprises the time information contained in the received token messages which represents the most recent or newest reference time. For this purpose, the time information contained in the received token messages is stored by means of the first communication unit.
[0034] This design can reduce the deviation of the maximum value from the actual latency. This can reduce false positive cases, in which the determined maximum latency value exceeds a specified or specifiable threshold without the actual latency exceeding the threshold.
[0035] It is advantageous if the token message and the further token message each include counter information, with the time information representing the most recent reference time being selected based on the counter information. In particular, the counter information is included in the time information. It is also conceivable for the time information to be embodied as counter information or for the time information to consist of the counter information.
[0036] The counter information can, for example, include or be configured as a number assigned to the token message, e.g., a sequence number. The counter information of consecutively sent token messages can increase monotonically within a specified or predeterminable value range.
[0037] In other words, for increased availability of the methods, it is advantageous if the first communication unit adds the most recent time information, e.g., represented by a highest received time stamp to date, to the data packet. This prevents outdated time information, e.g., an outdated time stamp, from being added to the data packet when token messages are reordered on a communication channel from the second to the first communication unit, which would incorrectly classify the data packet as too old. In the case of encrypted time information, either an encryption method that preserves the monotony of the reference time or monotonically increasing counter information transmitted unencrypted can be used.
[0038] By means of this embodiment, the time information to be added to the data packet can be correctly selected and / or resources for transmitting the time information can be reduced by means of the first communication unit, even in the case of encrypted time information.
[0039] The method according to the first and / or second aspect can comprise corresponding steps for one or more further first communication units. In this case, in particular the same at least one token message is received by the further first communication unit, and a further data packet with the time information comprised by the at least one received token message is sent by the further first communication unit to the second communication unit in order to determine the maximum value for the latency of the further data packet transmitted from the further first communication unit to the second communication unit based on the time information comprised by the further data packet by the second communication unit. The token message can be sent to the first and the one or more further first communication units using a broadcast or unicast method.
[0040] The method according to the first and / or second aspect can comprise corresponding steps for one or more additional second communication units. Token messages are sent from the second communication units, and a data packet containing the time information contained in the respective received token message is sent by the first communication unit to the respective second communication unit in order to determine the maximum value for the latency of the data packet transmitted from the first communication unit to the respective second communication unit based on the time information contained in the respective data packet by the respective second communication unit.
[0041] It is advantageous if, in the method according to the second aspect of the invention, the maximum value for the latency is further determined based on a reception time of the data packet received by the second communication unit. Preferably, the maximum value for the latency is determined as the difference between the reception time and the reference time represented by the time information. It is conceivable that the method includes a step of decrypting encrypted transmitted time information and / or assigning the corresponding reference time to the transmitted time information in order to determine the maximum value. This embodiment allows the maximum value to be determined particularly quickly.
[0042] It is further advantageous if token messages, each comprising a piece of time information representing a reference time of the respective token message, are sent by the second communication unit to the first communication unit at intervals of time, in particular periodically. In other words, the token messages sent at intervals of time, in particular periodically, each comprise a piece of time information, wherein the time information represents a reference time of the respective token message. The time interval and / or the periodicity can be specified or specifiable as a static value or can be determined during runtime of the method. By sending the token messages at smaller time intervals, a deviation of the maximum value from the actual latency can be reduced.This can reduce false positive cases, where the determined maximum latency exceeds a specified or specifiable threshold without the actual latency exceeding the threshold. By sending the token messages at a greater time interval, the resources required to transmit the token messages can be reduced.
[0043] It is further advantageous if a time interval, in particular a periodicity, of the token messages sent at a time interval, in particular periodically, is determined or specified as a function of at least one, in particular all, of the following variables:
[0044] Fault-tolerant time interval,
[0045] Probability of exceeding the fault-tolerant time interval, probability of loss of token messages and / or data packets, transmission time of the token message, transmission time of the data packet, time interval or periodicity of the data packets.
[0046] It is conceivable that a time interval lj-oken between two consecutively sent token messages according to the inequalities iToken < (FTTI - RTT - Ißata) / (n + 1) and
[0047] P|oss n+1< Pfail is determined. Here, FTTI (Fault Tolerant Time Interval) refers to a predetermined or predeterminable fault-tolerant time interval, in particular a maximum permissible time interval between detection of an error occurrence by the first communication unit and reception of a data packet communicating the occurrence of the error by the second communication unit. RTT (Round Trip Time) refers to the sum of the transmission time of a token message from the second to the first communication unit and the transmission time of a data packet from the first to the second communication unit, loata refers to a time interval between two data packets sent consecutively by the first communication unit, n refers to a maximum permissible number of token messages sent consecutively that are not successfully transmitted to the first communication unit. P|OSS denotes a loss probability for a loss of token messages and / or data packets during transmission. Pfaii denotes a specified or specifiable probability of exceeding the FTTI.
[0048] It is conceivable that the time interval loata between two consecutively sent data packets is calculated according to the inequalities lüata < (FTTI - T Da ta) / (m + 1) and
[0049] P|oss m+1 < Pfaii is determined. Here, Toata denotes a latency or transmission time of a data packet from the first to the second communication unit, m denotes a maximum permissible number of consecutively sent data packets that are not successfully transmitted to the second communication unit.
[0050] Based on the time interval lj-oken between two consecutively sent token messages, a periodicity of the token messages can be determined as 1 / lioken.
[0051] This design provides a parameterization for the time interval or periodicity of the token messages, by means of which the requirements of an application underlying the method as well as properties of the communication connection between the communication units can be taken into account.
[0052] It is advantageous here if the time interval between the token messages sent at a time interval, in particular a periodicity of token messages sent periodically, is determined or adjusted using an extrapolation algorithm, in particular one based on a linear average, and a smoothing algorithm, in particular an exponential one. It is conceivable that an extrapolation value lioken.Ex for the time interval according to iToken.Ex = Min (lToken) + (1 ” C|) [ Max(lToken) " Min (lToken) ] is determined. Here, Max(lToken) and Min(lToken) denote predetermined or predeterminable maximum and minimum values, respectively, where Max(lToken) preferably corresponds to the fault-tolerant time interval, q denotes a quotient of the current or last determined maximum value for the latency and the fault-tolerant time interval.
[0053] Based on this extrapolation value lioken.Ex for the time interval, an adjusted time interval lioken.New can be iteratively calculated according to lToken,New,t+l = (1 Ct) lToken,New,t + CC lToken,Ex,t+l are smoothed to avoid strong fluctuations caused by individual outliers. Here, a, with a preferably less than or equal to 0.5, denotes a predefined or predeterminable weighting factor or smoothing factor, and t denotes an iteration step. These configurations allow the time interval to be determined or adjusted dynamically during the runtime of the method.
[0054] It is further advantageous if the token message comprises counter information, in particular comprised by the time information, wherein preferably a number of bits representing the counter information is determined or specified as a function of at least one, in particular all of the following variables:
[0055] Time interval or periodicity of the token messages.
[0056] Time interval or periodicity of the data packets,
[0057] Maximum possible latency of a data packet received by the second communication unit. The time information preferably consists of the counter information.
[0058] To ensure uniqueness of token messages, the number of bits representing the counter information must be dimensioned such that only half of the number range is used without confirmation. This means that with a number range from 0 to 3, corresponding to 2 bits, only the token messages with counter information 0 and 1 are sent via the second communication unit until a data packet with time reference 0 or 1 is received via the second communication unit. If a data packet with time reference 0 or 1 is received via the second communication unit, a token message with counter information 2 can be sent via the second communication unit, and so on.
[0059] This mechanism implies that the number of bits representing the counter information or the size of the number space for the token messages influences the availability of the communication system. To achieve sufficient performance, the maximum possible latency of a data packet received by the second communication unit or the maximum dwell time of the data packet in a communication network connecting the first and second communication units is preferably taken into account. This allows the number of bits representing the counter information or the size of the number space for the token messages to be selected such that a delayed data packet is not mistakenly considered current by the second communication unit.
[0060] The size of the number space N can be determined, for example, according to the inequality N > 2 [ Tmax / min (loata, lloken) " 1]. Here, l-roken denotes the time interval between consecutively sent token messages, loata the time interval between consecutively sent data packets, and Tmax a maximum latency of a data packet received by the second communication unit. The number of bits representing the counter information can be determined according to
[0061] B = rlog2Nl can be determined using a rounding function F...1. This design minimizes the resources required to communicate the time information, allowing the method to be used in a communication system with a small amount of user data, such as CAN.
[0062] It is further advantageous if the method according to the second aspect comprises a step of sending an error message to the first communication unit if the determined maximum value for the latency is greater than or equal to a predefined or predefinable threshold. In response to the sent error message, the first communication unit and / or a mobile device comprising the first communication unit, e.g., a vehicle, can be controlled to transfer the mobile device to a predefined or predefinable state. This can prevent critical operating situations due to a delay in the transmission of data packets, e.g., during remote driving of a vehicle.
[0063] Also advantageous is a computer program product or computer program with program code that can be stored on a machine-readable carrier or storage medium such as a semiconductor memory, a hard disk memory or an optical memory and is used to carry out, implement and / or control the steps of one or more methods according to one of the embodiments described above, in particular when the program product or program is executed on a computer or on one or more communication units.
[0064] In the following, the invention will be explained in more detail with reference to the drawings.
[0065] To show
[0066] Fig. 1 is a schematic representation of a
[0067] communication system;
[0068] Fig. 2 is a schematic representation of a determination of
[0069] Maximum values for latency times of data packets;
[0070] Fig. 3 is a schematic representation of a determination of
[0071] Maximum values for latency times of data packets according to an alternative embodiment;
[0072] Fig. 4 is a schematic representation of a determination of
[0073] Maximum values for latency times of data packets according to another alternative embodiment; and
[0074] Fig. 5A, B, and C each show a flowchart of a method according to the present invention. In the following description of preferred embodiments of the present invention, the same or similar reference numerals are used for the elements shown in the various figures and having a similar effect, whereby a repeated description of the elements is omitted.
[0075] Fig. 1 shows a schematic representation of a communication system 10. The communication system 10 comprises a first communication unit 14 arranged on a vehicle 12 and a second communication unit 24 arranged away from the vehicle 12. The second communication unit 24 can, for example, be part of a server backend 22.
[0076] The first communication unit 14 is connected to the second communication unit 24 via a communication network. According to this exemplary embodiment, the communication network comprises a partially wireless and a partially wired communication connection. For example, the first communication unit 14 can be connected to a base station via a mobile radio connection, which is connected to the second communication unit 24 via a wired connection.
[0077] The first communication unit comprises at least one processor 16, at least one storage medium 18 with computer program code and at least one communication interface 20, wherein the computer program code is configured to operate with the at least one processor 16 and the at least one communication interface 20 in accordance with the method according to the first aspect of the invention.
[0078] The second communication unit comprises at least one processor 26, at least one storage medium 28 with computer program code, and at least one communication interface 30. The computer program code is configured such that, together with the at least one processor 16 and the at least one communication interface 20, it causes the second communication unit 24 to be operated according to the method according to the second aspect of the invention. The first communication unit 14 is configured to periodically send data packets DPi with payload data to the second communication unit 24. The data packets DPi are sent, for example, at a time interval 10ata. The second communication unit 24 is configured to receive the data packets DPi.
[0079] To determine the maximum latency value for a received data packet DPi, the second communication unit 24 is configured to periodically send token messages Ti containing time information representing a reference time of the respective token message Ti to the first communication unit 14. The token messages Ti are sent, for example, at a time interval Loken. In particular, the token messages Ti are also sent when no data packet DPi is received in order to provide the first communication unit 14 with current time information.
[0080] According to one embodiment, the first communication unit 14 is configured to add the time information comprised by the token message Ti last received by means of the first communication unit 14 to a data packet DPi to be sent to the second communication unit 24.
[0081] According to an alternative embodiment, the first communication unit 14 is configured to add to a data packet DPi to be sent to the second communication unit 24 the time information included in the received token messages Ti, which represents the most recent reference time.
[0082] It is conceivable that the time information contained in the token messages Ti includes the respective reference time unencrypted. The first communication unit 14 is then configured to compare the reference times contained in the received token messages Ti with each other in order to select the time information representing the most recent reference time and add it to the data packet DPi to be transmitted.
[0083] Alternatively, it is conceivable that the time information comprised by the token messages Ti comprises the respective reference time in encrypted form. Preferably, the token messages Ti then each comprise counter information relating to a sequence number of the respective token message Ti. The second communication unit 24 is configured to add counter information to the token message Ti, wherein the counter information or the sequence numbers of temporally successive token messages Ti increase monotonically. The first communication unit 14 is then configured to compare the counter information comprised by the received token messages Ti with one another in order to select the counter information representing the highest sequence number and thus the time information representing the most recent reference time, and to add the time information to the data packet DPi to be transmitted.
[0084] The second communication unit 24 is configured to receive the data packets DPi sent by the first communication unit 14 comprising the time information included in the respective token message Ti.
[0085] The second communication unit 24 is further configured to determine a maximum value for the latency for each of the received data packets DPi based on the time information included in the respective data packet DPi, preferably as the difference between a reception time of the respective data packet DPi and the reference time represented by the time information.
[0086] Fig. 2 shows a schematic representation of determining maximum values Li, L2, L3 for a latency ti at ,i, tiat,2, of data packets DPi, DP2, DP3, which are transmitted from a first communication unit 14 to a second communication unit 16, for example in a communication system 10 according to Fig. 1.
[0087] At time t=15, a first token message Ti comprising a reference time t re f,i=15 of the token message Ti representing time information h is sent to the first communication unit 14 by means of the second communication unit 24.
[0088] At time t = 17, the first token message Ti is received by the first communication unit 14.
[0089] At time t=20, a second token message T2 comprising a reference time t re f,2=20 of the second token message T2 representing time information i2 is sent to the first communication unit 14 by means of the second communication unit 24.
[0090] At time t=22, the second token message T2 is received by the first communication unit 14. In response to the received second token message T2, the first time information ii is discarded by the first communication unit 14 and replaced by the second time information i2. In other words, upon receiving the second token message T2, the time information ii, which represents the most recent reference time t re f,i=15, is replaced by the time information i2, which represents the even more recent reference time t re f,2=20 represents.
[0091] At time t=23, a first data packet DPi comprising first payload data and the time information i2 comprised by the second token message T2 is sent to the second communication unit 24 by means of the first communication unit 14.
[0092] At time t=24, the first data packet DPi is received by the second communication unit 24. Based on the time information i2 included in the first data packet DPi, the second communication unit calculates a maximum value Li for the latency ti at ,i of the first data packet DPi. The maximum value Li for the latency ti at ,i of the first data packet DPi as the difference between the time t=24 of receiving the first data packet DPi and the reference time t included in the first data packet DPi and represented by the time information i2 re f,2 of the second token message T2.
[0093] At time t=25, a third token message T3 comprising a reference time t reThe time information i2 representing f,3=25 of the third token message T3 is sent by the second communication unit 24 to the first communication unit 14. In response to the received third token message T3, the second time information i2 is discarded by the first communication unit 14 and replaced by the third time information i2. Furthermore, at time t=25, a second data packet DP2 comprising second payload data and the time information i2 comprised by the second token message T2 is sent by the first communication unit 14 to the second communication unit 24.
[0094] At time t=26, the second data packet DP2 is received by the second communication unit 24. Based on the time information i2 included in the second data packet DP2, a maximum value L2 for the latency ti is determined by the second communication unit. at,2 of the second data packet DP2. The maximum value L2 for the latency ti at ,2 of the second data packet DP2 as the difference between the time t=26 of receiving the second data packet DP2 and the reference time t included in the second data packet DP2 and represented by the time information i2 re f,2 of the second token message T2.
[0095] At time t=27, the third token message T3 is received by the first communication unit 14.
[0096] At time t=28, a third data packet DP3 comprising third payload data and the time information included in the third token message T3 is sent to the second communication unit 24 by means of the first communication unit 14.
[0097] At time t=29, the third data packet DP3 is received by the second communication unit 24. Based on the time information is included in the third data packet DP3, a maximum value L3 for the latency ti is determined by the second communication unit at ,3 of the third data packet DP3. The maximum value L3 for the latency ti at ,3 of the third data packet DP3 as the difference between the time t=29 of receiving the third data packet DP3 and the reference time t included in the third data packet DP3 and represented by the time information is re f,3 of the third token message T3.
[0098] The reference times t re f,i, tref.i, t re f,i represent a current system time tref.i, tref,2, t ref,3 of the second communication unit 24 at a time of generating the respective token message Ti, T2, T3. Fig. 3 shows a schematic representation of determining maximum values Li, l_2, L3 for a latency ti at ,i, tiat,2, of data packets DPi, DP2, DP3 according to an alternative embodiment.
[0099] Compared to Fig. 2, the method according to Fig. 3 differs in that the reference times tref.i, tref,2, t re f,3 of the token messages Ti, T2, T3 representing time information ii, i2, is encrypted time information ei, 62, es are. In contrast to Fig. 2, the token messages Ti, T2, T3 are not assigned the current system time t re f,i,t ref,2, tref,3 of the second communication unit 24 are not added when generating the respective token message Ti, T2, T3, but rather an encrypted time information ii=ei=encr(15), i2=e2=encr(20), is=es=encr(25) determined using an encryption function encr. Accordingly, the data packets DP1, DP2, DP3 according to the alternative embodiment include the encrypted time information 62, 62, es.
[0100] To determine the maximum values Li, L2, L3 for the latency ti at ,i, tiat,2, of the data packets DPi, DP2, DP3, the encrypted time information 62, 62, es of the respective data packet DPi, DP2, DP3 is first decrypted using a decryption function decr in order to obtain the reference time t encrypted by the respective data packet DPi, DP2, DP3 re f, 2, t re f,2, t re f,3. Then the maximum value Li, L2, L3 for the latency ti at,i, tiat,2, as the difference between the time of receipt of the respective data packet DPi, DP2, DP3 and the decrypted reference time t re f, 2, t re f,2, tref, 3 is determined.
[0101] Fig. 4 shows a schematic representation of determining maximum values Li, L2, L 3J LI-, L2', L3' for a latency time ti at .i, ti a t,2, tiat,3, tiat,r, ti a t,2', tiat,3' of data packets DPi, DP2, DP3, DPr, DP2, DPs' according to an alternative embodiment. In this case, the communication system comprises, in addition to the first communication unit 14 and the second communication unit 24, a further first communication unit 14'.
[0102] Compared to Fig. 2, the method according to Fig. 4 differs in that the token messages Ti, T2, T3 are sent simultaneously to the first communication unit 14 and the further first communication unit 14' by means of the second communication unit 24. At time t=17, the first token message Ti is also received by the further first communication unit 14'.
[0103] At time t=18, a further first data packet DPr comprising further first payload data and the time information h comprised by the first token message Ti is sent to the second communication unit 24 by means of the further first communication unit 14'.
[0104] At time t = 19, the further first data packet DPr is received by the second communication unit 24. Based on the time information h included in the further first data packet DPr, a maximum value Lr for the latency ti is determined by the second communication unitat ,r of the further first data packet DPr is determined. Here, the maximum value Lr for the latency time tiat,r of the further first data packet DPr is determined as the difference between the time t=19 of receiving the further first data packet DPr and the reference time t encompassed by the further first data packet DPr and represented by the time information h re f,i of the first token message Ti.
[0105] At time t=22, the second token message T2 is received by the further first communication unit 14.
[0106] At time t=23, a further second data packet DP2' comprising further second payload data and the time information i2 comprised by the second token message T2 is sent to the second communication unit 24 by means of the further first communication unit 14'.
[0107] At time t=24, the further second data packet DP2' is received by the second communication unit 24. Based on the time information i2 included in the further second data packet DP2', a maximum value L2' for the latency ti is determined by the second communication unit at ,2' of the further second data packet DP2' is determined. Here, the maximum value L2' for the latency time tiat,2' of the further second data packet DP2' is determined as the difference between the time t=24 of receiving the further second data packet DP2' and the reference time t included in the further second data packet DP2' and represented by the time information i2 re f,2 of the second token message T2.
[0108] At time t=26, a further third data packet DPs' comprising further third payload data and the time information i2 comprised by the second token message T2 is sent to the second communication unit 24 by means of the further first communication unit 14'.
[0109] At time t=27, the third token message T3 is received by the further first communication unit 14'. Furthermore, at time t=27, the further third data packet DPs' is received by the second communication unit 24. Based on the time information i2 included in the further third data packet DPs', a maximum value l_3' for the latency ti is determined by the second communication unit. at '3' of the further third data packet DPs'. Here, the maximum value Ls- for the latency ti at'3' of the further third data packet DPs' as the difference between the time t=27 of receiving the further third data packet DPs' and the reference time t comprised by the further third data packet DPs' and represented by the time information i2 re f,2 of the second token message T2.
[0110] Fig. 5 shows in Fig. 5A,B,C each a flow diagram of a method according to the present invention.
[0111] Fig. 5A shows a flowchart of a method for operating a first communication unit of a communication system to determine, by means of the second communication unit, a maximum value for a latency of a data packet transmitted from the first communication unit to a second communication unit of the communication system. The method is designated in its entirety by reference numeral 100.
[0112] In step 110, at least one token message sent from the second communication unit to the first communication unit, comprising time information representing a reference time of the token message, is received by means of the first communication unit.
[0113] In step 120, a data packet containing the time information comprised by the at least one received token message is sent to the second communication unit by means of the first communication unit in order to determine the maximum value for the latency of the data packet transmitted from the first communication unit to the second communication unit based on the time information comprised by the data packet by means of the second communication unit.
[0114] Fig. 5B shows a flowchart of a method for operating a second communication unit of a communication system to determine a maximum value for a latency of a data packet transmitted from a first communication unit of the communication system to the second communication unit by means of the second communication unit. The method is designated in its entirety by reference numeral 200.
[0115] In step 210, at least one token message comprising time information representing a reference time of the token message is sent to the first communication unit by means of the first communication unit.
[0116] In step 220, the second communication unit receives the data packet transmitted from the first communication unit to the second communication unit with the time information included in the at least one sent token message.
[0117] In step 230, the second communication unit determines the maximum value for the latency of the data packet transmitted from the first communication unit to the second communication unit based on the time information included in the data packet.
[0118] Fig. 5C shows a flowchart of a method for operating a communication system comprising a first communication unit and a second communication unit, in order to determine a maximum value for a latency of a data packet transmitted from the first communication unit to the second communication unit by means of the second communication unit. The method is designated in its entirety by reference numeral 300. In step 310, at least one token message comprising time information representing a reference time of the token message is sent to the first communication unit by means of the first communication unit.
[0119] In step 320, the first communication unit receives the at least one token message sent from the second communication unit to the first communication unit, comprising the time information representing the reference time of the token message.
[0120] In step 330, a data packet containing the time information comprised by the at least one received token message is sent to the second communication unit by means of the first communication unit.
[0121] In step 340, the second communication unit receives the data packet transmitted from the first communication unit to the second communication unit with the time information included in the at least one sent token message.
[0122] In step 350, the second communication unit determines the maximum value for the latency of the data packet transmitted from the first communication unit to the second communication unit based on the time information included in the data packet.
Claims
- 26 - Claims 1. Method (100) for operating a first communication unit (14,14') of a communication system (10) to determine a maximum value for a latency of a data packet transmitted from the first communication unit (14,14') to a second communication unit (24) of the communication system (10) by means of the second communication unit (24), comprising the following steps: Receiving (110) at least one token message sent from the second communication unit (24) to the first communication unit (14,14') comprising time information representing a reference time of the token message by means of the first communication unit (14,14'); and Sending (120) the data packet containing the time information contained in the at least one received token message to the second communication unit (24) via the first communication unit (14,14') in order to determine the maximum value for the latency of the data packet transmitted from the first communication unit (14,14') to the second communication unit (24) based on the time information contained in the data packet via the second communication unit (24).
2. Method (100) according to claim 1, characterized by a step of receiving a further token message sent by the second communication unit (24) to the first communication unit (14,14') comprising time information representing a reference time of the further token message by means of the first communication unit (14,14'), wherein the sent data packet comprises the time information included by the token message last received by means of the first communication unit (14,14') or the time information included by the received token messages which represents the most recent reference time.
3. Method (100) according to claim 2, characterized in that the token message and the further token message each contain one, in particular of the time information included, counter information, wherein the time information representing the most recent reference time is selected based on the counter information. Method (200) for operating a second communication unit (24) of a communication system (10) to determine a maximum value for a latency of a data packet transmitted from a first communication unit (14,14') of the communication system (10) to the second communication unit (24) by means of the second communication unit (24), comprising the following steps: Sending (210) at least one token message comprising time information representing a reference time of the token message to the first communication unit (14,14') via the second communication unit (24); Receiving (220) the data packet transmitted from the first communication unit (14, 14') to the second communication unit (24) with the time information contained in the at least one transmitted token message by means of the second communication unit (24); and determining (230) the maximum value for the latency of the data packet transmitted from the first communication unit (14, 14') to the second communication unit (24) based on the time information contained in the data packet by means of the second communication unit (24). Method (200) according to claim 4, characterized in that the maximum value for the latency is further determined based on a reception time of the data packet received by means of the second communication unit (24), wherein the maximum value for the latency is determined in particular as the difference between the reception time and the reference time represented by the time information.Method (200) according to claim 4 or 5, characterized in that token messages, each comprising a time information representing a reference time of the respective token message, are sent to the first communication unit (14,14') by means of the second communication unit (24) at intervals, in particular periodically. Method (200) according to claim 6, characterized in that a time interval, in particular a periodicity, of the time-interval, in particular periodically, sent token messages is determined or specified as a function of at least one, in particular all, of the following quantities: - Fault-tolerant time interval, - Probability of exceeding the fault-tolerant time interval, - Probability of loss of token messages and / or data packets, - Transmission time of the token message, - Data packet transmission time, - Time interval or periodicity of the data packets. Method (200) according to claim 7, characterized in that the time interval of the time-spaced token messages is determined using an extrapolation algorithm, in particular one based on a linear average, and a smoothing algorithm, in particular an exponential one. Method (200) according to any of the preceding claims, characterized in that the token message includes counter information, in particular time information, wherein preferably a number of bits representing the counter information is determined or specified depending on at least one, in particular all of the following quantities: Time interval or periodicity of token messages. Time interval or periodicity of the data packets, maximum possible latency of a data packet received by means of the second communication unit (24). Method (300) for operating a communication system (10) comprising a first communication unit (14,14') and a second communication unit (24) in order to determine a maximum value of a latency of a data packet transmitted from the first communication unit (14,14') to the second communication unit (24) by means of the second communication unit (24), comprising the following steps: - 29 - Operating the first communication unit (14,14') according to the method (100) according to any one of claims 1 to 3; and operating the second communication unit (24) according to the method (200) according to any one of claims 4 to 9.The communication unit (14,14') is configured to receive at least one token message, comprising a reference time of the token message, sent from a second communication unit (24) of a communication system (10) comprising the first communication unit (14,14') and the second communication unit (24) to the first communication unit (14,14'), and to send a data packet containing the time information included in the token message to the second communication unit (24) in order to determine a maximum value for a latency of the data packet transmitted from the first communication unit (14,14') to the second communication unit (24) based on the time information included in the data packet by means of the second communication unit (24).The communication unit (24), which is configured to send at least one token message comprising time information representing a reference time of the token message to a first communication unit (14,14') of a communication system (10) comprising the first communication unit (14,14') and the second communication unit (24), to receive a data packet transmitted from the first communication unit (14,14') to the second communication unit (24) containing the time information contained in the at least one sent token message, and to determine a maximum value for a latency of the data packet transmitted from the first communication unit (14,14') to the second communication unit (24) based on the time information contained in the data packet. - 30 - 13. Communication system (10) comprising a first communication unit (14,14') according to claim 11 and a second communication unit (24) according to claim 12.
14. Computer program or computer programs comprising instructions which, when executed by a first communication unit (14, 14') according to claim 11, cause it to execute the method (100) according to any one of claims 1 to 3, and / or by a second communication unit (24) according to claim 12, cause it to execute the method (200) according to any one of claims 4 to 9, and / or by a communication system (10) according to claim 13, cause it to execute the method (300) according to claim 10.
15. Machine-readable storage medium on which at least one of the computer programs according to claim 14 is stored.
