blob: a465269e5685052eb8b389b86be2c23ba2ec31e8 [file] [log] [blame] [view]
Vince Lehmand1ee56a2015-07-14 17:21:56 -05001Mini-NDN Edit
2=============
3
4Mini-NDN Edit is a GUI program designed to simplify the creation of Mini-NDN topology
5configuration files. Mini-NDN Edit allows the user to build a topology, configure the hosts and
6links, and generate a topology file that can be used by Mini-NDN.
7
8![minindnedit](img/gui/minindnedit.png)
9
10## Working with topology files
11
12#### File formats
13
14There are two file formats used by Mini-NDN edit.
15
16* ``.mnndn`` files store topology information used by the GUI. Mini-NDN Edit can open and
17save ``.mnndn`` files.
18
19* ``.conf`` files are used by Mini-NDN to create and run topologies. Mini-NDN Edit can generate a
20``.conf`` file from a ``.mnndn`` file. Mini-NDN edit cannot open ``.conf`` files. Please see
21[CONFIG-FILE.md](CONFIG.md) for more information on the content and format of ``.conf`` files.
22
23#### File menu
24
25![file-dropdown](img/gui/file-dropdown.png)
26
27* **New** - Erase the current canvas and provide a new empty topology
28* **Open** - Open a ``.mnndn`` topology file
29* **Save** - Save the current topology as a ``.mnndn`` topology file
30* **Generate** - Convert the current topology to a ``.conf`` file runnable by Mini-NDN
31* **Run** - Run the current topology in Mini-NDN. The GUI will disappear and Mini-NDN will run on
32 the command-line.
33* **Quit** - Exit Mini-NDN edit
34
35## Tools
36
37### Cursor tool
38![cursor-tool](img/gui/cursor-tool.png)
39
40The *cursor tool* is used to select and move nodes in the topology. A selected node or link can be
41removed from the topology using the ``backspace`` key or by selecting ``edit/cut``.
42
43### Host tool
44![host-tool](img/gui/host-tool.png)
45
Vince Lehmanfbd47c92015-10-14 16:00:06 -050046The *host tool* is used to add a host node to the topology. Click on the canvas to create a new host
47node at the mouse cursor's position.
48
49### Switch tool
50![switch-tool](img/gui/switch-tool.png)
51
52The *switch tool* is used to add a switch to the topology. Click on the canvas to create a new
53switch at the mouse cursor's position.
Vince Lehmand1ee56a2015-07-14 17:21:56 -050054
55### Link tool
56![link-tool](img/gui/link-tool.png)
57
58The *link tool* is used to connect two nodes with a network link. Click on a node and drag the mouse
59cursor to another node to create a link between the two nodes.
60
61## Configuration
62
63#### Editing host information
64
65To edit a host's information and configuration, right-click on the desired node and select
66``Host Options``.
67
68The *Host Options* window will include tabs to modify the node's properties as well as the
69configuration files for NFD and NLSR on that node.
70
71*Note: Network, Site, and Router in the NLSR tab are unused in v0.1.0*
72
73![host-config](img/gui/host-config.png)
74
75#### Editing link configuration
76
77To edit a link's configuration, right-click on the desired link and select ``Link Options``.
78
79The *Link Options* window will allow configuration of the link's bandwidth, delay, and loss rate.
80
81![link-details](img/gui/link-details.png)