译:https://www.cisco.com/c/en/us/support/docs/switches/catalyst-6500-series-switches/71079-arp-cam-tableissues.html

Catalyst交换机维护多种类型的表,这些表专为第2层交换或多层交换(MLS)而定制,并保存在very fast的memory中,以便可以并行比较帧或数据包中的许多字段。

ARP-将IP地址映射到MAC地址,以便在第2层广播域内提供IP通信。

例如,主机B想要向主机A发送信息,但在其ARP缓存中没有主机A的MAC地址。主机B为广播域内的所有主机生成广播消息,以获取与主机A的IP地址关联的MAC地址。广播域内的所有主机都接收ARP请求,并且只有主机A以其MAC地址进行响应。

CAM-All Catalyst交换机型号使用CAM表进行第2层交换。当帧到达交换机端口时,源MAC地址被学习并记录在CAM表中。到达端口和VLAN都记录在表中,并附有时间戳。如果在一个交换机端口上学习的MAC地址已移至另一个端口,则会记录最近到达端口的MAC地址和时间戳。然后,删除上一个条目。如果发现表中已存在正确到达端口的MAC地址,则仅更新其时间戳。

三元内容可寻址存储器(Ternary Content Addressable Memory,TCAM) - 在多层交换机中,传统路由中提供的访问控制列表(ACL)的所有进程(例如匹配,过滤或控制特定流量)都在硬件中实现。 TCAM允许在单个表查找中针对整个访问列表评估数据包。大多数交换机具有多个TCAM,因此可以同时评估入站和出站安全性以及QoS ACL,或者完全与第2层或第3层转发决策并行评估。

在分布式交换中,每个分布式特性卡(DFC)负责维护每个自己的CAM表。 这意味着每个DFC都会学习MAC地址并对其进行老化,这取决于CAM老化和与特定条目匹配的流量。

对于分布式交换,通常情况下,supervisor engine在一段时间内看不到特定MAC地址的任何流量,该条目可能会过期。 目前有两种机制可以使CAM表在不同引擎之间保持一致,例如DFC(present in line modules)和策略功能卡(PFC)(present in supervisor modules):

  • Flood to Fabric (FF)

  • MAC Notification (MN)

当PFC上的MAC地址条目老化时,show mac-address address <MAC_Address> all 命令可以查看保存此MAC地址的DFC或PFC。

为了防止DFC或PFC上的条目超时,即使没有该MAC地址的流量,也要启用MAC地址同步。 配置以下命令以启用同步,mac-address-table synchronize命令可从CiscoIOS®软件版本12.2(18)SXE4及更高版本使用:

Cat6K-IOS(config)#mac-address-table synchronize

启用它后,仍然可以看到PFC或DFC中不存在的条目。However, the module has a way to learn it from others that use Ethernet Out of Band Channel (EOBC).

Caution: The mac-address-table synchronize command purges the routed MAC entires. In order to avoid this, disable the routed MAC purging with the mac-address-table aging-time 0 routed-mac global configuration command.

Unicast Flooding in the Network Every 5 Minutes

LAN switches use forwarding tables, such as Layer 2 and CAM tables, to direct traffic to specific ports based on the VLAN number and the destination MAC address of the frame. When there is no entry that corresponds to the destination MAC address of the frame in the incoming VLAN, the (unicast) frame is sent to all forwarding ports within the respective VLAN. This causes flooding. The very cause of flooding is that the destination MAC address of the packet is not in the Layer 2 forwarding table of the switch. In this case, the packet is flooded out of all forwarding ports in its VLAN, except the port it is received on.

The default ARP table aging time is 4 hours while the CAM holds the entries for only 5 minutes. The switch sends out a frame to all forwarding ports within the respective VLAN when the destination MAC address is aged out from the CAM table. You need a CAM aging timer greater or equal to the ARP timeout in order to prevent unicast flooding. As a workaround, you can issue one of these commands in order to increase the CAM aging timer for the VLAN you are having trouble with to match the ARP aging time:

  • For CatOS, issue the set cam agingtime command.

  • For Cisco IOS software, issue the mac-address-table aging-time command.

Note: In any Catalyst environment that runs a Hot Standby Router Protocol (HSRP), it is recommended that you ensure the CAM and ARP timers are synchronized.

Refer to Unicast Flooding in Switched Campus Networks for information on possible causes and implications of unicast packet flooding in switched networks.

Catalyst 6500/6000 Switches ARP or CAM Table的更多相关文章

  1. Cisco IOS debug command reference Command A through D

    debug aaa accounting through debug auto-config debug aaa accounting : to display information on acco ...

  2. 原创:vsphere概念深入系列四:Nic Teaming若干问题

    参考文档:http://www.hyper-v.nu/archives/marcve/2013/01/lbfo-hyper-v-switch-qos-and-actual-performance-pa ...

  3. Cisco CatOS系统交换机的SPAN配置

    以下内容摘自最新上市的“四大金刚”图书之一<Cisco交换机配置与管理完全手册>(第二版)(其它三本分别为<Cisco路由器配置与管理完全手册>(第二版).<H3C交换机 ...

  4. ARP Poisoning Attack and Mitigation Techniques ARP欺骗 中间人攻击 Man-In-The-Middle (MITM) attack 嗅探 防范 Can one MAC address have two different IP addresses within the network?

    小结: 1. ARP缓存投毒,窃听中毒者之间的通信: 2. ARP Poisoning Attack and Mitigation Techniques - Ciscohttps://www.cisc ...

  5. 图解ARP协议(二)ARP攻击原理与实践

    一.ARP攻击概述 在上篇文章里,我给大家普及了ARP协议的基本原理,包括ARP请求应答.数据包结构以及协议分层标准,今天我们继续讨论大家最感兴趣的话题:ARP攻击原理是什么?通过ARP攻击可以做什么 ...

  6. BlackArch-Tools

    BlackArch-Tools 简介 安装在ArchLinux之上添加存储库从blackarch存储库安装工具替代安装方法BlackArch Linux Complete Tools List 简介 ...

  7. snmp oid 和厂商对应关系

    <node oid="default" name="Unknown" type="workstation"/><node ...

  8. VLAN原理详解[转载] 网桥--交换机---路由器

    来自:http://blog.csdn.net/phunxm/article/details/9498829 一.什么是桥接          桥接工作在OSI网络参考模型的第二层数据链路层,是一种以 ...

  9. vlan知识

    为什么需要VLAN 1. 什么是VLAN? VLAN(Virtual LAN),翻译成中文是“虚拟局域网”.LAN可以是由少数几台家用计算机构成的网络,也可以是数以百计的计算机构成的企业网络.VLAN ...

随机推荐

  1. 题解【BZOJ4472】[JSOI2015]salesman

    题面 树形\(\text{DP}\)与贪心的结合. 首先考虑树形\(\text{DP}\). 设\(dp_i\)表示从\(i\)出发,访问\(i\)的子树,并且最后回到\(i\)能获得的最大收益. 转 ...

  2. 杭电oj_1713——相遇周期(java实现)

    question:相遇周期 思路: 首先将两个分数化为最简形式(也就是分子分母同时除以最大公约数) 然后题意是要求两个分数的最小公倍数 借助以下两个公式,就可以求出结果 1.最小公倍数*最大公约数 = ...

  3. Django_RESTful API

    https://q1mi.github.io/Django-REST-framework-documentation/ 1. DRF(Django REST framework) 序列化的类 2. 解 ...

  4. js清空子节点

    删除全部子节点 function removeAllChild(){ var div = document.getElementById("div1"); while(div.ha ...

  5. 2、Spring-RootApplicationContext-refresh

    上一篇文中提到父容器root applicationContext最后是调用XmlWebApplicationContext去实现的, 但是什么时候开始解析标签(默认标签.自定义标签).注册bean以 ...

  6. STA之PVT

    在STA星球,用library PVT.RC corner跟OCV来模拟这些不可控的随机因素.在每个工艺结点,通过大量的建模跟实测,针对每个具体的工艺,foundary厂都会提供一张推荐的timing ...

  7. 全网最全!小白搭建hexo+Github/Gitee/Coding

    Hexo是一个快速.简洁且高效的博客框架.Hexo使用Markdown解析文章,在几秒内,即可利用靓丽的主题生成静态网页. 本站内容已全部转移到https://www.myyuns.ltd,具体请移步 ...

  8. php对字符串的操作2之 处理字符串的内置函数

    1,获取字串:substr($str,$start,$length) mb_substr($str,$start,$length,'utf-8'); 更换为utf8编码,能准确的截取中文 <?p ...

  9. THINKPHP 模板上传图片--后台接收图片

    模板 {extend name="public/base" /} {block name="body"} <div class="row&quo ...

  10. git 多人开发解决步骤

    1.pull -- 开发 -- pull -- 解决冲突(如果有) -- commit -- push   (PS 老子今天很烦躁)