免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1227 | 回复: 0
打印 上一主题 下一主题

ARP [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-20 23:06 |只看该作者 |倒序浏览

ARP:
1:The device driver software never looks at the destination IP address in the IP datagram.
2:Address resolution provides a mapping between the two different forms of addresses: 32-bit IP addresses and whatever type of address the data link uses.
3:arp -a, arp -d; sh arp, clear arp
ARP packets format:
   6B       6B  2B(ARP) 2B(Ethernet)   2B(IP)        1B            1B           2B    6B        4B    6B     4B
Des.MAC|Sou.MAC|Type|HardwareType|ProtocolType|HardwareAddressLen.|ProtocolAddressLen.|OP|SenderMAC|SenderIP|Tar.MAC|Tar.IP
               0x0806  0x0001          0x0800        0x06        0x04         
OP:ARP request(0x0001); ARP reply(0x0002); RARP request(0x0003); RARP reply(0x0004).
PAD:6+6+2+2+2+1+1+2+6+4+6+4=42, number of bytes of padding is 18B.
The work process of Switcher:(CAM table)
1:PCs and servers learn MAC-to-IP by arp ARP request and ARP reply;
2:Switcher learns MAC-to-IP and puts entry into CAM table by ARP request;
3:Switcher transmits packets by CAM table
Proxy ARP and Gratuitous ARP
Proxy ARP:
Proxy ARP lets a router answer ARP requests on one of its networks for a host on another of its networks. This fools the sender of the ARP request into thinking that the router is the destination host, when in fact the destination host is "on the other side" of the router. The router is acting as a proxy agent for the destination host, relaying packets to it from other hosts.
Gratuitous ARP:
It occurs when a host sends an ARP request looking for its own IP address. This is usually done when the interface is configured at bootstrap time.
# 2009-09-12 14:08
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/104229/showart_2056422.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP