Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-01-2015, 05:41 PM   #1
LQ Newbie
Registered: Dec 2014
Posts: 1

Rep: Reputation: Disabled
Willingnes parameter change in the protocol OLSR NS2


It's my first post,please bear with us.I write thesis "The concept of using energy metrics for route selection in OLSR routing protocol". I use the simulator ns2, and UM-OLSR patch. In tlc script I use "Energy model". How and where(in code, or tcl cript) I can change parameter "willingness" during simulation to take into account the level of battery.


if (battery < 1.0) && (battery > 0.8)
{willingnes = WILL_ALWAYS};
else if (battery < 0.8) && (battery > 0.4)
{willingnes = WILL_DEFAULT};
else if (battery < 0.4) && (battery > 0.2)
{willingnes = WILL_LOW};
else if (battery < 0.2)
{willingnes = WILL_NEVER};
Old 10-29-2023, 02:25 PM   #2
LQ Newbie
Registered: Jul 2023
Posts: 12

Rep: Reputation: 0
did you get it?

did you get it?


ns2, olsr

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OLSR routing protocol trust rules kostaskar Linux - Newbie 1 09-28-2014 04:01 AM
olsr.tcl with ns2.35 Suhaila Linux - Software 6 03-10-2014 11:16 AM
Does olsr protocol can run successfully on ubuntu 12.04 Linux - Newbie 20 02-16-2014 01:33 PM
OLSR evaluation using NS2 ddebbie90 Linux - Software 0 06-19-2013 01:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 03:39 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration