%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#E67E22', 'secondaryColor': '#16A085', 'tertiaryColor': '#E8F6F3', 'fontSize': '14px'}}}%%
graph LR
A["Performance<br/>Measurement Lab"] --> B["Packet<br/>Simulator Lab"]
B --> C["Packet Journey<br/>Game"]
style A fill:#2C3E50,stroke:#16A085,color:#fff
style B fill:#16A085,stroke:#2C3E50,color:#fff
style C fill:#E67E22,stroke:#2C3E50,color:#fff
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.4 Visual Reference Gallery
The following AI-generated diagrams provide additional perspectives on networking concepts covered in these labs.
617.4.1 Network Fundamentals
617.4.2 Data Transmission
617.4.3 Throughput Analysis
617.5 Quick Start Guide
617.5.1 Prerequisites
Before starting these labs, ensure you have:
- Basic understanding of networking concepts (covered in Networking Basics)
- Familiarity with ESP32 and Arduino programming
- Access to the Wokwi online simulator (no installation needed)
617.5.2 Recommended Learning Path
{fig-alt=“Learning path diagram showing progression from Network Performance Measurement Lab to Packet Simulator Lab to Packet Journey Game”}
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.