There are total 4 files present, nEmulator-linux386, packet.py, sender.py, receiver.py.
- Make sure to use chmod to make sure you are able to execute each file.
- On Host One, run
./nEmulator-linux386 9991 host2 9994 9993 host3 9992 1 0.2 0
- On Host Two, run
python3 receiver.py host1 9993 9994 <output-file>
- On Host Three, run
python3 sender.py host1 9991 9992 <input-file>
- If there is an error message,
Wrong Number of Arguments Given
, please make sure the arguments passed are correct. - Sender will parse the entire file and read 500 bytes of data and create a packet.
- Receiver will output the data into specified, and generate
arrival.log
containing all the sequence number arriving. - Sender will output
ack.log
andseqnum.log
as required. - EOT will never lost.
- Please make sure to use
python3
to run to avoid errors.