Check network state