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 Go to next message
Talha Ghaffar is currently offline Talha GhaffarFriend
Messages: 6
Registered: February 2017
Junior Member
Hi,

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?

Thanks!
Re: Latency of Mqtt Messages [message #1836410 is a reply to message #1796789] Sat, 02 January 2021 15:24 Go to previous messageGo to next message
Gambit Support is currently offline Gambit SupportFriend
Messages: 46
Registered: March 2019
Member
Check our blog post for performance testing issues:

https://gambitcomm.blogspot.com/2018/08/video-monitor-end-to-end-latency-of.html

"There are many variables that could impact the latency: the distance
between sensors, brokers and applications, the message profile, that
is the average size of the payload and frequency of the messages, the
QOS of the messages, the topic hierarchy being published to, the number
of subscriber clients and their performance, the retention policy for
messages, and many more. Only your particular requirements would tell
whether the performance is acceptable for you."
Re: Latency of Mqtt Messages [message #1843140 is a reply to message #1836410] Fri, 16 July 2021 12:26 Go to previous message
Gambit Support is currently offline Gambit SupportFriend
Messages: 46
Registered: March 2019
Member
We have released a self-service latency lab

https://mqttlab.iotsim.io/mqttlatency/

that you can rent on AWS Marketplace

https://aws.amazon.com/marketplace/pp/prodview-ve7g37yvzpdk2

and here is a 2-minute video of it in action

https://www.youtube.com/watch?v=GVX-115tzjs
Previous Topic:credentials for test.mosquitto.org:1884
Next Topic:High Resources Mosquitto Pub
Goto Forum:
  


Current Time: Fri Apr 19 21:30:02 GMT 2024

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

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

Back to the top