Solved

Why does windows ping only 4 times?

Posted on 2008-06-19
12
2,346 Views
Last Modified: 2011-10-19
Dear All,

This isnt really a help question, but more of a "why is that?"

Can anyone answer me why does Windows only ping 4 times?
Is there any real reason behind this.. As there is abit of a debate going on where I work. One person said its because of the OSI model.. Silly boy...

If anyone could help me, that would be great
0
Comment
Question by:jackoltd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
12 Comments
 
LVL 12

Expert Comment

by:alikaz3
ID: 21823956
Why would you need more than 4? I see why they don't have it go just once, as there are some fluke measurements. More than 4 seems redundant to me. That is also just the default amount of times, the "-n count" switch can make it operate as many times as you'd like.
0
 
LVL 1

Accepted Solution

by:
hybridrocknroll earned 84 total points
ID: 21824070
First, check out the definition: Ping works by sending ICMP echo request packets to the target host and listening for ICMP echo response replies. Ping estimates the round-trip time, generally in milliseconds, and records any packet loss, creating a summary of the readings.

The echo request is an ICMP message whose data is expected to be received back in an echo reply ("pong"). The host must respond to all echo requests with an echo reply containing the exact data received in the request message.

Because data is constantly moving, 4 is used because a number greater would be redundant and time consuming, less would create less data to measure and thus less to examine when there is a problem. 4 also allows for network "hick-ups", so if there is a millisecond of down time, 75% would still pass, but still shows there are faults. That's the way that I understand it.
0
 
LVL 2

Expert Comment

by:Jamsb
ID: 21824073
Do ping <Ip Address> -t to ping continuously.
0
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 
LVL 2

Expert Comment

by:Jamsb
ID: 21824089
Sorry. I Misread the question.
0
 
LVL 3

Expert Comment

by:Trivious
ID: 21824275
Thats the standard that Microsoft set. They believe that it is not only sufficient to determine if there is a reply coming back in a timely fashion, but that it isnt overkill either. They included the switches to give you versatility in this aspect if you feel otherwise or need more pings for some reason. Its a Microsoft standard, thats all.
0
 

Author Comment

by:jackoltd
ID: 21824334
So there is no real technical reason for it, they just felt like it?
I was expecting some 5page long technical reason behind it...

I've been told that Apple and other OS's just do a continuous ping until you cancel it (like you can do in windows with the switch
0
 
LVL 12

Expert Comment

by:alikaz3
ID: 21824481
Yea but that requires using the control-c function to get out. I know tech's wouldn't like to explain an extra step to someone over the phone :D
0
 
LVL 58

Assisted Solution

by:tigermatt
tigermatt earned 83 total points
ID: 21825585
There's is a slightly technical reason to it, but the figure of 4 pings isn't really a set figure which must be used. 4 ping transmits are set simply because sending one ICMP ping packet to the remote host might happen to be blocked or stopped between your PC and the remote PC. Using 4 pings ensures multiple packets are transmitted, and therefore you can check to see that there wasn't just a temporary fault by comparing the results across each ping.

But the actual technical reason behind 4 pings - there isn't one, they could have made it 3 or 5 or any other number above 1 to satisfy the above requirement - I guess 4 just means the ping can both be reliable in terms of ensuring the connection is valid but at the same time it doesn't take too long to run the requests.

-tigermatt
0
 
LVL 12

Assisted Solution

by:str_kani
str_kani earned 83 total points
ID: 22387977
I like this question, I made some testing with the Ping.exe before comment on this. I think they set this to 4 just to make the calculations simple. I tried with -n to see how they calculate the % of received and lost.

I tried a ping for -n 100 and was waiting till the first time out. First lose of packet.

See the attached screen print for my point, 40 packets sent,  received 39  lost: 1, Microsoft's ping says 2% lost but 2.5% to be accurate. so whoever ping with out -n they will ping 4 times and calculate the % easily and does not care about values less than or equal to .5?!


Microsoft-pings.jpg
0
 
LVL 12

Expert Comment

by:alikaz3
ID: 22388323
str_kani brings up a very good point. Why wouldn't MS just code their program correctly so it rounds that 2.5 up to 3? I bet it rounds down all values (2.99=2), that would be an interesting experiment :D
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question