-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
62 lines (43 loc) · 1.6 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
the actual protocol fssp_protocol.py doesn't have any dependency other than python3.
but the file transfer uses "tqdm" library to display progress bar.
1) File Transfer
setup:
$ pip3 install pipenv
$ pipenv install
terminal 1:
$ pipenv shell
$ python3 file-transfer.py
$ client
terminal 2:
$ pipenv shell
$ python3 file-transfer.py
$ server
description:
Now, server will ask for a path, the path can be a file or a folder,
if it's a file it will be transfered and if it's a folder, all the files
in it's root location will be transferred sequentially. Server will look for
files inside the./storage folder only. (you can leave the path blank to transfer
the default file i.e. 'assignment-3.pdf')
All the files received by the client are stored inside ./storage/received_files
NOTE: Client should be started first in all the cases.
2) Performance measurement
to measure the bandwidth of the protocol, you have to run performance_measurement.py in two different
terminals, first start the client (receiver) by inputing '2' then start the server (sender) by inputing
'1'. This script will run for 1 minute and then output the bandwidth and bytes sent.
setup:
in terminal 1
$ python3 performance_test.py
$ 2
in terminal 2
$ python3 performance_test.py
$ 1
3) Reliability test
to test reliability, just run reliablity_test.py in both the terminals and server will send 100 packets in sequence
and client which check if all 100 packets reached and are in order.
setup:
in terminal 1
$ python3 reliability_test.py
$ 2
in terminal 2
$ python3 reliability_test.py
$ 1