<div dir="ltr"><div><div><div><div><div>Hi All,<br><br></div>i have some problem in updating the link cost:<br><br>my scenario: i have source1 connected to router 1 and after 10 sec,
source1 is disconnected from router1 and connected to router2.<br>
so when i change the <span class="">link</span> <span class="">cost</span> (from topology reader), say<br><br># srcNode dstNode bandwidth metric delay queue<br>Src1 Rtr1 5Mbps 2 250ms 400<br>
Src1 Rtr2 5Mbps 1 250ms 400<br><br><br>*what happens is that, for the first 10 sec src1 is not going through
Rtr1, which i understand why, because, the lower value of this metric,
the more preferred the face is to route Interest towards the prefix.
that's why it is choosing Rtr2,<br>
after 10 sec.<br><br>My goal is : From 0sec-10sec, i want src1 to send interest via Rtr1 then disconnect Rtr1 and connect to Rtr2.<br><br>i also saw Alex code; <a href="https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-triangle-calculate-routes.cc">https://github.com/NDN-Routing/ndnSIM/blob/master/examples/ndn-triangle-calculate-routes.cc</a><br>
<br></div>but it is not working in my case as i wanted!<br><br></div>what can i do to update the link cost, so that src1 will go through Rtr2 after 10sec.<br><br></div>Thank for you time.<br></div>Emnet Tsadiku<br>PHD student<br>
<div>University of Siena<br></div>Italy<br></div>