The most important thing that you need to know about dogs is that they are excited by things that move. Dogs love to chase things. To stop a dog from chasing you or bothering you, the best thing to do is to stay still.
The best thing to do if a strange dog comes near you, your own dog is getting too frisky, or any dog is bothering you is to Be a Tree. Trees are boring to dogs and the dog will soon go away and leave you alone. Even if you are scared, it is important to stand very still and look at your feet. Never run from a dog! Here's how to Be a Tree:
Practice Makes Perfect