Professional Documents
Culture Documents
Semester 2 2020
What is a Protocol?
• The set of conventions or rules governing the
exchange of data between 2 (TWO) entities
2
PROTOCOL ARCHITECTURE FOR TCP/IP
Building A Building B Boss
DATA Office B
Boss DATA
Office A Room 1 Room 2 Engineer
Office B
Engineer 1 2 DATA 1 2 DATA
Office A
Despatch
Despatch A B 1 2 DATA A B 1 2 DATA Office B
Office A
A
B
TA
DA
1
2
2
DA
1
TA
B
HIGHWAY A Despatch Office A goes through the
network highway to pass the data to
NETWORK Despatch Office B
Building A Building B
Application B
Application A DATA DATA
Room 1 Room 2
Transport B
Transport A 1 2 DATA 1 2 DATA
Network
Access B
Network A B 1 2 DATA A B 1 2 DATA
Access A
A
B
TA
DA
1
2
2
DA
1
TA
B
COMMUNICATIONS A Despatch Office A goes through the
NETWORK network highway to pass the data to
Despatch Office B
Layer N Layer N
It also describes the format of
exchanges between peer layers on
different network hosts
Requires
Because the layers “stack” on top of
one another, we often refer to
network protocol “stacks” when we Layer N-1 Layer N-1
talk about the implementation
6
Network Models
The most well-known network Layer 7 – Application
model is the OSI (Open Systems
Layer 6 – Presentation
Interconnect) Reference Model
defined and maintained by the Layer 5 – Session
Organization for International
Standardization (ISO) Layer 4 – Transport
Layer 3 – Network
It consists of seven layers,
numbered from the bottom Layer 2 – Data Link
(closest the network) to the top
Layer 1 – Physical
(closest the user)
7
OSI Reference Model
Layer 1 – The Physical Layer
Defines the type of media to be used
Defines representation of data on the
medium
– Is a ‘0’ “high” or “low”, “on” or “off”?
– What order are bits transmitted (if
serial)?
Layer 1 – Physical
8
OSI Reference Model
• Layer 2 – The Data Link Layer
Defines “right to transmit” rules
Provides directly-connected host-to-
host data transfer
Defines higher-level structure of
data (frames)
Defines “physical” address structure
Layer 2 – Data Link
for hosts
Layer 1 – Physical
9
OSI Reference Model
• Layer 3 – The Network Layer
Provides end-host-to-end-host data
transfer across (potentially)
multiple data links
Defines higher-level structure of
data (packets)
Layer 3 – Network
Defines “abstract” address
Layer 2 – Data Link
structure for hosts
Layer 1 – Physical
10
OSI Reference Model
• Layer 4 – The Transport Layer
Provides process-to-process data
transfer
May provide for reliable data
transfer Layer 4 – Transport
11
OSI Reference Model
• Layer 5 – The Session Layer
Provides a logically persistent
connection between processes Layer 5 – Session
Layer 1 – Physical
12
OSI Reference Model
• Layer 6 – The Presentation Layer
Defines the network representation Layer 6 – Presentation
of data
Layer 5 – Session
Converts between the network and
Layer 4 – Transport
host representations of data
(ASCII/EBCDIC, byte order,
Layer 3 – Network
encryption, compression, etc.)
Layer 2 – Data Link
Layer 1 – Physical
OSI Reference Model
• Layer 7 – The Application Layer Layer 7 – Application
Layer 1 – Physical
14
OSI AND TCP/IP NETWORKING
MODEL COMPARISON
TCP/IP Network Layers
17
TCP/IP Network Layers
ISO Model
Layer 7 –
Application
Layer 6 –
Presentation
Layer 5 – Session
Layer 4 –
Transport
Layer 3 – Network
Layer 2 – Data
Link
Layer 1 – Physical
TCP/IP NETWORKING LAYERS
• The U.S. DoD created the TCP/IP reference model because
it wanted a network that could survive any conditions.
• TCP/IP model has become the Internet standard.
Application Layer
• Handles high-level protocols, issues of representation,
encoding, and dialog control.
Application
20
Transport Layer
Five basic services:
• Segmenting upper-layer application data
• Establishing end-to-end operations
• Sending segments from one end host to another end host
• Ensuring data reliability
• Providing flow control
Transport
Internet Layer
• Best path determination and packet switching
Internet
Network Access Layer
The network access layer is concerned with all of the issues
that an IP packet requires to actually make a physical link to
the network media.
It includes the LAN and WAN technology details, and all the
details contained in the OSI physical and data link layers.
Network
Access
23
TCP/IP Network Layers
24
TCP/IP Protocols and Standards
1. HTTP ( Hyper Text Transfer Protocol) -The protocol (rule) on how information
is transferred through the internet
6. IRC (Internet Relay Chat) is a form of real-time Internet text messaging (chat)
or synchronous conferencing for group communication /one-to-one discussion.
Some Protocols in TCP/IP Suite
TCP/IP Network Layers
Layer 7 – Application
Layer 6 – Presentation
Layer 5 – Session
Layer 4 – Transport
Layer 3 – Network
Layer 1 – Physical
27
NETWORKING ARCHITECTURE
AND PHYSICAL INFRASTRUCTURE
OSI NETWORK SYSTEMS – THE PHYSICAL LAYER
Layer 7 – Application
USER ORIENTED
FUNCTIONS
Layer 6 – Presentation
Layer 5 – Session
Layer 4 – Transport
COMMUNICATION
FUNCTIONS
Layer 3 – Network
ROUTER
Layer 1 Physical
2. Wireless:
Air interface for WiFi and Cellular, Satellite
Communications, Infra-Red
THE PHYSICAL LAYER :
Layer 7 Application WIRED COMMUNICATION CHANNELS
Layer 6 Presentation
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Layer 1 Physical
CAT5 cable
Speeds up to 100 Mbps.
THE PHYSICAL LAYER :
Layer 7 Application WIRED COMMUNICATION CHANNELS
Layer 6 Presentation
When looking at network cables in the way
Layer 5 Session
the wire ends are connected within the
Layer 4 Transport RJ45.
Straight though cables
Layer 3 Network
Layer 1 Physical
THE PHYSICAL LAYER :
Layer 7 Application
DEVICES - HUBS
Layer 6 Presentation
• Hubs are layer 1 devices. They regenerates
Layer 5 Session the signal and broadcast it out all the rest of
their ports.
Layer 4 Transport
• Classifications of hubs
Layer 3 Network 1. Active or Passive hubs.
Layer 2 Data Link
2. Intelligent or Dumb hubs.
Layer 1 Physical
OSI NETWORK SYSTEMS – THE DATA LINK LAYER
Layer 7 – Application
USER ORIENTED
FUNCTIONS
Layer 6 – Presentation
Layer 5 – Session
Layer 4 – Transport
COMMUNICATION
FUNCTIONS
Layer 3 – Network
ROUTER
Layer 1 Physical
Eg. 12-43-67-4A-56-AB
THE DATA-LINK LAYER
Layer 7 Application
• Data link layer sends frames - small fixed
Layer 6 Presentation
length pieces of data.
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Layer 6 Presentation
WHY BRIDGE?
Layer 5 Session
• Reliability
Layer 4 Transport • Performance
Layer 3 Network • Security
Layer 2 Data Link
• Geography
Layer 1 Physical
Layer 7 Application
Layer 6 Presentation
BRIDGE OPERATION
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Layer 1 Physical
Bridges and LANs with Alternative Routes
Layer 7 Application
Layer 6 Presentation
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Layer 1 Physical
Layer 7 Application
THE DATA-LINK LAYER DEVICE
Layer 6 Presentation NETWORK SWITCH
Layer 5 Session 1. A networking device that connects network
segments
Layer 4 Transport
2. Processes and routes data at the data link layer
Layer 3 Network (layer 2) of the OSI Model.
Layer 1 Physical
3. Switches can connect to high bandwidth
speed networks, including Ethernet, Fibre
Channel, ATM, and 802.11.
Layer 7 Application
Switches make decisions based on the MAC table.
Layer 6 Presentation
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Layer 1 Physical
Layer 2 Switch v Bridge
SWITCH BRIDGE
NETWORK DEVICES
Layer 7 – Application
Layer 4 – Transport
Layer 5 Session
IP Address
Layer 4 Transport
An Internet Protocol address is a logical
Layer 3 Network
address that is assigned to devices
participating in a computer network utilizing
Layer 2 Data Link
the Internet Protocol for communication
Layer 1 Physical
between its nodes.
THE NETWORK LAYER DEVICE : ROUTERS
Layer 7 Application • A router is a Layer 3 device.
Layer 6 Presentation
• It Forwards data depending on the Network
address (IP), not the Hardware (MAC) address.
Layer 5 Session
• The purpose of a router is to examine
Layer 4 Transport
incoming packets (Layer 3 data), choose the
best path for them through the network.
Layer 3 Network
• It works in LAN, MAN and WAN environments.
Layer 2 Data Link
Layer 1 Physical
ROUTING TABLE AND ARP TABLE
Layer 7 Application
Layer 6 Presentation
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Layer 1 Physical
MAC AND ROUTING TABLE
Layer 7 Application
MAC address generally remains fixed and follows the
Layer 6 Presentation
network device, but the IP address changes as the
network device moves from one network to another.
Layer 5 Session
Layer 6 Presentation
Layer 5 Session
Layer 4 Transport
Layer 3 Network
Layer 1 Physical
USER ORIENTED LAYERS
Layer 7 – Application
Layer 6 – Presentation
Layer 5 – Session
Layer 4 – Transport
Layer 3 – Network
Layer 1 – Physical
54
THE TRANSPORT LAYER
1. Provides logical communication between
applications processes running on different
Layer 7 – Application hosts.
2. It is transport protocol that runs in end systems.
Layer 6 – Presentation
Sender side: breaks application messages
Layer 5 – Session into segments, passes to network layer.
Receiver side: reassembles segments into
Layer 4 – Transport
messages, passes to application layer.
Layer 3 – Network 3. Has more than one transport protocol available :
TCP and UDP.
Layer 2 – Data Link
4. Reliable, in-order delivery: TCP (Connection-
Layer 1 – Physical oriented and acknowledgment.)
5. Unreliable, unordered delivery: UDP
(Connection-less and no-acknowledgment)
USING IP AND PORT ADDRESSES TO IDENTIFY SERVICES
Gmail Server
192.168.2.1:25 (SMTP) Web Server File Server
192.168.2.1:21 (FTP) 192.168.2.2:80 (HTTP) 192.168.2.3:20
(FTP)
Layer 3 – Network
2. If any packets got lost along the way, or
were damaged, then the presentation
Layer 2 – Data Link
layer will send a sign to the sender that it
Layer 1 – Physical
requires the specific packet.
THE APPLICATION LAYER
Layer 3 – Network
2. It has many end-user protocols to
perform various tasks.
Layer 2 – Data Link
Layer 1 – Physical
Q. Refer to the exhibit. If Host 1 were to transfer a file to the server, what
layers of the TCP/IP model would be used?
Filters/forwards/floods based on
Layer 3 Network
MAC Bridge
Link layer – frames
Layer 2 Data Link
Switch
Layer 1 Physical Connects 2+ networks – packet- Ethernet Ethernet
T3 CISCO SYSTEMS
C IS COSY ST EM S
STS-N
Reduces collisions
Switch
CONNECTING AT THE INTERNET LEVEL
CISCOSYSTEMS CISCOSYSTEMS
Layer 6 Presentation
Forwards packets based
Layer 5 Session on network layer info (IP)
Separate broadcast
Layer 4 Transport Router
domains
Layer 3 Network
In each domain, IP packet CISCO SYSTEMS
Layer 1 Physical
INTER-NETWORK PROCESSORS COMPARISON
Switch makes connections between
telecommunications circuits in a network
MAC MAC
Address Address
IP Address IP Address
IP Address
IP Address
67