<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello everyone,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I was trying to modify fib-entry.cpp and i ended up only modifying this </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div style="font: 400 13px/1 monospace, fixed; min-height: 13px; overflow-wrap: break-word; text-indent: -53px; padding-left: 53px; margin: 0px; transition-property: background-color, box-shadow; transition-duration: 0.5s">
<span style="color: rgb(96, 64, 32)">void</span></div>
<div style="font: 400 13px/1 monospace, fixed; min-height: 13px; overflow-wrap: break-word; text-indent: -53px; padding-left: 53px; margin: 0px; transition-property: background-color, box-shadow; transition-duration: 0.5s">
<a style="color: rgb(145, 165, 1); font-weight: bold"></a><span style="padding-right: 4px; text-align: right; border-right: 2px solid rgb(0, 255, 0); background-color: rgb(232, 232, 232)">   77</span> Entry::sortNextHops()</div>
<div style="font: 400 13px/1 monospace, fixed; min-height: 13px; overflow-wrap: break-word; text-indent: -53px; padding-left: 53px; margin: 0px; transition-property: background-color, box-shadow; transition-duration: 0.5s">
<a style="color: rgb(145, 165, 1); font-weight: bold"></a><span style="padding-right: 4px; text-align: right; border-right: 2px solid rgb(0, 255, 0); background-color: rgb(232, 232, 232)">   78</span> {</div>
<div style="font: 400 13px/1 monospace, fixed; min-height: 13px; overflow-wrap: break-word; text-indent: -53px; padding-left: 53px; margin: 0px; transition-property: background-color, box-shadow; transition-duration: 0.5s">
<a style="color: rgb(145, 165, 1); font-weight: bold"></a><span style="padding-right: 4px; text-align: right; border-right: 2px solid rgb(0, 255, 0); background-color: rgb(232, 232, 232)">   79</span>  std::sort(m_nextHops.begin(), m_nextHops.end(),</div>
<div style="font: 400 13px/1 monospace, fixed; min-height: 13px; overflow-wrap: break-word; text-indent: -53px; padding-left: 53px; margin: 0px; transition-property: background-color, box-shadow; transition-duration: 0.5s">
<a style="color: rgb(145, 165, 1); font-weight: bold"></a><span style="padding-right: 4px; text-align: right; border-right: 2px solid rgb(0, 255, 0); background-color: rgb(232, 232, 232)">   80</span>  [] (<span style="color: rgb(0, 128, 0)">const</span>
<a href="https://ndnsim.net/2.0/doxygen/classnfd_1_1fib_1_1NextHop.html" style="color: rgb(70, 101, 162); font-weight: bold">
NextHop</a>& a, <span style="color: rgb(0, 128, 0)">const</span> <a href="https://ndnsim.net/2.0/doxygen/classnfd_1_1fib_1_1NextHop.html" style="color: rgb(70, 101, 162); font-weight: bold">
NextHop</a>& b) { <span style="color: rgb(224, 128, 0)">return</span> a.<a href="https://ndnsim.net/2.0/doxygen/classnfd_1_1fib_1_1NextHop.html#adc2961b0ddd341510bf4e49f93b4cf5b" style="color: rgb(70, 101, 162); font-weight: bold">getCost</a>() < b.getCost();
 });</div>
<div style="font: 400 13px/1 monospace, fixed; min-height: 13px; overflow-wrap: break-word; text-indent: -53px; padding-left: 53px; margin: 0px; transition-property: background-color, box-shadow; transition-duration: 0.5s">
<a style="color: rgb(145, 165, 1); font-weight: bold"></a><span style="padding-right: 4px; text-align: right; border-right: 2px solid rgb(0, 255, 0); background-color: rgb(232, 232, 232)">   81</span> }</div>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt;">by replacing the "<" by ">",  i used best route as a strategy and changed the metric of the manual fib entry to a higher value (100), when i ran this scenario
 and analyzed the trace file i found better RTT results than with same fib entries with a metric equal to 1, the latency is decreased by only changing this. Can anyone, please explain to me what does this line do exactly ? and why is it producing better resulats
 ? thank you in advance.</span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Kind regards.</div>
</body>
</html>