It is a natural process which god made for our comfort only.there is a Eustachian tube in our middle ear system which maintaining pressure changes in our system.
Due to this some body may feel pain in the ear.
Next Steps
during flight you can have few chungum for chew purpose and drink water frequently.
Health Tips
you can use regular pain killers if there is no allergic to medicine.and go for steam after go home.