You are on page 1of 41

Compare of OSI and TCP/IP

Jianghong Che
Contents

 Concept
 General Compare
 Lower Layers Compare
 Upper Layers Compare
 Critique
Concept

 OSI: Open Systems  TCP/IP: Transport


Interconnection. It was Control
developed by ISO as Protocol/Internet
a first step toward Protocol. TCP is used
international in connection with IP
standardization of the and operates at the
protocol used in transport layer. IP is the
set of convention used
various layers. It deals
to pass packets from
with connecting open
one host to another.
system..
General Compare

 Similarity
 Difference
Similarity
 Both are based on the concept of a
stack of independent protocols.
 The functionality of the layers is roughly
similar.
Difference
 OSI makes the  TCP/IP does not
distinction between originally clearly
services, interfaces, and distinguish between
protocol. services, interface,
 The OSI model was and protocol.
devised before the  TCP/IP model was just
protocols were invented.
It can be made to work in a description of the
diverse heterogeneous existing protocols. The
networks. model and the protocol
fit perfectly.
Difference
(continue)
 The OSI model  The TCP/IP model
supports both has only one mode
connectionless and in the network layer
connection-oriented (connectionless) but
communication in the supports both
network layer, but modes in the
only connection-
transport layer,
oriented
giving the user
communication in the
transport layer.
choice.
Difference
(continue)
 OSI has seven  TCP/IP has four
layers layers
Application
Presentation Application
Session
Transport
Network Transport
Data link Internet
Physical Host-to-network
Difference
(continue)
 OSI emphasis on  TCP/IP treats reliability
providing a reliable data as an end to end
transfer service, Each Problem. The transport
layer of the OSI model layer handles all error
detects and handles detection and recovery, it
errors, all data was checksums,
transmitted includes acknowledgments, and
checksums. The timeouts to control
transport layer checks transmissions and
source-destination provides end-to-end
reliability. verification.
Difference
(continue)
 Host on OSI  TCP/IP hosts
implementations do participate in most
not handle network network protocols.
operations.
Lower Layers Compare

 Data link/Physical vs Subnet


 Network vs Internet
 Transport vs TCP/UDP
Data link/Physical vs Subnet
 OSI has Data  The lower layers
Link/Physical layers. below the Interface
Data link layer dear or Network layer of
with error detection TCP/IP seldom
and correction. discussed. This
Physical layer refer protocol has not
to the physical defined and varies
connection of from host to host and
network. network to network.
Network vs Internet
– Protocols of the network/internet layer
– Ways of addressing
– The routing architecture
Protocols of the network layer
X.25 IP
 A connection-oriented  A connectionless
protocol. oriented protocol.
 Virtual circuit  Data-gram approach
approach is used. is used.
 Logical connection or  Each packet is
virtual circuit is
established before any
treated
packet are sent i.e. independently.
Call Setup phase.
Protocols of the network layer
X.25 IP
 Each packet  Packets of the
contains a virtual message do not all
circuit identifier as follow the same
well as data. route and may arrive
 Node need not at the destination in
make a routing a different sequence
decision. It is made from the one in
only once for each which they were
connection. sent
Internetworking Protocols
OSI TCP/IP
 CLNP  IP supports fixed,
accommodates 32-bit address.
variable-length
addresses.
Compares the functions of CLNP
to those of IP
Header formats of CLNP
Header formats of IP
Network Layer Addresses
OSI Network Layer Addressing IP Addresses

 The network-layer  IP address consists of


addressing defines 32 bits, include
network addressing network-number part
domains--IDP (AFI, and host-number part.
IDI) and DSP.  It identifies the actual
 It identifies the point of attachment of a
abstract service computer system to a
real sub-network (the
access point between
“network interface”).
the transport and
network layers.
Three different classes of IP
address
NSAP address
The routing architecture
(OSI)
– A set of routing protocols that allow end systems and
intermediate systems to collect and distribute the
information necessary to determine routes. A routing
information base containing this information, from which
routes between end systems can be computed A routing
algorithm that uses the information contained in the
routing information base to derive routes between end
systems.
– End systems (ESs) and intermediate systems (ISs) use
routing protocols to distribute (“advertise”) some or all of
the information stored in their locally maintained routing
information base.
The routing architecture
(OSI Continue)
 The routing information base consists of a
table of entries that identify a destination; the
sub-network over which packets should be
forwarded to reach that destination; and
some form of routing metric, which expresses
one or more characteristics of the route.
 The routing algorithm uses the information
contained in the routing information base to
compute actual routes.
The routing architecture
(TCP/IP)
 The TCP/IP routing architecture looks very much
like the OSI routing architecture. Hosts use a
discovery protocol to obtain the identification of
gateways and other hosts attached to the same
network (sub-network). Gateways within
autonomous systems (routing domains) operate
an interior gateway protocol (intra-domain IS-IS
routing protocol), and between autonomous
systems, they operate exterior or border gateway
protocols (inter-domain routing protocols).
Transport vs TCP/
UDP
 OSI Transport layer
 TCP/UDP
 Compare of Transport and TCP/IP
TCP/UDP
TCP UDP
 Provide reliable data  It’s fast but does not
transmission. provide reliable data
 Responsible for data transmission. (main
recovery. data stream sent by
 Allows the receiver to UDP).
specify the amount of
data it wants sent to it.
(Important status
information is sent by
TCP connection).
TCP/UDP
(continue)
 TCP, UDP both communicate using the
concept ports (FTP, TELNET, SMTP, HTTP,
POP3). By specifying ports and including port
numbers with TCP/UDP data, the process of
multiplexing is achieved.
 The port numbers, along with the source and
destination addresses for the data, determine
a socket. Socket make the communication
reliably.
Compare of the Two Model

 Most of the TCP and UDP functions and


specifications map to the OSI Transport
Layer.
 The TCP/IP and OSI architecture
models both employ all connection and
connectionless models at transport
layer.
Compare of the Two Model
OSI TCP/IP
 uses the terms connection-  simply “connections”
mode and connection-
oriented for the connection
and data-grams.
model and the term
connectionless-mode for
the connectionless model.
 its network layer controls
the operation of a sub-net,
provides routing,
congestion control and
accounting.
Upper layers Compare

 Session
 Presentation
 Application
Session Layer
OSI TCP/IP
 The Session layer handles  The TCP/IP model
session setup, data or does not have a
message exchanges, and general session layer
tear down when the
session ends.
protocol.
 It also monitors session
 In TCP/IP the term
identification so only “sockets” and “ports”
designated parties can are used to describe
participate and security the path over which
services to control access cooperating application
to session information. communicates.
Presentation Layer
OSI TCP/IP
 The Presentation Layer  Presentation layer is not
handles data format present in TCP/IP model.
information for networked
communications. For outgoing Instead this function is
messages, it converts data frequently handled within
into a generic format that can the applications in
survive the rigors of network TCP/IP through External
transmission; for incoming
Data Representation
messages, it converts data
from its generic networked Standard(XDR) and
representation into a format Multipurpose Internet
that will make sense to the Mail Extensions (MIME).
receiving application.
Application Layer

 Application provides a set of interfaces for


applications to obtain access to networked
services such as networked file transfer,
message handling, and database query
processing.
Application Layer
(Continue)
– An end-user interface that provides a human or
another application with:
– The means to enter commands that direct the
application to send files to and receive file from a
remote host, list or change directories, rename or
delete file, etc.
– The means of performing input to and output from
mass storage device(s) (disk-tape).
– The means of transferring the files and file-related
information between hosts.
Approach
OSI TCP/IP
 Application entities in  Application entities
OSI may have many. in TCP/IP have a
 End-user applications single service
developed using element.
common application-  Each application
development was developed
infrastructure. independently, from
“top” to “bottom”.
Critique
OSI TCP/IP
 Bad timing, by the time the  The model does not
OSI protocols appeared, clearly distinguish the
the competition TCP/IP
protocols were already in
concepts of services,
widespread use. interface, and
 Bad technology, both the protocol.
model and the protocols  It is not at all general
are flawed, the model and is poorly suited to
along with the associated
service definitions and
describing any
protocols are very protocol stack other
complex. than TCP/IP.
Critique (continue)
OSI TCP/IP
 Bad implementation,  The host-to-network
the initial layer is not really a
implementations were layer.
huge, unwieldy, and  The model does not
slow. (poor quality)
distinguished the
 Bad politics, it was physical and data
thought to be the link layers
creature of the
government.

You might also like