My dog got attacked by one lab in my neighborhood on a walk. Another time it chased me and my dog into some guys yard and was going to try and attack again till I found a stick. I have called animal control on them twice. There is golden retriever type dog in my neighborhood that goes nuts every time I walk past it. I am so thankful that it is getting older and can’t jump the fence it is behind.
You can buy sonic dog repellents. They are used for training. If it’s a continuous local problem it might be worth it. More than one dog is a problem like that, do you live in a city?