Extract queuing delay calculation.
Extract congestion window calculation.
Add comments.