A model of the oscillations in the chromosphere and transition region above sunspot umbrae