There are three types of herding styles: driving, mustering (fetching), and tending.
Driving is when the dog pushes a group of livestock away from the handler. Australian Shepherds and corgis specialize in this style.
Mustering/Fetching is when the dog brings a group of livestock towards the handler, often from a long distance away. Border Collies specialize in this style.
Tending is when the dog keeps a group of livestock in one spot or in an orderly movement. German Shepherds specialize in this style.