Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Mini Project Seminar Subnet Calculator based on vlsm Team Members – Shrey Berry (200711100) Vineet Kumar (200711128) Under the Guidance of – Mr. Kiran Gautam Assistant Professor Dept. of CSE Given the IP Address and the Subnet Mask of the Master Network, we need to divide the entire network into a group of Sub – Networks. The Network Administrator is required know the entire Network Structure, which includes the number of Routers, number of LANs, inter connectivity between the network elements and so on. We need to use the Classless Inter Domain Routing (CIDR) mechanism, which implements the concept of Variable Length Subnet Mask. We prefer this strategy for subnetting as it enables us to conserve address space, making it possible to define subnets of varying sizes, VLSM is, in concept, a simple extension of standard subnet masking. With VLSM, a number of subnet masks are defined for a single network and used as needed to create different-size subnets. We develop an interface wherein, the Network Administrator is able to describe the structure of the Network. The interface allows for taking as input the number of Routers and LAN Segments, the Inter Connectivity among them. Having entered the appropriate inputs to the Interface, the Software calculates the IP values for each connection. System Requirements: Minimum: 1.6 GHz CPU 512 MB RAM 1024x768 display 5400 RPM hard disk Recommended: 2.2 GHz or higher CPU 1 GB or more RAM 1280x1024 display 7200 RPM or higher hard disk 3.0 GB of available disk space for the full installation Software Requirements: Operating System : Microsoft Windows XP Windows Vista/Windows 7 IDE : Microsoft Visual Studio 2008 Programming Language : C# Platform : ASP.NET Other Applications : Microsoft Office Word Different Phases of Development Activity A : Feasible study of the problem and formulation of formal problem definition – 10 Days Activity B : Requirement analysis and specification – 7 Days Activity C : Literature study – 28 Days Activity D : Coding and unit testing – 27 Days Activity E : Integration and system testing – 26 Days Activity F : Documentation – 9 Days A Duration of different activities B Activity C D E F 20 Sept 30 Sept 7 Oct 4 Nov 1 Dec 27 Dec Activity A : Feasible study of the problem and formulation of formal problem definition – 10 Activity B : Requirement analysis and specification – 7 Activity C : Literature study – 28 Days Activity D : Coding and unit testing – 27 Days Activity E : Integration and system testing – 26 Activity F : Documentation – 9 Days Days Days Days 5 Jan Level 0 DFD / Context Diagram :- Result Subnet Calculator 0 USER Input Level 1 DFD :- Subnet Mask Input Verify Feasibilit y 0.1 Feasible Router Subnets 0.2 Total IPs Number of Valid IPs Router IP and Subnet Calculated Detailed Report 0.4 Report LAN Subnets 0.3 LAN IP and Subnet Calculated Master Subnet Mask Number of Hosts Master Subnet Number of Valid IPs Valid Hosts 0.1.1 No. of Hosts Assign Block Size 0.1.3 Total Valid IPs Level 2 DFD :- Variable Length Subnet Mask Table Valid Block Size Router IP 0.1.2 Number of Links LAN IPs Router IPs Validate 0.1.5 Validation Result Total IPs 0.1.4 Required IPs Number of Hosts Level 3 DFD :No. of Hosts Adjust to Upper Limit 0.1.3.1 Block Size Adjusted Update number of Hosts 0.1.3.2 VLSM Table Updated Generate Result 0.1.3.4 Total LAN IPs Sum up Hosts 0.1.3.3 No. of Hosts Feasibility Module – /* This module calculates the maximum number of IPs that are available from the Master Subnet Mask. The total number of IPs required is calculated from the Router connectivity and the number of hosts in each LAN segment. These two values are compared, and subnetting is performed if and only if the available IPs is more than the total number of IPs required after subnetting. Data Structure : Rn – Total no. of Routers in the Network. Rcn –Total number of Router Connections. Ln – Total no. of LANs in the Network. Li – Number of Hosts in LANi. Aip – Total Number IPs available. Rip – Total number of IPs needed for Router Connectivity. Lip – Total number of IPs needed for LAN Connectivity. Nip – Total number of IPs required for the Network. t[8] – An Integer Array that stores permissible values of Lip. Lip 0. T[ ] = {2, 4, 8, 16, 32, 64, 128, 256, 0} */ Steps :1. Begin 2. Rip Rcn * 4 3. Lip Lip + func (Li) 4. Nip Rip + Lip 5. if, Aip < Nip, then 6. Generate Error 7. else, proceed for Subnetting 8. End Func (int Li) – /* This module takes the number of hosts in LAN segment (i) as its input. The total number of IPs for the LAN segment is determined after comparing the number of Hosts with the Standard Block Size of Subnet Masks. */ Steps :1. Li Li + 2 2. t[8] Li 3. for i 0 to 9, do 4. for j 0 to 9, do 5. if, t[i] <= t[j], then 6. temp t[i] 7. t[i] t[j] Steps (contd.) :- 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. t[j] temp end if end for end for for I 0 to 9, do if, t[i] = Li, then ki+1 end if end for Return t[k] Procedure RouterSubnetting( ) – /* This procedure calculates the IP range for each Router Connection. Since, each inter router connectivity requires just 4 IP values, so we can use the same Subnet Mask for all the Router connections and hence, determine the IP Address values. Data Structure : Rn – Total no. of Routers in the Network. Rcn – Total number of Router Connections. Ip – IP Address of Master Network. SMi – Subnet Mask for Router Connection Rij. Ip <Ip1.Ip2.Ip3.Ip4> */ Steps :1. Begin 2. for i 0 to Rcn, do 3. for j 0 to 4, do 4. if, Ip1 <= 255, then 5. if, Ip2 <= 255, then Steps (contd.) :6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. if, Ip3 <= 255, then if, Ip4 <= 255, then if, Ip4 == 255, then Ip4 0 Ip3 Ip3 + 1 else Ip4 Ip4 + 1 end if if, Ip3 == 255, then Ip3 0 Ip2 Ip2 + 1 else Ip3 Ip3 + 1 end if if, Ip2 == 255, then Ip2 0 Ip1 Ip1 + 1 end if end for SMi 255.255.255.252 end for Ip_L Ip end Procedure Procedure LANSubnetting( ) – /* This procedure calculates the IP range for each LAN Connection. Since, the Subnet Mask of the LAN segments depend on the number of hosts, we need to compute the IP Address range for each LAN segment individually, keeping in mind the Block Size that the LAN connection belongs to. Data Structure: Ln – Total no. of LANs in the Network. Li – Number of Hosts in LANi. Ip Ip_L */ Steps :1. Begin 2. for i 0 to Ln, do 3. for j 0 to Li, do 4. if, Ip1 <= 255, then 5. if, Ip2 <= 255, then Steps (contd.) :6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. end for 25. end for 26. end Procedure if, Ip3 <= 255, then if, Ip4 <= 255, then if, Ip4 == 255, then Ip4 0 Ip3 Ip3 + 1 else Ip4 Ip4 + 1 end if if, Ip3 == 255, then Ip3 0 Ip2 Ip2 + 1 else Ip3 Ip3 + 1 end if if, Ip2 == 255, then Ip2 0 Ip1 Ip1 + 1 end if Master Network : Router Connectivity : LAN Segments : LAN Connectivity : Report Generation : The GUI provides nice and easy approach for the user and system interaction. Warning messages have been provided to indicate errors during inputs provided by the users. This software provides the facility to divide a large network into smaller sub network. This software is very user friendly, and provides a very convenient method to subnet a large network. Its use is restricted only to Classless networks and it cannot be implemented in cases where the Network implements Classful IP Addressing. The maximum permissible limit to the number of routers and LAN segments is 10. A further increment in the numbers is possible by adding few lines of code to the existing project. The report format generated by the system is fixed and any changes to the report format could be done with the help of the developers. The system does not deal with other elements of the network, such as Gateways, bridges, etc. The system can have scope for incremental change. We can increase the count of routers and LAN segments to realize an enhanced implementation of the system. The same could be setup on a college LAN and we can assign IP addresses to each of the sub networks existing without wasting the address space allocated to the college. Reference / Bibliography – Todd Lammle, “CISCO Certified Network Associate Study Guide”, Fifth Edition, PBP Publications. Richard Deal, “CISCO Certified Network Associate Study Guide”, Fourteenth Edition, Tata McGraw Hill, 2006. John Sharp, “Microsoft Visual C# 2005 Step by Step”, Prentice Hall of India, 2007. Rajib Mall, “Fundamentals of Software Engineering”, Second Edition, Prentice-Hall of India, 2008. Stephen C. Perry, “Core C# and .NET”, Prentice Hall PTR, 2005. Variable Length Subnet Mask: http://www.tcpipguide.com/free/i_IPVariableLenghtSubnetmaskingVLSM.htm Classless Inter Domain Routing: http://www.tcpipguide.com/free/t_IPVariableLenghtSubnetMaskingVLSM.htm