Solved

Why does windows ping only 4 times?

Posted on 2008-06-19
12
2,340 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
Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
An article on effective troubleshooting
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

828 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