Spyridon Mastorakis | 77b6366 | 2014-11-25 19:22:51 -0800 | [diff] [blame] | 1 | # topo-load-balancer.txt |
| 2 | |
| 3 | # |
Alexander Afanasyev | afe47fe | 2015-01-06 18:29:39 -0800 | [diff] [blame] | 4 | # /-----\ |
| 5 | # | CSU | |
| 6 | # +-----> | HUB | <----+ |
| 7 | # | \-----/ | |
Spyridon Mastorakis | 77b6366 | 2014-11-25 19:22:51 -0800 | [diff] [blame] | 8 | # | | 1Mbps/10ms delay |
| 9 | # v v |
Alexander Afanasyev | afe47fe | 2015-01-06 18:29:39 -0800 | [diff] [blame] | 10 | # /------\ /----------\ |
| 11 | # | UCLA | | Consumer | |
| 12 | # | HUB | | CSU-1 | |
| 13 | # +-----> \------/ <-----+ \----------/ |
| 14 | # | | |
| 15 | # | | |
| 16 | # v v |
| 17 | # /----------\ /----------\ |
| 18 | # | Producer | | Producer | |
| 19 | # | UCLA-1 | | UCLA-2 | |
| 20 | # \----------/ \----------/ |
Spyridon Mastorakis | 77b6366 | 2014-11-25 19:22:51 -0800 | [diff] [blame] | 21 | # |
| 22 | |
| 23 | # any empty lines and lines starting with '#' symbol is ignored |
| 24 | # |
| 25 | # The file should contain exactly two sections: router and link, each starting with the corresponding keyword |
| 26 | # |
| 27 | # router section defines topology nodes and their relative positions (e.g., to use in visualizer) |
| 28 | router |
| 29 | |
| 30 | # each line in this section represents one router and should have the following data |
| 31 | # node comment yPos xPos |
| 32 | CSU-1 NA 3 5 |
| 33 | CSU-HUB NA 5 3 |
| 34 | UCLA-HUB NA 3 1 |
| 35 | UCLA-1 NA 0 0 |
| 36 | UCLA-2 NA 0 2 |
| 37 | |
| 38 | # Note that `node` can be any string. It is possible to access to the node by name using Names::Find, see examples. |
| 39 | |
| 40 | # link section defines point-to-point links between nodes and characteristics of these links |
| 41 | link |
| 42 | |
| 43 | # Each line should be in the following format (only first two are required, the rest can be omitted) |
| 44 | # srcNode dstNode bandwidth metric delay queue |
| 45 | # bandwidth: link bandwidth |
| 46 | # metric: routing metric |
| 47 | # delay: link delay |
| 48 | # queue: MaxPackets for transmission queue on the link (both directions) |
| 49 | CSU-1 CSU-HUB 1Mbps 1 10ms 10 |
| 50 | CSU-HUB UCLA-HUB 1Mbps 1 10ms 10 |
| 51 | UCLA-HUB UCLA-1 1Mbps 1 10ms 10 |
| 52 | UCLA-HUB UCLA-2 1Mbps 1 10ms 10 |