Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Latency of Mqtt Messages(Measuring the breakdown of latency of Mqtt messages going through Mosquitto broker)
Latency of Mqtt Messages [message #1796789] Thu, 18 October 2018 23:16
Talha Ghaffar is currently offline Talha GhaffarFriend
Messages: 6
Registered: February 2017
Junior Member

I want to measure the time that a published message spends in the Mosquitto broker. My goal is to determine the latency breakdown of MQTT messages.
1. from publisher to reception by the broker
2. time spent in the broker
3. from broker_publish to reception by the subscriber.

My setup, for now, is a multiple publishers publishing to broker but one subscriber. I am using clean session & QoS = 1.

I am measuring total latency by adding a timestamp in payload @ publisher and taking the diff at the subscriber. From pub-to-broker, I am measuring it by taking /2 of the diff between timestamp @ publish time and timestamp @ reception of PUBACK [(T2-T1)/2].

I am not sure how other two components could be measured.

I haven't come across any stats/debug info that Mosquitto might provide regarding the time spent by a message in the broker. Does/Can mosquitto provide this data?

Previous Topic:How to send a variable with Mosquitto
Next Topic:Mark all messages as retained
Goto Forum:

Current Time: Wed Dec 02 00:20:22 GMT 2020

Powered by FUDForum. Page generated in 0.01922 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top