{"format":"brushup-mindmap-v1","id":"net-00-sheet6","title":"第五层 应用层","structure":"timeline-h","theme":"auto","root":{"id":"b5bbb105dde921982a29fa7b66","topic":"第五层 应用层","expanded":true,"children":[{"id":"cf6b7b8a39ba2040a02f08830b","topic":"网络模型","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-585f1b7054eb27.svg"},"children":[{"id":"401a083d2bdbbf68788eb99ab0","topic":"C/S模型","expanded":true,"style":{"background":"#7986CB"},"children":[{"id":"c85902b716d83985aaab687b1d","topic":"服务器","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"5778a71e307ba0200d67199706","topic":"永久提供服务（接入网络）","expanded":true,"style":{"background":"#FF9595"}},{"id":"bf58561ae9c9a219d48a0b5dc7","topic":"永久提供访问地址、域名","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"f7a84b450e4af3057129aadca5","topic":"客户机","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"0739fcf0c468df2184d04b53dd","topic":"与服务器通信","expanded":true,"style":{"background":"#FF9595"}},{"id":"86280981ccba0a946df66827cd","topic":"间歇接入网络","expanded":true,"style":{"background":"#FF9595"}},{"id":"930ba413dfb98bb324d58884c6","topic":"使用动态IP","expanded":true,"style":{"background":"#FF9595"}},{"id":"5c18c7934cb8d518ec353ab1c2","topic":"不与其他客户机通信","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"97391c077c19fa3e61f229487c","topic":"常见例子","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"975be8b22b9bd6208fc129e5e5","topic":"Web","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"1bf9d19c2c4aec9dedbecbada2","topic":"FTP","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"7c5ac619498935a3d967fb63bd","topic":"远程登录","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"39c8a801ca49b819a81c59c84b","topic":"电子邮件","expanded":true,"style":{"background":"#8EDE99"}}]}]}]}]},{"id":"e4aae3af15e8c5e36ab1cbb9aa","topic":"特点","expanded":true,"children":[{"id":"40991d04f47a65ba64656b9b63","topic":"网络中计算机地位不平等","expanded":true},{"id":"abf42359-b7d8-4814-a144-400916d6151d","topic":"客户机之间不可直接通信","expanded":true},{"id":"33eb64a004b84ce23dfc58c5b5","topic":"可扩展性差","expanded":true}]}]},{"id":"5b0b7b52e6c8638e01af1bb4c1","topic":"P2P模型","expanded":true,"style":{"background":"#7986CB"},"children":[{"id":"ffb905bd-f712-48cb-ac73-5b42be50e23c","topic":"P2P网络是一种动态逻辑网络，不是一种具体的物理网络","expanded":true},{"id":"ce5b9ed4ba48694f03714ad3da","topic":"每个主机都可以","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"6e4ae1e65f7a2fbbe6b54a3334","topic":"提供服务","expanded":true,"style":{"background":"#FF9595"}},{"id":"3ad987b8da6b08a47d46fbc542","topic":"请求服务","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"cc6883f2e12a6c8b2476b9e4c1","topic":"任意两个主机之间可以直接通信","expanded":true,"style":{"background":"#FF9595"}},{"id":"5b6b7d44a7a8d34980edcae720","topic":"节点间歇的进入网络","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"89ab6a772b4a23f6f86999d785","topic":"节点可能改变IP地址","expanded":true}]},{"id":"99f92c46a5abb1b8e9e9784dc1","topic":"可扩展性强","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"4d8ac8a8c4082d587e2d1870ab","topic":"健壮性强","expanded":true}]},{"id":"ae9ac4133f2808da985429b864","topic":"经常使用P2P会对硬盘造成损伤","expanded":true},{"id":"7cd9028dd6ea2cec01559b1ae0","topic":"常见例子","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"230b8fe1f59b2008c8aa6a28fd","topic":"PPlive","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"08dac68d4639d5f3e727a9a5b1","topic":"Bittorent","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"483bdee5deca4d2b93c4d8c54f","topic":"电驴","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"f75bea1678294fb110980833ff","topic":"流媒体播放对服务器压力过大时，可以使用P2P","expanded":true,"style":{"background":"#2CD551"}}]}]},{"id":"746a7efb23da3c42f55ba97a04","topic":"混合模式","expanded":true,"style":{"background":"#7986CB"},"children":[{"id":"358addf643b91c6b88cf79b38e","topic":"文件搜索使用C/S，文件传输使用P2P","expanded":true}]},{"id":"74e53a92-ea21-4d34-9f8c-788023e65241","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"29a71073-8b45-49f6-bb79-eefe594b6088","topic":"19","expanded":true}]}]},{"id":"cd5848e0d6b94d7ebc6f4a7659","topic":"域名系统(DNS)","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-05bb20abd63104.svg"},"children":[{"id":"a6ca6aa7-c449-442a-bc0a-a2909133c84c","topic":"考频：中","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"b964c680-4f73-43ff-991b-4533bdc5a954","topic":"10、16、18、20","expanded":true}]},{"id":"5a1bec3d99e8a33b96996b34b0","topic":"DNS采用C/S模型，建立在UDP在，使用53号端口","expanded":true,"style":{"background":"#FF9595"}},{"id":"c14a857fed183ac6cf2ca8ff27","topic":"域名标准","expanded":true,"children":[{"id":"514b28c89efa0a282d57dbb07b","topic":"硬性规则","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"7af837caf7181c4a9758aa518c","topic":"不区分大小写、不使用' - '以外的符号、每个标号不超过63B一共不超255B、级别越高越靠右","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"6e685eafbf8a2f1190fda8a804","topic":"顶级域名\n(TLD)","expanded":true,"children":[{"id":"42baa008ab39dd69c603da923e","topic":"国家顶级域名nTLD，.cn .us","expanded":true},{"id":"18ab3577f8a8ee5ef50dbaf4ab","topic":"通用顶级域名gTLD, .com .net .org .gov .int .aero .museum .travel","expanded":true},{"id":"5c6bc92d4a29fbe39948d9d7b2","topic":"基础结构域名","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"9dfb79b182ab0940106e9a246f","topic":".arpa，反向域名解析","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"fb185f36c4fa73bbc3ca286825","topic":"二级域名","expanded":true,"children":[{"id":"806adb2cf6a9c91b0e048bcbac","topic":"类别域名","expanded":true,"children":[{"id":"46885a84bb99c842a763a8a45c","topic":"ac.am.edu.gov.mil.net.org","expanded":true}]},{"id":"dd1a45545a1ad3c24881eb929f","topic":"行政域名","expanded":true,"children":[{"id":"5a8971c6597a25d163bdc9c26f","topic":"bj.js","expanded":true}]},{"id":"445b980e5f983eed661cab2693","topic":"自行注册域名","expanded":true,"children":[{"id":"fc9af0d8c8796acf5f07f84958","topic":"cctv. bilibili.","expanded":true}]}]},{"id":"8c2a1f2812bba98933c53ae476","topic":"三级、四级域名","expanded":true,"children":[{"id":"4828d4bd960a0d3bef00eb2055","topic":"www1. www. mail. hust. .hit.","expanded":true},{"id":"b0f9a7f6553b1ff34431d8521b","topic":"与二级域名差不多","expanded":true}]}]},{"id":"748a0a63cd7b015295e8cba4c2","topic":"域名服务器","expanded":true,"children":[{"id":"3a81e9f9-02cb-4716-b1e7-b51abce245bb","topic":"IP到域名解析的过程是由众多域名服务器中的应用程序完成的","expanded":true},{"id":"9f1a256b2f9b968c819f2b6594","topic":"本地域名服务器","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"c5795cc4d2bb260333624a42bc","topic":"一个网络服务提供商ISP、一个大学、一个系，都拥有一个本地域名服务器","expanded":true,"style":{"background":"#8EDE99"}},{"id":"84f9b97ba3a82a5cfcca49516b","topic":"主机发送DNS请求，第一个就是发送给本地域名服务器","expanded":true,"style":{"background":"#FF9595"}},{"id":"26889b6921ca7eef62b3c8d67b","topic":"本地域名服务器会存有一个本地缓存，直接有IP","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"d82b4770d18a0859234e7abf58","topic":"其他服务器很多都有高速缓存，直接有IP","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"c68b93e1c2ca525a3020abd9cb","topic":"根域名服务器","expanded":true,"children":[{"id":"fd9883d0a6fbe4a7b8f3a8267d","topic":"为：a-m.rootservers.net","expanded":true,"children":[{"id":"b5588d61738b630565b64aa83a","topic":"一共13个","expanded":true}]},{"id":"9009eac70f9a8f154bfd78ea9f","topic":"本地域名服务器第一求助对象","expanded":true},{"id":"ef98e6bebb1b63aafb7f18c943","topic":"用来管辖顶级域","expanded":true,"children":[{"id":"0a59fe85aaaa068bf76e2809d7","topic":"返回下一个顶级域名服务器的IP地址","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"0e7802f8e0aa132a1cb3697c49","topic":"顶级域名服务器","expanded":true,"children":[{"id":"10e94371fe0905e95494daad2d","topic":"管辖所有二级域名","expanded":true,"children":[{"id":"684b498408c94d8452a60a3c9b","topic":"已经可以返回最后结果了，也可能是返回下一个域名服务器的IP地址","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"9d18d9f3928b8dd49f836ad800","topic":"授权域名服务器","expanded":true,"children":[{"id":"5d1b72be609add3b981a185d7a","topic":"每台主机都会在此处登记","expanded":true,"children":[{"id":"16bac4d734e84e084a0b1be29e","topic":"很多域名服务器又是本地又是授权的","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"df5aefea720a695fd9588abc74","topic":"返回最后结果","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"f528efd8563a12c43329e9a25b","topic":"域名解析","expanded":true,"children":[{"id":"b06a12b0d9bbf442a47f4a9db0","topic":"递归查询","expanded":true},{"id":"e97ad54a42191875dfa5989ec9","topic":"递归+迭代","expanded":true}]},{"id":"3b54f20c-89d0-449f-aede-6e63b3855dde","topic":"域名解析的步骤","expanded":true,"children":[{"id":"0ba8cf49-5b36-45c7-983b-e72edc7f3d12","topic":"1. 客户机向本地域名服务器发送DNS请求","expanded":true,"children":[{"id":"c15f5a0a-161b-403d-9e14-fc7229f5e9c3","topic":"y.abc.com","expanded":true}]},{"id":"12ef3883-884d-45d8-be1d-d203a71c7c6f","topic":"2. 本地域名服务器收到请求后，查询高速缓存，若没有则以DNS客户的身份向根域名服务器(就是dns.)请求","expanded":true,"children":[{"id":"ab283d9e-e8f0-44b7-be8e-d7e1f36aa405","topic":"如果有，就返回，下同","expanded":true}]},{"id":"42c1e1fa-931c-4982-848e-a9016439e40e","topic":"3. 根域名服务器收到请求后，判断域名属于.com，将dns.com的IP返回给本地域名服务器","expanded":true},{"id":"a219fa64-a1c4-4c44-a489-bce4f91e059b","topic":"4. 本地服务器向dns.com发送DNS请求","expanded":true},{"id":"a2ac5af6-3a7e-4d68-8c4a-2cff7979b541","topic":"5. dns.com域名服务器收到请求后，判断域名属于abc.com，将dns.abc.com的IP返回给本地域名服务器","expanded":true},{"id":"c13218ed-f889-474d-834e-8398879eeafc","topic":"6. 本地服务器向dns.abc.com发送DNS请求","expanded":true},{"id":"506f5a48-8ac5-4478-bc38-e674d8c0ed7c","topic":"7. dns.abc.com域名服务器收到请求后，返回IP","expanded":true},{"id":"295d8192-14aa-416e-88b2-21a9570fc587","topic":"客户机把IP和DNS写入到本地缓存中","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"4568ef8e05c999a480f0d97f6b","topic":"FTP传输","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-23d3d917a457fa.svg"},"children":[{"id":"89a3ebcb-a6d3-476e-a21d-2fb59e399a99","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-c65a2396e98a8a.png","width":675.94,"height":296.33}},{"id":"a398928d0018caf0c67b3897ac","topic":"采用C/S模型、先建立TCP连接，连接端口 21，数据端口 20","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"e94a7617dafb3c4a51ddfb908e","topic":"数据端口（主动情况20，被动情况 1024 ~ 65535）","expanded":true},{"id":"5728210b6e08a1c5c5eeeb0dc5","topic":"使用TCP可靠传输服务","expanded":true},{"id":"f1d8c25f03a8986ba7111b73ec","topic":"控制进程、数据进程同时两个TCP连接","expanded":true}]},{"id":"18ebe527-58c1-436d-9137-a5c5c152a72f","topic":"FTP提供","expanded":true,"children":[{"id":"20087bd7-e3b6-480b-9156-7ec46c193ed7","topic":"不同种类主机系统（软硬件都可不同）之间的文件传输","expanded":true},{"id":"18b6f346-0cbb-4f8d-8a6b-12e1c3922303","topic":"以用户权限管理方式提供用户对远程FTP服务器的文件管理能力","expanded":true},{"id":"bda562f4-7c77-4883-8c70-31e1edadcfee","topic":"以匿名FTP方式提供文件共享","expanded":true}]},{"id":"5cebc1cb155a0b79bf1f98f637","topic":"服务器进程","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"9938a8fe6449b9add705185442","topic":"主进程","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"fc1bf7f3748a5e0cfc9d89c6be","topic":"负责接受请求","expanded":true}]},{"id":"bbdb5259467aebfec83ada2392","topic":"从属进程","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"3109cdac76896d8c97ffdab0ff","topic":"负责处理单个请求，处理完毕终止","expanded":true}]}]},{"id":"11388145cf8a108169aa8ace92","topic":"连接方式","expanded":true,"children":[{"id":"86a8365ebf9bd6dc28e0fb0b5d","topic":"控制连接","expanded":true,"children":[{"id":"2920bb68-b7df-4624-a0cf-5ffbf92f9b3d","topic":"监听21号端口","expanded":true},{"id":"9a39bbb51bdbcf4c494c995c7f","topic":"使用7位ASCII码做控制信息","expanded":true}]},{"id":"66ead9af593b3eff63c3390a52","topic":"数据连接","expanded":true,"children":[{"id":"991b64cc0b6a35ff30af7a9110","topic":"PORT模式（主动","expanded":true,"children":[{"id":"95fbb6ac42cb8bf023f41800b5","topic":"客户端发送请求到21，服务器开20给客户端，客户端随机开一个端口来接受服务器的20的数据","expanded":true}]},{"id":"eb1b0bf8facb3b4377bd8a0902","topic":"PASV模式（被动","expanded":true,"children":[{"id":"e79a79ec0949f84a06715ac23e","topic":"客户端发送请求到21，服务器随机开一个端口给客户端，客户端后面自己连接","expanded":true}]}]}]},{"id":"d309489ea4ca171a20c46a6714","topic":"数据连接\n（FTP与NFS）","expanded":true,"children":[{"id":"232a26f7fe998da377fd48db9a","topic":"FTP是分离控制，是带外传输(Out-of-band)","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"a5b90ead487a0c9745a4ba1d12","topic":"如果要修改文件就很麻烦，需要读文件所有信息，改了过后再发回去","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"5c19b99b3f9ae266fd2958945c","topic":"NFS可以只读获得一个文件的一个部分","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"a6b84174-7fa9-4eb0-8cfe-94ede00b8177","topic":"数据传输模式","expanded":true,"children":[{"id":"48070d80-f1bc-4f04-a5e1-a176116f6646","topic":"文本模式 ASCII码","expanded":true},{"id":"003c5022-51e8-4cd2-912a-d2d8744b8186","topic":"二进制模式","expanded":true}]},{"id":"ed421598-e103-4773-b690-7eb159fbbb8f","topic":"匿名FTP访问：","expanded":true,"children":[{"id":"4d489691-8588-4406-9b2c-208b00689d4a","topic":"用户名：annoymous","expanded":true}]},{"id":"ae87800a-9de0-422a-a086-adaff4123d6d","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"335ad41c-5519-4bd1-aa48-79ad577ccae9","topic":"09、17","expanded":true}]}]},{"id":"ebdb35e4e16b0a5dd05038ca07","topic":"SMTP传输","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-0eb260ceca6ca7.svg"},"children":[{"id":"ace5b74a-7c51-4e55-a631-d57292941896","topic":"考频：中","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"5ced0eeb-91a3-45b0-a208-9770bc461ab4","topic":"12、13、15、18","expanded":true}]},{"id":"2775bd99-cb03-4f61-a09b-b5ac783869e5","topic":"基于TCP连接的应用层协议","expanded":true},{"id":"d5baba4aaecac37dc47ff8cffc","topic":"组成结构","expanded":true,"children":[{"id":"192ede53-6118-40db-8ae3-8219fac755f0","topic":"用户代理（User Agent）","expanded":true,"children":[{"id":"f1478118-890a-44b7-97e5-4a657497f781","topic":"用户与电子邮件系统的接口，例如：Outlook、Foxmail","expanded":true}]},{"id":"4441f2aa-7b8d-48d0-83a4-dc402c0c922e","topic":"邮件服务器","expanded":true,"children":[{"id":"37e1295d-95ff-4b66-b812-a6051112b4f8","topic":"接受和发送邮件，报告发信人邮件传送情况","expanded":true},{"id":"2f67f5bb-1cf9-407f-b3fe-70232f4bbe14","topic":"例如：A向B发送邮件，A就是SMTP客户，B就是SMTP服务器","expanded":true}]},{"id":"d8b5af0a-d401-4678-b85f-ca4b22257388","topic":"电子邮件协议","expanded":true,"children":[{"id":"a3fff1c6-6fed-44eb-8484-08eddfe39c91","topic":"发送协议","expanded":true,"children":[{"id":"0759ca11-0f55-47ba-bfb8-e0026317cf32","topic":"SMTP（Push)","expanded":true}]},{"id":"f839f37b-2762-481d-8d13-c551a4839cbc","topic":"接受协议","expanded":true,"children":[{"id":"16dbf340-efee-40e0-b67d-6c8bf0af7798","topic":"POP3（Pull）、IMAP","expanded":true}]}]}]},{"id":"f13f6fe9-b277-4759-9e2f-222ae02fc356","topic":"收发过程：","expanded":true,"children":[{"id":"f8eaa1fe-b56e-4033-9241-762e2f2f21d3","topic":"1. 发信人调用用户代理来撰写和编辑要发送邮件。","expanded":true},{"id":"73b4067b-281c-42e2-a09e-62f3a7839789","topic":"2. 发送端的邮件服务器将邮件放入邮件缓存队列","expanded":true},{"id":"1705d740-ae71-45ee-ac70-21b8d399a931","topic":"3. 运行发送端的SMTP客户进程，如果有缓存中的等待邮件，则向接受方的SMTP服务器建立TCP连接","expanded":true},{"id":"9fc9d05e-0a81-41e0-a00b-270079bcdd1a","topic":"4. TCP建立完成后，SMTP客户进程向SMTP服务器发送邮件。所有邮件发完后。关闭TCP连接","expanded":true},{"id":"711889d0-30fe-40ef-9d56-6d86cd56e28b","topic":"5. 运行在接受端的SMTP服务器收到邮件后，将邮件放入收信人邮箱，待收信人方便时读取","expanded":true},{"id":"56694aa6-3a6d-4230-8d06-db0f934c5502","topic":"6. 收件人打算收信时，调用用户代理，启用POP3/IMAP来取回邮件","expanded":true}]},{"id":"e187cae4-58c2-4be7-8dd8-f72c45c580bc","topic":"SMTP的\n电子邮件格式","expanded":true,"children":[{"id":"09b1476f-2828-454b-be27-d92208f5370b","topic":"信封","expanded":true,"children":[{"id":"e92e58bc-2639-4b17-8178-317202edda0e","topic":"From:","expanded":true,"children":[{"id":"f90bf70d-9ff5-4b96-9849-35fd0efd2dd1","topic":"例:xxx@bytedance.com","expanded":true}]},{"id":"4e10e39b-3911-4774-af01-f64656932398","topic":"To:","expanded":true,"children":[{"id":"d39a117c-ba68-4eef-958e-cbd5feebe256","topic":"例：xxx@tecent.com","expanded":true}]},{"id":"686b0fba-2e21-4c68-ae55-c3dcf0fd3c5d","topic":"Subject:","expanded":true,"children":[{"id":"31934ab6-9c38-479f-94b0-a007782b6a16","topic":"主题，可以有可无","expanded":true}]}]},{"id":"f6c06e43-8d9e-42dd-89b4-b609905a1da5","topic":"内容","expanded":true,"children":[{"id":"ecf49971-7fb4-4fc3-a3e7-38a483fb6eaa","topic":"主体内容","expanded":true,"children":[{"id":"321e4fde-3942-4019-86a2-fcef2889ef7a","topic":"只能传输一定长度的ASCII码","expanded":true}]}]}]},{"id":"55d57f11-4e21-4ea9-98a3-3eb1dd27210b","topic":"SMTP & MIME\n和\nPOP3 & IMAP","expanded":true,"style":{"background":"#EA8ABA"},"children":[{"id":"53964648-f6e2-439c-9422-478baeed4e09","topic":"SMTP简单邮件传输协议","expanded":true,"children":[{"id":"f491c1ea-1497-4c04-972b-039bf6e3c9b5","topic":"使用CS模式","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"bb7a774e-e11a-4b97-aafe-1f885877fa10","topic":"发送方即SMTP客户","expanded":true,"style":{"background":"#FF9595"}},{"id":"05592fa7-a4d3-4749-89bd-fd29fc65659d","topic":"接收方即SMTP服务器","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"9e050d26-f623-4df9-aa04-531bf661f414","topic":"TCP连接，端口25","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"84d6cde2-e8d6-4718-8aa9-205625dfec12","topic":"三个阶段","expanded":true,"children":[{"id":"f01659b2-5fe1-4046-9265-fae719eef54a","topic":"1. 连接建立","expanded":true,"children":[{"id":"4eab48c4-a9f1-4413-89a3-f4d64e2a2bd8","topic":"SMTP客户扫描缓存时发现有邮件，就使用25号端口与接收方服务器的SMTP建立TCP连接。","expanded":true},{"id":"13a77b25-a818-4d05-9a61-2314407a02dc","topic":"建立后，服务器发送“220 Service Ready”，然后SMTP客户向SMTP服务器发送HELO命令，附上发送方主机名","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"3f21eb57-043b-461c-97ef-20d00bbc86e8","topic":"如果发来的邮件服务器可以接受，返回\"250 OK\"，否则返回\"421 Services not available\"","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"3fb7dbf5-41ae-42f5-86fb-79b3c47bd6f3","topic":"（SMTP不使用中间服务器，故TCP连接总是在发送方和接收方这两个邮件服务器直接建立）","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"12506d0a-df07-4318-8db0-e8d7a4fa1714","topic":"2. 邮件传送","expanded":true,"children":[{"id":"3d958793-3de2-47d0-829e-479119107355","topic":"客户端先发送MAIL命令开始，MAIL FROM：<...>","expanded":true},{"id":"9adedc21-5fad-475f-b4a6-3b23c427cd91","topic":"服务器收到MAIL命令后，如果准备好接受，就返回250 OK","expanded":true},{"id":"a2992cdb-0b9d-4535-b134-6d53c4350144","topic":"客户端根据接收方的email号，发送数个RCPT命令","expanded":true},{"id":"38e0641f-33f5-4380-a0db-78633e416b70","topic":"服务器收到RCPT后，返回250 OK或550 No such user here","expanded":true,"children":[{"id":"89986a24-9ad2-459b-9f13-402a5cf96c79","topic":"如果收到550，说明不可发送","expanded":true}]},{"id":"c637f182-901e-4987-9ee5-0f1a04241d0c","topic":"如果收到了OK，客户端就使用DATA命令，表示要发送的内容","expanded":true,"children":[{"id":"3eefc4a9-be49-4ad4-9467-3fbc1ae10a05","topic":"此时服务器返回354 Start mail input; end with <CRLF><CRLF>","expanded":true}]}]},{"id":"6d078051-e185-4b4c-82a7-c8851e5d272e","topic":"3. 连接释放","expanded":true,"children":[{"id":"a28110a8-01f4-4433-bb47-62e5ae6f467f","topic":"发送QUIT命令","expanded":true,"children":[{"id":"10267100-a9dd-4c25-a2fa-31c86e29fce9","topic":"服务器返回221（服务器关闭），则表明同一TCP连接释放","expanded":true}]}]}]}]},{"id":"816840db-9aef-46a0-9346-0b3f16c019aa","topic":"MIME","expanded":true,"children":[{"id":"569ecaf5-4bae-4491-b136-f80023a66009","topic":"多用途网际邮件扩充(MIME)","expanded":true},{"id":"92f70279-496d-4bfd-b668-f359994936ba","topic":"并未改动SMTP，而是继续使用SMTP的结构，增加了新的内容","expanded":true},{"id":"d33f8d69-8f37-4672-b37c-4881cb66b0ed","topic":"新增：","expanded":true,"children":[{"id":"5b46faf5-a229-4ea2-81e5-51d109345485","topic":"1. 新的邮件首部，包括MIME版本、内容描述、内容标识、传送编码、内容类型","expanded":true},{"id":"73bb98b9-9ec6-4921-82dd-a7cc4d2923a1","topic":"2. 定义了许多邮件内容格式，对多媒体电子邮件表示方法进行了标准化","expanded":true},{"id":"4b2df381-bea0-4184-977f-c0a939b7cb98","topic":"3. 定义了传送编码，可以对任何内容格式进行转换，不会被邮件系统改变","expanded":true}]}]},{"id":"e7e4343c-459d-4fd4-890e-0808f17028d8","topic":"POP3","expanded":true,"children":[{"id":"a12ef223-13a6-45d0-af73-ab4e334b9dc4","topic":"邮局协议","expanded":true},{"id":"be325796-6a2c-4196-9013-88c518097722","topic":"端口号110，使用TCP","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"de53c148-bf79-4aec-843e-4477fa55ae2f","topic":"两种工作方式：","expanded":true,"children":[{"id":"03953f1e-0302-43a4-8c84-ad4a8e2dfb89","topic":"下载保存","expanded":true},{"id":"4e5a04fe-179e-4014-b53d-f8b271833823","topic":"下载删除","expanded":true}]}]},{"id":"6f016e84-6d7a-4b3e-aae8-073bd94ac0f3","topic":"IMAP","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"762d190e-076c-44fe-a29d-7ea5f621fbdf","topic":"因特网报文协议","expanded":true},{"id":"388d30db-eef6-46e5-9afe-75b15bca448c","topic":"提供了创建文件夹、在不同文件夹之间移动邮件和在远程文件夹中查询邮件的联机命令","expanded":true},{"id":"27093692-65ab-4ae9-8b96-403336af3da5","topic":"可以允许用户只读取邮件中的一个视频/音频而不用全部","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"e8bb5ee9-35ec-409e-a874-2715cc458e69","topic":"和FTP的NFS模式很像","expanded":true}]}]}]}]},{"id":"03690f3d1d1a9ccd0aa0882974","topic":"万维网和HTTP","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-4f42fbe15b7934.svg"},"children":[{"id":"2938303402c8730c5cda8bf6e9","topic":"WWW的三个部分","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"4d9b93bf1c7b17bb3dabd8f2fa","topic":"1. URL","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"b1a89848444b0b573b7d39b6a3","topic":"<协议>://<主机>:<端口>/<路径>","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"f7ef3e88-7d25-43ee-b521-3ebffcc3cfc0","topic":"例：http://172.0.0.1:8080/index.html","expanded":true}]}]},{"id":"696b03dff9aaa98f43ed3badfd","topic":"2. HTTP","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"948a5844be3ac0d2e0fb086a28","topic":"使用TCP，是WWW中客户程序和服务器程序交互必须遵守的协议","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"da08b60dcc0a1d3523089b6dfa","topic":"3. HTML","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"dc4a09a5b8cac1a7900d7ad474","topic":"文档结构语言，使用约定的标记对页面的各种信息、格式进行描述","expanded":true,"style":{"background":"#FDD834"}}]}]},{"id":"816b7009e3abf98dcb1e0b20cf","topic":"HTTP协议","expanded":true,"children":[{"id":"417b2ef875b9d37caef9285e0c","topic":"连接步骤","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"9f9b007a536b28dcfa11397b64","topic":"1. 浏览器进行DNS解析指向页面的URL，返回IP地址","expanded":true,"style":{"background":"#FF9595"}},{"id":"c489ca74bf4b840da4fe9a8c0b","topic":"2. 浏览器与IP地址服务器进行TCP连接（端口80）","expanded":true,"style":{"background":"#FF9595"}},{"id":"88382ea35bca80358883aab55d","topic":"3. 连接完毕后，发送HTTP请求(GET/POST/PUT ... )","expanded":true,"style":{"background":"#FF9595"}},{"id":"5a89f5a4cff9968b4f5a19be37","topic":"4. 服务器返回HTTP响应，把文件发回给浏览器","expanded":true,"style":{"background":"#FF9595"}},{"id":"c5c830339918243bc2eb9b923d","topic":"5. 释放TCP，浏览器解析文件，展示Web页面","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"9c3b4f52e2595dee157959827f","topic":"特点","expanded":true,"children":[{"id":"466e98f1-1f22-4dea-8db3-c64490dc80cc","topic":"HTTP本身是无连接的","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"9b1e2bce-7f50-45b9-88e5-a422ab7cc1ab","topic":"使用了TCP连接后，HTTP便可直接发送数据，而不用像FTP、SMTP那样建立FTP连接和SMTP连接","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"b97b7d20f03b272ab07c187125","topic":"无状态","expanded":true,"children":[{"id":"1cb0ce20-5427-49de-b687-24ce5a980ea5","topic":"无状态：","expanded":true,"children":[{"id":"65cce5df-8953-4ac9-98fc-72ba01439c3f","topic":"HTTP服务器不存储HTTP客户的访问记录","expanded":true}]},{"id":"c9790eaeae6b719f17a189150c","topic":"使用Cookie去优化 '无状态' 的特点","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"6279af60-bd50-4917-80de-da558b5a5480","topic":"服务器给用户的响应报文中添加set-cookie:123456","expanded":true,"style":{"background":"#8EDE99"}},{"id":"fe981426-8198-40de-8495-e99e20d79e04","topic":"用户再次访问这个网页时，会取出cookie标识符，写入到请求报文中：cookie:123456","expanded":true,"style":{"background":"#8EDE99"}},{"id":"becb5b8e-926b-49e5-9050-3d202fa12c51","topic":"存在用户主机中","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"0d3aa0d101c87e917aaa0bfd81","topic":"连接特性","expanded":true,"children":[{"id":"3c88a0d954b9b7348942aa35ba","topic":"非持久连接","expanded":true,"children":[{"id":"e538c06c75f8e5de8aded9a725","topic":"HTTP/1.0的默认方式，1.1也可以使用这种","expanded":true},{"id":"8cca9b071859aecf9ec33b9f22","topic":"每次请求网页元素的时候都需要进行一次TCP连接","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"9b19bf1a1d583b633296592495","topic":"持久连接","expanded":true,"children":[{"id":"2909ad0eb919d4ada92cb9c020","topic":"非流水线","expanded":true,"children":[{"id":"f0fa6a6e73e96d8d853c788360","topic":"类似停等协议的请求/接受方式","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"ad2a482102e854dba4aa8abed6","topic":"流水线","expanded":true,"children":[{"id":"989a5cb6929b04493a57994bd4","topic":"HTTP/1.1的默认方式","expanded":true},{"id":"5d7a95c496a87e7938ccdb79e8","topic":"类似GBN+SR的请求/接受方式","expanded":true,"style":{"background":"#FDD834"}}]}]}]}]}]},{"id":"13fa32e9803adc11aaa6e87479","topic":"HTTP报文","expanded":true,"children":[{"id":"dedb30fc4d2b89b323573bc1d0","topic":"请求报文/响应报文","expanded":true,"children":[{"id":"fed14bc6-0020-4e54-bbd9-0f62dca739a5","topic":"HTTP 是面向文本的(Text-Oriented），因此报文中的每个字段都是一些 ASCII 码串，并且每 个字段的长度都是不确定的。有两类HTTP 报文：","expanded":true,"children":[{"id":"88a15a3b-41e5-4073-a3d2-50a8ae2e1821","topic":"请求报文：从客户向服务器发送的请求报文","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-0eaaf0aa7ec8b0.png","width":452,"height":332},"children":[{"id":"c22e775d-8077-4ffb-872f-562e39fa64e2","topic":"响应报文：从服务器到客户的回答","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-8f7a57a5825496.png","width":417,"height":329}}]}]},{"id":"950cdd0c-5dea-449a-9fa4-8f9f46af65bf","topic":"开始行 = 请求行/状态行","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"b7c9cd79-5596-4367-99e8-22b98592b7ba","topic":"用于区分是请求报文还是响应报文","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"e371b790-3ca0-438a-9938-8c53055307ec","topic":"没有规定固定长度","expanded":true},{"id":"d202249c-1bd9-4088-9ec0-e21b670e3b93","topic":"首部字段：","expanded":true,"children":[{"id":"3c17198f-0028-4889-85ff-2cc80bd2cb14","topic":"cookie:","expanded":true,"children":[{"id":"a436b93a-2559-4955-a911-c32f57ad1be8","topic":"+一个string","expanded":true}]},{"id":"31f1d014-75e9-46a2-9ef0-5b504c78816d","topic":"connection:","expanded":true,"children":[{"id":"fde1acd3-2fc4-4d51-8012-80599846d6d9","topic":"close","expanded":true,"children":[{"id":"703aa84b-bc33-42e4-8300-7c3094c0ece7","topic":"非持续","expanded":true}]},{"id":"5e9e4c33-6336-4c41-9caf-3d70b557ec73","topic":"keep-alive","expanded":true,"children":[{"id":"9d648731-cab7-425a-8931-bbb06fa3a7dc","topic":"持续","expanded":true}]}]}]}]},{"id":"b62b64c6b67bfda6161bfbed54","topic":"具体示例","expanded":true,"children":[{"id":"87e09969-d916-4cdf-8495-26f9f064a990","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-59561c20a00e6f.png","width":412,"height":273},"children":[{"id":"5657196c-2d08-4077-ae27-d40df9c633a2","topic":"以太网帧中","expanded":true,"children":[{"id":"7e60a735-92aa-4145-a5d4-5aa8d38e59c2","topic":"1~6 B 是目的MAC","expanded":true},{"id":"a42b9d2e-7169-4ae0-aa9b-5ea8060253ad","topic":"7~12 B 是本机MAC","expanded":true},{"id":"14076dad-5d33-42fe-85bd-5e3f87651add","topic":"15~34 B 是IP数据报首部","expanded":true},{"id":"8988622c-e914-416b-a246-dd2b961f31f4","topic":"27~30 B 是原IP地址","expanded":true},{"id":"219b12af-560d-40a9-acc0-fa914e36ec88","topic":"31~34 B 是目的IP地址","expanded":true},{"id":"4ad00ebc-a8c8-4b46-9663-4a1495668553","topic":"35~54 是TCP报文段的首部","expanded":true},{"id":"51a32284-c8a5-4076-9680-cd4065be0ad3","topic":"后面就是TCP数据部分","expanded":true}]}]}]},{"id":"53f5199e-dc80-4320-8ba3-64aad65696d8","topic":"长度","expanded":true,"children":[{"id":"ca165a91-a425-4778-974f-36998ad93fd8","topic":"MAC帧：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"7d008c84-b12e-4350-b857-b6db2f99e3b0","topic":"6+6+2+数据报+4","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"7dedff35-ae43-4fa5-9b66-ba597d541870","topic":"IP数据报：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"51966b69-b237-45b4-9d8a-9e6942b92355","topic":"20+TCP数据段","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"8d7a4308-3d31-49fc-95d0-da83bbfb4529","topic":"TCP数据段：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"3bd5cb38-5182-4020-bc43-a7011ed16b62","topic":"20+HTTP报文","expanded":true,"style":{"background":"#FF9595"}}]}]}]},{"id":"2a4b72dc-212b-4833-a74c-92a8b175ab88","topic":"考频：高","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"b55f3b1d-bc3c-416c-b4a1-cb3b8870ae16","topic":"14、15、22、11大、21大","expanded":true}]}]},{"id":"e78a8239c7c816d6c3e0cb346f","topic":"END","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-c2539473d179e5.svg"},"children":[{"id":"2a1c02f4-d10d-459a-9262-2a3bd9b67238","topic":"整章都没有密码加密","expanded":true}]}]},"summaries":[{"id":"0ec3db90-3ccb-494c-9b4a-4a567f44f66d","parentId":"c85902b716d83985aaab687b1d","start":0,"end":1,"label":"面向任务"},{"id":"24cf448e-465e-4a69-b772-696071bd6f1a","parentId":"f7a84b450e4af3057129aadca5","start":0,"end":3,"label":"面向客户"},{"id":"7bdb4aae3559306b66853a4860","parentId":"ce5b9ed4ba48694f03714ad3da","start":0,"end":1,"label":"不存在一直在线的服务器"},{"id":"8b9b51e2eb38e7c31f43a8fa9a","parentId":"5b0b7b52e6c8638e01af1bb4c1","start":2,"end":2,"label":"可以直接共享文档"},{"id":"eedb167e8cfb20c3ea6fab6177","parentId":"c14a857fed183ac6cf2ca8ff27","start":2,"end":3,"label":"都由授权域名服务器管辖"},{"id":"1b5bafdae91af14359d54bcfb5","parentId":"f528efd8563a12c43329e9a25b","start":0,"end":1,"label":""},{"id":"72c8e12f-715a-4e61-9467-85f7fa41b575","parentId":"0ba8cf49-5b36-45c7-983b-e72edc7f3d12","start":0,"end":0,"label":"只有这一步是需要解析软件实现的，后续都自动完成"},{"id":"8d94f62f-91fc-471e-a5d6-7cbda85eef45","parentId":"11388145cf8a108169aa8ace92","start":0,"end":1,"label":"只有控制+数据两个连接，没有其他连接"},{"id":"60c1295c-0f7d-4ce9-91ed-e678830ad053","parentId":"192ede53-6118-40db-8ae3-8219fac755f0","start":0,"end":0,"label":"如qq邮箱、Gmail，用户使用浏览器操作这类邮件服务器【发送和接受】使用的HTTP，仅在【不同邮件服务器之间传送邮件】用的SMTP"},{"id":"b5dad159-9e95-4947-8bd2-dc2d45dd80de","parentId":"417b2ef875b9d37caef9285e0c","start":0,"end":4,"label":"举例："},{"id":"71e78edf-8fc6-46c9-85d7-96d6966b88ce","parentId":"3c88a0d954b9b7348942aa35ba","start":0,"end":1,"label":"进行N次访问要2N个RTT"},{"id":"c4636e01-50d8-4f7b-b699-20e313c748d7","parentId":"2909ad0eb919d4ada92cb9c020","start":0,"end":0,"label":"进行N次访问要N+1次RTT"},{"id":"6b3fae44-0b93-4b4b-b95c-85666c6a0c8d","parentId":"9b19bf1a1d583b633296592495","start":1,"end":1,"label":"进行N次可能只用2次RTT"}],"boundaries":[{"id":"756ebcb9-e8bb-40d9-9a30-1b5a5efc936a","parentId":"55d57f11-4e21-4ea9-98a3-3eb1dd27210b","start":2,"end":3,"label":"只用于读取邮件","style":{"stroke":"#05A8F4"}},{"id":"fa1483b3-4f90-46b8-9b68-25f24e80cf1e","parentId":"55d57f11-4e21-4ea9-98a3-3eb1dd27210b","start":0,"end":1,"label":"只用于发送邮件","style":{"stroke":"#4051B5"}}]}