完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
默认情况下,WARCE在ARP表中只有6个条目。(见WICED /网络/ netx_duo / WICED / wiced_network。H)
#定义arp_cache_size(6×size_of_arp_entry) 如果在频繁通信的第2层网络上有超过6个设备,那么这些设备中的每一个将被期望发送ARP请求。默认情况下,NETXDO将每个接收到的ARP请求的发送器存储在ARP表中。如果表中只有6个条目,则该表将快速填充来自其他设备的条目,其中特定设备可能永远不打算通信,并且与它正常通信的设备的条目将被覆盖。这意味着它必须每次发送一个ARP请求,几乎每次与它频繁通信的IP进行通信。这将大大减缓通信。 我们在开发WICD3.5.1的代码时遇到了这个问题,并在WICE的更新版本中升级了代码以包括更新的特性。那时我们每个设备常常是20, 30个或更多的IP地址发送消息。6一个ARP表为我们的应用显然太小了。现在我们的通信优化使用多播,所以每个设备只能与一个小数量的IP地址通信。因此,只有6个ARP表应尽netxduo自动ARP是残疾人nx_disable_arp_auto_entry足够大。 因为netxduo是预建的图书馆,我们没有控制nx_disable_arp_auto_entry。 我们现在升级到WICED 6.2,是Wiced的netxduo建造nx_disable_arp_auto_entry? 看到https://rtos.com/wp-content/uploads/secure/netx_user_guide.pdf PP 87-88: ARP动态条目P 87默认情况下,ARP使服务场所对可用的动态ARP表ARP高速缓存中的所有条目。动态ARP表项分配从这个名单时,NetX的双核请求发送到一个映射的IP地址检测。分配后,ARP是建立一个ARP请求发送到物理媒体。一个动态的输入也可以通过服务nx_arp_dynamic_entry_set创建。如果所有的动态ARP条目使用最近最少使用ARP条目是一个新的映射取代。…自动ARP记录P 88 NetX的双核节点的IP / MAC后同行回应ARP请求映射。NetX的双核也实现了ARP的功能,自动记录点IP / MAC基于主动ARP请求从网络地址映射。此功能允许ARP表被填充与同行的信息,降低延迟需要通过ARP请求/响应周期。然而,启用自动ARP的缺点是,ARP表会迅速填补一个在本地链路节点多繁忙的网络,这将最终导致ARP条目替换。默认启用此功能。要禁用它,第二朵图书馆必须与定义的符号nx_disable_arp_auto_entry编译。 以上来自于百度翻译 以下为原文 By default WICED only has 6 entries in the ARP table. (See WICED/network/NetX_Duo/WICED/wiced_network.h)
If you have a lot more than 6 devices on the layer 2 network that are frequently communicating then every one of those devices would be expected to send out ARP requests. By default NetXduo stores the sender of every received ARP request in the ARP table. If there are only 6 entries in the table, the table will quickly fill up with entries from other devices with which a specific device may never intend to communicate and the entries for devices with which it does normally communicate will get overwritten. This means it may have to send an ARP request almost every time it communicates with each IP that it frequently communicates with. This will dramatically slow down communications. We ran into this problem when developing code on WICED 3.5.1 and have upgraded the code to include newer features in more recent releases of WICED. Back then each of our devices was frequently sending messages to 20, 30 or more IP addresses. An ARP table of 6 was clearly too small for our application. Now we have optimized communication using multicasts, so each device should only be communicating with a small number of IP addresses. Thus an arp table with only 6 entries should be big enough as long as NetXduo's automatic ARP entries are disabled with NX_DISABLE_ARP_AUTO_ENTRY. Since NetXduo is a prebuilt library, we don't have control over NX_DISABLE_ARP_AUTO_ENTRY. Now that we are upgrading to WICED 6.2, is WICED's NetXduo built with NX_DISABLE_ARP_AUTO_ENTRY? See https://rtos.com/wp-content/uploads/secure/NetX_User_Guide.pdf pp 87-88: ARP Dynamic Entries p 87 By default, the ARP enable service places all entries in the ARP cache on the list of available dynamic ARP entries. A dynamic ARP entry is allocated from this list by NetX Duo when a send request to an unmapped IP address is detected. After allocation, the ARP entry is set up and an ARP request is sent to the physical media. A dynamic entry can also be created by the service nx_arp_dynamic_entry_set. If all dynamic ARP entries are in use, the least recently used ARP entry is replaced with a new mapping. ... Automatic ARP Entry p 88 NetX Duo records the peer’s IP/MAC mapping after the peer responses to the ARP request. NetX Duo also implements the automatic ARP entry feature where it records peer IP/MAC address mapping based on unsolicited ARP requests from the network. This feature allows the ARP table to be populated with peer information, reducing the delay needed to go through the ARP request/response cycle. However the downside with enabling automatic ARP is that the ARP table tend to fill up quickly on a busy network with many nodes on the local link, which would eventually lead to ARP entry replacement. This feature is enabled by default. To disable it, the NetX Duo library must be compiled with the symbol NX_DISABLE_ARP_AUTO_ENTRY defined. |
|
相关推荐
1个回答
|
|
不幸的是,答案是否定的。nx_disable_arp_auto_entry点_nx_system_build_options_1是0这意味着WICED NetX的双核不是建立在nx_disable_arp_auto_entry启用。
以上来自于百度翻译 以下为原文 Unfortunately the answer is no. NX_DISABLE_ARP_AUTO_ENTRY bit in _nx_system_build_options_1 is 0 which means that WICED NetX Duo is not built with NX_DISABLE_ARP_AUTO_ENTRY enabled. |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2103 浏览 1 评论
1849 浏览 1 评论
3667 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1784 浏览 6 评论
1534 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
568浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
422浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
437浏览 2评论
383浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
915浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 23:52 , Processed in 0.842362 second(s), Total 47, Slave 40 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号