






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Ming Xiong, Jeff Parsons, James Edmondson, Hieu Nguyen, and Douglas C Schmidt,
1
Recent trends in distributed real-time and embed- ded (DRE) systems motivate the development of infor- mation management capabilities that ensure the right information is delivered to the right place at the right time to satisfy quality of service (QoS) requirements in heterogeneous environments. A promising approach to building and evolving large-scale and long-lived DRE information management systems are standards-based QoS-enabled publish/subscribe (pub/sub) platforms that enable participants to communicate by publishing information they have and subscribing to information they need in a timely manner. Since there is little exist- ing evaluation of how well these platforms meet the performance needs of DRE information management, this paper provides two contributions: (1) it describes three common architectures for the OMG Data Distri- bution Service (DDS), which is a QoS-enabled pub/sub platform standard, and (2) it evaluates implementa- tions of these architectures to investigate their design tradeoffs and compare their performance with each other and with other pub/sub middleware. Our results show that DDS implementations perform significantly better than non-DDS alternatives and are well-suited for certain classes of data-critical DRE information management systems.
Keywords: DRE Information Management; QoS-en- abled Pub/Sub Platforms; Data Distribution Service;
The OMG Data Distribution Service (DDS) [6] specification is a standard for QoS-enabled pub/sub communication aimed at mission-critical distributed real-time and embedded (DRE) systems. It is designed to provide (1) location independence via anonymous pub/sub protocols that enable communication between collocated or remote publishers and subscribers, (2) scalability by supporting large numbers of topics, data readers, and data writers, and (3) platform portability and interoperability via standard interfaces and trans- port protocols. Multiple implementations of DDS are now available, ranging from high-end COTS products to open-source community-supported projects. DDS is used in a wide range of DRE systems, including traffic monitoring [14], control of unmanned vehicle commu-
(^1) This work was sponsored in part by the AFRL/IF Pollux
project and Vanderbilt University’s Summer Undergraduate Research program.
nication with ground stations [16], and semiconductor fabrication devices [15]. Although DDS is designed to be scalable, efficient, and predictable, few researchers have evaluated and compared the performance of DDS implementations empirically for common DRE information management scenarios. Likewise, little published work has system- atically compared DDS with alternative non-DDS pub/sub middleware platforms. This paper addresses this gap in the R&D literature by describing the results of the Pollux project, which is evaluating a range of pub/sub platforms to compare how their architecture and design features affect their performance and suit- ability of DRE information management. This paper also describes the design and application of an open- source DDS benchmarking environment we developed as part of Pollux to automate the comparison of pub/sub latency, jitter, throughput, and scalability. The remainder of this paper is organized as fol- lows: Section 2 summarizes the DDS specification and the architectural differences of three popular DDS im- plementations; Section 3 describes our ISISlab hard- ware testbed and open-source DDS Benchmark Envi- ronment (DBE); Section 4 analyzes the results of benchmarks conducted using DBE in ISISlab; Section 5 presents the lessons learned from our experiments; Section 6 compares our work with related research on pub/sub platforms; and Section 7 presents concluding remarks and outlines our future R&D directions.
The OMG Data Distribution Service (DDS) specifica- tion provides a data-centric communication stan- dard for a range of DRE computing environments, from small networked embedded systems up to large- scale information backbones. At the core of DDS is the Data-Centric Publish-Subscribe (DCPS) model, whose specification defines standard interfaces that enable applications running on heterogeneous platforms to write/read data to/from a global data space in a DRE system. Applications that want to share information with others can use this global data space to declare their intent to publish data that is categorized into one or more topics of interest to participants. Similarly, applications can use this data space to declare their intent to become subscribers and access topics of inter- est. The underlying DCPS middleware propagates data samples written by publishers into the global data space, where it is disseminated to interested subscribers [6].
The DCPS model decouples the declaration of informa- tion access intent from the information access itself, thereby enabling the DDS middleware to support and optimize QoS-enabled communication.
Topic Topic^ Topic
Data Reader
Data Writer
Data Writer
Data Reader
Data Reader
Data Writer
Subscriber Publisher Subscriber Publisher
Application
Communication Network
Data Store + QoS Mechanisms Transport Protocol
Topic Topic^ Topic
Data Reader
Data Writer
Data Writer
Data Reader
Data Reader
Data Writer
Subscriber Publisher Subscriber Publisher
Application
Communication Network
Data Store + QoS Mechanisms Transport Protocol
Figure 1: Architecture of DDS
The following DDS entities are involved in a DCPS-based application, as shown in Figure 1:
data by multiple writers, mechanisms to assert and de- termine liveliness, parameters for filtering by data re- ceivers, the duration of data validity, and the depth of the ‘history’ included in updates.
Reader^ Data R WriterData R
Publisher Subscriber
Topic R
Network & RTOS^ Tactical
DDS Pub/SubInfrastructure
RT Info to Cockpit &Track Processing
Reader^ Data R WriterData R
Publisher Subscriber
S S S S S S S
S6 S5 S4 S3 S2 S
Topic R
HISTORY
RELIABILITY^ COHERENCY
RESOURCE LIMITS
LATENCY
(A) Fewer Layers in the DDS Architecture (B) DDS QoS Policies Figure 2: DDS Optimizations & QoS Capabilities
These QoS policies can be configured at various levels of granularity ( i.e. , topics, publishers, data writ- ers, subscribers, and data readers) thereby allowing application developers to construct customized con- tracts based on the specific QoS requirements of indi- vidual entities. Since the identity of publishers and sub- scribers are unknown to each other, the DCPS middle- ware is responsible for determining whether QoS poli- cies offered by a publisher are compatible with those required by a subscriber, allowing data distribution only when compatibility is satisfied.
Reader^ Data R WriterData R
Publisher Subscriber
S S S S S S S
Topic R
SOURCE FILTER
DESTINATION FILTER
TIME-BASED FILTER
Reader^ Data R WriterData R
Publisher Subscriber
Topic R
NEW TOPIC
NEW SUBSCRIBER NEW PUBLISHER
(A) Moving Processing Closer to the Data
(B) Subscribing to Meta-Events Figure 3: DDS Filtering & Meta-event Capabilities
Figure 3(A) shows how DDS can migrate process- ing closer to the data source , which reduces bandwidth in resource-constrained network links. Figure 3(B) shows how DDS enables clients to subscribe to meta- events that they can use to detect dynamic changes in network topology, membership, and QoS levels. This mechanism helps DRE information management sys- tems adapt to environments that change continuously.
The DDS specification defines a wide range of QoS policies (outlined in Section 2.1) and interfaces used to exchange topic instances between participants. The specification intentionally does not address how to
ture also makes it hard to buffer data sent between mul- tiple DDS applications on a node, and thus does not provide the same scalability benefits as the federated architecture described in Section 2.2.1.
The centralized architecture shown in Figure 6 uses a single daemon server running on a designated node to store the information needed to create and manage connections between DDS participants in a domain. The data itself passes directly from publishers to subscribers, whereas the control and initialization activities (such as data type registration, topic creation, and QoS value assignment, modification and matching) require communication with this daemon server.
Figure 6: Centralized DDS Architecture
The advantage of the centralized approach is its simplicity of implementation and configuration since all control information resides in a single location. The disadvantage, of course, is that the daemon is a single point of failure, as well as a potential performance bot- tleneck in a highly loaded system. The remainder of this paper investigates how the architecture differences described above can affect the performance experienced by DRE information manage- ment applications.
This section describes our methodology for evaluating pub/sub platforms to determine how well they support various classes of DRE information management applications, including systems that generate small amounts of data periodically (which require low latency and jitter), systems that send larger amount of data in bursts (which require high throughput), and systems that generate alarms (which require asynchronous, prioritized delivery).
In our evaluations, we compare the performance of the C++ implementations of DDS shown in Table 2 against each other. We also compare these three DDS imple- mentations against three other pub/sub middleware platforms, which are shown in Table 3.
Table 2: DDS Versions Used in Experiments
Impl Version Distribution Architecture DDS1 4.1c Decentralized Architecture DDS2 2.0 Beta Federated Architecture DDS3 8.0 Centralized Architecture
Table 3: Other Pub/Sub Platforms in Experiments
Platform Version Summary CORBA Notification Service
TAO 1.5 OMG data interoperability standard that enables events to be sent & received be- tween objects in a decoupled fashion SOAP gSOAP 2.7.
W3C standard for an XML- based Web Service JMS J2EE 1. SDK/ JMS 1.
Enterprise messaging stan- dards that enable J2EE com- ponents to communicate asynchronously & reliably
We compare the performance of these pub/sub mechanisms by using the following metrics:
The computing nodes we used to run our experi- ments are hosted on ISISlab [19], which is a testbed of computers and network switches that can be arranged in many configurations. ISISlab consists of 6 Cisco 3750G-24TS switches, 1 Cisco 3750G-48TS switch, 4 IBM Blade Centers each consisting of 14 blades (for a total of 56 blades), 4 gigabit network IO modules and 1 management modules. Each blade has two 2.8 GHz Xeon CPUs, 1GB of ram, 40GB HDD, and 4 independ- ent Gbps network interfaces. In our tests, we used up to 14 nodes (1 pub, 12 subs, and a centralized server in the case of DDS3). Each blade ran Fedora Core 4 Linux, version 2.6.16-1.2108_FC4smp. The DDS ap-
plications were run in the Linux real-time scheduling class to minimize extraneous sources of memory, CPU, and network load.
To facilitate the growth of our tests both in variety and complexity, we created the DDS Benchmarking Environment (DBE), which is an open-source frame- work for automating our DDS testing. The DBE con- sists of (1) a repository that contains scripts, configura- tion files, test ids, and test results, (2) a hierarchy of Perl scripts to automate test setup and execution, (3) a tool for automated graph generation, and (4) a shared library for gathering results and calculating statistics. The DBE has three levels of execution designed to enhance flexibility, performance, and portability, while incurring low overhead. Each level of execution has a specific purpose: the top level is the user interface, the second level manipulates the node itself, and the bot- tom level is comprised of the actual executables ( e.g. , publishers and subscribers for each DDS implementation). DBE runs all test executables locally, and if Ethernet saturation is reached during our testing, the saturation is due to DDS data transmissions, not to DBE test artifacts.
This section analyzes the results of benchmarks conducted using DBE in ISISlab. We first evaluate 1- to-1 roundtrip latency performance of DDS pub/sub implementations within a single blade and compare them with the performance of non-DDS pub/sub im- plementations in the same configuration. We then ana- lyze the results of 1-to-n scalability throughput tests for each DDS implementations, where n is 4, 8, or 12 blades on ISISlab. All graphs of empirical results use logarithmic axes since the latency/throughput of some pub/sub implementations cover such a large range of values that linear axes display unreadably small values over part of the range of payload sizes.
Benchmark design. Latency is an important measurement to evaluate DRE information manage- ment performance. Our test code measures roundtrip latency for each pub/sub middleware platform de- scribed in Section 3.1. We ran the tests on both simple and complex data types to see how well each platform handles the extra (de)marshaling overhead introduced by the latter. The IDL structure for the simple and com- plex data types are shown below.
// Simple Sequence Type Struct data { long index; sequence
// Complex Sequence Type struct Inner { string info; long index; }; typedef sequence
struct Outer { long length; InnerSeq nested_member; }; typedef sequence
The publisher writes a simple or complex data se- quence of a certain payload size. When the subscriber receives the topic data it replies with a 4-byte acknowl- edgement. The payload length for both simple and complex data ranges from 4 to 16,384 by powers of 2. The basic building blocks of the JMS test codes consist of administrative objects used by J2EE Appli- cation server, a message publisher, and a message sub- scriber. JMS supports both point-to-point and pub- lish/subscribe message domains. Since we are measur- ing the latency of one publisher to one subscriber, we chose a point-to-point message domain that uses a syn- chronous message queues to send and receive data. TAO’s Notification Service uses a Real-time CORBA threadpool lane to create a priority path be- tween publisher and subscriber. The publisher creates an event channel and specifies a lane with priority 0. The subscriber also chooses a lane with priority 0. The Notification Service then matches the lane for the sub- scriber and sends the event to the subscriber using the CLIENT_PROPAGATED priority model.. The publisher test code measures latency by time- stamping the data transmission and subtracting that from the timestamp value when it receives the sub- scriber ack. This test is to evaluate how fast data gets transferred from one pub/sub node to another at differ- ent payload sizes. To eliminate factors other than dif- ferences among the middleware implementations that affect latency/jitter, we tested a single publisher send- ing to a single subscriber running in separate processes on the same node. Since each node has two CPUs the publisher and subscriber can execute in parallel. Results. Figure 7 and Figure 8 compare la- tency/jitter results for simple/complex data types for all pub/sub platforms. These figures show how DDS la- tency/jitter is much lower than conventional pub/sub middleware for both simple and complex data types. In particular, DDS1 has much lower latency and jitter than the other pub/sub mechanisms. Analysis. There are several reasons for the results in Figures 7 and 8. As discussed in Section 2.1, DDS has fewer layers than other standard pub/sub platforms, so it incurs lower latency and jitter. Since in each test the publisher and subscriber reside on the same blade, DDS1 and DDS2 both switch to shared memory trans- port to improve performance. The particularly low la- tency of DDS1 stems largely from its mature imple- mentation, as well as its decentralized architecture shown in Figure 5, in which publishers communicate to subscribers without going through a separate daemon process. In contrast, DDS2’s federated architecture involves an extra hop through a pair of daemon proc- esses (one on the publisher and one on the subscriber), which helps explain why its latency is higher than DDS1’s when sending small simple data types.
performance degrades when scaling up the number of subscribers, whereas multicast throughput scales up more gracefully. Analysis. Figure 9 shows that the overhead of uni- cast degrades performance as the number of subscrib- ers increases, since the middleware sends a copy to each subscriber. It also indicates how multicast im- proves scalability, since only one copy of the data is delivered, regardless of the number of subscribers in the domain.
Figure 9: DDS1 Unicast vs Multicast
Results. Figure 10 shows the scalability test re- sults for DDS2 broadcast/multicast with 1 publisher and multiple subscribers ( i.e., 4 and 12 blades). The figure shows that both multicast and broadcast scales well as the number of subscribers increases and multi- cast performs slightly better than broadcast. Analysis. Figure 10 shows that sending messages to a specific group address rather than every subnet node is slightly more efficient. Moreover, using broad- cast instead of multicast may be risky since sending messages to all blades can saturate network bandwidth and blade processors.
Figure 10: DDS2 Multicast vs Broadcast
Results. Figure 11 shows multicast performance comparison of DDS1 and DDS2 with 1 publisher and 12 subscriber blades. Since DDS3 does not support multicast, we omit it from the comparison. Figure 12 shows unicast performance comparison of DDS1 and DDS3. Since DDS2 does not support unicast, we omit it from this comparison.
Figure 11: 1-12 DDS1 Multicast vs. DDS2 Multicast
Analysis. Figures 11 and 12 indicate that DDS outperforms DDS2 for smaller payload sizes. As the size of the payload increases, however, DDS2 performs better. It appears that the difference in the results stems from the different distribution architectures (decentral- ized and federated, respectively) used to implement DDS1 and DDS2.
Figure 12: 1-12 DDS1 Unicast vs. DDS3 Unicast
This section describes the challenges we encountered when conducting the experiments presented in Section 4 and summarizes the lessons learned from our efforts.
Problem. It is hard to precisely synchronize clocks among applications running on blades distributed throughout ISISlab. Even when using the Network Time Protocol (NTP), we still experienced differences in time that led to inconsistent results and forced us to constantly repeat the synchronization routines to ensure the time on different nodes was in sync. We therefore needed to avoid relying on synchronized clocks to measure latency, jitter, and throughput. Solution. For our latency experiments, we have the subscriber send a minimal reply to the publisher, and use on the clock on the publisher side to calculate the roundtrip time. For throughput, we use the sub- scriber’s clock to measure the time required to receive a designated number of samples. Both methods provide us with common reference points and minimize timing errors through the usage of effective latency and throughput calculations based on a single clock.
Problem. Achieving good coverage of a test space where parameters can vary in several orthogonal di- mensions leads to a combinatorial explosion of test types and configurations. Manually running tests for each configuration and each middleware implementa- tion on each node is tedious, error-prone, and time-con- suming. The task of managing and organizing test re- sults also grows exponentially along with the number of distinct test configuration combinations. Solution. The DBE described in Section 3.2. stemmed from our efforts to manage the large number of tests and the associated volume of result data. Our efforts to streamline test creation, execution and analy- sis are ongoing, and include work on several fronts, including a hierarchy of scripts, several types of con- figuration files, and test code refactoring.
Problem. Since our DDS implementations use the UDP transport, packets can be dropped at the publisher and/or subscriber side. We therefore needed to ensure that the subscribers get the designated number of sam- ples despite packet loss. Solution. One way to solve this problem is to have the publisher send the number of messages subscribers expect to receive and then to stop the timer when the publisher is done. The subscriber could then use only the number of messages that were actually received to calculate the throughput. However, this method has two drawbacks: (1) the publisher must send extra noti- fication messages to stop the subscribers, but since subscribers may not to receive this notification mes- sage, the measurement may never happen and (2) the publisher stops the timer, creating a distributed clock
synchronization problem discussed in Challenge 1 that could affect the accuracy of the evaluation. To address these drawbacks we therefore adopted an alternative that ensures subscribers a deterministic number of mes- sages by having the publishers “oversend” an appropri- ate amount of extra data.. With this method, we avoid extra “pingpong” communication between publishers and subscribers. More importantly, we can measure the time interval entirely at the subscriber side without relying on the publisher’s clock. The downside of this method is that we had to conduct experiments to deter- mine the appropriate amount of data to oversend.
Problem. Our benchmark applications must be in a steady state when collecting statistical data. Solution. We send primer samples to “warm up” the applications before actually measuring the data. This warmup period allows time for possible discovery activity related to other subscribers to finish, and for any other first-time actions, on-demand actions, or lazy evaluations to be completed, so that their extra over- head does not affect the statistics calculations.
Based on our test results, experience developing the DBE, and numerous DDS experiments, we learned the following:
DBE benchmarks to explore key classes of applications in DRE information management systems, (2) devising generators that can emulate various workloads and use cases, (3) empirically evaluating a wider range of QoS configurations, e.g. durability, reliable vs. best-effort, and integration of durability, reliability and history depth, (4) designing mechanisms for migrating proc- essing toward data sources, (5) measuring participant discovery time for various entities, (6) identifying sce- narios that distinguish performance of QoS policies and features ( e.g. , collocation of applications), and (7) evaluating the suitability of DDS in heterogeneous dy- namic environments, e.g. , mobile ad hoc networks, where system resources are limited and dynamic topol- ogy and domain participant changes are common.
Middleware for Communications , edited by Qusay Mahmoud, Wiley and Sons, New York, 2003.