check if source to destination is connected