Computer Hope

Microsoft => Microsoft Windows => Windows XP => Topic started by: nymph4 on February 02, 2009, 10:04:09 PM

Title: Ping help??
Post by: nymph4 on February 02, 2009, 10:04:09 PM
I need help understanding one thing about PING Command??

If you PING a web site of you PING your Network what is going on is this.

Your computer is sending Packits of Data to what ever you PING Networks web sites and so on. Then when the Packits of Data come back to your computer it displays a list of Specs.

How long it took for every Packit of Data to hit the Target computer and come back to yours and other stuff like that ok I get this.

But when you PING Localemichine  your computer PINGS itself.
But if you are not on a Network then it just PINGS itself but how does it do this??

What I meen is does your computer just PING it's Internale Componets like RAM  PCI Slots or what??

Because your not sending Packits of Data out of the computers ports so how does it PING itself????

Thanks
Title: Re: Ping help??
Post by: BC_Programmer on February 03, 2009, 12:32:22 AM
SIGH.

ping is a network command. it pings itself because LOCALHOST is aliased to 127.0.0.1
Title: Re: Ping help??
Post by: JJ 3000 on February 03, 2009, 12:43:53 AM
Hey nymph4, you ever think about getting a book about computers?
Title: Re: Ping help??
Post by: nymph4 on February 03, 2009, 06:44:27 PM
Ok I have been looking at a lot of Documents on the net about PING and I don't understnd one thing and I know they both have something to do with one another.

When you get your Ping Reply back it will tell you
TIME = 100 ms TTL = 252

TIME = 100 ms       
I know that meens it took 100 Milli Seconds for the Packet to comeback to you.

TTL = 252
I know that meens the Paket stays around for so long before it Dies.

Does this meen that the Paket Lives for 252 Milli Sconds???

And once a Packet gets sent out and comes back I thhought that is when it was nolonger in use????
Title: Re: Ping help??
Post by: nymph4 on February 04, 2009, 08:11:34 PM
Anyone???
Title: Re: Ping help??
Post by: mayers57 on February 04, 2009, 08:30:45 PM
TTL is a limit placed on the packet so that it doesn't travel a network forever. Usually set by the transmitting system.
For example: You ping an address that the 1st router on it's path can't find, so it's passed onto the next router. That
router is also unable to find that particular address so it too passes it onto the next. Each time a counter is decremented
by one until the TTL = 0. Then the packet dies. Otherwise the NET would have no bandwidth left, it would be overloaded
with addresses (pings or network requests) that were never able to be reached.
Hope that helps. 
Title: Re: Ping help??
Post by: nymph4 on February 05, 2009, 01:29:10 PM
I am trying to get the hang of PING commands
If I use the ping command
ping -i www.google.com

This will let me set how big in Bytes every Echo will be.

So if I would lik every Echo to be 42 Bytes my command should then be
ping -i 42 www.google.com

Amd I right
Title: Re: Ping help??
Post by: nymph4 on February 06, 2009, 11:57:10 AM
OK this is everything I could findout on google  about Ping Please tell me if I have it right??

ping www.apple.com
This will ping the Web Site with Four Packets.

You will get a Display like this.
REPLY FROM 17.254.0.91: BYTES = 32 TIME = 100 MS TTL = 252
REPLY FROM 17.254.0.91: BYTES = 32 TIME = 100 MS TTL = 252
REPLY FROM 17.254.0.91: BYTES = 32 TIME = 100 MS TTL = 252
REPLY FROM 17.254.0.91: BYTES = 32 TIME = 100 MS TTL = 252


REPLY FROM 17.254.0.91: BYTES = 32 TIME = 100 ms
This tells that Four Packets each 32 Bytes in Size were sent to www.apple.com and took 100 Milli Seconds.

TTL = 252
This tells the Packet will going around.

ping www.apple.com -c 10
This will ping the Web Site with Ten Packets or whatever you want.

ping www.apple.com -f
This will send another Packet immediately right after receiving a reply to the last one.

ping www.apple.com -s 45
This will make every Packet sent 45 Bytes you can not go higher then 65,527 Byes.
Title: Re: Ping help??
Post by: Hedonist on February 06, 2009, 04:31:39 PM
At last you've found Google ;D

Now please tell us from which site you got your info on Ping.

Entering Ping/? at the Command Prompt in XP Home produces
Quote
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
            [-r count] [-s count] [[-j host-list] | [-k host-list]]
            [-w timeout] target_name

Options:
    -t             Ping the specified host until stopped.
                   To see statistics and continue - type Control-Break;
                   To stop - type Control-C.

    -a             Resolve addresses to hostnames.

    -n count       Number of echo requests to send.

    -l size        Send buffer size.

    -f             Set Don't Fragment flag in packet.

    -i TTL         Time To Live.

    -v TOS         Type Of Service.

    -r count       Record route for count hops.

    -s count       Timestamp for count hops.

    -j host-list   Loose source route along host-list.

    -k host-list   Strict source route along host-list.

    -w timeout     Timeout in milliseconds to wait for each reply.

I can't find a -c switch, perhaps you are using a different OS?

Title: Re: Ping help??
Post by: Geek-9pm on February 06, 2009, 04:45:09 PM
Now that he knows Ping, would anybody
like to introduce him to Pong ?
Title: Re: Ping help??
Post by: BC_Programmer on February 07, 2009, 09:04:36 AM
Now that he knows Ping, would anybody
like to introduce him to Pong ?

And then,move up to Tick and Tock  ;D