Connection-oriented and connectionless protocols
To provide different levels of quality assurance for different situations, the transport layer provides two prototype protocols:
Connection-oriented protocol: a connection is established and maintained between communication computers, and the connection status is monitored during the communication process. In other words, each packet transmitted over the network will have a confirmation. the sender's computer will record the status information to ensure that each packet is correctly received and re-transmitted as needed. After the data transmission is complete, the sender and receiver computers close the connection in an appropriate way.
Connectionless protocol: send data packets to the target computer in one way, and do not assume the responsibility of notifying the target computer about data transmission. After receiving data, the target computer does not need to return status information to the source computer.
We use two diagrams to explain the connection-oriented protocol and the connectionless protocol:
Transport Layer Concept