<div>Thanks for quick and detailed reply, Alex!</div><div>š</div><div>š</div><div>16.03.2013, 03:55, "Alex Afanasyev" <alexander.afanasyev@ucla.edu>:</div><blockquote type="cite"><p>Hi Natalya,<br /><br />Metric is just a int32_t value, which can be (but not necessarily) be interpreted similar to OSPF routing metric for this prefix for this face. šThe lower value of this "metric" the more preferred the face is to route Interest towards the prefix. šFor example, BestRoute forwarding strategy picks a face with minimal "metric". šOther interpretations are possible, if you're using a customized forwarding strategy.<br /><br />Regarding metric field in topology file. šThis field basically defines how preferred a particular link is. Interpretations can vary, but the lower value, the more preferred the link is. šThe "metric" that is specified for a specific face in FIB entry ("FIB metric) is basically an aggregated sum (minimal sum) of "link metrics" to reach a specific prefix using this face. šBtw, "link metric" is uint16_t value to prevent overflow of "FIB metric".<br /><br />Let me show an simple example:<br /><br />Client ------- Router-1 -------- Producer (/prefix)<br />šš| šššššššššššššššššššššššššššššššš|<br />šš+--------- Router-2 --------------+<br /><br />If topology file specified that "link metrics" are the following:<br />Client Router-1 šš10<br />Client Router-2 šš100<br />Router-1 Producer 1<br />Router-2 Producer 1<br /><br />Then "FIB metrics" on the Client will be:<br />Face 0 (to router-1): 11<br />Face 1 (to router-2): 101<br /><br />On Router-1:<br />Face 0 (the only face): 1<br /><br />On Router-2:<br />Face 0 (the only face): also 1<br /><br />---<br />Alex<br /><br /><br />On Mar 15, 2013, at 1:38 PM, Natalya Rozhnova <<a href="mailto:natalya.rozhnova@lip6.fr">natalya.rozhnova@lip6.fr</a>> wrote:</p><blockquote>šHi Alex,<br /><br />šI'm using topologyReader to create desired network topology. Then I manually configure the FIB entries in my ns3 script like this: ndnHelper.AddRoute(c1, "/c1", r1, 1) etc.<br />šI'm just curious what is the field "metric" in 'link' section of TopologyReader and what is the difference of this parameter from metric added to my FIB entries as above?<br /><br />šThanks,<br />šNatalya<br />š_______________________________________________<br />šndnSIM mailing list<br />š<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br />š<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a></blockquote><p>š</p></blockquote>