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 <[EMAIL PROTECTED]>:
>
> On Fri, May 9, 2008 at 7:27 AM, Nahr ... <[EMAIL PROTECTED]> 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
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to