3 réponses
The layers in question each have a different role
The network layer allows two 'peers' to connect and therefore exchange data: when we talk about IP, it is indeed in connectionless mode
The transport layer ensures (or not) that all the data has been received, puts them back in the correct order, etc.
If I want to control all exchanges, I will use connection-oriented mode: TCP: heavy protocol
If losing a packet once in a while is not a big deal or if retransmitting lost packets is useless anyway, then I will use UDP: connectionless mode: lightweight protocol
The network layer allows two 'peers' to connect and therefore exchange data: when we talk about IP, it is indeed in connectionless mode
The transport layer ensures (or not) that all the data has been received, puts them back in the correct order, etc.
If I want to control all exchanges, I will use connection-oriented mode: TCP: heavy protocol
If losing a packet once in a while is not a big deal or if retransmitting lost packets is useless anyway, then I will use UDP: connectionless mode: lightweight protocol