Hi Phil,
I know that ns2 is not the optimum simulator for WSN but I already have some
WSN routing protocols implemented in ns2 and I need to implement CTP as well so
that it would be easy for me to switch among the protocols.
What is the other simulator that has the highly tuned implementation?
Regards
Islam Hegazy
From: Philip Levis
Sent: Monday, May 03, 2010 11:48 AM
To: Islam Hegazy
Cc: TinyOS help
Subject: Re: [Tinyos-help] ForwardingEngine in CTP
On May 3, 2010, at 8:57 AM, Islam Hegazy wrote:
> Hi all,
>
> I am trying to implement CTP in ns2. Now I am rewriting the code of the
> ForwardingEngine 'CtpForwardingEngineP.nc' and 'CtpP.nc' into ns2. However, I
> don't fully understand how the code flows.
> 1) What is the difference between the SendQueue and MessagePool?
> 2) Why each client has a SendQueue size of 'number of clients + forward
> counts'? What is the logic behind having a SendQueue greater than the size of
> the network (number of clients 'CLIENT_COUNT')?
> 3) In 'CtpForwardingEngineP.nc', the function 'command error_t
> Send.send[uint8_t client](message_t* msg, uint8_t len)': what does it mean
> send[uint8_t client]? Does it mean to pass the id of the client who is
> sending the packet? I understand that the code is implemented per node, so
> for example for node 10 send[10] is always called. Are my assumptions correct
> or am I missing something?
Why would you ever want to do that? You're basically throwing away a highly
tuned implementation that runs on a much better wireless simulator than ns2.
Phil=
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help