Have an ongoing biting toddler issue myself....! He doesn't do it at home any more, or when playing with friends, only at nursery ARGH. At home I would immediately lift him and remove him from playing and take him out into another room, stand him on his feet holding his hands, look very stern and in best firm voice say very simply "you may not bite, biting hurts" then walk away. I don't make him stay there as he's too small to understand why, but the removal for him is enough because he hates having to stop fun stuff, and hates being left by himself like that. He seems to have got the message. He's allowed to come back into the room as soon as he's ready and when he does I talk to him very gently, not scarily but still seriously, to reinforce "no biting", then tell him I love him and give him a hug. He gives me a kiss and we carry on playing.
This seems to have worked at home but nursery are not having as much success However he is getting better and it happens less often.
I posted here about it (can't find the thread as am too thick to know how to search for a past thread, sorry! ) and many many people said not to bite back, with some really good convincing reasoning. I think as long as the concequence is something they don't like, and is immediate, the message will get through. My ds is 1.10 but hasn´t many words yet so post-explanations don´t really help. Maybe if your ds is more able to have a conversation you can talk about it out of the heat of the moment?
Good luck! I am at least grateful that ds does it out of frustration rather than premeditated revenge which I think would be harder to get rid of.