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 | producer 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 |
| 25 | link |
| 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 | |
| 34 | router0 router1 100Mbps 1 5ms |
| 35 | router0 router3 100Mbps 2 5ms |
| 36 | |
| 37 | router1 router2 100Mbps 3 5ms |
| 38 | router1 router4 100Mbps 4 5ms |
| 39 | |
| 40 | router2 router5 100Mbps 5 5ms |
| 41 | |
| 42 | router3 router4 100Mbps 16 5ms |
| 43 | router3 router6 100Mbps 1 5ms |
| 44 | |
| 45 | router4 router5 100Mbps 8 5ms |
| 46 | router4 router7 100Mbps 4 5ms |
| 47 | |
| 48 | router6 router7 100Mbps 5 5ms |
| 49 | |
| 50 | router5 producer 10Mbps 10 5ms |
| 51 | router7 producer 10Mbps 2 5ms |