Repository template tugas besar 2 - IF3130 - Jaringan Komputer - 2022
This repository contains how to simulate TCP connection over UDP socket. It consist of simple server and client, server can send file to a or multiple client. There are no non builtin library are used for this implementation.
Name | NIM |
---|---|
Muhammad Garebaldhie ER Rahman | 13520029 |
Rayhan Kinan Muhannad | 13520065 |
Aira Thalca Avila Putra | 13520101 |
server.py
usage: server.py [-h] [broadcast port] [Path file input]
Server for handling file transfer connection to client
positional arguments:
[broadcast port] broadcast port used for all client
[Path file input] path to file you want to send
options:
-h, --help show this help message and exit
client.py
usage: client.py [-h] [client port] [broadcast port] [path file output]
Client for handling file transfer connection from server
positional arguments:
[client port] client port to start the service
[broadcast port] broadcast port used for destination address
[path file output] output path location
options:
-h, --help show this help message and exit
- Three way handshake
- Go Back N when network are unreliable
- Paralelization (server can transfer file to each client paralel)
- Optimize file read
- Metadata
- File will be write in
out
directory
- Run server by inserting the broadcast port and source file instructions in Usage
python server.py 5000 ./test/tu.txt
- If filename aren't exists program will exit
- Server will ask if client want to use paralellization.
- Run client by inserting the port, broadcast port and filename see in Usage
python client.py 5001 5000 a.txt
- File will be write in
out/a.txt
- Make sure the port are different for
broadcast addr
andclient addr