⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠ You can decompress Drawing data with the command palette: ‘Decompress current Excalidraw file’. For more info check in plugin settings under ‘Saving’
Excalidraw Data
Text Elements
ISP
some school
some company
某学校申请了一个B类IP地址段:166.1.x.x
某公司申请了一个C类IP地址段:200.1.1.x
Internet
Switch1
Switch2
Hub3
H1
H2
H3
H4
H5
H6
H1~H2需要配置默认网关:166.1.0.5
B2
166.1.0.5
Router1
Router2
Router3
166.1.0.3
166.1.8.3
166.1.8.1
166.1.1.1
166.1.1.2
166.1.1.3
C0
C2
Switch1
H7
H8
200.1.1.2
200.1.1.1
200.1.1.3
H1~H2需要配置默认网关:200.1.1.1
B0
B1
C1
A1
A2
A3
现在H1要给H8发送数据报 ^yXf9CuEE
H1知道它的默认网关,会通过ARP协议,知道其对应的MAC地址,在数据链路层
封装成帧的时候,会把里面的目的MAC地址替换成刚才得到的MAC地址,实现转发.
逐层转发,源地址和目的地址一直不会变,但是封装成帧的时候目的MAC地址会变化