I have heard the word in lots of places. I know that it involves the use of winsock and it has to do something with getting and sending data between computers. But can you tell me
what does "Ping" do?
What is it usefull for?
Printable View
I have heard the word in lots of places. I know that it involves the use of winsock and it has to do something with getting and sending data between computers. But can you tell me
what does "Ping" do?
What is it usefull for?
returns the amount of time in milliseconds that it takes for a packet of data to get to one place and back.
Ok thanks. I have getright and I see the following statement in the settings:
When downloading, ping to help keep the connection alive
So, What else does it do other than just getting the time in which a packet is sent and gotten?
In that sense it means it will send a ping to the server to show you're still "alive" and will (theoretically) stop the "The Operation Timed Out" errors.
The "theoretical" could be because it's waiting for HTTP requests or other non-packet-level events.Quote:
Originally posted by j2k
will (theoretically) stop the "The Operation Timed Out" errors.
In addition to Cander's explanation, pings are commonly used to see if a remote system is available. If the ping requests time out, then either the system, or a router along the route, is down.
To determine where the problem is, do a tracert to the same IP or domain name. Tracert will display every IP along the route that it finds up to, but not including, the device that is down.
Pinging will not, however, determine if the server's software, such as Apache, is working. But ping and tracert are both two very useful and cool toys. It's interesting using tracert to see where your traffic is going.
This type of "ping" is more commonly reffered to as a heartbeat. One of the systems will send out a heartbeat message and the other system will return it.Quote:
Originally posted by j2k
In that sense it means it will send a ping to the server to show you're still "alive" and will (theoretically) stop the "The Operation Timed Out" errors.
As for the "The Operation Timed Out" errors, it is possible for a socket connection to exist for hours or even days with out timing out. It is when you actually send something and the send complete is not received from the tcp/ip protocol that the timeout error will occur.
When you have a persistant connection (that is, you don't close after every send/receive), it is good practice to send a heartbeat every so often if no data is being sent. This way, both sides can make a determination (after some predetermined amount of time) that there is a problem and they can close the connection and try to reconnect.
I've noticed my cable modem doing a keepalive. The transmit light flickers all the time. And no, I'm not performing a DoS attack, it happens even when all the computers are unplugged from the router that's plugged into the cablemodem.
That is why when I am downloading a 15MB file for a server, when it reaches about 10MB, it says that "time out". So will the ping thingy helpfull to not get the "time out" message and complete the download successfully?
If you're downloading, there should be no need for a keepalive. Are you using dialup? What ISP?
It depends. In my experience, it's more common to get Time Out errors if you're on dialup. I was on 56k and got Time Out errors all the time. I upgraded to ADSL Broadband 512k and hardly ever get Time Out errors any more. And if you're interested, no, I didn't change ISPs. My ISP (BT Internet) offer dialup and ADSL broadband. I kept BT Internet and upgraded to ADSL with the same ISP instead of getting ADSL from a different ISP mainly so I could keep my email address so I didn't have to tell all my friends to update their address books.Quote:
Originally posted by abdul
That is why when I am downloading a 15MB file for a server, when it reaches about 10MB, it says that "time out". So will the ping thingy helpfull to not get the "time out" message and complete the download successfully?
Now, to make things complicated, do you know that there are two types of pings - ICMP and UDP. I'm not too sure how the UDP one works - maybe at UDP port 0? And the ping packets can easily be blocked by routers/firewalls.
Is this recently? Because I've noticed the same thing, and I'm pretty sure its caused by probes from computers infected with Code Red. I think (my cable provider) Roadrunner had some problems with it.Quote:
I've noticed my cable modem doing a keepalive. The transmit light flickers all the time. And no, I'm not performing a DoS attack, it happens even when all the computers are unplugged from the router that's plugged into the cablemodem.
I think the word "ping" might be borrowed from the Navy terminology.
I have been seeing the same thing. Some days the activity is heavier than others. I had come to the same conclusion as you. BTW - I'm on the @HOME network.Quote:
Originally posted by JoshT
Is this recently? Because I've noticed the same thing, and I'm pretty sure its caused by probes from computers infected with Code Red. I think (my cable provider) Roadrunner had some problems with it.
I am using DSL by Bell Sympatico. Do I ping the ISP or what???
I think that I am only getting that Time Out error for a spicifc server. I think that server has a time limit or something like that. That is why I want to know that if I ping that server, will I be able to make the server assume that the connection with the server is always alive
Since you're already doing a s***load of TCP/IP traffic by downloading, I don't think that will help. It is bizarre that you are getting a timeout at all on DSL. It must be a bad server that you're trying to download from.
My guess is that the TTL is set too low. A ping or heartbeat isn't going to help.Quote:
Originally posted by abdul
I am using DSL by Bell Sympatico. Do I ping the ISP or what???
I think that I am only getting that Time Out error for a spicifc server. I think that server has a time limit or something like that. That is why I want to know that if I ping that server, will I be able to make the server assume that the connection with the server is always alive
BTW: This isn't really a VB question now is it :) Maybe you'd get more help about your Timeout problem in a non-VB forum!
Not that the people in the VB forum don't know what they're talking about!
Ok, great so is there anyway to ping a server and check the time it takes for a packet to be sent and recieved?:D (a vb related question now)Quote:
Originally posted by j2k
BTW: This isn't really a VB question now is it :) Maybe you'd get more help about your Timeout problem in a non-VB forum!
Not that the people in the VB forum don't know what they're talking about!
Haha!! Yeah you can - use WinSock.
The actual coding escapes me at the moment.. I'm sure the other VB boffins can help out!
do i see this? this cant be right... you have some 3k posts, on a programming forum, and you ask what ping is? If thats not horrible then i dont know what is... i think my 9 year old brother can turn out a rather nice def of ping, and he doesnt know **** about computers...
But you with 3k posts on a PROGRAMMING FORUM. What are you programming? AHH!! sorry mate thats just too much for me to comprehend, you asking what ping is... its hilarious
Crystal Meth: A response like that isn't called for. Please don't do it again.
If you are asking for code abdul, then ther are loads of tem. You ca try these three places: www.mvps.org/vbnet , www.vbip.com and as usual www.allapi.net . The api call you should be looking for is ICMPEcho and related calls.Quote:
Originally posted by abdul
Ok, great so is there anyway to ping a server and check the time it takes for a packet to be sent and recieved?:D (a vb related question now)
Crystal, are you the one who dug this old thread up? This is almost one year old and by now I know a lot more than "Ping". Also, I probably had about half of the posts I have now.
amitabh, thanks for the response but, as I said, this thread is
very old so my questions was already answered long time ago.:)
Sorry mate, i did a search for a keyword and this thread came up, i just never thought to look at the date. My apologies all. No worries
My fault, I didn't see the date. To be truthful, I was a little amazed as the question came from you.Quote:
Originally posted by abdul
Crystal, are you the one who dug this old thread up? This is almost one year old and by now I know a lot more than "Ping". Also, I probably had about half of the posts I have now.
amitabh, thanks for the response but, as I said, this thread is
very old so my questions was already answered long time ago.:)
No problem, Crystal and amitabh.:)
You can alternatively open the Command Prompt...
Start... Programs... Command Prompt... or on 2000/xp ... Start... Programs...Accessories..Command Prompt
Then enter something like
ping 64.5.4.1
or
tracert 64.5.4.1
And it will show u the TTL and all that stuff...
Haha... just read the 'in-between' posts.... lol...
yea, really, abdul... why you asking these ridiculous questions.... lmao...