

Note: Although OSI is the most famous model but the actual model in practice is TCP/IP Model. OSI model is used only for reference purposes
TCP and IP
Two protocols called Transmission Control Protocol (TCP) & Internet Protocol (IP) work together to form the foundations of this protocol suite. They form a team that works together to make it possible for applications to easily run over an internetwork. TCP is “a Connection-Oriented Transport Layer (Layer4) protocol for reliable communication b/w network devices”. TCPv4 was standardized in RFC-793 in1981. It is also called Host-to-Host protocol. It provides to applications a method of easily use the IP. It also fills in the capabilities that IP lacks. It allows TCP/IP devices to establish and manage connections and send data reliably and takes care of handling all the potential issues that can occur during transmission so that each application doesn’t need to worry about these details. It provides Reliable communication through PAR (Positive Acknowledgement with Re-transmission) using 3-way handshake process which is discussed in next section. IP is related with classic Network Layer tasks (Logical Addressing, Routing) for basic internetworking capabilities.TCP/IP Model Layers
TCP/IP Model divides the network communication processes into 4 Layers in order to simplify it. Each layer performs specific functions to support the layers above it. The layers of the protocol suite near the top are logically closer to the user application, while those near the bottom are logically closer to the physical transmission of the data. TCP/IP Model has 4x Layers starting from Physical Network Interface till Application level as in below:
TCP/IP Model vs OSI Model
OSI (Open System Interconnection) is another model of the same kind. It also has same layered structure. The TCP/IP model is a condensed version of the OSI reference model consisting of only the 4xLayers. The functions of these four layers are comparable to the functions of the seven layers of the OSI Model. Below figure shows the comparison between the layers of the two models:
OSI Model | TCP/IP Model |
Mostly used for reference purposes only | Practical Model in use today |
OSI Model was chosen & released in 1984 by ISO | TCP/IP Model was created in the 1970s by DARPA |
Each layer participates in Error Handling | Transport Layer is the only layer for Error Handling |
Not so simple model as compared to TCP/IP Model (7 Layers) | Simple Model – 4Layers only (and robust compared) |
Connection Management is done by Session Layer | Connection Management is done by Transport Layer as extra duty (as there is no Session Layer) |
Data Formatting/Conversion is done by Presentation Layer | Data Formatting/Conversion is done by Application Layer |
Uses Horizontal Approach | Uses Vertical Approach <follow us on www.networkwalks.com> |
— | Transport Layer uses 3-way Handshake mechanism for Error Handling |
— | Transport Layer uses Sliding Windows mechanism for Flow Control |
Transport Layer is Connection Oriented | Transport Layer can be both Connection Oriented and connectionless |
Network Layer can be Connection Oriented and Connectionless | Network Layer is always Connectionless |
OSI Model places emphasis on providing a reliable data transfer service | TCP/IP model treats reliability as an end-to-end problem |
OSI Model defines services, interfaces and protocols very clearly and makes clear distinction between them. It is protocol independent. | In TCP/IP, services, interfaces and protocols are not clearly separated. It is also protocol dependent |
Hosts on OSI implementations do not handle network operations (simple terminal) | Hosts participate in most network protocols |
TCP 3-way Handshake Process
TCP uses a process called 3-way Handshake for reliable communication. In 3-way Handshake process, three TCP segments are exchanged between the sender and the receiver to establish a reliable connection. These are called SYN, SYN-ACK and ACK. Step1 (SYN): In the first step, client wants to establish a connection with server, so it sends a segment with SYN (Synchronize Sequence Number). This informs server that client is likely to start communication and with what sequence number it starts segments with. Step2 (SYN + ACK): In the second step, Server responds to the client request with SYN-ACK signal bits set. Acknowledgment (ACK) signifies the response of segment it received and SYN signifies with what sequence number it is likely to start the segments with. Step3 (ACK): In the last step, client acknowledges the response of server by ACK message. Status on both sides change to ESTABLISHED and both get ready to start the actual data transfer. The steps 1 and 2 establish the connection parameter (sequence numbers) for one direction and it is acknowledged. The steps 2 and 3 establish the connection parameter for the other direction and it is acknowledged. After the whole process, a full-duplex communication is established. ISN’s (Initial Sequence Numbers) are randomly selected while establishing connections between client and server. Below is the simplified view of TCP 3-way handshake process:
TCP/IP Protocols
Each layer in TCP/IP model has some protocols associated with it. For example, TCP and UDP are two protocols that belong to Transport Layer. TCP is connection oriented protocol while UDP is connectionless protocol. TCP/IP Model provides a practical framework for communication between computers, but the model itself is not a method of communication. Actual communication is made possible by using communication protocols. Some important protocols on each layer are as in below:TCP/IP Devices
Similar to protocols, each layer has associated equipment with it. For example, Hubs, Repeaters, Media Converters, L2 Switches & Bridges operate at Physical Network Interface Layer, Routers & Layer3 Switches operate on Internet Layer, Firewalls work on Transport Layer4. End Devices like PC’s/Server/Phones, Firewalls, IDS’s operate on Application Layer of TCP/IP Model as in below:
Summary
The TCP/IP Model is a conceptual framework which is used to describe the functions of a networking system. The actual model in practice today is TCP/IP Model while OSI model is used only for reference purposes. It consists of 4 layers. Each of these layers are responsible for some duties. Each of these four layers has some protocols & equipment associated with it. Now, test your knowledge on TCP/IP Model using our free Quizzes & Cheat sheet resources for long term memory:TCP/IP Model Study Notes Cheatsheet
Free Online Quizzes (Best for Cisco CCNA, Huawei HCNA, N+)Follow our Facebook Page & YouTube Channel for more updated Cheatsheets & Quizzes: