You are on page 1of 17

9/06/2021

EEE 439: Communication Systems II

Course Teacher: Dr. Md. Saifur Rahman


Professor
Department of EEE, BUET

TCP/IP & OSI Reference Model


Protocol: A protocol is a formally prescribed set of rules that govern
and control the timing and switching of communications.
Standard Interconnection Protocol for ARPANET- Network Control
Protocol (NCP).
TCP/IP Protocol
In 1974: As ARPANET grew rapidly at a tremendous rate, TCP/IP
was developed.
TCP- Transmission Control Protocol
IP- Internet Protocol
Because of the revolutionary role that TCP and IP have played in
the advancement of networking, the entire suite is referred to as
the TCP/IP protocol suite.

1
9/06/2021

TCP/IP & OSI Reference Model


Various Layers of the Old TCP/IP Model
The five layers of the TCP/IP are
• The Physical Layer
• Network Interface Layer
• Internet Layer
• Transport Layer
• Application Layer
We should briefly describe what role these five layers play in the
successful transmission of data from one computer to another.
We should also learn about the communication process between
the layers.

TCP/IP & OSI Reference Model


The Need for a reference Model
Network traffic is generated when a request is made across the
network. The request has to be changed from what the user sees to a
format that can be used on the network. This transformation is made
possible through an open computing standard.
To avoid in compatibility amongst a wide range of networking
products that were introduced into the market, open computing
standards were developed.
A reference model plays a very important role by serving as a
functional guideline for dividing network communication processes
and tasks in the following ways:
• Allows vendors to develop compatible products.
• Makes it easy to understand complex operations.
• Categorize networking technologies and their protocol
implementations, which allows specializes design development of
modular functions. 4

2
9/06/2021

TCP/IP & OSI Reference Model


TCP/IP Protocol
The US Government requested ISO to develop an open reference
model. A seven layer Open Systems Interconnection (OSI) reference
model was developed (1984), which was to be used as a guideline
for developers of network hardware and software routines.
Over the years, a contemporary
five-layer TCP/IP architecture
model has evolved as an answer
to the existing seven-layer OSI
reference model. The basic
purpose of the model is to
define a set of open standards
for any current or future
developments in the field of
TCP/IP.
A Comparative overview of the
OSI and the TCP/IP reference
model is shown in Fig. 1. Fig.1: The OSI versus the TCP/IP model 5

TCP/IP & OSI Reference Model


TCP/IP Protocol
Initially the OSI did not become popular as people had already
developed everything on the basis of the TCP/IP Protocol.
Thus, it seemed initially that the OSI protocols had quietly vanished,
and the TCP/IP protocol suite became dominant. However, the
situation has now changed considerably.
It should be noted here that each layer of the TCP/IP architecture
model represents a group of specific tasks and facets of
communication.
Since the TCP/IP model is theoretical, these layers neither exist
physically, nor do they actually perform any function(s).
The protocol implementations, which are a combination of
hardware and software, actually perform the functions associated
with the corresponding layers.
To make the fact more clear, let us take a practical example of Fig. 2,
which shows two people engaging in electronic mail transmission. 6

3
9/06/2021

TCP/IP & OSI Reference Model


TCP/IP Protocol
Person A is sending a
message to Person B through
the mediation of software,
computers, and transmission
technologies.
The key to mediated
communication is standards-
expectations of how people
(and technology) are to
behave when they
communicate.

Standards allow the receivers


to react appropriately when
someone (or some hardware
Fig. 2: The Basic (Mediated) Communication Model.
or software processes) sends
In data communications, technical-layer standards have to be multivendor
them a message.
standards so that products from different vendors can work together. 7

TCP/IP & OSI Reference Model


Functions of the 5 Layers of TCP/IP
Physical Layer: This layer provides the physical medium (such as
cables) to transmit data from one computer to another. This layer
is responsible for transferring data (in the form of bits) over the
transmission medium.

Network Interface Layer: This layer identifies devices on a


network on the basis of their hardware addresses. This layer is
responsible for data-flow control, error-control and for organizing
the Physical layer bits into frames.

Internet Layer: This layer transmits (or routes) data across


different networks. It is responsible for discovering routes to the
destination device, selecting the appropriate path, and routing
packets across different networks on the basis of IP addresses of
the communicating devices.
8

4
9/06/2021

TCP/IP & OSI Reference Model


Functions of the 5 Layers of TCP/IP
Transport Layer: This layer acts as an Interface between
Application Layer and the lower Layers and delivers data from the
source device to the destination device. This layer is responsible
for organizing messages received from higher layers into
segments, for controlling errors, and for end-to-end flow control.

Application Layer: This layer provides the interface between the


user and the network in the form of applications and network
services.
An Important Note
In a TCP/IP model, the data at the Application Layer is referred to as
message. At the Transport Layer, the data is known as segments or
datagrams. At the Internet Layer, the segments are referred to as
packets. When passed to the Network Interface Layer, the packets
are known as frames, and when passed to the Physical Layer, as
bits or signals. 9

TCP/IP & OSI Reference Model


Communication Between Layers
According to the TCP/IP architecture model, a layer in a stack can
communicate with its peer layer.
Encapsulation
Generally, the requests for network services originate at the
Application Layer.
In this case the message is passed down to the Transport Layer,
which breaks the message into smaller segments that can be
transferred over the transmission medium.
The Transport layer, like its predecessor layer, also adds its own
header to each segment and passes the segments along to the
Internet Layer.
The Internet Layer, in turn, adds its header to each segment and
passes the packet to the Network Interface Layer.
10

5
9/06/2021

TCP/IP & OSI Reference Model


Communication Between Layers

Fig. 3: Encapsulation and de-encapsulation.


This layer also adds its own header to the packets that it received
from the Internet Layer and sends these frames to the Physical layer.
The signals are then routed to the intended recipient by using the
control information provided by the Internet Layer headers and the
Network Interface Layer headers.
11

TCP/IP & OSI Reference Model


De-Encapsulation
The Physical Layer at the recipient takes the signals off the
transmission medium and passes them to the Network Interface
Layer.
The way these signals are processed at the recipient side is exactly
opposite to that at the sender side.
Common TCP/IP Applications
 Providing Internet Access
 File Utilities
 Remote Command Utilities
 Printing Over the Network
 World Wide Web Applications and Protocols
Getting News and mail
Enterprise Information Services
12

6
9/06/2021

TCP/IP & OSI Reference Model


Concept of Layering
• Old strategy – hardware of the computer network first and
software is afterthought.
• Situation changed – now software is highly structured.
• To reduce complexity, most networks are organized as a series
of layers or levels.
• Basic idea is to divide the design in small pieces.
• Each layer adds to the services provided by its lower layer so
that the highest layer is provided a full set of services to
manage the communications and run the applications.
• Benefit is modularity and clear interface (open architecture
and comparability between different vendors component).

13

TCP/IP & OSI Reference Model


 Basic principle is to ensure independence of layers by defining
services provided by each layer to the next higher layer
without defining how the services are to be performed.
 This permits changes in a layer without affecting other layers.
 The number of layers, functions and contents of each layer
differ from network to network.
 Basic elements of a layered model are:
1. Services
2. Protocol
3. Interface

14

7
9/06/2021

TCP/IP & OSI Reference Model


Services
• A set of actions that a layer offers to another higher layer.

Protocol
• A formal set of rules and conventions that governs how
computers exchange information over a network medium.
• These rules concern both the contents and the order of the
messages used.
• In an n-layer architecture, layer n on one machine carries on
conversation with layer n on the other machine.
• The rules and conventions used here are collectively known as
the layer-n protocol.
• It is an agreement between the communicating parties on
how communication is to proceed.
15

TCP/IP & OSI Reference Model


Interface
• Between each pair of adjacent layers there is an interface.
• The messages from one layer to another are sent through
those interfaces.
• In addition to minimize the amount of information passed
between layers, clean-cut interface also makes it simpler to
replace the implementation of one layer with a completely
different implementation, because the requirements are to
provide the same set of services.

16

8
9/06/2021

TCP/IP & OSI Reference Model

Fig. 4: Basic Five Layer Architecture.


17

TCP/IP & OSI Reference Model


• The entities comprising the corresponding layers on different
machines are called peers.
• The peers communicate using protocols.
• In reality no data is transferred from layer n on one machine
to layer n of another machine
• Instead, each layer passes data and control information to the
layer immediately below it, until the lowest layer is reached.
• The bottom layer-1 is the physical media through which actual
communication occurs.
• A set of layers and protocols is known as network
architecture.
• A list of protocols used by a certain system, one protocol per
layer, is called a protocol stack.
18

9
9/06/2021

TCP/IP & OSI Reference Model


Why Layered Architecture?
• To make the design process easy by breaking unmanageable
tasks into several smaller and manageable tasks.
• Modularity and clear interfaces, so as to provide comparability
between the different provider’s components.
• Ensure independence of layers, so that implementation of each
layer can be changed or modified without affecting other layers.
• Each layer can be analyzed and tested independently of all other
layers.
• Describes how information from a software application in one
computer moves through a network medium to a software
application in another computer.

19

TCP/IP & OSI Reference Model


OSI Reference Model
The US Government requested ISO to develop an open reference
model. A seven layer Open Systems Interconnection (OSI) reference
model was developed (1984), which was to be used as a guideline
for developers of network hardware and software routines.
 Describes how information from a software application in one
computer moves through a network medium to a software
application in another computer.
 Composed of seven layers, each specifying particular network
functions.
 It was developed in 1984 by the International Organization for
Standardization (ISO).
 It is considered as the primary architecture model for the inter-
computer communications.
20

10
9/06/2021

TCP/IP & OSI Reference Model


 It divides the tasks to seven smaller, more manageable task
groups.
 A task or group of tasks is then assigned to each of the seven
OSI layers.
 The tasks assigned to each layer can be implemented
independently, as the layers are self-contained.
 So, one layer can be updated without adversely affecting the
other layers.

21

TCP/IP & OSI Reference Model


The Seven Layers of OSI Reference Model
7. Application layer: Provides applications with access
to network service.
6. Presentation layer: Determines the format used to
exchange data among networked computers.
5. Session layer
Allows two applications to establish, use and disconnect
a connection between them called a session.
Provides for name recognition, security needed to allow applications
to communicate over the network.
4. Transport layer
Ensures that data is delivered error free, in sequence and with no
loss, duplication or corruption. 22

11
9/06/2021

TCP/IP & OSI Reference Model


Repackages data by assembling long messages into lots of smaller
messages for sending.
Repackaging the smaller messages into the original larger message
at the receiving end.
3. Network Layer
Responsible for addressing messages and data so they
are sent to the correct destination.
Responsible for translating logical addresses and
names into physical addresses.
Responsible for finding a path through the network to
the destination computer.

23

TCP/IP & OSI Reference Model


2. Data-link Layer
Takes the data frames or messages from the Network layer and
provides for their actual transmission.
The same layer at the other receiving computer after receiving the
incoming data sends it to the Network layer above for handling.
Provides error free delivery of data between the two
computers by using physical layer.
It does this by packaging the data from the Network
layer into a frame, which includes error detection
information.
At the receiving computer, this layer reads the incoming
frame, and generates its own error detection
information, based on the received frame data.
24

12
9/06/2021

TCP/IP & OSI Reference Model


After receiving the entire frame, it
then compares its error detection
value with that of the incoming
frames, if they match, the frame has
been received correctly.

Fig.2: Two sets of layers


make up the OSI layers.
1. Physical layer
Controls the transmission of the actual data onto the network
cable.
Defines the electrical signals, line states and encoding of the
data and the connector types used (An example is 10BaseT–
unshielded twisted-pair wire). 25

TCP/IP & OSI Reference Model


Characteristics of the OSI Layers
Seven layer are divided into two categories: upper layers and
lower layers.
Upper layers of the OSI model deals with application issues
and generally are implemented only in software.
The application layer is the closest to the end user.
Both user and application layer processes interact with
the software applications that contain a communications
component.

(* The term upper layer is sometimes used to refer to any layer


above another layer in the OSI model)

26

13
9/06/2021

TCP/IP & OSI Reference Model


Characteristics of the OSI Layers
Lower layers of the OSI model handle the data transport issues.
The physical layer and the data link layer are implemented in
hardware and software.
Physical layer is the closest to the physical network medium (the
network cable) and responsible for actually placing information
on the medium.
Different Protocols
LAN protocols: Operates at physical layer and data-link layers of
the OSI model and define communications over the various
LAN media.
WAN protocols: Operate at lower three layers of the OSI model
and define communication over various WAN media.
27

TCP/IP & OSI Reference Model


Characteristics of the OSI Layers
Routing protocols: Are network layer protocols that are
responsible for exchanging information between routers so
that the routers can select the proper path for network traffic.
Many routing protocols use network protocols to
exchange information between routers.
Network protocols: Various upper layer protocols that exist in a
given protocol suite. Operate at lower three layers of the OSI
model and define communication over various WAN media.

28

14
9/06/2021

TCP/IP & OSI Reference Model


OSI Model and Communication
between Systems
If a software application in System A has information to transmit to
a software application in System B:
 The application program in System A will pass its information to
the application layer (Layer 7) of System A.
 The application layer then passes the information to the
presentation layer (Layer 6)
 It relays the data to the session layer (Layer 5), and so on down
to the physical layer (Layer 1).
 At the physical layer, the information is placed on the physical
network medium and is sent across the medium to System B.
29

TCP/IP & OSI Reference Model


OSI Model and Communication
between Systems
 The physical layer of System B removes the information from
the physical medium.
 Then its physical layer passes the information up to the data
link layer (Layer 2).
 It passes it to the network layer (Layer 3), and so on, until it
reaches the application layer (Layer 7) of System B.
 Finally, the application layer of System B passes the
information to the recipient application program to complete
the communication process.

30

15
9/06/2021

TCP/IP & OSI Reference Model


OSI Reference Model

Fig.5: Communication through the OSI Layers.


31

TCP/IP & OSI Reference Model


Interaction between OSI Model Layers
A layer in the OSI model generally communicate with three other
OSI layers -
• The layer directly above
• The layer directly below
• Its peer layer in the other networked computer.

Fig. 6: OSI Model Layers Communicate with the other Layers.


32

16
9/06/2021

TCP/IP & OSI Reference Model


OSI Model Layers and Information Exchange
 OSI layers use various forms of control information to
communicate with their peer layers.
 This control information consists of specific requests and
instructions that are exchanged between peer OSI layers.
 Control request takes one of the two forms:
Headers: Are prepended to data that has been passed down
from the upper layers.
Trailers: Are appended to data that has been passed down from
the upper layers.

Header, trailer and data are relative concepts, depending on


the layer that analyses the information unit.

33

TCP/IP & OSI Reference Model


OSI Model Layers and Information Exchange
For instance, an information unit in layer 3 consists of header
and data. At the layer 2 this whole unit will be treated as data
when passed down by the layer 3.
So, the data portion of an information unit at a given OSI layer
potentially can contain headers, trailers and data from all the
higher layers.
In the present layer the information unit will be encapsulated
by a header and in some cases a trailer also.
At the receiving end, the peers read corresponding headers
and remove those before forwarding the information to the
upper layer.

34

17

You might also like