You are on page 1of 36

PROTOCOL

Example
Assume Maria and Ann are neighbors with a lot of common
ideas. However, Maria speaks only Spanish, and Ann speaks
only English. Since both have learned the sign language in their
childhood, they enjoy meeting in a cafe a couple of days per
week and exchange their ideas using signs. Occasionally, they
also use a bilingual dictionary. Communication is face to face
and Happens in one layer as shown in Figure .

2 TCP/IP Protocol Suite


Example
Now assume that Ann has to move to another town because of her job.
Before she moves, the two meet for the last time in the same cafe. Although
both are sad, Maria surprises Ann when she opens a packet that contains
two small machines. The first machine can scan and transform a letter in
English to a secret code or vice versa. The other machine can scan and
translate a letter in Spanish to the same secret code or vice versa. Ann takes
the first machine; Maria keeps the second one. The two friends can still
communicate using the secret code.

3 TCP/IP Protocol Suite


OSI Model

Layer Architecture
Layer architecture simplifies the network design.
It is easy to debug network applications in a layered
architecture network.
The network management is easier due to the layered
architecture.
Network layers follow a set of rules, called protocol.
The protocol defines the format of the data being
exchanged, and the control and timing for the handshake
between layers.
OSI Model

Open Systems Interconnection (OSI) Model


International standard organization (ISO) established a
committee in 1977 to develop an architecture for computer
communication.
Open Systems Interconnection (OSI) reference model is the
result of this effort.
In 1984, the Open Systems Interconnection (OSI) reference
model was approved as an international standard for
communications architecture.
Term “open” denotes the ability to connect any two
systems which conform to the reference model and
associated standards.
OSI Model

OSI Reference Model


The OSI model describes how information or data makes its
way from application programmes (such as spreadsheets)
through a network medium (such as wire) to another
application programme located on another network.
The OSI reference model divides the problem of moving
information between computers over a network medium
into SEVEN smaller and more manageable problems .
This separation into smaller more manageable functions is
known as layering.
Figure The OSI model

7 TCP/IP Protocol Suite


OSI Model

OSI: A Layered Network Model


The process of breaking up the functions or tasks of networking
into layers reduces complexity.
Each layer provides a service to the layer above it in the protocol
specification.
Each layer communicates with the same layer’s software or
hardware on other computers.
The lower 3 layers (network, data link and physical —Layers 3, 2,
and 1) are concerned with the flow of data from end to end
through the network.
The upper four layers of the OSI model (application, presentation
and session—Layers 7, 6 and 5) are orientated more toward
services to the applications.
Data is Encapsulated with the necessary protocol information as it
moves down the layers before network transit.
Figure 2.4 OSI layers

9 TCP/IP Protocol Suite


Figure An exchange using the OSI model

10 TCP/IP Protocol Suite


TCP/IP Model

 The TCP/IP protocol • Troubleshooting, file


suite was developed Application
sharing, internet
prior to the OSI
model.
Transport
• Flow control, error
control

 Therefore, the layers


in the TCP/IP • IP addressing and
Internet routing of network
protocol suite do not traffic
match exactly with
those in the OSI Network • Interface with the
model. Access physical network

TCP/IP Protocol Suite 11


Comparison between OSI and TCP/IP

OSI Model TCP/IP Model

Application

Presentation Application
Session

Transport Transport
Network
Internet
Data Link
Network
Physical Access
Figure 2.9 A private internet

13 TCP/IP Protocol Suite


Figure 2.10 Communication at the physical layer

Legend Source Destination


A R1 R3 R4 B
Physical Physical
layer layer
Link 1 Link 3 Link 5 Link 6

011 ... 101


01
1.
..
10
1

011 ... 101 011 ... 101

14 TCP/IP Protocol Suite


OSI Model

Physical Layer
Provides physical interface for transmission of information.
Defines rules by which bits are passed from one system to
another on a physical communication medium.
Covers all - mechanical, electrical, functional and procedural
- aspects for physical communication.
Such characteristics as voltage levels, timing of voltage
changes, physical data rates, maximum transmission
distances, physical connectors, and other similar attributes
are defined by physical layer specifications.
The unit of communication at the physical
layer is a bit.

16 TCP/IP Protocol Suite


Figure 2.11 Communication at the data link layer

Legend Source Destination D Data H Header


A R1 R3 R4 B
Data link Data link

Physical Physical
Link 1 Link 3 Link 5 Link 6

D2 H2
Frame
D2 ame
Fr

H2

D2 H2 D2 H2
Frame Frame

17 TCP/IP Protocol Suite


 A node with physical address 10 sends a frame to a node with
physical address 87.
 The two nodes are connected by a link (a LAN).
 At the data link layer, this frame contains physical (link) addresses
in the header. These are the only addresses needed. The rest of
the header contains other information needed at this level.
 The data link layer at the sender receives data from an upper
layer.
 It encapsulates the data in a frame.
 The frame is propagated through the LAN.
 Each station with a physical address other than 87 drops the frame
because the destination address in the frame does not match its
own physical address.
 The intended destination computer, however, finds a match
between the destination address in the frame and its own physical
address.
18 TCP/IP Protocol Suite
Figure 2.16 Example 2.3: physical addresses

1 packet
87 10 Data accepted
87 10 Data

19 TCP/IP Protocol Suite


OSI Model

Data Link Layer


Data link layer attempts to provide reliable communication
over the physical layer interface.
Breaks the outgoing data into frames and reassemble the
received frames.
Handle errors by implementing an acknowledgement and
retransmission scheme.
Implement flow control.
Supports points-to-point as well as broadcast
communication
The unit of communication at the data link
layer is a frame.

21 TCP/IP Protocol Suite


Figure 2.12 Communication at the network layer

Legend Source Destination D Data H Header


A R1 R3 R4 B
Network Network

Data link Data link

Physical Physical

D3 H3
Datagram

D3 H3
Datagram

22 TCP/IP Protocol Suite


Example
Figure shows a part of an internet with two routers connecting three
LANs. Each device (computer or router) has a pair of addresses
(logical and physical) for each connection. In this case, each
computer is connected to only one link and therefore has only one
pair of addresses. Each router, however, is connected to three
networks. So each router has three pairs of addresses, one for each
connection.
The computer with logical address A and physical address 10 needs
to send a packet to the computer with logical address P and physical
address 95.

23 TCP/IP Protocol Suite


Figure Example : logical addresses

20 10 A P Data 20 10 A P Data 33 99 A P Data

Physical
addresses
changed

95 66 A P Data 95 66 A P Data
33 99 A P Data

Physical
addresses
changed

24 TCP/IP Protocol Suite


The physical addresses will change from
hop to hop, but the logical addresses
remain the same.

25 TCP/IP Protocol Suite


OSI Model

Network Layer
Implements routing of packets through the network.
Defines the most optimum path the packet should take from
the source to the destination
Defines logical addressing so that any endpoint can be
identified.
Handles congestion in the network.
Facilitates interconnection between heterogeneous networks
(Internetworking).
The network layer also defines how to fragment a packet
into smaller packets to accommodate different media.
The unit of communication at the network
layer is a datagram (Packet).

27 TCP/IP Protocol Suite


Figure 2.13 Communication at transport layer

A Legend Source Destination D Data H Header B


Transport Transport
R1 R3 R4
Network Network

Data link Data link

Physical Physical

D4 H4
Segment

D4 H4
Segment
28 TCP/IP Protocol Suite
Example
Figure shows two computers communicating via the Internet.
The sending computer is running three processes at this time
with port addresses a, b, and c. The receiving computer is
running two processes at this time with port addresses j and k.
Process a in the sending computer needs to communicate with
process j in the receiving computer. Note that although both
computers are using the same application, FTP, for example,
the port addresses are different because one is a client program
and the other is a server program.

29 TCP/IP Protocol Suite


Figure 2.18 Example 2.6: port numbers

A Sender Receiver P

Data Data
a j Data a j Data

A P a j Data A P a j Data

H2 A P a j Data H2 A P a j Data

Internet

30 TCP/IP Protocol Suite


OSI Model
Transport Layer

Purpose of this layer is to provide a reliable mechanism for


the exchange of data between two processes in different
computers
Ensures that the data units are delivered error free.
Ensures that data units are delivered in sequence.
Ensures that there is no loss or duplication of data units.
Provides connectionless or connection oriented service.
Provides for the connection management.
Multiplex multiple connection over a single channel.
OSI Model

Session Layer
Session layer provides mechanism for controlling the dialogue
between the two end systems. It defines how to start, control and
end conversations (called sessions) between applications.

This layer requests for a logical connection to be established on


an end-user’s request.
Any necessary log-on or password validation is also handled by
this layer.
Session layer is also responsible for terminating the connection.
Session layer can also provide check-pointing mechanism such
that if a failure of some sort occurs between checkpoints, all data
can be retransmitted from the last checkpoint.
OSI Model

Presentation Layer
Presentation layer defines the format in which the data is to
be exchanged between the two communicating entities.
Also handles data compression and data encryption
(cryptography).
Figure Communication at application layer

A B
Application Legend Source Destination D Data H Header Application

Transport Transport
R1 R3 R4
Network Network

Data link Data link

Physical Physical

D5 D5
Message

D5 D5
34 TCP/IP Protocol Suite Message
OSI Model

Application Layer
Application layer interacts with application programs and is
the highest level of OSI model.
Application layer contains management functions to
support distributed applications.
Examples of application layer are applications such as file
transfer, electronic mail, remote login etc.
The unit of communication at the
application layer is a message.

36 TCP/IP Protocol Suite

You might also like