internet state
connected state

ping method
last state method