I am working on network simulation where my network should be as close from real-world conditions as possible. I am coding a function that calculates the latency and bandwidth of between
switch A and
switch B every minute. Isn't it more reasonable and accurate to capture the current TCP throughput instead of the bandwidth? Throughput formula as I remember is:
TCP window size/ RTT but I don't know how to find TCP window size here (Assuming switch A and B are intermediate switches along a path from the sender to the receiver)?
Thank you so much in advance. Appreciate any response.