blob: f733388e8c9851a8b67ae85c32af9d5b5430af2e [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
19producer NA 2 1
20
21
22# Note that `node` can be any string. It is possible to access to the node by name using Names::Find, see examples.
23
24# link section defines point-to-point links between nodes and characteristics of these links
25link
26
27# Each line should be in the following format (only first two are required, the rest can be omitted)
28# srcNode dstNode bandwidth metric delay queue
29# bandwidth: link bandwidth
30# metric: routing metric // Set real routing metrics inside simulation file!
31# delay: link delay
32# queue: MaxPackets for transmission queue on the link (both directions)
33
34router0 router1 100Mbps 1 5ms
35router0 router3 100Mbps 2 5ms
36
37router1 router2 100Mbps 3 5ms
38router1 router4 100Mbps 4 5ms
39
40router2 router5 100Mbps 5 5ms
41
42router3 router4 100Mbps 16 5ms
43router3 router6 100Mbps 1 5ms
44
45router4 router5 100Mbps 8 5ms
46router4 router7 100Mbps 4 5ms
47
48router6 router7 100Mbps 5 5ms
49
50router5 producer 10Mbps 10 5ms
51router7 producer 10Mbps 2 5ms