Skip to content

AryAgain/ImageEncoderSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Encoder Simulator

A protocol simulation to effectively encode and transport image files. Can be used to transport image file 30% more efficiently by reducing their size without any loss to the original quality,

It is implemented through using various concepts as follow:

  • The packets are divided into multiple smaller chunks to be sent over the network
  • Each packet has a header which will tell the sequence number of that packet
  • At the receiver end the receiver will check the sequence number and accordingly remake the image file back
  • If any sequence number is not received, it will be dropped and the image will be made from the rest of the packets as the transfer is over a longer path. This will further prevent from any congestion on the network.
  • Each packet if needs to be made more reliable to have clear picture can implement nAck, which will be sent for dropped package to be resent by the server

Steps to run :

Client/Sender:

The module which encodes the image file into bits and sends to the processing server.

javac Client1.java
java Client1 -server localhost -port 2233 -f img.jpg

Server/Receiver:

The module which decodes the trasported file back into original image file for viewing.

javac Server.java
java Server -port 2233

About

A protocol simulation to effectively encode and transport image files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages