I know that's what they do, but it annoys me a bit because as I continue on my walk (on a public road, not their territory!) , they think they've successfully seen me off - which (I believe) makes them bark more at the next passer by. Anyway, sometimes I loiter and drive them into a frenzy.
@chrisiow I think it is the pitch and speed of the barking, which must be to do with them having a small frame - because another dog barks at me from inside his house and that's not particularly annoying