作者quasi (嘉嘉有本难念的经)
看板Network
标题Re: [问答] broadcast flooding差别
时间Tue Jun 28 01:07:13 2016
想再请教一下关於arp 跟 switch learning的观念
请各位大大指点指点
如图
http://imgur.com/4oPWfPi
请问在最乾净的情况下
h1 ping h4会内部会发生什麽事情?
h1 会先看自己的 Arp Table 中是否有目的IP的实体位址,
如果有则直接使用此位址来传送封包,否则会送出Arp Request的广播封包。
当 sw1 接收到此广播封包後,
会将来源端 ( h1 ) 的 Mac Address 及 Port Number(h1 - sw1) 记下,
并进行广播,
sw2 会接到此广播封包并记下来源端 ( h1 ) 的 Mac Address及Port Number(sw1 - sw2)
,而 h4 会将此封包收下,并送出Arp Reply封包(目的为h1),
sw2收到Arp Reply会将来源端 ( h4 ) 的 Mac Address 及 Port Number(h4 - sw2) 记下
,之後因为sw2的CAM Table已经有此目的(h1)的纪录了,所以往Port(sw2 - sw1)送出,
sw1收到後,因为sw1的CAM Table中已经有此纪录,所以会传送至 Port (sw1 - h1),
h1即能接收到Arp Reply,之後两端会传送Icmp封包(Echo Request、Echo Reply)。
这是我所想的
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 218.166.135.18
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Network/M.1467047236.A.C1D.html
1F:→ a73126: 你想的基本上没有错啊 06/28 03:27
2F:→ s801107: 是 06/28 07:14
3F:→ deadwood: 想法没问题+1 06/28 14:11
4F:→ quasi: 谢谢大家的指教 06/28 17:43