Paho: Latency/RTT of published Mqtt Messages [message #1796545] |
Mon, 15 October 2018 20:42  |
Eclipse User |
|
|
|
Hi,
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.
NOTE:
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: Mon, 15 October 2018 20:43] by Moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04274 seconds