{"format":"brushup-mindmap-v1","id":"net-00-sheet4","title":"第三层 网络层","structure":"timeline-h","theme":"auto","root":{"id":"fd9becb0ebba040c4ff9584101","topic":"第三层 网络层","expanded":true,"children":[{"id":"e73a2c9723da65cfb957ab6465","topic":"总结！","expanded":true,"children":[{"id":"9c24d953-5851-4450-aa25-99afc2968818","topic":"网络层全整理：","expanded":true,"icons":["priority:1"],"style":{"color":"#EEEEEE","background":"#333333"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-bf4d80d2d6edf4.svg"},"children":[{"id":"7f77d0d7-8953-4e23-8439-9dae50657897","topic":"总流程","expanded":true,"style":{"color":"#EEEEEE","background":"#333333"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-18b5a1fb4c663b.png","width":710.49,"height":552.03}},{"id":"8f7f56b5-f659-4a57-98ba-4b28c0f92734","topic":"同一局域网内两主机数据交流","expanded":true,"style":{"color":"#EEEEEE","background":"#333333"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-f67415aecfccd7.png","width":712,"height":226}},{"id":"f57136ab-e501-4ca4-b419-936d006581b6","topic":"NAT转发流程（蓝字举例为：接受了一个来自WAN的帧）","expanded":true,"style":{"color":"#EEEEEE","background":"#333333"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-c553b7a4aae51d.png","width":709,"height":353}},{"id":"c8abb7f1-a246-47c3-8aae-f67d05b27ccf","topic":"子网掩码转发","expanded":true,"style":{"color":"#EEEEEE","background":"#333333"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-9a0c50158cec18.png","width":709,"height":342}},{"id":"ebbf7a12-7c1f-4d56-8139-b3f524184607","topic":"ARP转发","expanded":true,"style":{"color":"#EEEEEE","background":"#333333"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-40d51310ae2a81.png","width":710.24,"height":648.92}},{"id":"e4f40377-c422-442f-9ae0-df146a485d3a","topic":"DHCP","expanded":true,"style":{"color":"#EEEEEE","background":"#333333"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-780cb4a8850772.png","width":709,"height":297}},{"id":"5b141960-20a2-41e2-852c-d0670498a843","topic":"IGP","expanded":true,"style":{"color":"#EEEEEE","background":"#333333"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-0d141862e342b5.png","width":710,"height":219}},{"id":"584bbcf5-ea5d-4306-ac6d-1a98c1f689d3","topic":"AS、BGP、IGP（如果使用OSPF，那大型网络还可以被划分）","expanded":true,"style":{"color":"#EEEEEE","background":"#333333"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-4bf4cddf73b4be.png","width":710,"height":384}}]}]},{"id":"74b8cc16-81a9-450a-b800-9ca0d66c0b2c","topic":"功能","expanded":true,"children":[{"id":"f86b6ea0-f4e1-46b3-b642-091df845eb93","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"f6d7cffa-a22e-47cb-9b9b-a4e53fe65688","topic":"22 - SDN","expanded":true}]},{"id":"5dd47536-8bd6-4eb4-980a-c429c6f50ccc","topic":"概述","expanded":true,"children":[{"id":"0c0db973-7c27-42a1-967d-8ebe97807545","topic":"作用与目的","expanded":true,"children":[{"id":"e5bc8b8d-9043-4558-9829-b40494cbb425","topic":"提供简单、无连接的、尽最大努力交付的数据包服务","expanded":true},{"id":"9cd9ae87-6762-4b4f-b34b-9c8dd4a8b42e","topic":"依然不是一定需要稳定传输","expanded":true}]},{"id":"79c57930-a003-4c15-9dfa-389e2f2d2780","topic":"与数据链路层的关系","expanded":true,"children":[{"id":"94f0fdc8-67fd-4c85-b25e-92fbc7e11e60","topic":"在分片中，需要依据数据链路层的MTU","expanded":true}]},{"id":"fb2219de-1a48-4b0b-8b21-9796c33a0eff","topic":"与传输层的关系","expanded":true,"children":[{"id":"707b2737-d3fd-4b6c-b00b-bff9b73c19df","topic":"向传输层提供服务","expanded":true}]}]},{"id":"ebf7e4c5-4979-4b2c-bb94-64ff04367895","topic":"异构网络的互联","expanded":true,"children":[{"id":"9e9ba773-4c98-4bb2-9e4a-d7c97ce2adb3","topic":"异构网络","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"3448b30a-2166-4b7b-a0f6-87cd743a06e8","topic":"不同寻址方案、接入机制、处理方法、路由选择","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"7c924d14-16bf-4b5c-a3d4-641de8d5117c","topic":"网络互联","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"bc3afdf8-8eed-42c2-9a7b-a06fd8a28a14","topic":"把两个以上的计算机网络相互连接起来，通过多个中间设备（中继系统）构成更大的网络","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"e72dbe5e-3053-4a85-b4ba-147f1b3a413a","topic":"中继系统","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"13ff990d-6e98-42fa-80c3-6e86fc77fb28","topic":"物理层","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"465af539-dfc4-4b52-894a-c81b6e41abc8","topic":"中继器、集线器","expanded":true}]},{"id":"693431b0-d3db-49a0-8461-a07bea169748","topic":"数据链路层","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"94a2879e-4af1-4c45-9592-96c8f9cfde41","topic":"网桥、交换机","expanded":true}]},{"id":"bd086c49-7f34-439e-ad75-5b5801a9e626","topic":"网络层","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"eca6554c-5cc4-4726-9a47-73bab89084ff","topic":"路由器","expanded":true}]},{"id":"942c2fbf-abf2-420e-98be-cefe69f0989d","topic":"网络层以上","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"7cf8f611-a008-4b24-953c-6bfe79c0203e","topic":"网关","expanded":true}]}]}]},{"id":"a7e4cf99-9002-4d0e-b943-57e75f7e4c9f","topic":"虚拟互联网络","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"afb90ee7-60b8-465c-b3a3-8f2188f70bcd","topic":"这些网络是物理上不同的网络，具有异构性，但是可以通过IP把这些网络统一起来","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"ad7b7c1c-f181-4956-bacc-82eb8f7fcedf","topic":"路由和转发","expanded":true,"children":[{"id":"4a796bb6-ac47-447a-974f-8df13dbfc5dc","topic":"路由选择（确定哪一条路径）","expanded":true},{"id":"ca7f47d4-8421-464b-8c64-16cc0491f971","topic":"分组转发（一个分组到达时所采取的动作）","expanded":true}]},{"id":"174a622c-dc78-4e0c-8153-38dc9c01834e","topic":"拥塞控制","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"a9344387-14bc-4090-973b-62b9d67b31ca","topic":"拥塞定义","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"45f47cee-a707-4119-8fbc-094d3611aede","topic":"网络中出现了过量的分组导致网络性能下降","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"9910ef6a-2bf7-4bca-9e03-67c43701d825","topic":"判断拥塞的方法：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"8d915727-5c19-462e-b1ac-9984e9fa86e3","topic":"轻度拥塞","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"718baf17-cc9f-42fc-89c2-fa388d43c24a","topic":"网络负载增加，网络的吞吐量【明显小于】正常的吞吐量","expanded":true}]},{"id":"2345a8a9-d47c-41f3-8056-70a8f9280731","topic":"拥塞状态","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"b9f0bc63-3732-4438-a496-e346eb509b4d","topic":"吞吐量【随着负载增大而下降】","expanded":true}]},{"id":"811e5712-56f9-49ff-9615-707fa1593fcb","topic":"死锁状态","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"7de91849-3fa0-4a5d-a423-f2224c2eaa90","topic":"网络【负载增大】，吞吐量【下降到 0 】","expanded":true}]}]},{"id":"690e555e-8f53-43cc-8de9-e9f8bffd73cb","topic":"拥塞后果","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"ae31aa79-39b9-4ae4-81ca-833147a09c5b","topic":"分组丢失、网络死锁","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"b9425a5e-8875-4c4c-9533-d8fd819af3a8","topic":"实现方法","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"3ac97700-38cf-4438-b488-41a671b56c12","topic":"合理优化主机、路由器和路由器内部的转发处理过程","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"3bc526dd-6029-4cbf-bc93-262ea8f9b954","topic":"拥塞控制的方法","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"d8349863-4fdf-4c61-98b3-cf93b08ca26a","topic":"开环","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"b4dd7bdc-8aff-462a-a6c9-1aab51885c54","topic":"在设计网络时预先将发生拥塞的因素考虑周到，力求不会产生拥塞","expanded":true,"style":{"background":"#8EDE99"}},{"id":"718695af-7d42-4a28-a41b-5b1d48a1cd3d","topic":"是一种静态的拥塞预防，启动后不需更改","expanded":true}]},{"id":"ca11ec13-b9f8-4058-902d-7cf202e7ce43","topic":"闭环","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"79755bbc-87c9-47a7-8f0a-146699c9f00e","topic":"事先不考虑各种因素，用检测网络去监视，及时检测","expanded":true,"style":{"background":"#8EDE99"}},{"id":"2a1c6f62-99d1-464b-bd0a-e8a5e6224b01","topic":"基于【反馈环路】，是动态方法","expanded":true}]}]}]},{"id":"19f41bed-b840-4b8f-a1dc-f03f44f41a72","topic":"SDN","expanded":true,"children":[{"id":"f6f441f9-5450-4790-981d-166677a71595","topic":"放在了最后","expanded":true}]}]},{"id":"cfaaeb037919b03c2570895b05","topic":"IPv4、子网划分","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-28e3036368c3a7.svg"},"children":[{"id":"f8fa9362172a426592626a15a8","topic":"IPv4 数据报格式","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-a759a613863bd1.png","width":611,"height":454},"children":[{"id":"f18e1ce6-6bf2-4fa8-9209-aa54a87fbba9","topic":"单位总结：","expanded":true,"children":[{"id":"7e786e8a-e96a-4b12-a0ed-1f127fa980c3","topic":"一种首饰八片","expanded":true},{"id":"a4e3fdf6-a42c-48a7-8d42-096868e7afd0","topic":"总长度：1B","expanded":true,"children":[{"id":"c9eadeee-6e1c-4c12-bb55-76b10a1be700","topic":"首部长度：4B","expanded":true,"children":[{"id":"ff8f9ad6-5043-4776-a48a-312039da1418","topic":"片偏移：8B","expanded":true}]}]}]},{"id":"9e59db0b-befd-4ed0-9ebe-ee60d21da16c","topic":"MF：More Fragment 还有分片","expanded":true,"children":[{"id":"2380f89a-d15a-4c83-afc8-791d5a6fb78d","topic":"DF：Dont Fragment 不分片","expanded":true}]},{"id":"d2575a72-856c-4cd7-b8b1-4fd0aa74401e","topic":"标识：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"24ff5d18-9698-47c7-8efe-1a730f688c6a","topic":"源主机在发送数据报时设定的“ID”，来一个数据报，标识++（数据报分片后，每个数据报都是相同的标识）","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"3d11c360-789b-4cee-8494-c339280bbd2c","topic":"片偏移的单位是8B，所有分片长度都是8B的整数","expanded":true,"children":[{"id":"fcac3b0f-d23d-4ae3-ad60-5e2dfd214914","topic":"首部20B，1480/8=185，刚好可以够分","expanded":true},{"id":"cd9a884e-e492-410c-89e4-19a80ecd7f6b","topic":"最后一片可以不是8B整数","expanded":true,"style":{"background":"#FFABD5"}}]},{"id":"6eed8865-ac98-4142-8b06-f33a768c790b","topic":"TTL生存时间","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"6ca538e6-1ddc-458c-8bff-b485bc70cb4d","topic":"是一直在减少的，减到0就丢弃","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"07bea0b3-8514-4b0d-960d-68d01ac6d0f6","topic":"每次转发TTL都要 -1，当TTL = 0，丢弃","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"e072f018-667b-4b79-b905-dedaf2cf157b","topic":"这里的FCS只有16bit（因为只检查首部）","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"781fd58a-8afd-4b94-9085-4b8cef080fcf","topic":"而数据链路层的FCS有32bit，需要检查全部内容","expanded":true,"style":{"background":"#FF9595"}},{"id":"1b504e1d-26e2-422b-9572-9bd8e40d7200","topic":"TCP和UDP的FCS也是16bit，但需要检查全部内容","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"29a67864-9e3e-4ea8-aece-e84aaff9cdb6","topic":"协议举例","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"08d93c76-2e0a-4f7a-9e1c-3414d2726db5","topic":"1 - ICMP控制报文","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"3664267b-d2e9-438d-b8bf-95281f470880","topic":"2 - IGMP组播报文","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"660463b7-a8de-4432-bdff-4816e9bdd8ed","topic":"6- TCP","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"77b82316-b054-47aa-846c-d21a56b61afe","topic":"17 - UDP","expanded":true,"style":{"background":"#8EDE99"}}]}]}]},{"id":"ef0e02c9-7b08-4a91-9e8a-bf9cbcbe314b","topic":"22 - FTP","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"55054b1c-58d4-4b83-89c8-11f085d9946d","topic":"53 - DNS","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"ac525da3-4943-453f-9d90-623a9aa8d2c2","topic":"80 - HTTP","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"1c7bf46a-6eb5-4076-b19f-c8fedabc9d20","topic":"89 - OSPF","expanded":true,"style":{"background":"#8EDE99"}}]}]}]}]}]},{"id":"a52aabb9d60b0adfd2e00a5096","topic":"IP数据分片","expanded":true,"children":[{"id":"bd8670a8-fbac-4a5d-916d-446a58b9b1c3","topic":"MTU","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"8579bb75-d86a-4526-9354-01d5005fffe9","topic":"Max Transfer Unit，最大传输单元","expanded":true,"style":{"background":"#8EDE99"}},{"id":"48d8acea-1c6d-404e-adf1-197f67d47a5f","topic":"以太网","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"a40b0c67-5077-4c9f-a7a5-3ead91af843c","topic":"1500B","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"4ca7ef31-cc39-488f-9bc0-aa30d1d27d9c","topic":"广域网","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"d7b96896-068a-4b37-9ee6-206242aa7947","topic":"一般不超过576B","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"68375dcb-8b96-4eae-84c5-2cc5cd79a9d5","topic":"超过数据链路层MTU的数据报会被分片","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"604bf042-c627-4911-91c6-ac77044b265c","topic":"MF = 1","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"3690ac23-b09a-4f8c-81dd-52619a5c5426","topic":"More fragment = 1 ，还有分片","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"bbc98e3f-4176-46ce-8de3-19cc448df4c6","topic":"DF = 0","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"9fc5986c-5f8e-4947-81c4-19d6c9972887","topic":"Don't fragment = 0，进行了分片","expanded":true,"style":{"background":"#FDD834"}}]}]},{"id":"9d786f88744bab16084b4945ba","topic":"在数据链路层不同链路上，根据MTU的情况，判断是否需要进行分片","expanded":true,"children":[{"id":"6e1a0294-df39-4da1-81a1-113f4dbca777","topic":"分片后【只能在目的主机中】组装","expanded":true,"style":{"background":"#FDD834"}}]}]},{"id":"09fbeeaae578e18b215dfbd278","topic":"IP地址分类","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"0e496447ff1b9945b07df895bd","topic":"ABCDE类","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"0c2b78b75ea990bcc2f618f51c","topic":"A: 1 ~ 126 / B: 128 ~ 191 /C : 192 ~ 223 D: 224 ~ 239/ E: 240 ~ 255","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-c39cf277053e2a.png","width":554,"height":227},"children":[{"id":"064de783-62ad-49bf-9983-f48cb37d06ef","topic":"IPv4 的地址范围","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-6bf027fff52edd.png","width":460,"height":233},"children":[{"id":"ff1898fb-ed30-401e-819b-5512ddc093c3","topic":"D类：一对多通信","expanded":true},{"id":"00cb1e0586784da57d83fb01d7","topic":"特殊情况：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"9d7b4708492a6b2f0df44a8574","topic":"图示","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-ea58b85a76f810.png","width":448,"height":381}},{"id":"ae93bccd-b903-447d-8117-e5dfef0bb401","topic":"注：B类地址本网内广播","expanded":true,"children":[{"id":"6fca8937-0122-408f-b6a3-9c190cea53b3","topic":"还是 1111 1111 1111 1111，而不是1011 1111 1111 1111","expanded":true}]}]}]}]}]},{"id":"97da8c5180386ea2cd8948e68b","topic":"私有地址","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"a0e9f09dcac91db84a0d9a8b4e","topic":"只能用于LAN，不允许用于WAN（所以一定需要把私有地址通过NAT路由器转为一个对应端口的公有IP，然后发送去访问）","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-8dce61c74e568d.png","width":522,"height":137},"children":[{"id":"973ea534-6bae-408f-9234-846b26030e0d","topic":"A类：1个A类网段","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"5ee1ad59-4756-4cec-9332-8c1bbe4982d9","topic":"即 10.0.0.0 ~ 10.255.255.255","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"3870d69a-3ea0-4da8-a0da-cb5eca537b12","topic":"B类：16个B类网段","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"336e4f91-0ee7-4f8f-9263-a60d0701e7d1","topic":"即 172.16.0.0 ~ 172.31.255.255","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"7b3d0045-15b3-4813-85ce-0aeed7d241ff","topic":"C类：256个C类网段","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"85cf0af2-9120-48b8-a8ca-4602ed04502b","topic":"即 192.168.0.0 ~ 192.168.255.255","expanded":true,"style":{"background":"#8EDDF9"}}]}]}]},{"id":"2559e595dcc99a766d8418913b","topic":"三级IP地址","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"61ad7d17-832d-4375-919f-9f70293a6e60","topic":"对主机号进行了划分，划分为了【子网号 + 主机号】","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"37de26fa-762e-4529-bc86-a35e45fe768e","topic":"划分过后每个子网中的主机号全0和全1都应该保留下来","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"a31c3a7a-d1f2-4bc1-99ae-1156ef6ae19c","topic":"在RFC950中规定子网号不可以为全0或者全1，而CIDR是可以支持全0、全1的","expanded":true,"style":{"background":"#BA69C8"}}]},{"id":"efcace038fe97f3c1c6ab9e11b","topic":"网络号+子网号+主机号","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"37faf1e8d73bbc99d0ae79f8be","topic":"CIDR\n（无分类阈间路由选择）","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"0d8896bd3e0b8348fe2148ac96","topic":"网络前缀 + 主机号 / 前缀长","expanded":true,"style":{"background":"#8EDE99"}},{"id":"a5f87531cac8dc1149567a618d","topic":"CIDR不使用子网，仍使用“掩码”","expanded":true,"style":{"background":"#FDD834"}},{"id":"1fc814c7d489cc3cdd718bb97d","topic":"CIDR地址块：网络前缀相同的IP地址","expanded":true},{"id":"c5ba67f3344a2dc070a9cac26d","topic":"划分子网","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"029a35f0ac397dc8b6864b9b23","topic":"在网络号后的主机号中，仍可以把几位主机号抽取出来作为子网号，继续划分","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"9548530877d9a53d8d0aba1434","topic":"这样划分前缀长不变，子网掩码发生变化","expanded":true}]}]},{"id":"212bb384f1c901cb825c4b6483","topic":"路由聚合/构成超网","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"aaf914a21e69eb896fa928ed2a","topic":"把同一路由表中的不同网络项取交集，聚合成一个前缀长更小的网络","expanded":true,"style":{"background":"#8EDE99"}},{"id":"d878ac70ecc85d37d36b28c6f4","topic":"每一个CIDR地址块都可以表示很多地址，也是路由聚合/构成超网的一种表现","expanded":true}]},{"id":"f7e824a695197447812259cb14","topic":"最长前缀匹配","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"c2b9ee4c4c796114e9745b2e51","topic":"在路由表中选择下一跳的地址，找到匹配前缀最长的下一跳","expanded":true,"style":{"background":"#8EDE99"}},{"id":"506adb28aa7ae67e02962a3d98","topic":"如果找不到，就跳到0.0.0.0去","expanded":true,"style":{"background":"#FDD834"}},{"id":"b0ea9bb8d9cbb742c3213999f3","topic":"CIDR查找路由表的算法是二叉线索树来查找","expanded":true,"style":{"background":"#BA69C8"}}]}]}]}]},{"id":"299aa90f6e3a1659310d69b569","topic":"路由转发","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-28e3036368c3a7.svg"},"children":[{"id":"a00720ce-7a92-4b80-b849-e109adcf2d42","topic":"考频：超高","expanded":true,"style":{"background":"#BA69C8"},"children":[{"id":"7a8a5f40-4426-4c34-8506-5adcb902b33b","topic":"10*2、11、12*3、15、16-18*2、19、21-22*2、15大、18大、20大、22大","expanded":true}]},{"id":"ee7ea063-a587-4011-a112-f8ac93cab104","topic":"路由器本身可以有多个IP地址+多个MAC地址","expanded":true},{"id":"88eb5cce7bf8084ab50f0a0873","topic":"路由器的分组转发算法","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"da08d8b9cb4918f0bfce390e17","topic":"已知：目的网络N，目的主机IP地址D","expanded":true},{"id":"bc4b1924dee8f554ee3a9a2a7e","topic":"NAT的路由分组转发步骤","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"fbfb9623239907c4e8f91bad89","topic":"1. NAT路由器会维护一个LAN中IP和Port同样对应着WAN中的一个IP和Port","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"a65b3a5c8649591960ffebc278","topic":"2. 数据帧封装好自己LAN的IP、端口以及目的网络中WAN对应的IP、端口，发送到NAT路由器","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"0958347bc51b01cf50b15b0b52","topic":"3. NAT路由器转为WAN的IP，转发","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"7b79e8a7b99bbb0db28e2af579","topic":"如果接受到WAN的，NAT就把WAN的转为LAN的，然后放到LAN中传输","expanded":true,"children":[{"id":"36789e66eaeb22bedd04db1648","topic":"如何传输，请看ARP","expanded":true}]}]},{"id":"7e5842196fd81cf6343538c1d1","topic":"对于同一个网段内的主机（子网的掩码相同），一般情况下都是可以进行IP通信的，与其默认网关无关","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"69b373ff-4d62-4581-8774-449e927eab41","topic":"默认网关：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"01f3c5af-450d-4e9e-9e39-02976db2ff88","topic":"如果一台主机找不到正确的网关，就把数据报发给默认网关","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"8c2983ff-c7fc-44f2-bb84-88cde5d93d60","topic":"配置默认网关","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"c022514e-fad3-4bac-a4c0-47c9fb60f2b7","topic":"手动配置","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"d5aaabc7-7cc8-406a-9eaf-d274134c5641","topic":"考试喜欢考","expanded":true}]},{"id":"bf8c58b8-6ea6-4fc1-b9a5-4104cabd08ca","topic":"DHCP配置","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"a7cbe351-6b32-4697-9d8d-448a18596fd8","topic":"详情看下面","expanded":true}]}]}]},{"id":"e842df9f-aa6a-48d1-94a3-64ab85bd5907","topic":"一个主机的默认网关没有正确填写：\n 1. 无法进入互联网进行信息交流\n2. 可以和在同一个网关的主机进行IP交换（局域网广播）","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"999b24fff119194ab5e258c559","topic":"路由分组转发算法（子网掩码）","expanded":true,"icons":["star:#1d4ed8"],"style":{"background":"#8EDDF9"},"children":[{"id":"818b861d-ae40-40bc-9b0d-76658f772862","topic":"获得IP -> 对比子网集 -> 查路由表特殊通道 -> 查路由表其他IP -> 发给默认网关 -> TTL = 0就丢弃并返回ICMP","expanded":true,"style":{"background":"#FDD834"}},{"id":"09faae96db69c4e83518caa2b6","topic":"1. 路由器【提取】出目的IP地址（从IP报文段中提取）","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"213b140cd6cb94ce601b2a35cc","topic":"2. 路由器【按位与查看】自己的全部子网，看能不能直接【直接交付】","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"9a99cf620ff91caa4f20295b3a","topic":"就是查看是不是对应的那个子网","expanded":true}]},{"id":"fe6ba7df8de943aba0a2db6788","topic":"3. 路由器【按位与查看】自己路由表是否存在这个IP的【特定主机】","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"4f5a39f1f7b9269a89213b743a","topic":"看能不能走特殊通道","expanded":true}]},{"id":"48d8a773925903631070193657","topic":"4. 路由器【按位与查看】自己的路由表中的所有其他IP路径，看能不能【发给对应的路由器】处理","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"bf09e07568f9efeca16ae85e23","topic":"5. 路由器发现上面的步骤都行不通，那就发给自己的【默认网关】处理","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"5f0b5bc455c98a78e2a6ea1688","topic":"6. 如果TTL=0，或者默认网关出错，就丢弃该数据，直接返回ICMP回去","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"637a6f8c0e787c480ae45b0733","topic":"ARP","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"7d3eb0e0-8c10-4401-b079-046da6a99899","topic":"Address Resolution Protocol 地址解析协议","expanded":true,"style":{"background":"#0CE6CF"},"children":[{"id":"54b37487-e1af-4949-89e2-36b087a77d41","topic":"记住英文可以知道协议的作用","expanded":true}]},{"id":"60ac6635-cf0b-4fdf-8509-dcdbc96561fc","topic":"每个主机都会存有一个高速缓存ARP表","expanded":true,"children":[{"id":"a458ae8bb13825cc46388a748d","topic":"ARP表：IP地址 --- MAC地址的映射表","expanded":true}]},{"id":"29e967a887da1b73f2ffcba50b","topic":"若A向B发送信息，工作流程：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"9abbab4a0c8b2ab38c1ecbc686","topic":"查找A的ARP是否有B的IP地址（有了IP就也硬件MAC地址）","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"d95a0809e2fab07818f7fbda4c","topic":"如果【有】IP地址，那么就把B的硬件地址写入到MAC帧里面，然后使用局域网把该MAC帧发给B。","expanded":true,"icons":["priority:1"],"style":{"background":"#FF9595"}},{"id":"d60aa6c1ff4bb65e32afaa5849","topic":"如果【没有】IP地址，那么就广播一个【ARP请求分组】（其中MAC地址为【FF-FF-FF-FF-FF-FF】），让局域网内的所有其他主机都收到ARP请求，然后主机继续转发","expanded":true,"icons":["priority:2"],"style":{"background":"#FF9595"},"children":[{"id":"84d951b47da94ca205abbaa0cb","topic":"如果B收到了ARP请求，就单播返还一个【ARP响应分组】回去，告诉主机A自己的IP和MAC地址","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"c228a04a-4388-4df1-9409-e18fecbc0195","topic":"其他主机收到【ARP响应】后，也会把B的IP和MAC建立在ARP高速缓存中。","expanded":true,"style":{"background":"#8EDE99"}}]}]}]},{"id":"accb736dbcaaefa7a5aea97e87","topic":"主机A收到响应分组后，写入到自己的ARP片中，然后发送MAC帧","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"1d6b9169544ab227e00f4a8df7","topic":"图示","expanded":true,"style":{"background":"#D0D0D0"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-70c87c0855434f.png","width":699.84,"height":283.72}}]},{"id":"637ba6b7-17bd-471b-a86b-a139c845ec5c","topic":"所以ARP请求是广播的，ARP响应的单播的","expanded":true,"style":{"background":"#FDD834"}},{"id":"6f595e03a7483df9f1ee589cea","topic":"总结四种情况","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"a1eb4d265bf8d4ac8f54cb4af8","topic":"主机➡️本网内主机","expanded":true,"children":[{"id":"cdcbd9ba9118f21d4df8c832f7","topic":"用ARP找目的主机地址","expanded":true}]},{"id":"60f8a6373968030a6243aa0c78","topic":"主机➡️外网主机","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"67cb366e7b3954762c6ef8daa0","topic":"用ARP找本网的路由器硬件地址","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"33cb6ec84e089ab6e0051b64c6","topic":"一定是NAT路由器","expanded":true,"style":{"background":"#FF9595"}},{"id":"97f8ccb3776b288dcd42899517","topic":"这个路由器的IP地址就是本主机的默认网关","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"28097fcb489b38e604e0a94ed0","topic":"路由器➡️本网内主机","expanded":true,"children":[{"id":"a74b62bb21e8e7028f71f97884","topic":"用ARP找目的主机地址","expanded":true}]},{"id":"4aea3bbac63b30953b3b4a56e1","topic":"路由器➡️外网主机","expanded":true,"children":[{"id":"f9ab65e456489b04d80068e5bf","topic":"用ARP找本网的另一个路由器的硬件地址","expanded":true}]}]},{"id":"98e4ac29-c98c-4a89-a81f-498e5a97d844","topic":"RARP","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"921c1160-f064-4383-a4f8-d90527a22782","topic":"通过MAC逆查找IP","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"eac662de-617f-4017-bda3-792782794672","topic":"DHCP中已经有这个技术了","expanded":true,"style":{"background":"#8EDE99"}}]}]}]},{"id":"e01bb57a1c0a4eb7296c49aa52","topic":"DHCP","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"19afbe4f-f705-49c0-8caf-81d413f6c2ec","topic":"Dynamic Host Configuration Protocol","expanded":true,"children":[{"id":"d1d33862-59a4-40cf-8572-6e75a013d8d5","topic":"动态主机配置协议","expanded":true}]},{"id":"b729a69d927bd23840157ad39f","topic":"处于应用层，基于UDP，动态的给每个主机分配IP地址，即插即用","expanded":true,"style":{"background":"#FF9595"}},{"id":"30fa3c1c406a16dff1ac19d375","topic":"使用客户/服务端方式工作","expanded":true},{"id":"0fdadd491ea93e7711220ad14d","topic":"工作原理","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"adc8412e9669eb3a48f169494a","topic":"广播【DHCP发现】问所有服务器","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"32497d6d2b99585360f12ba654","topic":"可以存在多个DHCP服务器","expanded":true}]},{"id":"1ca8ac7251dbbaacd8c3c8b1ba","topic":"所有收到【DHCP发现】的服务器都广播一个\n【DHCP提供】里面有IP+相关的配置信息","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"7e1b07834f89886b1cff984033","topic":"多个DHCP服务器都会回复，先到先得","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"03b9efe31c0bbcf466db2b9b1f","topic":"客户机收到【DHCP提供】，广播一个【DHCP请求】","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"c3a986718cc80b0fe57508206e","topic":"对应服务器收到【DHCP请求】后，将IP地址分给客户机","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"a2d9a39736998b8189c49a6aa5","topic":"为什么使用UDP，不使用TCP","expanded":true,"style":{"background":"#D0D0D0"},"children":[{"id":"2a8bbf7c6e6accde708ebbe554","topic":"因为客户端连IP都没有，只能广播，也无法建立TCP连接","expanded":true,"style":{"background":"#D0D0D0"}}]}]},{"id":"a2bbf38a737a732591eac8b566","topic":"ICMP","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"b80bb824-3bec-4221-9c67-2da6db629203","topic":"Internet control message protocol\n网络控制信息协议","expanded":true},{"id":"c0d9201369d948b0154359c775","topic":"差错报文","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"0cf9c182164bc4f110d579d044","topic":"五种类型","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"5e9b950282a959efb5e93819e9","topic":"无法交付（终点不可达）","expanded":true,"style":{"background":"#FF9595"}},{"id":"b5d830eb3688b8c971397926a7","topic":"拥塞数据丢弃（源点抑制）","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"1e6a5b258d989e3ca03a7b73d0","topic":"现在基本用不到了","expanded":true}]},{"id":"41caaac054b87e0c6c08388803","topic":"TTL=0/残缺","expanded":true,"style":{"background":"#FF9595"}},{"id":"2c69dc0a971a470e03378b451c","topic":"首部出错","expanded":true,"style":{"background":"#8EDE99"}},{"id":"1259aefca42820c58703ab5a09","topic":"值得更好的路由","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"ff788e6de81b57e644d53aaa32","topic":"反馈给源主机一个更优解","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"44a9e6a2d61b03bdd6a9fa5b57","topic":"不发送ICMP的情况","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"1aa8ad61d549a4b92c4a1baa6d","topic":"ICMP出错了","expanded":true,"style":{"background":"#FF9595"}},{"id":"2f180129f2c8f1538b15c868f0","topic":"第一个分片后的数据报片后续的不发送ICMP","expanded":true,"style":{"background":"#FF9595"}},{"id":"1fa82a1d15b80e9bc0c57aaf2b","topic":"组播地址","expanded":true,"style":{"background":"#FF9595"}},{"id":"474b092178a92527b143a83877","topic":"特殊地址","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"63b917f3323944309ca6788b7c","topic":"询问报文","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"9e48df0d9168fad290412af261","topic":"（PING）回送请求和回答报文","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"0428bd8fba7a91396dbd2bd26b","topic":"（时间戳）时间戳请求和回单报文","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"2f0b2402e75b0447f9107b2fcd","topic":"掩码地址和回答报文","expanded":true},{"id":"8bf8a380dd8b4bf0d08918ff95","topic":"通告报文","expanded":true}]},{"id":"5dca931fc8799f08fcb8d8e0c4","topic":"应用：","expanded":true,"children":[{"id":"5d097b510718f07706a8b9cd75","topic":"分组网间探测PING","expanded":true,"children":[{"id":"f747f5b9-4e3b-45eb-ae49-ea3b98ae1f61","topic":"测试两台主机之间的连通性","expanded":true},{"id":"07b5599b-54d3-4db8-8644-2cd7be5b2ece","topic":"使用了 ICMP 回送请求和回答报文","expanded":true}]},{"id":"21dacf2c8e48adb987e9b9639d","topic":"TraceRoute","expanded":true,"children":[{"id":"430e9a30-e1fa-46d0-99a0-eefbd8bcec8b","topic":"用来跟踪分组经过的路由","expanded":true},{"id":"358540f5-c026-475a-9793-297035fb997e","topic":"使用了 ICMP 时间超过报文","expanded":true}]}]}]}]},{"id":"8ddab1515c29ce6cbbf47aa554","topic":"IPv6","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-585f1b7054eb27.svg"},"children":[{"id":"c04545c6-8698-4063-bdc6-47d92769bf7e","topic":"真正解决IPv4耗尽的问题，NAT、子网等只是缓解手段","expanded":true,"style":{"background":"#FDD834"}},{"id":"d2db59ff053aaee0ebdc2a3b32","topic":"IPv6，一共128bit（8组 * 4个16进制数 =  8 * 4 * 4 bit)，用冒号分隔","expanded":true,"children":[{"id":"45ad1519-6332-4890-b812-eac09a7d23a3","topic":"对比：","expanded":true,"children":[{"id":"e7807b2a-2331-44e5-9827-400c342bef2d","topic":"MAC","expanded":true,"children":[{"id":"dea3ada7-5e63-4cd9-9ec8-144a9abf810d","topic":"FF-FF-FF-FF-FF-FF","expanded":true}]},{"id":"dc49dad6-570e-47a2-bb53-cf4da27ac37f","topic":"IPv4","expanded":true,"children":[{"id":"7a0a02bf-989a-4894-b9a6-193161f58f8b","topic":"127.0.0.2","expanded":true}]},{"id":"dd335e76-3107-4606-9525-9b775a836411","topic":"IPv6","expanded":true,"children":[{"id":"2d00b33a-4bbb-4b83-a79b-f7cd32b9578f","topic":"0000:0000:0000:0000:0000:0000:0000:0001\n【即 ::1 】","expanded":true}]}]},{"id":"65b80c93-3c12-48bc-9772-1082a2b9cbba","topic":"有相继的0时可以用 :: 直接缩写，但只能有一次","expanded":true,"children":[{"id":"fb42dfb8-30a2-406c-9bb4-2fcb75b5419a","topic":"例：F:F:F:F:F:0:0:3 可以写为F:F:F:F:F::3","expanded":true}]}]},{"id":"bfba062e1d79040e019a89cd50","topic":"IPv6的优势","expanded":true,"children":[{"id":"1eaa6d1af5fb5dd88f2e49fb3c","topic":"提供QoS保障（Quality of Service，服务质量）","expanded":true,"icons":["priority:1"],"style":{"background":"#FF9595"}},{"id":"6fba798279babbba0ecbe858a8","topic":"更大的地址空间，首部是8B的整数倍","expanded":true,"icons":["priority:2"],"style":{"background":"#FDD834"},"children":[{"id":"4178228acb187734d43de909ae","topic":"扩展的地址层次格式","expanded":true,"children":[{"id":"346bcff4df0b5eeb73ef3b4e90","topic":"改进的选项","expanded":true}]}]},{"id":"accbba51333b082f48f069e90f","topic":"允许协议继续扩充","expanded":true,"icons":["priority:3"],"style":{"background":"#8EDDF9"},"children":[{"id":"45888b804819f1b4c5e77824d9","topic":"支持即插即用（自动配置）","expanded":true,"children":[{"id":"dc3a78106e3812578cc95ba5d6","topic":"支持资源预分配","expanded":true}]}]},{"id":"e27a97b4808883d15a1228cad0","topic":"只有在包的源点分片，路由器不允许分片","expanded":true,"icons":["priority:4"],"style":{"background":"#8EDE99"},"children":[{"id":"93fd5422-3e0a-452c-8048-fc194212d0b8","topic":"如果超了，就丢弃掉然后返回一个ICMPv6，只有在目的才能重新组装","expanded":true}]},{"id":"958b293536f9121f8763792452","topic":"增大的安全性，有身份验证和保密功能","expanded":true,"icons":["priority:5"],"style":{"background":"#8EDE99"}}]},{"id":"7d7a9b56474b00783688081c06","topic":"IPv6头部","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-36c8c7644a3d46.png","width":529.74,"height":416.58}},{"id":"1b5b8bc1d0f8e628848beacf31","topic":"IPv6的三种传播形式","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"77395c209b5b588236b2eb682f","topic":"单播","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"6e58736a404aff0d09ea69cbb9","topic":"点对点通信","expanded":true}]},{"id":"794a9c0458fa512867b3eab56e","topic":"多播","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"dbe8d939f5ba910e1e12dae751","topic":"点对多通信（可以用来实现IPv4的广播）","expanded":true}]},{"id":"51bbe939b1089d18895cb83837","topic":"任播","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"af3872c7f00bc5d1516979cd77","topic":"点对多中的一个，发给一组主机，如果有一个接受了，就不发了。","expanded":true}]}]},{"id":"0158d8b3e688a3260d3ef93601","topic":"IPv4和IPv6的过渡","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"d6488b04cb8974924305db2084","topic":"双栈协议","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"d6790f2912599e948dd49bd706","topic":"一台计算机：同时拥有IPv4地址和IPv6地址","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"79baf90750babbe7c8ff7b58d9","topic":"一台设备上：同时装有IPv4和IPv6协议，可以和IPv4通信也可以和IPv6通信","expanded":true},{"id":"6348eb44087b70fa1872ea9fb2","topic":"一台路由器上：在不同接口上分别配置了IPv4和IPv6的地址","expanded":true}]},{"id":"1c28321da83ac2399921d97d68","topic":"隧道技术","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"618b2cce89793ce1fba20837d8","topic":"可以把IPv6的数据报封装到IPv4数据报的数据部分里面","expanded":true,"style":{"background":"#8EDDF9"}}]}]},{"id":"a8ddd424-0355-49b7-a1a3-9cbd85f56e73","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"6646ab66-1206-4e20-a1da-9e3936675beb","topic":"无","expanded":true}]}]},{"id":"c40849ff751b992bff5298cc67","topic":"路由协议","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-28e3036368c3a7.svg"},"children":[{"id":"21e6a42d-ff7a-4169-84c6-ec8d4e70b745","topic":"考频：高","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"fdd4e06e-4aa1-4705-a03c-155f26dc41c1","topic":"10、16、17、21、13大、14大","expanded":true}]},{"id":"3d27ab3a-c4db-405d-b3eb-5671fe650fc8","topic":"自治系统AS","expanded":true,"children":[{"id":"f348dd9c-5475-476e-ab64-d314ca659652","topic":"autonomous system","expanded":true},{"id":"00cbfd7e-63a0-46bd-9bb6-2e5dcdc0eaeb","topic":"单一技术管理下的一组路由器，这些路由器使用一种AS内部的路由选择协议","expanded":true,"children":[{"id":"d24364c1-e963-45a8-84c0-8e166f66cac6","topic":"内部网关协议IGP，如ARP、OSPF","expanded":true}]},{"id":"fd20325f-c694-4412-970a-e48016b68999","topic":"同时还使用一种AS之间的路由选择协议","expanded":true,"children":[{"id":"8586b86a-b1ad-48d4-bc2e-e01112a7fbac","topic":"外部网关协议EGP，如BGP-4","expanded":true}]}]},{"id":"b99a9f53c84875b2c109492282","topic":"静态路由（手动配置）","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-65f285c03dd9b5.svg"},"children":[{"id":"c7c836e061c91d8b5370bb1265","topic":"简便可靠，负荷稳定，拓扑变化不大","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"be0bb8376bca592616cfba1081","topic":"动态路由：\n\n域内路由（内部网关协议IGP）","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-585f1b7054eb27.svg"},"children":[{"id":"f9394748ccc82ad58880fbe72e","topic":"路由信息协议RIP","expanded":true,"icons":["flag:#3b82f6"],"style":{"background":"#8EDDF9"},"children":[{"id":"a18e2460-5c83-4b8b-a852-20d5174761f4","topic":"全程：","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"1a711cab-f91a-470a-961c-e9827af7e764","topic":"Routing Information Protocol \n路由信息协议","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"95f073c3-486c-4f09-9188-0d635c568ead","topic":"应用最广泛的协议，简单","expanded":true}]}]},{"id":"e162dbf4-3cea-4281-96c3-3a12493703be","topic":"路由表信息：","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"c2baaa7750da603d7acfbbd4cd","topic":"每个路由器只维护他到每个【目的网络】的【距离向量】","expanded":true,"style":{"background":"#FDD834"}},{"id":"fc2a49b6f2b8bf200e568a2f47","topic":"路由表信息：<目的网络N，距离d，下一跳路由器R>","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"97bab924b48b5b97b13c798dee","topic":"性质","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"7918753c1cc9e7a509d93a4bcb","topic":"【应用层协议】，把自己封装到UDP报文中（UDP是传输层，但他的数据来自于应用层，在【传输层传输】），使用端口520的UDP","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"98e858f0876a33eee4947badd2","topic":"跳数","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"b0ba066dd9b868e4ac3ac998ce","topic":"从一个路由器到一个连接网络要中转的路由器数（跳数 - 1）","expanded":true},{"id":"c25956faa3eaf916ddf41aa522","topic":"最大跳数为15，如果跳数>=16，即说明网络不可达","expanded":true,"children":[{"id":"e8c20239-7f39-4c93-b766-e6735d11eb26","topic":"对比记忆：CSMA/CD的二进制回退算法","expanded":true}]}]},{"id":"6f1b274bd0eb42ebe3ba4b6bc2","topic":"最短广播时间","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"1dd89617b3686d8166592a66b5","topic":"30s广播一次RIP路由信息","expanded":true}]}]},{"id":"89a9afae91da11e62548f82944","topic":"特点","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"8668e73c4d196f4bcabae85d78","topic":"RIP中每个网络的子网掩码必须相同，但是新的RIP2协议中，支持变长子网掩码和CIDR","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"810aa794e0ea48a221914b2bf1","topic":"开销小、收敛快、实现简单","expanded":true},{"id":"768bf5873818452738611b4ce9","topic":"适用于小型的互联网","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"e5ab77b29d5b7d0d40866b9850","topic":"存在慢收敛情况","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"d212b8bd-dc91-443c-a8b8-0c9fe2aa2c62","topic":"例如：R1连接的N1出现了故障，表从<1, 1, - > 变成了 <1, 16, ->","expanded":true},{"id":"da3ca26e-11f1-4087-91ca-fc87db3e9231","topic":"R2原来是<1,2,R1>，现在R1收到R2的交换信息，自己变成<1,3,R2>。<1, 16, -> 这个真实的信息丢了。","expanded":true},{"id":"205714b6-3ae6-4a5d-9334-2e5a67d87df6","topic":"最后经过数轮过后，R1、R2都变成了<1, 16, R2>和<1, 16, R1>","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"0878e5b2572981ef40b659ef68","topic":"RIP的算法步骤","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"83c87adfdba8dcb71dda794054","topic":"1. 与相邻路由器","expanded":true},{"id":"5e7964c9a1f865c8dd1938c905","topic":"2. 路由器交换的信息是当前路由器所知道的全部信息，就是自己的路由表","expanded":true},{"id":"cb8b9fde85196acb8eed382a7a","topic":"3. 30s更新一次","expanded":true},{"id":"4c886dbabeeba01af4525bf513","topic":"4. 收到信息后的步骤","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"16b8726926fb6cb1772a8bd187","topic":"路由表信息：<目的网络N，距离d，下一跳路由器R>","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"6f29eb59cfea3003b261ba6d2b","topic":"1. 收到来自路由器Rx的信息，【N不变，d++，R = Rx】","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"e229b776ee9abc65d2c278bc91","topic":"2. 查看自己的路由表，【如果没有N的信息】，则直接添加进去","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"ddb9262c6429747cfb8188ce6e","topic":"3. 查看自己路由表，【如果有N，R相同】，那么直接改d为新的（不论大小）","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"284b000fccea58751333996bd4","topic":"4. 查看自己路由表，【如果有N，R不同，d更小】，则改成新的（新的d比旧的d要小，就改成新的）","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"0bfa5f3019bb9adff58f4ad0b5","topic":"如果180s还没有收到相邻路由器的RIP，则判定其不可达（设置d为16）","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"8d977d31-784a-497c-a4e8-5e2628d9ceef","topic":"优点：","expanded":true,"children":[{"id":"f014bfb5-e814-493e-b28d-69f9fcbf3a95","topic":"简单、开销小、收敛快","expanded":true}]}]},{"id":"1859d696e278f8a18db5c96a4d","topic":"开放最短路径优先OSPF","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"424c455d-8ba8-40d6-ba7e-5a44fd002539","topic":"Opening Short Path First","expanded":true,"children":[{"id":"92550415-d2de-4f55-a11d-4fc5586346d7","topic":"开放最短路径优先","expanded":true}]},{"id":"0c69be11fe39cf8e5650082819","topic":"每个路由器维护【全网的拓扑结构图】","expanded":true,"children":[{"id":"9359a86d1228a6f6ce180ae1e4","topic":"即：DD链路状态数据库的同步","expanded":true}]},{"id":"e4d963e800ba433390fd2b1e4c","topic":"性质","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"3a09dda7b11ac9054846a85ddc","topic":"【网络层】协议，使用IP数据包传送，在网络层传输","expanded":true,"style":{"background":"#8EDE99"}},{"id":"8118d70e81183b670edbcb27cf","topic":"洪泛法发送数据给【所有路由器】，⚠️  这里实际洪泛法是只发给相邻的路由器，然后一层一层传出去","expanded":true,"style":{"background":"#8EDE99"}},{"id":"893bdf06d9bb2419b6c55aa917","topic":"交换信息为【本路由相邻的所有路由器的链路状态】","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"f57b34d8e9c96657d4e6aaac80","topic":"与RIP相比不一样的：RIP是发自己知道的全部东西","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"137973183df8b7dc4184991260","topic":"链路状态","expanded":true,"style":{"background":"#7986CB"},"children":[{"id":"137b2b71bdaa6732fcdb198c97","topic":"本路由器与哪些路由器相邻","expanded":true,"style":{"background":"#7986CB"}},{"id":"5bebb7e040b99ef8d2e1196c69","topic":"链路的“度量”（或代价）","expanded":true,"style":{"background":"#7986CB"}}]}]},{"id":"4a781214d95b1bcc8e3fabc2d1","topic":"只有链路状态发生变化的时候才会使用洪泛法发送信息","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"8ce9ba8bb7c87d26f6a8e8975b","topic":"与RIP相比不一样的：RIP是每30s就发一次","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"7b581ba6ba8b390f0cca193137","topic":"OSPF规定每隔30min更新一次链路状态","expanded":true}]}]},{"id":"6dc90b35383ae1b7bc4a0b5845","topic":"特点","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"37aadad3ec9902daca790af698","topic":"OSPF的代价可自行调节，针对不同类型业务可计算出不同的路由，【十分灵活】","expanded":true,"style":{"background":"#8EDE99"}},{"id":"03d84f78ffd87f955eecd9c6d5","topic":"OSPF算法会把【大型网络划分为数个区域】，区域内的路由器只会存储每个区域内的链路数据库","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"9f0b9c95d809c62322af3b4d29","topic":"适用于大型网络","expanded":true},{"id":"4498e4666828343c002e59524f","topic":"主干区域为0.0.0.0，除了主干区域，其他为自治系统边界路由器","expanded":true},{"id":"3c1a8f21d92ab16a31056a910f","topic":"四种路由器","expanded":true,"children":[{"id":"75db5f17e3590ec9ffbaf9f7b9","topic":"主干路由器","expanded":true,"children":[{"id":"3b2a908ea2cbedb5d50a8868df","topic":"主干区域内的","expanded":true}]},{"id":"035a158175fa2c7a5c29aa0d1e","topic":"区域边界路由器","expanded":true,"children":[{"id":"1feb814ab33b352acd674a31c7","topic":"主干区域 ↔️  边界区域","expanded":true}]},{"id":"77da523fbffac1d3f60cf901d8","topic":"区域内部路由器","expanded":true,"children":[{"id":"2f7a92cee289f907c5d18ac297","topic":"边界区域内部","expanded":true}]},{"id":"83a94f57e62a6272b32378f1fd","topic":"自治系统边界路由器","expanded":true,"children":[{"id":"6c2b9cd234c9720b2113892716","topic":"AS1 ↔️  AS2","expanded":true}]}]}]},{"id":"e739f0999539144460c8980864","topic":"收敛过程快，不会出现“慢收敛现象”","expanded":true,"style":{"background":"#8EDE99"}},{"id":"4b595160438a9b2c9e6fc8579f","topic":"四个楼楼没讲的功能","expanded":true,"style":{"background":"#D0D0D0"},"children":[{"id":"39b56d3c-cf40-43bc-8a40-7c9c1c74ca64","topic":"1）如果到同一个目的网络有多条相同代价的路径，那么可以将通信量分配给这几条路径。这称为多路径间的【负载平衡】。","expanded":true},{"id":"b536437e-28b0-470d-8fe5-b76b6ae73a2e","topic":"2）所有在OSPF路由器之间交换的分组都具有鉴别功能，因而保证了仅在可信赖的路由器之间交换链路状态信息。","expanded":true},{"id":"143ad7ce-7500-4e48-b0e2-a17cadccaa1f","topic":"3）支持可变长度的子网划分和无分类编址CIDR。","expanded":true},{"id":"d3f2c74f-6d51-4a6d-9cd2-f2e1eb3941fa","topic":"4）每个链路状态都带上一个32位的序号，序号越大，状态就越新。","expanded":true}]}]},{"id":"598bda8f21aacabab4f6f9a5a2","topic":"OSPF算法步骤","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"54db839796abffd76cc8594fa4","topic":"目的：每个路由器都建立一个全网的链路状态数据库，即全网拓扑结构图","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"b8488bc2711b45b38c8eba8d6a","topic":"然后每个路由器在结束链路交换后，使用Dijikstra算法计算最优路径","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"d469254d63d9fbdea2f659d365","topic":"在路由器的存储中，存的仍然是下一跳的地址，因为Dijikstra对每个顶点也可以只存下一跳的地址","expanded":true,"style":{"background":"#8EDE99"}}]}]},{"id":"a698a474ab4823587b07088d25","topic":"五种OSPF","expanded":true,"children":[{"id":"5b5a23e1c3eaf9e13c6069650f","topic":"HELLO问候分组","expanded":true},{"id":"5e290b117c0b862e2b9c49a1a9","topic":"（metric每个邻居的成本度量）","expanded":true},{"id":"d7ebf6e3b8fa96f2ae7ff9d68f","topic":"数据库描述分组","expanded":true,"children":[{"id":"0d91043a-04ef-4dd0-8f36-dc900e7ce7e3","topic":"向邻站发送自己链路状态数据库中所有链路状态项目的摘要信息","expanded":true}]},{"id":"cfab64af43cae818b8a22807e3","topic":"LSR链路状态请求分组","expanded":true,"children":[{"id":"74d05e44-6683-45e9-8784-430f875e0f8c","topic":"向对方请求某些链路状态的详细信息","expanded":true}]},{"id":"5c8a8d8f5269c5cc35eb88134d","topic":"LSU链路状态更新分组","expanded":true,"children":[{"id":"d4886aa7-23be-4532-82e1-8fcc4524554e","topic":"洪泛式更新链路状态","expanded":true}]},{"id":"ef2a5e8f1d299d99d8439af0d1","topic":"LSAck链路状态确认分组","expanded":true,"children":[{"id":"ecfdad93-94a6-4bd0-829f-78d67dbad5c5","topic":"对收到的更新分组进行去人","expanded":true}]}]},{"id":"7f0a2bdeeb09dcdc90db19d058","topic":"步骤","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"a3db4f1ac4fbec12190a992097","topic":"1. 有一个路由器发生了路由变化","expanded":true,"style":{"background":"#8EDE99"}},{"id":"7ab9ac6e31db88d2fb88a9500b","topic":"2. 该路由器洪泛式发送LSU","expanded":true,"style":{"background":"#8EDE99"}},{"id":"1e78563e6e0ad0c103b88a5278","topic":"3. 其他路由器收到后更新DD链路数据库，返回LSAck","expanded":true,"style":{"background":"#8EDE99"}},{"id":"e7b927317029f6713a995aa1f6","topic":"4. 所有其它的路由器，重新跑一次Dijikstra","expanded":true,"style":{"background":"#8EDE99"}}]}]}]}]},{"id":"f2286f38aa48fe0aa7d78b5b44","topic":"动态路由：\n域间路由（外部网关协议EGP）","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-585f1b7054eb27.svg"},"children":[{"id":"40983d0947fb47bcf1fd1a8e0f","topic":"BGP-4","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"513bbd6aae0a8e15a7e32ad560","topic":"特点","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"66fb163f28eaa99683313aba9a","topic":"应用层，基于TCP","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"549942980938a6d865604b9244","topic":"为什么使用TCP","expanded":true,"children":[{"id":"6f7a6484dc7bd59c79519ba32a","topic":"TCP有更稳定的服务，可以简化路由协议","expanded":true}]}]}]},{"id":"ec781315200a8f32c3f4b9f5bb","topic":"性质","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"e1cbd857bb38cd7c349808af3b","topic":"不同AS之间进行交换的协议","expanded":true,"style":{"background":"#FFABD5"}},{"id":"0589308d24e9c7027c08ba9788","topic":"每个AS中至少有一个BGP发言人","expanded":true,"style":{"background":"#FFABD5"},"children":[{"id":"25fbf86623d9f7aa35bf49fae3","topic":"BGP发言人与其他AS中的BGP发言人进行路由信息交换","expanded":true},{"id":"ce89cc8495ca032c30820a9fce","topic":"交换的信息是【路径向量】","expanded":true}]},{"id":"26f8ab46dd89294090dbe892b3","topic":"BGP支持CIDR，路由表为 < 网络前缀、下一跳路由器、所经过的AS序列 >","expanded":true,"style":{"background":"#FF9595"}},{"id":"71eb6130b878c0196021db573d","topic":"在刚开始运行的时候，所有发言人都与相邻路由器交换整个BGP路由表，以后只在有更新变化的时候再更新有变化的部分","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"5538008ab87a52b7cc773b1688","topic":"四种报文","expanded":true,"children":[{"id":"4d9b7be1fadae12d571f280ff6","topic":"打开(Open)","expanded":true,"children":[{"id":"65388aeaabd92baaf20d3899b4","topic":"与相邻BGP发言人建立关系","expanded":true}]},{"id":"90b94ea3f2dba84064daaa1b5d","topic":"更新(Update)","expanded":true,"children":[{"id":"a6dac4c4befadf4a02431ac4a2","topic":"用来发送某一路由信息，以及要删除的信息","expanded":true}]},{"id":"96fa1c74c22a40d4d41799efc0","topic":"保活(KeepAlive)","expanded":true,"children":[{"id":"bc09a774af1ab339a1ac3b3914","topic":"周期性的证实临站的存在","expanded":true}]},{"id":"4cb885564908619b56d54a49cc","topic":"通知(Notification)","expanded":true,"children":[{"id":"f7f89f9e263a6e068515b8b491","topic":"发送检测到的差错","expanded":true}]}]}]}]},{"id":"f758350d5999589645a8287258","topic":"动态路由三种对比","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-54c6bb48937d38.svg"},"children":[{"id":"1dfa4b8094ab2342d63c7972be","topic":"图示","expanded":true,"style":{"background":"#FF9595"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-8f4f4ac908026b.png","width":875.57,"height":306.19}}]}]},{"id":"d4f9d2543a9bdaaa6758e8aebf","topic":"IP组播","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-593c1f344b4c8e.svg"},"children":[{"id":"12bbd47d309baa172ec2da749c","topic":"只用于UDP，点对多点。把一个报文分组发送给多个目的地主机，只会在接受的前一个路由器处进行复制","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"c3dbe7960c7a43ceff133ae66b","topic":"UDP，不提供可靠交付","expanded":true},{"id":"b35907f95d78fd6f20d5c82e55","topic":"组播地址只能是目的地址","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"803b51df09c949d6e29c2ad492","topic":"组播信息不产生ICMP报文，PING后+组播地址，无法接收到响应","expanded":true}]},{"id":"a6be48d7-0133-45c1-90b9-db279c2142a9","topic":"使用IGMP协议才可以加入组播组","expanded":true},{"id":"d9bb8e64e23bf121d22fdab872","topic":"组播地址：224.0.0.0 ～ 239.255.255.255","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"566a734935cbe1f8d944890740","topic":"不是所有D类地址可作为组播地址，有许多已经被作为永久组播地址，不允许使用","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"f63a9e1e364962056a40d9cf2a","topic":"两种组播","expanded":true,"children":[{"id":"69e9c241422be99b9522b8ddda","topic":"在因特网范围内组播 IGMP \n(internet group message protocol)","expanded":true,"children":[{"id":"71ca3177369b019726dfb88ba7","topic":"路由器维护【成员关系】","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"f1ca6101a878f9974ba87ae259","topic":"是否有成员在组播组中","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"a4cac74eb7d9fe835e3b184073","topic":"第一阶段：若【主机】申请加入新的组播组，那么主机向【组播组的组播地址】发送IGMP报文说自己要进来。","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"a41ae15158eb6092b2aee87186","topic":"【本地的组播路由器】收到后，把组的成员关系转发给【其他组播路由器】","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"180ba57f80ca5fb9906ae99a5f","topic":"第二阶段：本地的组播路由器会周期性询问LAN的主机","expanded":true,"children":[{"id":"03fb583e2a78f0e63e3a38fb9c","topic":"只要有一台主机回应，就认为本组活跃","expanded":true},{"id":"0e68b4c1419847f31870bb3b1e","topic":"如果【经过几次】都没回应，就不把这个组的成员关系转给其他组播路由器","expanded":true}]}]},{"id":"30ebce90b9da76733ebd3b9ba0","topic":"在因特网和硬件间组播\n（组播IP地址与组播MAC地址的对应关系）","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"86d8a0becdb85b104d469bb33c","topic":"01005E是固定的组播MAC前缀，而IP有组播地址范围（前4bit是1110）","expanded":true,"style":{"background":"#FF9595"}},{"id":"1c6ae3457a1939c183f0e8a6bf","topic":"IP和MAC地址的最后23位一定一摸一样，一一对应","expanded":true,"style":{"background":"#FF9595"}}]}]},{"id":"95f9d0c54f0a62ab09975bddc3","topic":"组播路由选择","expanded":true,"children":[{"id":"7bb71527-8291-4dc0-9298-382db9cc214a","topic":"通过IGMP使路由器获得组播成员信息","expanded":true,"children":[{"id":"ddabe1c07688c9850580b81802","topic":"找到组播转发树（因为每个分组只转发一次，所以使用树形结构。根节点不同，树也会不同）","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"ac96c94c-3226-4a54-8223-a2f25f89d6dc","topic":"IGMP是TCP/IP的一个部分","expanded":true},{"id":"aad9a54c3ff8ff80783599df2b","topic":"三种路由算法","expanded":true,"children":[{"id":"de0ab42940897947bd1f4a6137","topic":"OSPF","expanded":true},{"id":"25988f4a979b4d5a1197eb4643","topic":"RIP","expanded":true},{"id":"420bc487983b529bdf67a86e77","topic":"PIM（协议无关组播，了解即可）","expanded":true}]}]},{"id":"ee2cc271-0e91-4eee-8dcc-4ae8e6343796","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"6bcb603f-ab16-4bba-86e4-0d0946761230","topic":"无","expanded":true}]}]},{"id":"375a8b4d58a8b31250702bfee1","topic":"移动IP","expanded":true,"children":[{"id":"1c279696-bbc2-49b1-9173-85059a43a7ff","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"dd2813da-26f4-4aeb-8df0-c0aa13436b6b","topic":"无","expanded":true}]},{"id":"5868b1218f794d09d76a0b3bf5","topic":"定义","expanded":true,"children":[{"id":"3e4a3df2515a2f5fe8943ba0a1","topic":"移动IP","expanded":true,"children":[{"id":"440b16214918b65df2b00acdab","topic":"支持移动性的因特网结构与协议的IP","expanded":true}]},{"id":"71a4e1dd-fd6b-4263-82be-abb5326d4cf9","topic":"移动结点","expanded":true,"children":[{"id":"ccb542e1-1aa9-430d-a26b-59a21ed5b90d","topic":"具有永久IP地址的移动结点","expanded":true}]},{"id":"5f797b9547faf72d494918e8aa","topic":"移动代理","expanded":true,"children":[{"id":"c0a99860362b04c7a6fd88ac4b","topic":"外埠代理/外部代理","expanded":true},{"id":"e059b03970a9499bd1e72a81ef","topic":"本地代理/归属代理/归属网络","expanded":true}]}]},{"id":"745b088857fb839b1a4059f123","topic":"处理流程","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"635b94f380ab6bceab39884db2","topic":"1. 如果在本地网络内，就使用普通的TCP/IP通信","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"bc3b9fd645bb225b7ce449b593","topic":"2. 移动节点移动到外网，仍然使用本地IP。需要向本地代理注册当前的位置地址","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"f92bda6c2cf8506dbb3bcb6a93","topic":"3. 本地代理接受到注册后，会构建一条通往移动代理的隧道，然后截获发给本地的IP分组通过隧道传到代理网络处","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"a1ca808b6d0bcf52b7e6b84ef3","topic":"4. 代理网络处解除隧道的封装，恢复原始的IP分组，最后送过去","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"371b65e7204a597267d4da51a2","topic":"5. 在外网通过外网的路由器或外埠代理发送IP数据包","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"20d9feebc128bd9f6f61f993b4","topic":"6. 来到新的网络就新注册","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"c63b79812c0b8133a57aba2f4d","topic":"7. 回去就注销","expanded":true,"style":{"background":"#8EDDF9"}}]},{"id":"89e8b439e70955da6d5eb8bf59","topic":"移动节点以固定IP来实现跨网的漫游","expanded":true}]},{"id":"6bc919e76fbb16312ce3c9ad49","topic":"网络层设备","expanded":true,"children":[{"id":"b78b5b2a87795875c36f1b0d79","topic":"路由器","expanded":true,"children":[{"id":"18792acd9238e2e7cf6a2851e1","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-cf1066eaec3a5a.png","width":572.05,"height":314.29},"children":[{"id":"82e8a612718aaac1afea0961e1","topic":"路由选择","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"9eb98c51319994e44e1f284471","topic":"RIP/OSPF/BGP-4","expanded":true,"style":{"background":"#FF9595"}}]},{"id":"7fda7b272a5bd0f71cebc82643","topic":"分组转发","expanded":true,"children":[{"id":"1eb9c60da29b409b0709e895eb","topic":"输入端口","expanded":true,"children":[{"id":"9ffa8357307a2a34b3553867e1","topic":"数字信号 -> 物理层 -> 数据链路层 -> 网络层缓冲队列","expanded":true}]},{"id":"771985ea836a7bcaca84bb9118","topic":"交换结构","expanded":true,"children":[{"id":"d888408f69db8aa90dbab8d5de","topic":"根据【路由选择】中的路由表去获得【转发表】，分组处理后进行转发","expanded":true}]},{"id":"e749543376a91db653f3b9763e","topic":"输出端口","expanded":true,"children":[{"id":"c5dbe37bb9dbf9c183873a6adb","topic":"网络层排队分组","expanded":true}]}]},{"id":"769a5fc8-6cec-4137-84dc-e2389ecdc9ae","topic":"路由器中的输入输出队列溢出是分组丢失的重要原因","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"7bdc1cce-87c3-4ea6-a1cd-604a2354ab94","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-622651b9d24ba9.png","width":921,"height":148}}]},{"id":"3f8aed2e-2174-4f54-8829-a4a274b51208","topic":"三个设备比较","expanded":true,"children":[{"id":"dd50d578-797b-404b-9e60-574926f04778","topic":"协议","expanded":true,"children":[{"id":"726fb041-13f9-439c-b016-d4baee57a01f","topic":"路由器：互联不同网络协议","expanded":true,"style":{"background":"#FDD834"}},{"id":"12e424c8-fb84-4303-a367-d3f9d5385720","topic":"网桥：互联两个不同物理层+链路层","expanded":true,"style":{"background":"#FDD834"}},{"id":"b0b92d7e-e6a4-4554-aca8-267fc74c516c","topic":"中继器/集线器：不能互联不同物理层","expanded":true,"style":{"background":"#FDD834"}}]},{"id":"099bceaf-8072-4e2e-a8f3-1d294269d42c","topic":"域","expanded":true,"children":[{"id":"b77c2058-3702-4712-b035-5cfed99e06e7","topic":"图示","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-e9062a20692810.png","width":177,"height":146}}]}]},{"id":"0b4a880eb699d9fd048589fd2b","topic":"路由转发","expanded":true,"children":[{"id":"99a3bd96-6943-4c65-aa5f-00b27834e888","topic":"参考前面的内容","expanded":true},{"id":"7a2a9fb64f5b7571edf2585337","topic":"标准的路由表：<目的网路IP、子网掩码、下一跳IP、接口>","expanded":true,"style":{"background":"#0CE6CF"}},{"id":"a39a89f1be4a4647e3122a026c","topic":"转发和路由选择的区别","expanded":true,"children":[{"id":"3f1b4534806b8d7e39daeb7857","topic":"转发","expanded":true,"children":[{"id":"720b3d0423c8ebd9f118787862","topic":"根据路由表来把得到的IP数据报从合适的端口发出去，只涉及一个路由器","expanded":true}]},{"id":"22497e19c75a28e7554c49ef43","topic":"路由选择","expanded":true,"children":[{"id":"6b5b413b846a36e5c26a8ac5e9","topic":"涉及很多路由器","expanded":true},{"id":"df08c23d59cb9d1ec9559af893","topic":"通过复杂的路由算法、网络的拓扑结构，动态构造的","expanded":true}]}]}]},{"id":"509b44c8-7c8d-41d6-b8e5-54af1207c82d","topic":"考频：中","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"392a5b3b-8d61-4888-839b-7256f14899cc","topic":"10、11、12、20、19大","expanded":true}]}]},{"id":"1b1992fd-f197-45a3-8862-c45bd2dc356d","topic":"SDN","expanded":true,"children":[{"id":"11105859-3741-468b-8a33-075c6abcbc32","topic":"考频：低","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"b5a9c2ec-a55f-4a1e-b975-d940f96ab6c5","topic":"22","expanded":true}]},{"id":"fde7a588-a053-48c6-8d13-cb5c74f3cffd","topic":"数据平面","expanded":true,"children":[{"id":"18072051-51df-4ef7-b048-550bb928ad33","topic":"硬件解决","expanded":true,"children":[{"id":"1e0460ce-ce1c-4704-8bc7-7b0ffa3365a8","topic":"非常的频繁","expanded":true}]},{"id":"cff7bc5a-1fa5-491b-9bde-48bf075ade40","topic":"就是根据路由器的转发表进行转发","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"da3aae81-d87c-412b-9d2e-fa936c1c78a9","topic":"图示","expanded":true,"style":{"background":"#8EDE99"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-16252bde8fa67c.png","width":394.98,"height":195.42}}]}]},{"id":"76bb048c-f235-4353-a4c8-141cd48cd86b","topic":"控制平面","expanded":true,"children":[{"id":"f98cb409-3dc8-4d86-8d80-61b6d7b34340","topic":"软件解决","expanded":true},{"id":"e13368d9-1282-4331-ae8c-9aea494a6704","topic":"传统方法（每路由器法）：","expanded":true,"children":[{"id":"410b2341-6ded-4d28-861a-255b5bd28b5e","topic":"路由选择算法运行在每一台路由器之中，每个路由器都有转发和路由选择两个功能","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"8f44bf20-ae65-48b4-883a-fa26de803671","topic":"所以在传统方法中控制平面和数据平面在一个路由器里面是同时起作用的","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"437f37ab-4884-4d52-9f9c-f0b5ad2a9902","topic":"每个路由器既要进行对数据帧的转发，也要进行对路由转发表的建立","expanded":true}]},{"id":"ca19da84-895c-435f-a3ca-3b29e4669164","topic":"路由选择处理器：","expanded":true,"children":[{"id":"a04f7bac-7499-4db2-9fe4-ca45a92ddf7f","topic":"传统方法：【路由选择处理器执行控制平面功能】。在传统的路由器中，它执行路由选择协议，维护路由选择表于关联链路状态信息，并为该路由器计算转发表。","expanded":true},{"id":"86e33348-ad0c-4eac-b805-c00291a12499","topic":"SDN方法： 在SDN路由器中，【路由选择处理器负责与远程控制器通信】，目的是接收远程控制器计算的转发表项。","expanded":true}]}]},{"id":"10c8d32c-63a0-4045-9d67-4da242ccf773","topic":"SDN方法：","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"d75ca16c-02f7-4725-84a9-b976be3e1f0c","topic":"Software-Defined Networking","expanded":true},{"id":"2521c840-30f5-42d5-854c-2d07f63f3fbb","topic":"控制平面从路由器上物理分离，路由器只负责数据平面的转发，而转发表的计算是由【远程控制器】完成的","expanded":true,"children":[{"id":"96e45ac2-cf11-44d9-8dd9-7d979e9a463e","topic":"远程控制器在高可靠性的远程数据中心中，并有ISP或其他第三方管理","expanded":true}]},{"id":"e02452d3-81db-4627-8d7a-041ca33dbae8","topic":"具体方法：","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"887e1b9a-e592-4bfe-b6d2-2ede56fa65fd","topic":"路由器通过【交换包含转发表和其他路由选择信息的报文】与【远程控制器】通信","expanded":true,"style":{"background":"#8EDDF9"}},{"id":"63a6fdbf-e778-4020-8cbd-9700df09fb66","topic":"在【远程控制器】中使用软件计算","expanded":true,"style":{"background":"#8EDDF9"},"children":[{"id":"84284b78-ffdd-4344-8259-b8882e80b0f0","topic":"所以网络是”软件定义的“","expanded":true,"style":{"background":"#8EDDF9"}}]}]},{"id":"d5ee7d95-c02f-4506-996a-88ab077cd2de","topic":"SDN控制平面","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"6a23c470-1fd4-48c6-8b60-7bf006b869d4","topic":"图示","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-edd3792013485c.png","width":382,"height":331},"children":[{"id":"fe73bb8e-dc77-400c-91f4-8648c8f8b038","topic":"从上到下","expanded":true,"children":[{"id":"58f94702-c36d-47a2-b00d-8db64b68f14a","topic":"网络控制器应用程序","expanded":true,"children":[{"id":"eca8b7ad-13a6-4877-afd8-649871f884db","topic":"根据SDN控制器提供的方法，这些应用程序会监视、编程、控制下面的网络设备","expanded":true,"style":{"background":"#8EDE99"}}]},{"id":"8331a0b7-edce-4b8f-9670-2fa4694f11ad","topic":"SDN控制器","expanded":true,"children":[{"id":"afe0f284-8d37-4305-9946-e1b40d8dd837","topic":"为运行在控制平面中的【网络控制应用程序】提供这些信息","expanded":true,"children":[{"id":"0e66849c-2d25-4929-95ec-0742e78100b4","topic":"可以使这些【网络控制应用程序】逻辑上集中起来","expanded":true}]},{"id":"becf81aa-f639-49ed-8412-fb352bb9f5ae","topic":"维护网络状态信息（链路、路由器、主机状态）","expanded":true,"children":[{"id":"ce0e1d4c-9f90-4012-a2b4-31642a2228ba","topic":"这里的路由器也可以称为交换机，因为是《自顶向下》这本书说的","expanded":true}]}]},{"id":"79025363-27d3-4a74-8eea-b9502eb40db3","topic":"交换机","expanded":true}]}]}]},{"id":"3f6d8056-6829-463b-a170-48bcb9703595","topic":"细分【SDN控制器】","expanded":true,"style":{"background":"#FDD834"},"children":[{"id":"20fa984b-438f-4578-9baa-5b66d3c331f4","topic":"图示","expanded":true,"style":{"background":"#FDD834"},"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-a4d331dbaad72a.png","width":429.07,"height":465.37},"children":[{"id":"2f158738-b0f9-4afa-bf7c-8ad79694a488","topic":"网络【应用程序接口层】","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"e95f6fba-333f-4cdf-82f1-d77528149fbd","topic":"有北向API","expanded":true},{"id":"71520869-28c1-43c9-82fc-66502a6d3e07","topic":"允许SDN控制器与【网络控制应用程序】交互","expanded":true},{"id":"3caf96ec-df4b-438a-b508-14e08feee9d7","topic":"该API允许【网络控制应用程序】在状态管理层读写网络状态","expanded":true}]},{"id":"62bdd16d-febb-46c5-a25d-69bb1915142d","topic":"网络范围【状态管理层】","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"57bc92de-7af4-45a0-8524-28f77c55db72","topic":"SDN控制平面做出的最终控制决定，要求控制器具有有关网络的【主机、链路】等的最新状态信息","expanded":true}]},{"id":"83720e30-a293-4ffe-a984-24c7d3b35374","topic":"【通信层】","expanded":true,"style":{"background":"#FF9595"},"children":[{"id":"a64768d8-3779-44eb-95ad-44bb015f8907","topic":"南向API","expanded":true},{"id":"4bfa0120-60bf-40b6-b9a8-6e61791ecd8d","topic":"SDN控制器与其下受控的网络设备的通信","expanded":true,"children":[{"id":"b5e10883-d54e-46e4-b343-c395fe398107","topic":"采用OpenFlow协议","expanded":true}]}]}]}]}]},{"id":"cf200e34-061f-40ce-8616-b417ffa76874","topic":"习题","expanded":true,"children":[{"id":"8602f322-bb35-4959-885d-cecc419573b0","topic":"1．假定你要在SDN控制平面中实现一个新型路由选择协议。你将在哪个层次中实现该协议？","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"47649b66-3599-4cd1-864c-0ae6ea866e46","topic":"【网络范围状态管理层】因为在这一层能获得有关网络的主机，链路，交换机和其他SDN控制设备的最新状态信息， 可以根据这些信息的基础上实现新型路由选择协议，并通知给控制器落地执行。","expanded":true}]},{"id":"4a824f69-061b-42a0-a967-0d0c2c003035","topic":"2. 谁是从控制器跨越南向接口发送的这些报文的接收者？谁是跨越北向接口从控制器发送的这些报文的接收者？","expanded":true,"style":{"background":"#8EDE99"},"children":[{"id":"cee37caa-38c8-4593-af62-0763866f698e","topic":"•受控网络设备(路由器） \n•网络控制应用程序","expanded":true}]}]}]}]},{"id":"d44aaf523a0bb27100633ab083","topic":"END","expanded":true,"image":{"src":"https://gastigado.cnies.org/d/BrushUP/mm-94e34c3bc61804.svg"}}]},"summaries":[{"id":"b450c3a5-9e04-4801-8a93-66901c3d9580","parentId":"e72dbe5e-3053-4a85-b4ba-147f1b3a413a","start":0,"end":1,"label":"在网络层的视角中，这两种只是把一个网络给扩大了"},{"id":"980349f5-994f-4b9f-b8ac-4a9487419ea9","parentId":"e072f018-667b-4b79-b905-dedaf2cf157b","start":0,"end":1,"label":"此处显得IPv4的检错功能不那么重要了（IPv6删去了该内容）"},{"id":"d7fb3cfd-cddc-49f5-90f7-249ed2273718","parentId":"88eb5cce7bf8084ab50f0a0873","start":1,"end":1,"label":"NAT中涉及到了port端口，故NAT是工作在传输层的"},{"id":"1f3a6ceea85a73ffb826bb5930","parentId":"63b917f3323944309ca6788b7c","start":2,"end":3,"label":"现在不用了"},{"id":"c6237beb-f62c-4259-8550-327af8712702","parentId":"69e9c241422be99b9522b8ddda","start":0,"end":0,"label":"所以，组播必须要路由器才可以实现"},{"id":"510a35d106483f9985d6f8f0b1","parentId":"30ebce90b9da76733ebd3b9ba0","start":0,"end":1,"label":"所以一个组播IP地址可以对应很多个MAC地址，故会有多个主机接受到组播地址，需要在IP层利用软件进行过滤，把不是给本主机的组播信息丢弃掉"},{"id":"24586700-f993-42cc-8d27-d90c4ab9f3cf","parentId":"ca19da84-895c-435f-a3ca-3b29e4669164","start":0,"end":1,"label":"SDN方法中进行了分离"}]}