The application example provides the MAC address management method and device, which solves the problem of the waste of the resource of the user sites in the existing technology. The method comprises: a network device receives the first notification message, wherein the first notification message for indicating the MAC collection of the first media access control address, the first set MAC address for the first user site off the network's MAC address set; the network device in the current moment according to the first notification message is delivered to the first configuration and discarded in after the first time in force, which is the first delivered to the network device in the first set MAC address corresponding to the local forwarding table; in effect, if the network device does not receive the first flow, the network device discards second flow, the traffic received in the source MAC address of the first flow the collection belongs to the first MAC address set, the flow rate of the second MAC address set belongs to the first MAC address set.
【技术实现步骤摘要】
MAC地址管理方法及装置
本申请涉及通信
,尤其涉及MAC地址管理方法及装置。
技术介绍
虚拟专用局域网业务(virtualprivateLANservice,VPLS)技术是一种多协议标签交换(multi-protocollabelswitching,MPLS)二层虚拟专用网络(virtualprivatenetwork,VPN)技术,通过MPLS隧道在每个VPN的各个站点之间建立伪线(pseudowire,PW),通过PW将用户二层报文在站点之间透明传输。VPLS中,对于服务提供商网络上的边缘设备(provideredge,PE)设备在转发报文的同时学习源媒体访问控制(mediaaccesscontrol,MAC)地址并建立MAC转发表项,完成MAC地址与用户接入(access)接口和PW的映射关系。类似于交换机,VPLS中对于未知的单播、广播以及组播流量默认在一个VPLS实例中广播,在设备上可设置对上述流量的限速。当用户站点脱离网络时,一方面,未脱网用户站点接收脱网用户站点发送标签撤回(ldplabelwithdraw)消息拆除PW,实现脱网用户站点的MAC地址撤销;另一方面,未脱网用户站点维持现有的PW,接收脱网用户站点发送的MAC地址撤回(ldpmacwithdraw)消息,实现脱网用户站点的MAC地址撤销。然而,未脱网站点撤销脱网站点的MAC地址导致到达脱网用户站点的流量将以广播的形式在网络中传输,由于网络中不存在这些流量的接收者,占用用户其他未脱网用户站点的下行流量,因此造成了资源的浪费,影响了用户体验。因此,用户站点脱网导致的资源浪费 ...
【技术保护点】
一种MAC地址管理方法,其特征在于,所述方法包括:网络设备接收第一通知消息,其中,所述第一通知消息用于指示第一媒体访问控制MAC地址集合,所述第一MAC地址集合为脱网的第一用户站点的MAC地址集合;所述网络设备在当前时刻根据所述第一通知消息配置第一转发表项为丢弃且在第一时长之后生效,其中,所述第一转发表项为所述网络设备中所述第一MAC地址集合对应的本地转发表项;在生效之后,若所述网络设备未接收第一流量,所述网络设备丢弃接收的流量中的第二流量,其中,所述第一流量的源MAC地址集合属于所述第一MAC地址集合,所述第二流量的目的MAC地址集合属于所述第一MAC地址集合。
【技术特征摘要】
1.一种MAC地址管理方法,其特征在于,所述方法包括:网络设备接收第一通知消息,其中,所述第一通知消息用于指示第一媒体访问控制MAC地址集合,所述第一MAC地址集合为脱网的第一用户站点的MAC地址集合;所述网络设备在当前时刻根据所述第一通知消息配置第一转发表项为丢弃且在第一时长之后生效,其中,所述第一转发表项为所述网络设备中所述第一MAC地址集合对应的本地转发表项;在生效之后,若所述网络设备未接收第一流量,所述网络设备丢弃接收的流量中的第二流量,其中,所述第一流量的源MAC地址集合属于所述第一MAC地址集合,所述第二流量的目的MAC地址集合属于所述第一MAC地址集合。2.根据权利要求1所述的方法,其特征在于,在所述第一时长截止之前,所述方法还包括:若所述网络设备接收到所述第一流量,则所述第一转发表项为丢弃的配置失效,所述网络设备在当前时刻根据所述第一流量配置所述第一转发表项为转发且立即生效。3.根据权利要求1所述的方法,其特征在于,在生效之后,所述方法还包括:若所述网络设备接收到所述第一流量,则所述网络设备在当前时刻根据所述第一流量配置所述第一转发表项的丢弃为转发且立即生效。4.根据权利要求1-3任一项所述的方法,其特征在于,所述第一通知消息为MAC地址撤消MACwithdraw消息或标签撤消labelwithdraw消息。5.根据权利要求1-4任一项所述的方法,其特征在于,所述方法还包括:若所述网络设备检测到第二用户站点脱网,所述网络设备在当前时刻配置第二转发表项为丢弃且在所述第一时长后生效,其中,所述第二转发表项为所述网络设备中第二MAC地址集合对应的本地转发表项,所述第二MAC地址集合为所述第二用户站点的MAC地址集合;所述网络设备广播第二通知消息,其中,所述第二通知消息用于指示所述第二MAC地址集合。6.一种网络设备,其特征在于,所述网络设备包括:接收模块、配置模块和丢...
【专利技术属性】
技术研发人员:郭晓琳,何晓峰,胡锦航,徐博华,马季春,卢红波,
申请(专利权)人:中国联合网络通信集团有限公司,中讯邮电咨询设计院有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。