Skip to content

minired web interface

Requirements (lab VM)

Ubuntu 24.04 with the Mininet fork (2.3.1b4+edu.1), Open vSwitch, tcpdump, tshark and ethtool. For the stage 3 exercises: apt install frr dnsmasq-base nftables busybox curl (there is no need to enable the system services: minired starts its own instances inside each node).

python3 -m venv --system-site-packages ~/.venvs/minired     # sees the system mininet package
~/.venvs/minired/bin/pip install -e '.[pruebas]'
(cd gui && npm ci && npm run build)                          # or copy an already built gui/dist
sudo ~/.venvs/minired/bin/python -m minired gui              # by default listens on 127.0.0.1:8787

The command prints http://127.0.0.1:8787/#token=…: open that full address in the browser of the same machine (or through a tunnel: ssh -L 8787:127.0.0.1:8787 user@vm).

Language

The interface is available in Spanish, English and Portuguese. When opened it takes the browser's language; the selector in the top bar changes it (it reloads the page and keeps the lab). The OSI view explanations and the server messages come in the same language: the interface sends it in the X-Idioma header. In the terminal, minired gui uses the language in LANG (or MINIRED_IDIOMA).

Usage

  1. Build the network: drag PC/Switch/Router from the palette; connect by dragging from a device's green dot to another one (the port is assigned automatically). IP and gateway in the right panel.
  2. Start network. Select a PC → Open terminal (bash inside its namespace).
  3. Simulation: starts a tcpdump -Q in at each end of every link. Run ping -c 1.
  4. The yellow bar replays what was captured step by step (⏮ ◀ ▶ ⏭, speed, filter). The branches of a flood are shown in parallel; an observation with no correlated origin is drawn loose, with a dotted border and "?".
  5. Click an event or an envelope: layers decoded by tshark, explanation and bytes in hex.
  6. Download PCAP: PCAPng with one interface per end, direction "inbound" and the comment minired <observation> <packet> <confidence> on every frame.

Stage 3 exercises

Each one is in the Examples menu of the top bar.

Topic How to configure it in the panel What is underneath
VLAN and trunk Switch → port: access (VLAN) or 802.1Q trunk (allowed VLANs) ovs-vsctl set port … tag= / trunks= vlan_mode=trunk
Inter-VLAN Router → interface → + VLAN subinterface (r1-eth0.10) ip link add link … type vlan
Routes Router → + static route ip route, or ip route in FRR if enabled
FRR and OSPF Router → FRRouting and OSPF area 0 zebra, staticd and ospfd with private /etc/frr and /run/frr per node
DHCP, DNS, HTTP Server → Services; PC → Request IP via DHCP dnsmasq, busybox udhcpc, python3 -m http.server
NAT and ACL Router → interface → NAT inside/outside and Inbound ACL nftables table ip minired in the router's namespace

With the network running, Show state displays addresses, routes, ARP, VLANs and a switch's MAC table, show ip route and OSPF neighbors, nftables rules with counters and DHCP leases. In the terminal: vtysh on a router with FRR and renovar-dhcp on a PC with DHCP.

Differences from Cisco worth explaining: FRR is not IOS (similar syntax, not identical); the ACL applies to what enters the interface with an implicit deny any at the end, but the syntax is nftables'; a trunk carries only the allowed VLANs, all tagged (no native VLAN); NAT is PAT (masquerade) on the outside interface.

Isolation: each node has its own resolv.conf; FRR uses private folders mounted only in the router's namespace (the system FRR is not touched); nftables rules live in the router's namespace. When the network stops, every process left in the lab namespaces is terminated.

Packet Tracer–style tools

In the palette, above the devices (Esc goes back to Select):

Tool Usage
↖ Select Select, move, connect, selection rectangle.
✉ Simple PDU Click the source device and then the destination: it is added to the scenario (bottom right) and, with the network started, a real ping is sent. The destination IP is resolved live (including one handed out by DHCP). Each PDU can be fired again; it shows Successful or Failed and the time. With the simulation on, its packets are shown step by step.
✉⚙ Complex PDU Like the simple one, but choosing the destination opens a dialog: ICMP (TTL, size, count), TCP or UDP to a port (suggested: 80 HTTP, 53 DNS and two closed ones). The traffic is real and leaves from the source: TCP shows SYN-ACK (Successful), RST or nothing (filtered); UDP, the response or the ICMP "port unreachable"; with a small TTL, which router dropped it. The scenario shows the type (TCP 80, ICMP · TTL 1) and the explanation of the result.
🔍 Inspect Click a device (network started): a switch's MAC table, ARP and routing tables of PCs, servers and routers, read at that moment.
📝 Note Click the canvas: a text note (tasks). It is edited in the right panel.

Link lights: with the network running, each cable end shows the real state of its interface (green up, red down; amber while the network starts). It also reflects what is done in the terminal, for example ip link set dev pc1-eth0 down.

Power on and off (network started): the ⏻ button in any device's panel, a switch included. Powered off, all its interfaces are down: the lights at both ends of its cables turn red, the device turns gray, it neither sends nor receives PDUs and it opens no terminal or Desktop. When powered on its interfaces come up (except those of a link brought down by hand) and it starts with no ARP or MAC table, as if just switched on. The saved design does not change.

Desktop (PCs and servers, network started): IP Configuration (static or DHCP, applied live; by default it is also saved in the design), Command Prompt (the terminal) and Web Browser (requests the page over HTTP from the PC and shows it without scripts).

Scenario PDUs and notes are saved in the lab JSON (pdus, notas). A complex PDU adds protocolo, puerto, ttl, tamano and cantidad.

Tests

~/.venvs/minired/bin/python -m pytest                 # without root (the root test is skipped)
(cd gui && npm test)                                  # playback logic and translation catalogs
sudo ~/.venvs/minired/bin/python -m pytest -m root    # in the VM: Mininet, OVS, tcpdump, tshark, FRR, dnsmasq, nft

Security

Only 127.0.0.1 by default (hosted mode: see Installation); validated Host (DNS rebinding); token in Authorization: Bearer for REST and as the token.<token> subprotocol on WebSockets; mandatory Origin on WebSockets; no CORS; strict CSP. The terminal is a root shell inside the node's namespace: designed for one VM per student.