LinuxQuestions.org
Visit Jeremy's Blog.
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 12-05-2012, 06:39 AM   #1
nencarnacion
LQ Newbie
 
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
Activating Sleep Cycles in SMAC disables sending data


Hello everyone! I am a researcher and I am new to using ns2.35 for my simulations. For my current research, I am trying to simulate energy harvesting in SMAC during the sleep periods of the nodes. I have implemented a simple energy harvesting algorithm in the energy module of ns2.

My TCL file can be found here: http://pastebin.com/33GuWhma

My problem is that every time I set the syncFlag_ of SMAC in the TCL file to 1 (which activates periodic sleep):

Mac/SMAC set syncFlag_ 1
Mac/SMAC set dutyCycle 10


..the nodes do not send data. Network throughput is ZERO.

But when I turn periodic sleep off (Mac/SMAC set syncFlag_ 0, without changing other parameters in the TCL file), data delivery ratio is 100%. So, basically, whenever I activate sleep periods, I get my energy harvesting algorithm to work BUT no data delivered. When I turn off periodic sleep,my energy harvesting algorithm won't work BUT data delivery is 100%.

Can you guys tell me what's happening here? I need both energy harvesting/periodic sleep and data delivery to work.

My TCL file can be found here: http://pastebin.com/33GuWhma
 
  


Reply


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
sending data to server? Mr.mick-duck Linux - Server 4 07-08-2009 09:29 AM
Sending data to a command using C gregorian Programming 24 06-30-2007 08:07 AM
Laptop keeps sending data every second? mikegorb Linux - Newbie 6 11-16-2004 05:54 AM
Sending data from one server to the other ganninu Linux - General 6 12-10-2003 06:06 AM
Sending data over ppp shibdas Linux - Networking 0 06-26-2003 12:40 PM

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

All times are GMT -5. The time now is 03:45 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration