Professional Documents
Culture Documents
CiscoNET
Sharing Cisco Expertise
● Home ● LAN/MAN ● WAN ● TCP/IP ● Routing ● Multicast ● QoS ● Security ● Wireless ● Application ● OS ● Vendor ● Traffic Analysis ● WWW ● Programming ● Free Tools
maximum unscaled window size). As you know TCP/IP was born in 1969 and it was designed and developed on ● Internet Speed Issue - How
Popular Articles
WAN and LAN speed at that time. Most common Ethernet protocols were 10based-5, 10base-2 and later to troubleshoot(FTP)
10based-T. Yes, still we are using same TCP / IP header. It's kinds of old for these days fast network
environment. Even my home network is based on GigE ports. Most of the networks are 100 times faster than ● Internet Speed Issue - How ● How to use IP helper-address
when TCP was developed. Well, WAN speed is not being moved fast than LAN. Still many people are using to use TCP window scaling to connect remote DHCP
enhanced 56K modem links, T1s and below 3Mbps broadband link (of course upload is much slower than option server
download). Then what is adequate TCP receive window size? For fast LAN and slow WAN.
● How to calculate WAN links ● TCP Throughput Calculation
Formula
Why TCP receive window size is matter?
Polls
● Internet Speed Issue - Why
Commonly TCP window size means a sender can send maximum amount of window size of data to receiver Highly recommended TCP window size is matter
without acknowledge(confirmation) packet. firewall vendor?
● Internet Speed Issue -
Let's assume default TCP window size is 64 Kbyte on both testing devices at location A and B, Ethernet MTU is Cisco Bandwidth VS. Throughput
1500 bytes, we are sending 100 Mbytes files from location A to B. Round trip time(RTT) is 50ms and transport Juniper ● Internet Speed Issue - How to
link is under good conditions, no packet lost and bottleneck. Also, WAN trunk is big enough to send full size Sonicwall use TCP window scaling
packets. Just simplify all the numbers and calculation. We just want to know how window size is affecting TCP Nokia option
throughput. (** please do not tackle me...... based on below numbers ^.^)
Check point
Symantec
First, chop data to make size can be transferred. Who's Online
Barracuda
100000000(bytes) / 1500(bytes) = 66666.66.
Linux based We have 33 guests online
Roughly, 66667 packets can be sent to complete data transfer. However, as we assumed window size is 64
Results
Kbytes. In every 43rd packet would be containing 1000 bytes instead of 1500 bytes. So, new number of packet to
complete transferring data with TCP window size 64 Kbytes is total 67188 packets(65625 full packets and 1563
Sections
non-full packets).
● News
● FAQs
TCP window size 64 Kbytes ● Traffic Analysis
● Application
About 1562.5 times, sender has to wait acknowledgement packets. As we assumed RTT(Round Trip Time) is 50
ms, so one way trip time would be 25 ms. ● LAN/MAN
● OS
25 ms = 0.025 second x 1562.5 = 39.0625 seconds.
● Multicast
Per TCP Throughput Formula, TCP throughput with TCP window size 64 Kbytes and 50 ms RTT
● Program Language
Expert Links
(64 Kbytes x 8) / 50 ms = 512000 / 0.05 = 10240000 = 10.24 Mbps ● QoS
http://cisconet.com/traffic-analysis/traffic-analysis-general/413-internet-speed-issue-why-tcp-window-size-is-matter.html (2 of 5) [2/15/2010 8:52:21 PM]
Internet Speed Issue - Why TCP window size is matter
Okay, let's change window size below (Applied same condition of previous testing) ● Cisco Mars Blog
Moment of stop sending and awaiting for Acknowledge packets ● Global Config
= 100 Mbytes / 262144 bytes = 381.47 ● Internetwork Experts
● Packetlife.net
Moment of stop sending and awaiting for Acknowledge packets
= 100Mbytes / 1048576bytes = 95.37 ● Should have gone with Cisco
● Terry's Blog
Time for waiting Acknowledge packets
= 0.025 x 95.37 = 2.38 seconds. ● The CCIE Journey
● Write mem
TCP throughput = (1048576 bytes x 8) / 0.05 = 167772160 = 167.77 Mbps
I guess now you have an idea, how TCP window size affects TCP throughput which is denoted download and
upload speed.
UDP doesn't wait Acknowledgement packet from receiver, so you would get maximum bandwidth on your link. So
sometime UDP testing is useful, when you verify what is maximum bandwidth or TCP throughput between
location A and B. Even your ISP link. For example, if you have 3 Mbps download speed from certain server on
DS3 link, but UDP testing gave you 43 Mbps download. It gives you information that no connection issue, but
something else such as application or software issue.
I don't think everybody need to change TCP window size, because if connection is not reliable or congested on
the path to get destination, it would give you worse TCP throughput due to TCP recovery function that missing or
corrupted packets need to be retransmitted. If you decide to use, see next article "How to use and configure TCP
window scaling options"