The Structure of the Upper Atmosphere