LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-03-2012, 04:11 AM   #1
ulyssues.fam
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Rep: Reputation: Disabled
NS2 S-MAC Sleep Time Query


Hey all.

Since I could not work through the Z-MAC protocol on NS2 ( http://www.linuxquestions.org/questi...66#post4669166 ) I decided to work on another protocol. This time is S-MAC.

Below you will see the description of my query.

"I would appreciate some help over here. I want to modify the sleep time of the S-MAC protocol on NS2 v2.34. Any ideas which .cc or .h, or any file I need to change?

In order to give you a greater understanding of what I want to do, I will explain.
I want to change the Sleep Time of a node on S-MAC. Instead of its default sleep time function, I want to implement ADCEC (Adaptive Energy Conservation Model using Dynamic Caching for Wireless Devices), which works as follows:

The New sleep time of a node is determined by the Previous_sleep_time_duration_of_the_node Minus Previous_sleep_time_duration_of_the_node Times (Packets_cached_for_next_Send_from_the_sender_node Divided by Total_packets_destined_for_the_node_from_the_sender_node).

It might sound kind of confusing but in reality it is not.

Any help? Just need to know which file(s) I need to modify in NS-2 in order to implement this.

Thank you in advance."

Thanks guys!
 
Old 11-24-2012, 04:18 PM   #2
narendher25
LQ Newbie
 
Registered: Nov 2012
Posts: 2

Rep: Reputation: Disabled
Unhappy

Hi did you get the solution to that problem? even iam need of the logic to make a node exchange between sleep and wakeup state depending on some constarints?? Please give a reply as soon as possible
 
  


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
NS2 S-MAC Protocol Sleep Time Query ulyssues.fam Linux - Newbie 0 04-14-2012 09:01 AM
sleep & localtime query nsvora Linux - General 1 06-29-2009 11:49 PM
sleep time = sys time for pread? wqhhust Linux - Kernel 0 01-20-2009 09:08 PM
using sleep() and time() commands together in c++ totaljj Programming 1 02-14-2007 07:12 AM
how to let system to sleep at certain time? taoweijia Fedora 3 07-08-2004 04:05 AM


All times are GMT -5. The time now is 06:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration