I used to run 4-5 miles a day on city streets in residential neighborhoods with a lot of loose dogs around. Every now and then, one would try to get aggressive. My strategy was to run straight AT the dog, screaming yelling and waving my arms like hell. They turn tail and run. It always worked. It works on bullls, too.