Validating network connectivity