out of order delivery of samples

4 posts / 0 new
Last post
Offline
Last seen: 6 years 1 month ago
Joined: 10/24/2013
Posts: 15
out of order delivery of samples

Hi,

We are getting data samples out-of-order on the subscriber side, when we use a QoS profile that is an extension of BuiltInQosLib-  Generic.StrictReliable.HighThroughput or when using a profile that is an extension of Generic.AutoTuning. (I have attached the xml QoS file we are using) 

This occurs even when batching is disabled. 

On the other hand, if we use the default QoS settings then we get samples in order. 

Can you please suggest why this behavior is occuring? 

 

thank you,

shweta 

 

AttachmentSize
File xml QoS file 6.83 KB
Organization:
sumant's picture
Offline
Last seen: 7 years 5 months ago
Joined: 02/02/2011
Posts: 7

Can you send me a simple reproducer? 

sumant's picture
Offline
Last seen: 7 years 5 months ago
Joined: 02/02/2011
Posts: 7

They may not be delivered in order, because the Presentation QoS policy (at the DDS::Publisher, DDS::Subscriber) controls how samples are actually presented to the user. Make sure they set access_scope to TOPIC_PRESENTATION and ordered_access to true (http://community.rti.com/rti-oc/510/ndds.5.1.0/doc/html/api_cpp/structDDS__PresentationQosPolicy.html). 

For example, 

<qos_profile>
<subscriber_qos>
<presentation>
<access_scope>TOPIC_PRESENTATION_QOS</access_scope>
<coherent_access>false</coherent_access>
<ordered_access>true</ordered_access>
</presentation>
</subscriber_qos>
</qos_profile>

Similarly for the publisher.

Offline
Last seen: 6 years 1 month ago
Joined: 10/24/2013
Posts: 15

great! thanks it works correctly now.