fixunix
Tags Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Understanding How to calculate TCP Window Size - TCP-IP

This is a discussion on Understanding How to calculate TCP Window Size - TCP-IP ; Hi , I am one of the members who is managing a Wide Area Network . The Backbone speed of this network is around 1.4 gbps and the links that connect to this backbone are of 10 mpbs and 100mpbs ...


Fix Unix > Technologies & Tools > Protocols > TCP-IP > Understanding How to calculate TCP Window Size

Reply
 
LinkBack Tools
  #1  
Old 10-02-2007, 09:51 PM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Understanding How to calculate TCP Window Size

Hi ,

I am one of the members who is managing a Wide Area Network . The
Backbone speed of
this network is around 1.4 gbps and the links that connect to
this backbone are of 10 mpbs
and 100mpbs speed .
I am managing a LAN which connects to the above WAN with a 10mbs
link. Some other
sites are connected with 100 mbps link . Now to gain better
performance , some TCP
tuning had to be done at the Host level. So , I was trying to
calculate the size of the TCP
window (Bandwidth Delay Product ) which is given by

BDP = bandwidth * round trip time.

My Doubt is regarding this formula . For bandwidth , which bandwidth
I should consider, the
speed of host's NIC (100 mbps), or the speed of the link (10 mbps )
which connects us
to the WAN or the speed of the Backbone (1.4 gbps).

And for Round Trip Time , I communicate with different links with
different RTT . e.g With
one link the RTT is 26.678 ms and with another is 67.786 mps. So
which RTT should I
consider.

Please somebody help me out in understanding the formula correctly.

Reply With Quote
  #2  
Old 10-02-2007, 09:51 PM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: Understanding How to calculate TCP Window Size

On Feb 20, 11:21 pm, query.c...@gmail.com wrote:
> Hi ,
>
> I am one of the members who is managing a Wide Area Network . The
> Backbone speed of
> this network is around 1.4 gbps and the links that connect to
> this backbone are of 10 mpbs
> and 100mpbs speed .
> I am managing a LAN which connects to the above WAN with a 10mbs
> link. Some other
> sites are connected with 100 mbps link . Now to gain better
> performance , some TCP
> tuning had to be done at the Host level. So , I was trying to
> calculate the size of the TCP
> window (Bandwidth Delay Product ) which is given by
>
> BDP = bandwidth * round trip time.
>
> My Doubt is regarding this formula . For bandwidth , which bandwidth
> I should consider, the
> speed of host's NIC (100 mbps), or the speed of the link (10 mbps )
> which connects us
> to the WAN or the speed of the Backbone (1.4 gbps).
>
> And for Round Trip Time , I communicate with different links with
> different RTT . e.g With
> one link the RTT is 26.678 ms and with another is 67.786 mps. So
> which RTT should I
> consider.
>
> Please somebody help me out in understanding the formula correctly.



The formula is correct. The bandwidth you need to use is the
*effective* bandwidth of the entire circuit. If that includes a
10Mbps link, it obviously cannot be *larger* than 10Mbps. It can be
smaller due to various forms of overhead (for example, bits dedicated
to framing, the IP and TCP overheads, other traffic sharing the link,
performance limitations of various routers along the way, the
performance of the hosts, etc.).

The RTT again is for the circuit in question. If you're talking to
two hosts, both with no link slower than 10Mbps, and one has a RTT of
25ms and the other 50, the BDP of the first is 31250 bytes (less
overhead) and the second is twice that. OTOH if you have a hundred
users trying to download files over the same link, you can reduce
those BDPs by a factor of 100.

Reply With Quote
  #3  
Old 10-02-2007, 09:51 PM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: Understanding How to calculate TCP Window Size

Hi.

On 21 fév, 06:21, query.c...@gmail.com wrote:
> Hi ,
>
> I am one of the members who is managing a Wide Area Network . The
> Backbone speed of
> this network is around 1.4 gbps and the links that connect to
> this backbone are of 10 mpbs
> and 100mpbs speed .
> I am managing a LAN which connects to the above WAN with a 10mbs
> link. Some other
> sites are connected with 100 mbps link . Now to gain better
> performance , some TCP
> tuning had to be done at the Host level. So , I was trying to
> calculate the size of the TCP
> window (Bandwidth Delay Product ) which is given by
>
> BDP = bandwidth * round trip time.
>
> My Doubt is regarding this formula . For bandwidth , which bandwidth
> I should consider, the
> speed of host's NIC (100 mbps), or the speed of the link (10 mbps )
> which connects us
> to the WAN or the speed of the Backbone (1.4 gbps).


You are right for the window size. But don't forget the window size is
limited to 65535 (16 bits), Unless
you initiate TCP/IP connections with the "window scale option" which
can set window size up to 32 bits.
See RFC 1323.

--
michel marcon aka cmic, SysAdmin
>
> And for Round Trip Time , I communicate with different links with
> different RTT . e.g With
> one link the RTT is 26.678 ms and with another is 67.786 mps. So
> which RTT should I
> consider.
>
> Please somebody help me out in understanding the formula correctly.



Reply With Quote
Reply

Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
<svg> size limited by window size unix Mozilla 5 09-17-2008 07:07 AM
how to calculate window/level unix DICOM 1 05-22-2008 08:39 AM
how to calculate max file / partition size unix Unix 2 11-25-2007 07:06 PM
Calculate the available tcp buffer size unix TCP-IP 1 10-02-2007 10:19 PM
Default Window Size for OS/2 CMD Window unix OS2 9 10-02-2007 03:04 AM


All times are GMT. The time now is 10:22 AM.