a dog that was originally bred for guarding and herding livestock (mostly cattle).