Compression is the process of attacking the higher levels of a signal keeping them under a specified threshold. Sustain is the process of amplifying the lower levels of a signal, thus creating more sustain the sound. Compression and Sustain pedals do both of these things simultaneously to create a more leveled signal starting from the attack points all the way through the end of the signal.