【发布时间】: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' 是什么意思?这是否意味着路径中的任何中间节点? Or表示多拓扑,即包含所有中间节点。
例如:ospf.cc
OspfPaths::iterator OspfPaths::insertPath(int destId, int mtid, int cost, int nextHop)
【问题讨论】:
请阅读 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
【讨论】: