{"id":15014246,"url":"https://github.com/worst001/note_network","last_synced_at":"2026-02-09T09:34:25.408Z","repository":{"id":209414028,"uuid":"723995911","full_name":"worst001/note_network","owner":"worst001","description":"整理了计算机网络基础理论知识、和每一层对应的协议，着重画出Http脑图。然后通过Netty实现异步IO加深对网络IO的理解。","archived":false,"fork":false,"pushed_at":"2023-12-28T02:50:41.000Z","size":31983,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-27T12:11:56.984Z","etag":null,"topics":["development","guide","http","learning","markdown","mkdocs","netty","network","nio","note","notebook","protocol"],"latest_commit_sha":null,"homepage":"http://note.grft.top/计算机网络/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/worst001.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-11-27T07:23:32.000Z","updated_at":"2023-12-28T02:50:57.000Z","dependencies_parsed_at":"2023-12-28T03:34:46.286Z","dependency_job_id":null,"html_url":"https://github.com/worst001/note_network","commit_stats":null,"previous_names":["worst001/mkdocs_network","worst001/note_network"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worst001%2Fnote_network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worst001%2Fnote_network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worst001%2Fnote_network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/worst001%2Fnote_network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/worst001","download_url":"https://codeload.github.com/worst001/note_network/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244959449,"owners_count":20538625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["development","guide","http","learning","markdown","mkdocs","netty","network","nio","note","notebook","protocol"],"created_at":"2024-09-24T19:45:22.168Z","updated_at":"2026-02-09T09:34:22.326Z","avatar_url":"https://github.com/worst001.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\u003c!-- PROJECT SHIELDS --\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\u003c!-- [![LinkedIn][linkedin-shield]][linkedin-url] --\u003e\n\n\u003c!-- PROJECT LOGO --\u003e\n\n\u003c!-- 项目LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003c!-- \u003ca href=\"http://note.grft.top\"\u003e --\u003e\n  \u003c!--   \u003cimg src=\"https://xiyou-oss.oss-cn-shanghai.aliyuncs.com/mkdocs/logo.png\" alt=\"Logo\" width=\"480\" height=\"270\"\u003e --\u003e\n  \u003c!-- \u003c/a\u003e --\u003e\n\n  \u003ch3 align=\"center\"\u003e计算机网络\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"http://note.grft.top/计算机网络/\"\u003e\u003cstrong\u003e探索文档 »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003c!-- 目录 --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003e目录\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\u003ca href=\"#关于项目\"\u003e关于项目\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#什么是计算机网络\"\u003e什么是计算机网络\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#技术目录\"\u003e技术目录\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#贡献\"\u003e贡献\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#许可证\"\u003e许可证\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#联系方式\"\u003e联系方式\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#鸣谢\"\u003e鸣谢\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n## 关于项目\n\n整理了计算机网络基础理论知识、和每一层对应的协议，着重画出Http脑图。然后通过Netty实现异步IO加深对网络IO的理解。\n\n公网资料、笔记地址请访问这里\n\n- 文档地址: [http://note.grft.top/计算机网络/](http://note.grft.top/计算机网络/)\n\n其他相关技术可以访问我的博客，主页地址请访问这里\n\n- 访问入口：[http://note.grft.top](http://note.grft.top)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e返回顶部\u003c/a\u003e)\u003c/p\u003e\n\n## 什么是计算机网络\n计算机网络是由多台计算机组成的系统，这些计算机通过通信媒体（如电缆、电话线、无线信号等）和网络设备（如路由器、交换机、调制解调器等）互相连接和通信，实现数据和资源的共享。\n\n计算机网络可以根据其覆盖范围、设计结构、传输技术等方面进行分类。\n\n### 覆盖范围\n+ 局域网（LAN，Local Area Network）：通常覆盖一个较小区域，如家庭、学校或办公室大楼。\n+ 城域网（MAN，Metropolitan Area Network）：覆盖城市大小的区域。\n+ 广域网（WAN，Wide Area Network）：跨越广泛地理区域，可以是国家或全球性的网络。\n\n### 设计结构（网络拓扑）\n+ 星型拓扑：所有计算机通过独立的通信线路连接到一个中央节点（通常是一个交换机或路由器）。\n+ 总线拓扑：所有计算机共享一条通信线路。\n+ 环形拓扑：计算机形成一圈，数据顺着圈传输。\n+ 网状拓扑：计算机之间有多条通信线路相互连接，提供多条数据传输路径。\n\n### 传输技术\n+ 以太网（Ethernet）：最流行的局域网技术之一，使用特定的数据包和帧结构。\n+ Wi-Fi：无线局域网标准，允许设备通过无线信号连接网络。\n+ 光纤通信：使用光脉冲来传输数据，可以提供非常高的数据传输速率。\n\n### 计算机网络的核心功能包括以下几点\n+ 数据传输：在计算机之间传送文本、图片、音频、视频等数据。\n+ 资源共享：共享网络上的硬件（如打印机、扫描仪等）和软件资源（如应用程序、文件等）。\n+ 公用服务：如电子邮件、网页浏览、文件传输、远程登录等。\n\n### 网络通信遵循一系列协议，最著名的是TCP/IP模型，它分为四层\n+ 链路层（Link Layer）：处理网络的物理连接部分，如电缆、网络接口卡等。\n+ 网络层（Internet Layer）：处理数据包在网络中的路由选择，IP协议位于此层。\n+ 传输层（Transport Layer）：确保数据有效地、可靠地从源头传输到目的地，主要的协议有TCP（传输控制协议）和UDP（用户数据报协议）。\n+ 应用层（Application Layer）：为应用软件提供网络服务，如HTTP（超文本传输协议）、FTP（文件传输协议）等。\n\n### 网络安全\n网络安全是计算机网络设计和运营中的重要考虑因素，涉及到保护网络和网络访问设备免受未授权访问、数据泄露和各种攻击（如病毒、木马、钓鱼攻击等）。\n\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e返回顶部\u003c/a\u003e)\u003c/p\u003e\n\n## 技术目录\n\n[目录](index.md)\n\n### 计算机理论知识\n\n+ [目录](https://www.yuque.com/hanwenhao-bs03y/ygt7az/rgziz584rvlgkfkn?singleDoc#%20《计算机网络》)\n+ [概述](https://www.yuque.com/hanwenhao-bs03y/ygt7az/hngff4ecr4hg96gs?singleDoc#%20《01-概述》)\n+ [物理层](https://www.yuque.com/hanwenhao-bs03y/ygt7az/yihte6g7zf4rr11a?singleDoc#%20《02-物理层》)\n+ [数据链路层](https://www.yuque.com/hanwenhao-bs03y/ygt7az/ggmphycqdeehgv0h?singleDoc#%20《03-数据链路层》)\n+ [网络层](https://www.yuque.com/hanwenhao-bs03y/ygt7az/ursmgfnafp0nhwqv?singleDoc#%20《04-网络层》)\n+ [传输层](https://www.yuque.com/hanwenhao-bs03y/ygt7az/hrtzu51vbezyocg8?singleDoc#%20《05-传输层》)\n+ [应用层](https://www.yuque.com/hanwenhao-bs03y/ygt7az/ug3dxqest0wq44mx?singleDoc#%20《06-应用层》)\n+ [面试常客](https://www.yuque.com/hanwenhao-bs03y/ygt7az/rpzy09hi8w6th5c9?singleDoc#%20《07-面试常客》)\n\n\n### 网络协议\n\n+ [协议汇总](https://www.yuque.com/hanwenhao-bs03y/ygt7az/ppg9yiddr02875eo?singleDoc#%20《网络协议汇总》)\n+ [HTTP协议](https://www.yuque.com/hanwenhao-bs03y/ygt7az/vyg2vx1dhrlggn8y?singleDoc#%20《HTTP%20协议》)\n\n\n### 异步IO模型\n\n#### Netty\n\n+ [第 1 章 Netty 介绍和应用场景](NIO/netty/netty_chapter/_content/chapter01.md)\n+ [第 2 章 Java BIO 编程](NIO/netty/netty_chapter/_content/chapter02.md)\n+ [第 3 章 Java NIO 编程](NIO/netty/netty_chapter/_content/chapter03.md)\n+ [第 4 章 Netty 概述](NIO/netty/netty_chapter/_content/chapter04.md)\n+ [第 5 章 Netty 高性能架构设计](NIO/netty/netty_chapter/_content/chapter05.md)\n+ [第 6 章 Netty 核心模块组件](NIO/netty/netty_chapter/_content/chapter06.md)\n+ [第 7 章 Google Protobuf](NIO/netty/netty_chapter/_content/chapter07.md)\n+ [第 8 章 Netty 编解码器和 Handler 调用机制](NIO/netty/netty_chapter/_content/chapter08.md)\n+ [第 9 章 TCP 粘包和拆包及解决方案](NIO/netty/netty_chapter/_content/chapter09.md)\n+ [第 10 章 Netty 核心源码剖析](NIO/netty/netty_chapter/_content/chapter10.md)\n+ [第 11 章 用 Netty 自己实现 Dubbo RPC](NIO/netty/netty_chapter/_content/chapter11.md)\n+ [Netty 源码案例](https://github.com/dongzl/netty-handbook)\n\n#### 其他方式\n\n+ [WebSocket](https://developer.mozilla.org/zh-CN/docs/Web/API/WebSocket)\n+ [Swoole](https://wiki.swoole.com/#/)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e返回顶部\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- 贡献 --\u003e\n\n## 贡献\n\n贡献是使开源社区成为一个如此令人惊叹的地方，以学习、激励和创造。您所做的任何贡献都将非常感谢。\n\n如果您对使这个项目变得更好有建议，请 fork 该仓库并创建 pull request。您也可以打开一个带有“enhancement”标签的问题。不要忘记给这个项目点个星！再次感谢！\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e返回顶部\u003c/a\u003e)\u003c/p\u003e\n\n\n\u003c!-- 许可证 --\u003e\n## 许可证\n\n根据 MIT 许可证进行分发。更多信息请参见 [LICENSE.txt](LICENSE)。\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e返回顶部\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- 联系方式 --\u003e\n## 联系方式\n\n关注我: [小昊子](https://github.com/worst001)\n\n博客地址: [http://note.grft.top](http://note.grft.top)\n\n项目链接: [https://github.com/worst001/note_network](https://github.com/worst001/note_network)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e返回顶部\u003c/a\u003e)\u003c/p\u003e\n\n## 鸣谢\n\n因为仓库与文档的数量比较大，有些借鉴资料忘了在`参考文档`部分提及原作者与原仓库，若有疏漏请告诉，我及时补上。\n\n所有引用的原资料都确认是开源认证，若有侵权请告知。\n\n[尚硅谷系列教程资料](http://www.atguigu.com/opensource.shtml)\n\n[https://www.bilibili.com/video/BV19E411D78Q](https://www.bilibili.com/video/BV19E411D78Q)\n\n[https://github.com/dongzl/netty-handbook](https://github.com/dongzl/netty-handbook)\n\n[https://openai.com/chatgpt](https://openai.com/chatgpt)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003e返回顶部\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- links --\u003e\n[your-project-path]:shaojintian/Best_README_template\n[contributors-shield]: https://img.shields.io/github/contributors/worst001/note_network.svg?style=flat-square\n[contributors-url]: https://github.com/worst001/note_network/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/worst001/note_network.svg?style=flat-square\n[forks-url]: https://github.com/worst001/note_network/network/members\n[stars-shield]: https://img.shields.io/github/stars/worst001/note_network.svg?style=flat-square\n[stars-url]: https://github.com/worst001/note_network/stargazers\n[issues-shield]: https://img.shields.io/github/issues/worst001/note_network.svg?style=flat-square\n[issues-url]: https://img.shields.io/github/issues/worst001/note_network.svg\n[license-shield]: https://img.shields.io/github/license/worst001/note_network.svg?style=flat-square\n[license-url]: https://github.com/worst001/note_network/blob/main/LICENSE.txt\n\u003c!-- [linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square\u0026logo=linkedin\u0026colorB=555 --\u003e\n\u003c!-- [linkedin-url]: https://linkedin.com/in/shaojintian --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworst001%2Fnote_network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworst001%2Fnote_network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworst001%2Fnote_network/lists"}