Brite的下載與安裝
見(jiàn)官網(wǎng):http://www.cs.bu.edu/brite
與github:https://github.com/unly/brite
官網(wǎng)與github上都有詳細(xì)的下載安裝步驟,注意系統(tǒng)需要java環(huán)境佃牛。
目前Brite有C++和Java兩種版本,但是C++版本不支持可視化界面,我這里用的是java版本张遭。
Brite生成拓?fù)?/h3>
Brite可生成的拓?fù)漕愋停═opology Type)有以下四種:
- 1 Level:AS ONLY
- 1 Level:ROUTER(IP) ONLY
- 2 Level:TOP-DOWN
-
2 Level:BOTTOM-UP
我們以 1 Level:AS ONLY為例喂江,界面如下:
image.png
在下方的參數(shù)設(shè)置里琅翻,我們主要來(lái)看看主要的幾個(gè)參數(shù):
- HS:表示拓?fù)淦矫嬉粋?cè)的大小
- LS:表示拓?fù)淦矫嬉粋?cè)對(duì)應(yīng)面積的大小
- N:表示節(jié)點(diǎn)數(shù),其中N < HS * LS
-
Model:模型
其他參數(shù)選擇默認(rèn)即可窃躲,按需要去更改,其他參數(shù)如下:
image.png
這里我們?cè)O(shè)置HS為100钦睡,N為100蒂窒,LS為10,Model為Waxman荞怒。
在location那輸入導(dǎo)出的文件名洒琢,輸入test,后面的Browse可以選擇存儲(chǔ)路徑挣输,選擇Formats為BRITE纬凤。
image.png
然后點(diǎn)擊Build Topology:
image.png
最后看一下路徑下已經(jīng)有了一個(gè)test.brite了:
image.png
cat一下這個(gè)文件看看:
node節(jié)點(diǎn)部分信息:
image.png
節(jié)點(diǎn)格式(從左至右): - NodeId:Unique id for each node
- xpos:x-axis coordinate in the plane
- ypos:y-axis coordinate in the plane
- indegree:Indegree of the node
- outdegree:Outdegree of the node
- ASid: id of the AS this node belongs to (if hierarchical)
- type:Type assigned to the node (e.g. router, AS)
邊部分信息:
image.png
邊格式(從左至右):
- EdgeId:Unique id for each edge
- from:node id of source
- to:node id of destination
- length:Euclidean length
- delay:propagation delay
- bandwidth:bandwidth (assigned by AssignBW method)
- ASfrom:if hierarchical topology, AS id of source node
- ASto:if hierarchical topology, AS id of destination node
- type:Type assigned to the edge by classification routine