Alexander Afanasyev | 0aa1136 | 2013-07-14 15:35:00 -0700 | [diff] [blame] | 1 | # topo-grid-3x3.txt |
| 2 | |
| 3 | # /--------\ /-\ /-\ |
| 4 | # |Consumer|<---->| |<------->| | |
| 5 | # \--------/ \-/ \-/ |
| 6 | # ^ ^ ^ |
| 7 | # | | | 1Mbps/10ms delay |
| 8 | # v v v |
| 9 | # /-\ /-\ /-\ |
| 10 | # | |<-------->| |<------->| | |
| 11 | # \-/ \-/ \-/ |
| 12 | # ^ ^ ^ |
| 13 | # | | | |
| 14 | # v v v |
| 15 | # /-\ /-\ /--------\ |
| 16 | # | |<-------->| |<---->|Producer| |
| 17 | # \-/ \-/ \--------/ |
| 18 | |
| 19 | # any empty lines and lines starting with '#' symbol is ignored |
| 20 | # |
| 21 | # The file should contain exactly two sections: router and link, each starting with the corresponding keyword |
| 22 | # |
| 23 | # router section defines topology nodes and their relative positions (e.g., to use in visualizer) |
| 24 | router |
| 25 | |
| 26 | # each line in this section represents one router and should have the following data |
| 27 | # node comment yPos xPos |
| 28 | Node0 NA 3 1 |
| 29 | Node1 NA 3 2 |
| 30 | Node2 NA 3 3 |
| 31 | Node3 NA 2 1 |
| 32 | Node4 NA 2 2 |
| 33 | Node5 NA 2 3 |
| 34 | Node6 NA 1 1 |
| 35 | Node7 NA 1 2 |
| 36 | Node8 NA 1 3 |
| 37 | # Note that `node` can be any string. It is possible to access to the node by name using Names::Find, see examples. |
| 38 | |
| 39 | # link section defines point-to-point links between nodes and characteristics of these links |
| 40 | link |
| 41 | |
| 42 | # Each line should be in the following format (only first two are required, the rest can be omitted) |
| 43 | # srcNode dstNode bandwidth metric delay queue |
| 44 | # bandwidth: link bandwidth |
| 45 | # metric: routing metric |
| 46 | # delay: link delay |
| 47 | # queue: comma-separated list, specifying class for Queue (on both sides of the link) and necessary attributes |
| 48 | # error: comma-separated list, specifying class for ErrorModel and necessary attributes |
| 49 | Node0 Node1 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 50 | Node0 Node3 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 51 | Node1 Node2 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 52 | Node1 Node4 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 53 | Node2 Node5 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 54 | Node3 Node4 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 55 | Node3 Node6 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 56 | Node4 Node5 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 57 | Node4 Node7 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 58 | Node5 Node8 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 59 | Node6 Node7 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 60 | Node7 Node8 1Mbps 1 10ms ns3::RedQueue,MeanPktSize=100 |
| 61 | |