617  Hands-On Networking Labs

617.1 Learning Objectives

By the end of this chapter, you will be able to:

  • Build network simulators using ESP32 and Wokwi
  • Measure network performance including latency, throughput, and packet loss
  • Implement basic packet protocols with sequence numbers and acknowledgments
  • Debug network issues using simulation tools

617.2 Overview

These hands-on labs provide practical experience with fundamental networking concepts using the Wokwi ESP32 simulator. Each lab includes circuit diagrams, complete code, and challenge exercises to deepen your understanding.

617.3 Lab Chapters

This module is divided into focused lab chapters:

Lab Description Time Difficulty
Network Performance Measurement Measure bandwidth, throughput, latency, jitter, and congestion using LED indicators ~30 min Intermediate
Packet Simulator Build packets with headers, payloads, and checksums; visualize transmission states ~30 min Intermediate

617.5 Quick Start Guide

617.5.1 Prerequisites

Before starting these labs, ensure you have:

  1. Basic understanding of networking concepts (covered in Networking Basics)
  2. Familiarity with ESP32 and Arduino programming
  3. Access to the Wokwi online simulator (no installation needed)

617.6 Key Concepts Covered

617.6.1 Performance Measurement Lab

Concept Description
Bandwidth Maximum theoretical data rate (bits/second)
Throughput Actual measured data rate achieved
Latency Time for data to travel source to destination
Jitter Variation in latency over time
Goodput Application-layer useful data rate
Congestion Network overload causing delays and losses

617.6.2 Packet Simulator Lab

Concept Description
Packet Header Metadata: version, type, length, sequence
Payload The actual data being transmitted
Checksum Mathematical verification for data integrity
ACK/NACK Acknowledgment protocols for reliability
Sequence Numbers Ordering and duplicate detection

617.7 Summary

These hands-on labs provide practical experience with:

  • Network performance measurement (latency, throughput, jitter)
  • Packet simulation with headers, sequence numbers, and checksums
  • Real-world challenges like packet loss and congestion

617.8 What’s Next

After completing the labs, continue to the Packet Journey Game for an interactive learning experience that ties together all networking concepts through gamified adventure.