Early diagnosis and early treatment are the keys to successfully combating altitude sickness.
The most reliable and effective treatment is to descend.
For mild altitude sickness, stop ascending. Take Diamox three times a day.
For moderate altitude sickness, descend. Give pressurized oxygen if available. Take Diamox every six hours. Inject steroids (Dexamethasone) if available. Utilize pressure bag (Gamow bag).
For Cerebral edema, descend immediately. Administer 2 to 4 liters of oxygen per minute. Inject 8mg of Dexamethasone. Utilize pressure bag.
For Pulmonary edema, descend immediately. Administer 4 liters of oxygen. Take Nifedipine 10mg. Use pressure bag. Keep the patient warm and reduce activity level.

For high altitude insomnia, take Diamox before sleep. Use oxygen. Sleep in lower altitude than during the day.