2 Advanced QoS

Table 2.1 Advanced QoS Policies

QoS Policy

Description

Chg.

RxO

Inst.

Entities

Ext.

AsynchronousPublisher

Configures mechanism that sends user data in a separate middleware thread

BC

 

 

P

Y

Availability

Configures Collaborative DataWriters and Durable Subscriptions

A

 

 

R,W

Y

Database

Configures threads and resource limits that control internal Connext data storage

BC

 

 

D

Y

DataReaderProtocol

Configures DDS on-the-wire protocol (RTPS),and WireProtocol QoS for Reliable Topics

BC

 

 

R,W

Y

DataWriterResourceLimits

Configures how DataReaders/DataWriters allocate and use physical memory for Connext specific internal resources

BC

 

 

R,W

Y

DataTag

Associates name/value string pairs with DataWriters/DataReaders that may be used by Access Control plugin

BC

 

 

R,W

 

DataWriterResourceLimits

Configures how DataReaders/DataWriters allocate and use physical memory for Connext specific internal resources

BC

 

 

R,W

Y

DataWriterTransferMode

Configures the properties of a Zero Copy DataWriter

BC

 

 

W

Y

DomainParticipantResourceLimits

Configures how DomainParticipants allocate and use physical memory for internal resources

BC

 

 

D

Y

DurabilityService

Configures external Persistence Service for Writers with PERSISTENT or TRANSIENT Durability

BE

 

 

T,W

 

Event

Configures the internal thread in a DomainParticipant that handles timed events

BC

 

 

D

Y

MultiChannel

Configures DataWriter to send data using different multicast groups (addresses) based on data value

BC

 

 

W

Y

Presentation

Controls how Connext presents data received by an application to DataReaders

BE

Y

Y

P, S

 

ReaderDataLifecyle

Controls how a DataReader manages the lifecycle of the data that it has received

A

 

 

R

 

ReceiverPool

Configures threads used to receive data from network transports (e.g., UDP) and deliver data to the application

BC

 

 

D

Y

Service

Specifies the service for the entity. Only for use by RTI infrastructure services, not user applications

BE

 

 

D,R,W

Y

SystemResourceLimits

Configures process-level resources, independent of particular entities

BC

 

 

F

Y

TransportMulticastMapping

Specifies automatic mapping between list of topic expressions and multicast addresses used by DataReaders to receive data

BC

 

 

D

Y

TransportPriority

On OS/transport combinations that understand priority, specifies the priority on a per-DataReader/DataWriter basis

BC

 

 

T,R,W

 

TransportSelection

Selects which transports a DataReader/DataWriter may use to send or receive its data

BC

 

 

R,W

Y

TypeSupport (DEPRECATED)

(DEPRECATED1) Attaches application-specific values to a DataWriter/DataReader that are passed to serialization/deserialization routine of associated data type. Controls if padding bytes are set to 0 during serialization.

A

 

 

D,R,W

Y

UserData

Attaches arbitrary application data (a buffer of bytes) to discovery meta-data

A

 

 

R,W

[P,S; T]

 

WriterDataLifecycle

Controls how a DataWriter handles the lifecycle of the instances that it is registered to manage

A

 

 

W

 

Legend:

 

 

 

Chg. = Changeable

RxO = Request/Offered Semantics

Inst. = Behavior applied per-instance

Ex+t. = Extension to DDS standard

Chg.

A = Always

BC =Before Creation

BE = Before Enable

Entities

F = DomainParticipantFactory

D = DomainParticipant

T = Topic

P = Publisher

S = Subscriber

W = DataWriter

R = DataReader

Ext.

Y = Yes

(Y) = Partially Yes

(see detailed descriptions

for further explanation)

Blank = No

Table 2.2 Advanced QoS Policies per Entity

DomainParticipant

Topic

Database

DomainParticipantResourceLimits

Event

ReceiverPool

Service

TransportMulticastMapping

TypeSupport (DEPRECATED)

GroupData

DurabilityService

TransportPriority

TopicData

Publisher

Subscriber

Presentation

GroupData

AsynchronousPublisher

Presentation

GroupData

DataWriter

DataReader

DurabilityService

TransportPriority

UserData

WriterDataLifecycle

DataTag

DataWriterResourceLimits

TransportSelection

Service

MultiChannel

Availability

DataWriterTransferMode

TypeSupport (DEPRECATED)

UserData

ReaderDataLifecyle

DataTag

DataReaderResourceLimits

DataReaderProtocol

TransportSelection

Service

Availability

TransportPriority

TypeSupport (DEPRECATED)

DomainParticipantFactory

In this table, QoS policies are shown in the same order as they appear in the related Entity's QoS structure.

SystemResourceLimits

2.1 AsynchronousPublisher

Configures the mechanism that sends user data in an external middleware thread.

It can reduce the amount of time spent in the user thread to send data.

For small samples, it can also reduce bandwidth consumption. Using an asynchronous publisher provides aggregation of samples (collecting many RTPS data samples into 1 network packet) since samples written for the same topic to the same destination are coalesced within the same UDP packet, which reduces bandwidth. However, for aggregation and bandwidth reduction, the preferred mechanism is Batch.

Often used with:

  • PublishMode—activates asynchronous publishing, a prerequisite for the use of this policy
  • LatencyBudget—controls the scheduling of asynchronously published data onto the network across DataWriters

2.2 Availability

Configures Collaborative DataWriters and Durable Subscriptions.

For a Collaborative DataWriter, specifies the group of DataWriters expected to collaboratively provide data and the timeouts that control when to allow data to be available that may skip samples.

For a Durable Subscription, configures a set of Durable Subscriptions for a DataWriter.

2.3 Database

Configures threads and resource limits that control the internal Connext database.

RTI uses this internal "database", essentially a list of lists, to store information about entities created locally as well as remote entities of other participants found during the discovery process. This QoS configures how RTI manages its database including how often it cleans up, priority of the database thread, and limits on resources that may be allocated by the database.

You may be interested in modifying the shutdown_timeout and shutdown_cleanup_period parameters to decrease the time it takes to delete a DomainParticipant when your application is shutting down.

2.4 DataReaderProtocol

Configures DDS on-the-wire protocol (RTPS).

Connext uses a standard protocol for packet (user- and meta-data) exchange between applications. These QoS policies control configurable portions of the protocol, including configuration of the reliable data delivery mechanism of the protocol on a per DataWriter/DataReader basis.

These parameters control timing and timeouts and give you the ability to tradeoff between speed of data-loss detection and repair, versus the network and CPU bandwidth used to maintain reliability.

It is important to tune the reliability protocol (on a per DataWriter and DataReader basis) to meet the requirements of the end-user application so that data can be sent between DataWriters and DataReaders in an efficient and optimal manner in the presence of data loss. You can also use these QoS policies to control how Connext responds to "slow" reliable DataReaders or ones that disconnect or are otherwise lost.

See the Reliability QoS policy for more on configuring per-DataReader/DataWriter reliability. The History and ResourceLimits QoS also play an important role in the reliable protocol.

2.5 DataReaderResourceLimits

Configures how DataReaders/DataWriters allocate and use physical memory for internal resources.

DataReaders must allocate internal structures to handle the maximum number of DataWriters that may connect to it, whether or not a DataReader handles data fragmentation and how many data fragments that it may handle, how many simultaneous, outstanding loans of internal memory holding data samples can be provided to user code, as well as others.

DataWriters must allocate internal structures to handle the simultaneously blocking of threads trying to call write() on the same DataWriter, for the storage used by batched DataWriters, and for filters for content-based filtering DataReaders.

Most of these internal structures start at an initial size and by default will grow as needed by dynamically allocating additional memory. You may set fixed, maximum sizes for these internal structures if you want to bind the amount of memory that can be used by a DataReader/DataWriter.  Setting the initial size to the maximum size will prevent Connext from dynamically allocating any memory after the DataReader/DataWriter is created.

2.6 DataTag

Associates name/value string pairs with DataWriters and DataReaders that may be used by the Access Control plugin.

This QoS can be used to associate a set of tags in the form of name/value string pairs with a DataReader or DataWriter. This is similar to the Property QoS, except you cannot select whether or not a particular pair should be propagated (included in the builtin topic); instead, data tags are always propagated. The Access Control plugin may use the tags to determine publish and subscribe permissions. You can manipulate the sequence of tags (name/value pairs) with the standard methods available for sequences.

See also:

2.7 DataWriterResourceLimits

See DataReaderResourceLimits.

2.8 DataWriterTransferMode

Configures the properties of a Zero Copy DataWriter.

This QoS policy specifies the properties of a Zero Copy DataWriter. It controls whether or not the DataWriter supports data consistency checks. By default, this QoS enables support for data consistency checks.

2.9 DomainParticipantResourceLimits

Configures how DomainParticipants allocate and use physical memory for internal resources, including maximum sizes of various properties.

This QoS policy sets size limits on variable-length parameters used by the participant and its contained entities. It also controls the initial and maximum sizes of data structures used by the DomainParticipant to store information about locally created and remotely discovered entities (such as DataWriters and DataReaders), as well as parameters used by the internal database to size the hash tables it uses.

2.10 DurabilityService

Configures external Persistence Service used for DataWriters with PERSISTENCE/TRANSIENT Durability.

When a DataWriter's Durability QoS is set to PERSISTENT_DURABILITY or TRANSIENT_DURABILITY, an external service, RTI Persistence Service, is used to store and possibly forward the data sent by the DataWriter to DataReaders that are created after the data was initially sent. This QoS policy configures certain parameters of RTI Persistence Service when it operates on behalf of the DataWriter, such as how much data to store.

Often used with: Durability–to specify the level of durability for the data.

2.11 Event

Configures the internal thread in a DomainParticipant that handles timed events.

In a DomainParticipant, the Event Thread is dedicated to handling all timed events, including checking for timeouts and deadlines, and executing internal and user-defined timeout or exception handling routines/callbacks. An example of a timed event is the reliable heartbeat rate. If this rate is very high, you should use a higher than normal event thread priority.

This QoS policy allows you to configure thread properties such as priority level and stack size. You can also configure the maximum number of events that can be posted to the event thread. By default, a DomainParticipant will dynamically allocate memory as needed for events posted to the event thread. However, by setting a maximum value or setting the initial and maximum value to be the same, you can either bind the amount of memory allocated for the event thread or prevent a DomainParticipant from dynamically allocating memory for the event thread after initialization.

2.12 GroupData

Attaches arbitrary application data to discovery meta-data at the publisher/subscriber level. See: UserData.

2.13 MultiChannel

Configures a DataWriter to send data using different multicast groups (addresses) based on data value.

Data published by a DataWriter can be divided into different “channels” within the same topic. This is useful when the total volume is data is large—perhaps even larger than the capacity of a single network link—and the number of DataReaders is large, but each DataReader is interested in only a subset of the available data. A “channel” is defined by a filter expression and a set of multicast addresses (groups). When data is sent, it is passed through the filter expressions for all defined channels to see if it will be sent on a particular channel. The filter expressions are applied on the value of the data (contents of the data structure). It is possible for the same data value to be sent on multiple channels. When sent on a channel, Connext will send the data on all of the multicast addresses defined for the channel.

A DataWriter using the MultiChannel QoS policy will ignore the DataReader’s Transport Unicast and Transport Multicast QoS settings. It will only send the data on the multicast addresses set for its channels. DataReaders are expected to subscribe to Content-Filtered Topics and will automatically subscribe to data using the configured multicast addresses of a multi-channel DataWriter for the channels whose filter intersects the Content-Filtered Topic of the DataReader.

Usually, the data of different instances within a topic are grouped together into different channels. Since there are usually more objects than multicast addresses that can be practically used, a single multicast address assigned to a single channel will usually carry the data for more than one instance. So using multi-channel DataWriters will greatly reduce, but probably not eliminate, the undesired delivery and discarding of unwanted data by the subscribing machine.

Users must analyze the data usage across all applications/machines in their system and map out the data topology to create an optimal mapping (channel filters) of objects/instances/independent substreams to minimize network bandwidth usage as well as the CPU usage for dropping unwanted data.

Besides using Content-Filtered Topics to configure the substream of data desired, there is no additional configuration that is needed for DataReaders.

See also: ContentFilteredTopics in the RTI Connext Core Libraries User's Manual (not a QoS policy).

2.14 Presentation

Controls how Connext presents data received by an application to the DataReaders of the data

Usually DataReaders receive data in the order it was sent by a DataWriter. (When using the Reliability QoS policy, samples which arrive out of order will be buffered until all previous samples arrive.) Once in order, data is presented to the DataReader immediately.

Sometimes you may want a set of data for the same topic to be presented to the receiving DataReader only after ALL of the elements of the set have been received, but not before. You may also want the data to be presented in a different order than it was received. Specifically, for keyed data, you may want Connext to present the data grouped by instance (same key value).

Thus this QoS policy allows you to specify different scopes of presentation, within a topic, across instances of a topic, and across different Topics of a Publisher. It also controls whether or not a set of changes within the scope is delivered at the same time or can be delivered as soon as each element is received.

See also: DestinationOrder—also impacts the order in which samples will be delivered by the middleware to the application.

2.15 ReaderDataLifecyle

Controls how a DataReader manages the lifecycle of the data that it has received.

When a DataReader receives data, it caches that data for your application. Your application may either take the data from the cache or leave it there. This QoS policy controls when the middleware will automatically remove the stored data for a particular instance of the Topic from the cache (such that the data is no longer accessible by the application) when it detects that there are no more DataWriters alive for a specific instance or when a DataWriter has disposed the instance.  For Topics without keys, this applies when there are no DataWriters alive for the Topic, or if the Topic has been disposed by a DataWriter.

You can use this QoS policy to specify a delay in which the data removal will occur when the middleware detects one of the two states described earlier. By default, the delays are specified to be infinite, which configures Connext not to remove any data from the DataReader’s cache.

2.16 ReceiverPool

Configures threads used to receive and process data from transports (for example, UDP sockets).

Configures the properties of the “receive” threads that the middleware uses to receive and process data from its installed transports. This includes setting thread properties, such as priority level and stack size for these threads, as well as the size of the buffer used to store packets received from a transport. This buffer size limits the largest single packet of data that a DomainParticipant will accept from a transport. For many applications, the value 65,536 (64 KB) is a good choice, as this is the largest packet that can be sent/received via UDP.

Note that Connext does not currently share threads among the different transport plugins. Instead, each transport plugin is automatically allocated a single thread by default; depending on the transport plugin, it may request a separate thread for each receive port.

Often used with:

  • Property—configures the maximum message size of individual transports
  • TransportUnicast, TransportMulticast—RTI uses a separate receive thread per port per transport plug-in by default. To force Connext to use a separate thread to process the data for a DataReader, set a unique port in the DataReader’s Transport Unicast or Transport Multicast QoS policy.

2.17 Service

Specifies the type of service for the entity. This policy is intended for use by RTI infrastructure services and should not be modified by user applications.

2.18 SystemResourceLimits

Configures DomainParticipant-independent resources. Within a single process (or address space for some supported real-time operating systems), applications may create and use multiple DomainParticipants. This QoS policy governs resources at the process level, across DomainParticipants. This QoS policy places an effective limit on the number of DomainParticipants that can be created in a single process. You may need to modify this QoS policy if you need to create more than 10 DomainParticipants in a process.

2.19 TopicData

Attaches arbitrary application data to discovery meta-data at the topic level. See: UserData.

2.20 TransportMulticastMapping

Specifies the automatic mapping between a list of topic expressions and multicast addresses that can be used by a DataReader to receive data for a specific topic.

This QoS policy provides an easy way to configure and assign multicast addresses to DataReaders based on the names of their associated Topics. You can specify an automatic mapping between a list of topic expressions and a multicast address that can be used by the DataReader to receive the data. To have a DataReader use this QoS policy to select its multicast address, its own TransportMulticast QoS Policy must be set accordingly.

2.21 TransportPriority

Tells Connext that the data being sent has a different "priority" than other data. Provides a priority value to the underlying transport protocol, for those that can use it.

Some transport protocols, such as IP-based transports, have a concept of user-settable "priorities" that may be used by operating system network stacks and switching hardware between the publisher and the subscriber. For such transports and on supported OSs, Connext will pass this value to the transport for its use.

In the case of IP-based transports (UDPv4, UDPv6, Real-Time WAN, and TCP), you will be able to set the differentiated services field (DS field) with the transport priority value. The DS field replaces the outdated IPv4 TOS field. For these transports, the transport priority value is not used as is, but transformed according to the settings of certain transport properties. For details, see TRANSPORT_PRIORITY QosPolicy in the RTI Connext Core Libraries User's Manual.

2.22 TransportSelection

Selects which transports a DataWriter or DataReader may use to send or receive its data.

This QoS policy is used in the advanced case where multiple transports have been installed and only a subset of them are to be used with a particular DataReader or DataWriter. For example, suppose that transports for UDP/IP, shared memory, Infiniband, and VME transports are available, and a DataReader should only receive data over Infiniband.

See also:

  • TransportBuiltin—Identifies the available built-in transports
  • Property—Used to install external (that is, not built in) transports

2.23 TypeSupport (DEPRECATED)

Attaches application-specific values to a DataWriter/DataReader, which are passed to the serialization/deserialization routine of the associated data type. Also controls if padding bytes are set to 0 during serialization.

You can modify the rtiddsgen-generated code so that the de/serialization routines act differently depending on the information passed in via the object pointer.

RTI generally recommends that you treat generated source files as compiler outputs (analogous to object files) and that you do not modify them. RTI cannot support user changes to generated source files. Furthermore, such changes would make upgrading to newer versions of Connext more difficult, as this generated code is considered to be a part of the middleware implementation and consequently does change from version to version. The plugin_data parameter in this QoS policy should be considered a back door, only to be used after careful design consideration, testing, and consultation with your RTI representative.

2.24 UserData

Attaches arbitrary application data (a buffer of bytes) to discovery meta-data.

These QoS policies attach extra data that you want propagated at discovery time. This extra data is interpreted by the end user application and is not used by the middleware itself.

  • UserData attaches discoverable meta-data at the DataWriter/DataReader level.
  • GroupData attaches discoverable meta-data at the Publisher/Subscriber level.
  • TopicData attaches discoverable meta-data at the Topic level.

Use cases for these policies include application-to-application identification, authentication, authorization, and encryption purposes. For example, applications can use these policies to send security certificates to each other for RSA-type security.

See also:

  • DomainParticipantResourceLimits—Sets the maximum length of the extra data that can be attached (default 256 bytes).
  • Property—an alternative means of attaching discoverable meta-data to entities.
  • DataTag—an alternative means of attaching discoverable meta-data to entities.

2.25 WriterDataLifecycle

Controls how a DataWriter handles the lifecycle of the instances that it is registered to manage.

The behavior controlled by this QoS policy applies on a per instance (key) basis for keyed Topics, so that when a DataWriter unregisters an instance, Connext can automatically also dispose that instance. This is the default behavior.

In cases where the ownership of a Topic is exclusive (see the Ownership QoS policy), DataWriters may want to relinquish ownership of a particular instance of the Topic to allow other DataWriters to send updates for the value of that instance regardless of how the OwnershipStrength QoS policy is set. In that case, you may only want a DataWriter to unregister an instance without disposing the instance. Disposing an instance is a statement that an instance no longer exists. User applications may be coded to trigger on the disposal of instances, thus the ability to unregister without disposing may be useful to properly maintain the semantic of disposal.