Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Simulation of Go-Back-N Arq flow control method. In Java for NETBEANS (preferabl

ID: 662527 • Letter: S

Question

Simulation of Go-Back-N Arq flow control method.

In Java for NETBEANS (preferably Java Applet),

Need to devise a GUI to show how the Go-Back-N Arq works. For the method you should consider the cases of Damaged Frame, Damaged RR, and Damaged REJ(SREJ) in your simulation so your GUI must handle these cases as clearly as possible.

An important aspect of the project that it needs to have user friendly GUI to cover all cases.

Would ideally prefer the simulation to look like the sample display. In netbeans, am able to create a java applet simulation that allows the user to send 5 frames to the receiver and detect if there are any errors. The java applet program should look similar to this, just not sure how to get the animation from working.

Send New Stop Animation Faster Send New Stop Anmati Slower Kill Packet/AckReset 0 1 2 3 4 5 6 7 8 9 10111213141516171819 111.100000000000000» Sender (Send Window Size base= 0 nextseqnum = 5 5) DOOOOOOOOOOOOOOOOOOO 4 5 6 7 8 9 10111213141516171819 000090999 nnenRecever Receiver (Receiver Window Size = 5) Packet Received Ack Ack Received Selected Buffered (S) Action at Sender (R) - Action at Receiver

Explanation / Answer

Go-Back-N ARQ is a specific instance of the automatic repeat request (ARQ) protocol, in which the sending process continues to send a number of frames specified by a window size even without receiving an acknowledgement (ACK) packet from the receiver. It is a special case of the general sliding window protocol with the transmit window size of N and receive window size of 1.

The receiver process keeps track of the sequence number of the next frame it expects to receive, and sends that number with every ACK it sends. The receiver will discard any frame that does not have the exact sequence number it expects (either a duplicate frame it already acknowledged, or an out-of-order frame it expects to receive later) and will resend an ACK for the last correct in-order frame. [1] Once the sender has sent all of the frames in its window, it will detect that all of the frames since the first lost frame are outstanding, and will go back to the sequence number of the last ACK it received from the receiver process and fill its window starting with that frame and continue the process over again.

Go-Back-N ARQ is a more efficient use of a connection than Stop-and-wait ARQ, since unlike waiting for an acknowledgement for each packet, the connection is still being utilized as packets are being sent. In other words, during the time that would otherwise be spent waiting, more packets are being sent. However, this method also results in sending frames multiple times