Lecture_9 Network layer-Addressing2.pptx
Lecture_9 Network layer-Addressing2.pptx
Addressing 2
NETWORK ADDRESSING
IP Addresses - Types and Classes
IP addresses are fundamental to networking
as they uniquely identify devices on a
network and enable communication. IP
addresses are categorized into different types
and classes, each serving specific purposes in
addressing and routing data packets. Let's
explore IP address types and classes in detail:
NETWORK ADDRESSING
IP Address Types:
Unicast Address: A unicast address refers to a single
sender and a single receiver. It's used for one-to-one
communication in a network.
Broadcast Address: A broadcast address is used to
send data packets to all devices on a network
segment. In IPv4, broadcast addresses are used for
network discovery and some network management
functions. However, IPv6 does not support broadcast
communication.
NETWORK ADDRESSING
Multicast Address: A multicast address is used
for one-to-many or many-to-many
communication. It allows efficient distribution
of data to a specific group of devices
interested in receiving the data.
NETWORK ADDRESSING
IP Address Classes (IPv4):
IPv4 addresses are divided into five classes: A,
B, C, D, and E. These classes determine the
size of the network and host portions of the IP
address.
NETWORK ADDRESSING
…Class A: The first bit of a class A address is
always 0. The network portion occupies the
first octet, while the remaining three octets
represent the host portion. Class A addresses
are designed for large networks, and the first
octet range is 1 to 126.
NETWORK ADDRESSING
Class B: The first two bits of a class B address
are always 10. The first two octets represent
the network portion, and the remaining two
octets are for the host portion. Class B
addresses are suitable for medium-sized
networks, and the first octet range is 128 to
191.
NETWORK ADDRESSING
Class C: The first three bits of a class C address
are always 110. The first three octets are used
for the network portion, and the last octet is for
the host portion. Class C addresses are used
for smaller networks, and the first octet range
is 192 to 223.
NETWORK ADDRESSING
Class D: The first four bits of a class D address
are always 1110. Class D addresses are
reserved for multicast groups and are not
assigned to individual devices or used for
regular communication.
Class E: The first four bits of a class E address
are always 1111. Class E addresses are
reserved for experimental and research
purposes.
NETWORK ADDRESSING
NETWORK ADDRESSING
IP Address Exhaustion and IPv6:
The rapid growth of the internet and the
limited address space of IPv4 led to IP address
exhaustion. To address this issue, IPv6 was
introduced with a significantly larger address
space (128 bits), allowing for an enormous
number of unique addresses.
NETWORK ADDRESSING
IPv6 Address Types:
Global Unicast: Equivalent to unicast
addresses in IPv4, used for one-to-one
communication on a global scale.
Link-Local: Used for communication within a
single network segment and does not require
configuration from a central authority.
NETWORK ADDRESSING
Site-Local: Deprecated in favor of Unique
Local Addresses (ULAs), intended for
communication within a specific site or
organization.
Multicast and Anycast: Similar to IPv4,
multicast addresses are used for one-to-many
communication, while anycast addresses are
used to send data to the nearest device
among a group.
NETWORK ADDRESSING
Understanding IP address types and classes is
essential for designing and managing
networks efficiently. IPv6 has largely mitigated
the challenges posed by IPv4 address
exhaustion, providing ample addresses for the
growing number of connected devices.
NETWORK ADDRESSING
IP Addresses: IPv4 vs. IPv6
IP addresses are numerical labels assigned to each
device connected to a network that uses the
Internet Protocol (IP) for communication. They play
a central role in the network layer by uniquely
identifying devices and enabling the routing of
data packets across the internet. There are two
main versions of IP addresses: IPv4 (Internet
Protocol version 4) and IPv6 (Internet Protocol
version 6).
NETWORK ADDRESSING
IPv4 (Internet Protocol version 4):
IPv4 addresses are 32-bit long and are typically
written as four decimal numbers separated by periods
(e.g., 192.168.1.1).
The total address space is limited to 2^32 unique
addresses, which leads to the depletion of available
addresses due to the rapid growth of the internet.
IPv4 addresses are classified into classes (A, B, C, D, E)
that determine the distribution of addresses and the
network size.
NETWORK ADDRESSING
IPv6 (Internet Protocol version 6):
IPv6 addresses are 128-bit long and are
usually represented as eight groups of
hexadecimal numbers separated by colons
(e.g.,
2001:0db8:85a3:0000:0000:8a2e:0370:7334).
NETWORK ADDRESSING
The significantly larger address space of IPv6
(2^128) provides a practically unlimited
number of unique addresses.
IPv6 adoption is driven by the need for more
IP addresses and improved security and
efficiency features.
NETWORK ADDRESSING
Subnetting:
Subnetting is the process of dividing a larger
IP network into smaller sub-networks
(subnets). It's a technique used to efficiently
allocate IP addresses and manage network
resources. Subnetting offers several benefits,
including efficient use of IP address space,
improved network performance, and
enhanced security.
NETWORK ADDRESSING
For example:
192.168.1.0/24 represents the IP address
192.168.1.0 with a subnet mask of
255.255.255.0.
2001:0db8:85a3::/48 represents an IPv6
address with a prefix length of 48 bits.
NETWORK ADDRESSING
Subnetting Example:
Let's consider a basic example of
subnetting a Class C IP address space,
192.168.1.0/24, into smaller subnets to
accommodate three different
departments in a small office: Sales,
Marketing, and IT.
NETWORK ADDRESSING