blob: 15cee4ca7cb8c081f647f1d19a7423c219aa5996 [file] [log] [blame]
Spyridon Mastorakis77b63662014-11-25 19:22:51 -08001# topo-load-balancer.txt
2
3#
Alexander Afanasyevafe47fe2015-01-06 18:29:39 -08004# /-----\
5# | CSU |
6# +-----> | HUB | <----+
7# | \-----/ |
Spyridon Mastorakis77b63662014-11-25 19:22:51 -08008# | | 1Mbps/10ms delay
9# v v
Alexander Afanasyevafe47fe2015-01-06 18:29:39 -080010# /------\ /----------\
11# | UCLA | | Consumer |
12# | HUB | | CSU-1 |
13# +-----> \------/ <-----+ \----------/
14# | |
15# | |
16# v v
17# /----------\ /----------\
18# | Producer | | Producer |
19# | UCLA-1 | | UCLA-2 |
20# \----------/ \----------/
Spyridon Mastorakis77b63662014-11-25 19:22:51 -080021#
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)
28router
29
30# each line in this section represents one router and should have the following data
31# node comment yPos xPos
32CSU-1 NA 3 5
33CSU-HUB NA 5 3
34UCLA-HUB NA 3 1
35UCLA-1 NA 0 0
36UCLA-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
41link
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)
49CSU-1 CSU-HUB 1Mbps 1 10ms 10
50CSU-HUB UCLA-HUB 1Mbps 1 10ms 10
51UCLA-HUB UCLA-1 1Mbps 1 10ms 10
52UCLA-HUB UCLA-2 1Mbps 1 10ms 10