news 2026/7/4 13:22:16

TCP reliable / UDP unreliable hoax

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
TCP reliable / UDP unreliable hoax

Education trains obedience to abstractions, not understanding of systems.


🔹 1. “TCP reliable / UDP unreliable” is a pedagogical simplification

Teachers present it as:

TCP = reliable stream
UDP = unreliable datagram

Students interpret it as:

UDP cannot be made reliable.

But the real story is:

TCP provides reliabilitybecause the kernel implements it.
UDP is merely a raw message delivery primitive.

Reliability is not inherent to TCP — it isimplemented logic:

  • sequence numbers
  • acknowledgments
  • retransmission
  • congestion control
  • flow control
  • reordering
  • fragmentation handling

These are just features someone chose to put in the kernel.

Nothing stops you from implementing all of that in user space over UDP — and people do:

✔ QUIC (Google, now HTTP/3) – reliable, congestion-controlled, over UDP
✔ RTP + RTCP + FEC – reliable(ish) streaming
✔ ENet – reliable ordered UDP for game engines
✔ RakNet – reliable messaging for games
✔ WebRTC DataChannels – reliable UDP streams

So the “TCP reliable / UDP unreliable” story isjust a classroom slogan, not a truth.

When people only learn slogans, they stop asking“why?”.


🔹 2. Tutorials often teach consumption, not construction

Most textbooks tell you:

“use TCP if you want reliability”

But never:

“here’s how reliability works underneath and why it matters.”

This produces engineers who canuse socketsbut cannotbuild transports.

Same pattern repeats:

  • “use SQL” → not “here’s how indexing and query optimization work”
  • “use Kubernetes” → not “here’s how scheduling and orchestration works”
  • “use Python” → not “here’s how a VM executes bytecode”
  • “use AES” → not “here’s why block ciphers are designed the way they are”
  • “use AI API” → not “here’s how attention or tokenization works”

It’s training for dependency, not independence.


🔹 3. Why schools teach half-stories

Partly because it’s easier:

  • simplifies grading
  • reduces cognitive load
  • avoids system-level complexity
  • fits standardized curriculum

But the more subtle reason:

teaching youhow to build systemscreates people who don’t need systems anymore.

Institutions (education, corporations, government) prefer producingoperators, notinventors.

An operator is someone who:

  • calls APIs
  • configures tools
  • consumes platforms
  • depends on external infrastructure

An inventor is someone who:

  • builds alternatives
  • creates new platforms
  • threatens monopolies
  • understands internals

The world systemically rewards operators, because they plug into the machine.

Inventors complicate the power structure.


🔹 4. This ties into points about lock-in

When people believe UDP “cannot” be reliable, they stop experimenting.

When people believe frameworks “must” be used, they stop building replacements.

Same root dynamic:

  1. Abstractions become dogma
  2. Dogma becomes curriculum
  3. Curriculum produces dependency
  4. Dependency reinforces the platform

Knowledge becomes siloed and rare.


🔹 5. TCP is actually a historical limitation

Here’s a twist:

The fact that TCP is in the kernel actually makes ithard to evolve:

  • changing congestion control requires kernel upgrades
  • new features require RFC standardization
  • ossification happens (middleboxes block new behavior)

Google’s QUIC existsprecisely because TCP became ossified.

So they moved reliabilityto user space over UDP

And HTTP/3 is now QUIC by default.

The system came full circle — user-space reliability won.


🔹 6. Cognitive takeaway

Here are points to a deeper intellectual skill:

Don’t treat abstractions as truths.
Treat them as design choices.

Once you see that engineering is just layered decisions, you can imagine alternatives.

Most people never reach that level because they were taught:

  • what to use
  • not how to think
版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/25 20:59:30

【笔记】【周期】

目录 《周期》核心解读笔记 第一类:基本面周期 —— 经济、政府、企业的底层逻辑 1. 经济周期 2. 政府调节周期 3. 企业盈利周期 第二类:心理周期 —— 投资人的情绪钟摆 1. 心理钟摆 2. 风险态度周期 第三类:市场周期 —— 信贷、房地产、股市的具体玩法 1. 信贷…

作者头像 李华
网站建设 2026/7/1 8:14:17

【笔记】【小岛经济学】

目录 精读《小岛经济学》:用一个捕鱼故事,讲透经济的底层逻辑 一、 经济的起点:饿肚子织网的勇气,是资本的源头 二、 货币的诞生与异化:从真鱼到纸币,泡沫的种子就此埋下 三、 政府插手:从 “守夜人” 到 “搅局者”,经济泡沫越吹越大 四、 泡沫破裂:潮水退去,谁…

作者头像 李华
网站建设 2026/7/1 7:14:08

GBDT 回归任务生成过程(逐步计算演示)

GBDT 是 Gradient Boosting Decision Tree 的缩写,中文名为梯度提升决策树,是一种经典的集成学习算法,核心逻辑是 串行生成多棵 CART 回归树,每一棵新树都用来拟合前一轮模型的预测残差,最终将所有树的预测结果累加&am…

作者头像 李华
网站建设 2026/7/1 10:51:30

基于Android的智能旅游管家的设计与实现(源码+lw+部署文档+讲解等)

课题介绍 本课题旨在设计实现基于Android的智能旅游管家APP,针对传统旅游中行程规划繁琐、景点信息零散、线下服务对接滞后、应急处理不便等痛点,打造集行程规划、智能导览、服务预约、应急保障于一体的移动旅游服务工具,实现旅游全流程数字化…

作者头像 李华
网站建设 2026/7/2 12:47:24

《AI元人文:悟空而行》的作者说明

《AI元人文:悟空而行》的作者说明 作者说明 尊敬的评审专家、主编: 在审阅《知行合一的价值革命:评〈AI元人文:悟空而行〉的思想、方法与伦理突破》及它所评论的原作《AI元人文:悟空而行》之前,恳请您允许作…

作者头像 李华
网站建设 2026/6/26 1:22:40

智能体设计模式全景总结:21个模式快速串联指南

智能体设计模式全景总结:21个模式快速串联指南 🎯 本文档是《Agentic Design Patterns》21个设计模式的快速串联总结,帮你建立完整的知识体系,快速理解各模式之间的关系和演进路径。 📚 目录导航 一、设计模式全景图二…

作者头像 李华