Protocol stack
Each layer of the protocol stack handles a different part of the communication.  There is a protocol stack with many different layers that are used to send data. Other layers are used to receive date. Often the data us sent and received at the same time.  When two things communicate with each other in a standard manner, this is known as a protocol.