1. Sliding Window
The sliding window protocol is a measure of traffic control on the transport layer.
The size of the sender's window to control the sender's sending speed, so as to prevent the sender from being overwhelmed by the sending speed too fast.
The TCP Sliding Window solves the end-to-end Traffic Control Problem and allows the receiver to restrict transmission until it has enough buffer space to accommodate more data.
2. congestion window
The congestion window is also seen as a window for the sender to control traffic.
However, TCP must also cope with congestion on the Internet. Congestion refers to the dramatic increase in latency caused by overload of one or more exchange point data packets. To control congestion, TCP uses the second window restriction, namely, the congestion window restriction. Two technologies are used to limit the size of the congestion window: slow start and multiplication.
Multiplication reduces congestion avoidance policy: Once a packet segment is lost, the congestion window size is halved (until the minimum window is reached, the window should contain at least one packet segment ).
Slow start recovery: as a confirmation arrives, the congestion window size increases by a packet segment each time.
3. Summary
Slow Start adds another window for the sender's TCP: congestion window, which is marked as cwnd. When a TCP connection is established with the host of another network, the congestion window is initialized to one packet segment (that is, the packet segment size advertised by the other end ). Each time an ACK is received, a congestion window is added.
Packet segment (cwnd increases in bytes, but the unit of slow start is the packet segment size ). The sender uses the minimum value in the congestion window and the notification/sliding window as the maximum sending limit.The congestion window is the traffic control used by the sender, while the announcement/sliding window is the traffic control used by the receiver.
The sender sends a packet segment at the beginning and waits for Ack. When the Ack is received, the congestion window is increased from 1 to 2, that is, two packets can be sent.
When the ACK of the two packet segments is received, the congestion window is increased to 4. This is an exponential increase.
Original
Http://lyjdamzwf.blog.163.com/blog/static/75206837201193373226/
Http://hi.baidu.com/zhangkai008/item/31539213b259379598ce336e
Http://blog.csdn.net/linweixuan/article/details/4353015
About the very detailed http://blog.csdn.net/lzueclipse/article/details/5777283
Http://blog.csdn.net/linweixuan/article/details/4365026