[ns] Reg Dynamic Power adjustment in Ns2
Hi, I am working on a geographic energy efficient forwarding(routing) cross layer approach for WSN as per 802.15.4 MAC/PHY standard.I have a requirement to simulate using discrete power levels in ns2 where nodes will be configured with default power level.An on-demand requirement for node to transmit the data, it will broadcast at default power level to find the forwarding neighbors, if no neighbors reply within a timer value, then it has to dynamically adapt its transmission power and retransmit to find any forwarding node replying to it.Please provide me with some pointers how to handle this dynamic adjustments of power value. What files need to changed in PHY layer in ns2? How to track the Pt_ variable in my Routing code? Any sample code/pseudocode to explain this would be of immense help!! Thanks,Jayavignesh The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/
[ns] In which layer , packets aggregation from different nodes can done in wireless networks
You CAN (be able to) update any layer in NS-2. But for me this must be an APP. You may (choice) create a new APP and load in each node. Pass an information (variable) to each node in your new APP to inform if it's a regular node, a sink or a collector. Good luck. Sidney Doria UFCG / BRAZIL 2010/1/13 Jyotirmoy Karjee : > > Dear All, > > i have some doubt in simulation point of view(say ns2) > > suppose i have wireless topology , where many nodes(say n1 ,n2.nn) > collects data packets and aggregate all the data in a single aggregation > node (say Agg.Node)and finally passes the data in the sink node. > > My question is in which layer (whether in mac layer, network layer or > Application layer), I can update the simulation code( ns2) for packets > aggregation in Agg.node for wireless networks . > > > > with regards > Jyotirmoy > -- Sidney Doria Redes ad hoc móveis Doutorado em Computação UFCG Brasil "Nessa jornada, o conhecimento será o seu escudo..." (Mestre dos Magos no episódio do grimoire de ouro)
Re: [ns] How to send, reliably, a real payload on MANET and prevent ns2 from dropping application 's packets ?!!!!!!!
The abstraction of Packet have a (unused) pointer to a possible payload (APPDATA). You may allocate memory and put the real data structure there. I suggest you use a header variable in the packet (you must create a new packet type for this) to bring the pointer to the real data payload), or something like that. So the packet will "carry" the payload with it. Sidney Doria UFCG / BRAZIL 2010/1/14 adel belkhiri : > > > > > > > > > > > Hi dear ns-users, > > As I know, the NS-2 Transport API to Application layer does not provide > a payload transfer. In NS, Transport only tells to the application: "hey, > there is a packet with > nbytes that has arrived". But no data is transfered to the app. I want to > simulate an application > (Certification authority) attitude over Manet network and I need the payload > of this application > to be sent through TCP to simulate well my application's behavior. How can do > this please ?! Are > there a transport protocol (a variant of TCP for example) which can make a > reliable tranfer of a > "real payload" ?! or are there a way to prevent ns2 from dropping my > application 's packets even > without using a transport protocol ? > > Thank you very much for answering my question. > > > with regards, > Adel Belkhiri. > > _ > Keep your friends updated—even when you’re not signed in. > http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010 -- Sidney Doria Redes ad hoc móveis Doutorado em Computação UFCG Brasil "Nessa jornada, o conhecimento será o seu escudo..." (Mestre dos Magos no episódio do grimoire de ouro)