Protocols establish how two computers send and receive a message. Data packets travel between source and destination from one router to the next. The process of exchanging data packets is known as packet switching
When two devices send messages to each other it is called handshaking. For this the client requests access, the server grants it, and the protocols are agreed. Once the handshaking process is complete, the data transfer can begin.
DIFFERENT TYPES OF PROTOCOLS