# Modbus node performance testing

**URL:** https://discourse.nodered.org/t/modbus-node-performance-testing/81660
**Category:** General
**Created:** [29 September 2023 06:28 UTC](https://discourse.nodered.org/t/modbus-node-performance-testing/81660 "2023-09-29T06:28:54Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![amar123](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@amar123](https://discourse.nodered.org/u/amar123)
#### Post date: [29 September 2023 06:28 UTC](https://discourse.nodered.org/t/modbus-node-performance-testing/81660/1 "2023-09-29T06:28:54Z")

</div>

I did modbus performance testing by using modbus simulator and modbus read node.

I have read data every second and generated 3 days report and checked .  
I could see some data loss so Is there any other node rather than modbus read I can use to read modbus data ?

Any help is appriciated thank you in advance.

with regards,  
Amar

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [29 September 2023 06:50 UTC](https://discourse.nodered.org/t/modbus-node-performance-testing/81660/2 "2023-09-29T06:50:34Z")

</div>

I'm afraid your question is far too vague. There are far too many variables to even begin to answer this. For example:

How do you know it was a problem with the modbus nodes in node-red and not the modbus device being buggy/unresponsive?

Which modbus nodes did you use?

Is this modbus serial or TCP?

Are you 100% certain the modbus device was online 100% of the time?

Are you 100% certain there was no other external network outage?

Are you 100% certain the computer running node-red did not go to sleep or restart?

Are you 100% certain your method of measuring performance is accurate and reliable?

Have you searched for modbus in the palette - there are other contribution nodes.

* * *

Lastly, what were the actual results of your performance measurement? How many packets did you drop?. In any case, you should make your flows fault tolerant as there are so many things can go wrong at any given moment.

---

<div class="post-metadata">

### Author: ![amar123](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@amar123](https://discourse.nodered.org/u/amar123)
#### Post date: [29 September 2023 06:56 UTC](https://discourse.nodered.org/t/modbus-node-performance-testing/81660/3 "2023-09-29T06:56:37Z")

</div>

> [@Steve-Mcl](#):
>
> I'm afraid your question is far too vague

I used node-red-contrib-modbus : modbus-read node and I am sure that it was 100% available all the time and the efficiency came around 95% for example Out of 100 , 5 packets were missing.

and I also searched for the other nodes in palette yes there are other nodes as well But i am not sure which node to use.

So i raised a question if is there any node which other people have used and they got a reading efficiency around 98-99%

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [29 September 2023 07:05 UTC](https://discourse.nodered.org/t/modbus-node-performance-testing/81660/4 "2023-09-29T07:05:06Z")

</div>

You haven't stated how you measured performance or answered most of the other questions.

My money is on the problem being either in your performance measurement method or something downstream.

I am certain you know this but I will spell it out anyway, it is very possible and fairly common for a cheap hardware device to be buggy and occasionally unresponsive.

So how exactly did you measure performance? Did you use a network analyser?

---

<div class="post-metadata">

### Author: ![amar123](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@amar123](https://discourse.nodered.org/u/amar123)
#### Post date: [29 September 2023 08:50 UTC](https://discourse.nodered.org/t/modbus-node-performance-testing/81660/5 "2023-09-29T08:50:49Z")

</div>

So basically I generated data every second for 10 nodes and I calculated the time interval(seconds) between these three days and checked.

thats how I analysed the data ,  
Is there any other ways to analyse?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [29 September 2023 09:00 UTC](https://discourse.nodered.org/t/modbus-node-performance-testing/81660/6 "2023-09-29T09:00:43Z")

</div>

> [@amar123](#):
>
> 10 nodes

Okay, now I suspect your use of nodes and how you have arranged your flow is the problem

My bet is you have these all in parallel.

> [@amar123](#):
>
> Is there any other ways to analyse

Yes if you want true analysis, you would connect a network analyser and you would inspect the TCP packets sent Vs received. Then you could accurately lay blame.

---

<div class="post-metadata">

### Author: ![amar123](https://avatars.discourse-cdn.com/v4/letter/a/53a042/32.png) [@amar123](https://discourse.nodered.org/u/amar123)
#### Post date: [29 September 2023 09:08 UTC](https://discourse.nodered.org/t/modbus-node-performance-testing/81660/7 "2023-09-29T09:08:45Z")

</div>

> [@Steve-Mcl](#):
>
> network analyser and you would inspect the TC

Could you pls help me with the network analyser , I mean what kind of network analyser I should use.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [29 September 2023 10:12 UTC](https://discourse.nodered.org/t/modbus-node-performance-testing/81660/8 "2023-09-29T10:12:20Z")

</div>

Asuming Modbus TCP (you didnt state Serial/TCP), then wireshark or TCPDump are popular tools for network analysing.

> [@Steve-Mcl](#):
>
> > [@amar123](#):
> >
> > 10 nodes
> 
> Okay, now I suspect your use of nodes and how you have arranged your flow is the problem
> 
> My bet is you have these all in parallel.

You can save yourself a LOT of investigation and analysis if you tell us/show us how you are grabbing data. As I said above, I suspect you are doing multiple parallel reads based on the comment "10 nodes". This will create contention and inconsistent results & ultimately the cause of your problems.

You might want to read these 2 articles to help you design a better, faster, mor consistent flow for accessing data (skip straight to Part 2 for the juicy details)

- [Modernize your legacy industrial data • FlowFuse](https://flowfuse.com/blog/2023/09/modernize-your-legacy-industrial-data/)
- [Modernize your legacy industrial data. Part 2. • FlowFuse](https://flowfuse.com/blog/2023/09/modernize-your-legacy-industrial-data-part2/)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [28 November 2023 10:12 UTC](https://discourse.nodered.org/t/modbus-node-performance-testing/81660/9 "2023-11-28T10:12:36Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
