UCCN1004 - Lect8 - Intro To Layered Model and Protocols
UCCN1004 - Lect8 - Intro To Layered Model and Protocols
segment of message
Definition of Layered Architecture
• Layered architecture concept depicts an abstract
description for layered communications and computer
network protocol design.
• A layer is a collection of conceptually similar functions that
provide services to the layer above it and receives service
from the layer below it.
• On each layer an instance provides services to the
instances at the layer above and requests service from the
layer below.
ping Application
HTTP Telnet FTP SMTP DNS DHCP TFTP Application Layer
Transport
TCP UDP Layer
RIP
Network
IP ICMP Layer
OSPF
PIM IGMP
Data Link
ARP Ethernet
Layer
Physical
Layer
Summary of Protocol Stack
Encapsulation and Demultiplexing
• As data is moving down the protocol stack, each protocol is
adding layer-specific control information
User data
HTTP
TCP
Ethernet IP datagram
Ethernet Ethernet
IP Header TCP Header HTTP Header User data
Header Trailer
Ethernet fram e
Encapsulation and Demultiplexing
6 bytes
Destination MAC
Address
4 bytes
Source MAC Address
type CRC
Ethernet frame
Encapsulation and Demultiplexing:
IP Header
32 bits
version header Total Length (in bytes)
DS ECN
(4 bits) length (16 bits)
flags
Identification (16 bits) Fragment Offset (13 bits)
(3 bits)
TTL Time-to-Live Protocol
Header Checksum (16 bits)
(8 bits) (8 bits)
Ethernet frame
Encapsulation and Demultiplexing:
TCP Header
32 bits
Ethernet frame
Important – Layered Model and Device
• Concept of device corresponding to layer is important.
• Hub is a layer 1 device.
• NIC is a layer 2 device.
• Switch traditionally is a layer 2 device.
– Recent technology gives us layer-3, 4, 5 switch, which can process IP and
more
• Router is a layer 3 device.
• Host is a “layer 5” device
• Layer 3 device “encompass” layer 2 and layer 1 functionalities.
• Which means layer 5 device encompass all the functionalities of the
lower 4 layers.
Repeater and Layer 1
• Repeater or hubs does not process any header
within the data.
Switch and Layer 2