how to calculate bdp?
•BDP signifies how many bits the sender can send before the first bit reaches the receiver.
•For example;
Consider a 1 Mbps link or a propagation delay 1 millisecond. Then the BDP = 1 MBps X 1 ms = 1000 bits. That is, when the sender has sent 1000 bits, the receiver has just started to receive the first bit. Suppose an extra signal/packet has to be sent by the receiver that it has started to receive the bits. Let us consider this sum of forwarding delay and reverse delay together as the round-trip-time (RTT). Then the product of bandwidth and RTT is the number of bits "in-flight" before the sender can expect to hear back from the receiver. BDP can refer to the product of bandwidth and one-way delay or RTT, depending on the context.
•The Bandwidth*Delay Product or BDP determines the amount of data that can be in transit in the network. It is the product of the available bandwidth and the latency, or RTT.
BDP (bits) =
Steps to be followed:
1. Create a scenario in Netsim as shown below:
2. Set the link speed to 1Mbps and propagation delay to 5ms in both the links.
3. Set packet size to 1000Bytes and IAT to 8 ms
4. Enable TCP and run the simulation for 100s.
Inference:
•The transmission time of the data packet is 8.53 milliseconds. The transmission time of ACK is 0.53 millisecond.
This can be seen in Packet trace by calculating the Transmission time after filtering the control packet type to data packets and TCP_ACK packets.
•Total propagation delay (forward and reverse) is 20 milliseconds.
•Thus the amount of time from the sender sending the first bit of packet to receiving last bit of ACK is 29.06 milliseconds.
•If the sender transmits only one packet and waits for ACK, his average throughput will only be 1 KB / 29.06 ms = 275.29 kbps.
•The bandwidth-delay product (using RTT) of the link is 1 Mbps * 29.06 ms = 29,060 bits = 3.63 packets of 1 KB each.
That is, if the sender were to be continuously sending without waiting for an ACK, he would have sent 3.63 packets before receiving the ACK for the first packet from the receiver.
•The concept of BDP is essential to understanding how much data to keep in-flight to fully utilize a link.
Also, signifies how much data is in flight before you hear about packet losses, etc from the receiver.
Also, refer:
The size of the TCP receive buffer is set by using the recv_buf TCP property, which is 128 KB by default. However, applications do not use available bandwidth uniformly. Thus, connection latency might require you to change the default size. For example, using the Secure Shell feature of Oracle Solaris causes overhead on bandwidth use because of the additional checksum and encryption processes that are performed on the data stream. Thus, the buffer size might need to be increased. Likewise, to enable applications that perform bulk transfers to use bandwidth efficiently, the same buffer size adjustment is also required.
You can calculate the correct receive buffer size to use by estimating the bandwidth delay product (BDP). To calculate BDP, multiply the available bandwidth by the value of the connection latency.
Use the ping –s host command to obtain the value of the connection latency.
The appropriate receive buffer size approximates the value of the BDP. However, the use of bandwidth also depends on a variety of conditions. A shared infrastructure or the number of applications and users that compete for the use of bandwidth can change that estimate.
Change the value of the buffer size as follows:
The following example shows how to increase the buffer size to 164 KB:
No set value for the buffer size is preferred because the preferred size varies depending on the circumstance. Consider the following examples where different values are set for the BDP in each network with specific conditions:
To calculate BDP, multiply the available bandwidth by the value of the connection latency. Use the ping –s host command to obtain the value of the connection latency. The appropriate receive buffer size approximates the value of the BDP. However, the use of bandwidth also depends on a variety of conditions.