|Paho: Latency/RTT of published Mqtt Messages [message #1796545]
||Tue, 16 October 2018 00:42
| Talha Ghaffar
Registered: February 2017
I intend to measure the latency of MQTT messages (time from publishing to reception by the broker).
I am using Paho's MqttAsyncClient with QoS 1 to publish the messages to Mosquitto broker.
My idea is to use save the message_id->timestamp mapping while sending the message and when PUBACK is received (QoS 1), use the message_id from PUBACK packet (IMqttDeliveryToken.getMessageId()) to get RTT [curr_time() - insert_time(message_id)].
I want opinion whether this method seems sound enough to measure this latency.
I already have the publisher to subscriber latency (using the timestamp in the payload with publisher's and subscriber's clocks synchronized). My goal is to get the breakdown of this pub-sub latency into pub-broker and broker-sub latency.
Thanks for your ideas and help.
[Updated on: Tue, 16 October 2018 00:43]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.15452 seconds