You cannot expect to achieve success in dog training, if you cannot control yourself. With that, you need to practice self-control, in order to control your dog.
Dog training requires a lot of self-control, since it can take a lot of effort and time, to get your dog to follow your commands.
Special Article: Who are the Top 5 Best Indoor Dogs?
What to do when you feel frustrated
In training your dog, you need to be aware that there would be times when you would feel frustrated about it.
Whenever you feel angry at your dog though, you should not proceed with the training session.
Instead, let your dog do what he wants to do, and come back when you have already calmed down.