when you send a ping to another computer on the network what you are actually doing is sending an ICMP 'echo' request. (ICMP is the Internet control message protocol). When the remote computer received this ICMP echo request, it sends back a response. This enables the person sending the ping to determine not only that the remote host is accessible, but is also used to establish how fast the link is between the two systems.
Hope this makes sense.