default namespace = "https://cdds.io/config" namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0" grammar { start = [ a:documentation [ xml:lang="en" """ CycloneDDS configuration""" ] ] element CycloneDDS { [ a:documentation [ xml:lang="en" """

The General element specifying Domain related settings.

""" ] ] element Domain { [ a:documentation [ xml:lang="en" """

Domain id this configuration applies to, or "any" if it applies to all domain ids.

The default value is: any

""" ] ] attribute Id { text }? & [ a:documentation [ xml:lang="en" """

The Compatibility element allows you to specify various settings related to compatibility with standards and with other DDSI implementations.

""" ] ] element Compatibility { [ a:documentation [ xml:lang="en" """

This option assumes ParticipantMessageData endpoints required by the liveliness protocol are present in RTI participants even when not properly advertised by the participant discovery protocol.

The default value is: false

""" ] ] element AssumeRtiHasPmdEndpoints { xsd:boolean }? & [ a:documentation [ xml:lang="en" """

This element specifies whether QoS settings set to default values are explicitly published in the discovery protocol. Implementations are to use the default value for QoS settings not published, which allows a significant reduction of the amount of data that needs to be exchanged for the discovery protocol, but this requires all implementations to adhere to the default values specified by the specifications.

When interoperability is required with an implementation that does not follow the specifications in this regard, setting this option to true will help.

The default value is: false

""" ] ] element ExplicitlyPublishQosSetToDefault { xsd:boolean }? & [ a:documentation [ xml:lang="en" """

This option specifies whether a network socket will be created for each domain participant on a host. The specification seems to assume that each participant has a unique address, and setting this option will ensure this to be the case. This is not the default.

Disabling it slightly improves performance and reduces network traffic somewhat. It also causes the set of port numbers needed by Cyclone DDS to become predictable, which may be useful for firewall and NAT configuration.

The default value is: single

""" ] ] element ManySocketsMode { ("false"|"true"|"single"|"none"|"many") }? & [ a:documentation [ xml:lang="en" """

This element sets the level of standards conformance of this instance of the Cyclone DDS Service. Stricter conformance typically means less interoperability with other implementations. Currently, three modes are defined:

The default value is: lax

""" ] ] element StandardsConformance { ("lax"|"strict"|"pedantic") }? }? & [ a:documentation [ xml:lang="en" """

The Discovery element allows you to specify various parameters related to the discovery of peers.

""" ] ] element Discovery { [ a:documentation [ xml:lang="en" """

This setting controls for how long endpoints discovered via a Cloud discovery service will survive after the discovery service disappears, allowing reconnection without loss of data when the discovery service restarts (or another instance takes over).

Valid values are finite durations with an explicit unit or the keyword 'inf' for infinity. Recognised units: ns, us, ms, s, min, hr, day.

The default value is: 30 s

""" ] ] element DSGracePeriod { duration_inf }? & [ a:documentation [ xml:lang="en" """

This element specifies the default multicast address for all traffic other than participant discovery packets. It defaults to Discovery/SPDPMulticastAddress.

The default value is: auto

""" ] ] element DefaultMulticastAddress { text }? & [ a:documentation [ xml:lang="en" """

This element controls whether the built-in endpoints for topic discovery are created and used to exchange topic discovery information.

The default value is: false

""" ] ] element EnableTopicDiscoveryEndpoints { xsd:boolean }? & [ a:documentation [ xml:lang="en" """

An override for the domain id is used to discovery and determine the port number mapping. This allows the creating of multiple domains in a single process while making them appear as a single domain on the network. The value "default" disables the override.

The default value is: default

""" ] ] element ExternalDomainId { text }? & [ a:documentation [ xml:lang="en" """

This setting controls the default participant lease duration.

The unit must be specified explicitly. Recognised units: ns, us, ms, s, min, hr, day.

The default value is: 10 s

""" ] ] element LeaseDuration { duration }? & [ a:documentation [ xml:lang="en" """

This element specifies the maximum DDSI participant index selected by this instance of the Cyclone DDS service if the Discovery/ParticipantIndex is "auto".

The default value is: 9

""" ] ] element MaxAutoParticipantIndex { xsd:integer }? & [ a:documentation [ xml:lang="en" """

This element specifies the DDSI participant index used by this instance of the Cyclone DDS service for discovery purposes. Only one such participant id is used, independent of the number of actual DomainParticipants on the node. It is either:

The default value is: none

""" ] ] element ParticipantIndex { text }? & [ a:documentation [ xml:lang="en" """

This element statically configures addresses for discovery.

""" ] ] element Peers { [ a:documentation [ xml:lang="en" """

This element statically configures addresses for discovery.

""" ] ] element Peer { [ a:documentation [ xml:lang="en" """

This element specifies an IP address to which discovery packets must be sent, in addition to the default multicast address (see also General/AllowMulticast). Both hostnames and a numerical IP address are accepted; the hostname or IP address may be suffixed with :PORT to explicitly set the port to which it must be sent. Multiple Peers may be specified.

The default value is: <empty>

""" ] ] attribute Address { text } }* }? & [ a:documentation [ xml:lang="en" """

The Ports element specifies various parameters related to the port numbers used for discovery. These all have default values specified by the DDSI 2.1 specification and rarely need to be changed.

""" ] ] element Ports { [ a:documentation [ xml:lang="en" """

This element specifies the base port number (refer to the DDSI 2.1 specification, section 9.6.1, constant PB).

The default value is: 7400

""" ] ] element Base { xsd:integer }? & [ a:documentation [ xml:lang="en" """

This element specifies the domain gain, relating domain ids to sets of port numbers (refer to the DDSI 2.1 specification, section 9.6.1, constant DG).

The default value is: 250

""" ] ] element DomainGain { xsd:integer }? & [ a:documentation [ xml:lang="en" """

This element specifies the port number for multicast data traffic (refer to the DDSI 2.1 specification, section 9.6.1, constant d2).

The default value is: 1

""" ] ] element MulticastDataOffset { xsd:integer }? & [ a:documentation [ xml:lang="en" """

This element specifies the port number for multicast meta traffic (refer to the DDSI 2.1 specification, section 9.6.1, constant d0).

The default value is: 0

""" ] ] element MulticastMetaOffset { xsd:integer }? & [ a:documentation [ xml:lang="en" """

This element specifies the participant gain, relating p0, participant index to sets of port numbers (refer to the DDSI 2.1 specification, section 9.6.1, constant PG).

The default value is: 2

""" ] ] element ParticipantGain { xsd:integer }? & [ a:documentation [ xml:lang="en" """

This element specifies the port number for unicast data traffic (refer to the DDSI 2.1 specification, section 9.6.1, constant d3).

The default value is: 11

""" ] ] element UnicastDataOffset { xsd:integer }? & [ a:documentation [ xml:lang="en" """

This element specifies the port number for unicast meta traffic (refer to the DDSI 2.1 specification, section 9.6.1, constant d1).

The default value is: 10

""" ] ] element UnicastMetaOffset { xsd:integer }? }? & [ a:documentation [ xml:lang="en" """

This element specifies the interval between spontaneous transmissions of participant discovery packets.

The unit must be specified explicitly. Recognised units: ns, us, ms, s, min, hr, day.

The default value is: 30 s

""" ] ] element SPDPInterval { duration }? & [ a:documentation [ xml:lang="en" """

This element specifies the multicast address used as the destination for the participant discovery packets. In IPv4 mode the default is the (standardised) 239.255.0.1, in IPv6 mode it becomes ff02::ffff:239.255.0.1, which is a non-standardised link-local multicast address.

The default value is: 239.255.0.1

""" ] ] element SPDPMulticastAddress { text }? & [ a:documentation [ xml:lang="en" """

String extension for domain id that remote participants must match to be discovered.

The default value is: <empty>

""" ] ] element Tag { text }? }? & [ a:documentation [ xml:lang="en" """

The General element specifies overall Cyclone DDS service settings.

""" ] ] element General { [ a:documentation [ xml:lang="en" """

This element controls whether Cyclone DDS uses multicasts for data traffic.

It is a comma-separated list of some of the following keywords: "spdp", "asm", "ssm", or either of "false" or "true", or "default".

When set to "false" all multicasting is disabled. The default, "true" enables the full use of multicasts. Listening for multicasts can be controlled by General/MulticastRecvNetworkInterfaceAddresses.

"default" maps on spdp if the network is a WiFi network, on true if it is a wired network

The default value is: default

""" ] ] element AllowMulticast { xsd:token { pattern = "default|((false|spdp|asm|ssm|true)(,(false|spdp|asm|ssm|true))*)" } }? & [ a:documentation [ xml:lang="en" """

This element allows setting the SO_DONTROUTE option for outgoing packets to bypass the local routing tables. This is generally useful only when the routing tables cannot be trusted, which is highly unusual.

The default value is: false

""" ] ] element DontRoute { xsd:boolean }? & [ a:documentation [ xml:lang="en" """

This element specifies whether Cyclone DDS allows IP multicast packets to be visible to all DDSI participants in the same node, including itself. It must be "true" for intra-node multicast communications. However, if a node runs only a single Cyclone DDS service and does not host any other DDSI-capable programs, it should be set to "false" for improved performance.

The default value is: true

""" ] ] element EnableMulticastLoopback { xsd:boolean }? & [ a:documentation [ xml:lang="en" """

This element specifies the entity autonaming mode. By default set to 'empty' which means no name will be set (but you can still use dds_qset_entity_name). When set to 'fancy' participants, publishers, subscribers, writers, and readers will get randomly generated names. An autonamed entity will share a 3-letter prefix with their parent entity.

The default value is: empty

""" ] ] element EntityAutoNaming { [ a:documentation [ xml:lang="en" """

Provide an initial seed for the entity naming. Your string will be hashed to provide the random state. When provided, the same sequence of names is generated every run. Creating your entities in the same order will ensure they are the same between runs. If you run multiple nodes, set this via environment variable to ensure every node generates unique names. A random starting seed is chosen when left empty, (the default).

The default value is: <empty>

""" ] ] attribute seed { text }? & ("empty"|"fancy") }? & [ a:documentation [ xml:lang="en" """

This element allows explicitly overruling the network address Cyclone DDS advertises in the discovery protocol, which by default is the address of the preferred network interface (General/NetworkInterfaceAddress), to allow Cyclone DDS to communicate across a Network Address Translation (NAT) device.

The default value is: auto

""" ] ] element ExternalNetworkAddress { text }? & [ a:documentation [ xml:lang="en" """

This element specifies the network mask of the external network address. This element is relevant only when an external network address (General/ExternalNetworkAddress) is explicitly configured. In this case locators received via the discovery protocol that are within the same external subnet (as defined by this mask) will be translated to an internal address by replacing the network portion of the external address with the corresponding portion of the preferred network interface address. This option is IPv4-only.

The default value is: 0.0.0.0

""" ] ] element ExternalNetworkMask { text }? & [ a:documentation [ xml:lang="en" """

This element specifies the size of DDSI sample fragments generated by Cyclone DDS. Samples larger than FragmentSize are fragmented into fragments of FragmentSize bytes each, except the last one, which may be smaller. The DDSI spec mandates a minimum fragment size of 1025 bytes, but Cyclone DDS will do whatever size is requested, accepting fragments of which the size is at least the minimum of 1025 and FragmentSize.

The unit must be specified explicitly. Recognised units: B (bytes), kB & KiB (210 bytes), MB & MiB (220 bytes), GB & GiB (230 bytes).

The default value is: 1344 B

""" ] ] element FragmentSize { memsize }? & [ a:documentation [ xml:lang="en" """

This element specifies the network interfaces for use by Cyclone DDS. Multiple interfaces can be specified with an assigned priority. The list in use will be sorted by priority. If interfaces have an equal priority, the specification order will be preserved.

""" ] ] element Interfaces { [ a:documentation [ xml:lang="en" """

This element defines a network interface. You can set autodetermine="true" to autoselect the interface CycloneDDS considers the highest quality. If autodetermine="false" (the default), you must specify the name and/or address attribute. If you specify both, they must match the same interface.

""" ] ] element NetworkInterface { [ a:documentation [ xml:lang="en" """

This attribute specifies the address of the interface. With ipv4 allows matching on the network part if the host part is set to zero.

The default value is: <empty>

""" ] ] attribute address { text }? & [ a:documentation [ xml:lang="en" """

If set to "true" an interface is automatically selected. Specifying a name or an address when automatic is set is considered an error.

The default value is: false

""" ] ] attribute autodetermine { text }? & [ a:documentation [ xml:lang="en" """

This attribute specifies whether the interface should use multicast. On its default setting, 'default', it will use the value as return by the operating system. If set to 'true', the interface will be assumed to be multicast capable even when the interface flags returned by the operating system state it is not (this provides a workaround for some platforms). If set to 'false', the interface will never be used for multicast.

The default value is: default

""" ] ] attribute multicast { text }? & [ a:documentation [ xml:lang="en" """

This attribute specifies the name of the interface.

The default value is: <empty>

""" ] ] attribute name { text }? & [ a:documentation [ xml:lang="en" """

When false (default), Cyclone DDS uses unicast for data whenever a single unicast suffices. Setting this to true makes it prefer multicasting data, falling back to unicast only when no multicast is available.

The default value is: false

""" ] ] attribute prefer_multicast { xsd:boolean }? & [ a:documentation [ xml:lang="en" """

By default, all specified network interfaces must be present; if they are missing Cyclone will not start. By explicitly setting this setting for an interface, you can instruct Cyclone to ignore that interface if it is not present.

The default value is: true

""" ] ] attribute presence_required { xsd:boolean }? & [ a:documentation [ xml:lang="en" """

This attribute specifies the interface priority (decimal integer or default). The default value for loopback interfaces is 2, for all other interfaces it is 0.

The default value is: default

""" ] ] attribute priority { text }? }* }? & [ a:documentation [ xml:lang="en" """

This element specifies the maximum size of the UDP payload that Cyclone DDS will generate. Cyclone DDS will try to maintain this limit within the bounds of the DDSI specification, which means that in some cases (especially for very low values of MaxMessageSize) larger payloads may sporadically be observed (currently up to 1192 B).

On some networks it may be necessary to set this item to keep the packetsize below the MTU to prevent IP fragmentation.

The unit must be specified explicitly. Recognised units: B (bytes), kB & KiB (210 bytes), MB & MiB (220 bytes), GB & GiB (230 bytes).

The default value is: 14720 B

""" ] ] element MaxMessageSize { memsize }? & [ a:documentation [ xml:lang="en" """

This element specifies the maximum size of the UDP payload that Cyclone DDS will generate for a retransmit. Cyclone DDS will try to maintain this limit within the bounds of the DDSI specification, which means that in some cases (especially for very low values) larger payloads may sporadically be observed (currently up to 1192 B).

On some networks it may be necessary to set this item to keep the packetsize below the MTU to prevent IP fragmentation.

The unit must be specified explicitly. Recognised units: B (bytes), kB & KiB (210 bytes), MB & MiB (220 bytes), GB & GiB (230 bytes).

The default value is: 1456 B

""" ] ] element MaxRexmitMessageSize { memsize }? & [ a:documentation [ xml:lang="en" """

This element specifies which network interfaces Cyclone DDS listens to multicasts. The following options are available:

If Cyclone DDS is in IPv6 mode and the address of the preferred network interface is a link-local address, "all" is treated as a synonym for "preferred" and a comma-separated list is treated as "preferred" if it contains the preferred interface and as "none" if not.

The default value is: preferred

""" ] ] element MulticastRecvNetworkInterfaceAddresses { text }? & [ a:documentation [ xml:lang="en" """

This element specifies the time-to-live setting for outgoing multicast packets.

The default value is: 32

""" ] ] element MulticastTimeToLive { xsd:integer }? & [ a:documentation [ xml:lang="en" """

When enabled, use selected network interfaces in parallel for redundancy.

The default value is: false

""" ] ] element RedundantNetworking { xsd:boolean }? & [ a:documentation [ xml:lang="en" """

This element allows selecting the transport to be used (udp, udp6, tcp, tcp6, raweth)

The default value is: default

""" ] ] element Transport { ("default"|"udp"|"udp6"|"tcp"|"tcp6"|"raweth") }? & [ a:documentation [ xml:lang="en" """

Deprecated (use Transport instead)

The default value is: default

""" ] ] element UseIPv6 { ("false"|"true"|"default") }? }? & [ a:documentation [ xml:lang="en" """

The Internal elements deal with a variety of settings that are evolving and that are not necessarily fully supported. For the majority of the Internal settings the functionality is supported, but the right to change the way the options control the functionality is reserved. This includes renaming or moving options.

""" ] ] element Internal { [ a:documentation [ xml:lang="en" """

Proxy readers that are assumed to still be retrieving historical data get this many samples retransmitted when they NACK something, even if some of these samples have sequence numbers outside the set covered by the NACK.

The default value is: 0

""" ] ] element AccelerateRexmitBlockSize { xsd:integer }? & [ a:documentation [ xml:lang="en" """

This setting controls the delay between sending identical acknowledgements.

The unit must be specified explicitly. Recognised units: ns, us, ms, s, min, hr, day.

The default value is: 10 ms

""" ] ] element AckDelay { duration }? & [ a:documentation [ xml:lang="en" """

This setting controls the interval with which a reader will continue NACK'ing missing samples in the absence of a response from the writer, as a protection mechanism against writers incorrectly stopping the sending of HEARTBEAT messages.

Valid values are finite durations with an explicit unit or the keyword 'inf' for infinity. Recognised units: ns, us, ms, s, min, hr, day.

The default value is: 3 s

""" ] ] element AutoReschedNackDelay { duration_inf }? & [ a:documentation [ xml:lang="en" """

This element controls which participants will have which built-in endpoints for the discovery and liveliness protocols. Valid values are:

The default is writers, as this is thought to be compliant and reasonably efficient. Minimal may or may not be compliant but is most efficient, and full is inefficient but certain to be compliant.

The default value is: writers

""" ] ] element BuiltinEndpointSet { ("full"|"writers"|"minimal") }? & [ a:documentation [ xml:lang="en" """

Setting for controlling the size of transmitting bursts.

""" ] ] element BurstSize { [ a:documentation [ xml:lang="en" """

This element specifies how much more than the (presumed or discovered) receive buffer size may be sent when transmitting a sample for the first time, expressed as a percentage; the remainder will then be handled via retransmits. Usually, the receivers can keep up with the transmitter, at least on average, so generally it is better to hope for the best and recover. Besides, the retransmits will be unicast, and so any multicast advantage will be lost as well.

The unit must be specified explicitly. Recognised units: B (bytes), kB & KiB (210 bytes), MB & MiB (220 bytes), GB & GiB (230 bytes).

The default value is: 4294967295

""" ] ] element MaxInitTransmit { memsize }? & [ a:documentation [ xml:lang="en" """

This element specifies the amount of data to be retransmitted in response to one NACK.

The unit must be specified explicitly. Recognised units: B (bytes), kB & KiB (210 bytes), MB & MiB (220 bytes), GB & GiB (230 bytes).

The default value is: 1 MiB

""" ] ] element MaxRexmit { memsize }? }? & [ a:documentation [ xml:lang="en" """

The ControlTopic element allows configured whether Cyclone DDS provides a special control interface via a predefined topic or not.

""" ] ] element ControlTopic { empty }? & [ a:documentation [ xml:lang="en" """

This element sets the maximum number of samples that can be defragmented simultaneously for a reliable writer. This has to be large enough to handle retransmissions of historical data in addition to new samples.

The default value is: 16

""" ] ] element DefragReliableMaxSamples { xsd:integer }? & [ a:documentation [ xml:lang="en" """

This element sets the maximum number of samples that can be defragmented simultaneously for best-effort writers.

The default value is: 4

""" ] ] element DefragUnreliableMaxSamples { xsd:integer }? & [ a:documentation [ xml:lang="en" """

This element controls the maximum size of a delivery queue, expressed in samples. Once a delivery queue is full, incoming samples destined for that queue are dropped until space becomes available again.

The default value is: 256

""" ] ] element DeliveryQueueMaxSamples { xsd:integer }? & [ a:documentation [ xml:lang="en" """

This element enables expensive checks in builds with assertions enabled and is ignored otherwise. Recognised categories are: