I am trying to understand TCP protocol with different simulation scenarios. I have to find out the throughput theoretically by just seeing the congestion window of the TCP. Simulation scenario,
RTT= 100min (6000sec)I got this congestion window after simulating as shown in figure attach. The TCP is always in the Congestion Avoidance phase. What I tried is to take the current maximum congestion window value which is in bytes and divide it by the RTT value which is 6000s. is it right? or do you have any suggestions? Please help.
Network congestion occurs when packets sent from the source exceed what the destination can handle. TCP can use the congestion window (cwnd) and the receiver window (rwnd ) to control and avoid network congestion. The amount of data that can be transmitted through a TCP connection is dependent on the congestion window, which is maintained by the source. The receiver window is maintained by the destination, and it s related to buffer space. If destination can t stora data in buffer it will not acknowladge that data, and that mean that rwnd reached max value, so source should decrease cwnd following some alghoritm.
So source sending the amount of data that receiver can accept and this rearly use full link bandwidth.
Just to add something about RTT .... if we are talking about TCP (that require ACK of all data) then RTT is time neded to transfer data.... that s because data are succesuful data transfer is only when we get ACK from receiver ....
so we have sending data ---> one way communication and
sendin ACk <---- to sender is oposit direction :)
Hope this helped ... i am more familiar with a networks then with omnet++ but I am trying to learn :)