Topic 3

IP Addressing, Subnetting & Address Resolution

3 min read1 question to test yourself

1Definition

An IPv4 Address is a 32-bit logical numerical identifier assigned to a node in a TCP/IP network, divided into 4 octets (8 bits each) with values ranging from 0 to 255. A MAC (Media Access Control) Address is a 48-bit unique physical identifier burned directly into a Network Interface Card (NIC) by its manufacturer. Subnetting is the process of dividing a single network into smaller logical sub-networks (subnets).

2Simple Explanation

Think of your MAC address as your Permanent Passport Number (it uniquely identifies you regardless of where you travel). Think of your IP address as your current Hotel Room Address (it changes depending on which city and hotel network you check into). Subnetting is like dividing a large hotel into floor wings so mail delivery is faster and more organized.

3Real-Life Example / Analogy

When sending a package to an office building:

  • The IP address gets the package to the correct building street address (routing over the public internet).
  • The MAC address ensures the building receptionist delivers the package to your specific physical desk inside the building (local network delivery via ARP).

4Diagram / Visual Representation

IPv4 address · 32 bits

Octet 1 · 8 bits

Octet 2 · 8 bits

Octet 3 · 8 bits

Octet 4 · 8 bits

Class A
0–127

Class B
128–191

Class C
192–223

Class D
224–239 · Multicast

Class E
240–255 · Experimental

5Working / How It Works

  1. Address Assignment: Nodes receive dynamic IP addresses via DHCP or static assignment.
  2. Addressing Separation: The IP address contains two parts: Network ID and Host ID.
  3. Subnet Filtering: When a packet arrives, the router applies a subnet mask to quickly extract the Network ID and route the packet efficiently.
  4. Local Address Mapping (ARP): Once the packet arrives at the local network router, the router broadcasts an ARP request to find the physical MAC address matching the target destination IP.

6Types / Components / Characteristics

  • IPv4 Classes:
    • Class A: Range 0.0.0.0 - 127.255.255.255 (Used for large networks).
    • Class B: Range 128.0.0.0 - 191.255.255.255 (Used for medium-sized networks).
    • Class C: Range 192.0.0.0 - 223.255.255.255 (Used for local area networks).
    • Class D: Range 224.0.0.0 - 239.255.255.255 (Reserved for Multicasting).
    • Class E: Range 240.0.0.0 - 255.255.255.254 (Reserved for R&D/Experimental).
  • Public vs. Private IP Addresses:
    • Private IPs: Not routable on the public internet (reserved ranges: Class A 10.0.0.0/8, Class B 172.16.0.0/12, Class C 192.168.0.0/16). Require NAT or proxy to access the internet.
    • Public IPs: Provided by Internet Service Providers (ISPs) to facilitate global internet communication.

7Solved Examples / Problems

Problem: Identify the IPv4 class and type (Public or Private) for the IP address 192.168.1.45.

Solution:

  1. Inspect the first octet value: 192.
  2. Compare with Class range tables:
    • Class A: 0 - 127
    • Class B: 128 - 191
    • Class C: 192 - 223
  3. Since 192∈[192,223]192 \in [192, 223], this address belongs to Class C.
  4. Check Private IP ranges: Class C Private range is 192.168.0.0 to 192.168.255.255.
  5. 192.168.1.45 falls within this block; therefore, it is a Private Class C IP Address.

8Advantages, Disadvantages & Applications

  • Advantages of Subnetting: Increases routing efficiency, enhances network security, reduces broadcast domain size, speeds up host address lookup in routing tables.
  • Applications: Enterprise internal network design, ISP address allocation, network security partitioning.

9Important Points to Remember

  • MAC address is a 48-bit physical address (provided by NIC manufacturer).
  • IPv4 address is a 32-bit logical address (provided by ISP or network admin).
  • Private IPs require Network Address Translation (NAT) or proxy servers to route out to the public Internet.
  • Loopback testing IP is 127.0.0.1.

10Test Your Understanding

  1. Multiple Choice: What is the primary purpose of subnetting?
    • a) To convert IPv4 into IPv6
    • b) To divide a network into smaller subnets for security and routing efficiency
    • c) To change MAC addresses dynamically
    • d) To encrypt data packets at the physical layer
    Show answer
    b).
  2. Problem: Which class does the IP address 226.15.2.1 belong to, and what is its primary use?

Finished this topic?

0 of 10 topics read in Computer Networks & Security

Handwritten notes for the exam

Unit-wise SPPU notes and PYQs for this subject.

Helpful? Share it with your class

Free for everyone, no login needed.

Share topic