Migraine stopper

I find it very interesting how migraines might be relieved by such a measure. There are even ear plugs for the purpose. What is going on there physiologically?