From: Philip Levis <[EMAIL PROTECTED]>
To: Micfox Micfox <[EMAIL PROTECTED]>
CC: [email protected]
Subject: Re: [Tinyos-help] The multi-hop implementation related to Deluge
in Tinyos-1.x
Date: Mon, 4 Jun 2007 22:03:05 -0700
On Jun 4, 2007, at 9:01 PM, Micfox Micfox wrote:
Hi,
As Deluge is supporting multi-hop reprogramming, I wondered which
part of the code is doing the multi-hop forwarding for the newer
packets or pages.For example,
assume node A (installed with TOSBase)is attached with PC, while
node B and node C (Both installed with DelugeBasic) are deployed in
one-hop distance and two-hop distance to Node A. Node B should
forward the image to Node C, right? I searched
DelugePageTransferM.nc and can only find one place with the most
relevant line (I think) in DataRead.readDone():
if (call SendDataMsg.send(nodeAddr, sizeof(DelugeDataMsg), pMsgBuf)
== FAIL)
call Timer.start (TIMER_ONE_SHOT, DELUGE_FAILED_SEND_DELAY);
However, If I attempted to modify this line (with some intentional
bugs), instead of the forwarding malfunctioning, Ping is not
working (from PC via Node A) and freezed on "Getting data for image
[0]..." I figured the above line in Node B might send the image
to Node A rather than sending image to Node C.
The point is that if Deluge supports multi-hop image
dissemination, there must be somewhere in the code that do the
forwarding.... I could not find it so far and I wondered if you
know where is that part doing the multi-hop forwarding.
I checked your Network Programming manual but I could not find
anything related to the above question..
I'd recommend reading the Deluge paper.
Basically, Deluge disseminates a single hop at a time. When a node
fully receives a page, it can advertise the page and send it along
to the next hop.
Thanks for your reply. That is exactly what I need to know (code-wise not
paper-wise), so that I can match the part in the code to the respective
part in the paper:
"disseminate the page in a single hop" - it is the match to "writeData()"
call in ReceiveDataMsg.receive(TOS_MsgPtr pMsg).
What I need to find out is the part in the code matches the description
"send it along
to the next hop".
Phil
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help