Tcp有以下特點
Reliable
connection oriented
byte-stream service
要處理
flow control:
要有一個機制控制傳送不要讓buffer溢出
congestion control:
involves preventing too much data from being injected into the network,
thereby causing router/switches or link to become overloaded
TCP sliding windows algorithm (滑動窗口)
數據收發的時候,兩端都有一個buffer,當buffer滿地時候再發送單位爲segment