GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - 219sansim/ComputerNetworks

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
extra scripts
extra scripts
 
 
screenshots
screenshots
 
 
Computer Networks Performance.pdf
Computer Networks Performance.pdf
 
 
FSSP_ protocol specifications.pdf
FSSP_ protocol specifications.pdf
 
 
Pipfile
Pipfile
 
 
Pipfile.lock
Pipfile.lock
 
 
README.txt
README.txt
 
 
file-transfer.py
file-transfer.py
 
 
fssp_protocol.py
fssp_protocol.py
 
 
performance_test.py
performance_test.py
 
 
reliability_test.py
reliability_test.py
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.