{"id":1502,"date":"2024-11-15T10:30:43","date_gmt":"2024-11-15T08:30:43","guid":{"rendered":"https:\/\/www.rocworks.at\/wordpress\/?p=1502"},"modified":"2024-11-30T10:31:52","modified_gmt":"2024-11-30T08:31:52","slug":"%f0%9f%93%8a-mqtt-vs-opc-ua-bandwidth-usage-unexpected-results","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=1502","title":{"rendered":"\ud83d\udcca MQTT vs. OPC UA: Bandwidth Usage &#8211; Unexpected Results!?"},"content":{"rendered":"\n<p>\ud83e\udd14 I often heared about claims that MQTT requires less bandwidth than OPC UA. In my own testing, I found the opposite to be true!<br><br>\ud83e\uddea I took a tree of over 3,500 topics, changing every topic once a second and replicated the exact same structure in OPC UA. In MQTT I was using a simple JSON payload of TimeMS plus the Value (just to note: OPC UA transmits more information than that). I also tried a version with just the plain value as a string. Then, I compared the network I\/O stats of client programs subscribing to all those tags, both for OPC UA and MQTT, and confirmed that both clients are receiving all values.<br><br>\ud83d\udc49 MQTT didn\u2019t show a bandwidth advantage &#8211; in fact, it used four to six times the bandwidth of OPC UA in this setup! See the results. 200 KB\/s vs 50 KB\/s<br><br>And, to be honest, it makes sense: every single value change in MQTT includes the full topic name (enterprise\/site\/area\/cell\/&#8230;), creating a high overhead compared to OPC UA.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/11\/1731333337526.jpeg\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"387\" src=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/11\/1731333337526.jpeg\" alt=\"\" class=\"wp-image-1503\" srcset=\"https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/11\/1731333337526.jpeg 800w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/11\/1731333337526-300x145.jpeg 300w, https:\/\/www.rocworks.at\/wordpress\/wp-content\/uploads\/2024\/11\/1731333337526-768x372.jpeg 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\ud83e\udd14 I often heared about claims that MQTT requires less bandwidth than OPC UA. In my own testing, I found the opposite to be true! \ud83e\uddea I took a tree of over 3,500 topics, changing every topic once a second and replicated the exact same structure in OPC UA. In MQTT I was using a &hellip; <a href=\"https:\/\/www.rocworks.at\/wordpress\/?p=1502\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">\ud83d\udcca MQTT vs. OPC UA: Bandwidth Usage &#8211; Unexpected Results!?<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67],"tags":[],"class_list":["post-1502","post","type-post","status-publish","format-standard","hentry","category-mqtt"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1502","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1502"}],"version-history":[{"count":1,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1502\/revisions"}],"predecessor-version":[{"id":1504,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1502\/revisions\/1504"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}