An IP address (Internet Protocol address) is a unique logical address assigned to a device in a network that is used to identify and communicate with that device.
👉 IP Address = Digital Address of a device on a network
Just like your home has an address, every device on a network has an IP address.
These addresses help devices find and communicate with each other.
Without an address, delivery is impossible.
A MAC address (Media Access Control Address) is a unique physical address assigned to a network interface card (NIC) by the manufacturer.
👉 MAC Address = Permanent hardware address of a device
It identifies a device physically inside a network.
00:1A:2B:3C:4D:5E
| Feature | IP Address | MAC Address |
| Type | Logical | Physical |
| Changeable | Yes | No (generally) |
| Layer | Layer 3 (Network) | Layer 2 (Data Link) |
| Format | Decimal (IPv4) | Hexadecimal |
| Purpose | Identify device in the network. | Identify device hardware |
When data is sent:
1️⃣ IP address → Finds the destination network
2️⃣ MAC address → Finds the exact device
👉 Both are required for communication.
❓ What is an IP address?
An IP address is a unique logical address assigned to a device in a network to identify and enable communication between devices.
❓ What is a MAC address?
A MAC address is a unique physical address assigned to a network interface card, used to identify a device at the data link layer.
❓ Difference Between IP and MAC?
An IP address is a logical and changeable address used for network communication, whereas a MAC address is a permanent physical address used to identify a device within a local network.
👉 IP = Identity in Network
👉 MAC = Machine Address Code
IP (Internet Protocol) has different versions developed to handle communication in networks.
The two main versions are the following:

IPv4 is the fourth version of IP and the most widely used protocol for identifying devices on a network.
192.168.1.1
👉 Structure:
8 bits. 8 bits. 8 bits. 8 bits = 32 bits
IPv4 provides approximately
👉 4.3 Billion (2³²) addresses
Due to the rapid growth of internet devices, IPv4 addresses are almost exhausted.
Two main versions of Internet Protocol:

⚠️ Limitation: Address shortage
✅ Solution to IPv4 exhaustion
| Feature | IPv4 | IPv6 |
| Size | 32-bit | 128-bit |
| Format | Decimal | Hexadecimal |
| Example | 192.168.1.1 | 2001:db8::1 |
| Address Count | Limited | Huge |

An IPv4 address is a 32-bit logical address divided into 4 parts (octets).
👉 Example IP: 192.168.1.1
| Octet 1 | Octet 2 | Octet 3 | Octet 4 |
| 192 | 168 | 1 | 1 |
Each octet:
👉 Total:
8 + 8 + 8 + 8 = 32 bits
An IP address has two parts:
👉 Example:
192.168.1.1
(Depends on subnet mask)
Computers understand only binary (0 & 1).
👉 So every IP address is actually stored in binary format.
| Bit Position | Value |
| 1 | 128 |
| 2 | 64 |
| 3 | 32 |
| 4 | 16 |
| 5 | 8 |
| 6 | 4 |
| 7 | 2 |
| 8 | 1 |
👉 Total = 255

👉 Use this table:
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1
Step:
👉 Binary:
11000000
👉 Binary:
10101000
👉 Only last bit = 1
Binary:
00000001
IP Address: 192.168.1.1
| Decimal | Binary |
| 192 | 11000000 |
| 168 | 10101000 |
| 1 | 00000001 |
| 1 | 00000001 |
👉 Final Binary:
11000000.10101000.00000001.00000001
| Decimal | Binary |
| 0 | 00000000 |
| 128 | 10000000 |
| 192 | 11000000 |
| 224 | 11100000 |
| 240 | 11110000 |
| 255 | 11111111 |
❓ What is IPv4 structure?
IPv4 is a 32-bit address divided into four octets, where each octet consists of 8 bits and ranges from 0 to 255.
❓ Why binary is used in networking?
Because computers process data in binary format (0 and 1), all IP addresses are internally represented in binary.
❓ Convert 192.168.1.1 into binary
11000000.10101000.00000001.00000001
👉 128-64-32-16-8-4-2-1 = Full Octet
1️⃣ Simple & Easy to Understand
2️⃣ Wide Compatibility
3️⃣ Well Established & Stable
4️⃣ Efficient for Small Networks
5️⃣ Low Resource Requirement
6️⃣ Supports NAT (Network Address Translation)
👉 Example:
Home network using one internet connection for multiple devices
1️⃣ Limited Address Space (Major Problem)
2️⃣ Need for NAT
3️⃣ Security Limitations
4️⃣ No Auto-Configuration
5️⃣ Less Efficient Routing
6️⃣ Not Scalable for Future
❓ What are the advantages and disadvantages of IPv4?
IPv4 is simple, widely supported, and stable, making it suitable for small and existing networks. However, it has a limited address space, lacks built-in security, requires NAT, and is not scalable for future network growth.
IPv4 addresses are classified based on their usage and purpose in a network.
Main types:
A public IP address is an IP address that is accessible over the internet.
8.8.8.8 (Google DNS)
A private IP address is used within a local network (LAN) and is not accessible directly from the internet.
192.168.1.1

A loopback address is used to test the network stack of a device.
127.0.0.0 – 127.255.255.255
👉 Most common: 127.0.0.1 (localhost)

APIPA is automatically assigned when a device fails to get an IP from a DHCP server.
169.254.0.0 – 169.254.255.255
👉 If you see 169.254.x.x → DHCP issue
📖 Definition
A multicast IP address is used to send data to multiple devices at once (one-to-many).
224.0.0.0 – 239.255.255.255
Live video streaming to multiple users
| Type | Usage | Range |
| Public | Internet communication | ISP assigned |
| Private | Local network | 10.x.x.x, 172.16–31.x.x, 192.168.x.x |
| Loopback | Self-testing | 127.x.x.x |
| APIPA | DHCP failure | 169.254.x.x |
| Multicast | One-to-many | 224–239.x.x |
❓ What are the types of IPv4 addresses?
IPv4 addresses are classified into public, private, loopback, APIPA, and multicast addresses based on their usage in networking, such as internet communication, local networking, testing, automatic assignment, and group communication.
IPv4 addresses are divided into classes based on:
👉 Classes help in identifying how many networks and devices can exist.

| Class | Range (1st Octet) | Default Subnet Mask | Usage |
| A | 1 – 126 | 255.0.0.0 | Large networks |
| B | 128 – 191 | 255.255.0.0 | Medium networks |
| C | 192 – 223 | 255.255.255.0 | Small networks |
| D | 224 – 239 | Multicast | Group communication |
| E | 240 – 255 | Reserved | Research |
📍 Range
1.0.0.0 – 126.255.255.255
🔑 Features
🧠 Note
📍 Range
128.0.0.0 – 191.255.255.255
🔑 Features
📍 Range
192.0.0.0 – 223.255.255.255
🔑 Features
📍 Range
224.0.0.0 – 239.255.255.255
👉 Used for Multicast
📍 Range
240.0.0.0 – 255.255.255.255
👉 Reserved for research and future use
These are used inside local networks (not on internet).
| Class | Private Range |
| A | 10.0.0.0 – 10.255.255.255 |
| B | 172.16.0.0 – 172.31.255.255 |
| C | 192.168.0.0 – 192.168.255.255 |
👉 Example: 8.8.8.8
| Feature | Public IP | Private IP |
| Access | Internet | Local network |
| Uniqueness | Globally unique | Can repeat |
| Assigned by | ISP | Router/Admin |
🎯 Memory Trick
👉 A → B → C = Big → Medium → Small
👉 D = Data (Multicast)
👉 E = Experimental
IPv4 addresses are divided into five classes: A, B, C, D, and E based on their range and usage. Classes A, B, and C are used for unicast communication, Class D is used for multicast, and Class E is reserved for experimental purposes.
📖 Definition
An IPv6 address is a 128-bit logical address used to uniquely identify devices on a network.
IPv6 address:

2001:0db8:85a3:0000:0000:8a2e:0370:7334
| Part | Bits | Purpose |
| Global Routing Prefix | First 48 bits | Identifies network |
| Subnet ID | Next 16 bits | Identifies subnet |
| Interface ID | Last 64 bits | Identifies device |
👉 First 64 bits = Network
👉 Last 64 bits = Host
IPv6 allows:
2001:0db8:0000:0000:0000:0000:0000:0001
→ 2001:db8:0:0:0:0:0:1
2001:db8::1
👉 :: replaces consecutive zeros (can be used only once)
Since IPv6 is 128-bit, every hexadecimal digit equals 4 binary bits.
| Hex | Binary |
| 0 | 0000 |
| 1 | 0001 |
| 2 | 0010 |
| 3 | 0011 |
| 4 | 0100 |
| 5 | 0101 |
| 6 | 0110 |
| 7 | 0111 |
| 8 | 1000 |
| 9 | 1001 |
| A | 1010 |
| B | 1011 |
| C | 1100 |
| D | 1101 |
| E | 1110 |
| F | 1111 |
IPv6:
2001
Convert digit by digit:
2 → 0010
0 → 0000
0 → 0000
1 → 0001
Binary:
0010000000000001
👉 Repeat for all 8 groups → total 128 bits

IPv6 addresses are classified into:
Used for one-to-one communication.
Example:
2001:db8::1
Example:
FE80::1
Example:
FD00::1
Example:
FF02::1
Used in DNS and large networks.
| Type | Prefix | Usage |
| Global Unicast | 2000::/3 | Public internet |
| Link-Local | FE80::/10 | Local network |
| Unique Local | FC00::/7 | Private network |
| Multicast | FF00::/8 | One-to-many |
| Loopback | ::1/128 | Self testing |
| Unspecified | ::/128 | No address |
An IPv6 address is a 128-bit logical address used to uniquely identify devices on a network and enable communication over the Internet.
It was developed to overcome the address exhaustion problem of IPv4.
IPv6 was introduced because IPv4 has limited address space (32-bit) and the number of internet-connected devices increased rapidly.
IPv6 provides 2¹²⁸ addresses, which is almost unlimited.
An IPv6 address is 128 bits long and written in hexadecimal format separated by colons.
Example:
2001:db8::1
👉 Join our 45-Day Job-Oriented Networking Internship and start building real IT skills.
https://www.evisiontechnoserve.com/internships/it/45-days-job-internship-program-live