Best way I know of.
1) Wrap something around your arm for example a jumper/something thick.
2) Ensure the dog goes for your arm
3) Once the dog has your arm in it's jaws hit the neck of the dog very hard with your fist/stick.
as a big dogs runs at you...
"one second lad whilst i just whip off my jumper and wrap it around my arm"