SlideShare a Scribd company logo
TCP/IP Protocol
2
Objectives
Connection-oriented and connectionless services
The TCP/IP layers
Differences between OSI and TCP/IP models
3
Connection-Oriented Services
Connection-oriented service modelled after the
telephone system
To talk to someone, pick up a phone, dial the number,
talk and disconnect
Similarly, in a network, the service user will
Establish a connection
Use the connection
Release the connection
The sender, receiver and the network may conduct a
negotiation about data transfer speed, maximum
message size, etc
4
Connection-Oriented Services
Connection-oriented service is used when
reliability is important
E.g., for file transfer, we want that all bits arrive
correctly and in the order they were sent
5
Connectionless Services
Connectionless service modelled after the postal
system
Each message (letter) carries the full destination
address
Each message is routed through the system
independent of all others
If two messages are sent to the same destination,
normally the first one to be sent should arrive first. But
it is possible that the second message arrives first
6
TCP/IP Protocol Suite
 TCP / IP – Transmission Control Protocol /
Internet Protocol
 Developed prior to the OSI model
 Layers of TCP/IP do not match exactly with
those in the OSI model
 Used in the Internet
 Ability to connect multiple networks in a
seamless way was one of the major design goals
which led to development of TCP / IP
7
TCP/IP Protocol Suite
 TCP / IP – refers to a collection of data
communication protocols
 This name TCP/IP is misleading because TCP
and IP are only two of the many protocols that
compose the suite
 TCP / IP has its origins in the work done by the
US Department of Defense.
January 24, 2025 8
TCP / IP Layers
Application
Transport
Internet
Data Link
Physical
Mnemonic
All
Through
Internet
Data
Passes
9
TCP / IP Suite
The TCP / IP suite does not define any specific
protocols at the data link and physical layers
10
Application Layer
The Application layer is equivalent to the
combined OSI Session, Presentation, and
Application layers
Application Layer = SPA
All the functions handled by these 3 layers in the
OSI model are handled by the Application layer in
TCP / IP model
11
Application Layer
 This layer contains all the higher-level
protocols
FTP – File Transfer Protocol – basic file transfer
between hosts (computers)
SMTP – Simple Mail Transfer Protocol (for email)
HTTP – Hyper Text Transfer Protocol (for web
browsing)
 Data unit created at this layer is called a
message
12
Encapsulation of Data
TCP/IP protocol suite encapsulates data units at
various layers of the model
At the Application layer, the data unit created is
called a message.
The Transport layer adds a header to form either a
segment with TCP.
The Network (or Internet) layer adds another
header to form a datagram
13
Encapsulation of Data
Datagram – A self-contained message unit which
contains sufficient information to allow it to be
routed from the source to the destination
The protocol used at the data link layer
encapsulates the datagram into a frame and this is
transmitted across the transmission medium.
14
Transport Layer - UDP
This layer is represented by two protocols – TCP
and UDP
TCP – Transmission Control Protocol
UDP – User Datagram Protocol
UDP is simpler but is used when reliability and
security are less important than size and speed –
such as speech, video
Since security and reliability are essential for most
applications, TCP is used more often
15
Transport Layer - TCP
TCP is a reliable connection-oriented protocol
Allows error-free transmission
Incoming byte stream is fragmented into a
number of shorter messages and these are passed
on to the next layer
At the receiving end the TCP reassembles the
messages into an output stream
TCP also handles flow control – to control data
transfer rate
16
Transport Layer - TCP
A connection must be established between the
sender and the receiver before transmission begins
TCP creates a circuit between sender and receiver
for the duration of the transmission
TCP begins each transmission by alerting the
receiver that segments are on their way
(connection establishment).
Each transmission is ended with connection
termination
17
Transport Layer - TCP
Each segment created by TCP includes
A sequencing number for re-ordering after receipt.
An acknowledgement ID number
Source address
Destination address
Checksum – for error detection
Data
And other fields
18
Internetwork or Network Layer
 Also referred to as Network Layer or Internetwork Layer
 Internetwork Protocol (IP) is an unreliable and
connectionless protocol
 It offers a best–effort delivery service
 No error checking
 IP does its best to get a transmission through to its destination but
with no guarantees
 Noise can cause bit errors during transmission
 Datagrams maybe discarded due to timeout errors
 Example of best-effort delivery service is: post-office
19
Internetwork or Network Layer
 IP transports data in packets called datagrams
 Each datagram is transported separately
 Datagrams can be of variable lengths (upto 64 KB)
 Datagrams may travel along different routes and may arrive
out of sequence
 IP does not keep track of the routes
 IP does not have the facility to reorder datagrams once they
arrive
 A datagram contains a header and data
 The header contains a number of fields including source and
destination address
20
Comparison of OSI and TCP/IP Models
The OSI model makes a clear distinction between
services, interfaces and protocols
Each layer performs some service for the layer above it
A layer’s interface tells the processes above it how to
access it. It specifies what the parameters are and what
results to expect (somewhat like a function declaration)
The protocols used in a layer are used to get the job
done.
21
Comparison of OSI and TCP/IP Models
The OSI model has 7 layers while the TCP/ IP
model has 5 layers
Both have network, transport, and application
layers, but the other layers are different
OSI model supports both connectionless and
connection-oriented communication
TCP/IP supports only connectionless
communication
tcp-iprefmodel.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP MODEL OSI/
Process to Process
communication
Host to Host
Source to
Destination
Node to Node
24
References
“Computer Networks”,
Tanenbaum A (PHI)
“Data Communications and Networking”,
Forouzan B (TMH)
“Local Area Networks”,
Keiser (TMH)
25

More Related Content

PPSX
TCP-IP Reference Model
PPTX
DCN 5th ed. slides ch02-Network Models.pptx
PPTX
Osi model
PPTX
Lecture 1 Network Reference Models Final.pptx
PPTX
osi-tcp ppt 1.pptx........................
PPT
osi-tcp.ppt
PPT
Network Models
PDF
Unit 2 ppt-idc
TCP-IP Reference Model
DCN 5th ed. slides ch02-Network Models.pptx
Osi model
Lecture 1 Network Reference Models Final.pptx
osi-tcp ppt 1.pptx........................
osi-tcp.ppt
Network Models
Unit 2 ppt-idc

Similar to tcp-iprefmodel.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP MODEL OSI/ (20)

PPTX
Chapter Five - Transport Layer.pptx
PDF
CSC1202_3_The_OSI_Reference_Model_-_V2.pdf
PPTX
TCP/IP model
PPTX
OSI reference model
PPT
PPT
Comparison and Contrast between OSI and TCP/IP Model
PPTX
chapter 4.pptx
PPTX
CSC1202_3_The_OSI_Reference_Model_-_V2.pptx
PPT
The OSI (Open Systems Interconnection) model is a conceptual framework that d...
PPT
osi-tcposi-tcposi-tcposi-tcposi-tcposi-tcp.ppt
PPT
Reference models OSI and TCP/IP new differences
PPT
OSI TCP IP Protocol Layers description f
PPT
Open System Interface Transmission Control Protocol osi-tcp.ppt
PPT
Understanding how logical clocks (e.g., Lamport clocks, vector clocks) are us...
PPT
osi-tcp.ppt TCP/IP Modele OSI, TCPIP Pre
PPT
OSI Model, introduction, history,OSI layers andTCP/IP.ppt
PPTX
Sargation university's open system interconnection
DOCX
OsI reference model
PPT
02 protocols and tcp-ip
Chapter Five - Transport Layer.pptx
CSC1202_3_The_OSI_Reference_Model_-_V2.pdf
TCP/IP model
OSI reference model
Comparison and Contrast between OSI and TCP/IP Model
chapter 4.pptx
CSC1202_3_The_OSI_Reference_Model_-_V2.pptx
The OSI (Open Systems Interconnection) model is a conceptual framework that d...
osi-tcposi-tcposi-tcposi-tcposi-tcposi-tcp.ppt
Reference models OSI and TCP/IP new differences
OSI TCP IP Protocol Layers description f
Open System Interface Transmission Control Protocol osi-tcp.ppt
Understanding how logical clocks (e.g., Lamport clocks, vector clocks) are us...
osi-tcp.ppt TCP/IP Modele OSI, TCPIP Pre
OSI Model, introduction, history,OSI layers andTCP/IP.ppt
Sargation university's open system interconnection
OsI reference model
02 protocols and tcp-ip
Ad

More from namrataparopate (9)

PPT
26 (SMTP and FTP) 76 slides 2.ppt 26 (SMTP and FTP) 76 slides 2.ppt
PPT
S_22.ppt verification and validation in software testing
PPT
Chapter_4_InternetSecurity.pptChapter_4_InternetSecurity.pptChapter_4_Interne...
PPTX
file_concept.pptx file presentation directories
PPT
osi.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP MODEL OSI/MO...
PPT
CHP_1.ppt DATA COMMUNICATION IN COMPUTER NETWORKING
PPTX
DNS (1).pptx DOMAIN NAME SPACE PUBLIC NAME
PPTX
DNS (1).pptx computer networking access DATA
PPT
CHP_1.ppt computer networking concepts DATA
26 (SMTP and FTP) 76 slides 2.ppt 26 (SMTP and FTP) 76 slides 2.ppt
S_22.ppt verification and validation in software testing
Chapter_4_InternetSecurity.pptChapter_4_InternetSecurity.pptChapter_4_Interne...
file_concept.pptx file presentation directories
osi.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP MODEL OSI/MO...
CHP_1.ppt DATA COMMUNICATION IN COMPUTER NETWORKING
DNS (1).pptx DOMAIN NAME SPACE PUBLIC NAME
DNS (1).pptx computer networking access DATA
CHP_1.ppt computer networking concepts DATA
Ad

Recently uploaded (20)

PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPT
Teaching material agriculture food technology
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
cuic standard and advanced reporting.pdf
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Review of recent advances in non-invasive hemoglobin estimation
Teaching material agriculture food technology
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Monthly Chronicles - July 2025
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Understanding_Digital_Forensics_Presentation.pptx
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
The AUB Centre for AI in Media Proposal.docx
cuic standard and advanced reporting.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Approach and Philosophy of On baking technology
Network Security Unit 5.pdf for BCA BBA.
Digital-Transformation-Roadmap-for-Companies.pptx

tcp-iprefmodel.ppt SI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP MODEL OSI/MODEL PROTOCOL TCP/IP MODEL OSI/

  • 2. 2 Objectives Connection-oriented and connectionless services The TCP/IP layers Differences between OSI and TCP/IP models
  • 3. 3 Connection-Oriented Services Connection-oriented service modelled after the telephone system To talk to someone, pick up a phone, dial the number, talk and disconnect Similarly, in a network, the service user will Establish a connection Use the connection Release the connection The sender, receiver and the network may conduct a negotiation about data transfer speed, maximum message size, etc
  • 4. 4 Connection-Oriented Services Connection-oriented service is used when reliability is important E.g., for file transfer, we want that all bits arrive correctly and in the order they were sent
  • 5. 5 Connectionless Services Connectionless service modelled after the postal system Each message (letter) carries the full destination address Each message is routed through the system independent of all others If two messages are sent to the same destination, normally the first one to be sent should arrive first. But it is possible that the second message arrives first
  • 6. 6 TCP/IP Protocol Suite  TCP / IP – Transmission Control Protocol / Internet Protocol  Developed prior to the OSI model  Layers of TCP/IP do not match exactly with those in the OSI model  Used in the Internet  Ability to connect multiple networks in a seamless way was one of the major design goals which led to development of TCP / IP
  • 7. 7 TCP/IP Protocol Suite  TCP / IP – refers to a collection of data communication protocols  This name TCP/IP is misleading because TCP and IP are only two of the many protocols that compose the suite  TCP / IP has its origins in the work done by the US Department of Defense.
  • 8. January 24, 2025 8 TCP / IP Layers Application Transport Internet Data Link Physical Mnemonic All Through Internet Data Passes
  • 9. 9 TCP / IP Suite The TCP / IP suite does not define any specific protocols at the data link and physical layers
  • 10. 10 Application Layer The Application layer is equivalent to the combined OSI Session, Presentation, and Application layers Application Layer = SPA All the functions handled by these 3 layers in the OSI model are handled by the Application layer in TCP / IP model
  • 11. 11 Application Layer  This layer contains all the higher-level protocols FTP – File Transfer Protocol – basic file transfer between hosts (computers) SMTP – Simple Mail Transfer Protocol (for email) HTTP – Hyper Text Transfer Protocol (for web browsing)  Data unit created at this layer is called a message
  • 12. 12 Encapsulation of Data TCP/IP protocol suite encapsulates data units at various layers of the model At the Application layer, the data unit created is called a message. The Transport layer adds a header to form either a segment with TCP. The Network (or Internet) layer adds another header to form a datagram
  • 13. 13 Encapsulation of Data Datagram – A self-contained message unit which contains sufficient information to allow it to be routed from the source to the destination The protocol used at the data link layer encapsulates the datagram into a frame and this is transmitted across the transmission medium.
  • 14. 14 Transport Layer - UDP This layer is represented by two protocols – TCP and UDP TCP – Transmission Control Protocol UDP – User Datagram Protocol UDP is simpler but is used when reliability and security are less important than size and speed – such as speech, video Since security and reliability are essential for most applications, TCP is used more often
  • 15. 15 Transport Layer - TCP TCP is a reliable connection-oriented protocol Allows error-free transmission Incoming byte stream is fragmented into a number of shorter messages and these are passed on to the next layer At the receiving end the TCP reassembles the messages into an output stream TCP also handles flow control – to control data transfer rate
  • 16. 16 Transport Layer - TCP A connection must be established between the sender and the receiver before transmission begins TCP creates a circuit between sender and receiver for the duration of the transmission TCP begins each transmission by alerting the receiver that segments are on their way (connection establishment). Each transmission is ended with connection termination
  • 17. 17 Transport Layer - TCP Each segment created by TCP includes A sequencing number for re-ordering after receipt. An acknowledgement ID number Source address Destination address Checksum – for error detection Data And other fields
  • 18. 18 Internetwork or Network Layer  Also referred to as Network Layer or Internetwork Layer  Internetwork Protocol (IP) is an unreliable and connectionless protocol  It offers a best–effort delivery service  No error checking  IP does its best to get a transmission through to its destination but with no guarantees  Noise can cause bit errors during transmission  Datagrams maybe discarded due to timeout errors  Example of best-effort delivery service is: post-office
  • 19. 19 Internetwork or Network Layer  IP transports data in packets called datagrams  Each datagram is transported separately  Datagrams can be of variable lengths (upto 64 KB)  Datagrams may travel along different routes and may arrive out of sequence  IP does not keep track of the routes  IP does not have the facility to reorder datagrams once they arrive  A datagram contains a header and data  The header contains a number of fields including source and destination address
  • 20. 20 Comparison of OSI and TCP/IP Models The OSI model makes a clear distinction between services, interfaces and protocols Each layer performs some service for the layer above it A layer’s interface tells the processes above it how to access it. It specifies what the parameters are and what results to expect (somewhat like a function declaration) The protocols used in a layer are used to get the job done.
  • 21. 21 Comparison of OSI and TCP/IP Models The OSI model has 7 layers while the TCP/ IP model has 5 layers Both have network, transport, and application layers, but the other layers are different OSI model supports both connectionless and connection-oriented communication TCP/IP supports only connectionless communication
  • 23. Process to Process communication Host to Host Source to Destination Node to Node
  • 24. 24 References “Computer Networks”, Tanenbaum A (PHI) “Data Communications and Networking”, Forouzan B (TMH) “Local Area Networks”, Keiser (TMH)
  • 25. 25