理解TCP协议

Last Updated: 2023-03-27 09:34:57 Monday

-- TOC --

这个世界90%的流量都使用TCP承载,TCP已经成为当今互联网的速度瓶颈。

Transmission Control Protocol (TCP) was developed nearly four decades ago when the primary users of the Internet were DARPA and universities. Despite being used to deliver more than 90% of all Internet traffic, TCP has actually become a key bottleneck to today’s fast web performance.

IP层是不可靠的, TCP是一个工作在传输层的可靠数据传输的协议,它能确保接收端接收的网络包是无损坏、无间隔、非冗余和按序

TCP系列学习笔记

TCP协议存在的问题

看到有人说,TCP其实是一个tunnel,抽象出了一个byte stream。

head-of-line blocking

The one problem with TCP is that when a lost packet is detected at a receiver, the sender needs to retransmit it. This takes time to happen and can mean that the byte stream reconstruction gets delayed. This is known as TCP head-of-line blocking. Applications regularly use TCP via a socket API that abstracts away protocol details; they often can't tell if there are delays because the other end is slow at sending or if the network is slowing things down via packet loss.

队头堵塞,并且App无法判断堵塞的原因,是发送方的速度慢,还是网络丢包。

本文链接:https://cs.pynote.net/net/tcp/202202061/

-- EOF --

-- MORE --