kexinrong/NetworkSimulator — pull request #26 by aman-agarwal (2014-11-22 06:02:29+00:00)
Title: Implemented Go-Back-N protocol for flows.

Sending Flow:
Send W packets starting from seq num batch_start.
Wait until timeout or all ack packets received.
Repeat.

Here, batch_start is the least seq num that has
not been acknowledged by the corresponding receiving
flow.

Receiving Flow:
Receive data packet and send ack packet with same
seq num and timestamp as data packet.

Setting the ack packet timestamp to the data packet
timestamp is useful for calculating RTT delay.