Professional Documents
Culture Documents
Protocol
Objective
s
Connection-oriented and connectionless
services
2
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
3
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
4
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,
5
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.
Ability to connect multiple networks in a
seamless way was one of the major design
goals which led to development of TCP /
IP
6
TCP/IP Protocol
Suite
TCP / IP – refers to a collection of
data communication protocols
7
TCP / IP Layers
Application
Transport
Internet/Network
Data Link
Physical
8
TCP / IP Suite
9
Application
Layer
The Application layer is equivalent to the
combined OSI Session, Presentation, and
Application layers
10
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)
browsing)
Data unit created at this layer is called a
message
11
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.
12
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.
13
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
14
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
15
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
16
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
17
Internetwork or Network
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
18
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
19
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
job done.
20
Comparison of OSI and TCP/IP
Models
The OSI model has 7 layers while the TCP/
IPmodel 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
21
ADDRESSING
2.22
Relationship of layers and addresses in TCP/IP
2.23
24