IPv4 Addressing Theory
Internet Protocol version 4 (IPv4) is the fourth version of the Internet Protocol (IP). It is one of the core protocols of standards-based internetworking methods in the Internet and other packet-switched networks.
Key Concepts
- IPv4 Address: A 32-bit number that uniquely identifies a network interface on a device
- Address Format: Dotted-decimal notation (e.g., 192.168.1.1)
- Address Space: Approximately 4.3 billion addresses (232)
- Subnet Mask: Used to divide an IP address into network and host portions
- Classes: IPv4 addresses are categorized into classes A, B, C, D, and E
IPv4 Address Structure
An IPv4 address consists of 32 bits, typically represented as four decimal numbers (octets) separated by dots:
168
Second Octet (8 bits)
IPv4 Address Classes
| Class |
Range |
Purpose |
Subnet Mask |
| Class A |
1.0.0.0 to 126.255.255.255 |
Large networks |
255.0.0.0 |
| Class B |
128.0.0.0 to 191.255.255.255 |
Medium networks |
255.255.0.0 |
| Class C |
192.0.0.0 to 223.255.255.255 |
Small networks |
255.255.255.0 |
| Class D |
224.0.0.0 to 239.255.255.255 |
Multicast |
N/A |
| Class E |
240.0.0.0 to 255.255.255.255 |
Reserved/Experimental |
N/A |
Note: IPv4 Exhaustion
The IPv4 address space is limited to approximately 4.3 billion addresses. With the exponential growth of internet-connected devices, this address space has been exhausted. This has led to the development and adoption of IPv6, which offers a much larger address space (128-bit addresses).
Laboratory Procedure
This virtual laboratory will guide you through understanding IPv4 addressing, subnetting, and network configuration through practical exercises.
Experiment 1: Understanding IPv4 Address Structure
- Examine the structure of an IPv4 address in dotted-decimal notation
- Convert between binary and decimal representations of octets
- Identify the network and host portions of an IP address
- Determine the class of an IPv4 address based on its first octet
Experiment 2: Subnetting Practice
- Given an IP address and subnet mask, determine the network address
- Calculate the number of usable hosts in a subnet
- Determine the broadcast address for a given subnet
- Practice dividing a network into smaller subnets
Experiment 3: Network Configuration Simulation
- Configure IP addresses for devices in a simple network topology
- Verify connectivity between devices
- Identify and troubleshoot configuration errors
- Analyze the effect of subnet masks on network communication
Laboratory Safety Guidelines
- This is a virtual lab - no physical safety precautions are needed
- Ensure you understand the theory before proceeding with experiments
- Document all observations and results systematically
- Compare your results with theoretical expectations
Required Tools & Software
- Web browser with this virtual lab
- Calculator (for binary-decimal conversions)
- Notebook for recording observations
- Optional: Network simulation software like Cisco Packet Tracer or GNS3 for extended practice
IPv4 Address Analyzer
Use this interactive tool to analyze IPv4 addresses and understand their properties.
Laboratory Report Guidelines
A well-structured lab report is essential for documenting your findings and demonstrating your understanding of IPv4 concepts. Follow these guidelines for your laboratory report.
Report Structure
- Title Page: Experiment title, your name, date, course information
- Abstract: Brief summary of objectives, methods, and key findings (100-150 words)
- Introduction: Background theory and objectives of the experiment
- Methodology: Description of procedures and tools used
- Results: Presentation of data, calculations, and observations
- Discussion: Analysis of results, comparison with theory, error analysis
- Conclusion: Summary of findings and lessons learned
- References: Sources cited in your report
- Appendices: Additional data, calculations, or code if applicable
Detailed Guidelines for Each Section
Introduction
- Explain the importance of IPv4 addressing in computer networks
- Describe key concepts: IPv4 address structure, classes, subnetting
- Clearly state the objectives of the laboratory exercises
Methodology
- Describe the virtual laboratory environment and tools used
- Explain each experiment procedure step-by-step
- Include any calculations or formulas used
- Mention any assumptions made during the experiments
Results Presentation
- Present data in clear, well-labeled tables
- Include screenshots of simulation results where applicable
- Show sample calculations for at least one example
- Use appropriate units and formatting for all values
Discussion
- Interpret your results in the context of IPv4 theory
- Compare experimental results with theoretical expectations
- Discuss any discrepancies and possible sources of error
- Explain the practical implications of your findings
Tips for Successful Report Writing
- Use clear, concise language and avoid unnecessary jargon
- Number and title all figures and tables
- Reference all sources using a consistent citation style
- Proofread for spelling, grammar, and technical accuracy
- Include both binary and decimal representations where relevant
Sample Calculations
Your report should include sample calculations for:
- Conversion between binary and decimal notation
- Determination of network address from IP address and subnet mask
- Calculation of broadcast address and usable host range
- Determination of the number of subnets and hosts per subnet