A mirror made of electrons
At 60 to 500 km up, the sun knocks electrons off the atoms of the thin air. Where there are enough free electrons, shortwave signals are refracted: a ray coming in at a slant bends further and further back towards the earth until it runs level and comes down again. How strongly a height refracts is given by its plasma frequency. If your signal's frequency is below it, even a vertical ray turns round.
The electrons aren't spread evenly but sit in layers. In the picture on the left each height is shaded as brightly as there are electrons. Move the pointer into it and the plasma frequency of that height shows below.
D, E, F2
D layer (60 to 90 km): daytime only. It hardly refracts but absorbs, because the electrons there keep colliding with air molecules and give off their energy as heat. Low frequencies are hit hardest, roughly with one over fยฒ. That's why 80 m is dead over long distances at midday and open in the evening.
E layer (around 110 km): by day a critical frequency of about 3 to 4 MHz, almost gone at night. Low-angle rays on 40 m often turn round there already. In summer there are also dense clouds in the E layer, Sporadic E, which bring 10 m, 6 m and sometimes 2 m over 1000 to 2000 km.
F2 layer (about 250 to 400 km): the most important one for DX. Its critical frequency foF2 is measured by an ionosonde, which transmits straight up and listens for the echo. Depending on time of day and solar activity it lies between 2 and over 12 MHz. The height hmF2 decides how far one hop reaches.
What the model leaves out
The calculation uses a round earth and an ionosphere that is the same everywhere. So every hop is the same length. In reality the ionosphere changes along the path, especially at the boundary between day and night. The earth's magnetic field is missing too: in reality it splits every signal into two waves with slightly different critical frequencies. To get a feel for how angle, frequency and layer hang together, that's enough.