NI1 is best. If you've lost the situation , and its running at me I book to the truck if I have time. For an old chick Im pretty fast. This will get you a union letter, you are not suppose to run from an animal.
There is a difference between a country dog, and a dog in a neighborhood where they are trained to keep strangers from the house. You can survive a bite, but if it gets you on the ground you could be toast, and dinner. Thankfully, these dogs are few.
Toot the horn if you suspect, avoid knocking on door that only open in with no storm door you can hold shut with your foot. Stealth mode is best.
I have heard that most dogs know the command sit, I guess you could try that. If all else fails.
I was only bitten by a large breed once, and it was a dalmation rot mix. It ripped the bicep out of my arm. Dalmations are a one person dog, and too much inbreeding with the cute little movie, 101 dalmations. And everyone wanted one.
The ankle biters are far worse, but do less damage.
And I know they sense fear. Saw it proven. I was afraid to get out of my personal truck when garage saleing, the dog could get right to the curb, neighbors didnt want people parking there. It wouldnt let me out of the truck. My husband walked over talked sternly to it, tucked tail and went and sat down. They dont like baby voices. My neighbor had a hybrid, and if you talked to it like you would a baby he got very upset.