IP Addressing and Classful Addressing
➤ 1. What is IP Addressing?
📖 Definition: IP Addressing is the method of assigning a unique numerical address to each device connected to a network using the Internet Protocol (IP). This address helps in identifying and communicating with devices over a network.
📝 Important Points:
- IP stands for Internet Protocol.
- An IP address is a 32-bit number (in IPv4).
- It is written in dotted decimal format, e.g., 192.168.1.1
- IP address is divided into two parts:
- Network ID – identifies the network.
- Host ID – identifies the device within that network.
🎯 Example: IP Address = 192.168.1.1
→ Network ID = 192.168.1
→ Host ID = 1
🎓 Memory Trick: “N comes before H” → Network ID comes first, then Host ID.
—
➤ 2. What is Classful Addressing?
📖 Definition: Classful addressing is a method of categorizing IP addresses into 5 different classes (A to E), based on the starting bits and the number of networks and hosts they support.
📝 Important Points:
- Used in early networking before Classless (CIDR) came.
- Classes: A, B, C, D, and E
- Based on the first few bits of the IP address.
📊 Table: IP Address Classes
Class | Starting Bits | Range of First Octet | Network Bits | Host Bits | No. of Networks | No. of Hosts per Network | Use |
---|---|---|---|---|---|---|---|
A | 0 | 1 – 126 | 8 | 24 | 128 | 16 million approx | Large networks |
B | 10 | 128 – 191 | 16 | 16 | 16,384 | 65,000 approx | Medium networks |
C | 110 | 192 – 223 | 24 | 8 | 2 million approx | 254 | Small networks |
D | 1110 | 224 – 239 | – | – | – | – | Multicasting |
E | 1111 | 240 – 255 | – | – | – | – | Experimental |
🎯 Example: IP Address: 172.16.5.4 → First octet = 172
→ Falls in range 128-191 → Class B
→ Network ID = 172.16
→ Host ID = 5.4
📝 Final Exam Note:
- IP addressing uniquely identifies each device on a network.
- Classful addressing divides the IP address space into fixed classes.
- Classes A, B, and C are used for unicast (host-based) communication.
- Classes D and E are used for special purposes.
- Helps routers and devices understand where to send data.
➤ 1. IP Addressing क्या है?
📖 परिभाषा:
IP Addressing एक ऐसी विधि है जिसमें नेटवर्क से जुड़े हर डिवाइस को एक यूनिक (अद्वितीय) संख्यात्मक पता (IP Address) दिया जाता है ताकि वे एक-दूसरे से डेटा भेज और प्राप्त कर सकें।
📝 मुख्य बिंदु:
- IP का पूरा नाम है – Internet Protocol
- यह 32-बिट संख्या होती है (IPv4 में)
- इसे चार भागों में डॉट के द्वारा लिखा जाता है, जैसे: 192.168.1.1
- IP Address दो भागों में बंटा होता है:
- Network ID – नेटवर्क को पहचानता है
- Host ID – उस नेटवर्क में डिवाइस को पहचानता है
🎯 उदाहरण: IP Address: 192.168.1.1
→ Network ID = 192.168.1
→ Host ID = 1
🎓 याद रखने की ट्रिक:
“N पहले आता है H से” → Network ID पहले, Host ID बाद में।
—
➤ 2. Classful Addressing क्या है?
📖 परिभाषा:
Classful Addressing एक पुरानी विधि है जिसमें IP Address को पांच क्लास (A से E) में बांटा जाता है, ताकि अलग-अलग नेटवर्क और होस्ट के हिसाब से IP address को वितरित किया जा सके।
📝 मुख्य बिंदु:
- इसमें IP Address को 5 क्लासों में बांटा गया है: A, B, C, D, E
- क्लास की पहचान पहले ऑक्टेट (First Octet) के नंबर से होती है
- यह IPv4 में उपयोग होती थी (अब Classless भी चलता है)
📊 Classful Addressing की सारणी:
क्लास | शुरुआती बिट्स | First Octet का Range | नेटवर्क बिट्स | होस्ट बिट्स | नेटवर्क की संख्या | हर नेटवर्क में होस्ट | उपयोग |
---|---|---|---|---|---|---|---|
A | 0 | 1 – 126 | 8 | 24 | 128 | लगभग 1.6 करोड़ | बड़े नेटवर्क |
B | 10 | 128 – 191 | 16 | 16 | 16,384 | लगभग 65 हजार | मध्यम नेटवर्क |
C | 110 | 192 – 223 | 24 | 8 | लगभग 20 लाख | 254 | छोटे नेटवर्क |
D | 1110 | 224 – 239 | – | – | – | – | मल्टीकास्टिंग |
E | 1111 | 240 – 255 | – | – | – | – | रिसर्च / एक्सपेरिमेंटल |
🎯 उदाहरण: IP Address: 172.16.5.4 → First Octet = 172
→ यह 128-191 की रेंज में आता है → Class B
→ Network ID = 172.16
→ Host ID = 5.4
अंतिम परीक्षा नोट:
- IP Address हर डिवाइस की पहचान के लिए जरूरी होता है
- Classful Addressing में IP Address को क्लासों में बांटा जाता है
- Class A, B, C – Unicast (host communication) के लिए
- Class D – Multicasting के लिए
- Class E – प्रयोग/रिसर्च के लिए
- यह तरीका Routing और Address Assignment में मदद करता है