Buffl

Day 13, 14, 15 Subnetting

as
von abdullah S.

📚 MAIN CONCEPTS


1. CIDR (Classless Inter-Domain Routing)

CIDR was introduced by the IETF in 1993 to replace the classful addressing system. It removes the restriction that Class A networks must use /8, Class B must use /16, and Class C must use /24. This flexibility allows larger networks to be split into smaller networks called subnets, enabling greater efficiency in IP address allocation and reducing address waste.

2. Why Subnetting is Necessary

The original classful system led to massive IP address waste. For example, a point-to-point connection between two routers using a Class C network (/24) would waste 252 addresses since only 2 addresses are needed. Similarly, a company needing 5,000 hosts would require a Class B network, wasting approximately 60,000 addresses. Subnetting solves this by allowing networks to be divided into appropriately-sized segments.

3. The Subnetting Process

Subnetting involves borrowing bits from the host portion of an IP address and adding them to the network portion. Each borrowed bit doubles the number of possible subnets while halving the number of available host addresses per subnet. The formula for calculating usable hosts is 2^n - 2, where n is the number of host bits, and we subtract 2 for the network and broadcast addresses.

4. Fixed-Length Subnet Masks (FLSM)

FLSM is a subnetting method where all subnets use the same prefix length. For example, dividing a /24 network into four equal subnets using /26 throughout. While simpler to implement, FLSM can lead to inefficient address usage when network segments have varying host requirements.

5. Variable-Length Subnet Masks (VLSM)

VLSM allows the creation of subnets with different sizes to match actual host requirements more efficiently. The process involves assigning the largest subnet first at the start of the address space, then proceeding to smaller subnets in descending order. This method maximizes address space efficiency by tailoring each subnet size to its specific needs.

Author

abdullah S.

Informationen

Zuletzt geändert