write the sending and receiving transport-layer code for a simple reliable data transfer protocol.

In this programming assignment, you will write the sending and receiving transport-layer code for a simple reliable data transfer protocol. You will implement two different versions:

  • Stop-and-Wait Protocol.
  • Go-Back-N protocol.

please use Java 7 or 8 and Netbeans 8.0.2 or later are the only requirements

the description should be in well-written with clear references to the source code