How to check network latency?

ping and traceroute will help you measure latency.