Download your favorite Linux distribution at LQ ISO.
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 04-14-2012, 09:01 AM   #1
LQ Newbie
Registered: Mar 2012
Posts: 8

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

Hello everyone,

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!

Kind regards,


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
adding new protocol to ns2 savankiran Programming 3 03-22-2017 01:39 PM
Leach Protocol for ns2.34 pushpita Linux - Software 36 07-08-2013 04:06 AM
protocol used in ns2 simulator keerthanagupta Linux - Newbie 0 01-23-2012 01:06 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 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 06:20 AM.

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