【问题标题】:in ns2 ospf what does 'mt' mean in most code在 ns2 ospf 中,“mt”在大多数代码中是什么意思
【发布时间】:2018-07-10 00:51:57
【问题描述】:

在 ns2 中 ospf 的原始代码中,'mt' 是什么意思?这是否意味着路径中的任何中间节点? Or表示多拓扑,即包含所有中间节点。

例如:ospf.cc

OspfPaths::iterator OspfPaths::insertPath(int destId, int mtid, int cost, int nextHop) 

【问题讨论】:

    标签: ns2 ospf mt


    【解决方案1】:

    请阅读 ospf.h 中的描述...

    71  //**********************************************************************************
    72  // MTLink: representing MultiTopology id and metric attached to a link
    73  //**********************************************************************************
    
    78      int mtId_; // MultiTopology id
    
    90  //**********************************************************************************
    91  // MTLinkList: List of MTLink attached to a link
    92  //**********************************************************************************
    
    111     MTLinkList MTLinkList_; //MT id's and metrics attached to the link
    
    292     int mtId_; // multiTopology id
    372     // lookup the path's cost for the destId and Mtid
    385     // lookup next hop list for the destId and Mtid
    439     // insert next hop list for destId and mtid
    463     // returns the iterator for the less cost path for mtid
    1084        // returns the path for destId and Mtid
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-28
      • 1970-01-01
      • 2023-03-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多