Network Models - OSI Model: Engr. Usman Raza
Network Models - OSI Model: Engr. Usman Raza
Network Models -
OSI Model
Network Models
• There are two network models widely used:
– TCP/IP model .
– OSI (Open System Interconnection) Model.
OSI Model
• There are seven layers in OSI model on both sides of the communication
Mnemonics Mnemonics
(Top-Down) (Bottom-Up)
----------------------------------------------------------------------------------------
All Away
People Pizza
Seem Sausage
To Throw
Need Not
Data Do
Processing Please
Application Layer
• Contains the set of protocols related to
application.
– HTTP (Hyper Text Transfer Protocol for
web)
Presentation Layer
• Concerned with the syntax and
semantics of the information.
– Encryption/Decryption
– Compression
– Data Formats
– Translation
Session Layer
• This makes sure to establish a
session between hosts.
• It performs:
– Dialog Control
– Synchronization
Transport Layer
• Transport layer is responsible for
process-to-process delivery.
• Responsibilities of Transport Layers
are:
– Segmentation and Re-assembling
– Connection Control
– Flow Control
– Error Control
Network Layer
• Network layer is responsible for
source-to-destination delivery.
– Assigning IP address
– Routing
– IP (Internet Protocol),
– ICMP (Internet Control Message
Protocol),
– ARP (Address Resolution Protocol,
– DHCP (Dynamic Host Configuration
Protocol) and etc.
Physical Layer
• Physical layer is responsible for
delivery of bits from one node to
another.
• Responsibilities of Physical Layers are:
– Physical characteristics of interfaces and
medium
– Representation of bits (how 0’s and 1’s are
changed to signals)
– Physical Topology
– Transmission mode (Simplex, Half- Duplex
or Duplex)
– Line Configuration
• PDU (Protocol Data Unit):
– PDU at this layer are “bits”.
OSI Model
Summary
TCP/IP Model
• Presented before OSI model.
• Originally Four Layer Model. But last layer can be
thought of as two layers: data link and physical.
Addressing
• There are four types of addressing in the networks:
• Physical Address
– At the physical and data link layers, communicating nodes (end nodes and
intermediate devices) are identified by addresses usually termed as Physical
Addresses.
– If the underlying interface is Ethernet, then the physical layer address is termed
as a MAC address and it consists of 6 bytes.
e.g. 07:01:02:01:2C:4B (A 6-byte (12 hexa digit) Address)
• Logical Address
– IP addresses are the logical address. There are different format for
physical addresses for different interfaces. In order to cope with this IP
addresses are used to identify the host in the network.
– IPv4 addresses are 32 bits long and number about 4.3×109 .
– IPv6 addresses are 128 bits long and number about 3.4×1038.
Addressing
• Port Address
– Physical and Logical addresses are necessary for transmitting the data
from source host to destination host.
– There are multiple applications running at any instant in the network.
– In order to label the different addresses we need port addresses.
– A port number is a 16-bit unsigned integer, thus ranging from 0 to
65535.
– For receiving Email port address is 25; HTTP port is 80; HTTPS port is
443 and so on.
• Specific Address
– Email addresses/ URL addresses
Reference
• Data Communications and Networking (Chapter 2),
5th Edition or Higher by BEHROUZ A. FOROUZAN