Check network state.