Virtual IPv4 Laboratory

For Undergraduate Electrical and Communication Engineering Students

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:

192
First Octet (8 bits)
168
Second Octet (8 bits)
1
Third Octet (8 bits)
1
Fourth 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

  1. Examine the structure of an IPv4 address in dotted-decimal notation
  2. Convert between binary and decimal representations of octets
  3. Identify the network and host portions of an IP address
  4. Determine the class of an IPv4 address based on its first octet

Experiment 2: Subnetting Practice

  1. Given an IP address and subnet mask, determine the network address
  2. Calculate the number of usable hosts in a subnet
  3. Determine the broadcast address for a given subnet
  4. Practice dividing a network into smaller subnets

Experiment 3: Network Configuration Simulation

  1. Configure IP addresses for devices in a simple network topology
  2. Verify connectivity between devices
  3. Identify and troubleshoot configuration errors
  4. 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

IPv4 Address Analyzer

Use this interactive tool to analyze IPv4 addresses and understand their properties.

Analysis Results

Address Class: -
Binary Representation: -
Network Type: -
Reserved Address: -

Subnetting Calculator

Calculate subnet details for a given network address and subnet mask.

/24 255.255.255.0

Subnet Calculation Results

Network Address: -
Broadcast Address: -
Usable Host Range: -
Total Hosts: -
Usable Hosts: -

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

  1. Title Page: Experiment title, your name, date, course information
  2. Abstract: Brief summary of objectives, methods, and key findings (100-150 words)
  3. Introduction: Background theory and objectives of the experiment
  4. Methodology: Description of procedures and tools used
  5. Results: Presentation of data, calculations, and observations
  6. Discussion: Analysis of results, comparison with theory, error analysis
  7. Conclusion: Summary of findings and lessons learned
  8. References: Sources cited in your report
  9. Appendices: Additional data, calculations, or code if applicable

Detailed Guidelines for Each Section

Introduction

Methodology

Results Presentation

Discussion

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: