# Network Packet Loss

**URL:** <https://discourse.nodered.org/t/network-packet-loss/12182>\
**Category:** General\
**Created:** [13 June 2019 12:43 UTC](https://discourse.nodered.org/t/network-packet-loss/12182 "2019-06-13T12:43:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![caracall](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@caracall](https://discourse.nodered.org/u/caracall)\
**Post date:** [13 June 2019 12:43 UTC](https://discourse.nodered.org/t/network-packet-loss/12182/1 "2019-06-13T12:43:56Z")

</div>

Hello,

I was just wondering if is it possible to calculate packet loss of a stream of data transmitted through a LAN network using some nodes in Node-RED. I have two machines on a LAN network, each has Node-RED running separately. I am using UDP and TCP sockets (in different experiments) to transmit a stream of data from a node running on Node-RED of the first machine to be received by another node running on Node-RED of the second machine. Is it possible to find a way in Node-RED to calculate the packet loss of my data for each method (UDP and TCP)?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [14 June 2019 12:28 UTC](https://discourse.nodered.org/t/network-packet-loss/12182/2 "2019-06-14T12:28:24Z")

</div>

udp will be hard,no sync/ack. you could use tshark or any other commandline based packet tracer.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [14 June 2019 21:47 UTC](https://discourse.nodered.org/t/network-packet-loss/12182/3 "2019-06-14T21:47:28Z")

</div>

I agree, you would need a method to either monitor or proxy the transfer. Typically finding packet loss has to be done right down in the network stack so something high-level like Node-RED won't have access unless a 3rd-party tool is used. Then the difficulty is matching the actual data transfer in Node-RED terms to the low-level data transfer.

This is most easily done manually if you are able to use Wireshark.

---

<div class="post-metadata">

**Author:** ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)\
**Post date:** [14 June 2019 22:25 UTC](https://discourse.nodered.org/t/network-packet-loss/12182/4 "2019-06-14T22:25:41Z")

</div>

If you want to measure packet loss you probably will need to measure delay and jitter too. Better to use a specialized tool like [iperf.](https://iperf.fr/)
