Solved

Why does windows ping only 4 times?

Posted on 2008-06-19
12
2,337 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
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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

776 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