in reply to Re^5: How to build a tcp session with a remote server?
in thread How to build a tcp session with a remote server?
There's the OSI model, and there's the Internet Protocol Suite (IPS). The former has 7 layers, all kinds of protocols for those layers, isn't currently used by any major OS, and neither used IP nor TCP (although both protocols are sometimes retrofitted in the OSI model). IPS has four layers: link layer, internet layer, transport layer and application layer. On each of those layers, there are many protocols. TCP is a protocol on the transport layer. IP is a different protocol on a different layer.
Think about it. If TCP/IP would be a layer, surely UDP/IP would be a different layer. Which layer would it be? Above or below the TCP/IP layer?
Transport means move bits from point A to BWrong. Both in the OSI and in the IPS models. Moving bits around in the OSI model is the task of the Physical Layer, while in the IPS model, it is the task of the Link Layer (with protocols like Ethernet and ISDN, and many more). But note that some of the tasks of the IPS Link Layer are found in the Data Link Layer of the OSI model.
TCP belongs in the Transport Layer (layer 3), which provides end-to-end communication. In the OSI model, this would correspond to the similary named Transport Layer (layer 4), but TCP also does some of the tasks found in the Session Layer (layer 5) of OSI (but not all of it - part of the tasks of the Session Layer are not found in the IPS model). IP on the other hand is found in the layer that does routing, and end-to-end delivery of datagrams. For the IPS model, this is the Internet Layer (layer 2), which corresponds to the Network Layer (layer 3) in the OSI model.
Please, stop confusing protocols and layers.
|
|---|