Brite生成网络拓扑

Brite的下载与安装

见官网:http://www.cs.bu.edu/brite
与github:https://github.com/unly/brite
官网与github上都有详细的下载安装步骤,注意系统需要java环境。
目前Brite有C++和Java两种版本,但是C++版本不支持可视化界面,我这里用的是java版本。

Brite生成拓扑

Brite可生成的拓扑类型(Topology Type)有以下四种:

  • 1 Level:AS ONLY
  • 1 Level:ROUTER(IP) ONLY
  • 2 Level:TOP-DOWN
  • 2 Level:BOTTOM-UP
    我们以 1 Level:AS ONLY为例,界面如下:


    image.png

    在下方的参数设置里,我们主要来看看主要的几个参数:

  • HS:表示拓扑平面一侧的大小
  • LS:表示拓扑平面一侧对应面积的大小
  • N:表示节点数,其中N < HS * LS
  • Model:模型
    其他参数选择默认即可,按需要去更改,其他参数如下:


    image.png

    这里我们设置HS为100,N为100,LS为10,Model为Waxman。
    在location那输入导出的文件名,输入test,后面的Browse可以选择存储路径,选择Formats为BRITE。


    image.png

    然后点击Build Topology:
    image.png

    最后看一下路径下已经有了一个test.brite了:
    image.png

    cat一下这个文件看看:
    node节点部分信息:


    image.png

    节点格式(从左至右):
  • 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

你可能感兴趣的:(Brite生成网络拓扑)