Skip to content

antimattercorrade/File_Transfer_TCP_UDP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

File Transfer using TCP and UDP ⭐

Simple TCP and UDP client-server programs in python for file transfer. The servers and clients have settings to configure Nagle's Algorithm and Quick Ack for TCP.

Directory Architecture: πŸ“

File_Transfer_TCP_UDP
β”œβ”€ Client
β”‚  β”œβ”€ tcp_client.py
β”‚  └─ udp_client.py
β”œβ”€ README.md
└─ Server
β”‚  β”œβ”€ Atlas Shrugged.txt
β”‚  β”œβ”€ Don Quixote.txt
β”‚  β”œβ”€ Shogun.txt
β”‚  β”œβ”€ The Stand.txt
β”‚  β”œβ”€ War and Peace.txt
β”‚  β”œβ”€ tcp_server.py
└─ └─ udp_server.py

Instructions to Run πŸƒ

TCP Client and Server

  • To run the client, run python3 tcp_client.py in the Client folder. It will ask for a number corresponding to which will be the book to download.
  • To run the server, run python3 tcp_server.py in the Server folder.
  • After the input is received, it will connect to the server and download the respective book in the "Client" folder.
  • The buffer size in the client and server can be set by changing the value corresponding to variable "BUFFER_SIZE" in "tcp_client.py" and "tcp_server.py" files.
  • To disable Nagle's Algorithm and Delayed Ack, comments are provided in the respective programs.
  • The client displays the calculated throughput and download time after download.

UDP Client and Server

  • To run the client, run python3 udp_client.py in the Client folder. It will ask for a number corresponding to which will be the book to download.
  • To run the server, run python3 udp_server.py in the Server folder.
  • After the input is received, it will download the respective book in the "Client" folder.
  • The buffer size in the client and server can be set by changing the value corresponding to variable "BUFFER_SIZE" in "udp_client.py" and "udp_server.py" files.
  • The client displays the calculated throughput and download time after download.

About

Simple TCP and UDP client-server programs in python for file transfer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages