设为首页 收藏本站
查看: 982|回复: 0

[经验分享] ARP Changes in Server 2008/Vista-M埃布尔森M-51CTO博客

[复制链接]

尚未签到

发表于 2018-10-21 08:05:47 | 显示全部楼层 |阅读模式
  INTRODUCTION
  This article describes the Address Resolution Protocol (ARP)caching behavior in Windows Vista TCP/IP implementations.
  本文介绍了在Windows Vista TCP / IP实现的地址解析协议(ARP)缓存行为。
  More information
  ARP caching behavior has been changed in Windows Vista.
  ARP缓存行为在Windows Vista中被改变
  The TCP/IP stack implementations in WindowsVista comply with RFC4861 (Neighbor Discovery protocol for IP version 6)for both the IPv4 and the IPv6 Neighbor Discovery process.
  IPv4和IPv6的邻居发现过程,在Windows Vista  TCP / IP堆栈的实现上符合RFC4861。RFC4861定义了IPV6的邻居发现协议
  The ArpCacheLife andArpCacheMinReferencedLife registry entries determine how the ARP cache ismaintained in Windows XPand in Windows Server 2003. These registry entries no longerapply to Windows Vista(Windows NT 6.0).
  Windows XP和Windows Server2003中,ArpCacheLife和ArpCacheMinReferencedLife注册表项,确定了ARP缓存是如何保持的。
  这些注册表项不再适用于Windows Vista(内核为Windows NT的6.0)
  下附Windows XP和Windows Server 2003中ARP缓存表项的生存期:
  HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters
  修改的键值:
  键值1:ArpCacheLife,类型为Dword,单位为秒,默认值为120
  键值2:ArpCacheMinReferencedLife,类型为Dword,单位为秒,默认值为600
  注意:这些键值默认是不存在的,如果你想修改,必须自行创建;
  修改后重启计算机后生效
  详细解释:
  关于arp缓存表项的生存期(有效时间)
  在默认情况下,Windows Server 2003家族和Windows XP中(These registry entries no longer apply to Windows Vista)
  ARP缓存中的表项仅存储2分钟
  如果一个ARP缓存表项在2分钟内被用到,则其期限再延长2分钟,直到最大生命期限10分钟为止。
  超过10分钟的最大期限后,ARP缓存表项将被移出,并且通过另外一个ARP请求——ARP回应交换来获得新的对应关系(此处个人理解是下一次广播)
  ARP缓存表项的存放时间可以通过改变ArpCacheLife和ArpCacheMinReferencedLife的注册表值来重新设置。
  ArpCacheLife
  Data type
  Range
  Default value
  REG_DWORD
  0x0–0xFFFFFFFF  ( seconds )
  0x78  ( 120 seconds = 2 minutes )
  Location:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  Data   Type:  REG_DWORD
  Valid   range:  0-0xFFFFFFFF
  Default   value:  120
  Present   by  default:   No
  ArpCacheLife设置了未被使用的ARP缓存表项可以被保持的时间。
  如果注册表中没有ArpCacheLife项,则ArpCacheLife的默认值是120秒(2分钟)。
  ArpCacheMinReferencedLife
  Data type
  Range
  Default value
  REG_DWORD
  0x0–0xFFFFFFFE  ( seconds ) | 0xFFFFFFFF
  0x258  ( 600 seconds = 10 minutes )
  Location:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  Data   Type:  REG_DWORD
  Valid   range:  0-0xFFFFFFFF
  Default   value:  600
  Present   by  default:   No
  ArpCacheMinReferencedLife设置被重复使用的表项可以在ARP缓存中存放的时间。
  ArpCacheMinReferencedLife的默认值是600秒(10分钟)。
  在注册表中ArpCacheMinReferencedLife和ArpCacheLife的值的使用方法如下:
  如果ArpCacheLife比ArpCacheMinReferencedLife的值大或与之相等
  则被使用和未被使用的ARP缓存表项可存储的时间都是ArpCacheLife。
  如果ArpCacheLife比ArpCacheMinReferencedLife的值小
  则未被使用的ARP缓存表项在ArpCacheLife秒的时间后就过期了,被使用的表项的生存期为ArpCacheMinReferencedLife秒。
  In the new Windows Vista TCP/IP stack implementation, hosts createthe neighbor cache entries when there is no matching entry in the neighborcache.
  在新的Windows Vista TCP / IP协议栈的实现,当邻居缓存表中没有匹配的条目时主机创建邻居缓存条目。
  ARP cache entry for IPv4 is an example of a neighbor cache entry.
  IPv4的ARP高速缓就是邻居高速缓存的一个例子
  After the entry is successfully created in the neighbor cache, theentry may change to the "Reachable" state if the entry meets certainconditions.
  该条目邻居缓存创建成功后,如果满足某些条件的条目可能更改为“可达”状态。
  If the entry is in the "Reachable" state, Windows VistaTCP/IP hosts do not send ARP requests to the network.
  如果条目是在“可达”状态中,Windows Vista TCP / IP主机不发送ARP请求到网络。
  Therefore, Windows Vista TCP/IP hosts use the information in thecache.
  因此,Windows Vista TCP / IP主机在高速缓存区中得到信息。
  If an entry is not used, and it stays in the "Reachable"state for longer than its "Reachable Time" value, the entry changesto the "Stale" state.
  如果某个条目没有使用,且停留在“可达”状态比其“到达时间”值更久,该条目变为“陈旧”状态。
  If an entry is in the "Stale" state, the Windows VistaTCP/IP host must send an ARP request to reach that destination.
  如果项处于“陈旧”状态,Windows Vista中的TCP / IP主机必须发送一个ARP请求到达该目的地(单播)。
  The "Reachable Time" value is calculated as follows:
  Reachable Time = BaseReachable Time × (A random value betweenMIN_RANDOM_FACTOR and MAX_RANDOM_FACTOR)
  RFCprovides the following calculated results.
  BaseReachable Time           30,000milliseconds (ms)
  MIN_RANDOM_FACTO      0.5
  MAX_RANDOM_FACTOR   1.5
  Therefore, the "Reachable Time" valueis somewhere between 15 seconds (30 × 0.5 seconds) and 45 seconds (30 × 1.5seconds).
  因此,“可到达的时间”值是介于15秒(30×0.5秒)和45秒(30×1.5秒)之间
  If an entry is not used for a time between 15 to 45 seconds, itchanges to the "Stale" state.
  如果该条目在15到45秒之间未使用,它改变到“陈旧”状态。
  Then, the host must send an ARP Request for IPV4 to the network whenany IP datagram is sent to that destination.
  然后,当任何IP数据报被发送到目的地的主机必须发送ARP请求IPV4到网络。


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-624279-1-1.html 上篇帖子: 解决"The server quit without updating PID file." 下篇帖子: Mysql基础入门-SQL_DML语句
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表