How it works¶
Pieces¶
browser (React + React Flow + xterm.js)
│ REST + WebSocket (token; 127.0.0.1 or hosted mode)
▼
FastAPI server ──► controller ──► worker (one thread that owns the Mininet network)
│ │
│ ├─ namespaces, veth, Open vSwitch
│ ├─ FRR, dnsmasq, nftables, HTTP per device
│ └─ bash terminal over a PTY in each namespace
▼
capture session: tcpdump -Q in at each end
│
▼
correlator ──► interpreter (OSI view) ──► live events
- A single thread drives the network. Mininet is not thread-safe: every action that changes the network goes through a worker. Frequent reads (link lights, inspector tables) bypass that queue.
- Per-device isolation. Each router with FRR has its private
/etc/frrand/run/frr, mounted only in its namespace; each PC has itsresolv.conf; nftables rules live in the router's namespace. When the network stops, every process left in the lab namespaces is terminated. - Three languages. Texts are written in Spanish and translated through catalogs indexed by the Spanish text, both in the interface and in the server (which generates the OSI view explanations in the language each request asks for). Tests fail if a text is left untranslated.
Capture: one hop, one observation¶
Each end of each cable runs tcpdump -Q in: only what enters that interface. So every frame that
crosses a cable shows up once, at the device that receives it. The correlator joins those
observations into a graph (who sent what to whom) with a 300 ms watermark, and gives each hop its
confidence level (high, medium when crossing a router, low when crossing a NAT).
When the capture starts and stops, a snapshot of each device's state is taken (routes, addresses, ARP neighbors and each switch's MAC table). The interpreter uses those snapshots, the lab configuration and what was observed to explain each decision, always stating the source.
Why not emulate¶
Emulating protocols would allow "pausing before sending", but it forces you to keep two truths: what the animation says and what Linux does. When they diverge (ARP re-checks, NAT with conntrack, OSPF timers), the student stops trusting both. minired chose to show only what happened, interpreted.
Tests¶
- Without root: model, server (with a fake network that replays real recorded captures), correlator, interpreter and translation catalogs.
- With root, in a VM: every exercise on a real Mininet network, also checking that nothing is left behind (interfaces, processes, namespaces).
- End to end: Playwright drives the interface against a real server, in Spanish, English and Portuguese.