1. IPv4 Addressing & Subnetting
An IPv4 address is a 32-bit binary number, represented in dotted-decimal format (e.g., 192.168.1.1). Subnetting splits a large network block into smaller, manageable subnets.
Subnet Calculation Example:
Given the network address 192.168.1.0/26:
- The
/26CIDR notation represents 26 network bits. The remaining32 - 26 = 6bits are host bits. - Subnet Mask: 26 consecutive 1s in binary is
11111111.11111111.11111111.11000000, which translates to 255.255.255.192. - Total Hosts:
26 = 64hosts per subnet. - Usable Hosts:
26 - 2 = 62(subtracting the Network ID and the Broadcast Address).
| Property | Binary Value | Decimal Value |
|---|---|---|
| Network ID | 192.168.1.00000000 | 192.168.1.0 |
| First Usable Host | 192.168.1.00000001 | 192.168.1.1 |
| Last Usable Host | 192.168.1.00111110 | 192.168.1.62 |
| Broadcast Address | 192.168.1.00111111 | 192.168.1.63 |
2. OSI 7-Layer Reference Model
The Open Systems Interconnection (OSI) model standardizes network communication functions across 7 layers:
- Application: Interface for end-user network services (HTTP, FTP, SMTP).
- Presentation: Handles data formatting, translation, and encryption (SSL/TLS).
- Session: Manages, maintains, and terminates connections between applications.
- Transport: Coordinates reliable end-to-end data delivery (TCP, UDP, ports).
- Network: Determines routing path using logical IP addresses (Routers, IP).
- Data Link: Manages physical node-to-node framing and error detection (MAC, Switches).
- Physical: Transmits raw binary bits over cable/wireless media (Cables, Hubs).