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
5Working / How It Works
- Address Assignment: Nodes receive dynamic IP addresses via DHCP or static assignment.
- Addressing Separation: The IP address contains two parts: Network ID and Host ID.
- Subnet Filtering: When a packet arrives, the router applies a subnet mask to quickly extract the Network ID and route the packet efficiently.
- 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).
- Class A: Range
- Public vs. Private IP Addresses:
- Private IPs: Not routable on the public internet (reserved ranges: Class A
10.0.0.0/8, Class B172.16.0.0/12, Class C192.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.
- Private IPs: Not routable on the public internet (reserved ranges: Class A
7Solved Examples / Problems
Problem: Identify the IPv4 class and type (Public or Private) for the IP address 192.168.1.45.
Solution:
- Inspect the first octet value:
192. - Compare with Class range tables:
- Class A: 0 - 127
- Class B: 128 - 191
- Class C: 192 - 223
- Since , this address belongs to Class C.
- Check Private IP ranges: Class C Private range is
192.168.0.0to192.168.255.255. 192.168.1.45falls 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
- 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). - Problem: Which class does the IP address
226.15.2.1belong to, and what is its primary use?
