if i ping a website and the web server is down, i will get a response like the above. however, it took like 16 seconds to get the message, anyone know why?
if i ping a website and the web server is down, i will get a response like the above. however, it took like 16 seconds to get the message, anyone know why?
If I'm correct, "ping" sents a requests via UDP and simply counts the time until it gets an Ack message. After 16 seconds, I suppose it just gives up.
Sent from my iPad®
If ping receives server name instead of ip, it should firstly resolve the name...
So before actual ICMP packet the NBNS is sent, asking what is the IP of the server
If no response is received during the timeout then message is printed that the host is unknown
If the host ip is resolved sucessully but it does not respons to the ICMP request the timeout message is printed (4 times by default)
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
Replies here:
http://cboard.cprogramming.com/showthread.php?t=86257
CProgramming FAQ
Caution: this person may be a carrier of the misinformation virus.