I have seen this post and have a similar issue.
I wish to bring down a node when it reaches a certain Throughput. As mentioned in the post, the "rtmodel-at
" method does not work. The answer to the post mentions changing delays of the link at runtime. I wish to know if the link status can be brought up/down at runtime using the technique mentioned in the answer. There is a method "Link instproc down {} {}
" in ns-2.35/tcl/lib/ns-link.tcl
for this purpose.
How do I call "Link instproc down {} {}
" from the simulation script?