If it's actively attacking you, make yourself small and don't run. If you run, dogs will be tempted to chase after you. Try to put something between you and the dog. After the attack, you may call the police if you feel that it's appropriate.