Why do we say the IP protocol in TCP/IP suite is connectionless?

前端 未结 7 1584
無奈伤痛
無奈伤痛 2021-01-31 00:22

Why is the IP called a connectionless protocol? If so, what is the connection-oriented protocol then?

Thanks.

Update - 1 - 20:21 2010/12/26

I think, to b

7条回答
  •  Happy的楠姐
    2021-01-31 00:57

    TCP/IP means "TCP over IP".

    TCP
    --
    IP
    
    • TCP provides the "connection-oriented" logic, ordering and control
    • IP provides getting packets from A to B however it can: "connectionless"

    Notes:

    • UDP is connection less but at the same level as TCP
    • Other protocols such as ICMP (used by ping) can run over IP but have nothing to do with TCP

    Edit:

    • "connection-oriented" mean established end to end connection. For example, you pick up the telephone, call someone = you have a connection.

    • "connection-less" means "send it, see what happens". For example, sending a letter via snail mail.a

    So IP gets your packets from A to B, maybe, in any order, not always eventually. TCP sorts them out, acknowledges them, requests a resends and provides the "connection"

提交回复
热议问题