The invention discloses a method for collaborative learning based on MAC address, the hardware and software of a VPLS includes: receiving the message and obtain analytical source MAC address and the virtual switch instance; if there is address learning request access to the MAC address table is to obtain MAC address table item information, the pre entry information and MAC address learning table if the startup item information; MAC address authentication update entries for the pre state certification and update the aging cycle for 1/2 pre aging period, the chain length of the state; if not start MAC address authentication update entries for state certification through and more new as the preset aging cycle; if there is no existing CPU address learning request request access to the MAC address the table, when the entry status and effective entry information matching to the pre certification status of the implementation of the corresponding operation items. The invention prevents attackers from forging a large number of legitimate MAC addresses and occupies the normal MAC address table resources for a long time, so as to avoid the excessive burden of CPU and maintain the normal operation of the network and other services.
【技术实现步骤摘要】
一种VPLS中基于软硬件协同进行MAC地址学习的方法
本专利技术涉及网络通信领域,具体涉及一种VPLS(VirtualPrivateLanService,虚拟专用局域网服务)中基于软硬件协同进行MAC(MediaAccessControl,介质访问控制)地址学习的方法。
技术介绍
VPLS是一种在广域网上提供虚拟以太网服务的技术,提供多点到多点的VPN(VirtualPrivateNetwork,虚拟专用网络)组网方式,实现跨广域网的局域网站点之间的互连。VPLS的典型组网包括CE(CustomEdge,用户边缘设备)和PE(ProviderEdge,运营商边缘设备)等,其中,CE通过AC(AttachmentCircuit,接入链路)与PE连接,在PE之间建立公网隧道。然后,在各PE上创建VSI(VisualSwitchInstance,虚拟交换实例)并在VSI内配置PW(PseudoWire,伪线),同时,在所有PE之间建立全连接的PW。VPLS网络中的PE具备地址学习的能力,通过地址学习完成MAC地址与AC和PW端口的映射关系。对于从AC或PW端口上接收的数 ...
【技术保护点】
一种VPLS中基于软硬件协同进行MAC地址学习的方法,其特征在于,包括以下步骤:从输入端口接收报文,并解析获取该报文的源MAC地址和所属的虚拟交换实例;若该虚拟交换实例中存在地址学习请求访问MAC地址表,则基于源MAC地址获取MAC地址表中的条目信息,仲裁预学习条目信息与MAC地址表中的条目信息;当输入端口启动MAC地址认证时,则更新预学习条目的状态为预认证,并更新预认证条目的老化周期为二分之一的预设老化周期,仲裁预认证条目信息的链表长度状态;当输入端口不启动MAC地址认证时,则更新预学习条目的状态为认证通过,并更新预学习条目的老化周期为预设老化周期;若该虚拟交换实例中不存 ...
【技术特征摘要】
1.一种VPLS中基于软硬件协同进行MAC地址学习的方法,其特征在于,包括以下步骤:从输入端口接收报文,并解析获取该报文的源MAC地址和所属的虚拟交换实例;若该虚拟交换实例中存在地址学习请求访问MAC地址表,则基于源MAC地址获取MAC地址表中的条目信息,仲裁预学习条目信息与MAC地址表中的条目信息;当输入端口启动MAC地址认证时,则更新预学习条目的状态为预认证,并更新预认证条目的老化周期为二分之一的预设老化周期,仲裁预认证条目信息的链表长度状态;当输入端口不启动MAC地址认证时,则更新预学习条目的状态为认证通过,并更新预学习条目的老化周期为预设老化周期;若该虚拟交换实例中不存在地址学习请求而存在CPU请求访问MAC地址表,则确认MAC地址表中预认证条目的状态以及预认证条目信息与MAC地址表中的条目信息的匹配情况;当预认证条目的状态有效且条目信息匹配时,根据CPU请求访问MAC地址表的指令类型,对MAC地址表中的预认证条目状态执行相应操作。2.如权利要求1所述的方法,其特征在于,仲裁预学习条目信息与MAC地址表中的条目信息,具体为:获取预学习条目信息,如果预学习条目状态为有效且源MAC地址和虚拟交换实例均匹配,但是输入端口信息不一致,则更新输入端口信息到MAC地址表;如果预学习条目状态...
【专利技术属性】
技术研发人员:鲁鹏,
申请(专利权)人:烽火通信科技股份有限公司,武汉飞思灵微电子技术有限公司,
类型:发明
国别省市:湖北,42
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。