ch02
ch02
Spring 2004
The OSI Model
Dr. J. Harrison
and
TCP/IP
These slides are based on material from “TCP/IP Protocol Suite (2nd
Edition)” by Fourouzan
Protocol Suite
1 2
3 4
Peer-to-Peer Processes
• Processes on each machine that communicates
at a given layer are called peer-to-peer processes
• Communication between machines is a peer-to-
OSI peer process using the protocols appropriate to a
Model given layer
5 6
1
OSI layers
Organization of the Layers
• Physical, Link & Network→ network support
– Address physical aspects of moving data from one
device to another
– Electrical specifications, physical connections,
physical addressing, transport timing, reliability
• Session, Presentation & Application → user
support
– Allow interoperability among unrelated software
systems
• Transport layer: links two subgroups
7 8
9 10
2.2 LAYERS
IN
THE
OSI
MODEL
11 12
2
Physical Layer Physical Layer
• Coordinates the functions required to transmit a
bit stream over a physical medium
• Addresses mechanical and electrical
specifications of the interface and transmission
media
• Defines procedures and functions that physical
devices and interfaces have to perform for
transmission to occur
13 14
15 16
17 18
3
Data Link Layer Tasks Data Link Layer Tasks (con’t)
• Framing: converts streams of bits into • Error Control: includes mechanisms to detect
manageable data units (frames) and retransmit damaged or lost frames
• Physical addressing: If frames are to – Also prevents duplication of frames
distributed to different systems on the network, • Access Control
DLL adds a header to specify sender and/or – If a multipoint configuration (2 or more devices
receiver (if outside network, frames goes to share link), mechanism is needed to determine
connecting device) which device has control of the link at any given
time
• Flow control: If receiver is slower than sender,
flow control mechanism is applied
19 20
23 24
4
End-to-end delivery
Network Layer Tasks (con’t)
Routing
• Networks and links are combined to form
networks of networks (called “internetworks”)
• The connecting devices direct packets to final
destination
• A function of the network layer is to provide
this mechanism
25 26
27 28
5
Transport Layer Tasks (con’t)
Transport Layer Tasks (con’t) Connection Control
• TL can be either connectionless or connection-
Segmentation and Reassembly oriented
• Message is divided into transmittable • With a connection-oriented TL, the source and
segments, each with a sequence number destination devices work in a more tightly-
• TL reassembles message and identifies and coupled manner (virtual circuit).
replaces any packets lost in transmission • A connection is requested by the sender before
packets are sent.
• When all packets are sent, connection closes
31 32
OSI layers
Reliable end-to-end delivery of a message
35 36
6
Session Layer Session Layer
• Network Dialog Controller
• Allows two systems to enter into a dialog;
controls the mode (half/full duplex)
• Allows a process to add checkpoints
(synchronization points) into a data stream
• A failure during message transmission can be
recovered without complete retransmission of
message
37 38
Figure 2-13
41 42
7
Summary of layers
2.3
TCP/IP
PROTOCOL
SUITE
43 44
8
Relation-
Addresses in TCP/IP
ship
of
layers
and
addresses
in TCP/IP
49 50
07-01-02-01-2C-4B
A 6-byte (12 hexadecimal digits) physical address
51 52
132.24.75.9
53 54
9
Port addresses
TCP/IP Versions
Version 4 – current
Version 6
• Starting to be deployed in US
• Already deployed in other countries
55 56
10