adb shell ping

ping (Packet Internet Groper) is a network administration utility used to testing, and diagnosing network connectivity issues

adb shell ping
Notes: press Ctrl-C to stop ping

Specifies the number of echo Request messages sent

adb shell ping -c 4

Specifies the amount of time, in milliseconds, to wait for the echo Reply message that corresponds to a given echo Request message to be received

The default time-out is 4000 (4 seconds)
adb shell ping -W 200

Interval in seconds

By default, interval is 1 second
adb shell ping -i 2