TCP/IP...connection-oriented, connectionless

boco -  
Nico le Vosgien Posted messages 1580 Status Contributor -
Hello, how can we be in offline mode at the network layer while being in online mode at the transport layer (TCP/IP)? I don't really understand all of this...

3 answers

  1. Nico le Vosgien Posted messages 1580 Status Contributor 266
     
    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
    9