{"format":"brushup-mindmap-v1","id":"03-data-link-layer","title":"数据链路层【王道】","structure":"logic-right","theme":"auto","root":{"id":"eb59967a66297f4f6f1419dc17","topic":"第三章 数据链路层","expanded":true,"children":[{"id":"e7aa5479d3b984f9541ab945be","topic":"数据链路层概述","expanded":true,"children":[{"id":"4e0b3112-be39-4229-8445-a382eb411a13","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-15d94a0b3d137e.png","width":592.92,"height":225.14},"children":[{"id":"4aa96af1-f788-48be-a157-8c7f918d0d26","topic":"链路：从一个结点到相邻结点的一段物理线路，而中间没有任何其他的交换结点","expanded":true},{"id":"e499478f-ec84-443e-b53f-6243f0660ed1","topic":"数据链路：是指把实现通信协议的硬件和软件加到链路上，就构成了数据链路","expanded":true},{"id":"24f08548-fb35-41ba-9c85-53731ce91c59","topic":"数据链路层以帧为单位传输和处理数据","expanded":true}]},{"id":"4551f30f-7013-4ce2-b9e2-c5922a3d744a","topic":"点对点信道的数据链路层（三个问题）","expanded":true,"style":{"branchColor":"#EA8ABA"},"children":[{"id":"482f6fac-1133-4819-985d-25554e82bee7","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-dcbc461f7d8502.png","width":241.25,"height":20.52},"children":[{"id":"b77b94a4-3e3e-468b-99c1-17847b7c88d5","topic":"点对点信道","expanded":true}]},{"id":"a2dd06a1-6911-4d08-bb76-5df14edc4413","topic":"封装成帧","expanded":true,"children":[{"id":"1c32a12e-6d71-4f3c-ae44-6bcc7f98d8f3","topic":"数据链路层给网络层协议数据单元添加一个帧头（数据链路层协议首部）和帧尾的操作，称为封装成帧","expanded":true}]},{"id":"5b904362-162a-427a-b70b-197c2abe655a","topic":"差错检测","expanded":true,"children":[{"id":"a3192f44-1ae6-4a3c-80e8-e00f0a8900c2","topic":"使发送方确定接收方是否正确收到由其发送的数据的方法","expanded":true,"children":[{"id":"e764a11d-2bd7-47a3-b823-b8416483ba47","topic":"位错：数据中的某些位出现错误","expanded":true},{"id":"ad09d970-fe73-415c-abe6-97ee2355d987","topic":"帧错：帧的丢失、重复或失序等错误","expanded":true}]}]},{"id":"e4b67280-6edd-4cdf-ad33-46cf095731d8","topic":"可靠传输","expanded":true,"children":[{"id":"1a030bb0-c101-4415-b0d3-5801e5e55d4a","topic":"尽管误码是不能完全避免的，但若能实现发送方发送什么，接收方就能收到什么，就称为可靠传输","expanded":true}]}]},{"id":"a9b525ac-9838-4dc6-8065-0615b9e43ad9","topic":"广播信道的数据链路层","expanded":true,"children":[{"id":"5a7103fa-6456-4104-8d4e-9a515232ff7f","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-6339dde1a9af7e.png","width":386.27,"height":76.55},"children":[{"id":"53493bd0-1d47-40a9-a0da-42d7d5a31f6a","topic":"编址问题（广播信道上主机如何知道收到帧是不是自己的）","expanded":true,"children":[{"id":"63ff416a-b3a0-4dda-8a32-19eca16a95ff","topic":"将帧的目的地址、源地址添加在帧中一起传输","expanded":true}]},{"id":"519412e2-d0d0-40b9-9c2a-f71376f32ddb","topic":"冲突问题（总线上多台主机同时使用总线传输帧，传输信号产生碰撞）","expanded":true,"children":[{"id":"461c8251-2c65-4754-9512-045abd5dbe17","topic":"采用特殊协议（CSMA/CD等）","expanded":true}]}]}]},{"id":"636feefe-a5de-401d-86b7-a9dca5e23b91","topic":"交换式局域网（使用点对点链路和链路层交换机）","expanded":true,"style":{"branchColor":"#EA8ABA"},"children":[{"id":"308ce9b3-b4e9-4135-aaef-6264049ab2e7","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-da0b5eb2ffcfeb.png"},"children":[{"id":"afb7133d-4f28-4dac-9e51-98e31ba8c991","topic":"网桥和交换机的工作原理","expanded":true}]}]},{"id":"633968c6-3803-437c-b81b-de0f18a2bb44","topic":"无线局域网","expanded":true,"children":[{"id":"85a2e25a-9517-44df-83f4-3977a1a43e05","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-a1e6670c46bca0.png"},"children":[{"id":"43c1aafe-9754-40e6-a8b1-70743dd389bb","topic":"CSMA/CA协议","expanded":true}]}]},{"id":"82ea0ace-532d-49f6-9d4f-49de57d12573","topic":"数据链路层功能","expanded":true,"children":[{"id":"00c74102-755f-4768-ad21-ef7858e1f11a","topic":"为网络层提供服务","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"71888e4c-13db-4e30-a2dd-10e3f8586ea6","topic":"无确认的无连接服务","expanded":true},{"id":"f94d95de-8db1-41c3-8eeb-370e109851c7","topic":"有确认的无连接服务","expanded":true},{"id":"14fb8af6-e27a-4f18-b108-a4341d4796de","topic":"有确认的面向连接服务","expanded":true}]},{"id":"32f43268-7d25-40e8-a9e0-568b2715ff9f","topic":"链路管理","expanded":true,"children":[{"id":"2aef6c49-51f0-42cb-b9f6-8871943dd4ee","topic":"连接的建立、维持、释放","expanded":true}]},{"id":"d5b95553-e117-44ab-8acf-57e9fc991cc5","topic":"帧定界、帧同步、透明传输","expanded":true,"children":[{"id":"8e5bad37-cc67-4e21-97ef-3dd0026f9d4c","topic":"组帧","expanded":true}]},{"id":"09363367-6f15-48e2-af85-2c2190578904","topic":"流量控制","expanded":true,"children":[{"id":"61a17986-f486-40f7-bfe2-583266643912","topic":"限制发送方，链路层控制相邻两结点之间数据链路上的流量","expanded":true}]},{"id":"b9d8a338-4e00-4839-93d9-a9d2123746c4","topic":"差错控制","expanded":true,"children":[{"id":"9f4a0ff4-5cf4-4597-8d58-44dee58701b3","topic":"位错和帧错的处理","expanded":true}]}]}]},{"id":"9ee957f5185ab790302a8bf1fb","topic":"封装成帧","expanded":true,"children":[{"id":"b54c3e67-dbf4-4adb-9b28-bdee4b48f653","topic":"封装成帧是指数据链路层给上层交付的协议数据单元添加帧头和帧尾，使之成为帧","expanded":true,"style":{"borderColor":"#FF9F00"},"children":[{"id":"922af480-a434-4076-bfe3-2aff39a657c3","topic":"帧头和帧尾中包含有重要的控制信息","expanded":true,"children":[{"id":"eee7330f-4d9d-498d-a97b-cfc23eccf431","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-c62256f42b9563.png","width":445.34,"height":88.22},"children":[{"id":"0b30d13c-0096-4d50-b823-e1294b9d34dd","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-d40c46a954038b.png","width":424.37,"height":78.85}}]}]},{"id":"76a00f4a-f81f-488d-a5ce-0e757c50ceb9","topic":"帧头和帧尾的作用之一是帧定界","expanded":true,"children":[{"id":"7c4566eb-dfee-4513-9584-1c33796bfef2","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-c8f642e171b982.png","width":568.05,"height":63.74},"children":[{"id":"bc0e972b-ae14-4774-a3b6-76fe70cb0cb0","topic":"PPP帧格式的标志字段","expanded":true}]},{"id":"8fc8e3a9-28c7-4ffb-a9ea-12355d3a0b95","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-cf688bd12a4820.png","width":571.28,"height":81.88},"children":[{"id":"1b706a14-e249-4ba2-af6e-58fde4732714","topic":"MAC帧没有帧定界标志字段，采用前导码","expanded":true}]}]}]},{"id":"bb721ca5-0eff-433c-9083-84c47e9eb00a","topic":"透明传输（四种方法）","expanded":true,"style":{"borderColor":"#E32C2D","branchColor":"#15831C"},"children":[{"id":"a66bbf0d-6c6c-478f-b8d0-c296f8cf3ee5","topic":"概念","expanded":true,"children":[{"id":"0c3b00d3-af05-420f-9e71-7821bcb572cb","topic":"是指数据链路层对上层交付的传输数据没有任何限制，就好像数据链路层不存在一样","expanded":true}]},{"id":"623f767d-fb7d-48f5-8521-e4242351ea5d","topic":"字符计数法","expanded":true,"children":[{"id":"5d037179-7587-4a95-9371-6da81e46df58","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-34522166674759.png","width":306.91,"height":65.77},"children":[{"id":"7d0dfaa1-a55b-4d6d-b896-09d112d47e63","topic":"在每个帧头部使用一个计数字段来标明帧内字符数","expanded":true},{"id":"4df5a446-5a5d-4d2f-988d-a9b75c144720","topic":"缺点","expanded":true,"children":[{"id":"08e73bbc-8694-466e-ab47-27a4e1bae410","topic":"如果计数字符出错，则失去帧边界划分的依据，收发双方将失去同步而导致严重错误","expanded":true}]}]}]},{"id":"737c6123-62c1-44b0-b54f-2c240fd2ad97","topic":"字符填充的首尾定界符法","expanded":true,"children":[{"id":"36dd9593-94da-42c2-9ec5-7e930b4e83db","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-5027d8de0b1fd5.png","width":356.94,"height":33.89},"children":[{"id":"b3a4ab2b-5346-428b-adf4-57f4a4a9905f","topic":"使用一些特殊的字符来定界一帧的开始与结束flag","expanded":true},{"id":"afbe9cc4-4132-4248-ab1b-645d30e63277","topic":"在信息位中，在特殊字符前面要填充一个转义字符ESC，防止特殊字符被误判为帧的首尾定界符","expanded":true}]}]},{"id":"6d8c8258-2d41-4b6c-be6a-bd72e186356d","topic":"零比特填充的首尾标志法","expanded":true,"children":[{"id":"5afda450-0ab6-418b-8e0b-1234252ac51b","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-fe0ddf668d1f8a.png","width":367.86,"height":73.45},"children":[{"id":"8852a902-f44e-4125-98fa-14c461dbb5d4","topic":"使用一个特定的比特序列，即01111110来标志一帧的开始和结束\n发送信息时，遇到五个连续的1就自动在后面加0；\n当收到信息时，遇到5个连续的1就自动在后面减0；（可硬件实现，性能优于字符填充法）","expanded":true}]}]},{"id":"0e0d897f-88d1-4821-ada6-7ebbfa3fef88","topic":"违规编码法","expanded":true,"children":[{"id":"68df8086-6207-4da4-8066-37825df52fb4","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-6e7fcad6d305a4.png","width":325.36,"height":73.95},"children":[{"id":"79ca1ab4-9ad0-48b7-8022-3e7e72ae033f","topic":"可以采用违规编码序列来界定帧的开始和结束","expanded":true},{"id":"08d57e51-b6ba-4450-b6be-fefe1260734c","topic":"例如曼彻斯特编码只有“高-低”、“低-高”，通过“高-高”、“低-低”界定","expanded":true}]}]}]},{"id":"c5854402-72dc-4b7c-9e18-573d62c9a904","topic":"为了提高帧的传输效率，应当使帧的数据部分的长度尽可能大些","expanded":true,"children":[{"id":"7f5d8120-d6fd-42ec-a48a-255594c2b13a","topic":"考虑到差错控制等多种因素，每一种数据链路层协议都规定了帧的数据部分的长度上限，即最大传送单元MTU","expanded":true,"children":[{"id":"b176c2c0-d54d-4b9a-9816-4179ed92c5f4","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-c0847363e0bce3.png","width":279.33,"height":51.1}}]}]}]},{"id":"28dab9151ada675650c5db4426","topic":"差错控制","expanded":true,"children":[{"id":"f6bb8f2a-e29b-4853-b011-46203ac9f64e","topic":"概述","expanded":true,"children":[{"id":"c3ed69e7-043c-47f2-8bb8-bfa832699c2c","topic":"实际的通信链路都不是理想的，比特在传输过程中可能会产生差错：1可能会变成0，而0也可能变成1，这称为比特差错","expanded":true},{"id":"0c2f6c58-af2d-4a4d-a6ad-b2a45d502e7c","topic":"使用差错检测码（帧格式中FCS字段）来检测数据在传输过程中是否产生了比特差错，是数据链路层所要解决的重要问题之一","expanded":true},{"id":"7b50abf2-8b8e-4bc3-95d5-76378ccb1fef","topic":"避免帧丢失采用计时器超时重发，避免帧重复采用帧编号机制","expanded":true}]},{"id":"728b9a84-7307-4bbb-b6ac-05b040052c3c","topic":"检错编码","expanded":true,"style":{"borderColor":"#E32C2D","branchColor":"#BA69C8"},"children":[{"id":"2592668d-39f3-4803-8fd4-0de4addff8b9","topic":"奇偶校验码","expanded":true,"children":[{"id":"6104081e-fd70-4ca7-8279-b4ffe5ee5991","topic":"n-1位数据和1位校验位（前面）组成，校验位用于调节发送信息中的1的个数是偶数还是奇数","expanded":true}]},{"id":"1f90e049-e5f4-4420-8fea-e5ce86b95640","topic":"循环冗余码 CRC","expanded":true,"children":[{"id":"851ebe07-9d9a-4f43-89fc-229daf8aa3b5","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ea7de75148f55a.png","width":768,"height":246.14},"children":[{"id":"7a4030e5-17cc-487c-b198-b4e8d386d62c","topic":"任何一个由二进制数位串组成的代码都可以与一个只含有0和1两个系数的多项式建立一一对应关系","expanded":true},{"id":"2fb8521a-7e2d-4edc-926e-fa7842dc0944","topic":"步骤","expanded":true,"children":[{"id":"f2a7bed1-701e-47db-ae53-96f0c878487e","topic":"收发双方约定好一个生成多项式G(x)","expanded":true},{"id":"f4918af6-a312-468f-a2b9-375e3c930fa7","topic":"由生成多项式最高阶r，在待发送的数据低位端加上r个0","expanded":true},{"id":"beaca102-ef35-4156-b13c-ff9234cab4fe","topic":"模2除：利用模2除法，用待发送的数据去除G(x)，得到的余数即为冗余码","expanded":true}]}]}]}]},{"id":"962efb94-333f-499d-b054-55c70928caf4","topic":"纠错编码","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"30ceba91-15f4-4907-a6bb-a63621702c96","topic":"海明码","expanded":true,"children":[{"id":"ffebf1ed-2837-41db-98c9-2173d01e0cc5","topic":"原理","expanded":true,"children":[{"id":"852cde9a-feb9-4f01-a30b-ae62334db48a","topic":"在有效信息位中加入几个校验位形成海明码，并把海明码的每个二进制位分配到几个奇偶校验组中，当某一位出错后，就会引起有关几个校验位的值发生变化，可以发现并确定错位的位置","expanded":true}]},{"id":"9cb4998f-6435-4d70-a0bb-86f8be18c3a8","topic":"海明距离","expanded":true,"children":[{"id":"682b1854-1232-4612-9574-45873dca1a0f","topic":"两个合法编码的对应比特取值不同的比特数称为码距，又称海明距离\n一个有效编码集中，任意两个合法编码的海明距离的最小值，称为该编码集的海明距离","expanded":true}]},{"id":"4d823b9b-ac45-4884-a8d1-4508d1708936","topic":"过程","expanded":true,"children":[{"id":"6649fe80-e4e0-450c-a14f-6cdad57c7ff8","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-a5a9f0041a7d19.png","width":415.7,"height":250.21},"children":[{"id":"6e943dab-6960-4449-8155-b60082e299a6","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-8c8fdc61bc6e79.png","width":532.43,"height":245.74},"children":[{"id":"f01fd858-af96-4799-a992-b5c2a672eb88","topic":"设m为有效信息的位数，r为校验位的位数--->校验码一共有2^r种取值，有海明不等式：","expanded":true,"children":[{"id":"421174c4-d82b-4b4f-9096-17bcdb2b8c76","topic":"2^r >= m+r+1（公式中1表示成功状态位，若要检测两位错，则需再增加1位校验位，即r+1）","expanded":true,"style":{"borderColor":"#EB4D3D"}}]},{"id":"78481bf0-f946-469d-a48f-59120c92a73d","topic":"确定校验位的分布","expanded":true,"children":[{"id":"4d33b599-23fe-4b54-adef-237ea1d4bb87","topic":"规定校验位在海明位号为2^(k-1)上，其余为信息位","expanded":true}]},{"id":"3f4ff69f-5e73-4393-bc5b-30f35a2965cf","topic":"分组形成校验关系","expanded":true,"children":[{"id":"a45b9e8a-7244-4c52-9560-98adb4eeb539","topic":"被校验数据位的海明位号等于校验该数位的各校验位海明位号之和","expanded":true}]},{"id":"62d76e22-bca5-4cd4-b73f-84c0750fbb77","topic":"校验位取值","expanded":true,"children":[{"id":"05ac7a24-8d21-4f8d-95c5-94278cddb445","topic":"校验位的值为对应组的所有位求异或","expanded":true}]},{"id":"7e1df81b-a269-48dc-a769-bd3424663606","topic":"海明码的校验原理","expanded":true}]}]}]}]}]},{"id":"45e6158b-28d8-42ee-b10e-90b96abf6748","topic":"检验和纠错所需位数","expanded":true,"style":{"borderColor":"#E32C2D","branchColor":"#BA69C8"},"children":[{"id":"c2c3b97d-43e6-4499-bc4e-cf8a59763bb1","topic":"要点","expanded":true,"children":[{"id":"2227a542-6615-4968-837b-8b86f6191d8f","topic":"检验","expanded":true,"children":[{"id":"7ba3f9e7-70b6-4693-8d0e-a0446dae786b","topic":"纠错","expanded":true}]}]},{"id":"b3a04a0f-fb7a-4381-9b18-bfe85403fb9c","topic":"位数","expanded":true,"children":[{"id":"3c4fe349-3e79-437f-906d-19716a774a85","topic":"d","expanded":true,"children":[{"id":"2b18e3ec-c6f7-4c90-8ee6-9d2441f3d096","topic":"d","expanded":true}]}]},{"id":"40becc14-ba01-44b4-b270-8a9bcbec3351","topic":"需要的总位数","expanded":true,"children":[{"id":"e7e992b5-4853-44a4-9d96-91c8560a67b6","topic":"d+1","expanded":true,"children":[{"id":"07151466-37d7-484f-9f02-7f280f98b673","topic":"2d+1","expanded":true}]}]}]}]},{"id":"4428cd2ade58f9a4f7e44b80f6","topic":"流量控制与可靠传输机制","expanded":true,"children":[{"id":"c0363b86-8221-4eab-a0da-169e794b8503","topic":"基本概念","expanded":true,"children":[{"id":"a9e53d3a-ba1a-4a17-8f23-a2e4e0dce69c","topic":"流量控制","expanded":true,"children":[{"id":"f6c2994b-560f-4d80-9787-5fa95f521592","topic":"流量控制涉及对链路上的帧的发送速率的控制，以使接收方有足够的缓冲空间来接收每个帧（数据链路层，点到点；传输层也有流量控制，端到端）","expanded":true}]},{"id":"b85789f7-7bfa-480b-aaa4-98810364b5bc","topic":"可靠传输","expanded":true,"children":[{"id":"ac018c72-7890-4206-8c27-35d81295ff20","topic":"尽管误码是不能完全避免的，但若能实现发送方发送什么，接收方就能收到什么，就称为可靠传输","expanded":true,"children":[{"id":"144a4651-c80a-44f3-9b29-03cc986c77b9","topic":"确认机制","expanded":true},{"id":"80b0e94d-9cb3-46f0-b8c3-a9ed1ec300fd","topic":"超时重传机制","expanded":true}]}]},{"id":"0e38ca89-a7b3-4865-93bb-5e845d3546b2","topic":"传输差错","expanded":true,"children":[{"id":"bf2c93d2-0520-4421-b0ed-c58aa565cb09","topic":"比特错误：使用差错检测技术，接收方的数据链路层就可检测出帧在传输过程中是否产生了误码","expanded":true},{"id":"7ea75642-5db4-41c7-9ef7-eefebcb98e23","topic":"分组丢失、分组失序和分组重复：一般不出现在数据链路层，而在上层","expanded":true}]},{"id":"9677eb2b-1ef5-43da-98af-32a47b2a6bd9","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-6d791faea0e17a.png","width":605.3,"height":175.3},"children":[{"id":"f9a7bf5d-0694-4eb4-a7ca-0bb3e77cabd4","topic":"一般情况下，有线链路的误码率比较低，为了减小开销，并不要求数据链路层向上提供可靠传输服务。即使出现了误码，可靠传输的问题由其上层处理","expanded":true},{"id":"fc82b65c-738f-4cd1-818f-41559649bc80","topic":"无线链路易受干扰，误码率比较高，因此要求数据链路层必须向上层提供可靠传输服务","expanded":true}]},{"id":"65e54e17-a6de-4221-bde2-9540682c5c9d","topic":"滑动窗口基本概念","expanded":true,"children":[{"id":"41c76b32-59e3-4cf4-b272-f98556595170","topic":"发送（接收）方维持一组连续的允许发送（接收）的帧的序号，称为发送（接收）窗口","expanded":true},{"id":"d0248b4e-30b7-406c-b154-d06d184e1d84","topic":"发送方","expanded":true,"children":[{"id":"620010a3-b4b0-4988-bba0-012efd04a04c","topic":"发送窗口的大小代表在还未收到对方确认信息的情况下发送方最多还可以发送多少个数据帧。只有发送方接收到确认帧后发送窗口才可能向前滑动","expanded":true}]},{"id":"f25a8b25-131c-4ee2-8d47-16a17cfc570b","topic":"接收方","expanded":true,"children":[{"id":"1fad6274-3d17-4752-87dd-e429962a88a9","topic":"只有收到数据帧的序号落在接收窗口内，才允许将帧收下，否则丢弃","expanded":true}]},{"id":"b42d9e5f-3932-4ada-ab95-5760ffd072d5","topic":"帧缓冲区","expanded":true,"children":[{"id":"ed86985e-5b0e-4671-90e9-c92ae9cbc163","topic":"目的","expanded":true,"children":[{"id":"64f49a10-60e8-4ec5-9649-2b98ec63bd2a","topic":"为了超时重发和判定重复帧的需要","expanded":true}]},{"id":"5b66466b-6bc2-4122-9f09-12a38d56ad9b","topic":"实现方式","expanded":true,"children":[{"id":"c9d92d0e-3efd-4210-a267-f987b34b42f9","topic":"发送端在发送完数据帧时，必须在其发送缓存中保留此数据帧的副本，这样才能在出错时进行重传（只有收到确认帧ACK时，才删除副本）","expanded":true}]}]}]}]},{"id":"44a95491-004b-4178-be71-9237c9dc652e","topic":"停止-等待协议 SW","expanded":true,"style":{"borderColor":"#E32C2D","branchColor":"#EA8ABA"},"children":[{"id":"55b8d81d-21b7-4b21-bb7f-a0cfa984faf3","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-5d7fd6daaed5c9.png","width":583.31,"height":225.97},"children":[{"id":"b48f6a26-893d-4916-915f-2659e3ed04fb","topic":"从滑动窗口机制的角度看，停止-等待协议相当于发送窗口和接收窗口大小均为1的滑动窗口协议","expanded":true},{"id":"3204eb1b-4d14-496d-8d33-4d9a56817c19","topic":"超时重传","expanded":true,"children":[{"id":"8d303f51-661d-43a4-86ab-0dc14b337d1c","topic":"接收端检测到数据分组有误码时，将其丢弃并等待发送方的超时重传","expanded":true},{"id":"5dc0b7f0-6983-4984-ad52-fd6d07684118","topic":"重传时间一般略大于平均往返时间（平均 RTT）","expanded":true}]},{"id":"e9e6716e-f49e-4a3a-aec3-0c4a1167df43","topic":"分组编号","expanded":true,"children":[{"id":"8aeb525d-e1b9-40e9-854b-3f43930a7aed","topic":"为了让接收方（发送方）能够判断收到的数据分组是否重复，需要给数据（ACK）分组编号。由于停-等协议特性，只需一个比特编号即可（0、1）","expanded":true}]}]},{"id":"612e20c0-9850-461d-b371-3e08ccf2eebd","topic":"信道利用率","expanded":true,"children":[{"id":"e8bb13e8-46da-40a7-8bb3-23a5fc2c9d4c","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-d6806e2e023401.png","width":392.94,"height":136.96},"children":[{"id":"71205eab-ad6c-4638-8019-9ddc74c71fe7","topic":"发送方在一个发送周期内，有效发送数据的时间占整个发送周期的比例","expanded":true},{"id":"749128ff-0ab3-451a-80e9-e224706fe6cd","topic":"信道利用率U = TD / (TD + RTT + TA)","expanded":true}]}]}]},{"id":"911f451d-e267-46f7-9df1-693d1d7057f0","topic":"回退N帧协议 GBN","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"6b545807-f417-4afc-96c0-9efc41daf66e","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-158c81fe403932.png","width":646.82,"height":302.73},"children":[{"id":"cd6b9c87-7f85-437b-92c7-3b9fbf3baa75","topic":"发送方连续发送帧，当接收方检测出失序的信息帧后，要求发送方重发最后一个正确接收的信息帧后的所有未被确认帧","expanded":true},{"id":"c1681df2-f924-486e-a94a-7f4433307e69","topic":"n比特编号，发送窗口大小：1 <= WT <= 2^n - 1\n                      接收窗口大小：1","expanded":true},{"id":"332d8d40-58f6-47ef-9ee9-98e591e40420","topic":"累计确认","expanded":true,"children":[{"id":"3a8e7b98-cc03-4329-9bb8-d894e4cc56cf","topic":"连续收到好几个按序到达且无误码的数据分组后，针对最后一个数据分组发送确认分组","expanded":true},{"id":"92cda91c-e255-409a-9f59-20e339fae372","topic":"捎带确认","expanded":true,"children":[{"id":"e078e8f7-963b-403e-a274-a83e962e1214","topic":"或者在自己有数据分组要发送时才按累计确认规则进行捎带确认","expanded":true}]}]},{"id":"56047a73-e111-474b-add2-a7598b4f0e94","topic":"缺点","expanded":true,"children":[{"id":"82bb39c4-7ce2-4108-8915-a67e2bf3744c","topic":"若信道的传输质量很差导致误码率较大时，不一定优于停止-等待协议","expanded":true}]}]}]},{"id":"e236a06f-f519-4319-9124-86c3334988a5","topic":"选择重传协议 SR","expanded":true,"style":{"borderColor":"#E32C2D","branchColor":"#EA8ABA"},"children":[{"id":"cd271e7a-4992-4117-8f90-027e6220d4ca","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-345ab4203cc906.png","width":651.94,"height":304.8},"children":[{"id":"ec59fe70-cd46-45c4-8ee0-37c21b480d2a","topic":"概述","expanded":true,"children":[{"id":"3c265bcc-390b-4a6c-8339-d0c19d046253","topic":"设法只重传出现差错的数据帧和计时器超时的数据帧","expanded":true,"children":[{"id":"43fefc55-75f8-47ed-8ed6-e33e1700971c","topic":"每个发送缓冲区对应一个计时器，当计时器超时时，缓冲区的帧就会重传","expanded":true},{"id":"603ea832-0bc4-4735-9de3-adc63d15b09a","topic":"一旦接收方怀疑帧出错，就会发一个否定帧NAK给发送方，要求发送方对NAK中指定的帧进行重传","expanded":true},{"id":"5b935ad7-8524-4847-9dc3-e574f26e1021","topic":"接收端要设置具有相当容量的缓冲区来暂存那些未按序正确收到的帧","expanded":true}]}]},{"id":"58b04dcc-a612-4090-b855-ff51b20e9576","topic":"缺点","expanded":true,"children":[{"id":"64514b33-4ce1-4bea-bc3b-a4f8e54513a9","topic":"需要开辟缓存空间用来存储数据","expanded":true}]},{"id":"1238c79e-2f3a-4a13-b83d-5f262bf24d0f","topic":"n比特编号，窗口大小：WR <= 2^(n-1)","expanded":true}]}]}]},{"id":"539cded5-597b-4e67-aff4-a983285ea961","topic":"媒体接入控制","expanded":true,"children":[{"id":"34093549-02a9-4155-b2ff-1270cbf4bcea","topic":"共享信道要着重考虑的一个问题就是如何协调多个发送和接收站点对一个共享传输媒体的占用，即媒体接入控制MAC","expanded":true},{"id":"463226c3-68d5-489e-8c9b-b1164be123ab","topic":"静态划分信道","expanded":true,"style":{"borderColor":"#E32C2D","branchColor":"#15831C"},"children":[{"id":"b5f361e7-d453-42ec-af24-e6b4a9fc13ce","topic":"预先固定分配好信道，这类方法不灵活，对于突发性数据传输信道利用率低","expanded":true},{"id":"6c0b993c-8b4d-48b4-81fc-fabcbb7e130e","topic":"信道复用","expanded":true,"children":[{"id":"097c720e-77b0-4e9b-9686-34a4b96c48c1","topic":"复用是通信技术中的一个重要概念，复用就是通过一条物理线路同时传输多路用户的信号","expanded":true},{"id":"7f44d9ba-f564-4bb3-87ac-5abef059acd7","topic":"当网络中传输媒体的传输容量大于多条单一信道传输的总通信量时，可利用复用技术在一条物理线路上建立多条通信信道来充分利用传输媒体的带宽","expanded":true}]},{"id":"261baea5-7253-460a-9de7-c99782e6334d","topic":"频分多路复用 FDM","expanded":true,"children":[{"id":"0bc9ae25-a58d-4a80-b106-4eb7a0b5b657","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-5466c2afdb7007.png","width":478.97,"height":106.83},"children":[{"id":"f8e5771d-50d0-404d-adc4-a62a58f162d3","topic":"频分复用的所有用户同时占用不同的频带资源并行通信","expanded":true},{"id":"6adcebfc-0495-47af-95bf-ceb934ce33d2","topic":"将多路基带信号调制到不同频率载波上，再叠加形成一个复合信号（相邻信道需要隔离频道，防止干扰）","expanded":true},{"id":"6e1896c7-0870-4084-9c4e-a98070be443a","topic":"充分利用带宽，适用于模拟信号","expanded":true,"style":{"borderColor":"#EB4D3D"}}]}]},{"id":"5f86bddc-118c-4228-a0d7-e9936d503757","topic":"时分多路复用 TDM","expanded":true,"children":[{"id":"2f866cb4-8f64-4af3-827f-66a500107705","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-045b648e7ac464.png","width":477.11,"height":133.8},"children":[{"id":"6470a127-129e-4de6-9181-0ebd70e896e8","topic":"时分复用的所有用户在不同的时间占用同样的频带宽度","expanded":true},{"id":"5d984a87-56cd-4d49-995c-f5ad1fd2c897","topic":"是将一条物理信道按时间分成若干时间片，轮流地分配给多个信号使用","expanded":true,"children":[{"id":"0e991aae-2c61-460d-96e6-2500543bf46b","topic":"介质的位速率大于单个信号的位速率","expanded":true}]},{"id":"6b38d23f-d47a-49b1-9dd4-2e54a2681b24","topic":"适用于数字信号","expanded":true,"style":{"borderColor":"#EB4D3D"}},{"id":"9cf1a1b0-fd30-4665-a8e8-02c67bb5918c","topic":"统计时分多路复用 STDM（优化）","expanded":true,"children":[{"id":"8cd0b917-4bdb-4c61-bd58-239602e2cc61","topic":"STDM帧不固定分配时隙，而按需动态分配时隙","expanded":true}]}]}]},{"id":"49cc06a1-fc5e-46d3-bd80-771b940a144b","topic":"波分多路复用 WDM","expanded":true,"children":[{"id":"aa578680-d721-4641-b670-16849e54e0cd","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-8dca26ee19a965.png","width":475.92,"height":147.43},"children":[{"id":"65d7d69c-77f3-44f4-ab4c-34f3465f6095","topic":"在一根光纤中传输多种不同波长（频率）的光信号，由于波长（频率）不同，各路光信号互不干扰，最后再用波长分解复用器将各路波长分解出来","expanded":true}]}]},{"id":"bd7c2915-b41b-4ba0-a0f7-3f455e0391c8","topic":"码分多路复用 CDM","expanded":true,"children":[{"id":"985155da-edd4-4680-a539-1209e1359af3","topic":"该技术主要用于多址接入，人们更常用的名词是码分多址CDMA","expanded":true},{"id":"50e5aa35-509c-4ae2-a23c-2e7366523fa6","topic":"特点","expanded":true,"children":[{"id":"7af20ae8-3556-46cf-a65e-d23e750c2605","topic":"CDM的每一个用户可以在同样的时间使用同样的频带进行通信","expanded":true},{"id":"289c79fa-7f9b-4857-a53f-7484de843f27","topic":"由于各用户使用经过特殊挑选的不同码型，因此各用户之间不会造成干扰","expanded":true}]},{"id":"249a98df-abb0-4dbc-8962-971da00d4404","topic":"过程","expanded":true,"children":[{"id":"46de612e-880c-479b-8619-d3c68f1331d9","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-cba46c84bd8f65.png","width":575.48,"height":220.29},"children":[{"id":"888b9d76-e99b-4c94-ae81-d48217264acc","topic":"在CDMA中，每个比特时间再划分为m个短的间隙，称为码片","expanded":true},{"id":"b21454a0-aa2b-40d7-8ca9-977fa7adcadd","topic":"每一个站被指派一个唯一的m bit码片序列（原则：码片必须各不相同，互相正交）","expanded":true,"children":[{"id":"775e879d-6fb3-44dc-8f77-b3cbd3a542ec","topic":"如果一个站要发送比特1，则发送它自己的m bit码片序列","expanded":true},{"id":"ef71dc76-6e78-46af-862d-6d85de82f7cc","topic":"如果一个站要发送比特0，则发送它自己的m bit码片序列的二进制反码","expanded":true}]}]}]}]}]},{"id":"c9a4aa3a-aca8-45d3-ab6c-2dcee5b5ae53","topic":"动态划分信道","expanded":true,"children":[{"id":"323b8c75-a3ca-4edc-8ce1-29bf3d877f0b","topic":"随机接入","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"7da1764f-40c3-4e9f-8c00-73555bc6014d","topic":"概念","expanded":true,"children":[{"id":"8d69314b-cddf-454f-b30b-8ffcc0bed124","topic":"不采用集中控制方法解决发送信息的次序问题，所有用户能根据自己的意愿随机地发送信息，占用信道全部速率","expanded":true},{"id":"a559bc17-32cb-4ecc-9fa1-1a2badae141b","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-bdb561c1d6a9d1.png","width":586.26,"height":200.25}}]},{"id":"8f041a9d-18d3-4ae5-a40f-42bd6a2a0976","topic":"ALOHA协议（不听就说）","expanded":true,"children":[{"id":"2b656290-54db-4d53-86a5-f5a3d0959c96","topic":"纯ALOHA协议","expanded":true,"children":[{"id":"c6f8438c-b42f-460c-8659-67f9b5374938","topic":"当网络中的任何一个站点需要发送数据时，可以不进行任何检测就发送数据","expanded":true},{"id":"0957f7c4-3459-4f05-90eb-89a3596eac8b","topic":"在一段时间内未收到确认，那么该站点就认为传输过程中发生了冲突","expanded":true},{"id":"04887e96-53b7-4a32-867a-e0924295934c","topic":"发送站点需要等待一段时间后再发送数据，直至发送成功","expanded":true}]},{"id":"e2d6d02c-22eb-4773-a64c-c38a819c70ce","topic":"时隙ALOHA协议","expanded":true,"children":[{"id":"55f8998b-4a60-4983-a336-991bc4249aa6","topic":"所有站在时间上同步起来，将时间划分为一段段等长的时隙，规定只能在每个时隙开始时才能发送一个帧","expanded":true}]}]},{"id":"ba3eb2f8-c098-4b4b-be46-c09ec96527ed","topic":"CSMA协议（先听再说）","expanded":true,"children":[{"id":"6b7bb8b1-7325-4bca-b4dc-412700ddcca7","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-56763a8d9281b7.png","width":414.96,"height":213.82},"children":[{"id":"cdb4f26c-4538-403b-9745-e64d9166a6c6","topic":"1-坚持CSMA协议","expanded":true,"children":[{"id":"47900230-1d84-4da3-b6cf-0c1345df4981","topic":"一个结点要发送数据时，首先侦听信道","expanded":true,"children":[{"id":"6eab4710-ace3-44ae-a4a8-8e735dca47fb","topic":"如果信道空闲，那么立即发送数据","expanded":true},{"id":"3aa9ca0d-cf58-4766-be56-d75a53f9a2cf","topic":"如果信道忙，那么等待，同时继续侦听直至信道空闲","expanded":true},{"id":"1f00c04f-f013-4268-a9eb-06d8ab03032d","topic":"如果发生冲突，那么随机等待一段时间后，再重新开始侦听信道","expanded":true}]}]},{"id":"194e5f94-2667-4cc9-bc14-9cf796ff8622","topic":"非坚持CSMA协议","expanded":true,"children":[{"id":"5cf23130-793c-4a9b-8762-166c643facfa","topic":"一个结点要发送数据时，首先侦听信道","expanded":true,"children":[{"id":"a8b1f875-32ad-48b1-bc07-e9118fedb95b","topic":"如果信道空闲，那么立即发送数据","expanded":true},{"id":"7fbb45b6-613e-4435-acf1-67b9fe9d0578","topic":"如果信道忙，那么放弃侦听，等待一个随机的时间后再重复该过程","expanded":true}]}]},{"id":"f759e868-d63e-46c0-87f6-5df0d66437ce","topic":"p-坚持CSMA协议","expanded":true,"children":[{"id":"d2b6ac3e-9a0b-462b-92d4-2b849c72ec65","topic":"一个结点要发送数据时，首先侦听信道","expanded":true,"children":[{"id":"07bd8789-ff87-4eec-9f61-769a99a2990b","topic":"如果信道忙，就持续侦听，直至信道空闲","expanded":true},{"id":"02ca577e-bf56-4850-affd-3067d0b17df5","topic":"如果信道空闲，那么以概率p发送数据，以1-p概率推迟到下一个时隙（依次循环）","expanded":true}]}]}]}]},{"id":"fefb0dfd-665d-46be-9575-6616eb82dbf4","topic":"CSMA/CD协议（先听再说，边听边说）","expanded":true,"children":[{"id":"d4f358cc-2199-41b9-8ee1-6762e8368dfb","topic":"发送前先侦听，每个站在发送数据前先要检验下总线上是否有其他站点正在发送数据","expanded":true,"children":[{"id":"9749390d-cd50-4dee-a842-222ca04c9282","topic":"若有则暂时不发送数据，等到信道变空闲再发送","expanded":true},{"id":"d5cca04d-771a-4f3f-8f40-3478845a1086","topic":"发送时，边发送变侦听，以便判断自己再发送数据时其他站点是否也在发送数据","expanded":true}]},{"id":"8b6a8960-8929-446e-978b-11e5b2f325b4","topic":"基本概念","expanded":true,"children":[{"id":"f452c656-f616-4cf3-a72a-dba7cd69d8bc","topic":"碰撞检测","expanded":true,"children":[{"id":"e5555d7a-235b-4665-a901-c06e3cb7f3c3","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-84302ca29a951f.png"}}]},{"id":"19437610-51d0-4642-b2b1-d1a312509b53","topic":"争用期（碰撞窗口/以太网的端到端往返传播时延/2τ）","expanded":true,"children":[{"id":"7344370b-fe1e-4333-a606-31ecf40e0bc6","topic":"主机最多经过2τ（即δ->0）的时长就可检测到本次发送是否遭受了碰撞","expanded":true}]},{"id":"0a8b6b62-521d-4bff-a25c-a86e9360e061","topic":"为了确保发送站在发送数据的同时能检测到可能发生的冲突，帧长需要满足：最小帧长 = 总传播时延 * 数据传输率 * 2（以太网规定最小64字节）","expanded":true,"children":[{"id":"cb683cb8-99b4-4876-9759-fed13a7c40a2","topic":"如果在争用期没有检测到碰撞，那么后续发送的数据就一定不会发生碰撞","expanded":true},{"id":"7c104b0d-b701-471b-9777-eaa8053eaea8","topic":"如果在争用期内检测碰撞，就立即中止发送，这时已经发送出去的数据一定小于64字节，因此凡长度小于64字节的帧都是由于碰撞而异常中止的无效帧","expanded":true}]}]},{"id":"ce298e66-715f-4f33-8948-9d355f244009","topic":"截断二进制指数退避算法","expanded":true,"children":[{"id":"13d71e26-1a75-4dec-9645-7c4b27a2f20b","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-cb9e77a6bfdc42.png","width":592.81,"height":180.92},"children":[{"id":"ad5fc7b2-4ab1-46dd-97b4-ca82f7568f32","topic":"确定基本退避时间，一般取争用期时间","expanded":true},{"id":"d3118741-a6a0-4761-9726-2cea44f2ae62","topic":"当重传超过16次仍不成功时，说明网络拥挤报错","expanded":true}]}]},{"id":"1acd2eb3-485c-49d7-a296-9ed03eee1eaf","topic":"适用于有线连接的局域网","expanded":true}]},{"id":"3d4b1f72-e8be-444f-b283-943dbe1a42c0","topic":"CSMA/CA协议","expanded":true,"children":[{"id":"c35eb4c9-b950-4796-914d-18a7ca35bdd0","topic":"把碰撞检测改为碰撞避免，“碰撞避免”指协议的设计要尽量降低碰撞发送的概率","expanded":true,"children":[{"id":"2727ab64-15e2-4c47-83c2-7e698f68566e","topic":"由于接受信号强度远小于发送信号强度，若实现碰撞检测，对硬件要求非常高","expanded":true},{"id":"f33426b8-0762-4cf3-a515-d945c61dcec2","topic":"隐蔽站问题","expanded":true,"children":[{"id":"a830aaaa-f13d-424d-b5aa-629a790e8df3","topic":"站A、C检测不到对方无线信号，都给B发送帧时发生碰撞，且A、C无法检测","expanded":true}]}]},{"id":"e01acb4a-e197-4cc6-8e06-7775e2d03b30","topic":"碰撞避免","expanded":true,"children":[{"id":"3b9a5fb0-76d6-486f-9521-162e9cf106f2","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-1e8779a4b45caa.png","width":508.88,"height":196.6},"children":[{"id":"f38a17fb-1d5a-4f06-bdd5-926232e0944e","topic":"ACK帧","expanded":true,"children":[{"id":"743b668b-2112-44c4-894d-58706714da11","topic":"所有站点在正确接收到发给自己的数据帧（除广播帧和组播帧），都需要向发送方发回一个ACK帧","expanded":true}]},{"id":"83995fef-5356-4115-ac7a-08d59cbb3207","topic":"帧间间隔IFS","expanded":true,"children":[{"id":"2044e0f8-52ea-40c8-a5ae-4ea1bacf5ff4","topic":"所有的站点必须在持续检测到信道空闲一段指定时间后才能发送帧，该时间称为帧间间隔IFS","expanded":true},{"id":"cecfcd4b-9173-49a9-9acb-d32b65229dbf","topic":"帧间间隔的长短取决于该站点要发送的帧的类型","expanded":true,"children":[{"id":"c1c2e642-bfe7-410d-a7db-6099c07cbe65","topic":"高优先级帧需要等待的时间短，可获得优先发送权","expanded":true}]},{"id":"76c58bb3-f006-4611-a299-9b3a98476ac3","topic":"短帧间间隔 SIFS","expanded":true,"children":[{"id":"f4f3193c-4aa1-45eb-9c16-6e89f2f33be2","topic":"最短的帧间间隔，用来分隔开属于一次对话的各帧。一个站点应当能够在这段时间内从发送方式切换到接收方式","expanded":true,"children":[{"id":"d3c6c11f-880c-4417-9d06-ffae3ca54759","topic":"ACK帧、CTS帧、由过长的MAC帧分片后的数据帧、以及所有回答AP探询的帧和在PCF方式中接入点AP发送的任何帧","expanded":true}]}]},{"id":"39d6c1a3-8d31-471c-b762-c11fae01434e","topic":"DCF帧间间隔DIFS","expanded":true,"children":[{"id":"9bd25e1f-1b3e-4bd2-83d1-db236dc114c8","topic":"在DCF方式中用来发送数据帧和管理帧（用于异步竞争访问的时延）","expanded":true}]}]}]},{"id":"69c9c5e7-3ea2-4ccf-b56b-15012fa89b35","topic":"退避算法","expanded":true,"children":[{"id":"021ac2a0-a38c-4899-9b5d-34a7dfd6a5f7","topic":"信道由忙转为空闲且经过DIFS时间后，还需要退避一段随机时间才能使用信道","expanded":true},{"id":"f4f5f1cf-e4fe-401d-923c-8debe0e85774","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-a15a38c868f8c1.png","width":641.84,"height":242.16},"children":[{"id":"833e68ae-fffa-4a22-8213-7cdb99674b02","topic":"使用退避算法","expanded":true,"children":[{"id":"63247762-0d7c-42eb-bccd-84c9f5aa1f6f","topic":"在发送数据帧之前检测到信道处于忙状态时","expanded":true},{"id":"d5fdc627-8282-406a-9cb3-b448173cc5fd","topic":"在每一次重传一个数据帧时","expanded":true},{"id":"6d8b5abe-548a-4b86-8e4a-8a2cd2fbbd8c","topic":"在每一次成功发送后要连续发送下一个帧时（避免站点长时间占用信道）","expanded":true}]},{"id":"28c4c364-8d85-49e6-aa8d-2e26077a5038","topic":"当退避计时器时间减少到0时，就开始发送数据","expanded":true},{"id":"18a58395-43fe-4561-ba9e-ab59a60aba86","topic":"当退避计时器的时间还未减小到0时而信道又转变为忙状态，这时就冻结退避计时器的数值，重新等待信道变为空闲，再经过DIFS后，继续启动退避计时器","expanded":true},{"id":"63833582-b01f-482c-a533-6b4586cbd1f7","topic":"第i次退避，退避时间在{0, 1, ... , 2^(2+i)-1}中随机选择一个，然后乘以基本退避时间（一个时隙的长度），当时隙编号到255时（第六次退避）不再增加","expanded":true}]}]}]},{"id":"15088cd5-8402-48cf-bdcc-bff038241d0f","topic":"信道预约和虚拟载波监听","expanded":true,"children":[{"id":"6c4b072d-9497-4086-b9c2-4aac803db406","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-9ea0f621eecd9a.png","width":618.71,"height":159.53},"children":[{"id":"3d6110ff-5b50-4edf-b55a-8e9445216871","topic":"信道预约","expanded":true,"children":[{"id":"4b5d1e78-6ac6-4d7a-aaad-62f314515eae","topic":"发送方在发送数据的同时向其他站点通知自己传输数据要的时间长度，让其他站点在这段时间内不发送数据，避免碰撞","expanded":true}]},{"id":"dde9f3fd-7354-424b-ad4e-b63b82223e04","topic":"RTS/CTS帧（广播帧）","expanded":true,"children":[{"id":"d9688ed8-034e-4494-b441-2adcc47521e9","topic":"可选的碰撞避免机制，解决隐蔽站问题","expanded":true,"children":[{"id":"6bf3b39e-d02a-4aa1-a9c7-d2e21ddcef63","topic":"除源站和目的站以外的其他各站，在收到CTS帧（或数据帧）后推迟接入到无线局域网中，保证通信不会受其他站干扰","expanded":true}]},{"id":"8b071c7f-1619-4ae8-8045-466d014ba9b9","topic":"由于RTS帧和CTS帧很短，发送碰撞的概率、碰撞产生的开销及本身的开销都很小","expanded":true},{"id":"f75893c3-7635-44ee-934c-3a8c384bdeee","topic":"隐蔽站问题","expanded":true,"children":[{"id":"8c717ed6-93da-48a5-bcb0-915417c0603d","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-24344b39bb0fc5.png"},"children":[{"id":"812a2a86-5bc3-47df-b917-e53fc8b158db","topic":"虚拟载波监听机制（解决隐蔽站问题）","expanded":true,"children":[{"id":"1528e31c-677c-48bf-bfea-6954e14a479b","topic":"除RTS帧和CTS帧会携带通信需要持续的时间，数据帧也能携带通信需要持续时间","expanded":true}]},{"id":"c093000f-036b-4111-aa13-2b8cc3094762","topic":"A在给B发送数据帧前，可以使用RTS帧来预约信道，尽管C收不到RTS帧，但是C可以收到B发送给A的CTS帧，解决隐蔽站问题","expanded":true}]}]}]}]}]}]}]},{"id":"d9153f4b-de28-4995-b877-0972d5c89ac4","topic":"受控接入（已淘汰）","expanded":true,"children":[{"id":"5ba4c234-4c65-454d-9560-8743b6cb4e04","topic":"集中控制","expanded":true,"children":[{"id":"d62ab6b1-3c5f-48aa-8f99-a7ad567c7dac","topic":"有一个主站以循环方式轮询每个站点有无数据发送，只有被轮询到的站点才能发送数据，最大缺点是存在单点故障问题","expanded":true},{"id":"ae50cddb-b06d-45ef-a56b-1c619c690756","topic":"轮询访问：令牌传递协议","expanded":true,"children":[{"id":"77b7521f-ce6b-48c7-a2c3-c462dc594449","topic":"通过一个集中控制的监控站，以循环方式轮询每个结点，再决定信道的分配，令牌在固定次序中转圈，拿到令牌就可以发送数据","expanded":true},{"id":"68706cb3-f8d8-42bc-bd58-557f6766b62d","topic":"适合于负载很高的广播信道","expanded":true}]}]},{"id":"3c673b0d-e043-4831-aaeb-234c096fbd7b","topic":"分散控制","expanded":true,"children":[{"id":"8ee2ad4c-995e-4fd5-a9d0-499032358956","topic":"各站点是平等的，并连接成一个环形网络。令牌（一个特殊控制帧）沿环逐站传递，接收到令牌的站点才有权发送数据，并在发送完数据后将令牌传递给下一个站点","expanded":true}]}]}]}]},{"id":"7358420e-3610-48b9-b82c-4126bd700658","topic":"局域网","expanded":true,"children":[{"id":"3c3be2e4-1a53-4a86-8de9-4e71ec1a2852","topic":"基本概念","expanded":true,"children":[{"id":"b668eb0f-4cc8-46ca-8b2b-ce45447d2834","topic":"概念","expanded":true,"children":[{"id":"021d6385-97e7-4d7e-a77a-e01a9fe4cc7a","topic":"在一个较小的地理范围内，将各种计算机、外部设备和数据库系统等通过双绞线、同轴电缆等连接介质互相连接在一起，组成资源和信息共享的计算机互联网络","expanded":true}]},{"id":"02f96706-67ba-4855-b2be-24ede40ded78","topic":"局域网的特性决定要素","expanded":true,"children":[{"id":"2287113e-661d-4ff6-8ea3-bf18c82283dc","topic":"拓扑结构","expanded":true,"children":[{"id":"6ade5af4-b49a-4488-940e-899935a79f13","topic":"星形结构、环形结构、总线形结构","expanded":true,"children":[{"id":"bd3f2415-5186-464a-9af7-d11e5d8fb852","topic":"令牌环：逻辑拓扑是环形结构，物理拓扑是星形结构","expanded":true},{"id":"0936d2e0-e3d6-46b3-bef5-bea8b8028dab","topic":"光纤分布数字接口 FDDI：逻辑拓扑是环形结构，物理拓扑是双环结构","expanded":true}]}]},{"id":"fb6512ec-b581-436a-844c-1ab32bb40624","topic":"传输介质","expanded":true,"children":[{"id":"49404f51-128b-4f61-82c6-b4e7d6ad6d77","topic":"双绞线（主流）、铜缆和光纤","expanded":true}]},{"id":"b051d24a-a490-4039-b4df-1c5de82c7967","topic":"介质访问控制方式","expanded":true,"children":[{"id":"a92dca25-2e3c-44ad-92ea-782c80e86140","topic":"总线形局域网","expanded":true,"children":[{"id":"9d33b60c-0165-4e7e-83cf-a034e0bcf1dd","topic":"CSMA/CD、令牌总线","expanded":true}]},{"id":"0cd273d5-79f1-44d6-8f06-128c709c67ed","topic":"环形局域网","expanded":true,"children":[{"id":"33a3ac22-3b85-4bcf-a783-46bdf1d57941","topic":"令牌环","expanded":true}]}]}]},{"id":"3680ae81-8d89-4a54-8d54-ee2c8926aeaf","topic":"逻辑链路控制（LLC）子层","expanded":true,"children":[{"id":"963bf8ab-726d-4670-a5dd-3bccf75b2aa0","topic":"向网络层提供无确认无连接、面向连接、带确认无连接、高速传送4种不同的连接服务类型、差错控制、给帧加序号（待确认的服务）","expanded":true,"style":{"borderColor":"#EB4D3D"}}]},{"id":"bb58bfe1-4826-4f76-8e91-e7b57fa387fe","topic":"媒体接入控制（MAC）子层","expanded":true,"children":[{"id":"ccc735a7-2ecb-49f2-b74e-916ec73fd2ea","topic":"向上层屏蔽对物理层访问的各种差异，提供对物理层的统一访问接口，主要功能包括：组帧和拆卸帧、比特传输差错控制、透明传输、寻址、竞争处理","expanded":true,"style":{"borderColor":"#EB4D3D"}}]}]},{"id":"337acc87-1093-4bf4-901b-71f116b63f8b","topic":"以太网与IEEE 802.3","expanded":true,"style":{"borderColor":"#FF9F00","branchColor":"#BA69C8"},"children":[{"id":"75d3c50f-cb62-40e7-87e7-89472c2d19ef","topic":"概述","expanded":true,"children":[{"id":"cffe3996-8a83-4a37-9487-d027a9d151b2","topic":"无连接，不可靠（无编号、不确认）","expanded":true,"style":{"borderColor":"#EB4D3D"},"children":[{"id":"16177b84-6073-4e7c-8fe7-d825f0bc251b","topic":"尽最大努力交付，差错纠正由高层完成","expanded":true}]},{"id":"46e670f1-bdd5-41a6-b901-1852455142c9","topic":"拓扑结构","expanded":true,"children":[{"id":"7880a389-a368-47f0-8d06-aaab2ad49897","topic":"逻辑拓扑是总线形结构，物理拓扑是星形或拓展星形结构","expanded":true,"style":{"borderColor":"#EB4D3D"}}]},{"id":"9e98fbd6-8b66-4eae-b41f-5d04d611baf4","topic":"以太网工作于半双工使用CSMA/CD方式对总线进行访问控制，可以全双工工作","expanded":true}]},{"id":"de3d97ac-e18c-4e7d-addd-2bedae48a9d6","topic":"以太网的传输介质与网卡","expanded":true,"children":[{"id":"4e89b2e9-6db8-4389-a1f2-03924a96ca70","topic":"传输介质的适用情况","expanded":true,"children":[{"id":"a47e252c-f3ff-4f4f-b8cc-86fb58b68629","topic":"图示","expanded":true,"style":{"borderColor":"#EB4D3D"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-b0136f7ad1f1bb.png","width":625.48,"height":153.94},"children":[{"id":"0bc17a25-6c67-4549-8dfa-1af956eaf00d","topic":"10BASE-T","expanded":true,"children":[{"id":"8c7b73d9-17a7-4f51-9e01-ef268c434c74","topic":"BASE：基带信号，T：非屏蔽双绞线","expanded":true},{"id":"592a362b-8100-40c1-943c-d5f77a0e9bf9","topic":"曼彻斯特编码","expanded":true},{"id":"0fbaf9da-4b12-4156-9593-94e60f7bdae6","topic":"物理星形，逻辑总线形","expanded":true},{"id":"b164e8df-15e2-403f-881b-dfda212c4484","topic":"CSMA/CD","expanded":true}]}]}]},{"id":"a2ec008a-f05a-4c4a-a52c-45dac028306c","topic":"介质访问控制（MAC）地址","expanded":true,"children":[{"id":"23416c4e-8f9f-4d88-ab22-c49ff31d699e","topic":"MAC地址是对网络上各接口的唯一标识，而不是对网络上各设备的唯一标识","expanded":true},{"id":"c8524c67-9369-4a83-8c87-7882545afc79","topic":"MAC地址的第一个字节的最后一位：0表示单播，1表示多播","expanded":true},{"id":"260bc6ee-3d5e-47c7-827f-38a2ff03bb3c","topic":"网卡在出厂时都有一个唯一的代码，用于控制主机在网络上的数据通信","expanded":true}]},{"id":"2e76f6bd-c32a-4922-b0d1-382f97e31225","topic":"网卡","expanded":true,"children":[{"id":"c91c8fc5-76a6-4a5b-bd25-65a9f693122b","topic":"局域网中连接计算机和传输介质的接口","expanded":true,"children":[{"id":"7c981609-a707-4cdc-a628-6a45e19e00f7","topic":"主要功能在物理层和数据链路层","expanded":true,"style":{"borderColor":"#EB4D3D"}}]},{"id":"e25374bb-3dd3-47a2-bd6d-37cc9433b4e6","topic":"功能","expanded":true,"children":[{"id":"a2da202a-8651-4cd9-96c7-40e111f9ee41","topic":"实现与局域网传输介质之间的物理连接和电信号匹配（MAC地址）","expanded":true},{"id":"0e14753e-af36-46f0-bbee-d326553a5ca3","topic":"实现帧的发送与接收、帧的封装与拆封、介质访问控制、数据的编码与解码及数据缓存功能","expanded":true}]}]}]},{"id":"6bf5cb0c-47a4-44a8-9b4b-344ebcaa418b","topic":"以太网的MAC帧","expanded":true,"children":[{"id":"3a6b7355-8c73-40dd-adc6-69bc52e50469","topic":"网卡从网络上每收到一个MAC帧，首先要用硬件检查MAC帧中的MAC地址。如果是发往本站的帧，则收下，否则丢弃","expanded":true,"children":[{"id":"c1aa8c25-897f-4104-8810-c6afdd663ab1","topic":"局域网两个设备有相同MAC地址，两个设备都不能正常通信","expanded":true}]},{"id":"795d17cc-8013-4e0c-b017-c891e0877fd2","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-1cd5827e7b9cbb.png","width":454.7,"height":191.82},"children":[{"id":"a97065a3-262d-4b97-a641-8bc68df9210d","topic":"前导码：使接收端与发送端时钟同步（MAC帧与PPP帧不同，没有帧界定符，用前导码同步）","expanded":true},{"id":"6d657825-094c-4448-a271-92f41f061211","topic":"目的/源地址：通常使用6字节（48bit）地址","expanded":true},{"id":"1377e2d9-2db1-4fb5-9249-743b979b1a3f","topic":"类型：2字节，指出数据域中携带的数据应交给哪个协议实体处理","expanded":true},{"id":"2797c4b3-753e-4d63-999e-658e0d7f022b","topic":"数据：46-1500字节，包括高层的协议信息。由于CSMA/CD算法的限制，以太网帧必须满足最小长度要求64字节，数据较少时必须加以填充（0-46字节）","expanded":true},{"id":"523776c6-c585-4dbd-a81b-a03b97780427","topic":"填充：0-46字节，当帧长太短时（<64字节）填充帧","expanded":true},{"id":"e1db899f-e6f5-44cb-8f98-6cede605a145","topic":"校验码FCS：采用CRC循环冗余码","expanded":true}]}]},{"id":"2ab41471-a41c-452e-b3c9-04fa4278e4b0","topic":"高速以太网","expanded":true,"children":[{"id":"a5886378-bd7a-4da9-b5df-459afb5f2221","topic":"100BASE-T以太网","expanded":true,"children":[{"id":"a84f517d-7736-4c21-9476-45a79d324491","topic":"在双绞线上传送100Mb/s基带信号的星形拓扑结构以太网","expanded":true,"style":{"borderColor":"#EB4D3D"}},{"id":"938029ea-eb84-44ab-874b-8ead8319dfbb","topic":"使用CSMA/CD（支持全双工方式、半双工方式）","expanded":true}]},{"id":"9f871f3e-a50c-4055-a37c-73909233bc1f","topic":"吉比特以太网","expanded":true,"children":[{"id":"bf2359d5-2816-45e0-90c0-5289d97ed98f","topic":"光纤/双绞线，1Gb/s","expanded":true},{"id":"431b10ec-2d6a-4cda-ac79-283335ddfd65","topic":"用全双工和半双工（半双工用CSMA/CD）两种方式工作","expanded":true}]},{"id":"ffdc9fd7-13ea-494d-a145-69f6882b4b48","topic":"10吉比特以太网","expanded":true,"children":[{"id":"d94325ee-8aa8-49a9-8674-30db2a751e40","topic":"光纤，10Gb/s","expanded":true},{"id":"4bc59c12-a97a-4a21-8172-d46eecd72bb3","topic":"只能全双工方式，不使用CSMA/CD","expanded":true,"style":{"borderColor":"#EB4D3D"}}]}]},{"id":"dbddd3dc-d6cb-4155-87b3-4f36d0c07506","topic":"IEEE 802.11 无线局域网","expanded":true,"children":[{"id":"5d33a6ca-620c-4e1e-8430-e4d371259c6f","topic":"无线局域网的组成","expanded":true,"children":[{"id":"d867d6eb-041a-4160-b84a-3e1ea2f49815","topic":"有固定基础设施无线局域网","expanded":true,"children":[{"id":"6ec707b3-5612-43f8-82fc-43952314de92","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-9ea54e7f6c2895.png","width":467.77,"height":192.93},"children":[{"id":"11ba5004-a04d-4e6e-8f8f-1a47357f6e38","topic":"802.11标准规定无线局域网的最小构件是基本服务集 BSS","expanded":true},{"id":"3e991eae-b6d8-44a1-bf35-619aa826d277","topic":"组成：一个基本服务集包括一个基站和若干移动站","expanded":true},{"id":"0b1a21c6-7e7c-4ffc-b56e-06437bc2d501","topic":"各站在本BSS内之间的通信，或与本BSS外部站的通信都必须通过本BSS的AP","expanded":true}]}]},{"id":"9c3a8d58-8084-418c-9369-01246977e777","topic":"无固定基础设施无线局域网自组织网络","expanded":true,"children":[{"id":"88c6289d-29a2-4e63-8a28-ccec843b8e90","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-018c48082235a2.png","width":506.47,"height":193.81},"children":[{"id":"d9af7df0-edd8-4a7b-8927-38d6b67022ff","topic":"由一些平等状态移动站相互通信组成的临时网络（各结点之间地位平等，中间结点都为转发结点，具有路由器的功能）","expanded":true},{"id":"bcd5a7e5-60c8-4e06-8aff-fcfdb70fbdfb","topic":"移动自组织网络把移动性扩展到无线领域中的自治系统，具有自己特定的路由选择协议，并且可以不和因特网相连","expanded":true}]}]}]},{"id":"1569294d-b2e9-4ec8-9d89-a325439950db","topic":"MAC帧","expanded":true,"children":[{"id":"d623623f-5c23-419f-a7f3-b016627bc204","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-15d62983f1d8dc.png","width":494.62,"height":125.24}},{"id":"6cd7cc17-399b-4c20-abb8-d904089e8a7e","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-b0b328b7ce7ec5.png","width":642.22,"height":107.58}}]},{"id":"fb56e00d-0e5b-44ae-a08c-ac20c843d364","topic":"采用停止-等待协议，确保数据正确接收","expanded":true}]}]},{"id":"6c343826-0b94-4766-b7dc-21eb78bce614","topic":"虚拟局域网 VLAN","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"aecbc9cb-d3c8-4ade-830e-8ecd20a60e37","topic":"VLAN概述","expanded":true,"children":[{"id":"7fc597aa-8e41-4cc3-898c-29f4835ab77d","topic":"一个或多个以太网交换机互连起来的交换式以太网，其所有站点都在同一个广播域","expanded":true},{"id":"60335de8-ff14-4336-818a-d5fc9efcc3a7","topic":"巨大的广播域会带来弊端","expanded":true,"children":[{"id":"cefd7bef-8852-43aa-8143-7383fcad41c6","topic":"广播风暴（会浪费网络资源和各主机的CPU资源）","expanded":true},{"id":"8bc549c2-03a8-4b2c-b0da-5f32be505636","topic":"难以管理和维护","expanded":true},{"id":"878aca4a-e694-4a54-b46e-3b6b5c43a4ea","topic":"潜在的安全问题","expanded":true}]},{"id":"ea521a19-387a-4f6e-8a1b-07ca35efe55e","topic":"网络上会频繁出现广播信息（TCP/IP协议栈很多协议会用到，例如ARP、RIP、DHCP等）","expanded":true},{"id":"f05028f4-6291-4aaf-ab08-e67542010ed5","topic":"分隔广域网方法：路由器（成本高），虚拟局域网VLAN技术应运而生","expanded":true},{"id":"65a7b44a-db04-4435-b052-2b069f55d23b","topic":"虚拟局域网VLAN是一种将局域网内的设备划分成与物理位置无关的逻辑组的技术，逻辑组具有某些共同需求","expanded":true},{"id":"bf698527-e337-4cda-baf1-297dceda3f51","topic":"划分VLAN的方式：基于交换机端口、基于MAC地址、基于IP地址","expanded":true,"style":{"borderColor":"#EB4D3D"}}]},{"id":"f16e4be3-7a98-4f09-ae24-033cfd99b1a6","topic":"IEEE 802.1Q帧","expanded":true,"children":[{"id":"d0dd03f0-7eb3-41b6-82b4-ebf8348a55f3","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ff9bf363f60f90.png","width":768,"height":94.42},"children":[{"id":"7fe47a80-a1a2-495c-a6b4-0d1402afb6b0","topic":"VLAN标记的最后12比特称为VLAN标识符VID，它唯一标志了以太网帧属于哪一个VLAN","expanded":true},{"id":"92959830-19c0-4b6c-b480-0283eafbfbca","topic":"802.1Q帧是由交换机来处理的，而不是用户主机来处理的","expanded":true,"children":[{"id":"324bbb89-9a76-44d9-9716-da74bcf83b18","topic":"当交换机收到普通的以太网帧时，会将其插入4字节的VLAN标记转变为802.1Q帧，简称“打标签”","expanded":true},{"id":"4445d590-f1f1-436e-bb6d-7cc69f178273","topic":"当交换机转发802.1Q帧，可能会删除其4字节VLAN标记转变为普通以太网帧，简称“去标签”","expanded":true}]}]}]},{"id":"39bc3385-7380-405f-a13b-943f40718dfa","topic":"交换机的端口类型","expanded":true,"children":[{"id":"b805eef1-44ee-4bc0-9df5-fc4c8d12d5c4","topic":"Access","expanded":true,"children":[{"id":"675e0c07-edad-459f-ab3d-bac1c4827edf","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-24c37786dddf76.png","width":724,"height":262.78}}]},{"id":"7ae30417-d05c-45b8-af57-de7947076148","topic":"Trunk","expanded":true,"children":[{"id":"36c1a253-c4bb-4042-8393-2a48a96720b2","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-44b8aa4b6e6873.png","width":723.48,"height":301.51}}]},{"id":"54dcd38e-5005-45ba-a2c7-428eba5679a8","topic":"Hybrid","expanded":true,"children":[{"id":"18590af7-1ea6-4d4d-a578-a21c0728d76f","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ae7fe5d60c60c7.png","width":716.79,"height":275.94}}]},{"id":"08d68e91-c463-48da-97df-b64de0ac70d0","topic":"检验一下会没会","expanded":true,"children":[{"id":"da35a45a-2b2c-4b31-b491-8dc120475299","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-1d32da609f2e37.png","width":768,"height":360.35}}]}]}]}]},{"id":"ee5cb9b5-fbda-48c6-82a2-a52ea5f7e81f","topic":"广域网","expanded":true,"children":[{"id":"2b00fb07-cb03-4fbb-acf6-8ed3167e8eef","topic":"概念","expanded":true,"children":[{"id":"154229b1-4022-41fd-b05e-5857e06b8adc","topic":"通常是覆盖范围很广的长距离网络。广域网的通信子网主要使用分组交换技术，由结点交换机以及连接这些交换机的链路组成","expanded":true}]},{"id":"a8e0f036-b3d1-4671-a7e4-512d684ffc42","topic":"PPP协议","expanded":true,"style":{"borderColor":"#FF9F00","branchColor":"#EA8ABA"},"children":[{"id":"21a1f6d0-0d57-46a1-92b3-90d14aa55e27","topic":"使用串行线路通信的面向字节的协议，该协议应用在直接连接两个结点的链路上用来通过拨号或专线方式建立点对点连接发送数据","expanded":true},{"id":"0922f5b8-6572-4654-9ad6-41656c5ca59f","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-e79c991bc0b323.png","width":622.2,"height":225.3},"children":[{"id":"0240a667-781d-489c-97d1-3b4d16ad60e5","topic":"组成","expanded":true,"children":[{"id":"64ab001e-905d-42e4-8770-c50d47804818","topic":"对各种协议数据报的封装方法（封装成帧）","expanded":true},{"id":"ab0a1ad4-8fb4-4ca3-a4f5-201619bfa6e1","topic":"链路控制协议 LCP","expanded":true,"children":[{"id":"4ac3d668-43b7-41c9-893a-0defbd6378af","topic":"用于建立、配置以及测试数据链路的连接（物理）","expanded":true}]},{"id":"db66e741-7a5d-4bff-97c8-b42326381dac","topic":"一套网络控制协议NCPs","expanded":true,"children":[{"id":"e62ce1fe-34f4-4eaa-8a2d-94a4b83cf55b","topic":"其中的每一个协议支持不同的网络层协议（逻辑）","expanded":true}]}]},{"id":"22798ed9-89db-4350-b8ef-8d80a1d8bfae","topic":"帧格式","expanded":true,"children":[{"id":"1cc73454-48c2-45a4-91ae-2fb54ea8f948","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-c4cf4bb5731c76.png","width":490.04,"height":225.64}}]}]},{"id":"9e1cd54d-5040-4338-91a1-7dda0ec5c530","topic":"特点","expanded":true,"children":[{"id":"f573cde6-acbe-4c56-9bec-5e88e6445e89","topic":"PPP提供差错检测但不提供纠错功能，只保证无差错接收（CRC校验），它是不可靠的传输协议，因此不使用序号和确认机制","expanded":true},{"id":"d4d4df94-0cea-49dd-a1bd-dd1fe1ffdf27","topic":"透明传输（面向字节）","expanded":true,"children":[{"id":"7073bdd1-9e7c-4a9e-adf0-bc9dfb216ec0","topic":"异步线路：字节填充","expanded":true,"style":{"borderColor":"#EB4D3D"}},{"id":"b968767b-5ba1-4a41-a092-13f80aaf2efe","topic":"同步线路：比特填充（硬件）","expanded":true}]},{"id":"9c9aba01-c2af-4e35-a704-7e3978b2f00b","topic":"PPP两端可以运行不同的网络层协议（仅支持全双工链路，仅支持点对点链路，不支持多点线路）面向字节的协议","expanded":true,"style":{"borderColor":"#EB4D3D"}},{"id":"62dfacf9-af82-47c8-bf04-ca4312863746","topic":"封装成帧：帧定界符                         MTU：不超过1500字节","expanded":true}]}]},{"id":"f95e68cb-23d1-4ee3-b6d1-6b9f1b912729","topic":"广域网与局域网对比","expanded":true,"children":[{"id":"9b6c35dd-75ba-408b-8f4c-2c7c25e099cc","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-61ac91b7d2d4ac.png","width":768,"height":280.88}}]}]},{"id":"c24c7849-5a73-4181-a65a-d70e480a989b","topic":"数据链路层设备","expanded":true,"children":[{"id":"80f83a5a-192e-4591-b8b8-12aae651e11e","topic":"集线器与交换机的区别","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"f5f43c98-f96f-458b-beda-8d4898cb1417","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-9e0232907c12b1.png","width":163.62,"height":365.06},"children":[{"id":"55b064fe-c69c-4c45-b2cb-595341160211","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-bc053d0aa380eb.png","width":761.94,"height":369.48},"children":[{"id":"510e988e-783e-46f6-857c-c3c36a62de95","topic":"使用交换机作为互联设备的以太网，称为交换式以太网。交换机可以根据MAC地址过滤帧，即隔离碰撞域","expanded":true},{"id":"b2a5e5f1-8f7a-4288-b60f-bb1b8411e7ec","topic":"交换机的每个接口是一个独立的碰撞域","expanded":true},{"id":"45223d55-a423-4be7-8a09-21165e9042c5","topic":"交换机隔离碰撞域但不隔离广播域（VLAN除外）","expanded":true}]}]}]},{"id":"c815ac33-1ea6-4e0f-a7fa-40350f9d167e","topic":"以太网交换机","expanded":true,"children":[{"id":"b38466d2-6701-45aa-973f-10d85a70a2ab","topic":"概念","expanded":true,"children":[{"id":"77015a81-dcc8-4371-b212-8869c2b5d379","topic":"局域网交换机（以太网交换机），从本质上说，以太网交换机是一个多端口的网桥，能经济地将网络分成小的冲突域，为每个工作站提供更高的带宽","expanded":true}]},{"id":"005b893a-24bd-4b03-a843-9b793da72af3","topic":"原理","expanded":true,"children":[{"id":"484453b8-1417-4458-808f-4b201bd29f43","topic":"检测从以太端口来的数据帧的源和目的地的MAC地址，然后与系统内部的动态查找吧进行比较","expanded":true},{"id":"5afed455-fbe1-4132-a3e3-60d043b9e135","topic":"若数据帧的MAC地址不在查找表中，则将该地址加入查找表，并将数据帧发送给相应的目的端口","expanded":true}]},{"id":"6a00b273-b8bd-470f-93bd-ec162f6cf622","topic":"特点","expanded":true,"children":[{"id":"05270f95-5848-4b39-8265-4ee984675438","topic":"全双工方式","expanded":true},{"id":"ff87dfa1-7394-4c5d-9ea5-3636d7fcea80","topic":"以太网交换机能同时连通多对端口，使每对互相连通的主机都能像独占通信媒体那样，无碰撞地传输数据","expanded":true,"children":[{"id":"d8058d5c-04fc-4a41-9045-c2f496851c31","topic":"所有网络设备享有全部的带宽，总带宽随着端口结点的增加而增加","expanded":true,"style":{"borderColor":"#EB4D3D"},"children":[{"id":"6df0cc08-bef0-4f09-8d2a-91dbd5197ac3","topic":"计算总带宽找端口对数，若全双工（默认）则需要乘2","expanded":true,"style":{"borderColor":"#EB4D3D"}}]}]},{"id":"ae371af8-0cfa-422a-b271-4e2156551a25","topic":"即插即用设备，转发表通过自学习算法逐渐建立的","expanded":true},{"id":"066a1e10-c2ec-4bca-bf36-d9e12990df30","topic":"使用了专用的交换结构芯片，因此交换速率较高","expanded":true},{"id":"8b85cb2c-6311-4c5e-a13d-fc627e587bad","topic":"独占传输媒体的带宽","expanded":true}]},{"id":"de800e03-eb3f-4674-9992-0d8e6a46f3a0","topic":"两种交换模式","expanded":true,"children":[{"id":"e73870a4-1607-4874-8733-92ba1949586d","topic":"直通式交换机（仅查目的地址6B就转发）","expanded":true,"children":[{"id":"a4b989c0-6dd6-46a6-bd44-9455a674a828","topic":"只检查帧的目的地址，数据帧可以马上就被传输出去","expanded":true,"children":[{"id":"eb0f14fa-ef9c-4b2d-9564-c3d1fd616a2d","topic":"算转发时延，仅6B的MAC地址","expanded":true,"style":{"borderColor":"#EB4D3D"}}]},{"id":"74245336-4c75-40b7-a83c-97ecf6aeb0b0","topic":"缺乏智能性和安全性，也无法支持具有不同速率的端口的交换","expanded":true}]},{"id":"ec08b91d-51e6-4bbe-8be3-9a7ab53443ab","topic":"存储转发式交换机","expanded":true,"children":[{"id":"f5536c61-67ac-48fd-beb9-47b4f2db76d9","topic":"先将接收到的帧缓存，然后并检查数据是否正确","expanded":true,"children":[{"id":"a8bc34cf-d49b-464e-bdda-e305b958aa5d","topic":"正确就发送出去","expanded":true},{"id":"36767d3c-5d9c-41cc-81ca-0d4ef76099c0","topic":"发现帧有错，那么就将其丢弃","expanded":true}]},{"id":"2ea9fc7a-752b-4ee3-bfbd-701cd3382256","topic":"可靠性高，能支持不同速率端口之间的转换，但延迟大","expanded":true}]}]}]},{"id":"3da8ae49-ac24-4172-a8fb-142c47bfa94f","topic":"以太网交换机的自学习功能","expanded":true,"style":{"borderColor":"#E32C2D"},"children":[{"id":"c09a7428-8dfd-4fdc-81c9-77b31cbda64c","topic":"交换机的过滤和转发借助于交换表完成","expanded":true,"children":[{"id":"deb1d7ea-8246-44ee-867a-78cd5eba29e8","topic":"决定一个帧是应该转发到某个端口还是应该将其丢弃称为过滤","expanded":true},{"id":"ecdfd690-2320-4c17-b801-41ee331d6153","topic":"决定一个帧应该被移动到哪个接口称为转发","expanded":true}]},{"id":"b94d7e04-8d38-4ca8-bfef-9268e46c37bf","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-0c802e04b7cda0.png","width":662.75,"height":320.79}}]}]}]}}