blob: 499929ab33bc8499bb020fe6fa6baf45e3bff3d6 [file] [log] [blame]
Klaus Schneider38784302019-08-31 18:26:36 -07001# any empty lines and lines starting with '#' symbol are ignored
2#
3# The file should contain exactly two sections: router and link, each starting with the corresponding keyword
4#
5# router section defines topology nodes and their relative positions (e.g., to use in visualizer)
6router
7
8# each line in this section represents one router and should have the following data
9# node comment yPos xPos
10
11router0 NA 0 1
12router1 NA 1 1
13router2 NA 1 2
14router3 NA 1 3
15router4 NA 1 4
16router5 NA 1 4
17router6 NA 1 4
18router7 NA 1 4
19router8 NA 2 1
20router9 NA 2 1
21producer NA 2 1
22
23# Note that `node` can be any string. It is possible to access to the node by name using Names::Find, see examples.
24
25# link section defines point-to-point links between nodes and characteristics of these links
26link
27
28# Each line should be in the following format (only first two are required, the rest can be omitted)
29# srcNode dstNode bandwidth metric delay queue
30# bandwidth: link bandwidth
31# metric: routing metric // Set real routing metrics inside simulation file!
32# delay: link delay
33# queue: MaxPackets for transmission queue on the link (both directions)
34
35
36# label LinkType LinkLabel LinkNote cost
37
38router0 router1 100Mbps 71 5ms
39router0 router2 100Mbps 20 5ms
40
41router1 producer 100Mbps 16 5ms
42
43router2 router9 100Mbps 54 5ms
44
45router3 router4 100Mbps 71 5ms
46router3 router6 100Mbps 102 5ms
47
48router4 router5 100Mbps 31 5ms
49router4 router6 100Mbps 93 5ms
50
51router5 router8 10Mbps 137 5ms
52
53router6 router7 100Mbps 55 5ms
54
55router7 router8 10Mbps 65 5ms
56router7 producer 10Mbps 45 5ms
57
58router8 router9 10Mbps 70 5ms
59
60router9 producer 10Mbps 43 5ms