Introduction of Variable Length Subnet Mask (VLSM)
Variable Length Subnet Mask (VLSM) is a technique used in IP network design to create subnets with different subnet masks. VLSM allows network administrators to allocate IP addresses more efficiently and effectively, by using smaller subnet masks for subnets with fewer hosts and larger subnet masks for subnets with more hosts.
In a traditional subnetting scheme, a fixed subnet mask is applied to all subnets in the network, which can lead to inefficient use of IP addresses. For example, if a network has two subnets, one with 10 hosts and another with 50 hosts, a traditional subnet mask of 255.255.255.0 would be used for both subnets, which means that each subnet would have 254 available IP addresses. This would result in wasted IP addresses for the smaller subnet.
VLSM allows network administrators to create subnets with different subnet masks to more effectively utilize IP addresses. Using the example above, VLSM could be used to assign a subnet mask of 255.255.255.128 to the smaller subnet with 10 hosts, which would provide 126 available IP addresses, and a subnet mask of 255.255.255.192 to the larger subnet with 50 hosts, which would provide 62 available IP addresses.
VLSM is widely used in modern networks to create subnets of different sizes and to optimize the use of IP addresses.
VLSM stands for Variable Length Subnet Mask where the subnet design uses more than one mask in the same network which means more than one mask is used for different subnets of a single class A, B, C or a network. It is used to increase the usability of subnets as they can be of variable size. It is also defined as the process of subnetting of a subnet. Procedure of implementing VLSM – In VLSM, subnets use block size based on requirement so subnetting is required multiple times. Suppose there is an administrator that has four departments to manage. These are sales and purchase department with 120 computers, development department with 50 computers, accounts department with 26 computers and management department with 5 computers. If the administrator has IP 192.168.1.0/24, department wise IPs can be allocated by following these steps:
- For each segment select the block size that is greater than or equal to the actual requirement which is the sum of host addresses, broadcast addresses and network addresses. Make a list of subnets possible: table – possible subnets list
- Arrange all the segments in descending order based on the block size that is from highest to lowest requirement.
Sales and Purchase: 120 Development: 50 Accounts: 26 Management: 5
- The highest IP available has to be allocated to highest requirement so the sales and purchase department gets 192.168.1.0/25 which has 126 valid addresses that can easily be available for 120 hosts. The subnet mask used is 255.255.255.128
- The next segment requires an IP to handle 50 hosts. The IP subnet with network number 192.168.1.128/26 is the next highest which can be assigned to 62 hosts thus fulfilling the requirement of development department. The subnet mask used is 255.255.255.192
- Similarly the next IP subnet 192.168.1.192/27 can fulfill the requirements of the accounts department as it has 30 valid hosts IP which can be assigned to 26 computers. The mask used is 255.255.255.224
- The last segment requires 5 valid hosts IP which can be fulfilled by the subnet 192.168.1.224/29 which has the mask as 255.255.255.248 is chosen as per the requirement. The IP with the mask 255.255.255.240 could be chosen but it has 14 valid host IPs and the requirement is less in comparison so the one that is comparable with the requirement is chosen. Thus there is less IP wastage in VLSM as compared to FLSM.
Advantages of VLSM over FLSM –
- In Fixed length subnet mask subnetting (FLSM), all subnets are of equal size and have equal number of hosts but in VLSM the size is variable and it can have variable number of hosts thus making the IP addressing more efficient by allowing a routed system of different mask length to suit requirements.
- In FLSM there is a wastage of IP addresses but in VLSM there is a minimum wastage of IP addresses.
- FLSM is preferred for private IP addresses while for public IP addresses VLSM is the best option.
- More efficient network utilization: VLSM allows for more efficient use of IP addresses by assigning smaller subnets to areas that require fewer hosts, and larger subnets to areas that require more hosts. This leads to more efficient network utilization and reduces the overall IP address space required.
- Greater flexibility: VLSM provides greater flexibility in designing IP addressing schemes. It allows network administrators to create subnets of varying sizes based on the specific requirements of each subnet, which can be particularly useful in complex networks.
- Better scalability: VLSM allows for better scalability of the network as it can accommodate growth and changes in network topology without requiring a complete re-design of the IP addressing scheme.
- Improved network performance: VLSM can help improve network performance by reducing network congestion and improving the flow of data between subnets.
- Reduced network management overhead: VLSM can help reduce network management overhead by simplifying the allocation and management of IP addresses. This can be particularly useful in large networks where IP address management can be a significant challenge.
- Complexity: VLSM requires more advanced planning and configuration compared to traditional subnetting, which can increase the complexity of the network design and administration.
- Increased management overhead: With VLSM, there may be more subnets and IP addresses to manage, which can increase the management overhead and make it more difficult to troubleshoot network issues.
- Potential for fragmentation: If subnets are created with different subnet masks, it can lead to IP address fragmentation, where IP addresses are allocated inefficiently and may not be contiguous.
- Compatibility issues: VLSM may not be compatible with older networking equipment or protocols, which can limit its usefulness in certain environments.
- Configuration errors: Because VLSM requires more advanced planning and configuration, there is an increased risk of configuration errors. These errors can cause network connectivity issues, security vulnerabilities, and other problems.
- Reduced network performance: While VLSM can improve network performance by reducing congestion, it can also have the opposite effect. If subnets are not configured properly, it can lead to network congestion, which can slow down the flow of data.
- Increased training requirements: VLSM requires more advanced networking knowledge and skills than traditional subnetting, which can increase the training requirements for network administrators.
- Security vulnerabilities: VLSM can introduce security vulnerabilities if subnets are not properly secured. For example, if a subnet is not properly isolated, it can allow unauthorized access to sensitive data.
- Higher cost: VLSM can be more expensive than traditional subnetting because it requires more advanced networking equipment and software. This can make it less accessible for small businesses or organizations with limited budgets.
Please Login to comment...