Documente Academic
Documente Profesional
Documente Cultură
ECE-3251
Network Model(OSI)
Topics
What are Protocols ?
Why we need Protocols and Standards
The OSI Reference Model
The Seven Layers of the Model
Responsibilities of Each Layer
The Application Layer
The Presentation Layer
The Session Layer
The Transport Layer
The Network Layer
The Data Link Layer
The Physical Layer
What are Protocols ?
Let’s look at what happen:
Oh my
God, what
Hi, What is
Xin chào,
did name
your he say?
bạn tên là gì
vậy ?
?
Không biết
thằng này
đang nói
cái gì nữa
?
IP IPX
Netware PC
Windows
running IPX
PC running
protocol
IP protocol
IPX IPX
Netware PC
Windows running IPX
PC running protocol
IPX
protocol
What are Protocols ? (cont)
A group of protocol is called a protocol suite or a
protocol stack.
Application
Presentation
Session
Transport
Network
Data Link
Physical
Responsibilities of Each Layer
Frame Header
Frame Header IP
IPHeader Data 11
Header Data II IP Header Data 1
Data Link Frame Header IP Header Data 1 I Data Link
Physical Physical
The Application Layer
Doesn’t mean that it has computer
applications, rather it contains protocols
for using network applications like google
chrome, firefox, skype etc.
The Application Layer
The Website is delivered to you…
Let’s look at what is happening:
The Application layer provide
a set of tools and services
that
Howthe Web
the WebBrowser
Browser used to
Web Server
Web Browser
The Application Layer
Web Server
Presentation
Web Browser
Session
Physical
The Application Layer
Example of the Application layer:
File transfer
Electronic mail
Web Browser
The Presentation Layer
Let’s look at what is happening:
OK, I will send
I want that
that filefile
buttoI
MAConly accept
PC in it in DES
DES format and
I have a good
in 3DESencryption format
format to Sun PC
file now.
MAC PC
Sun PC
The Presentation Layer
Presentation
Sun PC
Transport
Network
Data Link
Physical
Web Browser Web Server
The session layer
Actions of the Session layer:
Sessions
Dialog
Conversations
Network Network
Physical Physical
The Transport Layer
Connectionless transmission
Connection-oriented transmission
The three-way handshake
Flow control
Acknowledgement
Windowing
The Transport Layer
The primary function of the Transport layer is to
ensure that the data packets it receives from the
Session layer arrive reliably.
Post Office
system
Local Destination
Harry Post Office Wilson
Post Office
The Transport Layer
Connectionless transmissions
(cont)
The second
Working reason
in the same is way,
that it’s OKconnectionless
with iftransmission
there is a good
The advantage of connectionless using
and
The reliable
The first
packets connection
may
reason
transmission
connectionless is be
using that’sbetween
lostisthe
on data
connectionless
protocol that the
theit way source
isisprotocol,
not
very and
(internet).
important
fast.whenthe
But
destination
that’sAOK.
Host want to send data to Host B, it only put the
packet onto the network and hope that it will be
arrived at the destination.
Post Office
system
Local Destination
Harry Post Office Wilson
Post Office
Internet
Post Office
system
Local Destination
Harry Post Office Wilson
Post Office
The Transport Layer
Connection-oriented transmissions
(cont)
Because
The
But after
When advantage
Working Host
Hostwaiting
in theAsame
of
and
for
A receiveconnection-oriented
Host
away,
predefined
an Bwith
bothconnection-oriented
use
time,
acknowledgement connection-
transmission
Hostpacket,
A doesit
oriented
using
not receive
then connection-oriented
protocol
transmission
stop anusing
acknowledgement
worrying toconnection-oriented
send and
about protocol
the receive
packet
packet.is that
packets.
from
it is Host
protocol, So
when
reliable
B, HostHost
although
A will
B
A receive
resend
wantit to
haspacket
the
higher
sendpacket
from
data latency
and
toA,Host
itwait.
than
will
B, send
The
it putan
the
acknowledge
connectionless
processonto
packet happenspacket
theprotocol.
untiltoHost
network specify
andA wait
receive
thatfor
it an
has received.
the destination
acknowledgement
to acknowledge of packet from
receiving Host B.
packet.
Post Office
system
Local Destination
Harry Post Office Wilson
Post Office
Internet
Let’s
In
Host Blook
theA after at
three-way what
(receiver)
receives
afterhappens:
handshake
the
examine process,
synchronize
the when from
synchronize
segment Host
A (sender)
Host
packet
B, from want
it willHost
sendtoA,an
establish
agree,aitsession
if acknowledgement with
will send Host B to
segment
(receiver), it first send
acknowledgement
Host B to acknowledge to
tothe
synchronize receiver
segment
connection. a to Host A.
synchronize segment.
ta
da
ta ta data data
da da
ta ta data data
da da
ta data data
da
ta
da
ta
da
ta
da
The Transport layer
Flow Control (cont)
The second reason is that multiple devices need to
send data to the same destination.
ta
da
da
ta
da
ta
ta
da
ta
da
ta
da
da
ta
da
ta ta
da
ta
da da
ta
da
ta
ta
da
The Transport layer
Flow Control (cont)
When datagram arrive too quickly for a device to
process, it temporarily stores them in memory.
ta
da
da
ta
ta
da
ta
da
da
ta
ta
da ta
da
da
ta
ta
da ta
da
ta
da
at
da
at
da
The Transport layer
Flow Control (cont)
If the datagrams are small in part, this buffering
solves the problem.
ta
da
da
ta
ta
da
ta
da
da
ta
ta
da ta
da
da
ta
ta
da ta
da
ta
da
at
da
at
da
The Transport layer
Flow Control (cont)
However, if the traffic continues at this rate, the
device eventually exhausts its memory and must
discard additional datagrams that arrive.
ta
da
So, the data
will be lost ?
da
ta
da
ta
da
ta
ta
da
ta
da
ta
da da
ta ta
ta
da ta
da
ta da
da
da
ta
da
ta
ta da
ta
da
ta
da
ta da
da
ta
da
a
t
ta
da
ta
t
da
da
a
t
da
at
da
ta
da
ta
da
The Transport layer
Flow Control (cont)
Instead of losing the data, the transport function
can issue a “not ready” indicator to the sender.
ta
da
da
ta
da
ta
da
ta
ta
da
ta
da
ta
da
da
ta ta
da
ta da
da
ta
ta da
ta da ta
da
ta
da
ta da
da
ta
da
at
ta
da
ta
t
da
da
t a
p
da s to
t a
da
ta
da
rt
ta
po
da
ns
Tra
The Transport layer
Flow Control (cont)
This acts like a stop sign and signal the sender to
discontinue sending segment traffic to the receiver.
Stop
at
da
at
da
t a p
da s to
t a
da
ta
da
rt
ta
po
da
ns
Tra
The Transport layer
Flow Control (cont)
After the receiving device has processed sufficient
segments to free space in its buffer, the receiver sends a
“ready transport “ indicator – which is like a go signal.
Go
at
da
at
da
a
da
t
go
t a
da
ta
da
ort
ta
sp
da
n
Tra
The Transport layer
Flow Control (cont)
When they receives this indicator, the senders can
resume segment transmission.
ta
da
da
ta
ta
da
ta
da
ta
da
da
ta
ta
da
ta
da
go
rt
s po
n
Tra
The Transport Layer
Acknowledgement
The transport layer provide a reliable service regardless
of the quality of the underlying network
port
r a ns
T
The Transport Layer
Acknowledgement (cont)
One technique that is used to guarantee reliable delivery
is called positive acknowledgement with retransmission.
ta
da
ta
da
The Transport Layer
Acknowledgement (cont)
The sender also start a timer when it sent a
packet.
If the timer expires before an acknowledgement is
received, it retransmits the packet.
ta
da
The Transport Layer
Windowing
Acknowledging every data segment, however, has
its drawback.
If the sender has to wait for an acknowledgement of
each data segment, the throughput will be very low.
ta
da A technique called
ta Windowing is used to
da
increase the throughput.
The Transport Layer
Windowing (cont)
The quantity of data segments (measured in bytes)
that the transmitting machine is allowed to send
without receiving an acknowledgment for them is
called a window.
the size of the window controls how much
information is transferred from one end to the other
TCP TCP
Send 4 Receive 4
Send 5 Connection lost !!!
Send 6 Receive 6
Ack 5
Send 5 Receive 5
The Transport Layer
Windowing (cont)
Windowing controls the flow of data.
Windows are sized in bytes.
Window full = wait for acknowledgement.
Acknowledgement tells what is expected
to receive next. (i.e receive 3, ack 4;see
previous slide)
Window size is dynamic.
The Network Layer
172.16.1.1 is in
network
Let’s look at what is happening:
Packet with Destination
IP address of 172.16.1.1 attached to E2.
So……
E0 E1
192.168.1.1 10.0.0.1
E2 But how router know that the
172.16.1.1 host is in the network
It is because router is a Network
attached to E2 interface. And how
layer device and the
The Network Network
layer also layer it can route the packet to the
provide a set aofmechanism
provides tools for router
for to destination.
collect
router informations about
to route packet to
172.16.1.1 host.
172.16.1.1
The Network Layer
The Network layer, which is below the
Transport layer.
It is responsible for routing the packet
based on its logical address. Application
Presentation
E0 E1
Session
Data Link
A packet with destination
IP address of 172.16.1.1 Physical
172.16.1.1
The Network Layer
Path Determination:
A computer can connect
with another computer or
server in a number of
ways. Choosing the best
possible path for data
delivery from source to
destination is called path
destination.
For example, OSPF, IS-IS,
BGP protocols.
The Network Layer
Actions that the Network layer have to deal
with:
Packets
Route, routing table, routing protocol
Logical address
Path determination
E0 S0
Frame S0
Br0 Relay
192.168.1.1
E0
So
And my
ThisE0 is anis
packet
ISDN destined
Ethernet for 10.0.0.1
interface.
that is in network
attached to my E0
interface.
Br0
10.0.0.1
ISDN
router
E0
172.16.1.1
The Data Link Layer
Frame Relay:
Frame Relay is a wide area network technology which is
used to specify the physical and data link layers of digital
telecommunications channels.
It is usually implemented by network providers as a
voice and data encapsulation technique that is used
between LANs (Local Area Networks) and WANs (Wide
Area Networks).
The Data Link Layer
The Data Link layer is below the Network layer.
Network
MAC address
Data Link
00-06-7B-02-EF-05
Physical
The Data Link Layer
The Data Link layer is made up of 2 sublayers:
The Logical Link Control (LLC) sublayer.
The Media Access Control (MAC) sublayer
Application
Presentation
Session
Transport
Session
Transport
For Example:
Coaxial cable, Fiber cable
RJ45, RJ11 connector