- Java 8 installed
- VS Code IDE.
Github link There are two Subfolders assocaited with UDP - Go back N
- UDP_GO_BACK_N_CLIENT
- UDP_GO_BACK_N_SERVER
Always run server first and then run the client
The job of this module is to accept packet and store it in the file and also send ACK back for the packet received. Following are the step to be followed to run the UDP_GO_BACK_N_SERVER
- Click on the Run and Debug icon on the IDE.
- Select ServerApp<UDP_GO_BACK_N_SERVER> from the launch config file.
- As the you select and run new terminal will pop
Job of this module is to transer the file packets to UDP server and also makes sures that with in the time limit if ACK is not received for the packet sent current window packets are retransmitted. Following are the step to be followed to run the UDPclient
- Click on the Run and Debug icon on the IDE
- Select ClientApp<UDP_GO_BACK_N_CLIENT> from the launch config file.
- As the you select and run new terminal will pop there
At the end of file transmission you can find file created in the UDP_GO_BACK_N_SERVER/resources/serverfiles/<filename that you gave> with data in it.
There are two Subfolders assocaited with UDP SELECTIVE REPEAT
- UDP_SELECTIVE_REPEAT_CLIENT
- UDP_SELECTIVE_REPEAT_SERVER
Always run server first and then run the client
The job of this module is to accept packet and store it in the file and also send ACK back for the packet received. Following are the step to be followed to run the UDP_SELECTIVE_REPEAT_SERVER
- Click on the Run and Debug icon on the IDE.
- Select ServerApp<UDP_SELECTIVE_REPEAT_SERVER> from the launch config file.
- As the you select and run new terminal will pop. In the terminal you can observe the packets getting received.
Job of this module is to transer the file packets to UDP server and also makes sures that with in the time limit if ACK is not received for the packet sent the packets lost are retransmitted. Following are the step to be followed to run the UDPclient
- Click on the Run and Debug icon on the IDE
- Select ClientApp<UDP_SELECTIVE_REPEAT_CLIENT> from the launch config file.
- As the you select and run new terminal will pop. In the terminal you can observe the packets getting transferred.
At the end of file transmission you can find file created in the UDP_SELECTIVE_REPEAT_SERVER/resources/serverfiles/<filename that you gave in arguments> with data in it.
There are two subfolders assocaited with TCP - Standard
- TCP_STANDARD_CLIENT
- TCP_STANDARD_SERVER
Always run server first and then run the client
The job of this module is to accept a filename from the request and serve the file in response to the request. Following are the step to be followed to run the TCP_STANDARD_SERVER:
- Click on the Run and Debug icon on the IDE.
- Select <TCP_STANDARD_SERVER> from the launch config file.
- As the you select and run new terminal will pop. You can see that the server is now serving files in the resources folder in the directory TCP_STANDARD_SERVER.
The job of this module is to request for a file from the server and accept the file received as response and store it.
Following are the step to be followed to run the TCP_STANDARD_CLIENT:
- Click on the Run and Debug icon on the IDE.
- Select <TCP_STANDARD_CLIENT> from the launch config file.
- As the you select and run new terminal will pop. You can see that the client is requesting for a file 'demo_file.txt' from the server.
At the end of file transmission you can find the file transferred and written into the 'received' directory as 'received_file.txt'
There are two subfolders assocaited with TCP - Standard
- UDP_STANDARD_CLIENT
- UDP_STANDARD_SERVER
Always run server first and then run the client
The job of this module is to accept a filename from the request and serve the file in response to the request. Following are the step to be followed to run the UDP_STANDARD_SERVER:
- Click on the Run and Debug icon on the IDE.
- Select <UDP_STANDARD_SERVER> from the launch config file.
- As the you select and run new terminal will pop. You can see that the server is now serving files in the resources folder in the directory UDP_STANDARD_SERVER.
The job of this module is to request for a file from the server and accept the file received as response and store it.
Following are the step to be followed to run the UDP_STANDARD_CLIENT:
- Click on the Run and Debug icon on the IDE.
- Select <UDP_STANDARD_CLIENT> from the launch config file.
- As the you select and run new terminal will pop. You can see that the client is requesting for a file 'demo_file.txt' from the server.
At the end of file transmission you can find the file transferred and written into the 'received' directory as 'received_file.txt'