Each layer communicates with a peer layer on another node by sending messages back and forth.