TCP/IP Model - GeeksforGeeks (2024)

View Discussion

Improve Article

Save Article

  • Difficulty Level :Easy
  • Last Updated :30 Sep, 2020

Prerequisite – Layers of OSI Model

The OSI Model we just looked at is just a reference/logical model. It was designed to describe the functions of the communication system by dividing the communication procedure into smaller and simpler components. But when we talk about the TCP/IP model, it was designed and developed by Department of Defense (DoD) in 1960s and is based on standard protocols. It stands for Transmission Control Protocol/Internet Protocol. The TCP/IP model is a concise version of the OSI model. It contains four layers, unlike seven layers in the OSI model. The layers are:

TCP/IP Model - GeeksforGeeks (1)

  1. Process/Application Layer
  2. Host-to-Host/Transport Layer
  3. Internet Layer
  4. Network Access/Link Layer

The diagrammatic comparison of the TCP/IP and OSI model is as follows :

TCP/IP Model - GeeksforGeeks (2)

Difference between TCP/IP and OSI Model:

TCP/IPOSI
TCP refers to Transmission Control Protocol.OSI refers to Open Systems Interconnection.
TCP/IP has 4 layers.OSI has 7 layers.
TCP/IP is more reliableOSI is less reliable
TCP/IP does not have very strict boundaries.OSI has strict boundaries
TCP/IP follow a horizontal approach.OSI follows a vertical approach.
TCP/IP uses both session and presentation layer in the application layer itself.OSI uses different session and presentation layers.
TCP/IP developed protocols then model.OSI developed model then protocol.
Transport layer in TCP/IP does not provide assurance delivery of packets.In OSI model, transport layer provides assurance delivery of packets.
TCP/IP model network layer only provides connection less services.Connection less and connection oriented both services are provided by network layer in OSI model.
Protocols cannot be replaced easily in TCP/IP model.While in OSI model, Protocols are better covered and is easy to replace with the change in technology.

The first layer is the Process layer on the behalf of the sender and Network Access layer on the behalf of the receiver. During this article, we will be talking on the behalf of the receiver.

1. Network Access Layer –

This layer corresponds to the combination of Data Link Layer and Physical Layer of the OSI model. It looks out for hardware addressing and the protocols present in this layer allows for the physical transmission of data.
We just talked about ARP being a protocol of Internet layer, but there is a conflict about declaring it as a protocol of Internet Layer or Network access layer. It is described as residing in layer 3, being encapsulated by layer 2 protocols.

2. Internet Layer –

This layer parallels the functions of OSI’s Network layer. It defines the protocols which are responsible for logical transmission of data over the entire network. The main protocols residing at this layer are :

  1. IP – stands for Internet Protocol and it is responsible for delivering packets from the source host to the destination host by looking at the IP addresses in the packet headers. IP has 2 versions:
    IPv4 and IPv6. IPv4 is the one that most of the websites are using currently. But IPv6 is growing as the number of IPv4 addresses are limited in number when compared to the number of users.
  2. ICMP – stands for Internet Control Message Protocol. It is encapsulated within IP datagrams and is responsible for providing hosts with information about network problems.
  3. ARP – stands for Address Resolution Protocol. Its job is to find the hardware address of a host from a known IP address. ARP has several types: Reverse ARP, Proxy ARP, Gratuitous ARP and Inverse ARP.

3. Host-to-Host Layer –

This layer is analogous to the transport layer of the OSI model. It is responsible for end-to-end communication and error-free delivery of data. It shields the upper-layer applications from the complexities of data. The two main protocols present in this layer are :

  1. Transmission Control Protocol (TCP) – It is known to provide reliable and error-free communication between end systems. It performs sequencing and segmentation of data. It also has acknowledgment feature and controls the flow of the data through flow control mechanism. It is a very effective protocol but has a lot of overhead due to such features. Increased overhead leads to increased cost.
  2. User Datagram Protocol (UDP) – On the other hand does not provide any such features. It is the go-to protocol if your application does not require reliable transport as it is very cost-effective. Unlike TCP, which is connection-oriented protocol, UDP is connectionless.
    1. 4. Application Layer –

      This layer performs the functions of top three layers of the OSI model: Application, Presentation and Session Layer. It is responsible for node-to-node communication and controls user-interface specifications. Some of the protocols present in this layer are: HTTP, HTTPS, FTP, TFTP, Telnet, SSH, SMTP, SNMP, NTP, DNS, DHCP, NFS, X Window, LPD. Have a look at Protocols in Application Layer for some information about these protocols. Protocols other than those present in the linked article are :

      1. HTTP and HTTPS – HTTP stands for Hypertext transfer protocol. It is used by the World Wide Web to manage communications between web browsers and servers. HTTPS stands for HTTP-Secure. It is a combination of HTTP with SSL(Secure Socket Layer). It is efficient in cases where the browser need to fill out forms, sign in, authenticate and carry out bank transactions.
      2. SSH – SSH stands for Secure Shell. It is a terminal emulations software similar to Telnet. The reason SSH is more preferred is because of its ability to maintain the encrypted connection. It sets up a secure session over a TCP/IP connection.
      3. NTP – NTP stands for Network Time Protocol. It is used to synchronize the clocks on our computer to one standard time source. It is very useful in situations like bank transactions. Assume the following situation without the presence of NTP. Suppose you carry out a transaction, where your computer reads the time at 2:30 PM while the server records it at 2:28 PM. The server can crash very badly if it’s out of sync.

      This article is contributed by Achiv Chauhan and Palak Jain. If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

      Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.


Previous

Layers of OSI Model

Next

Network Devices (Hub, Repeater, Bridge, Switch, Router, Gateways and Brouter)

Recommended Articles

Page :

Difference between E-R Model and Relational Model in DBMS16, Apr 20
Similarities between TCP/IP model and OSI model01, May 21
This is exactly why we still use the OSI model when we have TCP/IP Model01, Jun 21
Introduction of ER Model13, Oct 15
Generalization, Specialization and Aggregation in ER Model11, Oct 17
Enhanced ER Model24, Oct 17
Mathematics | Hypergeometric Distribution model08, Oct 18
Attributes to Relationships in ER Model28, Jan 19
Devices used in each layer of TCP/IP model27, Feb 19
Two State Process Model in Operating System15, Dec 21
Types of Attributes in ER Model26, Mar 20
Difference between ER Model and RDBMS30, Apr 20
Constraints on Relational database model15, May 20
Relationships in ER model11, Jun 20
Distributed Component Object Model (DCOM)12, Jul 20
Critique of OSI Model and Protocols23, Jul 20
Outdoor Mobility Model | Gauss-Markov24, Jul 20
Random waypoint model25, Jul 20
Information Assurance Model in Cyber Security06, Aug 20
How Communication happens using OSI model11, Feb 21
Physical Layer in OSI Model01, Mar 21
Deadlock System model10, May 21
Application Layer in OSI Model01, Jul 21
Session Layer in OSI model10, Jul 21

Article Contributed By :

GeeksforGeeks

Vote for difficulty

Current difficulty :Easy

Improved By :

  • Palak Jain 5
  • ashushrma378
  • rahulhindocha05
  • mohitmm
  • satyajitdebnath87

Article Tags :

  • Computer Networks
  • GATE CS

Practice Tags :

  • Computer Networks

Report Issue

TCP/IP Model - GeeksforGeeks (2024)

FAQs

What is TCP IP model explain? ›

TCP/IP Reference Model is a four-layered suite of communication protocols. It was developed by the DoD (Department of Defence) in the 1960s. It is named after the two main protocols that are used in the model, namely, TCP and IP. TCP stands for Transmission Control Protocol and IP stands for Internet Protocol.

What is TCP IP protocol in Geeksforgeeks? ›

TCP/IP stands for Transmission Control Protocol/ Internet Protocol. It is a set of conventions or rules and methods that are used to interconnect network devices on the Internet.

What are the four layers of TCP IP model? ›

4 The TCP/IP Protocol Stack is made up of four primary layers: the Application, Transport, Network, and Link layers (Diagram 1).

What is TCP IP model and its layers? ›

There are four layers of the TCP/IP model: network access, internet, transport, and application. Used together, these layers are a suite of protocols. The TCP/IP model passes data through these layers in a particular order when a user sends information, and then again in reverse order when the data is received.

What are the features of TCP IP model? ›

Introduction to the TCP/IP Model
Basics of TCP/IP Model
Full-FormTransmission Control Protocol/ Internet Protocol
Function of TCPCollecting and Reassembling Data Packets
Function of IPSending the Data Packets to the correct destination
Number of Layers in TCP/IP Model4 layers
3 more rows

What are the 5 layers of the TCP IP model? ›

Each host that is involved in a communication transaction runs a unique implementation of the protocol stack.
  • Physical Network Layer. The physical network layer specifies the characteristics of the hardware to be used for the network. ...
  • Data-Link Layer. ...
  • Internet Layer. ...
  • Transport Layer. ...
  • Application Layer.

What are the two functions of TCP IP? ›

Transmission Control Protocol/Internet Protocol (TCP/IP) are two different communication protocols. TCP splits a message to packets which were transmitted across the internet whereas the IP is accountable to address of every packet hence a chance to forward the exact destination.

Why is TCP IP used? ›

TCP is used in conjunction with IP in order to maintain a connection between the sender and the target and to ensure packet order. For example, when an email is sent over TCP, a connection is established and a 3-way handshake is made.

Does TCP IP have 4 or 5 layers? ›

The TCP/IP model is based on a five-layer model for networking. From bottom (the link) to top (the user application), these are the physical, data link, net- work, transport, and application layers. Not all layers are completely defined by the model, so these layers are “filled in” by external standards and protocols.

What are the 5 layers of the TCP IP model? ›

Each host that is involved in a communication transaction runs a unique implementation of the protocol stack.
  • Physical Network Layer. The physical network layer specifies the characteristics of the hardware to be used for the network. ...
  • Data-Link Layer. ...
  • Internet Layer. ...
  • Transport Layer. ...
  • Application Layer.

Why is TCP IP important? ›

TCP is important because it establishes the rules and standard procedures for the way information is communicated over the internet. It is the foundation for the internet as it currently exists and ensures that data transmission is carried out uniformly, regardless of the location, hardware or software involved.

Top Articles
Latest Posts
Article information

Author: Errol Quitzon

Last Updated:

Views: 6275

Rating: 4.9 / 5 (79 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Errol Quitzon

Birthday: 1993-04-02

Address: 70604 Haley Lane, Port Weldonside, TN 99233-0942

Phone: +9665282866296

Job: Product Retail Agent

Hobby: Computer programming, Horseback riding, Hooping, Dance, Ice skating, Backpacking, Rafting

Introduction: My name is Errol Quitzon, I am a fair, cute, fancy, clean, attractive, sparkling, kind person who loves writing and wants to share my knowledge and understanding with you.