LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-30-2014, 07:42 AM   #1
pon
Member
 
Registered: Aug 2014
Posts: 77

Rep: Reputation: Disabled
Smile How to set a node as idle for some time in ns2


Hi guys,

It is very important to me,

in ns2 simulation , i am running aodv protocol in ns 2.35.
In that i need to make some nodes as idle(sleeping) for some time.
say i am transmitting packets from source node node_(0) to node_(10) via node_(5)
for t=10s to 20s i need to set node_(5) as idle , after that time t=20s, it should be involved in transmission

i need to set node as idle for some time

Thanks in advance dear all,

Pon

Your ideas are more valuable to me!!!!
 
Old 08-30-2014, 08:25 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Google .. ns2 node sleep ..
https://www.google.com/webhp?hl=all&...ns2+node+sleep

Examples
. http://getch.wordpress.com/2011/02/0...ically-in-ns2/
. http://www.ee.washington.edu/researc...nergy-model.cc
. https://www.usenix.org/legacy/event/...edevschi_html/

Google .. ns2 set a node as idle ..
https://www.google.com/webhp?hl=all&...a+node+as+idle

-
 
Old 08-30-2014, 09:21 AM   #3
pon
Member
 
Registered: Aug 2014
Posts: 77

Original Poster
Rep: Reputation: Disabled
Hi Knudfl,


Thanks Mr.Knudfl now i can see initial energy and residual energy in trace file, but how could i call this residual energy into my Tcl script, how can i set node idle, still not getting?. i am also seeking through all web-links, not yet find.

Thanks

-Pon..
 
Old 08-31-2014, 10:08 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
More examples ..
. http://network-simulator-ns-2.7690.n...te-td1797.html

Google .. ns2 node sleep aodv ..
https://www.google.com/webhp?hl=all&...+aodv&start=10
. http://arxiv.org/pdf/1107.3630.pdf

$ cd ns-allinone-2.xx/ns-2.xx/tcl/ex/
$ grep -Rin idle *.tcl
-
Attached Files
File Type: txt grep_-Rin__idle.txt (1.7 KB, 127 views)

Last edited by knudfl; 08-31-2014 at 12:14 PM.
 
Old 10-19-2015, 01:35 AM   #5
anaccna
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Rep: Reputation: Disabled
I am also working on node enrgy model where i set up energy model which tells me node energy and position but i want that if node enrgy becomde perticular threshold then it goes to sleep mode.

How to code this situation please tell me the code.
 
  


Reply

Tags
idle node ns2, ns2, ns2-idle, protocol-ns2



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
NS2: How to set idle(sleeping) time to a node in wireless network in ns2 pon Linux - Newbie 0 08-19-2014 06:45 PM
NS2.33 LTE patched, TCP on mobile node, why rate is only half of it's max rate I set? sfsfajri Linux - Software 0 06-22-2014 02:45 PM
the moving direction of the node of ns2 edison_0927 Linux - Newbie 0 08-13-2012 03:41 AM
how to understand user time, sys time, wait time, idle time of CPU guixingyi Linux - Server 1 08-24-2010 10:10 AM
how to find a cluster node is idle ? ponna85 Linux - Newbie 2 01-23-2009 06:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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