# Ping returns not reliable data - why?

**URL:** <https://discourse.nodered.org/t/ping-returns-not-reliable-data-why/55316>\
**Category:** General\
**Created:** [16 December 2021 21:54 UTC](https://discourse.nodered.org/t/ping-returns-not-reliable-data-why/55316 "2021-12-16T21:54:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuperBoss9](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superboss9/32/23462_2.png) [@SuperBoss9](https://discourse.nodered.org/u/SuperBoss9)\
**Post date:** [16 December 2021 21:54 UTC](https://discourse.nodered.org/t/ping-returns-not-reliable-data-why/55316/1 "2021-12-16T21:54:37Z")

</div>

Hello All!

A fresh install of NodeRED 2.1.4 at Ubuntu 18 LTS. It seems that it works but...

If I use **ping** node (this one [node-red-node-ping (node) - Node-RED](https://flows.nodered.org/node/node-red-node-ping)) or **config ping** (this one [node-red-configurable-ping (node) - Node-RED](https://flows.nodered.org/node/node-red-configurable-ping)) I get very wierd results when I ping some devices at my own network. I can receive values like 0.452 as well as 238 from the same device.

And if I ping the same device from Ubuntu terminal - I get normal results like 1.85 with deviation 0.5.

What can be wrong? I don't use Ubuntu Snap, Docker or everything.

Tried to use **Advanced Ping** the same result. It gives more or less correct results. But then provides bad results like 224 ms.

PS. I use english version of OS.  
PSS. I did a small investigation. Review the code of the node, found the command promt for Linux. Try to execute in in terminal.  
If I use **ping -n -4 -w5000 192.168.8.223** and it pings without any stop then I receive good ping results. But if I run several times **ping -n -4 -w5000 -c1 192.168.8.223** in a raw then I receive very different results including these strange and large responses like 224.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [17 December 2021 07:11 UTC](https://discourse.nodered.org/t/ping-returns-not-reliable-data-why/55316/2 "2021-12-17T07:11:35Z")

</div>

As you have found the node just calls the underlying operating system ping command, and we just report what it says, so no idea why Ubuntu is behaving like that for you.

---

<div class="post-metadata">

**Author:** ![SuperBoss9](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superboss9/32/23462_2.png) [@SuperBoss9](https://discourse.nodered.org/u/SuperBoss9)\
**Post date:** [17 December 2021 07:42 UTC](https://discourse.nodered.org/t/ping-returns-not-reliable-data-why/55316/3 "2021-12-17T07:42:59Z")

</div>

Yes, I've found that there is something wrong within my local network. Trying to understand that.

---

<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:** [31 December 2021 07:43 UTC](https://discourse.nodered.org/t/ping-returns-not-reliable-data-why/55316/4 "2021-12-31T07:43:09Z")

</div>

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