Abstract
Driven by the rapid advancement of intelligence and connectivity, traditional distributed and signal-oriented automotive architectures are gradually being replaced by centralized, service-oriented architectures. In response to this transition, In-Vehicle Networks (IVNs) are expected to deliver high bandwidth, hard real-time performance, high reliability, and service-oriented capabilities. Data Distribution Service (DDS) and Time-Sensitive Networking (TSN) provide key technical support from the perspectives of service orientation and quality of service, respectively. Consequently, the integration of DDS and TSN has become a focal point in the field of IVNs. However, existing DDS message scheduling mechanisms cannot eliminate publishing time jitter, which prevents effective integration with deterministic scheduling mechanisms at the TSN layer, particularly the Time-Aware Shaper (TAS). To enable deterministic DDS communication in the DDS over TSN Architecture (DoTA), a Time-Triggered (TT) communication strategy based on message preemption and guard band mechanisms is proposed. This strategy is integrated into the flow controller of the DDS middleware. By scheduling a timed-event table, the publishing time of Time-Sensitive (TS) DDS messages is precisely controlled to align with the TAS mechanism. In addition, a schedulability analysis method is proposed to estimate the Worst-Case End-to-end Delay (WCED) of TS messages in DoTA. Experimental results from a physical testbed demonstrate that the proposed TT strategy can constrain the publishing time deviation of TS messages within 3 μs. When the TT strategy is jointly deployed with the TAS mechanism, both the end-to-end delay and jitter satisfy the requirements of safety-critical in-vehicle applications. Furthermore, the maximum deviation between the experimental results and the WCED estimated from the schedulability analysis is 15.4%. This indicates that the proposed method can effectively validate the feasibility of network designs and provide sufficient safety margins.
1. Introduction
The automotive Electrical Electronic Architecture (EEA) defines the topology of hardware devices, the deployment of software applications, and the communication matrix of In-Vehicle Networks (IVNs). A well-designed EEA significantly enhances vehicular performance [1]. Initially, the automotive EEA adopted a distributed design, where Electronic Control Units (ECUs) are interconnected via conventional buses such as the Controller Area Network (CAN) and the Local Interconnection Network [2,3]. With the continuous advancement of Intelligent and Connected Vehicles (ICVs), an increasing number of applications related to autonomous driving and vehicle-to-everything communication have been deployed, leading to an explosive growth in both the number of ECUs and the scale of software [4]. To reduce the number of ECUs and shorten the length of physical wiring harnesses, traditional distributed EEAs have gradually evolved into centralized architectures. In the zone-oriented centralized EEA, ECUs located in the same region are integrated into Zone Controller Units (ZCUs), and computing resources are concentrated in the Vehicular Computing Platform (VCP). Some ECUs are retained and connected to the ZCUs via CAN or 10BASE-T1S [5].
To support the transmission of massive sensor data in autonomous driving scenarios, IVNs under centralized EEA are required to offer higher bandwidth. In this context, in-vehicle Ethernet has replaced traditional buses as the backbone network. Given the stringent requirements for Quality of Service (QoS) in safety-critical in-vehicle applications, Time-Sensitive Networking (TSN) standards have been widely employed in IVNs. In particular, the Time-Aware Shaper (TAS) mechanism specified in IEEE 802.1Qbv standard [6] and the Frame Replication and Elimination for Reliability (FRER) mechanism specified in IEEE 802.1CB standard [7] enable real-time and reliable communication for safety-critical applications [8,9]. In addition, the Credit-Based Shaper [10] and Cyclic Queuing and Forwarding [11] mechanisms in TSN are widely used for traffic shaping in automotive infotainment systems, while the Asynchronous Traffic Shaper [12] mechanism is commonly employed for scheduling aperiodic traffic.
To accommodate increasingly dynamic and complex communication requirements and align with the evolution toward software-defined vehicles [13], Service-Oriented Architecture (SOA) has been introduced into zone-oriented centralized EEA [14]. At present, mainstream service-oriented middleware solutions include Scalable Service-Oriented Middleware over IP (SOME/IP) and Data Distribution Service (DDS), both of which have been standardized within the Automotive Open System Architecture [15,16]. Compared with SOME/IP, DDS demonstrates lower communication latency on automotive-grade hardware platforms [17]. Moreover, DDS provides a comprehensive set of QoS policies and security mechanisms, making it a more promising solution for IVNs.
In our previous work, a DDS over TSN Architecture (DoTA) was proposed to integrate DDS and TSN in IVNs, thereby improving the QoS of service-oriented in-vehicle communication [18]. The effective operation of DoTA relies on the tight coordination between DDS and TSN. TSN ensures deterministic data transmission through traffic scheduling and shaping mechanisms, such as TAS. At the middleware level, DDS is required to precisely control the publishing timing of DDS messages so that the publishing times are aligned with the underlying TSN mechanisms. However, existing DDS middleware lacks deterministic message scheduling strategies, making it difficult to avoid jitter in message publishing time. This limitation prevents DoTA from fully satisfying the QoS requirements of safety-critical in-vehicle applications. To address this issue, this paper investigates a deterministic communication mechanism for DDS middleware to enable the coordinated operation of DDS and TSN.
The main contributions of this paper are summarized as follows:
- To ensure strict alignment between DDS message publication and TSN mechanisms, a Time-Triggered (TT) communication strategy based on Message Preemption (MP) and guard band mechanisms is proposed. This middleware-level strategy achieves the isolation of Time-Sensitive (TS) and Best-Effort (BE) DDS messages. Through the scheduling of a timed-event table, the publishing instants of TS DDS messages are precisely controlled, thereby improving the determinism of DDS communication.
- A transmission model for DDS messages in DoTA is constructed. Based on this model, a Worst-Case End-to-End Delay (WCED) analysis method for TS DDS messages is proposed using the Compositional Performance Analysis (CPA) framework, which provides a reliable approach for network design validation.
- A physical testbed, compliant with zone-oriented centralized EEA and built on automotive-grade devices, is established. Experimental evaluations are conducted to validate the effectiveness of the proposed TT strategy and the WCED analysis method.
The rest of this paper is organized as follows. Section 2 reviews the technical background and related works on DDS, TSN, and DoTA. Section 3 details the proposed time-triggered strategy based on MP and guard band mechanisms. In Section 4, a transmission model for DDS messages under DoTA is presented, and a WCED analysis method for TS messages is proposed based on CPA. Section 5 presents and evaluates the experimental results. Finally, Section 6 concludes the paper and outlines directions for future work.
2. Background
2.1. DDS and TSN
In 2004, the Object Management Group (OMG) released the DDS standard, which defines a data-centric publish–subscribe model. Within this model, each data type is mapped to a specific topic. The Real-Time Publish-Subscribe (RTPS) protocol specifies that DDS communication can only be established between DataWriters and DataReaders that share the same topic and satisfy QoS compatibility requirements [19].
DDS middleware schedules message publication through a flow controller. Taking Fast DDS as an example, four flow control strategies are supported: First-In First-Out (FIFO), Round Robin (RR), High Priority (HP), and Priority with Reservation (PR), as illustrated in Figure 1a–d. Under FIFO, DDS messages are transmitted strictly in order of arrival. This strategy does not account for priority or bandwidth requirements, which may result in prolonged blocking of TS messages by BE messages. The RR strategy ensures fair bandwidth sharing among DataWriters, but likewise neglects priority differentiation. The HP strategy schedules DDS messages in descending order of priority. To mitigate starvation of low-priority messages, the PR strategy extends HP by incorporating a bandwidth reservation mechanism that allocates bandwidth to DataWriters on demand.
Figure 1.
Scheduling mechanisms in DDS and TSN.
As shown in Figure 1e, if a low-priority message arrives earlier in the flow controller queue, the PR scheduler initiates its transmission. When such a sample is large and requires fragmentation, subsequently arriving high-priority messages must be blocked until the reserved bandwidth for the low-priority message is fully utilized. As the reserved bandwidth for low-priority streams increases, the blocking delay experienced by high-priority messages becomes more pronounced, which is unacceptable for TS messages. A similar issue is also observed when the HP strategy is applied.
Since 2012, the TSN working group has released a series of enhanced standards to ensure real-time, reliable, and deterministic data transmission in switch-based networks [20]. Among these, the TAS mechanism has been widely adopted in IVNs due to its ability to provide hard real-time guarantees. Each switch port maintains eight egress queues to handle messages with different priority levels (0–7). TAS schedules the transmission of messages by controlling the gates of these queues through a Gate Control List (GCL), as illustrated in Figure 1f. Each port is associated with an independent GCL, which is typically preconfigured by network designers and executed cyclically. For instance, at time T0 in Figure 1f, according to the corresponding GCL entry, the gates of queues with priorities 0–6 are closed, while the gate corresponding to priority 7 is opened. When multiple queue gates are open simultaneously, TAS applies a strict-priority scheduling policy by default, giving precedence to messages in higher-priority queues.
2.2. DDS over TSN Architecture
As illustrated in Figure 2, DoTA incorporates the fully centralized network configuration model specified in IEEE 802.1Qcc [21] within the Software-Defined Networking (SDN) paradigm [22]. In the control plane, the TSN controller is composed of a Centralized User Configuration (CUC) unit and a Centralized Network Configuration (CNC) unit, enabling centralized network management. The CUC and CNC units exchange information through the User/Network Interface (UNI).
Figure 2.
The DDS over TSN architecture based on centralized network management.
According to the communication requirements of in-vehicle applications, the QoS policies of the DDS middleware are configured accordingly. During the network initialization phase, the stream characteristics and QoS requirements of DDS applications are uploaded to the CUC via the northbound interface, i.e., the DDS centralized discovery protocol. After aggregation, stream information is forwarded to the CNC through the UNI. Meanwhile, TSN switches report local TSN capabilities to the CNC via the southbound interface, i.e., the NETCONF protocol, allowing the CNC to maintain a global view of IVNs. Routing and traffic scheduling algorithms are deployed within the CNC. Using inputs from both the application plane and the data plane, these algorithms generate TSN configurations (e.g., GCL entries) that satisfy the specified QoS requirements. The CNC subsequently updates the configurations of TSN switches in the data plane via the NETCONF protocol, ensuring the TAS mechanism is properly applied to DDS messages.
The configuration status of the TSN switch is fed back to the CNC via the southbound interface. Once all switches have completed the configuration update, the TSN configuration information is disseminated by the CUC to DDS applications through built-in topics defined in the northbound interface. Subsequently, applications are able to publish and subscribe to the corresponding DDS messages on user-defined topics.
In DoTA, TS messages are assigned dedicated transmission windows by the TAS mechanism. However, under the flow control strategies illustrated in Figure 1a–d, blocking of TS messages is inevitable. If a TS message is blocked and misses its designated transmission window, it must wait until the corresponding queue gate reopens. This disrupts the preconfigured transmission schedule and negatively affects the deterministic transmission of subsequent messages.
2.3. Related Works
Previous studies have highlighted the necessity of integrating DDS and TSN. Experimental results reported by Guijarro et al. [23] indicate that, without TSN mechanisms, the maximum end-to-end delay of Connext DDS reaches 10 ms and 5 ms under bursty and continuous video stream interference, respectively. With TSN enabled, the end-to-end delay is reduced to below 1 ms. Agarwal et al. [24] proposed a DDS-based multi-layer TSN architecture that achieves both high throughput and low latency in the transmission of synchronized three-phase measurement data. Sudhakaran et al. [25] mapped DDS QoS requirements to wireless TSN, enabling QoS guarantees for Wi-Fi communication within a ROS2 environment. The above studies confirm that the QoS of DDS communications is significantly enhanced with TSN enabled.
In 2023, the first test version of the DDS–TSN standard [26] was released by OMG. This standard extends the RTPS protocol to support TSN and defines two transport models based on UDP/IP and Ethernet. To date, the standard is still being refined, and many technical aspects of DDS–TSN remain to be standardized. Several studies have focused on the coordinated application of DDS and TSN in IVNs. Lu et al. [27] proposed a fully centralized network configuration model for TSN scheduling of DDS messages. The QoS requirements of DDS streams are statically configured to the network controller during the design phase, which is inconsistent with the dynamic nature of SOA. Nam et al. [28] designed a novel TSN-oriented DDS semantic-aware integration framework. Unlike traditional conceptual models, this framework employs a dual-layer semantic interpretation to bridge the gap between QoS requirements and TSN configuration. Zhang et al. [29] developed a lightweight DDS middleware, namely LW DDS, by restructuring the software architecture in the context of DDS–TSN integration. Compared with standard DDS, LW DDS achieves lower resource consumption and end-to-end delay. Li et al. [30] developed an SDN-based DDS–TSN framework, in which a multicast spanning tree-based scheduling algorithm is integrated to achieve path control and deterministic scheduling of multicast streams.
Another research direction focuses on schedulability analysis methods for IVNs. The objective of schedulability analysis is to evaluate the WCED of data streams in real-time systems, which is widely used to verify the validity of network design. Existing approaches include network calculus, trajectory-based methods, holistic methods, and intelligent algorithms. As a representative holistic approach, CPA has shown superior performance in complex scenarios [31]. Early work applied CPA to the schedulability analysis of individual TSN mechanisms, such as TAS [32] and frame preemption [33]. As research progressed, CPA has been extended to analyze WCED in scenarios involving the integration of multiple TSN mechanisms [34]. Sciangula et al. [35] derived the WCED of DDS messages using CPA within a multi-threaded system model. As of now, this remains the only study addressing schedulability analysis for DDS. Although it is limited to the Fast DDS middleware, the proposed analytical framework provides valuable insights for schedulability analysis to other DDS implementations. Furthermore, Sciangula et al. identified schedulability analysis in DDS–TSN integrated scenarios as an important area for future research.
In summary, the integration of DDS and TSN provides reliable QoS guarantees for in-vehicle service-oriented communication. Existing research aims to design and optimize DDS–TSN frameworks and TSN network-layer scheduling algorithms. However, the issue of poor determinism in DDS middleware has not been addressed, which prevents the existing DDS–TSN frameworks from guaranteeing deterministic communication. Moreover, prior schedulability analyses have been performed separately for either DDS or TSN, with no dedicated method proposed for integrated DDS–TSN scenarios. Accordingly, these challenges constitute the main focus of this paper.
3. Deterministic Communication Method for DDS
In this section, the impact of publishing jitter in DDS messages is analyzed in the context of DoTA. To enhance the determinism of DDS communication, a time-triggered communication strategy based on MP and guard band mechanisms is proposed. This section establishes a DDS message publishing model based on the TT strategy and presents its implementation workflow in detail.
3.1. Problem Analysis
According to the GCL of the TAS mechanism, each TS DDS message is assigned a dedicated transmission window. In the normal scenario depicted in Figure 3a, the publishing instants of TS messages are strictly aligned with the transmission windows defined in the GCL. As a result, TS messages are transmitted within their pre-scheduled time slots, thereby ensuring deterministic end-to-end latency. However, in practical deployments, the publishing instants of TS DDS messages cannot be precisely controlled by the flow controller. As illustrated in the timeout scenario in Figure 3b, Link 1 and Link 2 represent two consecutive links along the transmission path of DDS messages. The first TS message arrives at Link 1 slightly later due to blocking in the flow controller. If the message misses its designated transmission window, it remains queued at the switch port until the corresponding gate reopens. Since messages are forwarded in FIFO order in the switch queue, the timeout message occupies the subsequent transmission window, which propagates blocking effects to the following messages. All subsequent messages in the queue will be blocked for an extended period of time.
Figure 3.
Transmission timing of DDS messages in TSN: (a) The normal scenario. (b) The message timeout scenario.
The above analysis indicates that DDS middleware needs to support deterministic communication to align with the TAS mechanism in TSN. Otherwise, jitter in publishing instants may adversely affect the end-to-end latency of TS messages. The remainder of this section presents the proposed deterministic communication method for DDS in detail.
3.2. DDS Message Publishing Model with the TT Strategy
To prevent TS DDS messages from being blocked in the flow controller, a TT strategy based on MP and guard band mechanisms is proposed. Figure 4 illustrates the DDS message publishing model under the proposed TT strategy. It is worth noting that the DDS middleware employed in this study is developed based on our previous work [18]. Building upon this implementation, the software architecture of LW DDS [29] is adopted and further extended to support Ethernet-based DDS communication.
Figure 4.
DDS message publishing model based on the TT strategy. TS and BE messages are isolated using the TSQ and PQ. The timed-event table is employed to precisely control the publishing timing of TS messages.
To bound the blocking caused by BE messages, a Time-Sensitive Queue (TSQ) and a Preemptable Queue (PQ) are introduced to enable TS messages to preempt BE messages. The opening and closing of these two queues are independently controlled by dedicated gates. DDS messages in each queue are published in FIFO order only when the corresponding gate is open. Specifically, after each fragment of BE messages is published, the flow controller thread checks for pending TS messages. This ensures that TS messages are not excessively delayed by large BE messages. This procedure is referred to as the MP mechanism. The flow controller forwards DDS messages stored in the HistoryCache to the data link layer through an Ethernet Raw Socket interface. Subsequently, complete Ethernet frames are transmitted to the physical layer.
TS messages perform preemption on BE messages at the granularity of message fragments. The maximum blocking is bounded by a maximum-sized fragment of BE messages. Consequently, with the MP mechanism, the blocking introduced by BE messages has a deterministic upper bound. To completely eliminate blocking caused by BE messages, a guard band mechanism is introduced. Specifically, a timed-event table is designed to schedule the publishing of DDS messages. The gates of the TSQ and PQ are controlled by the timed-event table, enabling precise regulation of the publishing instants of TS messages.
During the middleware initialization phase, timed events are registered into the timed-event table by RTPSWriters. The registered information includes the trigger time (i.e., the publishing instant of TS messages), the event period, a pointer to the HistoryCache, and the sequence number of the DDS message to be published. This information is disseminated to the DDS middleware by the CUC via built-in topics. Entries in the timed-event table are ordered in ascending order of their trigger times. When the trigger time of a timed event is reached, the flow controller opens the TSQ gate to publish the corresponding TS message; otherwise, the PQ gate remains open to publish BE messages. It should be noted that the PQ gate must be closed prior to the trigger time of a timed event. The advance interval corresponds to the guard band length, i.e., the time required by the flow controller to process the largest fragment, thereby preventing TS messages from being blocked by BE messages in the PQ.
On the other hand, each TS message is assigned a dedicated trigger time in the timed-event table, preventing mutual blocking among TS messages. Based on the above analysis, the proposed TT strategy effectively eliminates blocking of TS messages within the flow controller, thereby guaranteeing deterministic DDS communication.
3.3. Implementation of the TT Strategy
Figure 5 presents the implementation workflow of the proposed TT strategy. During initialization, the flow controller thread opens the gates of the TSQ and PQ, and retrieves the trigger time of the next timed event from the timed-event table, denoted as . The PQ gate is scheduled to close at time , where . represents the upper bound of blocking induced by BE messages, i.e., the time required for the flow controller thread to process a maximum-sized fragment. This interval is introduced to prevent TS messages from being blocked by BE messages. Therefore, is referred to as the guard band duration. In practical applications, the value of is obtained through extensive physical experiments.
Figure 5.
The implementation workflow of the TT strategy. The flow controller thread consists of four states: initialization, processing TSQ, processing PQ, and blocking. After startup, the thread repeatedly schedules DDS messages in a cyclic manner. The RTPSWriter in the publisher thread writes BE messages into the PQ and subsequently wakes up the flow controller thread for message scheduling.
If the system time has not yet reached , the flow controller thread processes BE messages in the PQ. For messages with large payloads, the transmission is performed at the fragment level. After each successful transmission of a DDS message or fragment, the system time is re-evaluated to determine whether has been reached, which is essential for enabling the MP mechanism. If has not been reached, messages in the PQ continues to be processed; otherwise, the PQ gate is closed, and the flow controller thread is blocked until . At , the corresponding TS DDS message is transmitted according to the timed-event table. The trigger time of the timed event is then updated based on its period. Once the PQ gate is reopened, the flow controller thread returns to the initialization state and repeats the above procedure.
If the system time has not reached and the PQ is empty, the flow controller thread enters a blocking state. The thread is awakened either when a new message descriptor is inserted into the PQ by the RTPSWriter or when a timeout occurs. Once awakened, the flow controller thread returns to the initialization state and continues to process timed events and BE messages in the PQ.
3.4. Scalability Analysis of the TT Strategy
The computational overhead introduced by the proposed TT strategy mainly comes from timed-event table management and several lightweight runtime control operations. Since the timed-event table is sorted in ascending order of trigger times, the next timed event is retrieved only by accessing the first table entry. Therefore, constant-time lookup complexity can be achieved. After a timed event is triggered, its next trigger time is updated according to the corresponding period. Subsequently, the event is reinserted into the timed-event table to maintain trigger-time ordering. This process introduces additional overhead associated with entry insertion and ordered-table maintenance. The corresponding computational complexity is approximately proportional to the number of TS messages.
As the number of DDS messages increases, the runtime overhead of timed-event table maintenance correspondingly increases. However, only TS messages are managed by the proposed TT strategy, and the number of TS messages in IVNs is typically limited. Moreover, complex online scheduling or global scheduling optimization is not required during runtime. Therefore, the proposed approach remains scalable and computationally manageable for large-scale IVNs.
In addition, the guard band duration is determined offline through extensive physical experiments by measuring the Worst-Case Execution Time (WCET) of maximum-sized DDS message fragments. As a result, the determination of does not introduce additional computational overhead.
From the perspective of memory overhead, each timed-event table entry only stores the trigger time, event period, a message pointer, and a sequence number. Therefore, the memory overhead of each table entry remains constant and is independent of the DDS message payload size. As the number of TS DDS streams increases, the total memory overhead of the timed-event table grows approximately linearly with the number of managed TS messages. Since the timed-event table only maintains lightweight metadata for messages rather than complete payloads, the resulting memory overhead remains limited and suitable for large-scale IVNs.
4. Schedulability Analysis for DoTA
4.1. System Model
Figure 6 depicts the DDS message transmission model in DoTA. The publisher thread serializes data samples and encapsulates them into DDS messages. Then, message descriptors are inserted into the flow controller queue. The flow controller thread schedules DDS message publishing according to the specified strategy. The messages are forwarded to the in-vehicle TSN module via the sendto() interface. To ensure comprehensive QoS guarantees, the TAS, FRER, and frame preemption mechanisms are supported in the in-vehicle TSN module. The receiver thread performs blocking reception on a bound raw socket using the recvfrom() interface. Based on the information carried in the InfoDestination submessage, received DDS messages are placed into the HistoryCache of the corresponding RTPSReaders. The subscriber thread subsequently deserializes the data samples from the HistoryCache and delivers them to the application layer. Timed events associated with discovery are managed by the timed-event thread. To achieve deterministic DDS communication, the flow controller thread adopts the TT strategy proposed in Section 3, while the receiver thread employs the MP mechanism illustrated in Figure 4. In practical deployments, each Ethernet port is associated with a dedicated flow controller thread and receiver thread.
Figure 6.
DDS message publishing model based on the TT strategy. At the DDS middleware layer, the publisher thread, flow controller thread, receiver thread, and subscriber thread are employed to implement DDS message distribution. In addition, the timed-event thread is responsible for managing DDS discovery behavior. In the in-vehicle TSN module, the TAS, FRER, and frame preemption mechanisms are applied to guarantee QoS.
The IVNs consist of a set of physical devices, where each device is equipped with multiple CPU cores. To characterize the computational service provided by a CPU core , a supply bound function is introduced. This function represents the minimum amount of service that the core can provide within any given time interval [36]. The publisher thread, flow controller thread, receiver thread, and subscriber thread are denoted by the sets , , , and , respectively. When no distinction is required, a thread is generically denoted as t. All threads are scheduled using a partitioned fixed-priority policy; thus, each thread is statically assigned to a specific CPU core. The set contains all the threads in the core . Besides, each thread is assigned a fixed and unique priority. denotes the set of threads in core with higher priority than . The request bound function describes the upper bound on the processor time required by the thread within any time interval [37].
The set contains all DDS topics in IVNs, where each topic represents a specific data type. A DDS message published by the publisher thread on the topic is denoted as , and the set includes all DDS messages associated with topic . If a specific distinction is not required, a DDS message is generically denoted as . DDS messages within a thread are classified into TS and BE, denoted by the sets and , respectively. The set represents all DDS messages associated with thread .
The WCET of a publisher thread is denoted as . As the source thread in the data distribution process, the activation pattern of is characterized by an externally defined arrival curve . For all other threads, the activation patterns are determined by the arrival characteristics of DDS messages. For a DDS message , the arrival curves at the flow controller thread, receiver thread, and subscriber thread are denoted as , , and , respectively. Accordingly, the WCETs of message are denoted as , , and , respectively. The values of , , , and primarily depend on the payload size of the message and can be obtained through extensive hardware experiments in the absence of interference from other messages and threads. In addition, the Worst-Case Response Time (WCRT) of a DDS message within the in-vehicle TSN module is denoted as . It is assumed that a discrete-time model is adopted, in which all time-related parameters are expressed as integer multiples of a fundamental time unit (e.g., one processor cycle), denoted by .
4.2. Blocking Analysis of DDS Messages
In ICVs, safety-critical applications impose stringent QoS requirements on communication, particularly with respect to end-to-end latency. Inadequate network designs may lead to violations of these latency constraints, potentially resulting in catastrophic consequences [38]. In this section, a schedulability analysis method is proposed to evaluate the WCED of TS DDS messages during the data distribution process within DoTA.
According to the principles of CPA, the WCED of a DDS message can be formulated as the sum of the WCRTs incurred across the publisher thread, flow controller thread, in-vehicle TSN module, receiver thread, and subscriber thread, as expressed in Equation (1). Subject to the constraints of the operating system, flow controller scheduling policies, and TSN mechanisms, TS messages may experience blocking from both concurrent threads and competing messages. The following analysis identifies the sources of such blocking and establishes their upper bounds.
4.2.1. Inter-Thread Interference
TS messages may incur delays due to higher-priority threads executing on the same core, referred to as inter-thread interference. This interference can be further classified into contributions from publisher threads and non-publisher threads, based on thread type. Accordingly, the maximum inter-thread interference is expressed in Equation (2).
denotes the maximum interference incurred within the time interval from all publisher threads with higher priority than , as formulated in Equation (3). represents the set of publisher threads on core with priorities higher than that of .
The maximum interference from non-publisher threads, denoted as , refers to the maximum delay within any time interval caused by higher-priority non-publisher threads executing on the same core while executing other DDS messages. Prior to analyzing , it is necessary to determine the maximum number of DDS messages that may accumulate in a non-publisher thread () within a given time interval .
Let denote the WCRT of a DDS message in a non-publishing thread . As illustrated in Figure 7, a time interval of length is defined as the observation window, while an interval of length preceding it is defined as the history window. Message instances arriving within the observation window and the history window may contribute to the backlog observed in . Any message instance arriving before time must have completed its execution no later than , given that is the WCRT. Therefore, these instances cannot contribute to the workload within the observation window. Besides, arrivals occurring after time are outside the considered interval and do not contribute to its backlog.
Figure 7.
Backlog of DDS message instances in non-publisher threads.
Consequently, the maximum workload within the observation window can be bounded by the aggregate arrivals over both the observation and history windows. This bound can be formulated using the arrival curve . Note that is introduced to facilitate the derivation of the WCRT of DDS messages. However, its formulation itself depends on the WCRT, which leads to an inherent circular dependency. This issue is further addressed by fixed-point iteration in Section 4.3.
Based on the above analysis, is defined as the interference imposed by all message instances in non-publisher threads with higher priority than on the same core , as formulated in Equation (4). Here, denotes the set of such higher-priority non-publisher threads on . The outer summation iterates over all such higher-priority non-publisher threads in the set , while the inner summation accounts for all message instances within each thread.
4.2.2. Intra-Thread Interference
In addition to inter-thread interference, DDS messages may also experience interference within the flow controller and receiver threads, arising from other DDS messages or from previously released instances of the same message. Since such interference occurs within the same thread, it is referred to as intra-thread interference. In particular, the interference caused by previously released instances is referred to as self-interference.
The upper bound of intra-thread interference is determined by the message scheduling strategy adopted within the thread. To ensure compatibility with the TAS mechanism, the TT strategy proposed in Section 3 is employed in the flow controller thread. Under this strategy, TS messages are protected by both the MP and guard band mechanisms, thereby eliminating interference from other DDS messages. Moreover, each message instance is assigned a dedicated transmission time in the timed-event table, which prevents overlapping executions and thus eliminates self-interference. The above analysis indicates that TS messages do not suffer from intra-thread interference in the flow controller thread. Therefore, the subsequent analysis focuses on the intra-thread interference experienced by TS messages in the receiver thread.
The receiver thread adopts the MP mechanism illustrated in Figure 4. Two FIFO queues with capacities and are maintained to buffer TS and BE messages, respectively. Within the receiver thread, TS messages may be blocked by BE messages, other TS messages, and self-interference. Accordingly, the upper bound of the intra-thread interference experienced by the TS message in the receiver thread is expressed as Equation (5).
For TS messages, the upper bound on the interference caused by BE messages, denoted as , corresponds to the worst-case processing time required for the receiver thread to handle a maximum-sized fragment, as given in Equation (6). is defined as the worst-case processing time of the receiver thread for a fragment of the BE message .
To derive the upper bound on the interference caused by TS messages, denoted as , both self-interference and interference from other TS messages must be taken into account. First, the maximum number of message instances contributing to self-interference need to be identified. To this end, the concept of a busy period is introduced. As shown in Figure 8, a busy period is defined as the longest time interval during which the resource continuously processes backlogged tasks until it becomes idle for the first time. Consider a TS message instance arriving at time A in the receiver thread , where A is an arbitrary non-negative value relative to the start time of the busy period. The instance can only be interfered with by other instances that arrive within the same busy period and before begins processing. By enumerating all possible arrival times, the upper bound on the number of message instances causing self-interference can be derived, as given in Equation (7). Here, denotes the minimum number of message instances that can be processed by core within a time interval .
Figure 8.
The definition of the busy period in the receiver thread.
Equation (7) requires evaluating an unbounded number of candidate arrival instants A, which makes it impractical for direct application. To address this issue, a two-step procedure is adopted. First, the search space of A is restricted to a finite interval. Subsequently, within this bounded interval, the set of candidate values for A is further reduced to a finite number.
Since A represents an arbitrary instant within a busy period, its search range can be bounded by the maximum length of the busy period. Let denote the smallest positive solution to Equation (8). The term (a) in Equation (8) represents the service time required to process the backlogged DDS messages, while terms (b) and (c) denote the service time required to handle inter-thread interference. By definition, within any time interval of length , the minimum service provided by core is equal to the maximum service demand required to process all message instances arriving at the receiver thread. Therefore, can be regarded as an upper bound on the length of the busy period. Equation (8) is solved iteratively by evaluating the service bound function and the cumulative execution demand over increasing candidate time intervals. Starting from an initial estimation of the busy-period length, the candidate interval is progressively expanded until the minimum service provided by core becomes sufficient to satisfy the cumulative demand generated by DDS message instances and inter-thread interference. The smallest feasible interval satisfying Equation (8) is regarded as the upper bound of the busy period.
By deriving the maximum length of the busy period, the search space of A is restricted to the interval . Subsequently, the number of candidate values for A within this interval is further reduced. Since the operating system does not employ a reservation-based scheduling policy, the supply bound function of core c is given by . Consequently, Equation (7) can be simplified as Equation (9). In this process, the candidate value under analysis is treated as a constant C, which can be obtained via fixed-point iteration.
The arrival curve of message at the receiver thread is a monotonically non-decreasing, right-continuous step function. Let denote the set of its discontinuity points. Similarly, exhibits a non-decreasing stepwise behavior, and its set of discontinuity points is denoted by . Define as the merged set obtained by combining and , removing duplicates, and sorting the remaining elements in ascending order. The interval is partitioned into a finite number of subintervals by the points in . Since both and remain constant within each subinterval, is also constant. Consequently, the maximum value of must be attained at the boundaries of these subintervals. Based on the above analysis, the search space of A can be further reduced to a finite set of candidate points given by .
Following the derivation in [35], can be computed using Equations (10)–(12). The set in Equation (10) contains the interference introduced by all possible BE messages in the receiver thread within an arbitrary time interval . Here, the operator ⊎ denotes the union of multiple sets. The operator ⊗ represents the replication of elements in a set, e.g., . The interference term includes both self-interference and interference caused by other TS messages. These two types of interference are distinguished by , as shown in Equation (11). Since the capacity of the FIFO queue is , at most message instances contribute to interference. Therefore, can be expressed as Equation (12). The operator is used to compute the sum of the a largest elements in a set B.
4.2.3. Arrival-Curve Propagation
Based on the above analysis, the following design principles should be enforced to achieve deterministic DDS communication:
- The flow controller thread should be exclusively assigned to a dedicated CPU core to eliminate inter-thread interference. If there are enough CPU cores, the same configuration is applied to the receiver thread.
- Within the same CPU core, threads associated with TS messages must have higher priority than those handling BE messages, thereby preventing priority inversion.
- Within the same CPU core, the priority of the publisher thread associated with a TS message should be higher than that of other threads, preventing TS messages from missing the publish time defined in the timed-event table due to inter-thread interference.
For the TS message , the activation time of the publisher thread , as well as the transmission offset on each link, are determined by the scheduling algorithm proposed in our previous work [39]. The value of must take into account the WCETs of both the publisher thread and the flow controller thread, guaranteeing that the transmission schedule defined in the timed-event table is not violated.
According to the design principles described above, the TS message experiences a deterministic delay in the publisher thread, the flow controller thread, and the in-vehicle TSN module, which can be expressed as . Here, denotes the transmission offset on the last link, while and represent the propagation delay and transmission delay on the last link, respectively. In practice, and are treated as constants. Therefore, the arrival curve of the TS message at the receiver thread is given by Equation (13).
The WCRT of the TS message in the flow controller thread is derived in two steps. First, the time at which begins to be processed in is derived. Assume that arrives in thread at time A. Let denote the smallest positive solution to Inequality (14). By definition, within any time interval of length , the service provided by the core is sufficient to accommodate all intra-thread and inter-thread interference. Consequently, is guaranteed to start execution no later than time .
Let denote the smallest positive solution to Inequality (15). By definition, within any time interval of length , the minimum service time provided by CPU core exceeds the maximum time required to accommodate inter-thread interference, intra-thread interference, and the execution of . This means that is guaranteed to complete its processing in no later than . Thus, is the WCRT of in . Since TS messages are non-preemptive, once starts execution in thread , it is no longer subject to intra-thread interference. However, inter-thread interference may persist throughout its execution. Accordingly, the inter-thread and intra-thread interference terms in (3.19) are denoted by and , respectively.
The arrival curve of the TS message in the subscriber thread is given by Inequality (16), where is derived by jointly solving Inequality (14) and Inequality (15).
In the subscriber thread , the TS message is subject only to inter-thread interference. Using a similar derivation approach, the WCRT of in can be obtained by solving Inequality (17).
4.3. Analysis of the Worst-Case End-to-End Delay
According to the analysis in Section 4.2, under the joint deployment of the TT strategy and the TAS mechanism, the delay experienced by TS messages in the publishing thread, the flow controller thread, and the in-vehicle TSN module becomes constant. Consequently, Equation (1) can be reformulated as (18).
Algorithm A1 in Appendix A presents the WCED analysis method for TS DDS messages in DoTA, where the WCED of each TS message is calculated based on Equation (18). The input files to the algorithm are generated by the TSN controller shown in Figure 2. Specifically, in Lines 1–4, thread information and DDS message parameters are extracted from the input files to construct the system model. As discussed in Section 4.2.1, the derivation of the WCRT depends on a pre-existing value of the WCRT, leading to a circular dependency. To resolve this issue, a fixed-point iteration is performed in Lines 8–18. The iteration is initialized by setting the WCRT and its candidate values to zero. During each iteration, arrival curves are propagated and updated WCRT values are derived. The iteration ends when the WCRT obtained in the current iteration converges to that of the previous iteration, indicating that a fixed point has been reached. It is worth noting that the estimated WCRT is monotonically non-decreasing throughout the fixed-point iteration, which guarantees convergence. In Line 19, the parameters and are obtained from the TASConfig.xml file. If the FRER mechanism is applied to the TS message , is defined as the transmission offset on the last link of the fastest path.
5. Experimental Results and Analysis
5.1. Experimental Setup
To validate the effectiveness of the proposed TT strategy and the schedulability analysis method, a physical testbed conforming to the zone-oriented centralized EEA is constructed in this section. Depending on the network topology of a real vehicle, four ZCUs are designed to manage the four vehicular zones, namely ZCU-LF, ZCU-RF, ZCU-LR, and ZCU-RR. The ZCUs, the VCP and the diagnostic devices are interconnected via TSN switches to form a ring-shaped backbone network, as shown in Figure 9. Four cameras are deployed to emulate onboard sensors. In addition, a host computer is integrated into the testbed to control the execution of the physical experiments.
Figure 9.
Network topology of the physical testbed.
In the physical testbed, the NXP S32G399A is employed as the processor for the ZCUs, which features eight Cortex-A53 cores. The TI TDA4VH is used as the processor of the VCP, equipped with eight Cortex-A72 cores. The host computer is powered by an Intel i5-13500 processor. An automotive-grade Infineon 88Q5152 chip, supporting TAS, FRER, and frame preemption, is adopted as the TSN switch in the testbed. The switch provides multiple in-vehicle Ethernet interfaces, including 100/1000Base-T1, 100Base-TX, and 10Base-T1S. The diagnostic device is emulated using a Vector VN5650 Ethernet interface card, which offers 12 channels of 100/1000Base-T1 interfaces. In the CANoe simulation environment, CAPL scripts are utilized to control the VN5650 to transmit and receive diagnostic messages, thereby enabling rest-bus simulation. The cameras are emulated using Raspberry Pi kits.
All DDS messages in the physical testbed are summarized in Table A1. Among them, DDS messages with priorities 7 or 6 are classified as TS streams, while the remaining messages are treated as BE streams. The parameter configuration in Table A1 is designed with reference to the simulation model presented in [40]. Specifically, DDS messages with a period of 500 μs and small payloads (64–100 bytes) are used to emulate safety-critical control streams. Such streams are assigned high priorities (7 or 6). In contrast, DDS messages with periods ranging from 1000 to 2000 μs and larger payloads are used to emulate non-critical streams, such as sensor data streams and network management streams. Among them, sensor streams with low-latency requirements are assigned relatively high priorities (5 or 4), while the remaining streams without explicit QoS requirements are assigned lower priorities.
If the Reliability attribute of a DDS message is set to ‘R’, the FRER mechanism is applied to the message. In addition, messages related to time-synchronization are transmitted in the testbed. These messages are configured with a uniform period of 100 ms and are categorized as BE streams. Specifically, messages related to link delay measurement carry a payload of 54 bytes, while Sync messages have a payload size of 76 bytes, both complying with the IEEE 802.1AS-2020 standard. On the ZCUs and the VCP, the flow controller thread and the receiver thread are deployed on dedicated CPU cores. According to the design principles proposed in Section 4.2.3, the remaining threads are assigned specific CPU cores and priorities.
5.2. Evaluation of the TT Strategy
To validate the effectiveness of the proposed TT strategy, this section conducts physical experiments using the TS message with ID 7 as the target message. The end-to-end delay bound of the target message is set to 300 μs, while the jitter bound is set to 100 μs. To introduce interference, several publisher threads of BE messages are activated at random time instants before the target message. The payload size of BE messages is randomly selected in the range of 100 to 8000 bytes. During the experiments, four scheduling strategies, i.e., FIFO, HP, MP, and TT, are applied to the flow controller thread. The number of BE messages varies from 5 to 25 with a step size of 5. In the baseline scenario, the transmission and reception of all Ethernet frames except the target TS message are disabled to minimize potential blocking.
The worst-case arrival time of the TS message at the in-vehicle TSN module in the baseline scenario is recorded as . In the remaining experiments, the performance metric is defined as the difference between the arrival time of the TS message at the TSN module and . It should be noted that, when the TT strategy is applied, the transmission time of the TS message in the timed-event table is configured as . Each experimental configuration is executed 10,000 times. The publishing time deviation and the worst-case end-to-end delay of the target DDS message are illustrated in Figure 10 and Figure 11, respectively.
Figure 10.
Publishing time deviation of TS DDS messages under different flow controller strategies: (a) FIFO; (b) HP; (c) MP; (d) TT. The bars represent the average publishing time deviation, while the error bars indicate the maximum publishing time deviation.
Figure 11.
Worst-case end-to-end delay of TS Messages with different flow controller strategies: FIFO, HP, MP, and TT.
Under the FIFO strategy, all BE messages that arrive earlier than the TS message at the flow controller thread contribute to intra-thread interference. As the number of BE messages increases, the accumulated interference grows, resulting in a larger publishing time deviation for TS messages. Under the HP strategy, TS messages are always prioritized by the flow controller thread, and the TS message is blocked by at most one BE message. Consequently, the publishing time deviation of TS messages is independent of the number of BE messages. The average deviation remains relatively stable and is significantly lower compared to the FIFO strategy. However, the maximum deviation is determined by the largest payload size of BE messages in each experimental group. Since the payload size of BE messages is randomly generated, the maximum deviation also exhibits randomness. With the MP mechanism, TS messages are allowed to preempt BE messages, further reducing the publishing time deviation. In this case, the interference is limited to at most one fragment of a BE message. As the maximum fragment size is bounded by the Ethernet maximum transmission unit, the maximum publishing time deviation of TS messages remains relatively stable.
When the TT strategy is applied, the publishing time of TS messages is strictly determined by the timed-event table and is not affected by BE traffic. As shown in Figure 10d, the publishing time deviation of TS messages is bounded within 3 μs. This residual deviation is mainly caused by time synchronization errors and non-DDS traffic in the network (e.g., time synchronization traffic and ARP traffic). Although a small deviation still exists, it is both limited and stable. Therefore, when the timed-event table is constructed, a guard margin can be introduced to compensate for this deviation, which ensures that TS messages do not miss transmission windows of the TAS mechanism.
During the experiments, the GCL periodically opens the priority-7 queue of the TSN switch every 500 μs for the transmission of TS messages. The results shown in Figure 10b,c indicate that, when the HP or MP strategy is applied, the maximum publishing time deviation of TS messages remains below 500 μs. In the worst case, a TS DDS message that misses its transmission window is blocked in the switch queue for one additional GCL cycle. As illustrated in Figure 11, the WCED of TS DDS messages exceeds 600 μs with the HP or MP strategy. In contrast, the TT strategy guarantees that TS messages are transmitted within the transmission windows allocated by the GCL. As a result, the WCED of TS messages remains stable at approximately 235 μs, satisfying the QoS requirements.
The following experiment compares the end-to-end delay of the target message in DoTA under different flow controller strategies. In the in-vehicle TSN module, the TAS, FRER, and frame preemption mechanisms are enabled. In the receiver thread, the proposed MP mechanism is adopted to reduce intra-thread interference for TS messages. When the flow controller thread employs the HP strategy, the results are shown in Figure 12a. Initially, the maximum end-to-end delay of the target message is approximately 200 μs, and the jitter approaches 100 μs, which satisfies the QoS requirements. However, a sudden increase in delay is observed. This is because, under the HP strategy, the target message may still suffer from intra-thread interference in the flow controller thread. Once blocked, the target message may miss its transmission window allocated by the TAS mechanism. In such cases, the message is buffered in the priority-7 queue of the TSN switch until the gate reopens. This behavior is consistent with the message timeout scenario described in Figure 3, and it further causes subsequent DDS messages in the same queue to be delayed.
Figure 12.
End-to-End Delay of TS Messages in DoTA under Different Flow Controller Strategies: (a) HP; (b) TT.
As shown in Figure 12b, the combination of the TT strategy and the TAS mechanism ensures deterministic transmission of the target message. Both the end-to-end delay and jitter satisfy the QoS requirements. Considering the WCETs of the publisher thread and the flow controller thread, the activation time of the publisher thread must be advanced to avoid missing the scheduled publishing time in the timed-event table. The target message experiences additional waiting time in the flow controller thread. Consequently, compared with Figure 12a, the minimum delay of the target traffic in Figure 12b is slightly higher.
Finally, a set of experiments is designed to evaluate the effectiveness of the combined TT strategy and TAS mechanism in DoTA under injected interference streams with varying bandwidths. First, the HP and FIFO strategies are applied to the flow controller thread and the receiver thread, respectively, with all TSN mechanisms disabled, corresponding to conventional DDS over Ethernet communication. The results are shown in Figure 13a. Even in the absence of interference streams, the target message may suffer from intra-thread interference caused by other DDS messages in both the flow controller thread and the receiver thread. As a result, the maximum end-to-end delay exceeds 450 μs, which is significantly higher than the QoS requirement. As the bandwidth of interference streams increases, the blocking experienced by the target message in the switch queues grows, leading to an increasing trend in the average end-to-end delay. However, the variation in the maximum delay remains relatively small. In Gigabit Ethernet, the blocking caused by a single interfering frame is bounded by approximately 12 μs (with a payload of 1500 bytes), which is much smaller than the blocking incurred within the flow controller and receiver threads. Therefore, the maximum end-to-end delay is dominated by intra-thread interference rather than network-level contention.
Figure 13.
End-to-End delay of TS DDS message under varying interference bandwidths: (a) DDS over Ethernet; (b) DDS over TSN.
The results in Figure 13b demonstrate that, under the joint deployment of the TT strategy and the TAS mechanism (i.e., DDS over TSN), both the end-to-end delay and jitter of the target message satisfy the QoS requirements. In this scenario, the target message only suffers from intra-thread interference in the receiver thread. The upper bound of this interference corresponds to the WCET required to process the largest DDS message fragment in the receiver thread. As a result, the jitter of the end-to-end delay is bounded within 60 μs. Moreover, the GCL of the TAS mechanism allocates a dedicated transmission window for the target message. Therefore, as the bandwidth of interference streams increases, no significant variation is observed in the end-to-end delay of the target message.
5.3. Evaluation of the Schedulability Analysis
To apply the CPA-based method for analyzing the WCED of DDS messages, the WCET of DDS messages in different threads must first be obtained. The transmission of all messages except the target message is disabled, and all unrelated tasks on ZCU-RR and the VCP are suspended to ensure accurate measurement. To avoid retransmissions, the Reliability QoS policy is configured as Best Effort. In addition, the History QoS policy is set to retain only the most recent data sample, thereby reducing memory consumption. During the experiments, the payload size is varied from 100 bytes to 64 kB. The experimental results are presented in Figure 14.
Figure 14.
Execution time of DDS messages in different threads.
It can be observed that the end-to-end delay of DDS messages is primarily dominated by the execution time in the flow controller thread and the receiver thread. This is because these two threads are responsible for handling complex operations, including protocol stack processing, driver interactions, and network interface operations. When the payload size is large, additional fragmentation and reassembly operations are also required, further increasing the execution time. When the payload size is below 1.5 KBytes, the WCET of both the flow controller thread and the receiver thread exhibits an approximately linear growth trend. Once the payload size exceeds 1.5 KBytes, the growth rate of WCET increases due to the additional overhead introduced by fragmentation and reassembly. Since it is difficult for the physical experiments to cover all possible payload sizes, the WCET used in the CPA-based WCED analysis can be obtained through a lookup table or interpolation based on the actual payload size of DDS messages.
The WCET results obtained in Figure 14 are used as constant inputs to the pyCPA model [41], while the activation relationships among tasks are derived using the arrival curve propagation method proposed in Section 4.2.3. Subsequently, Algorithm A1 is integrated into the pyCPA-based analysis framework to compute the WCED of TS DDS messages. Figure 15 presents the WCED results of selected TS messages, including both the measurements from the physical testbed and the values obtained from the pyCPA analysis.
Figure 15.
Comparison of WCED between physical experiments and pyCPA analysis.
As shown in Figure 15, the WCED values obtained from the pyCPA analysis are consistently higher than those measured in the physical experiments. This indicates that the proposed schedulability analysis method can effectively provide a safe upper bound for the end-to-end delay of TS DDS messages in DoTA.
Table 1 presents the deviation between the physical experimental results and the pyCPA analysis results. Among them, the DDS message with ID 7 exhibits the largest deviation, reaching 15.45%. This deviation can be attributed to two main factors. First, the physical experiments cannot exhaustively cover all possible scenarios, which may lead to underestimation of the WCED. Second, for certain traffic flows (e.g., message 3 with a payload of 1200 bytes), the WCET within threads is derived from the experimental results shown in Figure 14 and obtained through interpolation, which inevitably introduces additional errors. It is worth noting that schedulability analysis inherently provides a conservative estimation of the worst-case execution delay rather than an exact value. Its primary objective is to ensure the safe operation of the system. Therefore, the observed deviation is acceptable in practice, as it effectively validates the rationality of the network design while providing sufficient safety margins.
Table 1.
Deviation between Physical Experimental Results and pyCPA Analysis Results.
6. Conclusions
To achieve deterministic DDS communication in DoTA, a TT communication strategy based on MP and guard band mechanisms is proposed in this paper. When the TT strategy is enabled in the flow controller of the DDS middleware, TS and BE DDS messages are isolated by introducing separate queues, i.e., the TSQ and the PQ. In addition, a timed-event table is constructed to precisely control the publishing time of TS messages, ensuring strict alignment with the GCL of the TAS mechanism. Subsequently, a transmission model of DDS messages in DoTA is developed, and all sources of interference affecting TS DDS messages are analyzed using CPA framework. Based on this model, a CPA-based schedulability analysis method tailored for DoTA is proposed to estimate the WCED of TS messages. Finally, a physical testbed conforming to a zone-oriented centralized EEA is constructed. Experimental results demonstrate that, with the TAS mechanism and the proposed TT strategy enabled in DoTA, the publishing time deviation of TS messages is bounded within 3 μs, while both the end-to-end delay and jitter satisfy the requirements of safety-critical applications. Moreover, the proposed schedulability analysis method can derive reliable upper bounds on the end-to-end delay of TS messages. The maximum deviation between the WCED obtained from physical experiments and that derived from the analysis is 15.4%, which meets the accuracy requirements of practical applications.
The proposed TT strategy is designed for periodic and predictable TS DDS messages. Under highly dynamic and unpredictable traffic conditions, the timed-event table is frequently updated by the network scheduling and configuration in DoTA, which increases runtime complexity and affects deterministic timing guarantees. In future work, the proposed DoTA will be extended to support dynamic traffic-aware optimization and additional TSN scheduling approaches. The impact of operating system-level processing on DDS messages will be further investigated to enhance communication determinism. In addition, the proposed schedulability analysis method will be extended to support a wider range of operating systems and thread scheduling policies.
Author Contributions
Conceptualization, F.L. and Y.R.; methodology, Y.R.; software, Y.R. and Y.Y.; validation, Y.R., F.L. and Y.Y.; formal analysis, Y.R.; investigation, Y.R.; resources, Y.X. and Y.T.; data curation, Z.L.; writing—original draft preparation, Y.R.; writing—review and editing, Y.R. and F.L.; visualization, Z.L.; supervision, F.L.; project administration, Y.T. and Y.X.; funding acquisition, Y.X. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by Jiangxi Provincial Key Research and Development Program in 2026 (20261BCE310043), and was funded by Xiaomi Leading the Unveiled Project—2025 Special Research Program (MI804020250600255X).
Data Availability Statement
The data presented in this study are contained within the article.
Conflicts of Interest
The author Yuezhen Xiao was employed by the company Xiaomi Automobile Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| IVNs | In-Vehicle Networks |
| DDS | Data Distribution Service |
| TSN | Time-Sensitive Networking |
| TAS | Time-Aware Shaper |
| DoTA | DDS over TSN Architecture |
| TT | Time-Triggered |
| TS | Time-Sensitive |
| WCED | Worst-Case End-to-end Delay |
| EEA | Electrical Electronic Architecture |
| ECUs | Electronic Control Units |
| CAN | Controller Area Network |
| ICVs | Intelligent and Connected Vehicles |
| ZCUs | Zone Controller Units |
| VCP | Vehicular Computing Platform |
| QoS | Quality of Service |
| FRER | Frame Replication and Elimination for Reliability |
| SOA | Service-Oriented Architecture |
| SOME/IP | Scalable Service-Oriented Middleware over IP |
| MP | Message Preemption |
| BE | Best-Effort |
| CPA | Compositional Performance Analysis |
| OMG | Object Management Group |
| RTPS | Real-Time Publish-Subscribe |
| FIFO | First-In First-Out |
| RR | Round Robin |
| HP | High Priority |
| PR | Priority with Reservation |
| GCL | Gate Control Lis |
| SDN | Software-Defined Networking |
| CUC | Centralized User Configuration |
| CNC | Centralized Network Configuration |
| UBI | User/Network Interface |
| TSQ | Time-Sensitive Queue |
| PQ | Preemptable Queue |
| WCET | Worst-Case Execution Time |
| WCRT | Worst-Case Response Time |
Notations
The following notations are used in this manuscript:
| The k-th CPU core in IVNs; the set of all CPU cores in IVNs | |
| The i-th thread of type t; all threads with type t on the core , | |
| The set of all threads on core ; the set of threads on core with higher priority than | |
| Supply bound function of the core | |
| Request bound function of the thread | |
| The z-th DDS topic; the set of all DDS topics in IVNs | |
| The j-th RTPS message instance published by thread on topic | |
| The activation time of publisher thread ; the transmission offset of message on the n-th link | |
| The sets of BE messages, TS messages, and all messages associated with thread , respectively | |
| The external event arrival curve and WCET of | |
| The arrival curve and WCET of message in thread , | |
| The WCRT of message in the in-vehicle TSN module | |
| The WCRT of message in thread and its candidate value, | |
| The upper bounds on inter-thread and intra-thread blocking experienced by at thread | |
| The WCED of message |
Appendix A
The WCED analysis procedure is illustrated in the following algorithm.
| Algorithm A1: A WCED Analysis Method for TS Messages in DoTA |
![]() |
All DDS messages used in the physical testbed is summarized in the following table.
Table A1.
Information about DDS messages in the physical testbed.
References
- Jiang, S. Vehicle E/E architecture and its adaptation to new technical trends. In Proceedings of the WCX SAE World Congress Experience; SAE Technical Paper; SAE International: Warrendale, PA, USA, 2019. [Google Scholar]
- Wang, W.; Guo, K.; Cao, W.; Zhu, H.; Nan, J.; Yu, L. Review of electrical and electronic architectures for autonomous vehicles: Topologies, networking and simulators. Automot. Innov. 2024, 7, 82–101. [Google Scholar] [CrossRef] [Scilit]
- Zeng, W.; Khalid, M.A.; Chowdhury, S. In-vehicle networks outlook: Achievements and challenges. IEEE Commun. Surv. Tutor. 2016, 18, 1552–1571. [Google Scholar] [CrossRef] [Scilit]
- Bello, L.L.; Mariani, R.; Mubeen, S.; Saponara, S. Recent advances and trends in on-board embedded and networked automotive systems. IEEE Trans. Ind. Inform. 2018, 15, 1038–1051. [Google Scholar] [CrossRef] [Scilit]
- Cerruto, F.; Leonardi, L.; Bello, L.L.; Patti, G. Performance assessment of Ethernet 10BASE-T1S networks in automotive applications. In Proceedings of the 2025 IEEE 101st Vehicular Technology Conference (VTC2025-Spring); IEEE: Piscataway, NJ, USA, 2025; pp. 1–5. [Google Scholar]
- IEEE Std 802.1Qbv-2015; IEEE Standard for Local and Metropolitan Area Networks–Bridges and Bridged Networks-Amendment 25: Enhancements for Scheduled Traffic. IEEE: Piscataway, NJ, USA, 2016. [CrossRef]
- IEEE Std 802.1CB-2017; IEEE Standard for Local and Metropolitan Area Networks–Frame Replication and Elimination for Reliability. IEEE: Piscataway, NJ, USA, 2017. [CrossRef] [Scilit]
- Sabry, A.; Omar, A.; Hammad, M.; Abdelbaki, N. AVB/TSN Protocols in Automotive Networking. In Proceedings of the 2020 15th International Conference on Computer Engineering and Systems (ICCES), Cairo, Egypt, 15–16 December 2020; pp. 1–7. [Google Scholar] [CrossRef] [Scilit]
- Ashjaei, M.; Bello, L.L.; Daneshtalab, M.; Patti, G.; Saponara, S.; Mubeen, S. Time-Sensitive Networking in automotive embedded systems: State of the art and research opportunities. J. Syst. Archit. 2021, 117, 102137. [Google Scholar] [CrossRef] [Scilit]
- Nitta, M.; Ito, Y.; Yoshimura, A. A Proposal of Method of Finding Appropriate idleSlope Values Over In-Vehicle Ethernet With CBS. In Proceedings of the 2022 13th International Conference on Information and Communication Technology Convergence (ICTC), Jeju Island, Republic of Korea, 19–21 October 2022; pp. 1406–1408. [Google Scholar] [CrossRef] [Scilit]
- Luo, F.; Wang, Z.; Guo, Y.; Wu, M.; Feng, W.; Sun, Z. Research on Cyclic Queuing and Forwarding With Preemption in Time-Sensitive Networking. IEEE Embed. Syst. Lett. 2024, 16, 110–113. [Google Scholar] [CrossRef] [Scilit]
- Yoshimura, A.; Ito, Y. QoS Evaluation of ATS in IEEE 802.1TSN on In-Vehicle Ethernet by Comparing with CBS and TAS. IEICE Commun. Express 2024, 13, 355–358. [Google Scholar] [CrossRef] [Scilit]
- Liu, Z.; Zhang, W.; Zhao, F. Impact, challenges and prospect of software-defined vehicles. Automot. Innov. 2022, 5, 180–194. [Google Scholar] [CrossRef] [Scilit]
- Rumez, M.; Grimm, D.; Kriesten, R.; Sax, E. An overview of automotive service-oriented architectures and implications for security countermeasures. IEEE Access 2020, 8, 221852–221870. [Google Scholar] [CrossRef] [Scilit]
- AUTOSAR. Open SOME/IP Specification. 2025. Available online: https://some-ip.com/open-someip-specification (accessed on 8 January 2026).
- OMG. Data Distribution Service. 2015. Available online: https://www.omg.org/spec/DDS (accessed on 18 April 2025).
- Luo, F.; Ren, Y.; Tong, Y.; Yu, Y.; Liao, Z.; Zhang, Z.; Liu, Q. A multi-protocol integrated task offloading method for heterogeneous in-vehicle networks. IEICE Trans. Commun. 2026, E109-B, 770–782. [Google Scholar] [CrossRef] [Scilit]
- Luo, F.; Ren, Y.; Yu, Y.; Li, Y.; Liu, Q.; Zhang, X. A centralized discovery-based method for integrating data distribution service and time-sensitive networking for in-vehicle networks. Ad Hoc Netw. 2025, 178, 103950. [Google Scholar] [CrossRef] [Scilit]
- OMG. DDS Interoperability Wire Protocol. 2022. Available online: https://www.omg.org/spec/DDSI-RTPS (accessed on 15 July 2025).
- Bello, L.L.; Steiner, W. A perspective on IEEE time-sensitive networking for industrial communication and automation systems. Proc. IEEE 2019, 107, 1094–1120. [Google Scholar] [CrossRef] [Scilit]
- IEEE Std 802.1Qcc-2018; IEEE Standard for Local and Metropolitan Area Networks–Bridges and Bridged Networks–Amendment 31: Stream Reservation Protocol (SRP) Enhancements and Performance Improvements. IEEE: Piscataway, NJ, USA, 2018. [CrossRef] [Scilit]
- Haeberle, M.; Heimgaertner, F.; Loehr, H.; Nayak, N.; Grewe, D.; Schildt, S.; Menth, M. Softwarization of Automotive E/E Architectures: A Software-Defined Networking Approach. In Proceedings of the 2020 IEEE Vehicular Networking Conference (VNC), New York, NY, USA, 16–18 December 2020; pp. 1–8. [Google Scholar] [CrossRef] [Scilit]
- Guijarro Cameros, E.; Chan, L. How DDS and TSN are driving interoperability and performance in automotive systems. ATZelectronics Worldw. 2022, 17, 52–55. [Google Scholar] [CrossRef] [Scilit]
- Agarwal, T.; Niknejad, P.; Barzegaran, M.; Vanfretti, L. Multi-level time-sensitive networking (TSN) using the data distribution services (DDS) for synchronized three-phase measurement data transfer. IEEE Access 2019, 7, 131407–131417. [Google Scholar] [CrossRef] [Scilit]
- Sudhakaran, S.; Mageshkumar, V.; Baxi, A.; Cavalcanti, D. Enabling QoS for collaborative robotics applications with wireless TSN. In Proceedings of the 2021 IEEE International Conference on Communications Workshops (ICC Workshops); IEEE: Piscataway, NJ, USA, 2021; pp. 1–6. [Google Scholar]
- OMG. DDS Extensions for Time Sensitive Networking. 2023. Available online: https://www.omg.org/spec/DDS-TSN/1.0/Beta1/About-DDS-TSN (accessed on 18 September 2025).
- Lu, J.; Zhu, H.; Huang, T.; Zhang, H.; Han, G. TS-DDS: Data distribution service (DDS) over in-vehicle time-sensitive networking (TSN) mechanism research. In Proceedings of the 2023 15th International Conference on Communication Software and Networks (ICCSN); IEEE: Piscataway, NJ, USA, 2023; pp. 30–36. [Google Scholar]
- Nam, T.; Seongjin, Y.; Won-Tae, K. DDS-over-TSN Framework for Time-Critical Applications in Industrial Metaverses. Appl. Sci. 2026, 16, 3641. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Z.; Cui, K.; Zhu, Y.; Jiang, C.; Yao, X.; Lu, K. A Lightweight Implementation of Data Distribution Service (DDS) Incorporating Time Sensitive Networking (TSN) on the AUTOSAR Classic Platform. In Proceedings of the 2024 IEEE Intelligent Vehicles Symposium (IV), Jeju Island, Republic of Korea, 2–5 June 2024; pp. 3356–3362. [Google Scholar] [CrossRef] [Scilit]
- Li, B.; Zhu, Y.; Yao, X.; Jiang, C.; Lu, K.; Sun, Z. Enabling deterministic transmission for DDS by leveraging IEEE 802.1 Qbv time-sensitive networking. Comput. Netw. 2025, 261, 111128. [Google Scholar] [CrossRef] [Scilit]
- Wang, Z.; Luo, F.; Li, Y.; Gan, H.; Zhu, L. Schedulability analysis in time-sensitive networking: A systematic literature review. Ad. Hoc Netw. 2025, 176, 103897. [Google Scholar] [CrossRef] [Scilit]
- Thiele, D.; Ernst, R.; Diemer, J. Formal worst-case timing analysis of Ethernet TSN’s time-aware and peristaltic shapers. In Proceedings of the 2015 IEEE Vehicular Networking Conference (VNC); IEEE: Piscataway, NJ, USA, 2015; pp. 251–258. [Google Scholar]
- Ojewale, M.A.; Yomsi, P.M.; Nikolić, B. Worst-case traversal time analysis of tsn with multi-level preemption. J. Syst. Archit. 2021, 116, 102079. [Google Scholar] [CrossRef] [Scilit]
- Luo, F.; Zhu, L.; Wang, Z.; Gan, H.; Li, Y.; Yang, Z.; Liu, D. Schedulability analysis of time aware shaper with preemption supported in time-sensitive networks. Comput. Netw. 2025, 269, 111424. [Google Scholar] [CrossRef] [Scilit]
- Sciangula, G.; Casini, D.; Biondi, A.; Scordino, C.; Di Natale, M. Bounding the data-delivery latency of DDS messages in real-time applications. Leibniz Int. Proc. Inform. 2023, 262, 9:1–9:26. [Google Scholar] [CrossRef]
- Casini, D.; Abeni, L.; Biondi, A.; Cucinotta, T.; Buttazzo, G. Constant bandwidth servers with constrained deadlines. In Proceedings of the 25th International Conference on Real-Time Networks and Systems, Grenoble, France, 4–6 October 2017; pp. 68–77. [Google Scholar]
- Casini, D.; Blaß, T.; Lütkebohle, I.; Brandenburg, B. Response-time analysis of ROS 2 processing chains under reservation-based scheduling. In Proceedings of the 31st Euromicro Conference on Real-Time Systems, Stuttgart, Germany, 9–12 July 2019; pp. 1–23. [Google Scholar]
- Jiang, X.; Guan, N.; Long, X.; Tang, Y.; He, Q. Real-time scheduling of parallel tasks with tight deadlines. J. Syst. Archit. 2020, 108, 101742. [Google Scholar] [CrossRef] [Scilit]
- Luo, F.; Ren, Y.; Zhu, Y.; Wang, Z.; Guo, Y.; Yang, Z. A Time-Aware Shaper-Based Method for Addressing Traffic Bursts and Out-of-Order Induced by IEEE 802.1 CB in in-Vehicle Networks; Technical Report, SAE Technical Paper; SAE International: Warrendale, PA, USA, 2025. [Google Scholar]
- Leonardi, L.; Bello, L.L.; Patti, G. Bandwidth Partitioning for Time-Sensitive Networking Flows in Automotive Communications. IEEE Commun. Lett. 2021, 25, 3258–3261. [Google Scholar] [CrossRef] [Scilit]
- Diemer, J.; Axer, P.; Ernst, R. Compositional Performance Analysis in Python with pyCPA. In Proceedings of the 3rd International Workshop on Analysis Tools and Methodologies for Embedded and Real-Time Systems, Pisa, Italy, 10 July 2012; pp. 27–32. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.















