World's most popular travel blog for travel bloggers.

[Solved]: RDT2.1 - does the Sender listener to "ack" even though state=ready?

, , No Comments
Problem Detail: 

Computer Networking: A Top Down Approach Featuring the Internet, Jim Kurose, Keith Ross Addison-Wesley 4nd edition , page -223.

Also here slide 60 .

RDT2.1 (Reliable data transfer) -

Sender(s): state=ready; i=0; On rdt_send(d,m):     if state=ready     then     { p=<s,d,m,i,     EDC(s||d||m||i)>;     udt_send(p);     state=busy; } On udt_deliver(a)      If a=<"ack",EDC("ack")>     then     { i++;     state=ready; }     else udt_send(p); 

When the Sender side is in state=ready , does he still listener to "ack" recived from the Reciver ?

I need to know this , cause if so it seems that the Sender can get duplicate "ack"'s from the reciver and inc the i without sending any packet mainwhile .

Asked By : URL87

Answered By : AJed

From the code above, Yes.

Regarding your second note. A sender will go to the busy state if it sends a message and there it will wait for an ACK. I can imagine that the reciver would send multiple ACK's only if there is some fault. Usually, such faults are not considered in the basic protocol description, but are considered in the actual implementation.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/7647

3.2K people like this

 Download Related Notes/Documents

0 comments:

Post a Comment

Let us know your responses and feedback