Polling data rate calculator
Enter the tags per poll, bytes per value, tags per request, poll interval and link speed to see the data rate and how much of the link it fills.
Calculator
This calculator needs JavaScript. Without it, use the formulas under "How it works" and the worked example.
Network load of cyclic tag reads
Header bytes cover the request and the response together, with their Ethernet, IP and TCP headers. Replace the default with your protocol's figure.
How it works
Every poll is a request that goes out and a reply that comes back. The reply carries the tag values, and each request and response also costs a fixed header. Reading more tags in one request spreads that header over more data, which is why the number of tags per request matters as much as the number of tags.
- Requests per poll = tags ÷ tags per request, rounded up.
- Bytes per poll = tags × bytes per tag + requests × header bytes.
- Data rate = bytes per poll ÷ poll interval. Line rate = data rate × 8, shown in kbit/s.
- Share of the link = line rate ÷ link speed.
The default of 130 header bytes is a usual order of magnitude for one Modbus TCP read: about 12 bytes of application request and 9 of reply, plus 54 bytes of Ethernet, IP and TCP header in each direction. Other protocols differ, so replace it with your own figure. The result is an average: it ignores acknowledgements, retransmissions, bursts and other traffic on the same link.
Worked example
A gateway polls 5,000 tags of 4 bytes each, 100 tags to a request, once a second, over a 100 Mbit/s link. That takes 50 requests a poll. The tags themselves are 20 KB and the headers add 6.5 KB, for 26.5 KB a poll.
The line rate is 212 kbit/s, which is 0.212 % of the link. Asking for the tags one at a time would multiply the header cost by 100.
Common mistakes
- Counting the tag bytes and forgetting the headers. With small requests the headers can be most of the traffic.
- Reading one tag per request. The same data in blocks of 100 tags uses a small fraction of the headers.
- Judging the load on the average alone. Polls that start together arrive as a burst, and a slow link queues them.
- Using megabytes and megabits interchangeably. The link speed is in bits, the data in bytes, and the calculator multiplies by 8.
- Ignoring other traffic on the same link, such as video, backups or a second gateway.