RTT = Tp + Tack + 2PD
PD = 1000km/(2 * 10^8) = 5 ms
Tack = Tp = 0 (transmission time is ignored in question).
So, RTT = 2 * 5ms = 10ms.
In RTT, in Go-Back-N protocol, N frames are transmitted. N = 8 here.
So, time to transmit 8 frames = 10 ms.
Each frame of of size 1024.
So, time to transmit 8 * 1024 = 8Kb (2^13 bits) = 10 ms.
Time taken to send 1M (2^20) bits = 10 ms * 2^7 = 1280 ms = 1.28 s.
Ref: http://web.mit.edu/modiano/www/6.263/lec3-4.pdf