These are a couple of things that have worked well for me over the years, maybe they will work for you. Many people like to use their tamper, sometimes to much sometimes not enough. I generally do not tamp that often, when I feel like my pipe is going out, I will cover the bowl with 2 fingers, blocking off most of the air and take a few short puffs reigniting my tobacco. I have found this very useful while driving and I don't want to reach for a tamper and it also keeps me from tamping too often packing the bowl too much.
Another thing I do is ash anytime the pipe goes out. I don't tamp down a load of ash and then try to relight, first off it makes relighting difficult and second I don't want to taste ash. Before I relight, I will take my tamper,loosen the ash that has been tamped down, tip the bowl and gently get rid of the ash making sure I am not losing any tobacco. I will then tamp lightly and fire it up. I have found that I get a much tastier smoke all the way to the bottom using this method. Give these a shot and see if they work for you.
Another thing I do is ash anytime the pipe goes out. I don't tamp down a load of ash and then try to relight, first off it makes relighting difficult and second I don't want to taste ash. Before I relight, I will take my tamper,loosen the ash that has been tamped down, tip the bowl and gently get rid of the ash making sure I am not losing any tobacco. I will then tamp lightly and fire it up. I have found that I get a much tastier smoke all the way to the bottom using this method. Give these a shot and see if they work for you.