FN-Chapter-2 - Standards and Models
FN-Chapter-2 - Standards and Models
NETWORK PROTOCOLS
● Network Software
● Protocols
● Standard Protocol Architectures
● OSI Reference Model
● TCP/IP Protocol Suite
1
Network Software
2
Network Software
3
Network Software
4
4
Network Software
◆ Protocols/Network Protocols are defined as a set of rules
that determines how electronic messages should be packed,
addressed and sent through a network for successful data
communication
◆ To accomplish communication b/w computers or networks of different
architectures
◆ If one computer is based on Microsoft Windows and the other one has
MAC OS installed, then how these two computers are going to
communicate with each other?
◆ Suppose one person speaks English and the other person speaks
Amharic; to understand each other, they need a translator
5
Network Software
6
Network Software
7
Network Software
8
Protocols
9
Protocol Architecture
● Architecture of
philosopher-translator-
secretary
● Issues:
○ Peer-to-peer protocols
are independent of
each other
○ for example, secretaries
may change the comm.
medium to email
○ or the translators may
agree on using another
common language
● Each layer adds a header
10
Protocol Architecture
11
Protocol Architecture
Simplified File Transfer Architecture
File Transfer Application Layer: Application specific commands, passwords and the
actual file(s) – high level data
Communications Service Module: reliable transfer of those data – error detection,
ordered delivery of data packets, etc.
Network Module: actual transfer of data and dealing with the network – if the
network changes, only this module is affected, not the whole system
12
Protocol Architecture
13
Network Access Layer
14
Transport Layer
15
Application Layer
• Support for
different user
applications
• e.g. e-mail, file
transfer
16
Addressing Requirements
17
Addressing Requirements
or ports
18
18
Protocol Data Units (PDU)
19
Transport PDU
20
Network PDU
• Adds network header
– network address for destination computer
– optional facilities from network (e.g. priority level)
21
Operation of a Protocol Architecture
Transport Transport
Header Header
Network Network
Header Header
(Network PDU)
22 22
22
Standard Protocol Architectures
23
Standard Protocol Architectures
• Two approaches
(standard)
– OSI Reference model
• never used widely
• but well known
– TCP/IP protocol suite
• Most widely used
24
OSI Reference Model
25
OSI Reference Model
• A layered model
– Seven layers – seven has been presented as
the optimal number of layer
• Delivered too late (published in 1984)!
– by that time TCP/IP started to become the de
facto standard
• Although no OSI-based protocol survived,
the model is still valid (in the textbooks)
26
OSI - The Layer Model
27
OSI as Framework for Standardization
28
Layer Specific Standards
29
Elements of Standardization
• Protocol specification
– Operates between the same layer on two systems
• May involve different platforms
– Protocol specification must be precise
• Format of data units
• Semantics of all fields
• Service definition
– Functional description of what is provided to the
next upper layer
• Addressing
– Referenced by SERVICE ADDRESSING PROTOCOLS
30
The OSI Environment
31
Physical Layer
•Physical interface
between devices
•Characteristics
● Mechanical - interface
specs
● Electrical - voltage levels
for bits, transmission rate
● Physical layer devices
● NIC
● Repeaters
● Hubs
32
Transmission mode
• The physical
layer also
defines the
direction of
transmission
between two
devices:
• simplex,
• Half-duplex,
• full-duplex.
33
Data Link Layer
• Link-to-link (point-to-point) communication
• Basic services: error detection and control, flow control
• Higher layers may assume error free transmission
• Later a sublayer is added to Data Link Layer
•MAC (Medium Access Control) sublayer to deal with broadcast networks
◆ The Data Link layer negotiates:
• frame sizes and
•speed at which they are sent
◆ The timing of frame transmission is called flow control.
◆ Both ends acknowledge packets as they are exchanged.
•sender retransmits the packet if no acknowledgement is received
within a given time interval.
34
Data Link Layer
35
Data Link Layer
36
Network Layer
◆ Defines end-to-end (host-to-host) delivery of packets
◆ Defines logical addressing (IP) so that any endpoint can be identified
◆ Defines how routing works and how routes are learned so that
packets can be delivered
◆ Defines how to fragment a packet into smaller packets to
accommodate different media
37
Network Layer
38
Transport Layer
• End-to-end (process-to-process) exchange of
data
• In sequence, no losses, no duplicates
• If needed, upper layer data are split into smaller
units
• Handles message delivery from a specific
process (running program) on one computer to
a specific process on another computer.
• Has an addressing mechanism:
Service-Addressing Point
39
Transport Layer
• SERVICES:
• Segmentation and reassembly
• Connection control: connectionless and connection-oriented
• Flow control
• Error control
40
Session Layer
• Establishes, manages, and terminates sessions between
applications.
• Control of dialogues
• whose turn to talk?
• Dialogue discipline (full-duplex, half-duplex)
• Synchronization
• Check-pointing and recovery
41
Presentation Layer
43
TCP/IP Protocol Suite
44
TCP/IP Protocol Suite
• TCP/IP does not have an official layer structure
• But protocols imply one
– Application layer
– Transport (host to host) layer
– Internet layer
– Network access layer
– Physical layer
• Actually TCP/IP reference model has been built on its protocols
– That is why that reference model is only for TCP/IP protocol
suite
– and this is why it is not so important to assign roles to each
layer in TCP/IP; understanding TCP, IP and the application
protocols would be enough
45
Standard Protocol Architectures
46
OSI vs. TCP/IP
47
Network Access and Physical Layers
48
Internet Layer
49
Transport Layer
50
Application Layer
• Support for user applications
• A separate module for each different
application
– e.g. HTTP,
– SMTP, telnet
51
51
Operation of TCP and IP
52
52
Encapsulation and Decapsulation
53
End.
54