PP Presentation
- TFTP takes (with comments and command line processing) 2000 lines of C code.
- The max sequence number is
- , where n=length of the ack field in the frame. For TFTP packets, an ACK takes 4 bytes. Two bytes for the op-code, two bytes for the sequence number. Data blocks may be 512 bytes long.
- TFTP will run out of sequence numbers after
-
- bytes are sent without ack.
- Stop-and-wait uses n=1 so that sequence number are 0 and 1.
- A one Bit Sliding Window Protocol. This is stop-and-wait since the sender transmits a frame and waits for its ack. Protocal 4 withstands errors and timeouts