Teaching
Marionnet, which runs on an ordinary GNU/Linux computer, was designed to teach networking in a lab room (see the Project tab), and this is indeed how its authors used it, at the University of Paris 13, from 2007 to 2024. This page is therefore meant first for the teacher: it presents the documents that help to prepare, run and grade a session, and then the lab sessions already written.
Preparing and running a session
A Marionnet project, in other words a virtual lab room, is saved in a single file with the
.mar extension, which also holds the machines’ disks. The teacher can therefore hand out
a network that is already set up, and at the end of the session each student can hand it
back in the state they left it.
The teacher’s guide goes along with the making of a lab, from writing the statement to the mark. It shows how to build the network by script rather than with the mouse, which saves rebuilding it every year, how to check it before handing it out, and then how to collect what each session produced and grade the students’ work, all with the same file of assertions (that is, the list of what must be true in the machines, checked automatically on each student’s work), hence by the same criteria. Note that it is meant for the teacher who is willing to write a few lines of shell, or to have an AI agent write them.
Why the .mar file stays small
For each disk, the file keeps only what changed from the original image, that is, mostly what the student modified during the session. Consequently, the image itself must be installed on every computer that opens the project.
What the guide assumes: scripting
Started with the --control-socket option, Marionnet accepts commands sent from a
terminal, while its window still responds to the mouse. The guide relies on these
commands, which the Scripting and AI tab introduces.
Grading: the exam mode
Started by the student with the --exam option, Marionnet records what the student does
on their virtual machines and archives it in the project file, which thus becomes their
exam paper; it also forbids the operations that would lose this paper before it is
archived. Grading can therefore rely on what actually happened in the machines, in
addition to the student’s report.
The exam mode guide describes how an exam goes, run entirely through the graphical interface, and which documents to rely on when grading. The teacher’s guide links to it, and adds grading the papers by script.
With which images
The exam mode is designed for projects whose machines run Debian 13 (trixie). With the older images, and with routers, the paper lacks the report that the machine writes when it shuts down; its history, console and terminal, on the other hand, are recorded, as the exam mode guide explains in detail.
The skill: getting help from an AI
Now that Marionnet can be driven by commands, an AI agent, that is, an assistant able to run commands on the computer and read their output, can act as a go-between for the teacher and the software, which was not possible before. The teacher tells the agent what they want, and the agent drives Marionnet accordingly: it builds the network, runs it and checks that it behaves as intended. The teacher can of course also get help from the agent to design the lab itself, but that is another matter, which does not depend on Marionnet.
A skill is a guide written for such an agent; the teacher hands it over as it is, without needing to read it. The one that comes with Marionnet is about driving only: it explains to the agent how to build a lab with commands, run it, and then collect what the students’ sessions produced, exam mode included, and apply the teacher’s correction key to it. The Scripting and AI tab explains how an agent drives Marionnet.
The file marionnet-driving-skill.md, to hand to the agent, is
a plain text file: the browser therefore shows it raw, without the site’s layout.
Where to find it on the computer
The skill is also installed with Marionnet, in the share/doc/marionnet/ directory
of its installation prefix.
The lab sessions
Session 7 (routing, filtering and source NAT) is a complete lab, in English and in French, ready to hand out, which includes the statement, the project given to the students, a solution and a correction key. It was written in 2026 on the model of the 2012 session that bears the same number (see the list below), and it is the example that the teacher’s guide works through step by step.
The ten 2012-2014 sessions, written by Jean-Vincent Loddo and published on the old site under a Creative Commons BY-SA 3.0 licence, are archived as they were, and in French only. Each takes, according to the estimate given in its statement, between one hour and two and a half hours.
- 1. Encapsulation ICMP/IP/Ethernet, ARP et fragmentationFR
- 2. Segmentation, MDI, adresses IPv4 multiples, DHCP, motivation des VLANFR
- 3. VLAN (type 1), trunking, capture 802.1QFR
- 4. Routage statique IPv4, rôle d’ICMPFR
- 5. Analyse des protocoles UDP et TCP, fiabilité et résilience de TCPFR
- 6. (DUT) Routage LAN privées/publiques, IOS Cisco (Quagga), motivation du filtrage et du NATFR
- 6. (licence pro) Routage LAN privées/publiques, IOS Cisco (Quagga), filtrageFR
- 7. Routage LAN privées/publiques, filtrage, SNAT et DNATFR
- 8. Routage LAN privées/publiques, filtrage, SNAT et DNAT par scriptFR
- 9. IPv6, routage statique et transition IPv4-IPv6FR
What “archived as they were” means
The commands, the distributions of the virtual machines and the screenshots are those of the time: for instance, the mandriva distribution that some sessions suggest is no longer provided. Note also that session 6 comes in two variants, one written for the DUT (a two-year technical degree), the other for the licence professionnelle (a one-year vocational bachelor’s degree).
Each page keeps, beside the text, the original in HTML and in PDF, and the sources of the statement; for four sessions, these sources also include the session’s Marionnet project. Everything is also in the directory of the sessions.
