Skip to content

Topology Generators

carlosmscabral edited this page Jul 21, 2013 · 9 revisions

Home | Installing | Tutorial | GUI | Node Classes | Topology Generators |Routing | Publications | Related Projects


Inside the ccn_utils directory, Mini-CCNx provides 2 automatic topology generators, namely mesh and linear.

generate_mesh.py

Run

./generate_mesh.py -h

and you'll have:

Usage: generate_mesh.py num_nodes [template_file]
Generates template_file with a full mesh topology with num_nodes
If no template_file is given, will write to default
file miniccnx.conf in the current directory.

The generate_mesh.py script will create a default Mini-CCNx configuration file with num_nodes totally connected. For example, 6 nodes in a mesh connection is something like this:

mesh

That is, each node has connections to all the other nodes in the topology.

This script does not include any FIB entries or link configurations.

generate_linear.py

Run

./generate_linear.py -h

and you'll have:

Usage: generate_linear.py num_nodes [template_file] [delay]
Generates template_file with a linear topology with num_nodes and
delay in the links (10ms, 100ms, etc).If no template_file is given,
will write to default file miniccnx.conf in the current directory.

This script will create num_nodes nodes in a linear fashion, like this:

linear

This script automatically adds FIB entries with every prefix pointing to the next node in the sequence.

Also, note that you can optionally insert delay values to the links of this topology.

Clone this wiki locally