Professional Documents
Culture Documents
u0349111
CS 4480: Computer Networks
PA2-B
April 3, 2016
Design that describes the program design, how it works and any design tradeoffs considered and
made.
In order to simplify things, I decided to follow the FSM for Go-Back-N fairly closely:
Sender Receiver
I was getting a warning with trying to “restart the timer” so I created some flags in order to
keep track state. There are a couple of helper methods and I’m sure that I could have done
more to simplify the program but it fairly lean. I did add a method call to in the Project class in
order to print the statistics at the end of the program.
Testing that describes the tests you executed to convince yourself that the program works
correctly. Also document any cases for which your program is known not to work correctly.
I took the advice of the assignment specifications and incrementally tested the program. I
decided to implement an error free version and then tested sending several messages. Then I
implemented the packet loss mechanism with timeouts and tested that thoroughly. Finally, I
added the corruption detection and retransmission. I also tested small probabilities and large
probabilities and calculated the numbers from the total statistics at the end to verify the total
counts and probabilities. Part B of the assignment seemed to be trickier with testing the
program on different input settings. I admit that my program is not bug free and was not able
to get it 100% for large number of messages but it seems to work well for the specified output
parameters.
Output that shows output that illustrates the correct functioning of your program.