Ip Addressing
Ip Addressing
INTRODUCTION
IP addressing, or Internet Protocol addressing, is a fundamental concept in computer
networking that enables the identification and communication of devices on a network,
including the global Internet. It is a systematic way of assigning unique numerical labels
(IP addresses) to devices so that data can be routed to and from them across a network.
IP addresses are divided into two classes: IPv4 and IPv6.
IPv4, which is the most widely used version, consists of 32 bits, allowing for
approximately 4.3 billion unique addresses. However, due to the growth of the Internet,
the number of available IPv4 addresses has become limited. IPv6, on the other hand,
was introduced to overcome this limitation and uses 128 bits, allowing for an enormous
number of unique addresses.
An IP address therefore uniquely identify devices across a network. IP addresses can be
assigned to devices in various ways. The two most common methods are static and
dynamic IP address assignment. Static addresses are manually configured, while
dynamic addresses are allocated by a DHCP (Dynamic Host Configuration Protocol)
server.
4.1 IPv4 ADDRESSING
An IPV4 address is a 32-bit binary number represented as 4 octets (an octet is made up
of 8 bits). Each octet is separated by a period. It uniquely identifies a network interface
in a device. IP is a part of the TCP/IP (Transmission Control Protocol/Internet Protocol)
suite, where IP is the principal set of rules for communication on the Internet. An IP
address is needed to be allocated on the devices, such as PCs, printers, servers, routers,
switches, etc., to be able to communicate with each other in a network.
IPv4 addresses are divided into five classes (A, B, C, D, and E) with varying address
ranges. These classes were used for network addressing purposes, but classless
addressing (CIDR) is more common in modern networking. Each address class
identifies the range of IP addresses and a default subnet mask used for the range. The
following table shows the default address class for each ip address range.
Class D addresses are used for multicast groups and Class E addresses are reserved for
experimental use.
IPv4 addresses are expressed as a set of four numbers in decimal format, and each set
is separated by a dot. Thus, the term ‘dotted decimal format.’ Each set is called an ‘octet’
because a set is composed of 8 bits. The figure below shows the binary format of each
octet in the 192.168.10.100 IP address:
• Network Part
The network part of the IPv4 address is on the left-hand side of the IP address. It
specifies the particular network to where the IPv4 address belongs. The network portion
of the address also identifies the IP address class of the IPv4 address.
For example, we have the IPv4 address 192.168.10.100 and a /24 subnet mask. /24
simply means that the first 24 bits, starting from the left side, is the network portion of
the IPv4 address. The 8 remaining bits of the 32 bits will be the host portion.
• Host Part
The host portion of the IPv4 address uniquely identifies the device or the interface on
your network. Hosts that have the same network portion can communicate with one
another directly, without the need for the traffic to be routed.
The Internet Protocol address can be allocated to hosts or interfaces either manually or
dynamically.
• Static – static IP address is set manually on the device. It is best practice to set
static IP addresses on network devices, such as routers and switches, and on
servers as well.
• Dynamic – dynamic IP address can be automatically allocated to a device via
Dynamic Host Configuration Protocol (DHCP). Dynamic IP addresses are best
to be used on end devices, such as PCs.
We have two types of IP addresses, namely public IP addresses and private IP addresses.
• Public IP address – used to route Internet traffic. This is used on the Internet
and is given out by Internet Service Providers (ISPs) to their customers.
• Private IP address – used in private networks for internal traffics within the
LAN. Private addresses are not routable out the Internet.
Certain IP addresses are not routable on the Internet and are reserved for Internal
networks, they are known as private addresses:
127.0.0.1 is commonly known as the loopback address, and is used for testing the local
IP address stack. A packet addressed to 127.0.0.1 is not sent onto the network but only
the IP software stack. Th entire 127.0.0.0 network is actually reserved, and so you could
use any address in that range e.g. 127.0.0.3 would also work.
The most common form of addressing is unicast. In this form a message is sent to
a single host using it’s IP address.
The address is split into two 64 bit segments the top 64 bits is the network part and
the lower 64 bits the node part. The upper 64 bits are used for routing. The lower 64
bits identify the address of the interface or node, and is derived from the actual physical
or MAC address using IEEE’s Extended Unique Identifier (EUI-64) format
Here are the key components and steps involved in IPv4 subnetting:
Subnetting Exercises