Lecture1 Layered Models OSI
Lecture1 Layered Models OSI
Lecture1 Layered Models OSI
Security
Layered Models
Layered Models
1. Introduction to Layered Models
2. OSI and TCP/IP Models
3. Benefits of Using a Layered Model
1. Introduction to Layered Models
• General problems in communication networks
• Hardware failure
• Hosts, routers
• Network congestion
• Networks have limited capacity
• Packet delay
• Data corruption
• Electric, magnetic interferences
• H/W failure
• Data duplication
1. Introduction to Layered Models
• Existing problems in communication networks
• One (possible) solution: The use of Protocols
• Protocol definition
• The need for protocols
• Set of protocols: Layering
• What is Layering?
• Why Layering?
1. Introduction to Layered Models
• Protocol
• Agreement about communication
• Specifies
• Format of messages
• Meaning of messages
• Rules for exchange
• Procedures for handling problems
• Protocols allow to specify or understand communication without
knowing the details of a particular hardware
1. Introduction to Layered Models
• The need for protocols
• Many problems can occur
• Bits corrupted or destroyed
• Entire packet lost
• Packet duplicated
• Packets delivered out of order
1. Introduction to Layered Models
• The need for protocols (cont’d)
• Need mechanisms to distinguish among
• Multiple computers on a network
• Multiple applications on a computer
• Multiple copies of a single application on a computer
• Different Operating Systems (OS)
• Protocols: the concept of layering
• Protocols designed in layers – each layer devoted to one sub-problem
1. Introduction to Layered Models
• The concept of layering
• A technique to organize a Sender The modules of
Receiver
network system into a Protocol S/W are
succession of logically distinct Layer n on each machine Layer n
stacked vertically
entities, such that the service … into layers …
provided by one entity is Layer 2 Layer 2
solely based on the service
provided by the previous Layer 1 Layer 1
entity
Network
1. Introduction to Layered Models
• Conceptually: sending a message from an application program on one
machine to an application program on another means:
• Transferring the message down through successive layers of protocol
software on the sender’s machine,
• Forwarding the message across the network, and
• Transferring the message up through successive layers of protocol software
on the receiver’s machine
1. Introduction to Layered Models
• Example: Five Layers
Application
• Application: supporting network applications: ftp,
smtp, http Transport
• Transport: host-to-host data transfer: TCP, UDP
• Network: routing datagrams from source to Network
destination: IP, routing protocols
• Link: data transfer between neighboring network Link
elements: PPP, Ethernet
• Physical: bits “on the wire” Physical
1. Introduction to Layered Models
• Protocol layering and data Application M Message
• Each layer takes data from
Transport H M Segment
above
• Adds header information Network H H M Datagram
to create new data unit
• Passes new data unit to Link H H H M Frame
layer below
Physical
• Each layer (receiving side)
• Removes header from
incoming packet
1. Introduction to Layered Models
• Benefits of layering
• Breaks down complex problems into more manageable components
• Implementation details of one layer are abstracted (hidden) away from other
layers
Homework
• Discuss the disadvantages of layering
2. OSI and TCP/IP Models
• Two models for organizing the responsibility of networking
components
1. Open System Interconnection (OSI) reference model
2. Transmission Control Protocol/Internet Protocol (TCP/IP) reference
model
OSI Reference Model
• The Open Systems Interconnection (OSI) is a model developed by the
International Standards Organization (ISO)
• The ISO is a multinational body dedicated to worldwide agreement on
international standards
• An ISO standard that covers all aspects of network communications is the
Open Systems Interconnection model (OSI), first introduced in the late
1970s
• ISO is the organization, OSI is the model
OSI Reference Model
• The OSI Model is an abstract description for layered
communications and computer network protocol design
• It divides network architecture into seven layers which,
from top to bottom, are:
• Application
• Presentation
• Session
• Transport
• Network
• Data Link
• Physical
• It is therefore often referred to as the OSI Seven Layer
Model
OSI Reference Model – Seven Layers
• Defines 7 conceptual layers
• Each serves a very specific purpose
• Developed as a reference to be used for all future protocols
• The OSI model organizes networks in series of seven layers to:
• Provide modular engineering (reduce design complexity) to standardized
interfaces among layers
• Improve interoperability (vendor create interoperable network devices and
software in form of protocols)
• Guide to network troubleshooting
OSI Reference Model – Seven Layers
OSI Model
Category Data unit Layer Function
7. Application Network process to application
Data representation, encryption
Data 6. Presentation
Host and decryption
layers 5. Session Inter-host communication
End-to-end connections and
Segment 4. Transport
reliability, Flow control
Packet
Path determination and logical
(datagram 3. Network
addressing
Media )
layers Frame 2. Data Link Physical addressing
Media, signal and binary
Bit 1. Physical
transmission
OSI Reference Model – Seven Layers
• Peer-to-peer processes
• Layer x on one machine communicates with layer x on another machine - called
Peer-to-Peer Processes
• Interfaces between Layers
• Each interface defines what information and services a layer must provide for
the layer above it
• Well defined interfaces and layer functions provide modularity to a network
• Organizations of the layers
• Network support layers: Layers 1, 2, 3
• User support layers: Layer 5, 6, 7
• Transport layer: Layer 4 – links the two subgroups
OSI Reference Model – Seven Layers
• An exchange using the OSI
model
• The data portion of a
packet at level N-1 carries
the whole packet from
level N.
• The concept is called
encapsulation.
Layer Descriptions – The Physical Layer
• Provides physical interface for transmission of information
• Defines rules by which bits are passed from one system to another on
a physical communication medium
• Covers all - mechanical, electrical, functional and procedural aspects
for physical communication
• Characteristics are such as:
• Voltage levels, timing of voltage changes, physical data rates, maximum
transmission distances, physical connectors and other similar attributes
Layer Descriptions – The Physical Layer
• The physical layer is responsible for movement of individual bits (0s and 1s) from
one hop (node) to the next
• The bits are carried through the medium in form of signals
• Conversion from 0s and 1s to signal – beyond the scope of this course
Layer Descriptions – The Data Link Layer
• Provides reliable communication over the physical layer interface
• Breaks the outgoing data into frames and reassembles the frames at the receiver
• Creates and detects frame boundaries (framing)
• Handles errors by implementing an acknowledgement and retransmission
scheme
• Implements flow control
• Procedures to inform senders how much and when to transmit data
• Supports point-to-point as well as broadcast communication
• Supports simplex, half-duplex or full-duplex communication
Layer Descriptions – The Data Link Layer
• Simplex - One direction only
• e.g. Television and radio broadcast
IP Header Encapsulation
•Each segment is then handed to the Network layer for logical addressing and routing
through a routed protocol, for example IP, IPX, Apple Talk and DECNET etc. The Network-
layer protocol adds a header to the segment handed down to the Data Link layer.
Remember that the 3rd and 4rth layers work together to rebuild a data stream on a
destination host. However, they have no responsibility for placing their Protocol Data Units
on a local network segment, which is the only way to get the information to host or router.
MAC Header Encapsulation
•The Data Link layer receives the packets from the Network layer and placing them
on the network medium such as cable or wireless media. The Data Link layer
encapsulates each packet in a frame, and the MAC header carries the source Mac
address and destination Mac address. If the device is on a different network, then
the frame is sent to a router to be routed through an internetwork.
Routers
Switches, Bridges
Hub, Repeaters
Switch by default has single broadcast domain and per-port collision domain.
Router has per-port collision and broadcast domain.
Hub has single broadcast and collision domain.
Answer
• The number of collision domain is 3
• And the broadcast domain is 3