[Tinyos-help] packets received > packets sent ?????
Nahr ...
nahrelk at gmail.com
Fri May 9 12:40:17 PDT 2008
Hi, thank you very much,
so if I want to calculate the number of packet received
by the root the best way is to calculate the number of packet
acked?
Is it correct???
All the bests,
Nahr Elk
2008/5/9, Omprakash Gnawali <gnawali at usc.edu>:
>
> On Fri, May 9, 2008 at 7:27 AM, Nahr ... <nahrelk at gmail.com> wrote:
> > Hi,
> > I am steel facing bizarre things.
> >
> > How could a receiver receive more than the packet sent ??
> >
> > /********************************************************/
> > void sendMessage() {
> >
> > if (call Send.send(&packet, sizeof(EasyCollectionMsg)) != SUCCESS) {
> > failedSend();
> > }
> > else {
> > sendBusy = TRUE;
> > printf("I am node n %d I sent a msg \n",TOS_NODE_ID);
> > }
> > /********************************************************/
> > event message_t* Receive.receive(message_t* msg, void* payload, uint8_t
> len)
> > {
> >
> > printf("I am node n %d I receive a msg \n",TOS_NODE_ID);
> >
> > }
> >
> > I calculate the number of (I am node n %d I sent a msg) I found that its
> > number is less
> > than
> > I am node n %d I receive a msg \n
> >
> >
> > How is that ???????????????
> >
>
> When a transmitter sends a packet and the receiver receives it
> successfully but the ack gets lost, there is no way for the
> transmitter to know if it was the packet or the ack that was lost.
> Then the transmitter retransmits the packet. This retransmission could
> result in multiple copies of packets at the receiver.
>
> - om_p
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080509/b6fd982b/attachment.htm
More information about the Tinyos-help
mailing list