Ping! (Short Question)

This is a discussion on Ping! (Short Question) within the Tech Board forums, part of the Community Boards category; When you ping an address, is random garbage sent out? Thanks !...

  1. #1
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949

    Ping! (Short Question)

    When you ping an address, is random garbage sent out? Thanks !
    Do not make direct eye contact with me.

  2. #2
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    Depending on which program you're using, yes.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  3. #3
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    the ping command which comes with winxp - never used it before, but for some reason i decided to try it out and right now I'm sending 5000 bytes of data to cprogramming.com - .
    Do not make direct eye contact with me.

  4. #4
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    Hmm - sorry to ask, but what exactly is time to live??
    Do not make direct eye contact with me.

  5. #5
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    How many milliseconds that ping will wait for the packet to come back before sending the next packet.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  6. #6
    The Defective GRAPE Lurker's Avatar
    Join Date
    Feb 2003
    Posts
    949
    Right - thanks .
    Do not make direct eye contact with me.

  7. #7
    Registered User glUser3f's Avatar
    Join Date
    Aug 2003
    Posts
    345
    Hmm, it's been a while since I read about TCP/IP, but I guess Ping uses ICMP, one of the messages available from ICMP is a request for response, another one is the resopnse itself, so basically ping sends a request for response by ICMP, and waits for the response.
    For more info, google for ICMP.

  8. #8
    Obsessed with C chrismiceli's Avatar
    Join Date
    Jan 2003
    Posts
    501
    Yeah, I think that is right, I think I remember reading that ping is sending no data on the tcp stream (would have to mean in tcp wrapper then), just a special request, and what is sent back is the return special address.
    Help populate a c/c++ help irc channel
    server: irc://irc.efnet.net
    channel: #c

  9. #9
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by Lurker
    Hmm - sorry to ask, but what exactly is time to live??
    Originally posted by XSquared
    How many milliseconds that ping will wait for the packet to come back before sending the next packet.
    No, it ain't. It's the number of hops the packets will take before it is deemed to have expired in transit. It stops the packet getting stuck in an endless loop between two routers. If a router finds that a TTL has reached 0, it sends an ICMP message back to the source IP.
    http://www.freesoft.org/CIE/RFC/1812/110.htm
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Accessing Structures Inside Structures
    By Mellowz in forum C Programming
    Replies: 1
    Last Post: 01-13-2008, 02:55 AM
  2. ping program
    By lithium in forum Networking/Device Communication
    Replies: 6
    Last Post: 10-28-2005, 12:47 AM
  3. Simple Short Class Question
    By Travis Dane in forum C++ Programming
    Replies: 2
    Last Post: 12-24-2002, 06:12 PM
  4. traversal of tree (short question)
    By mackol in forum C Programming
    Replies: 5
    Last Post: 11-25-2002, 07:41 AM
  5. Replies: 1
    Last Post: 01-23-2002, 02:34 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21