[Tinyos-help] Is Drip a one-to-many or a many-to-many protocol?
Philip Levis
pal at cs.stanford.edu
Tue Aug 5 10:07:04 PDT 2008
On Aug 4, 2008, at 5:26 PM, John Hendrie wrote:
> Thanks for the explanation.
>
> I have another question about sequence numbers. What happens when
> the sequence number overflows? I can't see anything in the code that
> deals with wrapping. Does Drip assume that the sequence number will
> never wrap?
Yes, it does. You can only change a variable 65,535 times. If this is
an issue, you can use 32-bit sequence numbers, at which point it will
take 248 days (at 200 packets per second) to even increment across all
32 bits. But this would cost an extra 2 bytes/variable, and we thought
65,535 was sufficient for almost all reasonable cases.
Phil
More information about the Tinyos-help
mailing list