Klaus Schneider | 3878430 | 2019-08-31 18:26:36 -0700 | [diff] [blame] | 1 | # 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) |
| 6 | router |
| 7 | |
| 8 | # each line in this section represents one router and should have the following data |
| 9 | # node comment yPos xPos |
| 10 | |
| 11 | router0 NA 0 1 |
| 12 | router1 NA 1 1 |
| 13 | router2 NA 1 2 |
| 14 | router3 NA 1 3 |
| 15 | router4 NA 1 4 |
| 16 | router5 NA 1 4 |
| 17 | router6 NA 1 4 |
| 18 | router7 NA 1 4 |
| 19 | router8 NA 2 1 |
| 20 | router9 NA 2 1 |
| 21 | producer 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 |
| 26 | link |
| 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 | |
| 38 | router0 router1 100Mbps 71 5ms |
| 39 | router0 router2 100Mbps 20 5ms |
| 40 | |
| 41 | router1 producer 100Mbps 16 5ms |
| 42 | |
| 43 | router2 router9 100Mbps 54 5ms |
| 44 | |
| 45 | router3 router4 100Mbps 71 5ms |
| 46 | router3 router6 100Mbps 102 5ms |
| 47 | |
| 48 | router4 router5 100Mbps 31 5ms |
| 49 | router4 router6 100Mbps 93 5ms |
| 50 | |
| 51 | router5 router8 10Mbps 137 5ms |
| 52 | |
| 53 | router6 router7 100Mbps 55 5ms |
| 54 | |
| 55 | router7 router8 10Mbps 65 5ms |
| 56 | router7 producer 10Mbps 45 5ms |
| 57 | |
| 58 | router8 router9 10Mbps 70 5ms |
| 59 | |
| 60 | router9 producer 10Mbps 43 5ms |