How do you calculate TCP?
Michael Henderson
Published Mar 18, 2026
How do you calculate TCP?
How to Calculate TCP throughput for long distance WAN links
- TCP-Window-Size-in-bits / Latency-in-seconds = Bits-per-second-throughput So lets work through a simple example.
- Bandwidth-in-bits-per-second * Round-trip-latency-in-seconds = TCP window size in bits / 8 = TCP window size in bytes.
How do you calculate optimal TCP window size?
As an example, consider a scenario of a 1 Gb/s connection between two sites with an average latency of 90 ms. The link bandwidth in megabytes/second would be calculated as (1 x 1024/8) or 128 MB/s. A value of 90 ms is (90/1000) or 0.09 s. The optimal setting in this case is 128 x 0.09, or approximately 11.5 MB.
How does RTT calculate throughput?
The Mathis Equation states that the maximum throughput achieved by a TCP connection can be calculated by dividing MSS by RTT and multiplying the result by 1 over the square root of p, where p represents the packet loss.
How do I calculate maximum bandwidth?
The Maximum bandwidth can be calculated as follows: where RWIN is the TCP Receive Window and RTT is the round-trip time for the path. The Max TCP Window size in the absence of TCP window scale option is 65,535 bytes. Example: Max Bandwidth = 65,535 bytes / 0.220 s = 297886.36 B/s * 8 = 2.383 Mbit/s.
How does Wireshark calculate TCP throughput?
TCP Throughput
- Go to Menu > Statistics > IO Graph.
- Click on the + button in the bottom left of the graph window.
- Name the new plot TCP Stream 0 Tx.
- In the Display Filter field enter tcp.stream==0 && tcp.dstport==445.
- In the Y Axis field select Bits/s.
- Check the box next to the name to display the result (uncheck all plots)
How does Wireshark calculate RTT?
RTT is calculated by Wireshark on packets that have ACKs of past segments, and is calculated as the time delta between the original packet’s SEQ and this packet’s ACK. Since it is calculated, you will see it under [SEQ/ACK analysis] of the packet and not as a field.
What is the maximum window size in TCP?
65,535 bytes
The TCP window size field controls the flow of data and is limited to 2 bytes, or a window size of 65,535 bytes. Since the size field can’t be expanded, a scaling factor is used. TCP window scale is an option used to increase the maximum window size from 65,535 bytes to 1 Gigabyte.
What is BDP in TCP?
Bandwidth-delay product (BDP) is a term primarily used in conjunction with TCP to refer to the number of bytes necessary to fill a TCP “path”, i.e. it is equal to the maximum number of simultaneous bits in transit between the transmitter and the receiver. High performance networks have very large BDPs.
What is bandwidth formula?
Bandwidth is measured between the 0.707 current amplitude points. The 0.707 current points correspond to the half power points since P = I2R, (0.707)2 = (0.5). Bandwidth, Δf is measured between the 70.7% amplitude points of series resonant circuit.
How is bandwidth calculated?
Typically, to measure bandwidth, the total amount of traffic sent and received across a specific period of time is counted. The resulting measurements are then expressed as a per-second number.
How does Wireshark measure throughput?
2 Answers. You can simply get the number of ICMP ping request packets through wireshark filters. Multiply it with the default ping packet size and then divide by the total time.
How do you calculate throughput?
How to Calculate Throughput Rates
- The calculation is: Throughput = total good units produced / time.
- Line efficiency = .90 x .93 x .92 = .77 or 77 percent efficiency for the line itself.
- Line throughput = 90 pieces per hour x .77 = 69 pieces per hour.