{"format":"brushup-mindmap-v1","id":"net-00-sheet3","title":"第二层 数据链路层","structure":"timeline-h","theme":"auto","root":{"id":"b8fb79494fca2ce4ce03c8038d","topic":"第二层 数据链路层","expanded":false,"children":[{"id":"f7dbcbc42d0878643a82e8eb6a","topic":"功能","expanded":true,"children":[{"id":"67d8031f0cf8fa03f954eb502b","topic":"无连接无确认","expanded":true,"children":[{"id":"804aa22e-b5af-4ae2-9fc2-4015743a2ab0","topic":"适用于实时通信","expanded":true},{"id":"35c21e21-0bb1-43b3-8845-7b10ab22da4c","topic":"不建立连接、不需要确认、丢失的交给上层处理","expanded":true},{"id":"10594834-e9c5-465f-a8a6-3798bea9d642","topic":"如：以太网","expanded":true}]},{"id":"f1ecdbf0-4e71-49cb-bc2f-e2e83f61bce8","topic":"有确认无连接","expanded":true,"children":[{"id":"eb0c53b4-5a8f-41fd-8358-560c2f052b7d","topic":"适用于“误码率高的链路”","expanded":true},{"id":"5b917aa9-7024-4abe-82ae-c6257ba04a21","topic":"无连接、有确认、超时处理","expanded":true},{"id":"549246b8-6075-4385-95a9-0556df6bc44a","topic":"如：无线通信","expanded":true}]},{"id":"8e08b896-acfa-4016-8fe1-8b0691435f4e","topic":"有连接有确认","expanded":true,"children":[{"id":"705ccb3b-5f31-4529-ac28-53e41748cb83","topic":"建立、传输、释放","expanded":true},{"id":"e5a5a973-4def-4fdc-876e-4e75091fdaff","topic":"每一帧都确认，确认完后才发下一帧","expanded":true},{"id":"6dc3e13b-72a3-4b62-b052-588b98508430","topic":"如：通信要求高的","expanded":true}]},{"id":"48db0037-d057-4700-8e1d-8b09bf89149f","topic":"数据链路层到底负不负责\"可靠传输\"？","expanded":true,"children":[{"id":"2c2ef205-0bf4-439f-bf81-1dc21b81ac7b","topic":"举证：","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-9b5e49cf70c601.png","width":111.79,"height":111.79},"children":[{"id":"4b1c089b-083a-4c94-8e00-8dacd16fbbbb","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ce4f54faa0df97.png","width":325.79,"height":108.29}},{"id":"0570f1ba-5220-4bdd-8441-ad2817fda8ce","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-f711b233654726.png","width":323.77,"height":98.68},"children":[{"id":"14774bba-7fe7-408b-914e-7e4a8ca6e196","topic":"比较好的链路：使用TCP协议进行握手、挥手等","expanded":true},{"id":"73adee13-bf88-4a6f-9777-2a00c2e5fb1d","topic":"在通信质量差的链路上，使用ARQ，例如停等、GBN、SR等来保证帧的\"可靠传输\"","expanded":true}]}]},{"id":"5bb916c8-0873-42d5-8643-e75e47e11c72","topic":"总结：数据链路层可以在通信质量差的链路上提供\"可靠传输\"","expanded":true},{"id":"a36310ae-c901-4719-a04c-7d8960598dc7","topic":"例题：","expanded":true,"children":[{"id":"78eeacb4-564b-4e50-8e6f-ac324e2c2105","topic":"王道课后3.1.6.(2)","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-2424bd94ad3274.png","width":328.22,"height":50.28},"children":[{"id":"e7b4b75a-2d50-4778-a450-a6da467ad22e","topic":"所以B是包括的，D是物理层的细节","expanded":true}]},{"id":"0ab5bf11-f1ab-435a-959a-0bdca3e1b98d","topic":"【真题中未考过】","expanded":true}]}]},{"id":"74abf9a00f1bccb5830b1a43ee","topic":"作用：把物理层可能出错的物理连接改造为逻辑上无差错的数据链路。","expanded":true,"children":[{"id":"c14570e7-b6df-4f32-bb03-c9fcee3d01e7","topic":"提供无差错传输，可以提供可靠传输","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"0398819fc5782cc7764b4a96b1","topic":"组帧","expanded":true,"children":[{"id":"0368a52aabe8d64fcbbd59d8ed","topic":"目的：使得发出的数据，发送、接受方知道首尾在何处","expanded":true,"style":{"background":"#8EDE99"}},{"id":"ed19723069c82b678328e9ddf8","topic":"字符计数","expanded":true,"children":[{"id":"e7bbe9f09ab8849154c83ba752","topic":"字符：char（计算一帧发送多少个byte）","expanded":true}]},{"id":"f42adffb02794ca53603c92da9","topic":"字符填充+首位定界","expanded":true,"children":[{"id":"e32b090f91cbe3e1758dc8b55b","topic":"EOH（开头） + SOT（结束）","expanded":true},{"id":"399bef63114953168b81182cd4","topic":"转义字符：ESC","expanded":true}]},{"id":"eeab9c000079e46bb7a21b4a47","topic":"首尾标志+零比特填充","expanded":true,"children":[{"id":"8298d694729ae01d68268b74b7","topic":"0111 1110 - 首尾定界符","expanded":true},{"id":"edf99e04dbb8898814d36a5156","topic":"5 1， 1 0 - 出现5个连续的1，插入一个0","expanded":true}]},{"id":"a6292353132bf52f7f40b9c023","topic":"违规编码","expanded":true,"children":[{"id":"20bb08982b3816a2fcb90844ce","topic":"使用在【物理层】数据比特中不存在的电平形式进行首尾设定（IEEE802就是这样）","expanded":true}]}]},{"id":"f4a84eaefffa6f0c66168b7f59","topic":"差错控制（算）","expanded":true,"children":[{"id":"a34ae261284b07f7ea95d8de14","topic":"奇偶校验码","expanded":true,"children":[{"id":"b08d64d3-f105-4de3-8a31-762fe19a0da6","topic":"奇校验","expanded":true,"children":[{"id":"3c1ce7af-03e2-461b-969c-17c3a59f31a4","topic":"1 的个数为奇数","expanded":true}]},{"id":"c17114da-126c-4b11-ab75-c24330c4adfd","topic":"偶校验","expanded":true,"children":[{"id":"7ef3e763-ac5a-437e-9ba5-f2b4fa563e0a","topic":"1 的个数为偶数","expanded":true}]}]},{"id":"2ac912ae0dbb2de20c99aa968d","topic":"CRC循环冗余码","expanded":true,"children":[{"id":"5a8b02f5371be1dcfcdf0857b0","topic":"模二除法","expanded":true},{"id":"65ba788ac3c98bf82014182253","topic":"如何计算（k阶数、最后的k-1位余数）","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-9cae9b3d8221b5.png"}},{"id":"2a09b9c7c44898115f294bed83","topic":"CRC具有纠错能力，不过链路层不使用其纠错能力","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"51a89b1b0fea6320d4b37bacf4","topic":"海明码","expanded":true,"children":[{"id":"f4db0a1356195c399ef1d98687","topic":"海明距离","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"3dbac6323208f4785248aa7c5e","topic":"一个概念，与海明码无关","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"091bf554099a06471db5f9372b","topic":"在信息编码中，所有信息集合中【两个合法代码对应位上编码不同的位数】称为码距，又称海明距离。","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"a106b23f-310f-4bcc-b107-cd19d2207050","topic":"举例如下：10101和00110从第一位开始依次有第一位、第四、第五位不同，则海明距离为3。","expanded":true}]},{"id":"6da817deda1bca7b9dc779785e","topic":"对d位错位","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"c628127dea4bfb56776d29bd48","topic":"若要检测：海明距离应为d+1位","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"f90a61cd68da3fa826c83b7a14","topic":"若要纠错：海明距离应为2d+1位","expanded":true,"style":{"background":"#8EDDF9"}}]}]},{"id":"ea8bddfd0d99583831c428813e","topic":"海明码的海明距离一定大于等于3","expanded":true,"style":{"background":"#FF9595"}},{"id":"579b3477b278b221a4185b63e5","topic":"位数确定：","expanded":true,"children":[{"id":"6e5a8cee397af82f40e07bbe31","topic":"有效信息n位，检验位的位数k位，则有不等式：","expanded":true,"formula":{"tex":"n + k \\le 2^k - 1","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mrow><mi>n</mi><mo>+</mo><mi>k</mi><mo>≤</mo><msup><mn>2</mn><mi>k</mi></msup><mo>−</mo><mn>1</mn></mrow><annotation encoding=\"application/x-tex\">n + k \\le 2^k - 1</annotation></semantics></math></span>"}}]},{"id":"b469913ed4eaa6cb694d08b23d","topic":"编写校验位：（发出前）","expanded":true,"children":[{"id":"1d49b7b5e2ba0ca71a885aef68","topic":"确定校验位位置","expanded":true},{"id":"3f82b650-b3ac-47dc-92d7-85ab2b082f41","topic":"编写原理：偶校验（即取异或）","expanded":true,"style":{"background":"#FF9595"}},{"id":"fa09809a05abe9ec43904909d9","topic":"进行分组奇偶校验设置","expanded":true}]},{"id":"29c84a66f8984f43de478b90e2","topic":"检测校验位：（接受后）","expanded":true,"children":[{"id":"5fa8fd30fd2b775c2ee82a4329","topic":"按位异或/画韦恩图","expanded":true}]}]},{"id":"af48af0e-4e59-4952-a648-c12fa0e13788","topic":"利用编码技术进行差错控制：","expanded":true,"children":[{"id":"c4de72d1-2830-4236-8d3a-55e0b959efe0","topic":"ARQ自动重传","expanded":true,"children":[{"id":"4d679e6b-3443-4a32-907e-530e10cbfb3a","topic":"接收端出差错可以通知重发","expanded":true}]},{"id":"cce448b3-fc8f-4f6d-9396-99c9e4a5fd55","topic":"FEC前向纠错","expanded":true,"children":[{"id":"b61ac920-7614-411e-8e10-693ea3a862fd","topic":"接收端不但可以发现差错，还能可以自己纠正","expanded":true}]}]},{"id":"5fe9f89aa46a2ec955645b2073","topic":"目的：使得发出的帧，接受可以判断是否出现错误，如果出现错误，可以要求重发","expanded":true,"style":{"background":"#8EDE99"}},{"id":"f7f5ab1c-8819-4d98-a028-0ed016b7d612","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"c53be65e-0026-4394-a1bb-4c0cc360b754","topic":"无","expanded":true}]}]},{"id":"6659ae8b96fb2ffeacc7e8f388","topic":"流量控制（算）","expanded":true,"children":[{"id":"16e7fbfc-cfb6-4846-9ff2-989b7e17be1b","topic":"考频：超高","expanded":true,"style":{"background":"#BA69C8"},"children":[{"id":"3a0147a1-54b4-48a2-ad89-c096e8d3651e","topic":"11、12、14、15、18、19、20、17大","expanded":true}]},{"id":"ac19ad974bebd7d79486d90743","topic":"目的：使得发送方速率不会比接受方快，保障了有效传输，使得每一帧都能发到（基本上都可以）","expanded":true,"style":{"background":"#8EDE99"}},{"id":"8be66896-0192-4c41-bcc5-7c0463eb27e9","topic":"统一特点","expanded":true,"children":[{"id":"2fcdb72d-caec-4108-88fe-ac765c3593a2","topic":"以下三种均为ARQ(Auto Repeat reQuest)","expanded":true},{"id":"a2d9919e-fc0e-49bc-937f-abe4b79dfc36","topic":"都是发完一帧开启一个计时器","expanded":true},{"id":"1b592580-47b9-4b0a-831b-a77f5d2e6852","topic":"滑动窗口如果大小为一，则上下界相同","expanded":true,"style":{"background":"#FF9595"}},{"id":"6f6052ab-d21b-4184-bf2f-d2ce28d16704","topic":"滑动窗口如何算完美：","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"bb5faee2-1671-42bc-a350-ba04491e954e","topic":"分析两种情况，如果接收端所有ACK全部正常抵达和ACK全部丢失的情况下，会不会出现“误解”","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-68ac9959b4bae5.png","width":471.11,"height":289.68},"children":[{"id":"e7657422-32aa-487d-b596-db8653b34331","topic":"此时接收方收到0怎么办","expanded":true}]}]},{"id":"0e769512-5b60-4a19-b710-1c2f3bb5679a","topic":"只有帧的序号落入接收窗口范围内才可以接受，否则就抛弃","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"f97a0f02746a52232092097dc2","topic":"停止等待协议","expanded":true,"children":[{"id":"818ae2b4ae3a9be94fc279e06d","topic":"信道利用率极低","expanded":true,"children":[{"id":"00c94301258a3fc440c1a8dab0","topic":"发送、接受窗口数 = 1","expanded":true}]},{"id":"2d1bb686741aee6c31ae0bcbf1","topic":"ACK0 + ACK1 就足够了","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"e946b1e9-a7a0-4e68-9814-f1b5f4ea9e52","topic":"发送方和接受方都需要设置一个帧缓冲区","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"384338ea-82d7-4769-a1d0-e4a2319b1c08","topic":"作用：发送方发送完帧后，必须在缓存中保留此数据的帧副本，只有收到ACK时才可以丢弃","expanded":true,"style":{"background":"#8EDDF9"}}]}]},{"id":"80a9df69b928f3b6c2908b84d4","topic":"GBN协议\n(累计确认)","expanded":true,"children":[{"id":"5f3808defde926daed00793a79","topic":"总窗口数：N，发送窗口数：N-1，接受窗口数 ： 1","expanded":true},{"id":"e33b367b9bda1dd4df928a0644","topic":"帧序列号n位，则发送窗口大小 <= 2^n - 1","expanded":true,"children":[{"id":"603560e7-6939-4061-985a-f1fe5b52d398","topic":"为什么呢：例如窗口大小为4编号从0~3，则第一批0~3成功发送，接收方也返回了ACK3，那么下一轮发送的就应该是0~3。可是，如果这个ACK3丢失了，那么接收方就不知道发送方又发一遍了吗","expanded":true}]},{"id":"7e9bceb980fbf0a2943fdbefda","topic":"收到 ACK n，说明 n 帧以前的都收到了","expanded":true,"children":[{"id":"ccd39e3d-b9a9-458f-9a15-0cc3868c1c41","topic":"期待收到seq = n+1，也有可能n+1 = seq = 0","expanded":true}]},{"id":"23fda46b-47ba-4050-87ac-78215c22ae6d","topic":"若信道传输质量差 + 误码率大时， GBN还不如停等协议","expanded":true,"style":{"background":"#0CE6CF"}}]},{"id":"1feab011f63929d0e1fc794189","topic":"SR协议","expanded":true,"children":[{"id":"6d19b7c00ebb91d1961e2bd465","topic":"总窗口数：N，接受窗口数可以>1。当发送窗口数 = 接受窗口数时效率最高","expanded":true},{"id":"381ab165c5191880a58559b68e","topic":"帧序列号n，则发送窗口大小 <= 2^(n-1)","expanded":true,"children":[{"id":"57ebabd5-9eaf-43e2-a1a5-2bce6666c6f2","topic":"原因：考虑到接受的所有ACK都丢失了 -> 发送窗口不动，接受窗口已经移动了一组，所以这两个相邻的帧必须不存在任何重复的编号","expanded":true}]},{"id":"967bd081d88bf1993d59d814bc","topic":"收到 ACK n，说明只有第n帧都收到了","expanded":true},{"id":"18230029-c9f2-4a5b-9c54-0957b184b695","topic":"如果接受方怀疑帧出错，就返回一个NAK n给发送端，发送端重传","expanded":true,"style":{"background":"#0CE6CF"},"children":[{"id":"451386a6-fe47-4916-a767-e5dc38ea7dd3","topic":"NAK会指定要重传哪个帧","expanded":true}]}]},{"id":"d0958d07-bf80-4f6e-a600-930a26328f08","topic":"链路利用率如何求解：","expanded":true,"children":[{"id":"02a25c6b-d5c9-4349-aa54-e7472d04fd84","topic":"例如：从1中进行延伸求解","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-103ce66f1a60d8.png","width":710.38,"height":306.85}}]}]},{"id":"f1995b602c7bc8ee81e7e8d9d7","topic":"介质访问（算）","expanded":true,"children":[{"id":"c73816399718e2f741e4db56c4","topic":"信道划分（静态）","expanded":true,"children":[{"id":"8dab4d17f0ab35c8e50fe91221","topic":"FDM 频分多路复用（模拟信号）","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"92d71553-5f4b-46de-be6b-360b4af15fc8","topic":"是将基带信号（数字信号）调制到模拟信号进行传输的","expanded":true},{"id":"b75c7712-60ad-4376-85ec-ec67ce90d5a3","topic":"共享时间","expanded":true},{"id":"a472b741-3016-4a11-8349-93111dd64f66","topic":"相邻信道间加入”保护频段”","expanded":true,"style":{"background":"#ADADAD"}}]},{"id":"11baef89e02b90093eb4dba8b3","topic":"TDM 时分多路复用（数字信号）","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"e306d02f-26f7-4a02-ae18-f455874f73d1","topic":"共享空间，把时间段的某个固定位置分配给固定的帧","expanded":true,"children":[{"id":"d42517a8-cd14-4b64-b8e2-a0f15f0f96d2","topic":"如果不用就会很浪费","expanded":true}]},{"id":"aae55ce4-e99a-4147-a02b-221a01b17457","topic":"STDM---统计时分复用，动态分配时隙（不停的问，来就上车）","expanded":true}]},{"id":"339a27466d7863e49d237b5b1d","topic":"WDM","expanded":true,"children":[{"id":"6affb3d3-eed5-44ef-8e4c-513a415b2626","topic":"光的频分多路复用","expanded":true}]},{"id":"fc2bafb8609876ff84240a17b1","topic":"CDM","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"f740a8b8-34cd-47cb-926f-5a09071b5c7f","topic":"采用不同的编码方式来进行区分原始信号的一种复用方式","expanded":true},{"id":"961ba898-d85a-4d53-a598-72c6d46d7fb2","topic":"CDMA","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"4a6c1d02-925e-455f-878a-18dd053ab831","topic":"采用补码方式进行码片序列的设置","expanded":true},{"id":"30343e0b-d284-4991-ac47-f97428eba5b2","topic":"例：一共有4个站点，使用8位数据来设置码片序列","expanded":true,"children":[{"id":"656e205c-9c98-4f2c-8980-5c4a5f9f0ee1","topic":"如果有n个站点，则码片序列位数应该>=n","expanded":true,"style":{"background":"#FDD834"}},{"id":"0ff130d2-6c33-4837-a12d-541bae117bbf","topic":"n维空间，最多有n个线性无关的向量","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"bf9160b4-0e05-4cd4-9509-e68c8e6812ce","topic":"步骤：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"c36c85e6-8eb4-47cf-8fe6-79ffec86d4e1","topic":"发送","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"b456d54c-d2e2-44ee-9a4e-b3f30b634b89","topic":"1. 每个站点都有一个相互正交的码片序列","expanded":true,"children":[{"id":"23cf5a96-ad03-48fd-8dcd-118ddd37d99d","topic":"空间中多个相互正交的向量","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"4064f004-50b4-45f7-bd14-15b74ea7bb84","topic":"2. 站点如果想要发送1，就发送(+序列)，如果想要发送0就发送(-序列)","expanded":true,"children":[{"id":"0b332ac5-2d69-4ef1-bd08-41a0c58aff3c","topic":"用投影后为1、-1的向量来表示数据","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"206ba81d-234b-4edb-8801-c2062ed4c519","topic":"3. 公共信道将所有的站点数据累加在一起","expanded":true,"children":[{"id":"88171df2-1110-4e1a-aba3-d68bfa6b5039","topic":"将多个正交向量相加，其投影性质不会发生变化","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"d70f22be-c39f-4913-96ba-042083dbba4d","topic":"4. ....发送中....","expanded":true}]},{"id":"b91b8d6a-eb41-4c8b-bd01-6b5d2943cba8","topic":"接受","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"d13ae1ec-5703-4ca1-9ec3-4511c15b3283","topic":"1. 公共信道收到一个码片序列","expanded":true,"children":[{"id":"30d9acd1-a60c-480a-8d1a-73c51e59d973","topic":"收到一个向量","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"41f33cfa-852d-4b85-b279-b05365007b3b","topic":"2. 码片序列和每一个站点的码片序列做点乘","expanded":true,"children":[{"id":"3d58c970-1d3c-48a5-a8b2-542cf3aa9b35","topic":"使用投影对向量进行每个向量轴的分解","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"2276a825-6878-440c-a4b4-934e742a7466","topic":"3. 如果点乘结果是1，就说明发送了1给该站点。如果点乘结果是-1，就说明发送了0给该站点。如果点乘结果是0，说明没有发送给该站点的数据。","expanded":true,"children":[{"id":"213b2508-e05a-4e45-848a-fab1198c7efe","topic":"根据投影结果得知数据","expanded":true,"style":{"background":"#FDD834"}}]}]}]}]}]}]},{"id":"04ab6afcb338a7b78a3e58f21b","topic":"随机访问（动态）","expanded":true,"children":[{"id":"6d5a538fca6ba72bbb70f86167","topic":"ALOHA","expanded":true,"children":[{"id":"bad91e59450bf0aae48cc95484","topic":"收到就发","expanded":true,"icons":["emoji:😄"],"style":{"background":"#FDD834"}},{"id":"595ed808-b53a-4d20-a481-22aafce125b3","topic":"发送策略：","expanded":true,"children":[{"id":"592a5a5f-4db8-4387-903e-c8122b468bd9","topic":"拿到就发","expanded":true}]},{"id":"81181f98-352c-4090-bffe-efe9f44ef872","topic":"冲突策略：","expanded":true,"children":[{"id":"da73777b-f06a-4b7b-8afa-7cc76b48e6e5","topic":"发现冲突，等待一个随机时间在重发，重次往复","expanded":true}]},{"id":"c35dfcd7-70df-4f9f-82bf-4f757f00eccb","topic":"最大吞吐量：0.184","expanded":true,"formula":{"tex":"S = Ge^{-2G},\\quad G = 0.5","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mrow><mi>S</mi><mo>=</mo><mi>G</mi><msup><mi>e</mi><mrow><mo>−</mo><mn>2</mn><mi>G</mi></mrow></msup><mo separator=\"true\">,</mo><mspace width=\"1em\"/><mi>G</mi><mo>=</mo><mn>0.5</mn></mrow><annotation encoding=\"application/x-tex\">S = Ge^{-2G},\\quad G = 0.5</annotation></semantics></math></span>"}}]},{"id":"4efa47efbd2a43ec728a6b4c26","topic":"时隙ALOHA","expanded":true,"children":[{"id":"182aaf34d81b28ff3de268c443","topic":"收到等一会就发","expanded":true,"icons":["emoji:😄"],"style":{"background":"#FDD834"}},{"id":"5a739877-4218-4420-80f1-5a3c1548f25b","topic":"发送策略：","expanded":true,"children":[{"id":"8b347eb4-1587-4195-bc85-3f33b6a84b42","topic":"固定有一个时隙T0，帧到达后在缓存中等待一个<T0的时间，然后等到下一个时隙开始再发","expanded":true}]},{"id":"c4d28ff1-d1ea-4215-bc6e-6a03143d207d","topic":"冲突策略：","expanded":true,"children":[{"id":"3633c944-d01c-4e54-9e4d-dcec0fad9483","topic":"和ALOHA一样","expanded":true}]},{"id":"312a4927-09c2-4667-b0b9-1741ecc030c7","topic":"最大吞吐量：0.368","expanded":true,"formula":{"tex":"S = Ge^{-G},\\quad G = 1.0","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mrow><mi>S</mi><mo>=</mo><mi>G</mi><msup><mi>e</mi><mrow><mo>−</mo><mi>G</mi></mrow></msup><mo separator=\"true\">,</mo><mspace width=\"1em\"/><mi>G</mi><mo>=</mo><mn>1.0</mn></mrow><annotation encoding=\"application/x-tex\">S = Ge^{-G},\\quad G = 1.0</annotation></semantics></math></span>"}}]},{"id":"906b99d1ba89f912028c8a14ab","topic":"CSMA","expanded":true,"children":[{"id":"a9d1e122-dac2-4bb3-83b3-6ab459fd6ac2","topic":"先听再发，发完不管","expanded":true,"icons":["emoji:😄"],"style":{"background":"#FDD834"}},{"id":"2a156bac-2cdd-4079-98cf-fd8027767d7e","topic":"Carrier Sense Multiple Access\n载波侦听多路访问","expanded":true},{"id":"c67b0524-5aee-4b70-8b3e-62789e353559","topic":"策略","expanded":true,"style":{"background":"#8EDE99","fontWeight":"normal"},"children":[{"id":"13e8a32b-0960-404f-8269-ad76ee6e396d","topic":"三种坚持CSMA","expanded":true,"style":{"background":"#8EDDF9","fontWeight":"normal"},"children":[{"id":"9ff23619-1dd8-4b3a-91a8-d8f8db833847","topic":"1-坚持","expanded":true,"style":{"background":"#8EDDF9","fontWeight":"normal"}},{"id":"8f85967b-23b7-4e12-aa1c-7020fece9c45","topic":"非坚持","expanded":true,"style":{"background":"#8EDDF9","fontWeight":"normal"}},{"id":"da6ef329-8aa1-4a74-9efc-e6473880778e","topic":"p坚持","expanded":true,"style":{"background":"#8EDDF9","fontWeight":"normal"}}]},{"id":"19bc5742-a199-4d63-ae81-fa3769026956","topic":"监听策略：","expanded":true,"style":{"background":"#FDD834","fontWeight":"normal"},"children":[{"id":"d8f017d8-edbb-42d1-8932-8987b37680b0","topic":"忙就一直听","expanded":true,"style":{"background":"#FDD834","fontWeight":"normal"}},{"id":"a3635929-a646-438b-9ade-56f27154c2b9","topic":"忙就放弃听，过一会再来","expanded":true,"style":{"background":"#FDD834","fontWeight":"normal"}},{"id":"b073f4f3-7d89-4fdc-a997-0ce5b48a8f7f","topic":"忙就一直听","expanded":true,"style":{"background":"#FDD834","fontWeight":"normal"}}]},{"id":"ce8a2875-6fce-4132-9bfd-8638c12f9123","topic":"发送策略：","expanded":true,"style":{"background":"#FF9595","fontWeight":"normal"},"children":[{"id":"32b3a7f6-dba7-45f1-a990-a38ea05988de","topic":"空闲就发","expanded":true,"style":{"background":"#FF9595","fontWeight":"normal"}},{"id":"5dc4db3f-4e3a-4c18-8d6d-055d330277e8","topic":"空闲就发","expanded":true,"style":{"background":"#FF9595","fontWeight":"normal"}},{"id":"d831e69b-ca8b-439e-8b20-13e63d42c389","topic":"空闲有p的概率发送，有1-p继续监听","expanded":true,"style":{"background":"#FF9595","fontWeight":"normal"}}]},{"id":"a393cc00-c125-4cd0-927e-fbbcec2c1351","topic":"冲突策略：","expanded":true,"style":{"background":"#FFABD5","fontWeight":"normal"},"children":[{"id":"0ec4e3ca-31fb-4f00-8df6-9e6cd19eb9c2","topic":"都和ALOHA一样","expanded":true,"style":{"background":"#FFABD5","fontWeight":"normal"}}]}]},{"id":"264ec882-d446-4948-b8fb-dfed73b6e02e","topic":"特点：","expanded":true,"children":[{"id":"ca2bb38a-ce37-410d-80f6-2652573c6694","topic":"发送时，仍有可能会冲突","expanded":true}]}]},{"id":"004ae67956a9b79614fe3be393","topic":"CSMA/CD","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"117d0389-e02b-40fc-b623-5d9d36b80051","topic":"全程都听","expanded":true,"icons":["emoji:😄"],"style":{"background":"#FDD834"}},{"id":"694937454ccbfe7c2b5a6802ef","topic":"记一个重要公式","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"38fa27cc2ed8fa204d9879a79a","topic":"最小帧长 = 2 * 传播时延 * 传输速率","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"59183e92f18ba2c5aad01812f6","topic":"其中 传播时延 = 总线长度 / 电磁波的发送速率","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"c1da49c0935be38383fc693d51","topic":"CSMA/CD 最小帧长公式","expanded":true,"formula":{"tex":"L_{\\text{帧}} = 2 \\times v_{\\text{传}} \\times t_{\\text{线}}\\quad\\left(t_{\\text{线}} = \\frac{L_{\\text{线}}}{v_{\\text{电磁波}}}\\right)","displayMode":true,"mathml":"<span class=\"katex\"><math xmlns=\"http://www.w3.org/1998/Math/MathML\" display=\"block\"><semantics><mrow><msub><mi>L</mi><mtext>帧</mtext></msub><mo>=</mo><mn>2</mn><mo>×</mo><msub><mi>v</mi><mtext>传</mtext></msub><mo>×</mo><msub><mi>t</mi><mtext>线</mtext></msub><mspace width=\"1em\"/><mrow><mo fence=\"true\">(</mo><msub><mi>t</mi><mtext>线</mtext></msub><mo>=</mo><mfrac><msub><mi>L</mi><mtext>线</mtext></msub><msub><mi>v</mi><mtext>电磁波</mtext></msub></mfrac><mo fence=\"true\">)</mo></mrow></mrow><annotation encoding=\"application/x-tex\">L_{\\text{帧}} = 2 \\times v_{\\text{传}} \\times t_{\\text{线}}\\quad\\left(t_{\\text{线}} = \\frac{L_{\\text{线}}}{v_{\\text{电磁波}}}\\right)</annotation></semantics></math></span>"}}]},{"id":"40288a64f71b1e947fa7ba9a78","topic":"先听后发，边听边发，冲突停发，随机重发","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"998a0870de39d47a06642b0c9b","topic":"争议期（冲突窗口、碰撞窗口）：最远两端点之间的往返时延","expanded":true,"style":{"background":"#E2E9F1"}},{"id":"80fce2c4-1d76-4969-b763-d9930b70be3e","topic":"如果第一个分组没有发生碰撞，就说明抢占信道成功了。","expanded":true}]},{"id":"fe9aeb07b4a9de2c5c611848bd","topic":"计算最短帧长","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"e52109f4-d9f5-4c2e-92ec-7df646419d09","topic":"要在发送完前检测到碰撞信号","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"181fffdf-46aa-4d67-8451-42670ed38707","topic":"重发算法：","expanded":true,"children":[{"id":"be9a4878f59b25f1b4700bd689","topic":"使用二进制指数退避算法","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"27bacc49d1dadbd1b5a48987b5","topic":"从 1-10，最多16次，等待时间为2t*k，k为 0~2^n - 1（n从1-10，后一直为10）的数","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"42f9617e-1597-4a99-aa92-12b669be6b01","topic":"t即为争议期","expanded":true},{"id":"7fc45d29-386e-44e3-9dd1-d368350abf5f","topic":"超过16次，抛弃该数据帧，向上层汇报","expanded":true,"style":{"background":"#FF9595"}}]}]}]},{"id":"dc2892d8f7c89502105e490fc0","topic":"用于有线网，如：以太网的数据","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"77a5568f-6794-4014-9075-0baa6f704d54","topic":"51.2us是征用期","expanded":true,"style":{"background":"#FDD834"}},{"id":"fe588b56-4056-4593-9e66-12c661eef358","topic":"速度10Mb/s","expanded":true,"style":{"background":"#FDD834"}},{"id":"fdf990da-f384-4620-b341-0a3d6585ab28","topic":"64B是最短帧长","expanded":true,"style":{"background":"#FDD834"}}]}]},{"id":"55ebc3048a294dae3761c9cbc2","topic":"CSMA/CA","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"a748dfdc-1070-4f45-89a1-e876ab11e55f","topic":"发送前预约信道","expanded":true,"icons":["emoji:😄"],"style":{"background":"#FDD834"}},{"id":"e29acdc2f9a84fa245cafab1cb","topic":"用于无限网","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"21205450-2afe-40b6-9b2a-d7bd77375d53","topic":"隐蔽站：","expanded":true,"children":[{"id":"656dc99f-b452-4976-bb29-c6b2464414c9","topic":"存在隐蔽站，所以第一次需要发送一个RTS控制帧进行预约，包括源地址、目的地址、这次通信所能维持的时间","expanded":true}]},{"id":"05258dac-064d-4db9-ba6c-84c4ecc2fa45","topic":"三种协议","expanded":true,"children":[{"id":"cc4086ed-d84e-494a-ba60-032cae360779","topic":"协议有三种选择：1. 使用RTS和CTS 2. 数据帧长度超过一定值使用RTS和CTS 3. 不使用RTS和CTS","expanded":true}]}]},{"id":"f282c752-6eb3-40bb-9aa0-0eeb851ec6df","topic":"算法步骤：","expanded":true,"hyperlink":"https://www.bilibili.com/video/BV1ET4y1B7op?spm_id_from=333.337.search-card.all.click&vd_source=d75b38061e3b7a39145438daf0bed0fe","children":[{"id":"99193c8c-a4e7-416e-933a-18d8db6b699b","topic":"1. 站点有数据要发送","expanded":true,"children":[{"id":"3984cd7d-1d13-42f6-b1be-bfc9e9f5c2ee","topic":"如果信道空闲，就等一个DIFS后发送","expanded":true},{"id":"b7f5c13c-334f-43c4-a5b8-87fe4189e746","topic":"如果信道不空闲，执行CSMA/CA的退避算法，选取一个【随机回退值】。如果信道【忙】，那么退避计时器【不动】。如果信道【空闲】，那么退避计时器【进行倒计时】。","expanded":true}]},{"id":"73e38b2f-1ff4-4ad6-8582-e4bbd6b3623b","topic":"2. 发送","expanded":true,"children":[{"id":"5bbf5f0b-c9ac-4c66-aa15-c741a0b9308c","topic":"退避计时器到0时，此时信道【一定空闲】，可以直接发送帧（只有空闲才能倒计时）","expanded":true}]},{"id":"d2032748-72ce-4b47-b53f-8ec94516f9ae","topic":"3. 确认","expanded":true,"children":[{"id":"9448eca2-5665-4495-b94b-0e2772e92ebb","topic":"发送站收到确认ACK，就说明正确接受，如果还要发送第二帧，就重新设置【回退值】","expanded":true},{"id":"8f623c13-3279-4182-a27f-74acbfc2dd94","topic":"发送站没收到ACK，就重新从开头进行征用信道。如果重传若干次失败，则放弃","expanded":true}]}]},{"id":"ceb8a20667690bff2ea2ba3913","topic":"图示","expanded":true,"style":{"background":"#8EDDF9"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-f59c4964e62e94.png","width":423.78,"height":572.52},"children":[{"id":"07227770-eb49-4b89-a59d-12ef94d3a157","topic":"DRS.CS.DSA - 当然是测试电视啊","expanded":true,"style":{"background":"#FDD834"}},{"id":"1a59b512-6cb0-430f-9c7e-d9cd8005471f","topic":"DIFS：","expanded":true,"children":[{"id":"85d0bb1f-f77f-4018-ac3a-9c09a5b23ebf","topic":"Distributed Interframe space，分布式帧间间隔","expanded":true}]},{"id":"41148bea-08f7-4a16-9328-67b5d26ab7e5","topic":"SIFS：","expanded":true,"children":[{"id":"640be97a-cc84-4793-bcd8-ec9c4fa8e59b","topic":"Short interframe space，短帧间间隔","expanded":true}]},{"id":"2c54b124-05f2-43f0-9dd8-710f10fa39ea","topic":"RTS：","expanded":true,"children":[{"id":"910786bf-aa67-4a5c-b8bc-b855508930dc","topic":"存在隐蔽站，所以第一次需要发送一个RTS控制帧进行预约，包括源地址、目的地址、这次通信所能维持的时间","expanded":true}]},{"id":"0b05af14-4ea7-45ed-9b20-512fade8c80a","topic":"CTS：","expanded":true,"children":[{"id":"5e75c6aa-6c27-453f-954f-2f16f61360b4","topic":"目的地会广播一个CTS给周围的站点，告诉请求主机可以发送，告诉其他主机抑制发送","expanded":true}]}]}]}]},{"id":"274ba472853a6355af89289866","topic":"令牌环网","expanded":true,"children":[{"id":"beba3b33ef9a20ceeef2794daf","topic":"轮询邀请 + 令牌传递","expanded":true},{"id":"5d268b03-167b-4215-bc9a-dd5fe0094383","topic":"步骤：","expanded":true,"children":[{"id":"9ff8310d7389cb9fd091cb9e59","topic":"1. 创建一个令牌，令牌是特殊的MAC控制帧；令牌的传递方式是以一个固定次序","expanded":true,"children":[{"id":"2bad044e-92f6-43eb-8878-6dad717bf5c2","topic":"令牌只有一个，令牌一直询问","expanded":true}]},{"id":"4292928a-fe25-4ecd-b020-7ba2e3ad7d30","topic":"2. 站点想要发送数据，必须先收到令牌。","expanded":true,"children":[{"id":"6ca6b49f-26f0-4564-8bed-10a32ca32962","topic":"发送含有目的地址等数据的一个帧","expanded":true}]},{"id":"a01c93bc-0246-4047-905c-fcd80aa992f8","topic":"3. 帧在环上传送时，所有站点都会进行转发。","expanded":true,"children":[{"id":"7f1da4c6-e353-4398-8f51-8ed273f1ab7c","topic":"如果目的站点收到了，就先在帧尾部设置一个“响应比特”来指示收到了。然后再转发（所以目的站点会先接受帧，然后创建一个帧+尾部的副本进行转发）","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"35964c08-a21d-4222-a97c-af043c6ecf46","topic":"4. 始发站收到帧后，发现已经成功了，就释放令牌","expanded":true}]},{"id":"6f165506-8cfa-4020-a102-af1993caa890","topic":"非常适用于负载很高的广播信道，因为不存在冲突","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"50b8736d306bcf2ec330494565","topic":"目的：在MAC子层上，来控制发送前的信道监听和发送后的冲突碰撞","expanded":true,"style":{"background":"#8EDE99"}},{"id":"89711942-6f5f-48d2-940a-4baad1a9ebbd","topic":"考频：超高","expanded":true,"style":{"background":"#BA69C8"},"children":[{"id":"a078284c-afde-4ac0-92e2-07d1ec42f66c","topic":"09、11、13、14、15、16、18、19、20","expanded":true}]}]},{"id":"d2d914ede23ae91bdc6bab1d74","topic":"局域网（记）","expanded":true,"children":[{"id":"dfbfd7a5-c24d-4976-b20d-d9feb72810f3","topic":"考频：中","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"2a35c427-2840-466a-939f-796bb89647ca","topic":"12、17、19","expanded":true}]},{"id":"fe46b895-c071-452c-900d-23ca9767bdf0","topic":"定义","expanded":true,"children":[{"id":"2816a902-b337-41b5-96b9-2cedfc090b0a","topic":"LAN","expanded":true},{"id":"2320e642-022a-4ff3-be49-ffa4f2658e2e","topic":"在一个较小地理区域中，用【线（双绞线、同轴电缆）】等介质连接起来的","expanded":true}]},{"id":"24ec8597-85e1-4941-a24a-2411b756e05a","topic":"特点","expanded":true,"children":[{"id":"62e89bd2-efb5-4a72-af9f-b660ddd76b53","topic":"所有站点共享总带宽","expanded":true},{"id":"e0d9df36-f041-4da7-9b32-3a394f064f05","topic":"各站为平等关系","expanded":true},{"id":"4fdd38ec-6d05-4b34-bd5c-29ed86cd9dc6","topic":"可以广播和组播","expanded":true}]},{"id":"b3900457-993e-4f0b-8ad7-a2210ebfc608","topic":"分类","expanded":true,"children":[{"id":"0bb436d0-3e87-46d1-9803-0c8262b0aee9","topic":"五种经典的局域网","expanded":true,"children":[{"id":"2000a0da-bb04-4f37-901b-e9f1b05675da","topic":"以太网","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"5ec5c9e4-f332-48d6-ac07-c93d98eb961a","topic":"IEEE802.3","expanded":true,"style":{"background":"#8EDE99"}},{"id":"2a35e6b6-0882-4940-914f-79793e69b6b2","topic":"逻辑上总线型","expanded":true,"style":{"background":"#8EDE99"}},{"id":"2beb0f66-3e80-436c-b03c-093bcfbc14a6","topic":"物理上星型/拓扑型","expanded":true,"style":{"background":"#8EDE99"}},{"id":"851a6cde-d6ba-4c70-9b17-471dea761d7d","topic":"大部分采用CSMA/CD","expanded":true}]},{"id":"75e39569-49f3-4288-9d71-79970d2e0d82","topic":"令牌环网","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"0e40e170-12e2-43bd-8695-2a0aae7a7a91","topic":"IEEE802.5","expanded":true,"style":{"background":"#8EDE99"}},{"id":"4e887cb8-9859-415b-80de-185983bb684e","topic":"逻辑：环型","expanded":true,"style":{"background":"#8EDE99"}},{"id":"010e45e2-e18d-4465-89fb-36aa327e055b","topic":"物理上：星型","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"c8cfb49f-dcdd-4460-837d-4bede90b4ccd","topic":"FDDI（光纤）","expanded":true,"children":[{"id":"3c42c019-c07a-47f9-a98d-308f57eaa455","topic":"IEEE802.8","expanded":true},{"id":"06d31f51-06d1-4fff-bc99-95c6b6a28465","topic":"逻辑：环型","expanded":true},{"id":"c6c65cb5-16eb-478a-964b-fb54416b097e","topic":"物理上：双环","expanded":true}]},{"id":"3c83ffb1-4b8a-48b1-b084-e887b8fccc3b","topic":"ATM","expanded":true,"children":[{"id":"69a1ecf8-6172-4893-ad66-00c0626e9a25","topic":"单元交换","expanded":true}]},{"id":"030862f7-2fa9-4ca9-ba5e-ffe9abde0b4e","topic":"WLAN","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"595453be-7d41-4c09-9d27-93f14b1574fe","topic":"无线局域网","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"f0491f2b-75bd-45d5-9098-1b6488a237fe","topic":"IEEE802.11","expanded":true,"style":{"background":"#8EDE99"}}]}]}]},{"id":"7a6b2aeb-78e5-4cb7-9184-82d3f3d7e58d","topic":"一图记忆：","expanded":true,"children":[{"id":"35d4eee7-b923-4a14-96d2-e51b4a92e8d6","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-76925009f69aa9.png","width":528.13,"height":237.03},"children":[{"id":"55ff6a56-7d2d-4096-b50f-b14077d5a729","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-e1149323ae0b12.png","width":302.89,"height":149.98}}]}]}]},{"id":"b973f7a7-d664-4072-b6bf-8e6f23f09052","topic":"IEEE802的局域网标准","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"251f6266-0438-480f-bcfd-1e893890a3d0","topic":"将数据链路层分为了LLC和MAC","expanded":true},{"id":"3850f3fd-f176-4af4-bbdc-7674d0179934","topic":"提供网络层服务：","expanded":true,"children":[{"id":"4a8ac6c8-d18f-48d9-9684-93374155603e","topic":"LLC：向网络层提供（三种确认连接 + 高速传送）四种连接服务","expanded":true}]},{"id":"b717bb96-3cfb-41e8-9389-e3c87216e39f","topic":"提供物理层接口：","expanded":true,"children":[{"id":"edc29b76-38fd-4bfd-8057-82557660d4e9","topic":"MAC：组帧和拆卸帧、比特传输、差错检测、透明传输","expanded":true}]}]},{"id":"22247f43-ed3a-4662-92a7-2bb50d1105a9","topic":"以太网\nIEEE 802.3","expanded":true,"icons":["star:#ef4444"],"style":{"background":"#8EDE99"},"children":[{"id":"c17703a8-b2ec-4f37-8ef7-856b1f6c9f5c","topic":"重要特点","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"99b54920-6552-40fb-869a-e4c088dc85db","topic":"使用CSMA/CD","expanded":true,"style":{"background":"#8EDE99"}},{"id":"923a6eb3-42c3-4c49-8d64-1ede7eca8030","topic":"符合【IEEE802.3标准的局域网】为以太网","expanded":true},{"id":"dcf0f936-7fa4-446f-8728-46161a429398","topic":"简化通信，采用无连接不可靠，差错纠正交给上层完成","expanded":true,"style":{"background":"#8EDE99"}},{"id":"95da378c-a660-4e10-95b1-f9a08225919b","topic":"使用曼彻斯特编码，2Baud = 1 bit","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"e823ddc3-f8e6-4524-bec8-c89573766f7a","topic":"为何以太网这么牛逼（统治地位）：","expanded":true,"children":[{"id":"08e4f53d-b86b-4ef3-8bc5-04bd8ebdcca6","topic":"1. 便宜（网卡不到100块钱）","expanded":true,"style":{"background":"#8EDE99"}},{"id":"919a0b4a-e155-44a0-8c06-20fd48a9e287","topic":"2. 应用最广泛的局域网","expanded":true},{"id":"13c52bfb-26e4-47a5-95b0-e2b200b07bd1","topic":"3.  比令牌环网、ATM便宜","expanded":true},{"id":"da401ef6-8cb5-4751-9db8-30166ceb7abd","topic":"4. 满足网络要求：10Mb/s - 100Mb/s","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"115ba59b-ad62-4273-bf95-da8fc83335d2","topic":"传输介质","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"2ddb26c1-0cf9-4b46-8910-390d1d96168d","topic":"要求全部记住，因为是考点","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-239e50b051a117.png","width":673.17,"height":195.7}}]},{"id":"173980c4-2555-4648-9035-e326d7977940","topic":"网卡（网络接口卡/网络适配器）","expanded":true,"children":[{"id":"23980c9d-64ce-4bc5-b1ef-70912f2c1fec","topic":"功能：实现与局域网传输介质间的物理连接和电信号匹配涉及帧的发送接受封装拆解等等","expanded":true,"style":{"background":"#EEEEEE"}},{"id":"5ade5870-badd-40b3-9615-97d915542635","topic":"每块网卡在出厂时就有一个MAC地址","expanded":true,"style":{"background":"#FDD834"}},{"id":"77a233ac-ca18-4276-bc6a-2187f8019cb1","topic":"网卡工作在物理层，只关注比特流","expanded":true}]},{"id":"b0591251-951b-4265-99d2-08cc1d45744b","topic":"MAC帧详解","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-5df69f3568c33d.svg"},"children":[{"id":"5be63177-5f32-4c14-9c4e-dbe9be9b9bc6","topic":"MAC地址：6B = 48 bit = 12个16进制数。","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"02dfe3a9-517e-4568-ae7c-5da226e831c0","topic":"例如：1A-2B-3C-4D-5E-6F","expanded":true},{"id":"23b8cf65-1524-4fee-a310-3ed04deca994","topic":"高24b为厂商编码","expanded":true,"style":{"background":"#FF9595"}},{"id":"43f35e0a-0bdd-4658-91b9-0ffcdeed2f34","topic":"低24b为厂商的网卡序号","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"b71fd728-172b-49af-a003-2f907af55f95","topic":"故局域网中指定接受方使用的是MAC地址","expanded":true},{"id":"f91c4d66-bf47-4792-a4f7-51fee696632d","topic":"图中每一句话都重要，细看","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-d7dea6b0f4f26b.png","width":500.92,"height":201.86},"children":[{"id":"a84ffbe3-3ba2-4b95-b4c5-94562408225b","topic":"6 6 2 4","expanded":true},{"id":"584a797d-7040-4e87-809c-1285213b23da","topic":"第一个是目的，TCP、IP、UDP的第一个都是源","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"d6a9cadf-9cd0-42f6-9d6f-39aa2ae49a69","topic":"上图为DIX的帧格式，802.3的帧格式把【类型】2B字节改为了【数据长度】。","expanded":true,"style":{"background":"#8EDE99"}},{"id":"ee328926-2059-40c4-a02c-ab7a658ff5d8","topic":"发送原理：","expanded":true,"children":[{"id":"e7ecc188-2bac-4343-8365-0feda4caca53","topic":"一个网卡收到一个MAC帧后，首先用硬件检查MAC帧的MAC地址是否在本站内，如果是就收下","expanded":true,"children":[{"id":"a943235a-d328-4289-a93f-09efa61490da","topic":"如果不是呢？","expanded":true,"children":[{"id":"8ca777e9-9b70-4650-8a72-9a5707e6d830","topic":"就丢弃，因为以太网是广播的，不需要转发","expanded":true}]}]}]}]},{"id":"03d6dbcf-a019-4b37-9bfd-68e0241a94f9","topic":"三种高速以太网","expanded":true,"children":[{"id":"83ae6c4c-a66b-4e87-9ff3-e2d82eae0749","topic":"100Base-T","expanded":true,"children":[{"id":"01cc86e2-b0f7-4bf6-8139-d30dcf04d169","topic":"100Mb/s","expanded":true},{"id":"94d76719-68b7-4016-8ee8-e05f93d80b5f","topic":"半双工 + 全双工","expanded":true},{"id":"47990fea-e57c-4100-843a-a08ea79a67f5","topic":"CSMA/CD（only in 半）","expanded":true},{"id":"f7597439-0272-4d32-a838-02c3eaf4ef37","topic":"最短帧长仍是64B，电缆长度减到100m，帧时间间隔为0.96us","expanded":true}]},{"id":"daaf77cf-3010-47ca-b115-44d39790f73d","topic":"吉比特以太网\n（千兆以太网）","expanded":true,"children":[{"id":"e9c5de12-25c2-45a0-856d-32ef45c516f4","topic":"速度是1Gb/s","expanded":true},{"id":"74c15a3f-1485-46f3-ae28-41d4c6c956eb","topic":"其他和 100Base-T 一样","expanded":true}]},{"id":"c47b7199-a02a-422e-ba33-136641bb4fa5","topic":"10吉比特以太网","expanded":true,"children":[{"id":"bb2d7d44-b08d-44b4-9723-c890f09143e2","topic":"使用光纤","expanded":true},{"id":"9a83ccfc-a96b-414b-8a27-fde68db852d5","topic":"只能全双工","expanded":true,"children":[{"id":"9285b2d9-8caa-4b9f-8b05-4062a65371fb","topic":"没有CSMA/CD","expanded":true}]}]}]}]},{"id":"b9001bd3-010e-43cb-919b-6399afc93375","topic":"IEEE802.11","expanded":true,"children":[{"id":"19019e3c-35b3-468c-b455-d9c430fd0e8e","topic":"用于无线局域网WLAN","expanded":true,"children":[{"id":"44476f8f-b411-4b99-afe7-4a8f7b6e80fa","topic":"WiFi","expanded":true}]},{"id":"fa6774f1-cbb3-4584-bb20-9a8865950f65","topic":"帧头以及各功能内容：","expanded":true,"style":{"background":"#8EDE99","shape":"rect"},"children":[{"id":"bd01fdc6-5ad3-43fa-b4b9-734dda3db654","topic":"图示","expanded":true,"style":{"background":"#8EDE99","shape":"rect"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-906a78e78ac79f.png","width":568,"height":266}}]},{"id":"4e868269-3e16-4000-afd2-32aad79b346e","topic":"专有名词","expanded":true,"children":[{"id":"f91c6acb-8fb6-42a1-8886-6d425784ae7c","topic":"802.11 a/b/g/n","expanded":true,"children":[{"id":"fa3d8e32-c3d0-42d0-be66-3b5c74510b48","topic":"AP：接入点","expanded":true,"children":[{"id":"2cb27320-cef5-4181-9387-485734107a16","topic":"BSS：基本服务集","expanded":true,"children":[{"id":"476979b8-c30c-42c5-836a-94f16bcce6c8","topic":"SSID：服务集标识符","expanded":true}]}]}]},{"id":"1f0de39a-9589-4051-9b75-4cf76e262f78","topic":"DS：分配系统","expanded":true,"children":[{"id":"0cf8e07e-1bd3-4c44-8912-3a681e2ec64a","topic":"ESS：扩展服务集","expanded":true,"children":[{"id":"a11ec234-7837-4504-9f86-15351e1f954c","topic":"Port：门桥","expanded":true}]}]}]},{"id":"34c259f9-7039-4411-9311-c29162fb0ac8","topic":"有固定基础设施的WLAN","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"259b264c-2a27-453e-9efc-0e660d260762","topic":"图示","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-309b7a567b3ab6.png","width":513.76,"height":237.07}}]},{"id":"215c0779-4600-4127-b26b-d33b96dc5224","topic":"无固定基础设置的WLAN","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"d9c588cc-0324-4e80-a796-dacb952d486b","topic":"无AP，由平等状态的一系列移动站组成","expanded":true,"style":{"background":"#FDD834"}},{"id":"73f8687c-3414-4443-aeb8-87d5aa4869e4","topic":"每个结点都是转发结点，每个结点都可以是路由器","expanded":true,"style":{"background":"#FDD834"}}]}]},{"id":"8405e007-6764-4b64-a641-bd23c3c04229","topic":"令牌环网的基本原理","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"c3df1c05-8690-4ede-83aa-03ecd3f555e0","topic":"TCU","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"4fddc7d4-8548-48ad-a9c9-3d18e31d811a","topic":"环接口干线耦合器","expanded":true,"style":{"background":"#FF9595"}},{"id":"34e4dea3-35cf-4da1-8687-826236246db4","topic":"作用：传递所有经过的帧，为接入站的发送和接受提供窗口","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"d363a7f7-c723-4e1f-90af-e36043577f16","topic":"控制机制：","expanded":true,"children":[{"id":"1db2ec9c-1cff-4896-8cb2-f11be61360bb","topic":"分布式的控制模式的循环方法","expanded":true}]},{"id":"c51049c7-04a0-40a0-931b-e8538626503b","topic":"物理星型，逻辑环","expanded":true}]}]},{"id":"54e3a57c-5f16-4fce-9397-6024f86645c3","topic":"广域网","expanded":true,"children":[{"id":"6617a530-5012-4cc8-8a55-e1c47888a721","topic":"因特网是世界上范围最大的广域网","expanded":true},{"id":"14d2ff78-95dc-4cd8-8719-bcee3f1f0193","topic":"特点：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"f3d53c5e-a32b-48b1-bd15-45a7d0d0cf1d","topic":"广域网是连接众多局域网的网络","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-42d84bd4d42a01.png","width":593.85,"height":192.19}},{"id":"ae8244c3-4b67-46a5-8cab-d3dbecaec111","topic":"!= 互联网，互联网=广域网+局域网","expanded":true,"style":{"background":"#FF9595"}},{"id":"1ef00db5-4206-4367-862a-78d0227f0a2d","topic":"广域网采用【结点交换机】在单个网络中转发分组，功能很类似路由器","expanded":true,"style":{"background":"#FF9595"}},{"id":"3cb61c81-0df1-42ab-8db0-a98d6fe992bd","topic":"采用存储转发","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"1bde233d-be01-4394-b585-8f616ba8e394","topic":"局域网是广播","expanded":true}]}]},{"id":"edab876e-bcd7-4570-95c9-63a01a18e2e1","topic":"广域网和局域网的区别：","expanded":true,"children":[{"id":"b6f7b09d-ac31-45ac-b0a4-e27fa0693bba","topic":"连接到同一个广域网的主机只需要使用【物理地址】进行通信（互联网需要IP）","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-4b1566bb03ad62.png","width":549,"height":205}}]},{"id":"864aeb94-166a-46be-9a0b-020145fff08d","topic":"广域网的数据链路层协议：","expanded":true,"children":[{"id":"fe20d67e-dec0-4537-aefb-d7ac01898801","topic":"PPP和HDLC","expanded":true}]},{"id":"c56870e4-e3c9-4827-9691-7f4ebc21df5b","topic":"PPP协议","expanded":true,"children":[{"id":"54092cf9-9819-49b1-b79e-1bdd4020dcee","topic":"应用在直连的两个节点的链路上，目的是通过拨号 or 专线方式进行点对点的传输","expanded":true,"style":{"background":"#8EDE99"}},{"id":"80d4a306-cdd3-4dde-9276-d61e3445e117","topic":"PPP帧和以太网帧、HDLC帧都是不一样的，只有信息部分是一样的","expanded":true,"children":[{"id":"ba376c0f-c9f7-40b2-9971-b5f575a70035","topic":"PCI不一样","expanded":true}]},{"id":"aea2e190-cc82-40c4-9477-2bf1c7ea02b3","topic":"位置：","expanded":true,"children":[{"id":"4455aa18-1e12-4378-b98a-af3638e34458","topic":"两个路由器之间的帧数据可以是PPP帧","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-85121f62718f94.png","width":300,"height":88},"children":[{"id":"e9fc0fc0-762a-4897-b198-7e7ca63e28e7","topic":"但如果两个路由器之间有一个交换机，则一定不是PPP帧而是以太网帧","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-31a0055f712e06.png","width":349,"height":132}}]}]},{"id":"4338f7a7-47f7-44d8-aab5-6d0c9748561d","topic":"特点：","expanded":true,"children":[{"id":"4596c858-acc3-4679-b0a6-527ed69d3449","topic":"简单！","expanded":true,"icons":["priority:1"],"style":{"background":"#FF9595"}},{"id":"932f8ec1-3ed5-4b34-a4e0-09a2f54b5788","topic":"数据链路层的帧：不提供纠错，只保证无差错接受（用CRC），不可靠即报告上层","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"d748b7d4-58b3-4e22-a076-5f4dcdb0b319","topic":"无需纠错、无需序号、无需流量控制","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"d4b95ef0-d52f-40d6-811f-d2ddf3328b01","topic":"只支持全双工","expanded":true,"style":{"background":"#FDD834"}},{"id":"751de60b-fda6-49f4-ac57-509f5ce7ed38","topic":"点到点式传输","expanded":true},{"id":"1524bf6d-60df-4848-a664-41854f4f3e26","topic":"面向字节的协议：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"a1614d5c-d688-4c83-8bfe-b36046e95754","topic":"1. 帧格式以一个Byte作为最小单位","expanded":true,"style":{"background":"#FF9595"}},{"id":"9529f653-6bdb-47fe-9d56-039bf00760eb","topic":"2. 定界符（转义字符）保护也是通过加一个Byte的7D","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"2564596d-74a0-4f38-82b7-8f7fe6624370","topic":"两端可以用不同的网络层协议，但仍然可以同一PPP","expanded":true}]},{"id":"0c4fb6d4-ea2a-4e0e-930a-389d35cb2060","topic":"PPP帧格式","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"776f4e4d-735e-40ef-964a-7d45b267217f","topic":"图示","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-894f21ce15f25e.png","width":526.11,"height":166.77},"children":[{"id":"a4547f9e-0c38-44f8-b39e-6248787b890d","topic":"A字段是Address，但是PPP帧是点对点的，不需要说明地址信息，所以A字段就是无用字段","expanded":true},{"id":"fe1f47af-d733-4fcf-ba53-ee22d3691930","topic":"例如协议是0x21，就是IP数据报","expanded":true},{"id":"b5e1461c-9ef5-49d3-a389-5354a6e8bfd2","topic":"FCS是只有16bit，检验【F、A、C、协议、信息】","expanded":true}]}]},{"id":"62e99e9d-2201-46f4-ad40-2ce94d0eadf2","topic":"组成部分：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"dab3050e-d0c1-4657-9d84-0cfa4dbd09f8","topic":"LCP：链路控制协议","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"e2b86636-b5d0-4e30-a7b3-07f25dea181a","topic":"用于身份验证，建立配置测试管理链路等","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"36961d98-8981-49cc-b54d-b3d97b208fc0","topic":"等于是建立了物理连接","expanded":true}]}]},{"id":"4596adba-d7ca-4497-9b21-08b1e9648d22","topic":"NCP：网络控制协议","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"0a4f3333-c594-4670-9891-d1deadd02c7a","topic":"因为PPP协议可以支持非常多的网络层协议，所以每一个网络层协议都应该有一个NCP来进行负责","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"3791bc3b-f9b9-40b5-85bc-3e8206454cf3","topic":"等于是建立了逻辑连接","expanded":true}]}]},{"id":"8750aac3-bb9d-4a25-99dd-76ae3bea7961","topic":"把IP数据报封装为PPP帧发到串行链路上","expanded":true}]},{"id":"2c5211b0-41fd-460a-a2dd-3fd8a0ac0423","topic":"PPP协议的工作流程：","expanded":true,"children":[{"id":"bb4f236d-2e06-4431-bcc6-65254f7efc60","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-03fd5d5bdd9c27.png","width":341,"height":201},"children":[{"id":"82a94311-f461-46a2-8d2f-6a15a78eecec","topic":"简单来讲就是：你点击上网，最开始是没有链路的。","expanded":true},{"id":"4d77627f-fe7e-4d99-9deb-a0108bbd0f20","topic":"1. 在物理层上建立连接，此时还不算完全连接成功","expanded":true},{"id":"3ebda8b7-06bf-4133-aff5-4cceb043822b","topic":"2. 在连接的基础上建立LCP链路","expanded":true},{"id":"10be62af-2731-42dc-9202-d12b969a0997","topic":"3. 在LCP链路的基础上建立NCP链路","expanded":true}]}]}]},{"id":"6dfa768c-6ddf-447a-ad4d-c2cec139c268","topic":"HDLC协议","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"ced4597b-9695-4ca8-9175-b227292f0725","topic":"HDLC协议的站","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"a5fd7c2f-f580-4c25-9482-1aa50179004d","topic":"主站、从站、复合站","expanded":true,"style":{"background":"#FF9595"}},{"id":"f196dd21-0104-45e5-a4ab-13e29ee8a436","topic":"主站：","expanded":true,"children":[{"id":"c57a14ee-aa55-4ab2-acc4-e8da72d04d02","topic":"负责控制链路的制作，主站的帧是命令帧","expanded":true}]},{"id":"6d2e9b6e-de22-4a8c-9ed3-d08d14aa0fe9","topic":"从站：","expanded":true,"children":[{"id":"bb74aad8-b0bb-472a-b4a3-a4e04332ee40","topic":"受控于主站，按主站命令进行操作，可以发出响应帧","expanded":true}]},{"id":"882d2ffc-8cd2-4424-afe8-5b316a604c45","topic":"复合站：","expanded":true,"children":[{"id":"0496b948-5b1f-4bc7-aeb1-0f47410ab072","topic":"可以发出命令帧和响应帧","expanded":true}]}]},{"id":"67203e11-2911-4f01-ba42-d254820500b1","topic":"特点：","expanded":true,"children":[{"id":"bc4d41a4-54a4-49af-8ad6-56be9482a6ea","topic":"面向比特","expanded":true,"style":{"background":"#0CE6CF"},"children":[{"id":"d94adbad-c38a-4107-a05d-737851964e18","topic":"使用5110的“0比特插入法”","expanded":true}]},{"id":"789affa1-7fb8-4da9-80ac-df26fdc769e1","topic":"全双工","expanded":true},{"id":"18575fc3-6671-44f6-a1d7-0861bd975579","topic":"所有信息帧都采用CRC校验，要编号，可以防止漏发重发，支持可靠传输","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"4065e038-eebf-4c25-9a65-d4efc1d74470","topic":"两种配置：","expanded":true,"children":[{"id":"6e4c4d2f-8291-4c1b-b152-a69115e68393","topic":"非平衡配置","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"da19d4a7-02ab-4bc2-8160-2ccd7acf0f79","topic":"由一个主站来控制整个链路","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"63429b53-c853-4fb2-a18f-ef1f4546ee53","topic":"平衡配置","expanded":true,"children":[{"id":"3bc724d0-0620-4d72-9f39-a2c60dd3995e","topic":"链路两端的两个站都是复合站，每个复合站都可以平等地发起数据传输","expanded":true}]}]},{"id":"07b571a7-27ad-464b-bc8a-18af0bfaea62","topic":"三种操作：","expanded":true,"children":[{"id":"c450c1cd-f82c-4bc8-9d00-a6d2fc64cf6a","topic":"正常响应方式：","expanded":true,"children":[{"id":"fc58e93d-4e4b-4bce-8a63-89debf9a34b6","topic":"非平衡，主站传输，从站响应","expanded":true}]},{"id":"9e350b4c-07e8-433e-855c-d24b1947d9fb","topic":"异步平衡方式：","expanded":true,"children":[{"id":"2a1f4240-554e-41bb-962d-b17e043b0042","topic":"每个复合站都可以传输","expanded":true}]},{"id":"3641fd2b-8942-4cc1-8916-15b52d3db5fa","topic":"异步响应方式：","expanded":true,"children":[{"id":"3470b62d-4e81-4a45-be3a-0447b19bdc0e","topic":"非平衡，从站未受主站允许也可以传输","expanded":true}]}]},{"id":"ba45c02c-e92c-4c56-8797-e505ce177ecf","topic":"HDLC帧格式：","expanded":true,"children":[{"id":"b5ca6924-e0a3-42e8-a1c0-2670db042fd8","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-d667e0b65ad242.png","width":446.28,"height":158.68},"children":[{"id":"2382ce72-2e4c-49ba-9bd5-ea947496cc2a","topic":"控制C：","expanded":true,"children":[{"id":"34f809cd-ebad-41f3-863d-51c41edf3d45","topic":"无编号帧（U)","expanded":true,"children":[{"id":"a1d42c4b-57fe-452e-8335-ff84223af73d","topic":"第1、2位为1，用于建立、拆除链路","expanded":true}]},{"id":"a19b032e-f96b-4106-9aa1-b576f10e75ac","topic":"监督帧（S)","expanded":true,"children":[{"id":"419f9676-e30e-4a4d-a319-e2a0dc8f0a6d","topic":"第1、2位为1、0，用于流量控制等等","expanded":true}]},{"id":"9bac61f6-31a8-47b6-be86-7cfe22d7229f","topic":"信息帧（I)","expanded":true,"children":[{"id":"fcb0200a-015f-4151-b101-6054bf7a84b2","topic":"第一位为0，用来传输数据信息","expanded":true,"children":[{"id":"2d825a3d-86bb-4e45-95ee-13d9ca93ab6b","topic":"或者使用捎带技术对信息进行确认","expanded":true}]}]}]},{"id":"a530be0f-387c-4fbc-9cc2-3e9126f70733","topic":"监督帧说明是不是确认帧、应答帧","expanded":true},{"id":"5ce3298e-bc60-48fb-bbde-36e6982b37f7","topic":"信息帧说明是不是数据帧（也可以捎带确认）","expanded":true}]}]}]},{"id":"6c6d9f12-35a9-4551-8df8-520f0f9014ee","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"96792e79-ebee-4a0a-80a2-bc2eedaa9c01","topic":"13","expanded":true}]}]},{"id":"78f20886-5185-4dac-8728-9c594cf1b37a","topic":"设备","expanded":true,"children":[{"id":"d0d33562-88ef-4f2e-a8ad-074b500d3e6e","topic":"考频：高","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"100e1dde-b6b3-409e-8fe6-1b26280258a4","topic":"09、13、14、15、16","expanded":true}]},{"id":"60d4dc58-636d-4334-b18f-6a7be606d8a9","topic":"网桥","expanded":true,"children":[{"id":"c78f16f5-a312-4762-9c6f-95ed542feffc","topic":"把两个或多个以太网通过网桥连接","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"7de1bf6f-4e8a-4202-946d-45d21114e167","topic":"多个以太网内的物理协议可以不同","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"b8683b5a-7fb9-456e-8f1a-a17c1c905e35","topic":"不同MAC子层的网段连接在一起，需要进行帧格式的转化","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"0ea1a9b6-50d4-419f-9145-140783484faa","topic":"网桥工作在MAC子层，可以使以太网各网段成为隔离开的碰撞域","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"59c7bf9e-80b7-46fe-ba30-b527230da9ae","topic":"使用网桥可以提高整个网络的数据率","expanded":true},{"id":"ebcb823f-18ac-4c7d-a25b-ea892ea2f843","topic":"优点：","expanded":true,"children":[{"id":"7a00511e-b2a5-4e46-bfac-125acacef522","topic":"可以过滤通信量","expanded":true,"children":[{"id":"b7534134-5d25-47b0-bf25-89d75b5b3e8d","topic":"可以连接不同类型的局域网","expanded":true}]}]},{"id":"0d6c6a3a-2b96-4579-9691-bb57c15a9d98","topic":"缺点：","expanded":true,"children":[{"id":"698e0b8e-b9a2-4d9e-b97a-5d1ae9d7d1e8","topic":"增大了时延","expanded":true,"children":[{"id":"c3560821-9d8e-473d-bd34-cb62b6224f26","topic":"MAC没有流量控制","expanded":true,"children":[{"id":"338020d8-33f0-41fc-9a04-90c7c2751288","topic":"传播过多的信息可能引起广播风暴","expanded":true}]}]}]}]},{"id":"0e712461-5e40-4e01-a6a8-41b3588b7354","topic":"网桥路径\n选择算法","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"62ad06c3-160e-4211-a326-9968013d4761","topic":"透明网桥","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"af3eb7f0-8025-47af-af0c-2ae3b8c308f2","topic":"即插即用，自学习算法","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"cd8f71f7-e58a-457d-a83e-4196658b6d09","topic":"选择的不是最佳路由","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"896ed9ec-0acc-44b1-8ec7-3665dfc5239f","topic":"算法：","expanded":true,"children":[{"id":"3015f6a0-d5c7-4170-8e1f-8036967fa01e","topic":"转发表内容","expanded":true,"children":[{"id":"0d87e7ce-37bd-42e1-b5c7-2805612ce969","topic":"源地址、进入的端口、进入时间","expanded":true}]},{"id":"ed9d6ef0-419b-4769-9b0c-992dce7227ae","topic":"算法步骤","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"b17c7abe-d234-4faa-8495-623818f55f16","topic":"接受一切广播到该网桥的数据帧","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"db72a231-33ab-495b-a4c7-c811a93cfeb4","topic":"工作原理","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"1813eafd-5bbe-4bcf-b4cd-0305a295994c","topic":"接受到的帧如果","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"9860fbb9-2883-42db-b15b-e10e6bc10ed2","topic":"1. 源地址和目的地址一样，丢弃","expanded":true},{"id":"5294d43b-dd86-49c4-8544-1e1f2dd45b00","topic":"2. 目的地址转发表中有，则从对应端口转发","expanded":true},{"id":"9ec618b9-660d-444c-a069-43b52086eaa6","topic":"3. 目的地址没有，则扩散本帧","expanded":true}]},{"id":"f603d8b9-f2e7-4306-b5ad-53cef5555780","topic":"1. 初始时刻转发表为空","expanded":true,"style":{"background":"#FF9595"}},{"id":"6e9ea942-7e30-475f-9a88-1aa178a5d038","topic":"2. 记录本帧的（源地址 + 进入的端口 + 时间）到转发表中","expanded":true,"style":{"background":"#FF9595"}},{"id":"8b92745b-aee2-411f-8b74-7f0897283d68","topic":"3. 如果帧的目的地址有了，就可以发送了","expanded":true,"style":{"background":"#FF9595"}},{"id":"c94a7735-0bfa-438d-a148-102994565f8f","topic":"定期清理里面的地址，时间过长的就清理","expanded":true}]},{"id":"782f4c01-96c6-438d-b16a-dccacab5bbfb","topic":"问题：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"4395d2ae-ae54-4212-acaf-492cffa205b1","topic":"可能存在“兜圈子”情况，透明网桥采用了一种无环的生成树算法，以保证不会成环","expanded":true,"style":{"background":"#8EDE99"}}]}]}]},{"id":"c7dc2477-991c-411c-9387-0ad7e8174681","topic":"源路由网桥","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"13c0d06a-bb15-4f2e-bcf0-a9cfb00f056c","topic":"选择的是最佳路由","expanded":true,"style":{"background":"#FDD834"}},{"id":"de0a5db2-a5ee-4d51-9e45-8ed894b5e177","topic":"算法：","expanded":true,"children":[{"id":"58848963-387b-4648-acc8-85ad280beef6","topic":"源站向目的站广播一个【发现帧】，目的站收到后，进行原路径返回，返回途经的网桥都把自己标记在应答帧中。","expanded":true,"children":[{"id":"04bcaa88-1a20-4698-be49-ec7f8923b32a","topic":"源节点根据众多返回的帧来确定最佳路由","expanded":true}]}]},{"id":"0fc04c80-b14a-4bc0-b890-21c7dd607570","topic":"发现帧可以帮助源站确定整个网络可以通过的最大帧长","expanded":true},{"id":"b5a38d48-dd28-40e9-9c08-8d4bc7caa368","topic":"问题：","expanded":true,"children":[{"id":"77225b5f-c9fa-4e56-be8d-e637c5b855e1","topic":"如果发现帧太多了，会导致网络拥塞","expanded":true}]}]}]},{"id":"ad0b13eb-6415-4bb0-9fa8-c07c54b5fc8b","topic":"局域网交换机","expanded":true,"children":[{"id":"e28b3fff-2e93-434a-8f92-292128c5172d","topic":"又称：以太网交换机","expanded":true,"style":{"background":"#8EDE99"}},{"id":"9ee94ea9-134e-4fea-bbb5-27df0b2086cc","topic":"特点：","expanded":true,"children":[{"id":"9a5f357d-e01a-44b6-bc90-81b570714807","topic":"使用VLAN来进行冲突域和广播域的隔离","expanded":true,"style":{"background":"#8EDE99"}},{"id":"92abd8e1-9705-46ca-bfc8-dfa198b9600d","topic":"直接连主机，全双工","expanded":true,"style":{"background":"#FDD834"}},{"id":"10b8f7e9-c2c3-47ce-81e6-df54068d1a27","topic":"即插即用","expanded":true,"style":{"background":"#8EDE99"}},{"id":"af7c5569-5ebc-4251-9a52-751c574977c1","topic":"有许多对端口，相互通信的主机可以无碰撞的传输数据","expanded":true,"style":{"background":"#8EDE99"}},{"id":"17d0c59e-de97-43ed-8174-ed8141ff01f3","topic":"有专用的传输芯片","expanded":true},{"id":"a2588452-f0ff-4829-8ba8-f711016ee5f3","topic":"独占传输媒体带宽","expanded":true}]},{"id":"40fa857a-ecba-433f-83ea-25e9ac3619e0","topic":"两种交换模式：","expanded":true,"children":[{"id":"851a07fe-3223-408c-b80c-f769fc8e0f44","topic":"1. 直通式","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"ce096f95-6255-41b9-ba5e-ad0b8ee531c6","topic":"只检测目的地址，接受后立马传出去","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"8a08e3fe-df63-424d-93fd-96673820420d","topic":"延迟小、可靠性低、无法支持不同速率的端口交换","expanded":true}]},{"id":"ac08804f-e4db-48b7-8085-b86a3b6d5d28","topic":"2. 存储转发式","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"78d89972-4254-4492-b5d8-9f28e3f9ca57","topic":"先将帧存储在高速缓存器中，进行数据正确性检测，发现无误后传输，否则丢弃","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"a8e8d5e3-cbcc-4c63-bab1-f7e9070aba3b","topic":"延迟大、可靠性高、支持不同速率的端口交换","expanded":true}]}]}]},{"id":"da46239e-47e8-4600-8c9c-994ee72e2e0c","topic":"好题：","expanded":true,"children":[{"id":"4065b818-daf3-470d-95f5-ff6ac29b1eeb","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-a11c64d8162108.png","width":593,"height":272},"children":[{"id":"11f6de20-e1f9-448d-8039-7b8483524e45","topic":"D","expanded":true}]}]}]},{"id":"fd0f9335-deda-40d9-a4fc-00b701c26c54","topic":"VLAN","expanded":true,"children":[{"id":"469464bf-61e0-4f07-8157-3d23a2126d91","topic":"概念：","expanded":true,"children":[{"id":"aac6d148-a749-4545-bb3b-d3dc74eb7fb9","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-7fce39891516eb.png","width":392,"height":203}}]},{"id":"551c0acf-b58e-497b-ae92-7c0ad94590e6","topic":"基于接口的VLAN技术：","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"747d1d96-2f24-4f6a-bac4-182e0b9c75a9","topic":"图示","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-afcb4260e26057.png","width":452,"height":185}}]},{"id":"31cb7153-5e6a-4c7e-ba3b-2c4390d8d43a","topic":"基于MAC的VLAN技术：","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"b7feee98-cecf-41ad-aad4-4d35237c4f78","topic":"图示","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-e06bb4b9c75d52.png","width":340,"height":147}}]},{"id":"37ba48cf-9dfd-4031-98dd-c2289a999802","topic":"VLAN传输","expanded":true,"children":[{"id":"3cab2c6a-883c-4959-89e4-fab091e7d16a","topic":"在发送数据帧的时候提前在帧里面设置好一个tag字段，指明自己来自哪一个VLAN","expanded":true},{"id":"baeebc8a-ca20-4a6f-b240-75d90adc8347","topic":"Truck端口","expanded":true,"children":[{"id":"5050c6a7-06dc-4d0e-9864-147d9b88f9f2","topic":"在不同交换机进行数据传输的时候，交换机之间都是使用的Truck端口，所以不会把tag信息给去掉","expanded":true}]},{"id":"6c04d8d0-8027-4092-a817-30f5e90dc4d3","topic":"VLAN帧：","expanded":true,"children":[{"id":"0b31c622-5914-4f70-b688-52550977ac9f","topic":"图示","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ea2208717ae495.png","width":448,"height":221}},{"id":"8bcde1f4-3c1f-4fdf-9b73-f5a5b2e1a888","topic":"特点一：","expanded":true,"children":[{"id":"726c24a1-056b-44e8-877e-d50e50962ec6","topic":"VLAN标记的有效VID范围是1~4094","expanded":true}]},{"id":"6bbd39db-4400-406e-813f-59fb2e6ec0be","topic":"特点二：","expanded":true,"children":[{"id":"9d742c4b-542f-4526-965a-ca824f5a8b61","topic":"IEEE802.1Q帧是交换机处理的，用户主机发送给交换机的帧仍然是普通的以太网帧，由交换机插入了Tag字段后通过Truck端口发给下一个交换机","expanded":true,"children":[{"id":"74dca1bf-bdb0-44aa-83ea-6cc5aa0e9ba7","topic":"下一个交换机收到后，把Tag字段去掉后，发给对应VLAN中的主机","expanded":true}]}]}]}]},{"id":"142c3b90-ec98-44a8-8fd6-938551cc882c","topic":"练习题：","expanded":true,"children":[{"id":"95e871fa-3dd1-445c-b41a-cd381b6f3a85","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-5a332f8e4d9c45.png","width":514.36,"height":204},"children":[{"id":"acff4f4b-9b34-428d-bcf7-d53855038dec","topic":"Q1: 可以\nQ2: DH可以。A和D、A和H不可以，不同VLAN直接的主机想要互通只能通过”路由器 or 三层交换机“才能完成互通","expanded":true}]},{"id":"9e642b50-6084-47c6-9ec9-80f120a388e8","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-b73693dbd2234e.png","width":429,"height":109},"children":[{"id":"ffbc0038-61b1-41c3-9b79-74d3356e6c51","topic":"D. 网络的划分是由软件进行划分的","expanded":true}]}]},{"id":"2247d6f0-2da0-4894-8e21-93222a780900","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"4bb892ab-92a0-4cda-bee9-62a92958ee31","topic":"无","expanded":true}]}]},{"id":"b6fa347d-7bb3-48c0-8bfa-aeb29e683ef5","topic":"END","expanded":true}]},"relations":[{"id":"722efb3e-9031-43df-92e3-87951bb0c476","from":"9448eca2-5665-4495-b94b-0e2772e92ebb","to":"b7f5c13c-334f-43c4-a5b8-87fe4189e746","bidirectional":false},{"id":"6d3ff896-9e9b-41ab-8206-6c7fa702d204","from":"8f623c13-3279-4182-a27f-74acbfc2dd94","to":"3984cd7d-1d13-42f6-b1be-bfc9e9f5c2ee","bidirectional":false},{"id":"95737c61-6d0f-4e19-b3c7-305e33ff9e0f","from":"74c15a3f-1485-46f3-ae28-41d4c6c956eb","to":"83ae6c4c-a66b-4e87-9ff3-e2d82eae0749","bidirectional":false,"style":{"stroke":"#D0D0D0"}}],"summaries":[{"id":"755cf420-e17c-4fae-8310-40d14041c27b","parentId":"004ae67956a9b79614fe3be393","start":5,"end":5,"label":"记住"},{"id":"80930a03-42c1-4a3e-b5d6-17c0edca6576","parentId":"ceb8a20667690bff2ea2ba3913","start":3,"end":4,"label":"使用这两个来解决隐蔽站问题"},{"id":"58a0faa5-4f21-45c5-af46-f1fd922029df","parentId":"83ae6c4c-a66b-4e87-9ff3-e2d82eae0749","start":2,"end":2,"label":"现在很少用CSMA/CD了，因为现在都是全双工，不需要考虑冲突碰撞了"},{"id":"54842366-af3b-46bf-82e2-272a7f45dd72","parentId":"4338f7a7-47f7-44d8-aab5-6d0c9748561d","start":4,"end":4,"label":"面向字节即不可使用奇偶校验、零比特填充法等"},{"id":"6f6e35a8-e305-4c9a-b6a7-d03a0f453254","parentId":"ced4597b-9695-4ca8-9175-b227292f0725","start":1,"end":2,"label":"+ = 复合站"}]}