Network Addressing
Network Addressing
ADDRESSING
unique and can contain some structural and hierarchical information of the
node in the network. Internet protocol (IP) address, media access control
(MAC) address, and telephone numbers are some basic examples of network
where each byte is written in a decimal form separated by a period. The 32 bits are divided into four
For example 196.32.216.9 is an IP address where 196 represents first 8 bits, 32 next 8 bits and so
on. The first three bytes of an IP address represents the network and the last byte specifies the
An IP address serves two main functions: network interface identification, and location addressing.
To communicate on a network using TCP/IP, each system must be assigned a unique address.
The address defines both the number of the network to which the device is attached and the
number of the node on that network. In other words, the IP address provides two pieces of
information. It’s a bit like a street name and house number in a person’s home address.
PURPOSE OF THE IP ADDRESS
01 — The host needs an IP address to connect to the Internet. An IP address is a logical network
address that identifies a specific host. It needs to be properly and uniquely configured to
02 — An IP address is assigned to a host for the Network interface connection. This connection is
usually a network interface card (NIC) installed in the device. Examples of end-user devices with
network connectivity include workstations, servers, network printers, and IP phones. Some
servers may have more than one NIC and each of these has its own IP address. Router
03 — Every packet sent over the Internet has a source and destination IP address. This information
needs network devices to ensure that the information reaches the destination and that any
So the value of each of the four octets can range from 0 to a maximum of 255.
PARTS OF AN IP ADDRESS
The logical 32-bit IP address is
hierarchical and is made up of two
parts. The first part identifies the
network and the second part identifies
a host on that network. Both parts are
required in an IP address.
Class A — Class A IP addresses have a range of valid addresses from 1.0.0.0 to 127.0.0.0. They
are used for networks with a large number of hosts.
Class B — Class B IP addresses have a range of valid addresses from 128.0.0.0 to 191.255.0.0.
They are used for networks with a moderate number of hosts.
Class C — Class C IP addresses have a range of valid addresses from 192.0.0.0 to 223.255.255.0. They
are used for networks with a small number of hosts.
Class E — Class E IP addresses have a range of valid addresses from 240.0.0.0 to 255.255.255.255.
They are reserved for experimental purposes.
Public and Private IP Addresses
What is a Private IP Address?
The Private IP Address of a system is the IP address that is used to communicate within the
same network. Using private IP data or information can be sent or received within the same
network. The router basically assigns these types of addresses to the device. Unique private
IP Addresses are provided to each and every device that is present on the network. A private
IP address is used within a private network, such as a home or office network. It is not
directly accessible from the internet. Private IP addresses are used for communication
between devices within the same network.
How do we know how many bits represent the network portion and how many
bits represent the host portion? When we express an IPv4 network address, we
add a prefix length to the network address. The prefix length is the number of
bits in the address that gives us the network portion. For example, in 172.16.4.0
/24, the /24 is the prefix length - it tells us that the first 24 bits are the network
address. This leaves the remaining 8 bits, the last octet, as the host portion.
How IP Addresses are Obtained?
Static and Dynamic Address Assignment
STATIC
With a static assignment, the network administrator must manually configure the network
information for a host. At a minimum, this includes the host IP address, subnet mask and
default gateway.
Static addresses have some advantages. For instance, they are useful for printers, servers and
other networking devices that need to be accessible to clients on the network. If hosts normally
access a server at a particular IP address, it would not be good if that address changed.
DHCP provides a mechanism for the automatic assignment of addressing information such as
IP address, subnet mask, default gateway, and other configuration information. DHCP is
generally the preferred method of assigning IP addresses to hosts on large networks since it
reduces the burden on network support staff and virtually eliminates entry errors.
Another benefit of DHCP is that an address is not permanently assigned to a host but is only
leased for a period of time. If the host is powered down or taken off the network, the address is
returned to the pool for reuse. This is especially helpful with mobile users that come and go on
a network.
DHCP SERVERS
If you enter a wireless hotspot at an airport or coffee shop, DHCP makes it possible
for you to access the Internet. As you enter the area, your laptop DHCP client
contacts the local DHCP server via a wireless connection. The DHCP server assigns
an IP address to your laptop.
Various types of devices can be DHCP servers as long as they are running DHCP
service software. With most medium to large networks, the DHCP server is usually a
local dedicated PC-based server.
With home networks the DHCP server is usually located at the ISP and a host on the
home network receives its IP configuration directly from the ISP.
Network Boundaries and Address Space
The router provides a gateway through which hosts on one network can
communicate with hosts on different networks. Each interface on a router is
connected to a separate network.
The IP address assigned to the interface identifies which local network is connected
directly to it.
Every host on a network must use the router as a gateway to other networks.
Therefore, each host must know the IP address of the router interface connected to
the network where the host is attached. This address is known as the default
gateway address. It can be either statically configured on the host, or received
dynamically by DHCP.
When an integrated router is configured
to be a DHCP server for the local
network, it automatically sends the
correct interface IP address to the hosts
as the default gateway address. In this
manner, all hosts on the network can use
that IP address to forward messages to
hosts located at the ISP and get access
to hosts on the Internet. Integrated
routers are usually set to be DHCP
servers by default.
SUBNETTING
Subnetting is another method of
managing IP addresses.
Subnetting a network means to use the subnet mask to divide the network and break a large
network up into smaller, more efficient and manageable segments, or subnets. An example
would be the U.S. telephone system which is broken into area codes, exchange codes, and
local numbers. The system administrator must resolve these issues when adding and expanding
the network. It is important to know how many subnets or networks are needed and how many
hosts will be needed on each network. With subnetting, the network is not limited to the default
Class A, B, or C network masks and there is more flexibility in the network design.
Subnet Mask Assignment
Like an IP address, a subnet mask is most commonly expressed in 32-bit dotted-decimal format.
Unlike an IP address, though, a subnet mask performs just one function—it defines which parts of
the IP address refer to the network address and which refer to the node address. Each class of the
IP address used for address assignment has a default subnet mask associated with it.
Subnetting does not increase the number of IP addresses available. It increases the number of
network IDs and, as a result, decreases the number of node IDs per network. It also creates more
broadcast domains. Broadcasts are not forwarded by routers, so they are limited to the network on
2. It makes IP networking more secure and manageable by providing a mechanism to create multiple
networks rather than having just one. Using multiple networks confines traffic to the network that it needs to be
on, which reduces overall network traffic levels. Multiple subnets also create more broadcast domains, which
in turn reduces network-wide broadcast traffic. A difference exists between broadcast domains and collision
domains: The latter is all the connected nodes, whereas the former is all the logical nodes that can reach each