Network Addressing
gocourse.in Maintenance

We'll be back soon

Our CDN (cdn.gocourse.in) is currently unreachable. Some images, JavaScript, or CSS files may not load properly.

Estimated downtime: ~30 minutes

Network Addressing

Sabareshwari

 Introduction

Imagine sending a letter through the postal service. For the letter to reach the correct person, it must contain a proper address. Similarly, in computer networks, every device needs an address so that data can be delivered to the correct destination. This process is known as Network Addressing.

Network addressing is one of the most important functions of the Network Layer in the OSI and TCP/IP models. It helps identify devices, routers, servers, printers, and other network resources so that communication can occur efficiently and accurately.

In this article, we will explore network addressing, its types, IP address classes, applications, benefits, challenges, and real-world examples.

What is Network Addressing?

Network Addressing is the process of assigning unique identifiers (addresses) to devices connected to a network. These addresses allow devices to locate, identify, and communicate with each other.

A network address can be:

  • Logical Address (IP Address)
  • Physical Address (MAC Address)
  • Application Address (Domain Names, Email Addresses)
  • Port Address (Service Identification)

Without network addressing, data packets would have no way of knowing where to go.

Real-World Example

Think of a courier delivery system:

  • House Address → Network Address
  • Person Receiving Package → Device
  • Delivery Person → Network
  • Package → Data Packet

Just as a package requires a destination address, data requires a network address to reach the correct device.

Why is Network Addressing Important?

Network addressing helps:

  • Identify devices uniquely
  • Enable communication between devices
  • Support internet connectivity
  • Route data efficiently
  • Manage large networks
  • Provide security and access control

Without network addressing, the Internet would not function.

Hosts, Routers, and Interfaces

Before learning IP addressing, it is important to understand three basic networking terms.

Host

A Host (or End System) is any device connected to a network.

Examples:

  • Laptop
  • Desktop Computer
  • Smartphone
  • Server

A host usually has one network connection and one network interface.

Router

A Router is a networking device that connects multiple networks and forwards data packets between them.

Unlike a host, a router has multiple interfaces because it connects to multiple networks.

Interface

An Interface is the connection point between a device and a network.

Every interface must have its own IP address because it sends and receives network traffic.

Understanding IP Addresses

An Internet Protocol (IP) Address is a logical address assigned to a device in a network.

IPv4 Address

IPv4 addresses are:

  • 32 bits long
  • Divided into four sections called octets
  • Written in dotted-decimal notation

Example:

192.168.1.10

Each section ranges from 0 to 255.

Example Breakdown

192.168.1.10

Octet Value
1st 192
2nd 168
3rd 1
4th 10
Each octet represents 8 bits.

Network ID and Host ID

Every IP address consists of two parts:

1. Network ID

Identifies the network.

Example:

192.168.1.0

The network portion identifies the network to which a device belongs.

2. Host ID

Identifies a specific device within that network.

Example:

192.168.1.10

Here, "10" identifies the individual host.

Real-World Example

Consider a college:
  • College Name → Network ID
  • Student Roll Number → Host ID
Many students belong to the same college, but each student has a unique roll number.

Similarly, many devices belong to the same network but have unique host IDs.

Types of Network Addressing

Network communication can occur in different ways depending on how data is delivered.

1. Unicast Addressing

One-to-One Communication

Unicast is the most common type of communication.

A single sender communicates with a single receiver.

Example
  • Opening a website
  • Sending an email
  • Downloading a file
When your laptop accesses a website, data travels from one server to one device.
Sender → Receiver

2. Multicast Addressing

One-to-Many Communication

A sender transmits data to multiple selected receivers.

Example
  • Live video streaming
  • Online webinars
  • IPTV services
  • Software updates
Instead of sending separate copies to every user, one stream is sent to a multicast group.

Sender → Multiple Selected Receivers

This reduces bandwidth consumption.

3. Broadcast Addressing

One-to-All Communication

Data is sent to every device in a network.

Example

When a device searches for another device in a Local Area Network (LAN), it may send a broadcast request.

Sender → All Devices

Broadcasting is commonly used in LAN environments.

Classful IP Addressing

Originally, IPv4 addresses were divided into five classes.

These classes helped determine how many networks and hosts could be supported.

Class A

Characteristics

  • First bit = 0
  • Network ID = 8 bits
  • Host ID = 24 bits

Range

0.0.0.0 to 127.255.255.255

Number of Networks

2⁷ = 128

Hosts Per Network

2²⁴ − 2
= 16,777,214

Usage

Used for very large organizations.

Class B

Characteristics

  • First two bits = 10
  • Network ID = 16 bits
  • Host ID = 16 bits

Range

128.0.0.0 to 191.255.255.255

Number of Networks

2¹⁴ = 16,384

Hosts Per Network

2¹⁶ − 2
= 65,534

Usage

Used by medium and large organizations.

Class C

Characteristics

  • First three bits = 110
  • Network ID = 24 bits
  • Host ID = 8 bits

Range

192.0.0.0 to 223.255.255.255

Number of Networks

2²¹ = 2,097,152

Hosts Per Network

2⁸ − 2
= 254

Usage

Used by small businesses and home networks.

Class D

Characteristics

First four bits = 1110

Range

224.0.0.0 to 239.255.255.255

Purpose

Reserved for Multicast Communication.

Class E

Characteristics

First four bits = 1111

Range

240.0.0.0 to 255.255.255.255

Purpose

Reserved for research and future use.

Rules for Assigning Host IDs

The Host ID must follow these rules:

Rule 1

Host IDs must be unique within the same network.

Rule 2

All host bits cannot be 0.

Reason:

Represents the network address.

Rule 3

All host bits cannot be 1.

Reason:

Represents the broadcast address.

Rules for Assigning Network IDs

Rule 1

All network bits cannot be 0.

Rule 2

All network bits cannot be 1.

Rule 3

Addresses beginning with:

127.x.x.x

cannot be used as normal network IDs because they are reserved for loopback testing.

Example:
127.0.0.1

IPv4 vs IPv6

As the Internet grew, IPv4 addresses started running out.

To solve this problem, IPv6 was introduced.

            Feature              IPv4                 IPv6
        Address Length    32-bit              128-bit        
        Address Space     4.3 Billion       Extremely Large 
        Format                 Decimal           Hexadecimal         
        Example             192.168.1.1       2001:db8::1 

IPv6 provides virtually unlimited addresses for future growth.

Applications of Network Addressing


Applications of Network Addressing.svg


1. E-Commerce

Online shopping platforms such as Amazon and Flipkart depend on network addressing.

It helps:
  • Process payments
  • Deliver web pages
  • Manage customer requests
  • Secure online transactions

2. One-to-One Communication

Applications such as:
  • Email
  • WhatsApp
  • Zoom
  • Microsoft Teams
use IP addressing to deliver messages and media to the correct recipient.

3. Client-Server Communication

Most Internet services use the Client-Server model.

Examples:
  • Web Browsing
  • Online Banking
  • Cloud Storage
  • Social Media
The client sends requests and the server responds.

Network addressing makes this communication possible.

4. Resource Sharing

Organizations share resources such as:
  • Printers
  • Databases
  • File Servers
  • Storage Systems
Network addressing helps users locate and access these resources efficiently.

Benefits of Network Addressing

1. Unique Device Identification

Every device receives a unique identity.

2. Efficient Data Routing

Routers can quickly determine the best path for data packets.

3. Scalability

Supports billions of devices connected worldwide.

4. Service Differentiation

Different applications can run simultaneously using port numbers.

5. Reliable Communication

Ensures data reaches the intended destination.

Challenges of Network Addressing

1. IPv4 Address Exhaustion

Limited address availability creates shortages.

Solution

Migration to IPv6.

2. Address Management Complexity

Large networks require careful planning and administration.

Solution

Use DHCP and IP management tools.

3. Security Risks

Attackers can target IP addresses for malicious activities.

Solution
  • Firewalls
  • Intrusion Detection Systems
  • Encryption
  • Network Monitoring

Common Network Addressing Problems

IP Address Conflicts

Occurs when multiple devices use the same IP address.

Solution
Proper DHCP configuration and IP planning.

DNS Failures

Domain names fail to resolve into IP addresses.

Solution
Use reliable DNS servers and troubleshoot with:
  • nslookup
  • ping
  • Traceroute

Subnetting Errors

Poor subnet design can create communication problems.

Solution
Careful subnet planning and documentation.

Security Vulnerabilities

Weak configurations expose systems to attacks.

Solution
  • SSL/TLS Encryption
  • Firewalls
  • Regular Security Audits
  • Software Updates

Best Practices for Secure Network Addressing

  • Use strong firewall policies.
  • Implement TLS/SSL encryption.
  • Regularly monitor network traffic.
  • Maintain proper IP documentation.
  • Use DHCP for automatic address assignment.
  • Adopt IPv6 whenever possible.
  • Conduct regular security audits.



Our website uses cookies to enhance your experience. Learn More
Accept !