Professional Documents
Culture Documents
Chapter 2
Chapter 2
Network Models
Protocol Layers and Service Models
Computer network architecture is complex
Too many components
How to understand its architecture?
How to allow developers and users to deal with this complexity?
Solution
Computer networks functions are designed and implemented as
layers
Layers are logical groupings of all the processes required for
effective data exchange
Layer n-1 provides some service to the layer n through a well-
defined interface (boundary between each two layers)
Each interface defines what information, operations, and
services a layer must provide for the layer above it.
These layers are distributed across all nodes in the network
block except for the data link (has both header and trailer)
Control information is read and executed ONLY by the peer
Application Application
Application needs
needs to
to Application
send
send data.
data. Presentation
Presentation
Session Session
Transport Transport
Network Network
Data Link Data Link
Physical Physical
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Data Link Data Link
Physical Physical
Transport
Transport layer
layer
establishes
establishes session
session with
with
peer,
peer, assigns
assigns port
port
number
number based
based on
on
King Khalid University application.
application.
How Hosts Talk over a Network
IP Header TCP Header DATA
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Data Link Data Link
Physical Physical
Network
Network layer
layer builds
builds
packet
packet with
with source
source and and
destination
destination IPIP address.
address.
Passes
Passes toto data
data link
link layer
layer
King Khalid University for
for transmission
transmission
How Hosts Talk over a Network
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Data Link Data Link
Physical Physical
Data
Data Link
Link layer
layer frames
frames up
up
packet
packet and
and forwards
forwards
data.
data. Uses
Uses MACMAC address
address
as
as destination
destination address.
address.
King Khalid University
How Hosts Talk over a Network
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Data Link Data Link
Physical Physical
Data
Data Link
Link layer
layer frames
frames up
up
packet
packet and
and forwards
forwards
data.
data. Uses
Uses MACMAC address
address
as
as destination
destination address.
address.
King Khalid University
How Hosts Talk over a Network
IP Header TCP Header DATA
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Network
Network layer
layer looks
looks at
at
destination
destination address.
address. See’s
See’s
the
the address
address as
as its
its own.
own.
Passes
Passes packet
packet to to TCP.
TCP.
King Khalid University
How Hosts Talk over a Network
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Data Link Data Link
Physical Physical
TCP
TCP identifies
identifies which
which
application
application to
to pass
pass data
data to
to
by
by destination
destination port
port number.
number.
King Khalid University
How Hosts Talk over a Network
DATA
Application Application
Presentation Presentation
Session Session
Transport Transport
Network Network
Data Link Data Link
Physical Physical
Application
Application processes
processes
data.
data.
King Khalid University
Physical Layer
link (topology)
Shape, size and number of pins of connectors
synchronized)
Devices that operates at this level: Network card, hub, repeater
frames
Data Link Data
Layer Link
Layer
Physical bits Physical
Layer Layer
Connection control
Connection-oriented
Connectionless
application data
Multiple file downloads requested by a particular FTP
application
Multiple telnet (remote connection to a device)
Dialog control
Full/Half duplex
Synchronization checkpoints
Allow long transmissions to continue from where they
to communicate (interoperability).
Sender format common format Receiver
format
The input of “Cisco” on a Mainframe terminal,
Segment
Datagram
Frame
Bits
2.55
King Khalid University
Figure 2.17 Addresses in TCP/IP
2.56
King Khalid University
Figure 2.18 Relationship of layers and addresses in TCP/IP
2.57
King Khalid University
Example 2.1
2.58
King Khalid University
Figure 2.19 Physical addresses
2.59
King Khalid University
Example 2.2
07:01:02:01:2C:4B
2.60
King Khalid University
Example 2.3
2.61
King Khalid University
Figure 2.20 IP addresses
2.62
King Khalid University
Example 2.4
2.63
King Khalid University
Figure 2.21 Port addresses
2.64
King Khalid University
Note
2.65
King Khalid University
Example 2.5
753
2.66
King Khalid University
Specific Addresses
2.67
King Khalid University