Ping is entirely network.. the time it takes to make the trip from your computer, to the other, and back. Latency takes into account your actual system performance. Latency is what people say when they say 'lag'. If you have good ping, but your system performance is slow, then you're going to get latency, and the information that your computer is handling, falls behind.